netlify-cli 17.11.0 → 17.11.1
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": "17.11.
|
|
3
|
+
"version": "17.11.1",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "netlify-cli",
|
|
9
|
-
"version": "17.11.
|
|
9
|
+
"version": "17.11.1",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
package/package.json
CHANGED
|
@@ -35,15 +35,15 @@ const buildClientContext = function (headers) {
|
|
|
35
35
|
// "testData": "NETLIFY_DEV_LOCALLY_EMULATED_IDENTITY"
|
|
36
36
|
// }
|
|
37
37
|
};
|
|
38
|
-
// This data is available on both the context root and under custom.netlify for retro-compatibility.
|
|
39
|
-
// In the future it will only be available in custom.netlify.
|
|
40
|
-
// @ts-expect-error
|
|
41
|
-
const user = jwtDecode(parts[1]);
|
|
42
|
-
const netlifyContext = JSON.stringify({
|
|
43
|
-
identity: identity,
|
|
44
|
-
user: user,
|
|
45
|
-
});
|
|
46
38
|
try {
|
|
39
|
+
// This data is available on both the context root and under custom.netlify for retro-compatibility.
|
|
40
|
+
// In the future it will only be available in custom.netlify.
|
|
41
|
+
// @ts-expect-error
|
|
42
|
+
const user = jwtDecode(parts[1]);
|
|
43
|
+
const netlifyContext = JSON.stringify({
|
|
44
|
+
identity: identity,
|
|
45
|
+
user: user,
|
|
46
|
+
});
|
|
47
47
|
return {
|
|
48
48
|
identity: identity,
|
|
49
49
|
user: user,
|