Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@anthropic-ai/sdk

Package Overview
Dependencies
Maintainers
8
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anthropic-ai/sdk - npm Package Compare versions

Comparing version 0.6.8 to 0.7.0

8

CHANGELOG.md
# 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 @@

4

core.js

@@ -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')) {

2

package.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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc