@rulvar/anthropic 1.74.0 → 1.75.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/dist/index.js +3 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -665,7 +665,9 @@ function anthropicErrorToWire(error) {
|
|
|
665
665
|
const value = headerGet(name);
|
|
666
666
|
if (value === void 0) return;
|
|
667
667
|
const match = /^[\t ]*([0-9]+)[\t ]*$/.exec(value);
|
|
668
|
-
|
|
668
|
+
if (match === null) return;
|
|
669
|
+
const parsed = Number(match[1]);
|
|
670
|
+
return Number.isSafeInteger(parsed) ? parsed : void 0;
|
|
669
671
|
};
|
|
670
672
|
const requestsPerMinute = limitOf("x-ratelimit-limit-requests");
|
|
671
673
|
const inputTokensPerMinute = limitOf("x-ratelimit-limit-input-tokens");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rulvar/anthropic",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.75.0",
|
|
4
4
|
"description": "Rulvar first-class provider adapter over @anthropic-ai/sdk.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@anthropic-ai/sdk": "^0.110.0",
|
|
26
|
-
"@rulvar/core": "1.
|
|
26
|
+
"@rulvar/core": "1.75.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "^22.20.0",
|
|
30
30
|
"tsdown": "^0.22.3",
|
|
31
31
|
"typescript": "~6.0.3",
|
|
32
|
-
"@rulvar/testing": "1.
|
|
32
|
+
"@rulvar/testing": "1.75.0"
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|
|
35
35
|
"type": "git",
|