@lwrjs/shared-utils 0.9.0-alpha.22 → 0.9.0-alpha.24

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.
@@ -94,7 +94,7 @@ async function traverse(module2, depth, flattened, graphIdx, visited, defRegistr
94
94
  }
95
95
  async function flatten(versionedSpecifier, flattened, idx, visited) {
96
96
  const node = visited.get(versionedSpecifier);
97
- if (node) {
97
+ if (flattened[idx]?.static && node?.static) {
98
98
  node.static.forEach(async (imp) => {
99
99
  if (!flattened[idx].static.includes(imp)) {
100
100
  flattened[idx].static.push(imp);
@@ -74,7 +74,8 @@ var DEFAULT_LWR_BOOTSTRAP_CONFIG = {
74
74
  workers: {},
75
75
  services: [],
76
76
  configAsSrc: false,
77
- ssr: false
77
+ ssr: false,
78
+ module: void 0
78
79
  };
79
80
  function normalizeVersionToUri(version) {
80
81
  return version.replace(/\./g, "_");
package/build/es/graph.js CHANGED
@@ -94,7 +94,7 @@ defRegistry, runtimeEnvironment, runtimeParams) {
94
94
  }
95
95
  async function flatten(versionedSpecifier, flattened, idx, visited) {
96
96
  const node = visited.get(versionedSpecifier);
97
- if (node) {
97
+ if (flattened[idx]?.static && node?.static) {
98
98
  node.static.forEach(async (imp) => {
99
99
  if (!flattened[idx].static.includes(imp)) {
100
100
  flattened[idx].static.push(imp);
@@ -21,6 +21,7 @@ export const DEFAULT_LWR_BOOTSTRAP_CONFIG = {
21
21
  services: [],
22
22
  configAsSrc: false,
23
23
  ssr: false,
24
+ module: undefined,
24
25
  };
25
26
  /**
26
27
  * Turn the dots in a version into underscores
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.9.0-alpha.22",
7
+ "version": "0.9.0-alpha.24",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -61,13 +61,13 @@
61
61
  "rollup": "~2.45.2"
62
62
  },
63
63
  "devDependencies": {
64
- "@lwrjs/diagnostics": "0.9.0-alpha.22",
65
- "@lwrjs/types": "0.9.0-alpha.22",
64
+ "@lwrjs/diagnostics": "0.9.0-alpha.24",
65
+ "@lwrjs/types": "0.9.0-alpha.24",
66
66
  "@types/mime-types": "2.1.1",
67
67
  "@types/path-to-regexp": "^1.7.0"
68
68
  },
69
69
  "engines": {
70
- "node": ">=14.15.4 <19"
70
+ "node": ">=16.0.0 <20"
71
71
  },
72
- "gitHead": "d7e7a6e84df652a09d78b9b0fadca271a438a01c"
72
+ "gitHead": "94326d9e8c80254cfab9c17b2235b10fdee13b4d"
73
73
  }