@netlify/zip-it-and-ship-it 9.37.2 → 9.37.4
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.
|
@@ -138,13 +138,19 @@ const parseConfigESMExport = (node) => {
|
|
|
138
138
|
* and any others will be ignored and excluded from the resulting object.
|
|
139
139
|
*/
|
|
140
140
|
const parseObject = (node) => node.properties.reduce((acc, property) => {
|
|
141
|
-
if (property.type
|
|
142
|
-
return
|
|
141
|
+
if (property.type === 'ObjectProperty' && property.key.type === 'Identifier') {
|
|
142
|
+
return {
|
|
143
|
+
...acc,
|
|
144
|
+
[property.key.name]: parsePrimitive(property.value),
|
|
145
|
+
};
|
|
143
146
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
147
|
+
if (property.type === 'ObjectProperty' && property.key.type === 'StringLiteral') {
|
|
148
|
+
return {
|
|
149
|
+
...acc,
|
|
150
|
+
[property.key.value]: parsePrimitive(property.value),
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
return acc;
|
|
148
154
|
}, {});
|
|
149
155
|
/**
|
|
150
156
|
* Takes an expression and, if it matches a JavaScript primitive type, returns
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/zip-it-and-ship-it",
|
|
3
|
-
"version": "9.37.
|
|
3
|
+
"version": "9.37.4",
|
|
4
4
|
"description": "Zip it and ship it",
|
|
5
5
|
"main": "./dist/main.js",
|
|
6
6
|
"type": "module",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@babel/parser": "^7.22.5",
|
|
45
45
|
"@babel/types": "7.24.6",
|
|
46
46
|
"@netlify/binary-info": "^1.0.0",
|
|
47
|
-
"@netlify/serverless-functions-api": "^1.
|
|
47
|
+
"@netlify/serverless-functions-api": "^1.19.0",
|
|
48
48
|
"@vercel/nft": "^0.27.1",
|
|
49
49
|
"archiver": "^7.0.0",
|
|
50
50
|
"common-path-prefix": "^3.0.0",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@types/is-ci": "3.0.4",
|
|
83
83
|
"@types/node": "20.12.11",
|
|
84
84
|
"@types/normalize-path": "3.0.2",
|
|
85
|
-
"@types/picomatch": "2.3.
|
|
85
|
+
"@types/picomatch": "2.3.4",
|
|
86
86
|
"@types/resolve": "1.20.6",
|
|
87
87
|
"@types/semver": "7.5.8",
|
|
88
88
|
"@types/tmp": "0.2.6",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"engines": {
|
|
106
106
|
"node": "^14.18.0 || >=16.0.0"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "eed20eb2676d59d26ec2fb40335bb83c8a4194ed"
|
|
109
109
|
}
|