@shipstatic/drop 2.1.0 → 2.1.1-beta.2
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/dist/index.cjs +18 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -1
- package/dist/testing.cjs +19 -1
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.js +19 -1
- package/dist/testing.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -38,6 +38,23 @@ var ErrorType = {
|
|
|
38
38
|
Maintenance: "maintenance",
|
|
39
39
|
/** Network/connection error. Client-side only — set by HTTP clients on fetch failure; never produced server-side. */
|
|
40
40
|
Network: "network_error",
|
|
41
|
+
/**
|
|
42
|
+
* A deadline expired before the exchange completed. Client-side only — set
|
|
43
|
+
* by HTTP clients when a timeout signal fires; never produced server-side.
|
|
44
|
+
*
|
|
45
|
+
* A member of the NETWORK category rather than a sibling of it:
|
|
46
|
+
* `isNetworkError()` answers "nothing was exchanged", which is true of a
|
|
47
|
+
* deadline exactly as it is of a refused connection, so every consumer that
|
|
48
|
+
* retries, declines to report, or declines to relay a wire message on that
|
|
49
|
+
* category is already right about a timeout. The distinct TYPE exists for
|
|
50
|
+
* the one decision the category cannot make — what to SAY. "Check your
|
|
51
|
+
* internet connection" is the wrong sentence for a five-minute deploy
|
|
52
|
+
* ceiling, and a surface can only tell the two apart by type.
|
|
53
|
+
*
|
|
54
|
+
* The same relationship every comparable SDK ships:
|
|
55
|
+
* `APIConnectionTimeoutError extends APIConnectionError`.
|
|
56
|
+
*/
|
|
57
|
+
Timeout: "timeout_error",
|
|
41
58
|
/** Operation was cancelled. Client-side only — set on `AbortSignal` abort; never produced server-side. */
|
|
42
59
|
Cancelled: "operation_cancelled",
|
|
43
60
|
/** File operation error. Client-side only — set by SDK during local file processing; never produced server-side. */
|
|
@@ -47,6 +64,7 @@ var ErrorType = {
|
|
|
47
64
|
};
|
|
48
65
|
var CLIENT_ONLY_ERROR_TYPES = /* @__PURE__ */ new Set([
|
|
49
66
|
ErrorType.Network,
|
|
67
|
+
ErrorType.Timeout,
|
|
50
68
|
ErrorType.Cancelled,
|
|
51
69
|
ErrorType.File,
|
|
52
70
|
ErrorType.Config
|