@lwrjs/lwc-module-provider 0.8.0-alpha.1 → 0.8.0-alpha.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/index.cjs +2 -6
- package/build/es/index.js +2 -6
- package/package.json +4 -4
package/build/cjs/index.cjs
CHANGED
|
@@ -74,9 +74,7 @@ var LwcModuleProvider = class {
|
|
|
74
74
|
}
|
|
75
75
|
async getModule(moduleId) {
|
|
76
76
|
const id = (0, import_shared_utils.getSpecifier)(moduleId);
|
|
77
|
-
return this.inflightGetModuleJobs.execute(id, () =>
|
|
78
|
-
return this.createGetModuleJob(moduleId);
|
|
79
|
-
}, this);
|
|
77
|
+
return this.inflightGetModuleJobs.execute(id, () => this.createGetModuleJob(moduleId));
|
|
80
78
|
}
|
|
81
79
|
async createGetModuleJob(moduleId) {
|
|
82
80
|
const {watcher, watchedModuleContextMap, lwcCacheDir, lwcCacheIndex, moduleFsCacheEnabled} = this;
|
|
@@ -146,9 +144,7 @@ var LwcModuleProvider = class {
|
|
|
146
144
|
}
|
|
147
145
|
}
|
|
148
146
|
const cacheKey = `${specifier}@${version}@${importer}`;
|
|
149
|
-
return this.inflightGetModuleEntryJobs.execute(cacheKey,
|
|
150
|
-
return this.createModuleEntry({specifier, importer, version});
|
|
151
|
-
});
|
|
147
|
+
return this.inflightGetModuleEntryJobs.execute(cacheKey, () => this.createModuleEntry({specifier, importer, version}));
|
|
152
148
|
}
|
|
153
149
|
async createModuleEntry({
|
|
154
150
|
specifier,
|
package/build/es/index.js
CHANGED
|
@@ -43,9 +43,7 @@ export default class LwcModuleProvider {
|
|
|
43
43
|
}
|
|
44
44
|
async getModule(moduleId) {
|
|
45
45
|
const id = getSpecifier(moduleId);
|
|
46
|
-
return this.inflightGetModuleJobs.execute(id, () =>
|
|
47
|
-
return this.createGetModuleJob(moduleId);
|
|
48
|
-
}, this);
|
|
46
|
+
return this.inflightGetModuleJobs.execute(id, () => this.createGetModuleJob(moduleId));
|
|
49
47
|
}
|
|
50
48
|
/**
|
|
51
49
|
* Create a new Job to fetch a module by id so we are not duplicating effort when multiple requests come in
|
|
@@ -118,9 +116,7 @@ export default class LwcModuleProvider {
|
|
|
118
116
|
}
|
|
119
117
|
}
|
|
120
118
|
const cacheKey = `${specifier}@${version}@${importer}`;
|
|
121
|
-
return this.inflightGetModuleEntryJobs.execute(cacheKey,
|
|
122
|
-
return this.createModuleEntry({ specifier, importer, version });
|
|
123
|
-
});
|
|
119
|
+
return this.inflightGetModuleEntryJobs.execute(cacheKey, () => this.createModuleEntry({ specifier, importer, version }));
|
|
124
120
|
}
|
|
125
121
|
async createModuleEntry({ specifier, importer, version, }) {
|
|
126
122
|
// Strip any filenames out of the specifier
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.8.0-alpha.
|
|
7
|
+
"version": "0.8.0-alpha.4",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/preset-typescript": "^7.9.0",
|
|
34
34
|
"@lwc/module-resolver": "2.17.0",
|
|
35
|
-
"@lwrjs/shared-utils": "0.8.0-alpha.
|
|
35
|
+
"@lwrjs/shared-utils": "0.8.0-alpha.4",
|
|
36
36
|
"es-module-lexer": "^0.3.18"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@lwrjs/types": "0.8.0-alpha.
|
|
39
|
+
"@lwrjs/types": "0.8.0-alpha.4"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=14.15.4 <19"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "a0cca59d2ab1e7596f03812d00180f898217ce4d"
|
|
45
45
|
}
|