@lwrjs/view-registry 0.9.0-alpha.0 → 0.9.0-alpha.2

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.
@@ -65,6 +65,9 @@ async function getHtmlResources(view, viewParams, resourceContext) {
65
65
  if (!def) {
66
66
  throw Error("Failed to find definition of resource: " + shimBundle);
67
67
  }
68
+ if (def.stream) {
69
+ def.stream.destroy();
70
+ }
68
71
  requiredResources.push(def);
69
72
  const errorShimDef = await resourceRegistry.getResource({specifier: "lwr-error-shim.js", version}, runtimeEnvironment, runtimeParams);
70
73
  if (!errorShimDef) {
@@ -65,6 +65,9 @@ async function getHtmlResources(view, viewParams, resourceContext) {
65
65
  if (!def) {
66
66
  throw Error("Failed to find definition of resource: " + shimBundle);
67
67
  }
68
+ if (def.stream) {
69
+ def.stream.destroy();
70
+ }
68
71
  requiredResources.push(def);
69
72
  const errorShimDef = await resourceRegistry.getResource({specifier: "lwr-error-shim.js", version}, runtimeEnvironment, runtimeParams);
70
73
  if (!errorShimDef) {
@@ -53,6 +53,10 @@ export async function getHtmlResources(view, viewParams, resourceContext) {
53
53
  if (!def) {
54
54
  throw Error('Failed to find definition of resource: ' + shimBundle);
55
55
  }
56
+ // HACK: preemptively closing the stream because it is never read
57
+ if (def.stream) {
58
+ def.stream.destroy();
59
+ }
56
60
  requiredResources.push(def);
57
61
  // Always inline the error shim script after the shim
58
62
  const errorShimDef = (await resourceRegistry.getResource({ specifier: 'lwr-error-shim.js', version }, runtimeEnvironment, runtimeParams));
@@ -53,6 +53,10 @@ export async function getHtmlResources(view, viewParams, resourceContext) {
53
53
  if (!def) {
54
54
  throw Error('Failed to find definition of resource: ' + shimBundle);
55
55
  }
56
+ // HACK: preemptively closing the stream because it is never read
57
+ if (def.stream) {
58
+ def.stream.destroy();
59
+ }
56
60
  requiredResources.push(def);
57
61
  // Always inline the error shim script after the shim
58
62
  const errorShimDef = (await resourceRegistry.getResource({ specifier: 'lwr-error-shim.js', version }, runtimeEnvironment, runtimeParams));
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.9.0-alpha.0",
7
+ "version": "0.9.0-alpha.2",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -30,15 +30,15 @@
30
30
  "build/**/*.d.ts"
31
31
  ],
32
32
  "dependencies": {
33
- "@lwrjs/app-service": "0.9.0-alpha.0",
34
- "@lwrjs/diagnostics": "0.9.0-alpha.0",
35
- "@lwrjs/shared-utils": "0.9.0-alpha.0"
33
+ "@lwrjs/app-service": "0.9.0-alpha.2",
34
+ "@lwrjs/diagnostics": "0.9.0-alpha.2",
35
+ "@lwrjs/shared-utils": "0.9.0-alpha.2"
36
36
  },
37
37
  "devDependencies": {
38
- "@lwrjs/types": "0.9.0-alpha.0"
38
+ "@lwrjs/types": "0.9.0-alpha.2"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=14.15.4 <19"
42
42
  },
43
- "gitHead": "6890d8619b295a49ee1ed8253a372337d83863be"
43
+ "gitHead": "bcf63de23d1a2a53fb0e961dba4396e8753710dd"
44
44
  }