@lwrjs/diagnostics 0.15.0-alpha.8 → 0.15.0

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: `Property "${configProperty}" must use a valid regex but received ${actualProp === "" ? "empty string" : 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}`
@@ -108,6 +108,6 @@ ${error}`
108
108
  }),
109
109
  SSR_TIMEOUT: (specifier, time) => ({
110
110
  category: "lwrUnresolvable/ssr",
111
- message: `Server side rendering '${specifier}' timed out after ${time}ms`
111
+ message: `Server side rendering or data prefetching for '${specifier}' timed out after ${time}ms`
112
112
  })
113
113
  });
@@ -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 | any[]) => {
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;
@@ -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: `Property "${configProperty}" must use a valid regex but received ${actualProp === '' ? 'empty string' : 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}`,
@@ -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 | any[]) => {
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;
@@ -1,3 +1,4 @@
1
+ /* istanbul ignore file */
1
2
  import { createDiagnosticsCategory } from './core-diagnostics.js';
2
3
  export const unresolvable = createDiagnosticsCategory({
3
4
  ASSET: (assetPath) => ({
@@ -78,7 +79,7 @@ export const unresolvable = createDiagnosticsCategory({
78
79
  }),
79
80
  SSR_TIMEOUT: (specifier, time) => ({
80
81
  category: 'lwrUnresolvable/ssr',
81
- message: `Server side rendering '${specifier}' timed out after ${time}ms`,
82
+ message: `Server side rendering or data prefetching for '${specifier}' timed out after ${time}ms`,
82
83
  }),
83
84
  });
84
85
  //# sourceMappingURL=unresolvable.js.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.15.0-alpha.8",
7
+ "version": "0.15.0",
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.8",
38
+ "@lwrjs/types": "0.15.0",
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": "79fa28a99f3d89eca6a254c53a2a944778203ef2"
49
+ "gitHead": "ee374df435d5342f63e4da126a09461e761837f3"
50
50
  }