@lwrjs/diagnostics 0.11.10 → 0.11.11

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.
@@ -80,6 +80,10 @@ var unresolvable = (0, import_core_diagnostics.createDiagnosticsCategory)({
80
80
  category: "lwrUnresolvable/invalid",
81
81
  message: "400: Accept header and json query parameter are incompatible"
82
82
  }),
83
+ INVALID_API_VERSION: (apiVersion, expectedVersion) => ({
84
+ category: "lwrUnresolvable/invalid",
85
+ message: `400: API Version "${apiVersion}" is not supported. Expected "${expectedVersion}"`
86
+ }),
83
87
  INVALID_ENVIRONMENT: (environment) => ({
84
88
  category: "lwrUnresolvable/invalid",
85
89
  message: `400: Environment "${environment}" is not supported`
@@ -284,6 +284,13 @@ export declare const descriptions: {
284
284
  advice: import("../types.js").DiagnosticAdvice;
285
285
  message: string;
286
286
  };
287
+ INVALID_API_VERSION: (apiVersion: string, expectedVersion: any) => Omit<{
288
+ category: "lwrUnresolvable/invalid";
289
+ message: string;
290
+ }, "message" | "advice"> & {
291
+ advice: import("../types.js").DiagnosticAdvice;
292
+ message: string;
293
+ };
287
294
  INVALID_ENVIRONMENT: (environment: string) => Omit<{
288
295
  category: "lwrUnresolvable/invalid";
289
296
  message: string;
@@ -90,6 +90,13 @@ export declare const unresolvable: {
90
90
  advice: import("../types.js").DiagnosticAdvice;
91
91
  message: string;
92
92
  };
93
+ INVALID_API_VERSION: (apiVersion: string, expectedVersion: any) => Omit<{
94
+ category: "lwrUnresolvable/invalid";
95
+ message: string;
96
+ }, "message" | "advice"> & {
97
+ advice: import("../types.js").DiagnosticAdvice;
98
+ message: string;
99
+ };
93
100
  INVALID_ENVIRONMENT: (environment: string) => Omit<{
94
101
  category: "lwrUnresolvable/invalid";
95
102
  message: string;
@@ -52,6 +52,10 @@ export const unresolvable = createDiagnosticsCategory({
52
52
  category: 'lwrUnresolvable/invalid',
53
53
  message: '400: Accept header and json query parameter are incompatible',
54
54
  }),
55
+ INVALID_API_VERSION: (apiVersion, expectedVersion) => ({
56
+ category: 'lwrUnresolvable/invalid',
57
+ message: `400: API Version "${apiVersion}" is not supported. Expected "${expectedVersion}"`,
58
+ }),
55
59
  INVALID_ENVIRONMENT: (environment) => ({
56
60
  category: 'lwrUnresolvable/invalid',
57
61
  message: `400: Environment "${environment}" is not supported`,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.11.10",
7
+ "version": "0.11.11",
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.11.10",
38
+ "@lwrjs/types": "0.11.11",
39
39
  "jest": "^26.6.3",
40
40
  "ts-jest": "^26.5.6",
41
41
  "typescript": "^4.9.5"
@@ -43,5 +43,5 @@
43
43
  "engines": {
44
44
  "node": ">=16.0.0"
45
45
  },
46
- "gitHead": "cf8e68c9c43e4408c5ceb00abcb671c7a02c11f1"
46
+ "gitHead": "ebb34457d870c12a891f519145f4c2f08ad29f88"
47
47
  }