@lwrjs/legacy-npm-module-provider 0.17.2-alpha.8 → 0.17.2
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/es/index.js
CHANGED
|
@@ -5,9 +5,11 @@ import { resolveNpmModuleSpecifierDeprecated } from './resolveNpmModules.js';
|
|
|
5
5
|
* @deprecated please use @lwrjs/npm-module-provider
|
|
6
6
|
*/
|
|
7
7
|
export default class LegacyNpmModuleProvider {
|
|
8
|
+
name = 'legacy-npm-module-provider';
|
|
9
|
+
providerConfig;
|
|
10
|
+
webModulesCacheDir;
|
|
11
|
+
moduleEntryVersionCache = new Map();
|
|
8
12
|
constructor(providerConfig = {}, { config: { cacheDir } }) {
|
|
9
|
-
this.name = 'legacy-npm-module-provider';
|
|
10
|
-
this.moduleEntryVersionCache = new Map();
|
|
11
13
|
this.webModulesCacheDir = path.join(cacheDir, 'web_modules');
|
|
12
14
|
this.providerConfig = providerConfig;
|
|
13
15
|
}
|
|
@@ -79,11 +79,9 @@ export async function resolveNpmModuleSpecifierBlock(specifier, dest, config) {
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
class Queue {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
this.pendingPromise = false;
|
|
86
|
-
}
|
|
82
|
+
queue = [];
|
|
83
|
+
workingOnPromise = false;
|
|
84
|
+
pendingPromise = false;
|
|
87
85
|
enqueue(promise) {
|
|
88
86
|
return new Promise((resolve, reject) => {
|
|
89
87
|
this.queue.push({ promise, resolve, reject });
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.17.2
|
|
8
|
+
"version": "0.17.2",
|
|
9
9
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -36,21 +36,21 @@
|
|
|
36
36
|
"test": "jest"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@lwrjs/types": "0.17.2
|
|
40
|
-
"jest": "
|
|
41
|
-
"ts-jest": "^
|
|
39
|
+
"@lwrjs/types": "0.17.2",
|
|
40
|
+
"jest": "29.7.0",
|
|
41
|
+
"ts-jest": "^29.2.6",
|
|
42
42
|
"typescript": "^4.9.5"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@lwrjs/diagnostics": "0.17.2
|
|
46
|
-
"@lwrjs/shared-utils": "0.17.2
|
|
45
|
+
"@lwrjs/diagnostics": "0.17.2",
|
|
46
|
+
"@lwrjs/shared-utils": "0.17.2",
|
|
47
47
|
"esinstall": "^1.1.7"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
50
|
-
"node": ">=
|
|
50
|
+
"node": ">=20.0.0"
|
|
51
51
|
},
|
|
52
52
|
"volta": {
|
|
53
53
|
"extends": "../../../package.json"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "d64d8888a28da36c05e3d8d9baf51416551863a9"
|
|
56
56
|
}
|