@lwrjs/diagnostics 0.17.2-alpha.4 → 0.17.2-alpha.5
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/errors.cjs +2 -2
- package/build/es/errors.d.ts +2 -2
- package/build/es/errors.js +2 -2
- package/package.json +3 -3
package/build/cjs/errors.cjs
CHANGED
|
@@ -53,11 +53,11 @@ var LwrUnresolvableError = class extends LwrError {
|
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
var LwrStatusError = class extends LwrError {
|
|
56
|
-
constructor(message, status,
|
|
56
|
+
constructor(message, status, headers) {
|
|
57
57
|
super(message);
|
|
58
58
|
this.name = "LwrStatusError";
|
|
59
59
|
this.status = status;
|
|
60
|
-
this.
|
|
60
|
+
this.headers = headers;
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
var DiagnosticsError = class extends LwrError {
|
package/build/es/errors.d.ts
CHANGED
|
@@ -20,8 +20,8 @@ export declare class LwrUnresolvableError extends LwrError {
|
|
|
20
20
|
export declare class LwrStatusError extends LwrError {
|
|
21
21
|
name: string;
|
|
22
22
|
status: 301 | 302 | 429 | 503;
|
|
23
|
-
|
|
24
|
-
constructor(message: undefined | string, status: 301 | 302 | 429 | 503,
|
|
23
|
+
headers?: Record<string, string>;
|
|
24
|
+
constructor(message: undefined | string, status: 301 | 302 | 429 | 503, headers?: Record<string, string>);
|
|
25
25
|
}
|
|
26
26
|
type Position = {
|
|
27
27
|
line: number;
|
package/build/es/errors.js
CHANGED
|
@@ -40,11 +40,11 @@ export class LwrUnresolvableError extends LwrError {
|
|
|
40
40
|
}
|
|
41
41
|
// 301, 302, 429, 503
|
|
42
42
|
export class LwrStatusError extends LwrError {
|
|
43
|
-
constructor(message, status,
|
|
43
|
+
constructor(message, status, headers) {
|
|
44
44
|
super(message);
|
|
45
45
|
this.name = 'LwrStatusError';
|
|
46
46
|
this.status = status;
|
|
47
|
-
this.
|
|
47
|
+
this.headers = headers;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
export class DiagnosticsError extends LwrError {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.17.2-alpha.
|
|
7
|
+
"version": "0.17.2-alpha.5",
|
|
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.17.2-alpha.
|
|
38
|
+
"@lwrjs/types": "0.17.2-alpha.5",
|
|
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": "b87daf19f22c54126ccaf01e0f899aabe6265885"
|
|
50
50
|
}
|