@lwrjs/shared-utils 0.17.2-alpha.2 → 0.17.2-alpha.4
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/identity.cjs +1 -1
- package/build/cjs/urls.cjs +4 -0
- package/build/es/identity.d.ts +1 -0
- package/build/es/identity.js +1 -1
- package/build/es/urls.d.ts +1 -0
- package/build/es/urls.js +3 -0
- package/package.json +4 -4
package/build/cjs/identity.cjs
CHANGED
|
@@ -95,7 +95,7 @@ function explodeSpecifier(rawSpecifier) {
|
|
|
95
95
|
const name = rawName ? [rawName, ...remaining].join("/") : rawNamespace;
|
|
96
96
|
return {
|
|
97
97
|
specifier: importee,
|
|
98
|
-
namespace,
|
|
98
|
+
namespace: namespace || "",
|
|
99
99
|
name,
|
|
100
100
|
version: version ? normalizeVersionFromUri(version) : version
|
|
101
101
|
};
|
package/build/cjs/urls.cjs
CHANGED
|
@@ -30,6 +30,7 @@ __export(exports, {
|
|
|
30
30
|
getClientBootstrapConfigurationRoutes: () => getClientBootstrapConfigurationRoutes,
|
|
31
31
|
getClientBootstrapConfigurationUri: () => getClientBootstrapConfigurationUri,
|
|
32
32
|
getClientBootstrapConfigurationUriPrefix: () => getClientBootstrapConfigurationUriPrefix,
|
|
33
|
+
getHostWithoutPort: () => getHostWithoutPort,
|
|
33
34
|
getViewUri: () => getViewUri,
|
|
34
35
|
isModuleOrBundleUrl: () => isModuleOrBundleUrl,
|
|
35
36
|
isURL: () => isURL,
|
|
@@ -138,3 +139,6 @@ function crossEnvFileURL(url) {
|
|
|
138
139
|
}
|
|
139
140
|
return url;
|
|
140
141
|
}
|
|
142
|
+
function getHostWithoutPort(forwardedHost) {
|
|
143
|
+
return forwardedHost.replace(/:(\d+)(?=[/.]|$)/, "");
|
|
144
|
+
}
|
package/build/es/identity.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export declare function prettyModuleUriSuffix(specifier: string): string;
|
|
|
43
43
|
*/
|
|
44
44
|
interface PartialModuleId extends AbstractModuleId {
|
|
45
45
|
name: string;
|
|
46
|
+
namespace: string;
|
|
46
47
|
}
|
|
47
48
|
export declare function explodeSpecifier(rawSpecifier: string): PartialModuleId;
|
|
48
49
|
export declare function explodeSpecifiers(rawSpecifiers: string): PartialModuleId[];
|
package/build/es/identity.js
CHANGED
package/build/es/urls.d.ts
CHANGED
|
@@ -38,4 +38,5 @@ export declare function getViewUri(routePath: string, basePath: string, locale:
|
|
|
38
38
|
*/
|
|
39
39
|
export declare function isURL(uri: string): boolean;
|
|
40
40
|
export declare function crossEnvFileURL(url: string): string;
|
|
41
|
+
export declare function getHostWithoutPort(forwardedHost: string): string;
|
|
41
42
|
//# sourceMappingURL=urls.d.ts.map
|
package/build/es/urls.js
CHANGED
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.17.2-alpha.
|
|
7
|
+
"version": "0.17.2-alpha.4",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"build/**/*.d.ts"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@lwrjs/diagnostics": "0.17.2-alpha.
|
|
40
|
+
"@lwrjs/diagnostics": "0.17.2-alpha.4",
|
|
41
41
|
"es-module-lexer": "^1.5.4",
|
|
42
42
|
"fast-json-stable-stringify": "^2.1.0",
|
|
43
43
|
"magic-string": "^0.30.9",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"slugify": "^1.4.5"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@lwrjs/types": "0.17.2-alpha.
|
|
53
|
+
"@lwrjs/types": "0.17.2-alpha.4",
|
|
54
54
|
"@types/mime-types": "2.1.4",
|
|
55
55
|
"@types/path-to-regexp": "^1.7.0",
|
|
56
56
|
"memfs": "^4.13.0"
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">=18.0.0"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "d7fb1605cec0bf9fef18e3daeb17dc28b35a80d3"
|
|
62
62
|
}
|