Skip to content

Commit

Permalink
release: 0.0.6 (#31)
Browse files Browse the repository at this point in the history
* chore(internal): codegen related update (#30)

* release: 0.0.6

---------

Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
  • Loading branch information
stainless-app[bot] authored Aug 15, 2024
1 parent 617733b commit 45926d2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.0.5"
".": "0.0.6"
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.0.6 (2024-08-07)

Full Changelog: [v0.0.5...v0.0.6](https://github.com/plastic-labs/honcho-node/compare/v0.0.5...v0.0.6)

### Chores

* **internal:** codegen related update ([#30](https://github.com/plastic-labs/honcho-node/issues/30)) ([42b6a61](https://github.com/plastic-labs/honcho-node/commit/42b6a616180b26771390f681c2c3d68c8c60ac50))

## 0.0.5 (2024-08-01)

Full Changelog: [v0.0.4...v0.0.5](https://github.com/plastic-labs/honcho-node/compare/v0.0.4...v0.0.5)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "honcho-ai",
"version": "0.0.5",
"version": "0.0.6",
"description": "The official TypeScript library for the Honcho API",
"author": "Honcho <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
13 changes: 0 additions & 13 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,19 +150,6 @@ export class Honcho extends Core.APIClient {
};
}

protected override validateHeaders(headers: Core.Headers, customHeaders: Core.Headers) {
if (this.apiKey && headers['authorization']) {
return;
}
if (customHeaders['authorization'] === null) {
return;
}

throw new Error(
'Could not resolve authentication method. Expected the apiKey to be set. Or for the "Authorization" headers to be explicitly omitted',
);
}

protected override authHeaders(opts: Core.FinalRequestOptions): Core.Headers {
if (this.apiKey == null) {
return {};
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.0.5'; // x-release-please-version
export const VERSION = '0.0.6'; // x-release-please-version

0 comments on commit 45926d2

Please sign in to comment.