@lwrjs/diagnostics 0.10.0-alpha.9 → 0.10.1
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/descriptions/compiler.cjs +1 -1
- package/build/cjs/descriptions/configParser.cjs +4 -0
- package/build/es/descriptions/compiler.d.ts +1 -1
- package/build/es/descriptions/compiler.js +1 -1
- package/build/es/descriptions/configParser.d.ts +8 -1
- package/build/es/descriptions/configParser.js +4 -0
- package/build/es/descriptions/core-diagnostics.d.ts +1 -1
- package/build/es/descriptions/index.d.ts +7 -0
- package/build/es/errors.d.ts +1 -1
- package/build/es/types.d.ts +2 -2
- package/package.json +4 -4
|
@@ -28,7 +28,7 @@ __export(exports, {
|
|
|
28
28
|
});
|
|
29
29
|
var import_core_diagnostics = __toModule(require("./core-diagnostics"));
|
|
30
30
|
var compiler = (0, import_core_diagnostics.createDiagnosticsCategory)({
|
|
31
|
-
|
|
31
|
+
UMD_TRANSFORM: {
|
|
32
32
|
category: "compile/umd_transform",
|
|
33
33
|
message: `Error`
|
|
34
34
|
}
|
|
@@ -122,5 +122,9 @@ var configParser = (0, import_core_diagnostics.createDiagnosticsCategory)({
|
|
|
122
122
|
COMPILE_LOCKER_SSR: () => ({
|
|
123
123
|
category: "lwrConfig/invalidSchema",
|
|
124
124
|
message: 'If "locker.enabled: true" and any route sets "ssr: true", then "locker.clientOnly" must also be set to "true"'
|
|
125
|
+
}),
|
|
126
|
+
DUPLICATE_BUNDLE_CONFIG: (dupeIds) => ({
|
|
127
|
+
category: "lwrConfig/invalidSchema",
|
|
128
|
+
message: `Found duplicate specifiers in BundleConfig: [${dupeIds}]`
|
|
125
129
|
})
|
|
126
130
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DiagnosticLocation } from '../types.js';
|
|
1
|
+
import type { DiagnosticLocation } from '../types.js';
|
|
2
2
|
export declare const configParser: {
|
|
3
3
|
TEST: Omit<{
|
|
4
4
|
message: string;
|
|
@@ -170,5 +170,12 @@ export declare const configParser: {
|
|
|
170
170
|
advice: import("../types.js").DiagnosticAdvice;
|
|
171
171
|
message: string;
|
|
172
172
|
};
|
|
173
|
+
DUPLICATE_BUNDLE_CONFIG: (dupeIds: string[]) => Omit<{
|
|
174
|
+
category: "lwrConfig/invalidSchema";
|
|
175
|
+
message: string;
|
|
176
|
+
}, "message" | "advice"> & {
|
|
177
|
+
advice: import("../types.js").DiagnosticAdvice;
|
|
178
|
+
message: string;
|
|
179
|
+
};
|
|
173
180
|
};
|
|
174
181
|
//# sourceMappingURL=configParser.d.ts.map
|
|
@@ -95,5 +95,9 @@ export const configParser = createDiagnosticsCategory({
|
|
|
95
95
|
category: 'lwrConfig/invalidSchema',
|
|
96
96
|
message: 'If "locker.enabled: true" and any route sets "ssr: true", then "locker.clientOnly" must also be set to "true"',
|
|
97
97
|
}),
|
|
98
|
+
DUPLICATE_BUNDLE_CONFIG: (dupeIds) => ({
|
|
99
|
+
category: 'lwrConfig/invalidSchema',
|
|
100
|
+
message: `Found duplicate specifiers in BundleConfig: [${dupeIds}]`,
|
|
101
|
+
}),
|
|
98
102
|
});
|
|
99
103
|
//# sourceMappingURL=configParser.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DiagnosticDescription, DiagnosticAdvice, StaticMarkup } from '../types';
|
|
1
|
+
import type { DiagnosticDescription, DiagnosticAdvice, StaticMarkup } from '../types';
|
|
2
2
|
type InputMessagesFactory = (...params: any[]) => Partial<DiagnosticDescription>;
|
|
3
3
|
export type InputMessagesCategory = {
|
|
4
4
|
[key: string]: Partial<DiagnosticDescription> | InputMessagesFactory;
|
|
@@ -170,6 +170,13 @@ export declare const descriptions: {
|
|
|
170
170
|
advice: import("../types.js").DiagnosticAdvice;
|
|
171
171
|
message: string;
|
|
172
172
|
};
|
|
173
|
+
DUPLICATE_BUNDLE_CONFIG: (dupeIds: string[]) => Omit<{
|
|
174
|
+
category: "lwrConfig/invalidSchema";
|
|
175
|
+
message: string;
|
|
176
|
+
}, "message" | "advice"> & {
|
|
177
|
+
advice: import("../types.js").DiagnosticAdvice;
|
|
178
|
+
message: string;
|
|
179
|
+
};
|
|
173
180
|
};
|
|
174
181
|
UNRESOLVABLE: {
|
|
175
182
|
ASSET: (assetPath: string) => Omit<{
|
package/build/es/errors.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { Diagnostic, Diagnostics } from './types.js';
|
|
2
|
+
import type { Diagnostic, Diagnostics } from './types.js';
|
|
3
3
|
export declare function isNodeError(error: unknown): error is NodeJS.ErrnoException;
|
|
4
4
|
export declare function createSingleDiagnosticError(diag: Diagnostic, errorClass?: typeof DiagnosticsError): DiagnosticsError;
|
|
5
5
|
export declare class DiagnosticsError extends Error {
|
package/build/es/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DiagnosticCategory } from './categories';
|
|
2
|
-
import { Dict } from '@lwrjs/types';
|
|
1
|
+
import type { DiagnosticCategory } from './categories';
|
|
2
|
+
import type { Dict } from '@lwrjs/types';
|
|
3
3
|
export type StaticMarkup = string;
|
|
4
4
|
export type SourceLocation = {
|
|
5
5
|
filename?: string;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.10.
|
|
7
|
+
"version": "0.10.1",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"build/**/*.d.ts"
|
|
31
31
|
],
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@lwrjs/types": "0.10.
|
|
33
|
+
"@lwrjs/types": "0.10.1"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
|
-
"node": ">=16.0.0
|
|
36
|
+
"node": ">=16.0.0"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "7251846486eb5a1f60bc418fac7967effea57898"
|
|
39
39
|
}
|