Skip to content

Commit

Permalink
change handle different content types
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarco committed Dec 19, 2024
1 parent f39611a commit 360ff14
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ management:
docVersion: "1.0"
speakeasyVersion: 1.456.1
generationVersion: 2.481.0
releaseVersion: 0.0.1-alpha.132
configChecksum: 11cd4baa2dad8400417dc3852deb361d
releaseVersion: 0.0.1-alpha.136
configChecksum: e82fdb4f7f964955972c079cce280bef
published: true
features:
typescript:
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
typescript:
version: 0.0.1-alpha.132
version: 0.0.1-alpha.136
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
6 changes: 3 additions & 3 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ speakeasyVersion: 1.456.1
sources:
json-development:
sourceNamespace: json-development
sourceRevisionDigest: sha256:cba3dcc6c66e3fdf2d42b5d09a0d29bf19d6969ae58a8ef35209c53a3b28bebc
sourceRevisionDigest: sha256:b0eda0da99146f8a0159af35cad6411df7c66c9355e3b899f7d3fd99611b105b
sourceBlobDigest: sha256:91640a2ff06deb88f7077e9ade0d92aa8e75e3d301a6bbc0a9e1ac678ddde632
tags:
- latest
Expand All @@ -11,10 +11,10 @@ targets:
my-first-target:
source: json-development
sourceNamespace: json-development
sourceRevisionDigest: sha256:cba3dcc6c66e3fdf2d42b5d09a0d29bf19d6969ae58a8ef35209c53a3b28bebc
sourceRevisionDigest: sha256:b0eda0da99146f8a0159af35cad6411df7c66c9355e3b899f7d3fd99611b105b
sourceBlobDigest: sha256:91640a2ff06deb88f7077e9ade0d92aa8e75e3d301a6bbc0a9e1ac678ddde632
codeSamplesNamespace: code-samples-typescript
codeSamplesRevisionDigest: sha256:9c8b2b030e7c1a423026cc2d8a794d1f5fcf8a52330ac63e8876fa9064c1815f
codeSamplesRevisionDigest: sha256:9123bd33ba69a21dea243cbdec53e2e791b26a2bb4d4342fdee03d5277a178fe
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@novu/api",
"version": "0.0.1-alpha.132",
"version": "0.0.1-alpha.136",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@novu/api",
"version": "0.0.1-alpha.132",
"version": "0.0.1-alpha.136",
"author": "Novu",
"main": "./index.js",
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/novu-custom-hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class NovuCustomHook

async afterSuccess(_hookCtx: AfterSuccessContext, response: Response): Promise<Response> {
const responseAsText = await response.clone().text();
let contentType = response.headers.get('content-type') || '';
const contentType = response.headers.get('content-type') || '';
if (!responseAsText || responseAsText =='' || contentType.includes('text/html')) {
return response;
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "1.0",
sdkVersion: "0.0.1-alpha.132",
sdkVersion: "0.0.1-alpha.136",
genVersion: "2.481.0",
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.132 2.481.0 1.0 @novu/api",
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.136 2.481.0 1.0 @novu/api",
} as const;

0 comments on commit 360ff14

Please sign in to comment.