@lwrjs/shared-utils 0.13.3 → 0.13.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 +0 -9
- package/build/es/identity.d.ts +0 -1
- package/build/es/identity.js +0 -8
- package/package.json +6 -5
package/build/cjs/identity.cjs
CHANGED
|
@@ -39,7 +39,6 @@ __export(exports, {
|
|
|
39
39
|
explodeSpecifier: () => explodeSpecifier,
|
|
40
40
|
explodeSpecifiers: () => explodeSpecifiers,
|
|
41
41
|
getCacheKeyFromJson: () => import_fast_json_stable_stringify.default,
|
|
42
|
-
getLocalDevOverrideUrl: () => getLocalDevOverrideUrl,
|
|
43
42
|
getMappingUriPrefix: () => getMappingUriPrefix,
|
|
44
43
|
getModuleUriPrefix: () => getModuleUriPrefix,
|
|
45
44
|
getPropFromAttrName: () => getPropFromAttrName,
|
|
@@ -58,7 +57,6 @@ __export(exports, {
|
|
|
58
57
|
slugify: () => slugify,
|
|
59
58
|
stringToVariableName: () => stringToVariableName
|
|
60
59
|
});
|
|
61
|
-
var import_path = __toModule(require("path"));
|
|
62
60
|
var import_slugify = __toModule(require("slugify"));
|
|
63
61
|
var import_fast_json_stable_stringify = __toModule(require("fast-json-stable-stringify"));
|
|
64
62
|
var VERSION_SIGIL = "v";
|
|
@@ -212,10 +210,3 @@ function stringToVariableName(inputString) {
|
|
|
212
210
|
}
|
|
213
211
|
return cleanedString;
|
|
214
212
|
}
|
|
215
|
-
function getLocalDevOverrideUrl(cacheDir, specifier, filepath) {
|
|
216
|
-
if (!specifier.startsWith("@view"))
|
|
217
|
-
return filepath;
|
|
218
|
-
const dirname = import_path.default.basename(import_path.default.dirname(filepath));
|
|
219
|
-
const fileName = specifier.split("@view/")[1] + "_view.js";
|
|
220
|
-
return import_path.default.join(cacheDir, "overrides", dirname, fileName);
|
|
221
|
-
}
|
package/build/es/identity.d.ts
CHANGED
|
@@ -147,5 +147,4 @@ export declare function isBundleDefinition(definition: ModuleDefinition | Bundle
|
|
|
147
147
|
* @param name - Proposed name
|
|
148
148
|
*/
|
|
149
149
|
export declare function stringToVariableName(inputString: string): string;
|
|
150
|
-
export declare function getLocalDevOverrideUrl(cacheDir: string, specifier: string, filepath: string): string;
|
|
151
150
|
//# sourceMappingURL=identity.d.ts.map
|
package/build/es/identity.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import path from 'path';
|
|
2
1
|
import slugifyText from 'slugify';
|
|
3
2
|
import getCacheKeyFromJson from 'fast-json-stable-stringify';
|
|
4
3
|
export const VERSION_SIGIL = 'v';
|
|
@@ -270,11 +269,4 @@ export function stringToVariableName(inputString) {
|
|
|
270
269
|
}
|
|
271
270
|
return cleanedString;
|
|
272
271
|
}
|
|
273
|
-
export function getLocalDevOverrideUrl(cacheDir, specifier, filepath) {
|
|
274
|
-
if (!specifier.startsWith('@view'))
|
|
275
|
-
return filepath; // only @view modules get overridden
|
|
276
|
-
const dirname = path.basename(path.dirname(filepath));
|
|
277
|
-
const fileName = specifier.split('@view/')[1] + '_view.js';
|
|
278
|
-
return path.join(cacheDir, 'overrides', dirname, fileName);
|
|
279
|
-
}
|
|
280
272
|
//# sourceMappingURL=identity.js.map
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.13.
|
|
7
|
+
"version": "0.13.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.13.
|
|
40
|
+
"@lwrjs/diagnostics": "0.13.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,12 +50,13 @@
|
|
|
50
50
|
"slugify": "^1.4.5"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@lwrjs/types": "0.13.
|
|
53
|
+
"@lwrjs/types": "0.13.4",
|
|
54
54
|
"@types/mime-types": "2.1.4",
|
|
55
|
-
"@types/path-to-regexp": "^1.7.0"
|
|
55
|
+
"@types/path-to-regexp": "^1.7.0",
|
|
56
|
+
"memfs": "^4.9.3"
|
|
56
57
|
},
|
|
57
58
|
"engines": {
|
|
58
59
|
"node": ">=18.0.0"
|
|
59
60
|
},
|
|
60
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "398664835cd2c6c6714e88c6f196e9963f7b6595"
|
|
61
62
|
}
|