@lwrjs/npm-module-provider 0.22.1 → 0.22.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
|
@@ -2,11 +2,9 @@ import path from 'path';
|
|
|
2
2
|
import { hashContent, readFile } from '@lwrjs/shared-utils';
|
|
3
3
|
import { resolveNpmModuleSpecifier as resolveNpm } from './resolveNpmModules.js';
|
|
4
4
|
export default class NpmModuleProvider {
|
|
5
|
-
name = 'npm-module-provider';
|
|
6
|
-
providerConfig;
|
|
7
|
-
webModulesCacheDir;
|
|
8
|
-
moduleEntryVersionCache = new Map();
|
|
9
5
|
constructor(providerConfig = {}, { config: { cacheDir } }) {
|
|
6
|
+
this.name = 'npm-module-provider';
|
|
7
|
+
this.moduleEntryVersionCache = new Map();
|
|
10
8
|
this.webModulesCacheDir = path.join(cacheDir, 'web_modules');
|
|
11
9
|
this.providerConfig = providerConfig;
|
|
12
10
|
}
|
|
@@ -139,9 +139,11 @@ export async function resolveNpmModuleSpecifierBlock(specifier, dest, config) {
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
class Queue {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
constructor() {
|
|
143
|
+
this.queue = [];
|
|
144
|
+
this.workingOnPromise = false;
|
|
145
|
+
this.pendingPromise = false;
|
|
146
|
+
}
|
|
145
147
|
enqueue(promise) {
|
|
146
148
|
return new Promise((resolve, reject) => {
|
|
147
149
|
this.queue.push({ promise, resolve, reject });
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.22.
|
|
7
|
+
"version": "0.22.2",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
|
|
39
|
-
"@lwrjs/diagnostics": "0.22.
|
|
40
|
-
"@lwrjs/shared-utils": "0.22.
|
|
39
|
+
"@lwrjs/diagnostics": "0.22.2",
|
|
40
|
+
"@lwrjs/shared-utils": "0.22.2",
|
|
41
41
|
"esbuild": "^0.25.2",
|
|
42
42
|
"resolve": "^1.22.8"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@lwrjs/types": "0.22.
|
|
45
|
+
"@lwrjs/types": "0.22.2",
|
|
46
46
|
"jest": "29.7.0",
|
|
47
47
|
"memfs": "^4.13.0",
|
|
48
48
|
"ts-jest": "^29.2.6"
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"volta": {
|
|
54
54
|
"extends": "../../../package.json"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "30870e466e15e6691d238e75836e9266a45203e3"
|
|
57
57
|
}
|