@lwrjs/view-registry 0.12.0-alpha.4 → 0.12.0-alpha.5

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,9 @@ var import_diagnostics = __toModule(require("@lwrjs/diagnostics"));
31
31
  var import_shared_utils = __toModule(require("@lwrjs/shared-utils"));
32
32
  function setPreloadModulesMeta(specifier, uri, groups, preloads) {
33
33
  if (!uri) {
34
- throw Error(`Invalid Preload Module ${specifier}`);
34
+ throw (0, import_diagnostics.createSingleDiagnosticError)({
35
+ description: import_diagnostics.descriptions.UNRESOLVABLE.PRELOAD_MODULE(specifier)
36
+ }, import_diagnostics.LwrUnresolvableError);
35
37
  }
36
38
  const [removedVersion, version] = specifier.split("/v/");
37
39
  const normalizedSpecifier = version === import_shared_utils.VERSION_NOT_PROVIDED ? removedVersion : specifier;
@@ -1,4 +1,4 @@
1
- import { logger } from '@lwrjs/diagnostics';
1
+ import { LwrUnresolvableError, createSingleDiagnosticError, descriptions, logger } from '@lwrjs/diagnostics';
2
2
  import { explodeSpecifier, getGroupName, getVersionedModuleId, normalizeVersionToUri, VERSION_NOT_PROVIDED, getSpecifier, isGroupie, } from '@lwrjs/shared-utils';
3
3
  /**
4
4
  * keeps track of preloadModules metadata
@@ -6,7 +6,9 @@ import { explodeSpecifier, getGroupName, getVersionedModuleId, normalizeVersionT
6
6
  export function setPreloadModulesMeta(specifier, uri, groups, preloads) {
7
7
  // Throw a very specific error if we get this back and the uri property is not set
8
8
  if (!uri) {
9
- throw Error(`Invalid Preload Module ${specifier}`);
9
+ throw createSingleDiagnosticError({
10
+ description: descriptions.UNRESOLVABLE.PRELOAD_MODULE(specifier),
11
+ }, LwrUnresolvableError);
10
12
  }
11
13
  // We need to support version-less preloadModules, including version-less rootComponents.
12
14
  // Removing the "/v/version_not_provided" hack from the preloadModules specifier
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.12.0-alpha.4",
7
+ "version": "0.12.0-alpha.5",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -30,17 +30,17 @@
30
30
  "build/**/*.d.ts"
31
31
  ],
32
32
  "dependencies": {
33
- "@lwrjs/app-service": "0.12.0-alpha.4",
34
- "@lwrjs/diagnostics": "0.12.0-alpha.4",
35
- "@lwrjs/instrumentation": "0.12.0-alpha.4",
36
- "@lwrjs/shared-utils": "0.12.0-alpha.4",
33
+ "@lwrjs/app-service": "0.12.0-alpha.5",
34
+ "@lwrjs/diagnostics": "0.12.0-alpha.5",
35
+ "@lwrjs/instrumentation": "0.12.0-alpha.5",
36
+ "@lwrjs/shared-utils": "0.12.0-alpha.5",
37
37
  "lru-cache": "^10.0.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@lwrjs/types": "0.12.0-alpha.4"
40
+ "@lwrjs/types": "0.12.0-alpha.5"
41
41
  },
42
42
  "engines": {
43
43
  "node": ">=18.0.0"
44
44
  },
45
- "gitHead": "7b68e0ffa5e4d61ae97a4b020f9690ee7b08d5da"
45
+ "gitHead": "cee1db278fe57d5221b0c9f6b3c8f6244cf94ae6"
46
46
  }