netlify-cli 13.2.1 → 13.2.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.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify-cli",
|
|
3
3
|
"description": "Netlify command line tool",
|
|
4
|
-
"version": "13.2.
|
|
4
|
+
"version": "13.2.2",
|
|
5
5
|
"author": "Netlify Inc.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"@fastify/static": "^6.6.0",
|
|
79
|
-
"@netlify/build": "^29.
|
|
80
|
-
"@netlify/config": "^20.3.
|
|
81
|
-
"@netlify/edge-bundler": "^8.
|
|
79
|
+
"@netlify/build": "^29.8.0",
|
|
80
|
+
"@netlify/config": "^20.3.7",
|
|
81
|
+
"@netlify/edge-bundler": "^8.13.0",
|
|
82
82
|
"@netlify/framework-info": "^9.8.5",
|
|
83
83
|
"@netlify/local-functions-proxy": "^1.1.1",
|
|
84
84
|
"@netlify/zip-it-and-ship-it": "^8.9.0",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"log-update": "^5.0.0",
|
|
145
145
|
"minimist": "^1.2.5",
|
|
146
146
|
"multiparty": "^4.2.1",
|
|
147
|
-
"netlify": "^13.1.
|
|
147
|
+
"netlify": "^13.1.4",
|
|
148
148
|
"netlify-headers-parser": "^7.1.2",
|
|
149
149
|
"netlify-onegraph-internal": "0.10.1",
|
|
150
150
|
"netlify-redirect-parser": "^14.1.2",
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
"devDependencies": {
|
|
186
186
|
"@babel/preset-react": "^7.12.13",
|
|
187
187
|
"@netlify/eslint-config-node": "^7.0.0",
|
|
188
|
-
"@vitest/coverage-c8": "^0.29.
|
|
188
|
+
"@vitest/coverage-c8": "^0.29.7",
|
|
189
189
|
"ava": "^4.0.0",
|
|
190
190
|
"c8": "^7.11.0",
|
|
191
191
|
"cpy": "^9.0.1",
|
|
@@ -208,8 +208,7 @@
|
|
|
208
208
|
"tree-kill": "^1.2.2",
|
|
209
209
|
"typescript": "^4.4.4",
|
|
210
210
|
"verdaccio": "^5.22.1",
|
|
211
|
-
"
|
|
212
|
-
"vitest": "^0.29.0"
|
|
211
|
+
"vitest": "^0.29.7"
|
|
213
212
|
},
|
|
214
213
|
"ava": {
|
|
215
214
|
"files": [
|
|
@@ -261,11 +261,13 @@ export class EdgeFunctionsRegistry {
|
|
|
261
261
|
const declarations = this.bundler.mergeDeclarations(
|
|
262
262
|
this.declarationsFromTOML,
|
|
263
263
|
this.declarationsFromSource,
|
|
264
|
+
{},
|
|
264
265
|
this.declarationsFromDeployConfig,
|
|
265
266
|
)
|
|
266
267
|
const manifest = this.bundler.generateManifest({
|
|
267
268
|
declarations,
|
|
268
|
-
|
|
269
|
+
userFunctionConfig: this.declarationsFromSource,
|
|
270
|
+
internalFunctionConfig: {},
|
|
269
271
|
functions: this.functions,
|
|
270
272
|
})
|
|
271
273
|
const invocationMetadata = {
|
|
@@ -279,7 +281,7 @@ export class EdgeFunctionsRegistry {
|
|
|
279
281
|
const functionNames = routes
|
|
280
282
|
.filter(({ pattern }) => pattern.test(urlPath))
|
|
281
283
|
.filter(({ function: name }) => {
|
|
282
|
-
const isExcluded = manifest.function_config[name]?.excluded_patterns
|
|
284
|
+
const isExcluded = manifest.function_config[name]?.excluded_patterns?.some((pattern) =>
|
|
283
285
|
new RegExp(pattern).test(urlPath),
|
|
284
286
|
)
|
|
285
287
|
return !isExcluded
|
|
@@ -15,6 +15,9 @@ const globalConfigDefaults = {
|
|
|
15
15
|
// Memoise config result so that we only load it once
|
|
16
16
|
let configStore
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* @returns {Promise<Configstore>}
|
|
20
|
+
*/
|
|
18
21
|
const getGlobalConfig = async function () {
|
|
19
22
|
if (!configStore) {
|
|
20
23
|
const configPath = getPathInHome(['config.json'])
|