@lwrjs/shared-utils 0.10.0-alpha.0 → 0.10.0-alpha.10
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/logger.cjs
CHANGED
|
@@ -128,8 +128,8 @@ function logError(err, additionalInfo) {
|
|
|
128
128
|
log(ERROR, stringifyError(err), additionalInfo);
|
|
129
129
|
}
|
|
130
130
|
if (err && err.message) {
|
|
131
|
-
|
|
132
|
-
console.error("[
|
|
131
|
+
console.error("[31m%s[0m", `[${ERROR}]${gap(err.message)}${err.message}`);
|
|
132
|
+
console.error("[90m%s[0m", err);
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
var logger = {
|
package/build/es/identity.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const DEFAULT_LWR_LOCKER_CONFIG: {
|
|
|
15
15
|
trustedComponents: string[];
|
|
16
16
|
};
|
|
17
17
|
export declare const DEFAULT_LWR_BOOTSTRAP_CONFIG: NormalizedLwrAppBootstrapConfig;
|
|
18
|
-
|
|
18
|
+
type ModuleIdentifierPartial = Partial<AbstractModuleId>;
|
|
19
19
|
/**
|
|
20
20
|
* Turn the dots in a version into underscores
|
|
21
21
|
* @param version
|
package/build/es/logger.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
type LEVEL = 'verbose' | 'debug' | 'info' | 'warn' | 'error';
|
|
2
2
|
export declare const VERBOSE: LEVEL;
|
|
3
3
|
export declare const DEBUG: LEVEL;
|
|
4
4
|
export declare const INFO: LEVEL;
|
|
5
5
|
export declare const WARN: LEVEL;
|
|
6
6
|
export declare const ERROR: LEVEL;
|
|
7
|
-
|
|
7
|
+
type LoggerOptions = {
|
|
8
8
|
dedupe?: Set<string>;
|
|
9
9
|
};
|
|
10
10
|
declare function log(level: string, message: string, additionalInfo?: any): void;
|
package/build/es/logger.js
CHANGED
|
@@ -105,8 +105,8 @@ function logError(err, additionalInfo) {
|
|
|
105
105
|
}
|
|
106
106
|
// If this is an error with a message update the message header and log as is...
|
|
107
107
|
if (err && err.message) {
|
|
108
|
-
|
|
109
|
-
console.error('\x1b[
|
|
108
|
+
console.error('\x1b[31m%s\x1b[0m', `[${ERROR}]${gap(err.message)}${err.message}`);
|
|
109
|
+
console.error('\x1b[90m%s\x1b[0m', err);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
export const logger = {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.10.0-alpha.
|
|
7
|
+
"version": "0.10.0-alpha.10",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"es-module-lexer": "^0.3.18",
|
|
49
49
|
"fast-json-stable-stringify": "^2.1.0",
|
|
50
|
-
"magic-string": "^0.
|
|
50
|
+
"magic-string": "^0.30.0",
|
|
51
51
|
"mime-types": "^2.1.33",
|
|
52
52
|
"ms": "^2.1.3",
|
|
53
53
|
"parse5-sax-parser": "^6.0.1",
|
|
@@ -56,19 +56,19 @@
|
|
|
56
56
|
"slugify": "^1.4.5"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@locker/compiler": "0.
|
|
59
|
+
"@locker/compiler": "0.19.0",
|
|
60
60
|
"chokidar": "^3.5.3",
|
|
61
61
|
"esbuild": "^0.9.7",
|
|
62
|
-
"rollup": "
|
|
62
|
+
"rollup": "^2.78.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@lwrjs/diagnostics": "0.10.0-alpha.
|
|
66
|
-
"@lwrjs/types": "0.10.0-alpha.
|
|
65
|
+
"@lwrjs/diagnostics": "0.10.0-alpha.10",
|
|
66
|
+
"@lwrjs/types": "0.10.0-alpha.10",
|
|
67
67
|
"@types/mime-types": "2.1.1",
|
|
68
68
|
"@types/path-to-regexp": "^1.7.0"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": ">=16.0.0 <20"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "81dd6125be1023415344b59c4dcd977c8dbaf7f5"
|
|
74
74
|
}
|