@lwrjs/core 0.6.0-alpha.4 → 0.6.0-alpha.8
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/env-config.cjs
CHANGED
|
@@ -82,17 +82,17 @@ function apiMiddleware(app, context) {
|
|
|
82
82
|
const resolvedUris = [];
|
|
83
83
|
if (req.isSiteGeneration()) {
|
|
84
84
|
if (bundleDef.bundleRecord.imports) {
|
|
85
|
-
for (
|
|
86
|
-
const
|
|
87
|
-
const id = await (0, import_shared_utils.getVersionedModuleId)(
|
|
85
|
+
for (const theImport of bundleDef.bundleRecord.imports) {
|
|
86
|
+
const childSpecifier = theImport.specifier;
|
|
87
|
+
const id = await (0, import_shared_utils.getVersionedModuleId)(childSpecifier, moduleRegistry);
|
|
88
88
|
const uri = await moduleRegistry.resolveModuleUri(id, runtimeEnvironment, runtimeParams);
|
|
89
89
|
resolvedUris.push(uri);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
if (bundleDef.bundleRecord.dynamicImports) {
|
|
93
|
-
for (
|
|
94
|
-
const
|
|
95
|
-
const id = await (0, import_shared_utils.getVersionedModuleId)(
|
|
93
|
+
for (const theImport of bundleDef.bundleRecord.dynamicImports) {
|
|
94
|
+
const childSpecifier = theImport.specifier;
|
|
95
|
+
const id = await (0, import_shared_utils.getVersionedModuleId)(childSpecifier, moduleRegistry);
|
|
96
96
|
const uri = await moduleRegistry.resolveModuleUri(id, runtimeEnvironment, runtimeParams);
|
|
97
97
|
resolvedUris.push(uri);
|
|
98
98
|
}
|
package/build/es/env-config.js
CHANGED
|
@@ -61,20 +61,20 @@ export default function apiMiddleware(app, context) {
|
|
|
61
61
|
// TODO might be able to remove this in the future but not sure how to properly send
|
|
62
62
|
// back bundleRecord imports with absolute uris (lwc is the main one)
|
|
63
63
|
if (bundleDef.bundleRecord.imports) {
|
|
64
|
-
for (
|
|
65
|
-
const
|
|
64
|
+
for (const theImport of bundleDef.bundleRecord.imports) {
|
|
65
|
+
const childSpecifier = theImport.specifier;
|
|
66
66
|
// eslint-disable-next-line no-await-in-loop
|
|
67
|
-
const id = await getVersionedModuleId(
|
|
67
|
+
const id = await getVersionedModuleId(childSpecifier, moduleRegistry);
|
|
68
68
|
// eslint-disable-next-line no-await-in-loop
|
|
69
69
|
const uri = await moduleRegistry.resolveModuleUri(id, runtimeEnvironment, runtimeParams);
|
|
70
70
|
resolvedUris.push(uri);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
if (bundleDef.bundleRecord.dynamicImports) {
|
|
74
|
-
for (
|
|
75
|
-
const
|
|
74
|
+
for (const theImport of bundleDef.bundleRecord.dynamicImports) {
|
|
75
|
+
const childSpecifier = theImport.specifier;
|
|
76
76
|
// eslint-disable-next-line no-await-in-loop
|
|
77
|
-
const id = await getVersionedModuleId(
|
|
77
|
+
const id = await getVersionedModuleId(childSpecifier, moduleRegistry);
|
|
78
78
|
// eslint-disable-next-line no-await-in-loop
|
|
79
79
|
const uri = await moduleRegistry.resolveModuleUri(id, runtimeEnvironment, runtimeParams);
|
|
80
80
|
resolvedUris.push(uri);
|
package/package.json
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.6.0-alpha.
|
|
8
|
-
"homepage": "https://
|
|
7
|
+
"version": "0.6.0-alpha.8",
|
|
8
|
+
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/salesforce/lwr.git",
|
|
@@ -33,30 +33,31 @@
|
|
|
33
33
|
"package.cjs"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@lwrjs/app-service": "0.6.0-alpha.
|
|
37
|
-
"@lwrjs/asset-registry": "0.6.0-alpha.
|
|
38
|
-
"@lwrjs/asset-transformer": "0.6.0-alpha.
|
|
39
|
-
"@lwrjs/base-template-engine": "0.6.0-alpha.
|
|
40
|
-
"@lwrjs/base-view-provider": "0.6.0-alpha.
|
|
41
|
-
"@lwrjs/base-view-transformer": "0.6.0-alpha.
|
|
42
|
-
"@lwrjs/client-modules": "0.6.0-alpha.
|
|
43
|
-
"@lwrjs/compiler": "0.6.0-alpha.
|
|
44
|
-
"@lwrjs/diagnostics": "0.6.0-alpha.
|
|
45
|
-
"@lwrjs/fs-asset-provider": "0.6.0-alpha.
|
|
46
|
-
"@lwrjs/html-view-provider": "0.6.0-alpha.
|
|
47
|
-
"@lwrjs/loader": "0.6.0-alpha.
|
|
48
|
-
"@lwrjs/lwc-module-provider": "0.6.0-alpha.
|
|
49
|
-
"@lwrjs/lwc-ssr": "0.6.0-alpha.
|
|
50
|
-
"@lwrjs/markdown-view-provider": "0.6.0-alpha.
|
|
51
|
-
"@lwrjs/module-bundler": "0.6.0-alpha.
|
|
52
|
-
"@lwrjs/module-registry": "0.6.0-alpha.
|
|
53
|
-
"@lwrjs/npm-module-provider": "0.6.0-alpha.
|
|
54
|
-
"@lwrjs/nunjucks-view-provider": "0.6.0-alpha.
|
|
55
|
-
"@lwrjs/
|
|
56
|
-
"@lwrjs/
|
|
57
|
-
"@lwrjs/
|
|
58
|
-
"@lwrjs/
|
|
59
|
-
"@lwrjs/
|
|
36
|
+
"@lwrjs/app-service": "0.6.0-alpha.8",
|
|
37
|
+
"@lwrjs/asset-registry": "0.6.0-alpha.8",
|
|
38
|
+
"@lwrjs/asset-transformer": "0.6.0-alpha.8",
|
|
39
|
+
"@lwrjs/base-template-engine": "0.6.0-alpha.8",
|
|
40
|
+
"@lwrjs/base-view-provider": "0.6.0-alpha.8",
|
|
41
|
+
"@lwrjs/base-view-transformer": "0.6.0-alpha.8",
|
|
42
|
+
"@lwrjs/client-modules": "0.6.0-alpha.8",
|
|
43
|
+
"@lwrjs/compiler": "0.6.0-alpha.8",
|
|
44
|
+
"@lwrjs/diagnostics": "0.6.0-alpha.8",
|
|
45
|
+
"@lwrjs/fs-asset-provider": "0.6.0-alpha.8",
|
|
46
|
+
"@lwrjs/html-view-provider": "0.6.0-alpha.8",
|
|
47
|
+
"@lwrjs/loader": "0.6.0-alpha.8",
|
|
48
|
+
"@lwrjs/lwc-module-provider": "0.6.0-alpha.8",
|
|
49
|
+
"@lwrjs/lwc-ssr": "0.6.0-alpha.8",
|
|
50
|
+
"@lwrjs/markdown-view-provider": "0.6.0-alpha.8",
|
|
51
|
+
"@lwrjs/module-bundler": "0.6.0-alpha.8",
|
|
52
|
+
"@lwrjs/module-registry": "0.6.0-alpha.8",
|
|
53
|
+
"@lwrjs/npm-module-provider": "0.6.0-alpha.8",
|
|
54
|
+
"@lwrjs/nunjucks-view-provider": "0.6.0-alpha.8",
|
|
55
|
+
"@lwrjs/o11y": "0.6.0-alpha.8",
|
|
56
|
+
"@lwrjs/resource-registry": "0.6.0-alpha.8",
|
|
57
|
+
"@lwrjs/router": "0.6.0-alpha.8",
|
|
58
|
+
"@lwrjs/server": "0.6.0-alpha.8",
|
|
59
|
+
"@lwrjs/shared-utils": "0.6.0-alpha.8",
|
|
60
|
+
"@lwrjs/view-registry": "0.6.0-alpha.8",
|
|
60
61
|
"dompurify": "^2.3.0",
|
|
61
62
|
"fs-extra": "^10.0.0",
|
|
62
63
|
"jsdom": "^16.7.0",
|
|
@@ -66,7 +67,7 @@
|
|
|
66
67
|
"qs": "^6.9.4"
|
|
67
68
|
},
|
|
68
69
|
"devDependencies": {
|
|
69
|
-
"@lwrjs/types": "0.6.0-alpha.
|
|
70
|
+
"@lwrjs/types": "0.6.0-alpha.8"
|
|
70
71
|
},
|
|
71
72
|
"peerDependencies": {
|
|
72
73
|
"lwc": ">= 1.x <= 2.x"
|
|
@@ -74,5 +75,5 @@
|
|
|
74
75
|
"engines": {
|
|
75
76
|
"node": ">=14.15.4 <17"
|
|
76
77
|
},
|
|
77
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "f57b843b079ef42fdd1e727521e5a88e70bf850a"
|
|
78
79
|
}
|