@lwrjs/npm-module-provider 0.17.2-alpha.30 → 0.17.2-alpha.31

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,9 +2,11 @@ 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();
5
9
  constructor(providerConfig = {}, { config: { cacheDir } }) {
6
- this.name = 'npm-module-provider';
7
- this.moduleEntryVersionCache = new Map();
8
10
  this.webModulesCacheDir = path.join(cacheDir, 'web_modules');
9
11
  this.providerConfig = providerConfig;
10
12
  }
@@ -123,11 +123,9 @@ export async function resolveNpmModuleSpecifierBlock(specifier, dest, config) {
123
123
  }
124
124
  }
125
125
  class Queue {
126
- constructor() {
127
- this.queue = [];
128
- this.workingOnPromise = false;
129
- this.pendingPromise = false;
130
- }
126
+ queue = [];
127
+ workingOnPromise = false;
128
+ pendingPromise = false;
131
129
  enqueue(promise) {
132
130
  return new Promise((resolve, reject) => {
133
131
  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.17.2-alpha.30",
7
+ "version": "0.17.2-alpha.31",
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.17.2-alpha.30",
40
- "@lwrjs/shared-utils": "0.17.2-alpha.30",
39
+ "@lwrjs/diagnostics": "0.17.2-alpha.31",
40
+ "@lwrjs/shared-utils": "0.17.2-alpha.31",
41
41
  "esbuild": "^0.9.7",
42
42
  "resolve": "^1.22.8"
43
43
  },
44
44
  "devDependencies": {
45
- "@lwrjs/types": "0.17.2-alpha.30",
45
+ "@lwrjs/types": "0.17.2-alpha.31",
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": "818bbb13d2d4b14d128c4c4f23229c9ce7458a23"
56
+ "gitHead": "bbb087ab080321047b10bbcda40e88e69b6a69a5"
57
57
  }