netlify-cli 8.6.19 → 8.6.20
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": "8.6.
|
|
3
|
+
"version": "8.6.20",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "netlify-cli",
|
|
9
|
-
"version": "8.6.
|
|
9
|
+
"version": "8.6.20",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
package/package.json
CHANGED
|
@@ -23,6 +23,7 @@ const events = [
|
|
|
23
23
|
'identity-signup',
|
|
24
24
|
'identity-login',
|
|
25
25
|
]
|
|
26
|
+
|
|
26
27
|
const eventTriggeredFunctions = new Set([...events, ...events.map((name) => `${name}${BACKGROUND}`)])
|
|
27
28
|
|
|
28
29
|
const DEFAULT_PORT = 8888
|
|
@@ -186,20 +187,8 @@ const functionsInvoke = async (nameArgument, options, command) => {
|
|
|
186
187
|
}
|
|
187
188
|
} else {
|
|
188
189
|
// NOT an event triggered function, but may still want to simulate authentication locally
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
const { isAuthed } = await inquirer.prompt([
|
|
192
|
-
{
|
|
193
|
-
type: 'confirm',
|
|
194
|
-
name: 'isAuthed',
|
|
195
|
-
message: `Invoke with emulated Netlify Identity authentication headers? (pass --identity/--no-identity to override)`,
|
|
196
|
-
default: true,
|
|
197
|
-
},
|
|
198
|
-
])
|
|
199
|
-
isAuthenticated = isAuthed
|
|
200
|
-
} else {
|
|
201
|
-
isAuthenticated = options.identity
|
|
202
|
-
}
|
|
190
|
+
const isAuthenticated = Boolean(options.identity)
|
|
191
|
+
|
|
203
192
|
if (isAuthenticated) {
|
|
204
193
|
headers = {
|
|
205
194
|
authorization:
|