@await-widget/runtime 0.0.32 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/await-widget.js +9 -2
- package/package.json +1 -1
package/bin/await-widget.js
CHANGED
|
@@ -12,7 +12,14 @@ const defaultPort = 4343;
|
|
|
12
12
|
const maxBodyBytes = 100 * 1024 * 1024;
|
|
13
13
|
const zipDosTime = 0;
|
|
14
14
|
const zipDosDate = 33;
|
|
15
|
-
const excludedNames = new Set([
|
|
15
|
+
const excludedNames = new Set([
|
|
16
|
+
'node_modules',
|
|
17
|
+
'package.json',
|
|
18
|
+
'package-lock.json',
|
|
19
|
+
'tsconfig.json',
|
|
20
|
+
'xo.config.js',
|
|
21
|
+
]);
|
|
22
|
+
const excludedSuffixes = ['.lock', '.lockb', '.yaml', '.yml', '.toml'];
|
|
16
23
|
const crcTable = makeCrcTable();
|
|
17
24
|
const bridgeInfoDirectory = '.await';
|
|
18
25
|
const bridgeInfoFileName = 'bridge.json';
|
|
@@ -481,7 +488,7 @@ function listDesktopWidgets(root) {
|
|
|
481
488
|
}
|
|
482
489
|
|
|
483
490
|
function isExcludedName(name) {
|
|
484
|
-
return name.startsWith('.') || excludedNames.has(name);
|
|
491
|
+
return name.startsWith('.') || excludedNames.has(name) || excludedSuffixes.some(suffix => name.endsWith(suffix));
|
|
485
492
|
}
|
|
486
493
|
|
|
487
494
|
function widgetRootFromQuery(root, url) {
|