@lwrjs/resource-registry 0.9.0-alpha.8 → 0.9.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/index.cjs +2 -1
- package/build/es/index.js +3 -1
- package/package.json +7 -7
package/build/cjs/index.cjs
CHANGED
|
@@ -45,8 +45,9 @@ var LwrResourceRegistry = class {
|
|
|
45
45
|
return void 0;
|
|
46
46
|
}
|
|
47
47
|
resolveResourceUri({specifier, version = ""}, {apiVersion, format, basePath}) {
|
|
48
|
+
const prettyUrl = specifier;
|
|
48
49
|
const versionedSpecifier = (0, import_shared_utils.getSpecifier)({specifier, version: (0, import_shared_utils.normalizeVersionToUri)(version)});
|
|
49
|
-
return `${basePath}/${apiVersion}/resource/${format}/${encodeURIComponent(versionedSpecifier)}`;
|
|
50
|
+
return `${basePath}/${apiVersion}/resource/${format}/${encodeURIComponent(versionedSpecifier)}/${prettyUrl}`;
|
|
50
51
|
}
|
|
51
52
|
getPublicApi() {
|
|
52
53
|
return {
|
package/build/es/index.js
CHANGED
|
@@ -22,8 +22,10 @@ export class LwrResourceRegistry {
|
|
|
22
22
|
}
|
|
23
23
|
// Given a resource and environment, return a resource URI
|
|
24
24
|
resolveResourceUri({ specifier, version = '' }, { apiVersion, format, basePath }) {
|
|
25
|
+
// re-add the specifier at the end for a URL with the right extension
|
|
26
|
+
const prettyUrl = specifier;
|
|
25
27
|
const versionedSpecifier = getSpecifier({ specifier, version: normalizeVersionToUri(version) });
|
|
26
|
-
return `${basePath}/${apiVersion}/resource/${format}/${encodeURIComponent(versionedSpecifier)}`;
|
|
28
|
+
return `${basePath}/${apiVersion}/resource/${format}/${encodeURIComponent(versionedSpecifier)}/${prettyUrl}`;
|
|
27
29
|
}
|
|
28
30
|
getPublicApi() {
|
|
29
31
|
return {
|
package/package.json
CHANGED
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.9.0
|
|
7
|
+
"version": "0.9.0",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/salesforce/lwr.git",
|
|
11
|
+
"url": "https://github.com/salesforce-experience-platform-emu/lwr.git",
|
|
12
12
|
"directory": "packages/@lwrjs/resource-registry"
|
|
13
13
|
},
|
|
14
14
|
"bugs": {
|
|
15
|
-
"url": "https://github.com/salesforce/lwr/issues"
|
|
15
|
+
"url": "https://github.com/salesforce-experience-platform-emu/lwr/issues"
|
|
16
16
|
},
|
|
17
17
|
"type": "module",
|
|
18
18
|
"types": "build/es/index.d.ts",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"build/**/*.d.ts"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@lwrjs/shared-utils": "0.9.0
|
|
33
|
+
"@lwrjs/shared-utils": "0.9.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@lwrjs/types": "0.9.0
|
|
36
|
+
"@lwrjs/types": "0.9.0"
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|
|
39
|
-
"node": ">=
|
|
39
|
+
"node": ">=16.0.0 <20"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "4e42b0dc5453f92b36b42aa8132c5bc281e616b7"
|
|
42
42
|
}
|