@lwrjs/base-view-transformer 0.8.0-alpha.8 → 0.8.0

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.
@@ -27,6 +27,7 @@ __export(exports, {
27
27
  default: () => baseViewTransformer
28
28
  });
29
29
  var import_diagnostics = __toModule(require("@lwrjs/diagnostics"));
30
+ var import_shared_utils = __toModule(require("@lwrjs/shared-utils"));
30
31
  function applyImmutableUrlsToSource(codeStringBuilder, assetReferences) {
31
32
  assetReferences.forEach((assetRef) => {
32
33
  const {
@@ -51,7 +52,7 @@ function baseViewTransformer(options, lwrGlobalContext) {
51
52
  override = await assetRegistry.resolveAssetUri({specifier, importer}, runtimeEnvironment);
52
53
  } catch (e) {
53
54
  if (e instanceof import_diagnostics.LwrUnresolvableError || e.diagnostics) {
54
- console.warn("[WARN] Asset was not found for " + (ref.url || "empty url"));
55
+ import_shared_utils.logger.warn("Asset was not found for " + (ref.url || "empty url"));
55
56
  return ref;
56
57
  }
57
58
  throw e;
package/build/es/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { LwrUnresolvableError } from '@lwrjs/diagnostics';
2
+ import { logger } from '@lwrjs/shared-utils';
2
3
  function applyImmutableUrlsToSource(codeStringBuilder, assetReferences) {
3
4
  assetReferences.forEach((assetRef) => {
4
5
  const { override, url, location: { startOffset, endOffset }, } = assetRef;
@@ -24,7 +25,7 @@ export default function baseViewTransformer(options, lwrGlobalContext) {
24
25
  if (e instanceof LwrUnresolvableError || e.diagnostics) {
25
26
  // the asset may not exist, in which case the URL is not overwritten. Log a warning so
26
27
  // the developer can see the bad asset URL, and be able to correct it
27
- console.warn('[WARN] Asset was not found for ' + (ref.url || 'empty url'));
28
+ logger.warn('Asset was not found for ' + (ref.url || 'empty url'));
28
29
  return ref;
29
30
  }
30
31
  throw e;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.8.0-alpha.8",
7
+ "version": "0.8.0",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -30,14 +30,14 @@
30
30
  "build/**/*.d.ts"
31
31
  ],
32
32
  "dependencies": {
33
- "@lwrjs/diagnostics": "0.8.0-alpha.8",
34
- "@lwrjs/shared-utils": "0.8.0-alpha.8"
33
+ "@lwrjs/diagnostics": "0.8.0",
34
+ "@lwrjs/shared-utils": "0.8.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@lwrjs/types": "0.8.0-alpha.8"
37
+ "@lwrjs/types": "0.8.0"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">=14.15.4 <19"
41
41
  },
42
- "gitHead": "345e7545d2d1d1f587567aacf0a072473c746d9e"
42
+ "gitHead": "6db460e470fb149ca282aaa293ad4f0be03ae4e8"
43
43
  }