triqai 0.4.0 → 0.4.1
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/CHANGELOG.md +6 -0
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.4.1] - 2026-11-29
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- In Node.js, a response whose body the connection cut off now rejects with `ConnectionError` instead of a raw `TypeError: terminated`, and an enrichment with an `Idempotency-Key` is retried like any other network failure.
|
|
15
|
+
|
|
10
16
|
## [0.4.0] - 2026-11-23
|
|
11
17
|
|
|
12
18
|
### Added
|
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
// package.json
|
|
6
|
-
var version = "0.4.
|
|
6
|
+
var version = "0.4.1";
|
|
7
7
|
|
|
8
8
|
// src/errors.ts
|
|
9
9
|
var TriqaiError = class extends Error {
|
|
@@ -1009,7 +1009,7 @@ function isNetworkError(err) {
|
|
|
1009
1009
|
const message = err.message.toLowerCase();
|
|
1010
1010
|
const hasNetworkSignal = message.includes("fetch") || message.includes("network") || message.includes("econnreset") || message.includes("enotfound") || message.includes("econnrefused") || message.includes("etimedout");
|
|
1011
1011
|
if (err instanceof TypeError) {
|
|
1012
|
-
return hasNetworkSignal;
|
|
1012
|
+
return hasNetworkSignal || message === "terminated";
|
|
1013
1013
|
}
|
|
1014
1014
|
if (err.name === "NetworkError") {
|
|
1015
1015
|
return true;
|