@lwrjs/auth-middleware 0.11.4 → 0.12.0-alpha.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/build/cjs/utils.cjs +4 -1
- package/build/es/utils.js +4 -1
- package/package.json +5 -5
package/build/cjs/utils.cjs
CHANGED
|
@@ -69,7 +69,10 @@ function generateStateString() {
|
|
|
69
69
|
function sanitizeAppPath(app_path) {
|
|
70
70
|
let appPath = app_path ? decodeURIComponent(app_path) : `/`;
|
|
71
71
|
if (!appPath.startsWith("/")) {
|
|
72
|
-
import_diagnostics.logger.warn(
|
|
72
|
+
import_diagnostics.logger.warn({
|
|
73
|
+
label: `auth-middleware`,
|
|
74
|
+
message: `The "app_path" parameter must be a relative path starting with "/". Defaulting to "app_path" = "/".`
|
|
75
|
+
});
|
|
73
76
|
appPath = "/";
|
|
74
77
|
}
|
|
75
78
|
return appPath;
|
package/build/es/utils.js
CHANGED
|
@@ -36,7 +36,10 @@ export function generateStateString() {
|
|
|
36
36
|
export function sanitizeAppPath(app_path) {
|
|
37
37
|
let appPath = app_path ? decodeURIComponent(app_path) : `/`;
|
|
38
38
|
if (!appPath.startsWith('/')) {
|
|
39
|
-
logger.warn(
|
|
39
|
+
logger.warn({
|
|
40
|
+
label: `auth-middleware`,
|
|
41
|
+
message: `The "app_path" parameter must be a relative path starting with "/". Defaulting to "app_path" = "/".`,
|
|
42
|
+
});
|
|
40
43
|
appPath = '/';
|
|
41
44
|
}
|
|
42
45
|
return appPath;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.12.0-alpha.0",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"build/**/*.d.ts"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@lwrjs/diagnostics": "0.
|
|
33
|
+
"@lwrjs/diagnostics": "0.12.0-alpha.0",
|
|
34
34
|
"node-fetch": "^2.6.8"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@lwrjs/server": "0.
|
|
38
|
-
"@lwrjs/types": "0.
|
|
37
|
+
"@lwrjs/server": "0.12.0-alpha.0",
|
|
38
|
+
"@lwrjs/types": "0.12.0-alpha.0",
|
|
39
39
|
"@types/node-fetch": "^2.5.12"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=16.0.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "e79862bc238ededc3cf61f0d2c7d8120d1105a6b"
|
|
45
45
|
}
|