@lwrjs/module-registry 0.22.8 → 0.22.9

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.
@@ -31,7 +31,7 @@ var import_shared_utils = __toModule(require("@lwrjs/shared-utils"));
31
31
  async function resolveRelativeImport(registry, moduleSpecifier, importeeEntry, version, location, runtimeParams) {
32
32
  const [importeeSpecifier, importeePath] = importeeEntry.specifier.split("#");
33
33
  if (importeePath) {
34
- moduleSpecifier = `./${import_path.default.join(importeePath, "..", moduleSpecifier)}`;
34
+ moduleSpecifier = `./${(0, import_shared_utils.toForwardSlash)(import_path.default.join(importeePath, "..", moduleSpecifier))}`;
35
35
  }
36
36
  const specifier = `${importeeSpecifier}#${moduleSpecifier.substr(2)}`;
37
37
  const {namespace, name} = (0, import_shared_utils.explodeSpecifier)(specifier);
@@ -1,5 +1,5 @@
1
1
  import path from 'path';
2
- import { explodeSpecifier, getImportMetadata, ModuleNameType } from '@lwrjs/shared-utils';
2
+ import { explodeSpecifier, getImportMetadata, ModuleNameType, toForwardSlash } from '@lwrjs/shared-utils';
3
3
  async function resolveRelativeImport(registry, moduleSpecifier, importeeEntry, version, location, runtimeParams) {
4
4
  // Resolve any relative parts in the import specifier
5
5
  // eg: "c/app#app.html" => "c/app"
@@ -8,7 +8,7 @@ async function resolveRelativeImport(registry, moduleSpecifier, importeeEntry, v
8
8
  if (importeePath) {
9
9
  // If the importer is ALSO a relative path, join it with the import string to get a path relative to the package specifier
10
10
  // 'some/module#folder/file' imports './siblingFile' => 'some/module#folder/siblingFile'
11
- moduleSpecifier = `./${path.join(importeePath, '..', moduleSpecifier)}`;
11
+ moduleSpecifier = `./${toForwardSlash(path.join(importeePath, '..', moduleSpecifier))}`;
12
12
  }
13
13
  // Maintain a # in the specifier for the relative import,
14
14
  // so it can be identified later
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.22.8",
7
+ "version": "0.22.9",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -37,18 +37,18 @@
37
37
  "build": "tsc -b"
38
38
  },
39
39
  "dependencies": {
40
- "@lwrjs/config": "0.22.8",
41
- "@lwrjs/diagnostics": "0.22.8",
42
- "@lwrjs/shared-utils": "0.22.8",
40
+ "@lwrjs/config": "0.22.9",
41
+ "@lwrjs/diagnostics": "0.22.9",
42
+ "@lwrjs/shared-utils": "0.22.9",
43
43
  "fs-extra": "^11.1.1",
44
44
  "rollup": "^2.80.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@lwrjs/types": "0.22.8",
47
+ "@lwrjs/types": "0.22.9",
48
48
  "memfs": "^4.13.0"
49
49
  },
50
50
  "engines": {
51
51
  "node": ">=22.0.0"
52
52
  },
53
- "gitHead": "66f71f33f5b12fa4e7c7969f0a6239a590c999d1"
53
+ "gitHead": "d0c112cd7b6eb940d6e554d0bbd93fb535465fdc"
54
54
  }