@anuma/sdk 3.2.0 → 3.3.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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  recall
3
- } from "./chunk-Y3ZS4OI3.mjs";
3
+ } from "./chunk-J5QZOPUI.mjs";
4
4
  import "./chunk-AHJT66EO.mjs";
5
5
  import "./chunk-3RPGXXPZ.mjs";
6
6
  export {
@@ -152,6 +152,9 @@ async function withEmbeddingRetry(call) {
152
152
  }
153
153
  }
154
154
  if (threw) throw lastThrown;
155
+ if (last?.error instanceof Error && last.response?.status === void 0) {
156
+ throw last.error;
157
+ }
155
158
  return last;
156
159
  }
157
160
  var EmbeddingHttpError = class extends Error {
@@ -35,6 +35,9 @@ async function withEmbeddingRetry(call) {
35
35
  }
36
36
  }
37
37
  if (threw) throw lastThrown;
38
+ if (last?.error instanceof Error && last.response?.status === void 0) {
39
+ throw last.error;
40
+ }
38
41
  return last;
39
42
  }
40
43
  var EmbeddingHttpError = class extends Error {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anuma/sdk",
3
- "version": "3.2.0",
3
+ "version": "3.3.1",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -170,7 +170,7 @@
170
170
  "devDependencies": {
171
171
  "@arethetypeswrong/cli": "^0.18.2",
172
172
  "@eslint/js": "^10.0.1",
173
- "@hey-api/openapi-ts": "0.87.2",
173
+ "@hey-api/openapi-ts": "0.97.3",
174
174
  "@huggingface/transformers": "^3.0.0",
175
175
  "@microsoft/api-extractor": "^7.57.1",
176
176
  "@nozbe/watermelondb": "^0.28.0",