@lwrjs/client-modules 0.4.2 → 0.4.6

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/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.4.2",
7
+ "version": "0.4.6",
8
8
  "homepage": "https://lwr.dev/",
9
9
  "repository": {
10
10
  "type": "git",
@@ -31,8 +31,8 @@
31
31
  "build:bundle": "rollup --config scripts/rollup.moduleBundle.config.cjs"
32
32
  },
33
33
  "dependencies": {
34
- "@locker/sandbox": "^0.13.5",
35
- "@lwrjs/shared-utils": "0.4.2"
34
+ "@locker/sandbox": "^0.14.4",
35
+ "@lwrjs/shared-utils": "0.4.6"
36
36
  },
37
37
  "lwc": {
38
38
  "modules": [
@@ -43,7 +43,6 @@
43
43
  "expose": [
44
44
  "lwr/hmr",
45
45
  "lwr/init",
46
- "lwr/esmLoader",
47
46
  "lwr/servicesESM",
48
47
  "lwr/lockerDefine",
49
48
  "lwr/lockerSandbox"
@@ -52,5 +51,5 @@
52
51
  "engines": {
53
52
  "node": ">=14.15.4 <15"
54
53
  },
55
- "gitHead": "9999bb34bcd78ce39e5b56e5f602d5ecc22031b9"
54
+ "gitHead": "71f599b20c35d612e55312e94804a97e7cc778e1"
56
55
  }
@@ -1 +0,0 @@
1
- function o(o,e){let n=o;if(n.indexOf(":")<0&&!n.startsWith("/")){const t=globalThis.LWR.endpoints;t&&t.uris&&t.uris.module&&(n=t.uris.module+encodeURIComponent(o),e&&(n+="?importer="+encodeURIComponent(e)))}return import(n)}export{o as load};
@@ -1,18 +0,0 @@
1
- export function load(specifier, importer) {
2
- let uri = specifier; // do not alter the specifier if it is already a URL
3
-
4
- if (uri.indexOf(':') < 0 && !uri.startsWith('/')) {
5
- // add the specifier and importer to the default URI
6
- const endpoints = globalThis.LWR.endpoints;
7
-
8
- if (endpoints && endpoints.uris && endpoints.uris.module) {
9
- uri = endpoints.uris.module + encodeURIComponent(specifier);
10
-
11
- if (importer) {
12
- uri += `?importer=${encodeURIComponent(importer)}`;
13
- }
14
- }
15
- }
16
-
17
- return import(uri);
18
- }