@lwrjs/shared-utils 0.11.4 → 0.12.0-alpha.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.
package/build/cjs/fs.cjs CHANGED
@@ -125,11 +125,11 @@ function logMetrics(filePath) {
125
125
  if (import_diagnostics2.logger.isDebugEnabled()) {
126
126
  let count = files.get(filePath) || 0;
127
127
  if (++count % 100 === 0) {
128
- import_diagnostics2.logger.debug(`[${count}] Repeat Read ${filePath}`);
128
+ import_diagnostics2.logger.debug({label: `logMetrics`, message: `[${count}] Repeat Read ${filePath}`});
129
129
  }
130
130
  files.set(filePath, count);
131
131
  if (++fileCount % 1e3 === 0) {
132
- import_diagnostics2.logger.debug(`Open file count [${fileCount}]`);
132
+ import_diagnostics2.logger.debug({label: `logMetrics`, message: `Open file count [${fileCount}]`});
133
133
  }
134
134
  }
135
135
  }
@@ -54,7 +54,10 @@ async function getImportMetadata(compiledSource) {
54
54
  const moduleNameType = isStringLiteral ? ModuleNameType.string : ModuleNameType.unresolved;
55
55
  moduleSpecifier = isStringLiteral ? moduleSpecifier.slice(1, -1) : moduleSpecifier;
56
56
  if (import_diagnostics.logger.isDebugEnabled()) {
57
- import_diagnostics.logger.debug(`[import-metadata] Import from dynamic import ${compiledSource.slice(moduleImportLocation.ss, moduleImportLocation.se)} -> ${compiledSource.slice(moduleImportLocation.ss, moduleImportLocation.s)}`);
57
+ import_diagnostics.logger.debug({
58
+ label: `import-metadata`,
59
+ message: `Import from dynamic import ${compiledSource.slice(moduleImportLocation.ss, moduleImportLocation.se)} -> ${compiledSource.slice(moduleImportLocation.ss, moduleImportLocation.s)}`
60
+ });
58
61
  }
59
62
  dynamicImports.push({
60
63
  moduleSpecifier,
package/build/es/fs.js CHANGED
@@ -128,11 +128,11 @@ function logMetrics(filePath) {
128
128
  if (logger.isDebugEnabled()) {
129
129
  let count = files.get(filePath) || 0;
130
130
  if (++count % 100 === 0) {
131
- logger.debug(`[${count}] Repeat Read ${filePath}`);
131
+ logger.debug({ label: `logMetrics`, message: `[${count}] Repeat Read ${filePath}` });
132
132
  }
133
133
  files.set(filePath, count);
134
134
  if (++fileCount % 1000 === 0) {
135
- logger.debug(`Open file count [${fileCount}]`);
135
+ logger.debug({ label: `logMetrics`, message: `Open file count [${fileCount}]` });
136
136
  }
137
137
  }
138
138
  }
@@ -28,7 +28,10 @@ export async function getImportMetadata(compiledSource) {
28
28
  moduleSpecifier = isStringLiteral ? moduleSpecifier.slice(1, -1) : moduleSpecifier; // remove quotes
29
29
  // Expecting: import(rootSpecifier) -> import(
30
30
  if (logger.isDebugEnabled()) {
31
- logger.debug(`[import-metadata] Import from dynamic import ${compiledSource.slice(moduleImportLocation.ss, moduleImportLocation.se)} -> ${compiledSource.slice(moduleImportLocation.ss, moduleImportLocation.s)}`);
31
+ logger.debug({
32
+ label: `import-metadata`,
33
+ message: `Import from dynamic import ${compiledSource.slice(moduleImportLocation.ss, moduleImportLocation.se)} -> ${compiledSource.slice(moduleImportLocation.ss, moduleImportLocation.s)}`,
34
+ });
32
35
  }
33
36
  dynamicImports.push({
34
37
  moduleSpecifier,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.11.4",
7
+ "version": "0.12.0-alpha.0",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -37,7 +37,7 @@
37
37
  "build/**/*.d.ts"
38
38
  ],
39
39
  "dependencies": {
40
- "@lwrjs/diagnostics": "0.11.4",
40
+ "@lwrjs/diagnostics": "0.12.0-alpha.0",
41
41
  "es-module-lexer": "^1.3.0",
42
42
  "fast-json-stable-stringify": "^2.1.0",
43
43
  "magic-string": "^0.30.0",
@@ -50,12 +50,12 @@
50
50
  "slugify": "^1.4.5"
51
51
  },
52
52
  "devDependencies": {
53
- "@lwrjs/types": "0.11.4",
53
+ "@lwrjs/types": "0.12.0-alpha.0",
54
54
  "@types/mime-types": "2.1.1",
55
55
  "@types/path-to-regexp": "^1.7.0"
56
56
  },
57
57
  "engines": {
58
58
  "node": ">=16.0.0"
59
59
  },
60
- "gitHead": "5528cfc12174d4800ff42db1691d14c5d194f7d6"
60
+ "gitHead": "e79862bc238ededc3cf61f0d2c7d8120d1105a6b"
61
61
  }