@netlify/zip-it-and-ship-it 9.26.0 → 9.26.2
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.
|
@@ -112,8 +112,10 @@ const isNamedExport = (node, name) => {
|
|
|
112
112
|
((exported.type === 'Identifier' && exported.name === name) ||
|
|
113
113
|
(exported.type === 'StringLiteral' && exported.value === name)));
|
|
114
114
|
};
|
|
115
|
-
// Returns whether a given node is a default export declaration.
|
|
116
|
-
const isESMDefaultExport = (node) => node.type === 'ExportDefaultDeclaration'
|
|
115
|
+
// Returns whether a given node is or contains a default export declaration.
|
|
116
|
+
const isESMDefaultExport = (node) => node.type === 'ExportDefaultDeclaration' ||
|
|
117
|
+
(node.type === 'ExportNamedDeclaration' &&
|
|
118
|
+
node.specifiers.some((exportSpecifier) => exportSpecifier.exported.type === 'Identifier' && exportSpecifier.exported.name === 'default'));
|
|
117
119
|
/**
|
|
118
120
|
* Finds a `config` named CJS export that maps to an object variable
|
|
119
121
|
* declaration, like:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/zip-it-and-ship-it",
|
|
3
|
-
"version": "9.26.
|
|
3
|
+
"version": "9.26.2",
|
|
4
4
|
"description": "Zip it and ship it",
|
|
5
5
|
"main": "./dist/main.js",
|
|
6
6
|
"type": "module",
|
|
@@ -55,15 +55,15 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@babel/parser": "^7.22.5",
|
|
58
|
-
"@babel/types": "7.23.
|
|
58
|
+
"@babel/types": "7.23.3",
|
|
59
59
|
"@netlify/binary-info": "^1.0.0",
|
|
60
|
-
"@netlify/serverless-functions-api": "^1.
|
|
60
|
+
"@netlify/serverless-functions-api": "^1.12.0",
|
|
61
61
|
"@vercel/nft": "^0.23.0",
|
|
62
62
|
"archiver": "^6.0.0",
|
|
63
63
|
"common-path-prefix": "^3.0.0",
|
|
64
64
|
"cp-file": "^10.0.0",
|
|
65
65
|
"es-module-lexer": "^1.0.0",
|
|
66
|
-
"esbuild": "0.19.
|
|
66
|
+
"esbuild": "0.19.6",
|
|
67
67
|
"execa": "^6.0.0",
|
|
68
68
|
"filter-obj": "^5.0.0",
|
|
69
69
|
"find-up": "^6.0.0",
|
|
@@ -91,14 +91,14 @@
|
|
|
91
91
|
"@netlify/eslint-config-node": "7.0.1",
|
|
92
92
|
"@types/archiver": "5.3.4",
|
|
93
93
|
"@types/glob": "8.1.0",
|
|
94
|
-
"@types/is-ci": "3.0.
|
|
94
|
+
"@types/is-ci": "3.0.4",
|
|
95
95
|
"@types/node": "14.18.63",
|
|
96
|
-
"@types/normalize-path": "3.0.
|
|
97
|
-
"@types/resolve": "1.20.
|
|
98
|
-
"@types/semver": "7.5.
|
|
99
|
-
"@types/tmp": "0.2.
|
|
100
|
-
"@types/unixify": "1.0.
|
|
101
|
-
"@types/yargs": "17.0.
|
|
96
|
+
"@types/normalize-path": "3.0.2",
|
|
97
|
+
"@types/resolve": "1.20.5",
|
|
98
|
+
"@types/semver": "7.5.5",
|
|
99
|
+
"@types/tmp": "0.2.6",
|
|
100
|
+
"@types/unixify": "1.0.2",
|
|
101
|
+
"@types/yargs": "17.0.31",
|
|
102
102
|
"@vitest/coverage-v8": "0.34.6",
|
|
103
103
|
"adm-zip": "0.5.10",
|
|
104
104
|
"browserslist": "4.22.1",
|