@lwrjs/module-registry 0.13.0-alpha.6 → 0.13.0-alpha.7

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.
@@ -112,10 +112,10 @@ async function getModuleRecord(compiledModule, registry, runtimeParams) {
112
112
  importLocation,
113
113
  moduleNameType
114
114
  } of compiledMetadata.dynamicImports) {
115
- const {specifier, version: version2 = ""} = (0, import_shared_utils.explodeSpecifier)(moduleSpecifier);
116
115
  if (!visitedDynamicImports.has(moduleSpecifier)) {
117
116
  visitedDynamicImports.add(moduleSpecifier);
118
117
  if (moduleNameType === import_shared_utils.ModuleNameType.unresolved) {
118
+ const {specifier, version: version2 = ""} = (0, import_shared_utils.explodeSpecifier)(moduleSpecifier);
119
119
  dynamicImports.push({
120
120
  specifier,
121
121
  sourceSpecifier: moduleSpecifier,
@@ -130,7 +130,7 @@ async function getModuleRecord(compiledModule, registry, runtimeParams) {
130
130
  ]
131
131
  });
132
132
  } else if (moduleSpecifier.startsWith(".")) {
133
- const {locations, ...resolvedImport} = await resolveRelativeImport(registry, moduleSpecifier, moduleEntry, version2, location, runtimeParams);
133
+ const {locations, ...resolvedImport} = await resolveRelativeImport(registry, moduleSpecifier, moduleEntry, version, location, runtimeParams);
134
134
  dynamicImports.push({
135
135
  ...resolvedImport,
136
136
  moduleNameType: import_shared_utils.ModuleNameType.string,
@@ -94,11 +94,11 @@ export async function getModuleRecord(compiledModule, registry, runtimeParams) {
94
94
  if (compiledMetadata && compiledMetadata.dynamicImports && compiledMetadata.dynamicImports.length > 0) {
95
95
  const visitedDynamicImports = new Set(); // Avoids multiple imports to the same specifier
96
96
  for (const { moduleSpecifier, location, importLocation, moduleNameType, } of compiledMetadata.dynamicImports) {
97
- const { specifier, version = '' } = explodeSpecifier(moduleSpecifier);
98
97
  // Check for dupes first
99
98
  if (!visitedDynamicImports.has(moduleSpecifier)) {
100
99
  visitedDynamicImports.add(moduleSpecifier);
101
100
  if (moduleNameType === ModuleNameType.unresolved) {
101
+ const { specifier, version = '' } = explodeSpecifier(moduleSpecifier);
102
102
  // mark variable dynamic imports
103
103
  dynamicImports.push({
104
104
  specifier,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.13.0-alpha.6",
7
+ "version": "0.13.0-alpha.7",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -34,17 +34,17 @@
34
34
  "build/**/*.d.ts"
35
35
  ],
36
36
  "dependencies": {
37
- "@lwrjs/config": "0.13.0-alpha.6",
38
- "@lwrjs/diagnostics": "0.13.0-alpha.6",
39
- "@lwrjs/shared-utils": "0.13.0-alpha.6",
37
+ "@lwrjs/config": "0.13.0-alpha.7",
38
+ "@lwrjs/diagnostics": "0.13.0-alpha.7",
39
+ "@lwrjs/shared-utils": "0.13.0-alpha.7",
40
40
  "fs-extra": "^11.1.1",
41
41
  "rollup": "^2.78.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@lwrjs/types": "0.13.0-alpha.6"
44
+ "@lwrjs/types": "0.13.0-alpha.7"
45
45
  },
46
46
  "engines": {
47
47
  "node": ">=18.0.0"
48
48
  },
49
- "gitHead": "88d503249ff6b135416208763fae8a33b5e874de"
49
+ "gitHead": "4b77dea6ac8d473a4113ad7b345b3a37b0b8a3f8"
50
50
  }