netlify-cli 9.13.6 → 9.14.0
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/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify-cli",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.14.0",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "netlify-cli",
|
|
9
|
-
"version": "9.
|
|
9
|
+
"version": "9.14.0",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
},
|
|
127
127
|
"devDependencies": {
|
|
128
128
|
"@babel/preset-react": "^7.12.13",
|
|
129
|
-
"@netlify/eslint-config-node": "^5.1.
|
|
129
|
+
"@netlify/eslint-config-node": "^5.1.8",
|
|
130
130
|
"ava": "^4.0.0",
|
|
131
131
|
"c8": "^7.11.0",
|
|
132
132
|
"eslint-plugin-sort-destructure-keys": "^1.3.5",
|
|
@@ -3452,9 +3452,9 @@
|
|
|
3452
3452
|
}
|
|
3453
3453
|
},
|
|
3454
3454
|
"node_modules/@netlify/eslint-config-node": {
|
|
3455
|
-
"version": "5.1.
|
|
3456
|
-
"resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-5.1.
|
|
3457
|
-
"integrity": "sha512-
|
|
3455
|
+
"version": "5.1.8",
|
|
3456
|
+
"resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-5.1.8.tgz",
|
|
3457
|
+
"integrity": "sha512-A1UsNwPXsjryQxBPXGmEynIVaYq4o2VpCiDfkZiIQ0FTXzJv+aBopxwaKBvdE4NgHueLAgpUlWWCJ7Xkt4zN0Q==",
|
|
3458
3458
|
"dev": true,
|
|
3459
3459
|
"dependencies": {
|
|
3460
3460
|
"@babel/core": "^7.13.8",
|
|
@@ -26726,9 +26726,9 @@
|
|
|
26726
26726
|
"integrity": "sha512-tiKmDcHM2riSVN79c0mJY/67EBDafXQAMitHuLiCDAMdtz3kfv+NqdVG5krgf5lWR8Uf8AeZrUW5Q9RP25REvw=="
|
|
26727
26727
|
},
|
|
26728
26728
|
"@netlify/eslint-config-node": {
|
|
26729
|
-
"version": "5.1.
|
|
26730
|
-
"resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-5.1.
|
|
26731
|
-
"integrity": "sha512-
|
|
26729
|
+
"version": "5.1.8",
|
|
26730
|
+
"resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-5.1.8.tgz",
|
|
26731
|
+
"integrity": "sha512-A1UsNwPXsjryQxBPXGmEynIVaYq4o2VpCiDfkZiIQ0FTXzJv+aBopxwaKBvdE4NgHueLAgpUlWWCJ7Xkt4zN0Q==",
|
|
26732
26732
|
"dev": true,
|
|
26733
26733
|
"requires": {
|
|
26734
26734
|
"@babel/core": "^7.13.8",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify-cli",
|
|
3
3
|
"description": "Netlify command line tool",
|
|
4
|
-
"version": "9.
|
|
4
|
+
"version": "9.14.0",
|
|
5
5
|
"author": "Netlify Inc.",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Abraham Schilling <AbrahamSchilling@gmail.com> (https://gitlab.com/n4bb12)",
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
},
|
|
317
317
|
"devDependencies": {
|
|
318
318
|
"@babel/preset-react": "^7.12.13",
|
|
319
|
-
"@netlify/eslint-config-node": "^5.1.
|
|
319
|
+
"@netlify/eslint-config-node": "^5.1.8",
|
|
320
320
|
"ava": "^4.0.0",
|
|
321
321
|
"c8": "^7.11.0",
|
|
322
322
|
"eslint-plugin-sort-destructure-keys": "^1.3.5",
|
package/src/commands/dev/dev.js
CHANGED
|
@@ -294,7 +294,9 @@ const startPollingForAPIAuthentication = async function (options) {
|
|
|
294
294
|
process.env.ONEGRAPH_AUTHLIFY_TOKEN = netlifyGraphJWT
|
|
295
295
|
process.env.NETLIFY_GRAPH_TOKEN = netlifyGraphJWT
|
|
296
296
|
}
|
|
297
|
-
} else {
|
|
297
|
+
} else if (!authlifyTokenId) {
|
|
298
|
+
// If there's no `authlifyTokenId`, it's because the user disabled API
|
|
299
|
+
// Auth. Delete the config in this case.
|
|
298
300
|
delete config.netlifyGraphConfig
|
|
299
301
|
}
|
|
300
302
|
|
|
@@ -41,7 +41,9 @@ class NetlifyFunction {
|
|
|
41
41
|
// Determines whether this is a background function based on the function
|
|
42
42
|
// name.
|
|
43
43
|
this.isBackground = name.endsWith(BACKGROUND_SUFFIX)
|
|
44
|
-
|
|
44
|
+
|
|
45
|
+
const functionConfig = config.functions && config.functions[name]
|
|
46
|
+
this.schedule = functionConfig && functionConfig.schedule
|
|
45
47
|
|
|
46
48
|
// List of the function's source files. This starts out as an empty set
|
|
47
49
|
// and will get populated on every build.
|
|
@@ -91,7 +93,7 @@ class NetlifyFunction {
|
|
|
91
93
|
|
|
92
94
|
this.buildData = buildData
|
|
93
95
|
this.srcFiles = srcFilesSet
|
|
94
|
-
this.schedule = schedule
|
|
96
|
+
this.schedule = schedule || this.schedule
|
|
95
97
|
|
|
96
98
|
return { srcFilesDiff }
|
|
97
99
|
} catch (error) {
|
|
@@ -113,6 +113,7 @@ const createHandler = function (options) {
|
|
|
113
113
|
const jwt = generateNetlifyGraphJWT(config.netlifyGraphConfig)
|
|
114
114
|
event.authlifyToken = jwt
|
|
115
115
|
event.netlifyGraphToken = jwt
|
|
116
|
+
event.headers['X-Nf-Graph-Token'] = jwt
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
const clientContext = buildClientContext(request.headers) || {}
|