@anthropic-ai/sdk
Advanced tools
Comparing version 0.6.8 to 0.7.0
# Changelog | ||
## 0.7.0 (2023-10-19) | ||
Full Changelog: [v0.6.8...v0.7.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/v0.6.8...v0.7.0) | ||
### Features | ||
* handle 204 No Content gracefully ([#190](https://github.com/anthropics/anthropic-sdk-typescript/issues/190)) ([c8a8bec](https://github.com/anthropics/anthropic-sdk-typescript/commit/c8a8becd127e5275333900c3bb76955605ae0f02)) | ||
## 0.6.8 (2023-10-17) | ||
@@ -4,0 +12,0 @@ |
@@ -34,2 +34,6 @@ "use strict"; | ||
} | ||
// fetch refuses to read the body when the status code is 204. | ||
if (response.status === 204) { | ||
return null; | ||
} | ||
const contentType = response.headers.get('content-type'); | ||
@@ -36,0 +40,0 @@ if (contentType?.includes('application/json')) { |
{ | ||
"name": "@anthropic-ai/sdk", | ||
"version": "0.6.8", | ||
"version": "0.7.0", | ||
"description": "Client library for the Anthropic API", | ||
@@ -5,0 +5,0 @@ "author": "Anthropic <support@anthropic.com>", |
@@ -52,2 +52,7 @@ import { VERSION } from './version'; | ||
// fetch refuses to read the body when the status code is 204. | ||
if (response.status === 204) { | ||
return null as T; | ||
} | ||
const contentType = response.headers.get('content-type'); | ||
@@ -54,0 +59,0 @@ if (contentType?.includes('application/json')) { |
@@ -1,1 +0,1 @@ | ||
export const VERSION = '0.6.8'; // x-release-please-version | ||
export const VERSION = '0.7.0'; // x-release-please-version |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.6.8"; | ||
export declare const VERSION = "0.7.0"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = '0.6.8'; // x-release-please-version | ||
exports.VERSION = '0.7.0'; // x-release-please-version | ||
//# sourceMappingURL=version.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
483226
7583
61