@gpt-core/client 0.7.67 → 0.7.68
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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -3
- package/dist/index.mjs +1 -3
- package/package.json +3 -2
package/dist/index.d.mts
CHANGED
|
@@ -26300,6 +26300,7 @@ declare class GptCoreError extends Error {
|
|
|
26300
26300
|
readonly requestId?: string;
|
|
26301
26301
|
readonly headers?: Record<string, string>;
|
|
26302
26302
|
readonly body?: any;
|
|
26303
|
+
cause?: Error;
|
|
26303
26304
|
constructor(message: string, options?: {
|
|
26304
26305
|
statusCode?: number;
|
|
26305
26306
|
code?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -26300,6 +26300,7 @@ declare class GptCoreError extends Error {
|
|
|
26300
26300
|
readonly requestId?: string;
|
|
26301
26301
|
readonly headers?: Record<string, string>;
|
|
26302
26302
|
readonly body?: any;
|
|
26303
|
+
cause?: Error;
|
|
26303
26304
|
constructor(message: string, options?: {
|
|
26304
26305
|
statusCode?: number;
|
|
26305
26306
|
code?: string;
|
package/dist/index.js
CHANGED
|
@@ -3673,9 +3673,7 @@ var GptCoreError = class extends Error {
|
|
|
3673
3673
|
this.requestId = options?.requestId;
|
|
3674
3674
|
this.headers = options?.headers;
|
|
3675
3675
|
this.body = options?.body;
|
|
3676
|
-
|
|
3677
|
-
this.cause = options.cause;
|
|
3678
|
-
}
|
|
3676
|
+
this.cause = options?.cause;
|
|
3679
3677
|
if (Error.captureStackTrace) {
|
|
3680
3678
|
Error.captureStackTrace(this, this.constructor);
|
|
3681
3679
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -3359,9 +3359,7 @@ var GptCoreError = class extends Error {
|
|
|
3359
3359
|
this.requestId = options?.requestId;
|
|
3360
3360
|
this.headers = options?.headers;
|
|
3361
3361
|
this.body = options?.body;
|
|
3362
|
-
|
|
3363
|
-
this.cause = options.cause;
|
|
3364
|
-
}
|
|
3362
|
+
this.cause = options?.cause;
|
|
3365
3363
|
if (Error.captureStackTrace) {
|
|
3366
3364
|
Error.captureStackTrace(this, this.constructor);
|
|
3367
3365
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gpt-core/client",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.68",
|
|
4
4
|
"description": "TypeScript SDK for GPT Core Client API - Document extraction, AI agents, and workspace management",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -57,7 +57,8 @@
|
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"generate": "openapi-ts",
|
|
60
|
-
"
|
|
60
|
+
"typecheck": "tsc --noEmit",
|
|
61
|
+
"build": "npm run typecheck && tsup src/index.ts --format cjs,esm --dts",
|
|
61
62
|
"test": "vitest run",
|
|
62
63
|
"test:watch": "vitest",
|
|
63
64
|
"test:ui": "vitest --ui",
|