@lwrjs/label-module-provider 0.5.11-alpha.1 → 0.6.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/utils.cjs +1 -1
- package/build/cjs/validation.cjs +1 -1
- package/build/es/utils.js +1 -1
- package/build/es/validation.js +1 -1
- package/package.json +6 -6
package/build/cjs/utils.cjs
CHANGED
|
@@ -69,7 +69,7 @@ function getLabels(labelDir, locale) {
|
|
|
69
69
|
let diagnosticError = e;
|
|
70
70
|
if (!(e instanceof import_diagnostics.LwrUnresolvableError)) {
|
|
71
71
|
diagnosticError = (0, import_diagnostics.createSingleDiagnosticError)({
|
|
72
|
-
description: import_diagnostics.descriptions.UNRESOLVABLE.LABEL_MODULE(localePath, e)
|
|
72
|
+
description: import_diagnostics.descriptions.UNRESOLVABLE.LABEL_MODULE(localePath, e.message)
|
|
73
73
|
}, import_diagnostics.LwrUnresolvableError);
|
|
74
74
|
}
|
|
75
75
|
console.error(diagnosticError);
|
package/build/cjs/validation.cjs
CHANGED
|
@@ -58,7 +58,7 @@ function validateAndParse(localePath) {
|
|
|
58
58
|
throw new Error(ajv.errorsText(validate.errors, {separator: "\n"}));
|
|
59
59
|
} catch (e) {
|
|
60
60
|
throw (0, import_diagnostics.createSingleDiagnosticError)({
|
|
61
|
-
description: import_diagnostics.descriptions.UNRESOLVABLE.LABEL_MODULE(localePath, e)
|
|
61
|
+
description: import_diagnostics.descriptions.UNRESOLVABLE.LABEL_MODULE(localePath, e.message)
|
|
62
62
|
}, import_diagnostics.LwrUnresolvableError);
|
|
63
63
|
}
|
|
64
64
|
}
|
package/build/es/utils.js
CHANGED
|
@@ -71,7 +71,7 @@ export function getLabels(labelDir, locale) {
|
|
|
71
71
|
let diagnosticError = e;
|
|
72
72
|
if (!(e instanceof LwrUnresolvableError)) {
|
|
73
73
|
diagnosticError = createSingleDiagnosticError({
|
|
74
|
-
description: descriptions.UNRESOLVABLE.LABEL_MODULE(localePath, e),
|
|
74
|
+
description: descriptions.UNRESOLVABLE.LABEL_MODULE(localePath, e.message),
|
|
75
75
|
}, LwrUnresolvableError);
|
|
76
76
|
}
|
|
77
77
|
console.error(diagnosticError);
|
package/build/es/validation.js
CHANGED
|
@@ -39,7 +39,7 @@ export function validateAndParse(localePath) {
|
|
|
39
39
|
}
|
|
40
40
|
catch (e) {
|
|
41
41
|
throw createSingleDiagnosticError({
|
|
42
|
-
description: descriptions.UNRESOLVABLE.LABEL_MODULE(localePath, e),
|
|
42
|
+
description: descriptions.UNRESOLVABLE.LABEL_MODULE(localePath, e.message),
|
|
43
43
|
}, LwrUnresolvableError);
|
|
44
44
|
}
|
|
45
45
|
}
|
package/package.json
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.
|
|
8
|
-
"homepage": "https://
|
|
7
|
+
"version": "0.6.0-alpha.10",
|
|
8
|
+
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/salesforce/lwr.git",
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
"build/**/*.d.ts"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@lwrjs/diagnostics": "0.
|
|
34
|
-
"@lwrjs/shared-utils": "0.
|
|
33
|
+
"@lwrjs/diagnostics": "0.6.0-alpha.10",
|
|
34
|
+
"@lwrjs/shared-utils": "0.6.0-alpha.10",
|
|
35
35
|
"ajv": "6.12.6"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@lwrjs/types": "0.
|
|
38
|
+
"@lwrjs/types": "0.6.0-alpha.10"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=14.15.4 <17"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "85914e17d6214748489426252dd8fa41c8938b8f"
|
|
44
44
|
}
|