@lwrjs/diagnostics 0.15.0-alpha.2 → 0.15.0-alpha.20
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.
|
@@ -91,6 +91,14 @@ var configParser = (0, import_core_diagnostics.createDiagnosticsCategory)({
|
|
|
91
91
|
category: "lwrConfig/invalidSchema",
|
|
92
92
|
message: `Property "${configProperty}" must be a URI path string which starts but does not end with a slash, received ${actualProp}`
|
|
93
93
|
}),
|
|
94
|
+
INVALID_ORIGIN: (configProperty, actualProp) => ({
|
|
95
|
+
category: "lwrConfig/invalidSchema",
|
|
96
|
+
message: `Property "${configProperty}" must be a full URI string with a scheme (eg: "https://site.com"), received ${actualProp}`
|
|
97
|
+
}),
|
|
98
|
+
INVALID_FILE_PATTERN: (configProperty, actualProp) => ({
|
|
99
|
+
category: "lwrConfig/invalidSchema",
|
|
100
|
+
message: `Propery "${configProperty}" must be in the .[fileExtension] format(.css, .js, etc.,) but received ${actualProp}`
|
|
101
|
+
}),
|
|
94
102
|
INVALID_BASEPATH: (configProperty, actualProp) => ({
|
|
95
103
|
category: "lwrConfig/invalidSchema",
|
|
96
104
|
message: `Property "${configProperty}" must be a URI base path string which starts with a slash, received ${actualProp}`
|
|
@@ -138,5 +146,9 @@ var configParser = (0, import_core_diagnostics.createDiagnosticsCategory)({
|
|
|
138
146
|
SSR_WITHOUT_PRELOAD: (configProperty) => ({
|
|
139
147
|
category: "lwrConfig/invalidSchema",
|
|
140
148
|
message: `A route cannot have preloadData disabled when ssr is enabled:": ${configProperty}`
|
|
149
|
+
}),
|
|
150
|
+
INCOMPLETE_CORE_PROXY: () => ({
|
|
151
|
+
category: "lwrConfig/invalidSchema",
|
|
152
|
+
message: `The coreProxy must have either a "servername" or a "sitePath"`
|
|
141
153
|
})
|
|
142
154
|
});
|
|
@@ -69,6 +69,14 @@ export declare const configParser: import("../types.js").OutputMessagesCategory<
|
|
|
69
69
|
category: "lwrConfig/invalidSchema";
|
|
70
70
|
message: string;
|
|
71
71
|
};
|
|
72
|
+
INVALID_ORIGIN: (configProperty: string, actualProp: string) => {
|
|
73
|
+
category: "lwrConfig/invalidSchema";
|
|
74
|
+
message: string;
|
|
75
|
+
};
|
|
76
|
+
INVALID_FILE_PATTERN: (configProperty: string, actualProp: string) => {
|
|
77
|
+
category: "lwrConfig/invalidSchema";
|
|
78
|
+
message: string;
|
|
79
|
+
};
|
|
72
80
|
INVALID_BASEPATH: (configProperty: string, actualProp: string) => {
|
|
73
81
|
category: "lwrConfig/invalidSchema";
|
|
74
82
|
message: string;
|
|
@@ -117,5 +125,9 @@ export declare const configParser: import("../types.js").OutputMessagesCategory<
|
|
|
117
125
|
category: "lwrConfig/invalidSchema";
|
|
118
126
|
message: string;
|
|
119
127
|
};
|
|
128
|
+
INCOMPLETE_CORE_PROXY: () => {
|
|
129
|
+
category: "lwrConfig/invalidSchema";
|
|
130
|
+
message: string;
|
|
131
|
+
};
|
|
120
132
|
}>;
|
|
121
133
|
//# sourceMappingURL=configParser.d.ts.map
|
|
@@ -63,6 +63,14 @@ export const configParser = createDiagnosticsCategory({
|
|
|
63
63
|
category: 'lwrConfig/invalidSchema',
|
|
64
64
|
message: `Property "${configProperty}" must be a URI path string which starts but does not end with a slash, received ${actualProp}`,
|
|
65
65
|
}),
|
|
66
|
+
INVALID_ORIGIN: (configProperty, actualProp) => ({
|
|
67
|
+
category: 'lwrConfig/invalidSchema',
|
|
68
|
+
message: `Property "${configProperty}" must be a full URI string with a scheme (eg: "https://site.com"), received ${actualProp}`,
|
|
69
|
+
}),
|
|
70
|
+
INVALID_FILE_PATTERN: (configProperty, actualProp) => ({
|
|
71
|
+
category: 'lwrConfig/invalidSchema',
|
|
72
|
+
message: `Propery "${configProperty}" must be in the .[fileExtension] format(.css, .js, etc.,) but received ${actualProp}`,
|
|
73
|
+
}),
|
|
66
74
|
INVALID_BASEPATH: (configProperty, actualProp) => ({
|
|
67
75
|
category: 'lwrConfig/invalidSchema',
|
|
68
76
|
message: `Property "${configProperty}" must be a URI base path string which starts with a slash, received ${actualProp}`,
|
|
@@ -111,5 +119,9 @@ export const configParser = createDiagnosticsCategory({
|
|
|
111
119
|
category: 'lwrConfig/invalidSchema',
|
|
112
120
|
message: `A route cannot have preloadData disabled when ssr is enabled:": ${configProperty}`,
|
|
113
121
|
}),
|
|
122
|
+
INCOMPLETE_CORE_PROXY: () => ({
|
|
123
|
+
category: 'lwrConfig/invalidSchema',
|
|
124
|
+
message: `The coreProxy must have either a "servername" or a "sitePath"`,
|
|
125
|
+
}),
|
|
114
126
|
});
|
|
115
127
|
//# sourceMappingURL=configParser.js.map
|
|
@@ -69,6 +69,14 @@ export declare const descriptions: {
|
|
|
69
69
|
category: "lwrConfig/invalidSchema";
|
|
70
70
|
message: string;
|
|
71
71
|
};
|
|
72
|
+
INVALID_ORIGIN: (configProperty: string, actualProp: string) => {
|
|
73
|
+
category: "lwrConfig/invalidSchema";
|
|
74
|
+
message: string;
|
|
75
|
+
};
|
|
76
|
+
INVALID_FILE_PATTERN: (configProperty: string, actualProp: string) => {
|
|
77
|
+
category: "lwrConfig/invalidSchema";
|
|
78
|
+
message: string;
|
|
79
|
+
};
|
|
72
80
|
INVALID_BASEPATH: (configProperty: string, actualProp: string) => {
|
|
73
81
|
category: "lwrConfig/invalidSchema";
|
|
74
82
|
message: string;
|
|
@@ -117,6 +125,10 @@ export declare const descriptions: {
|
|
|
117
125
|
category: "lwrConfig/invalidSchema";
|
|
118
126
|
message: string;
|
|
119
127
|
};
|
|
128
|
+
INCOMPLETE_CORE_PROXY: () => {
|
|
129
|
+
category: "lwrConfig/invalidSchema";
|
|
130
|
+
message: string;
|
|
131
|
+
};
|
|
120
132
|
}>;
|
|
121
133
|
UNRESOLVABLE: import("../types.js").OutputMessagesCategory<{
|
|
122
134
|
ASSET: (assetPath: string) => {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.15.0-alpha.
|
|
7
|
+
"version": "0.15.0-alpha.20",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"test": "jest"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@lwrjs/types": "0.15.0-alpha.
|
|
38
|
+
"@lwrjs/types": "0.15.0-alpha.20",
|
|
39
39
|
"jest": "^26.6.3",
|
|
40
40
|
"ts-jest": "^26.5.6",
|
|
41
41
|
"typescript": "^4.9.5"
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"volta": {
|
|
47
47
|
"extends": "../../../package.json"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "112ed1a3472b68a90c6884422137006a5dcf032c"
|
|
50
50
|
}
|