@smithers-orchestrator/protocol 0.21.0 → 0.23.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.
- package/package.json +1 -1
- package/src/errors/index.js +8 -8
package/package.json
CHANGED
package/src/errors/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/** @typedef {import("./ProtocolError.ts").ProtocolError} ProtocolError */
|
|
7
7
|
// @smithers-type-exports-end
|
|
8
8
|
|
|
9
|
-
export const DEVTOOLS_ERROR_CODES = [
|
|
9
|
+
export const DEVTOOLS_ERROR_CODES = /** @type {const} */ ([
|
|
10
10
|
"RunNotFound",
|
|
11
11
|
"InvalidRunId",
|
|
12
12
|
"FrameOutOfRange",
|
|
@@ -14,8 +14,8 @@ export const DEVTOOLS_ERROR_CODES = [
|
|
|
14
14
|
"BackpressureDisconnect",
|
|
15
15
|
"Unauthorized",
|
|
16
16
|
"InvalidDelta",
|
|
17
|
-
];
|
|
18
|
-
export const NODE_OUTPUT_ERROR_CODES = [
|
|
17
|
+
]);
|
|
18
|
+
export const NODE_OUTPUT_ERROR_CODES = /** @type {const} */ ([
|
|
19
19
|
"InvalidRunId",
|
|
20
20
|
"InvalidNodeId",
|
|
21
21
|
"InvalidIteration",
|
|
@@ -26,8 +26,8 @@ export const NODE_OUTPUT_ERROR_CODES = [
|
|
|
26
26
|
"SchemaConversionError",
|
|
27
27
|
"MalformedOutputRow",
|
|
28
28
|
"PayloadTooLarge",
|
|
29
|
-
];
|
|
30
|
-
export const NODE_DIFF_ERROR_CODES = [
|
|
29
|
+
]);
|
|
30
|
+
export const NODE_DIFF_ERROR_CODES = /** @type {const} */ ([
|
|
31
31
|
"InvalidRunId",
|
|
32
32
|
"InvalidNodeId",
|
|
33
33
|
"InvalidIteration",
|
|
@@ -38,8 +38,8 @@ export const NODE_DIFF_ERROR_CODES = [
|
|
|
38
38
|
"VcsError",
|
|
39
39
|
"WorkingTreeDirty",
|
|
40
40
|
"DiffTooLarge",
|
|
41
|
-
];
|
|
42
|
-
export const JUMP_TO_FRAME_ERROR_CODES = [
|
|
41
|
+
]);
|
|
42
|
+
export const JUMP_TO_FRAME_ERROR_CODES = /** @type {const} */ ([
|
|
43
43
|
"InvalidRunId",
|
|
44
44
|
"InvalidFrameNo",
|
|
45
45
|
"RunNotFound",
|
|
@@ -51,4 +51,4 @@ export const JUMP_TO_FRAME_ERROR_CODES = [
|
|
|
51
51
|
"RewindFailed",
|
|
52
52
|
"RateLimited",
|
|
53
53
|
"Unauthorized",
|
|
54
|
-
];
|
|
54
|
+
]);
|