@netlify/edge-bundler 14.9.13 → 14.9.15
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.
|
@@ -32,7 +32,7 @@ export function rewriteSourceImportAssertions(source) {
|
|
|
32
32
|
function collectImportAssertions(source, node) {
|
|
33
33
|
const collectedNodes = [];
|
|
34
34
|
if (Array.isArray(node)) {
|
|
35
|
-
return node.flatMap((n) => collectImportAssertions(source, n));
|
|
35
|
+
return node.filter(isNode).flatMap((n) => collectImportAssertions(source, n));
|
|
36
36
|
}
|
|
37
37
|
// Capture all import assertion statements
|
|
38
38
|
const assertionNodeTypes = ['ImportDeclaration', 'ImportExpression', 'ExportAllDeclaration', 'ExportNamedDeclaration'];
|
|
@@ -67,3 +67,6 @@ function parseImportAssertion(source, node) {
|
|
|
67
67
|
text: statement.replace('assert', 'with'),
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
+
function isNode(arg) {
|
|
71
|
+
return typeof arg === 'object' && arg !== null && 'type' in arg;
|
|
72
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/edge-bundler",
|
|
3
|
-
"version": "14.9.
|
|
3
|
+
"version": "14.9.15",
|
|
4
4
|
"description": "Intelligently prepare Netlify Edge Functions for deployment",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/node/index.js",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"better-ajv-errors": "^1.2.0",
|
|
67
67
|
"common-path-prefix": "^3.0.0",
|
|
68
68
|
"env-paths": "^3.0.0",
|
|
69
|
-
"esbuild": "0.27.
|
|
69
|
+
"esbuild": "0.27.3",
|
|
70
70
|
"execa": "^8.0.0",
|
|
71
71
|
"find-up": "^7.0.0",
|
|
72
72
|
"get-port": "^7.0.0",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"urlpattern-polyfill": "8.0.2",
|
|
82
82
|
"uuid": "^11.0.0"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "0ddf077b1055b90e13b678c3516afc0dfdb9c76d"
|
|
85
85
|
}
|