@upstash/qstash 2.7.15 → 2.7.16
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/{chunk-LSYJT55T.mjs → chunk-7UVG6FOM.mjs} +1 -1
- package/{chunk-Y52A3KZT.mjs → chunk-GWAFAA2M.mjs} +5 -2
- package/{chunk-X4MWA7DF.mjs → chunk-OX4OZYVD.mjs} +1 -1
- package/cloudflare.js +5 -2
- package/cloudflare.mjs +1 -1
- package/h3.js +5 -2
- package/h3.mjs +3 -3
- package/hono.js +5 -2
- package/hono.mjs +1 -1
- package/index.js +5 -2
- package/index.mjs +2 -2
- package/nextjs.js +5 -2
- package/nextjs.mjs +1 -1
- package/nuxt.mjs +3 -3
- package/package.json +1 -1
- package/solidjs.js +5 -2
- package/solidjs.mjs +2 -2
- package/svelte.js +5 -2
- package/svelte.mjs +2 -2
- package/workflow.js +5 -2
- package/workflow.mjs +1 -1
|
@@ -566,11 +566,14 @@ var LLMProvider = class extends BaseProvider {
|
|
|
566
566
|
}
|
|
567
567
|
getHeaders(options) {
|
|
568
568
|
if (this.owner === "upstash" && !options.analytics) {
|
|
569
|
-
return {};
|
|
569
|
+
return { "content-type": "application/json" };
|
|
570
570
|
}
|
|
571
571
|
const header = this.owner === "anthropic" ? "x-api-key" : "authorization";
|
|
572
572
|
const headerValue = this.owner === "anthropic" ? this.token : `Bearer ${this.token}`;
|
|
573
|
-
const headers = {
|
|
573
|
+
const headers = {
|
|
574
|
+
[header]: headerValue,
|
|
575
|
+
"content-type": "application/json"
|
|
576
|
+
};
|
|
574
577
|
if (this.owner === "openai" && this.organization) {
|
|
575
578
|
headers["OpenAI-Organization"] = this.organization;
|
|
576
579
|
}
|
package/cloudflare.js
CHANGED
|
@@ -602,11 +602,14 @@ var LLMProvider = class extends BaseProvider {
|
|
|
602
602
|
}
|
|
603
603
|
getHeaders(options) {
|
|
604
604
|
if (this.owner === "upstash" && !options.analytics) {
|
|
605
|
-
return {};
|
|
605
|
+
return { "content-type": "application/json" };
|
|
606
606
|
}
|
|
607
607
|
const header = this.owner === "anthropic" ? "x-api-key" : "authorization";
|
|
608
608
|
const headerValue = this.owner === "anthropic" ? this.token : `Bearer ${this.token}`;
|
|
609
|
-
const headers = {
|
|
609
|
+
const headers = {
|
|
610
|
+
[header]: headerValue,
|
|
611
|
+
"content-type": "application/json"
|
|
612
|
+
};
|
|
610
613
|
if (this.owner === "openai" && this.organization) {
|
|
611
614
|
headers["OpenAI-Organization"] = this.organization;
|
|
612
615
|
}
|
package/cloudflare.mjs
CHANGED
package/h3.js
CHANGED
|
@@ -926,11 +926,14 @@ var LLMProvider = class extends BaseProvider {
|
|
|
926
926
|
}
|
|
927
927
|
getHeaders(options) {
|
|
928
928
|
if (this.owner === "upstash" && !options.analytics) {
|
|
929
|
-
return {};
|
|
929
|
+
return { "content-type": "application/json" };
|
|
930
930
|
}
|
|
931
931
|
const header = this.owner === "anthropic" ? "x-api-key" : "authorization";
|
|
932
932
|
const headerValue = this.owner === "anthropic" ? this.token : `Bearer ${this.token}`;
|
|
933
|
-
const headers = {
|
|
933
|
+
const headers = {
|
|
934
|
+
[header]: headerValue,
|
|
935
|
+
"content-type": "application/json"
|
|
936
|
+
};
|
|
934
937
|
if (this.owner === "openai" && this.organization) {
|
|
935
938
|
headers["OpenAI-Organization"] = this.organization;
|
|
936
939
|
}
|
package/h3.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
serve,
|
|
3
3
|
verifySignatureH3
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-7UVG6FOM.mjs";
|
|
5
|
+
import "./chunk-OX4OZYVD.mjs";
|
|
6
|
+
import "./chunk-GWAFAA2M.mjs";
|
|
7
7
|
export {
|
|
8
8
|
serve,
|
|
9
9
|
verifySignatureH3
|
package/hono.js
CHANGED
|
@@ -602,11 +602,14 @@ var LLMProvider = class extends BaseProvider {
|
|
|
602
602
|
}
|
|
603
603
|
getHeaders(options) {
|
|
604
604
|
if (this.owner === "upstash" && !options.analytics) {
|
|
605
|
-
return {};
|
|
605
|
+
return { "content-type": "application/json" };
|
|
606
606
|
}
|
|
607
607
|
const header = this.owner === "anthropic" ? "x-api-key" : "authorization";
|
|
608
608
|
const headerValue = this.owner === "anthropic" ? this.token : `Bearer ${this.token}`;
|
|
609
|
-
const headers = {
|
|
609
|
+
const headers = {
|
|
610
|
+
[header]: headerValue,
|
|
611
|
+
"content-type": "application/json"
|
|
612
|
+
};
|
|
610
613
|
if (this.owner === "openai" && this.organization) {
|
|
611
614
|
headers["OpenAI-Organization"] = this.organization;
|
|
612
615
|
}
|
package/hono.mjs
CHANGED
package/index.js
CHANGED
|
@@ -622,11 +622,14 @@ var LLMProvider = class extends BaseProvider {
|
|
|
622
622
|
}
|
|
623
623
|
getHeaders(options) {
|
|
624
624
|
if (this.owner === "upstash" && !options.analytics) {
|
|
625
|
-
return {};
|
|
625
|
+
return { "content-type": "application/json" };
|
|
626
626
|
}
|
|
627
627
|
const header = this.owner === "anthropic" ? "x-api-key" : "authorization";
|
|
628
628
|
const headerValue = this.owner === "anthropic" ? this.token : `Bearer ${this.token}`;
|
|
629
|
-
const headers = {
|
|
629
|
+
const headers = {
|
|
630
|
+
[header]: headerValue,
|
|
631
|
+
"content-type": "application/json"
|
|
632
|
+
};
|
|
630
633
|
if (this.owner === "openai" && this.organization) {
|
|
631
634
|
headers["OpenAI-Organization"] = this.organization;
|
|
632
635
|
}
|
package/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resend
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OX4OZYVD.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Chat,
|
|
6
6
|
Client,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
openai,
|
|
23
23
|
setupAnalytics,
|
|
24
24
|
upstash
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-GWAFAA2M.mjs";
|
|
26
26
|
export {
|
|
27
27
|
Chat,
|
|
28
28
|
Client,
|
package/nextjs.js
CHANGED
|
@@ -606,11 +606,14 @@ var LLMProvider = class extends BaseProvider {
|
|
|
606
606
|
}
|
|
607
607
|
getHeaders(options) {
|
|
608
608
|
if (this.owner === "upstash" && !options.analytics) {
|
|
609
|
-
return {};
|
|
609
|
+
return { "content-type": "application/json" };
|
|
610
610
|
}
|
|
611
611
|
const header = this.owner === "anthropic" ? "x-api-key" : "authorization";
|
|
612
612
|
const headerValue = this.owner === "anthropic" ? this.token : `Bearer ${this.token}`;
|
|
613
|
-
const headers = {
|
|
613
|
+
const headers = {
|
|
614
|
+
[header]: headerValue,
|
|
615
|
+
"content-type": "application/json"
|
|
616
|
+
};
|
|
614
617
|
if (this.owner === "openai" && this.organization) {
|
|
615
618
|
headers["OpenAI-Organization"] = this.organization;
|
|
616
619
|
}
|
package/nextjs.mjs
CHANGED
package/nuxt.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
verifySignatureH3
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-7UVG6FOM.mjs";
|
|
4
|
+
import "./chunk-OX4OZYVD.mjs";
|
|
5
|
+
import "./chunk-GWAFAA2M.mjs";
|
|
6
6
|
|
|
7
7
|
// platforms/nuxt.ts
|
|
8
8
|
var verifySignatureNuxt = verifySignatureH3;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"v2.7.
|
|
1
|
+
{"version":"v2.7.16","name":"@upstash/qstash","description":"Official Typescript client for QStash","author":"Andreas Thomas <dev@chronark.com>","license":"MIT","homepage":"https://github.com/upstash/sdk-qstash-ts#readme","repository":{"type":"git","url":"git+https://github.com/upstash/sdk-qstash-ts.git"},"bugs":{"url":"https://github.com/upstash/sdk-qstash-ts/issues"},"main":"./index.js","module":"./index.mjs","types":"./index.d.ts","files":["./*"],"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./dist/nextjs":{"import":"./nextjs.mjs","require":"./nextjs.js"},"./nextjs":{"import":"./nextjs.mjs","require":"./nextjs.js"},"./h3":{"import":"./h3.mjs","require":"./h3.js"},"./nuxt":{"import":"./nuxt.mjs","require":"./nuxt.js"},"./svelte":{"import":"./svelte.mjs","require":"./svelte.js"},"./solidjs":{"import":"./solidjs.mjs","require":"./solidjs.js"},"./workflow":{"import":"./workflow.mjs","require":"./workflow.js"},"./hono":{"import":"./hono.mjs","require":"./hono.js"},"./cloudflare":{"import":"./cloudflare.mjs","require":"./cloudflare.js"}},"keywords":["qstash","queue","events","serverless","upstash"],"scripts":{"build":"tsup && cp README.md ./dist/ && cp package.json ./dist/ && cp LICENSE ./dist/","test":"bun test src","fmt":"prettier --write .","lint":"tsc && eslint \"{src,platforms}/**/*.{js,ts,tsx}\" --quiet --fix","check-exports":"bun run build && cd dist && attw -P"},"devDependencies":{"@commitlint/cli":"^19.2.2","@commitlint/config-conventional":"^19.2.2","@eslint/eslintrc":"^3.1.0","@eslint/js":"^9.10.0","@solidjs/start":"^1.0.6","@sveltejs/kit":"^2.5.18","@types/bun":"^1.1.1","@types/crypto-js":"^4.2.0","@typescript-eslint/eslint-plugin":"^8.4.0","@typescript-eslint/parser":"^8.4.0","ai":"^3.1.28","bun-types":"^1.1.7","eslint":"^9.10.0","eslint-plugin-unicorn":"^51.0.1","h3":"^1.12.0","hono":"^4.5.8","husky":"^9.0.10","next":"^14.0.2","prettier":"^3.2.5","tsup":"latest","typescript":"^5.4.5","undici-types":"^6.16.0","vitest":"latest"},"dependencies":{"crypto-js":">=4.2.0","jose":"^5.2.3","neverthrow":"^7.0.1"}}
|
package/solidjs.js
CHANGED
|
@@ -603,11 +603,14 @@ var LLMProvider = class extends BaseProvider {
|
|
|
603
603
|
}
|
|
604
604
|
getHeaders(options) {
|
|
605
605
|
if (this.owner === "upstash" && !options.analytics) {
|
|
606
|
-
return {};
|
|
606
|
+
return { "content-type": "application/json" };
|
|
607
607
|
}
|
|
608
608
|
const header = this.owner === "anthropic" ? "x-api-key" : "authorization";
|
|
609
609
|
const headerValue = this.owner === "anthropic" ? this.token : `Bearer ${this.token}`;
|
|
610
|
-
const headers = {
|
|
610
|
+
const headers = {
|
|
611
|
+
[header]: headerValue,
|
|
612
|
+
"content-type": "application/json"
|
|
613
|
+
};
|
|
611
614
|
if (this.owner === "openai" && this.organization) {
|
|
612
615
|
headers["OpenAI-Organization"] = this.organization;
|
|
613
616
|
}
|
package/solidjs.mjs
CHANGED
package/svelte.js
CHANGED
|
@@ -603,11 +603,14 @@ var LLMProvider = class extends BaseProvider {
|
|
|
603
603
|
}
|
|
604
604
|
getHeaders(options) {
|
|
605
605
|
if (this.owner === "upstash" && !options.analytics) {
|
|
606
|
-
return {};
|
|
606
|
+
return { "content-type": "application/json" };
|
|
607
607
|
}
|
|
608
608
|
const header = this.owner === "anthropic" ? "x-api-key" : "authorization";
|
|
609
609
|
const headerValue = this.owner === "anthropic" ? this.token : `Bearer ${this.token}`;
|
|
610
|
-
const headers = {
|
|
610
|
+
const headers = {
|
|
611
|
+
[header]: headerValue,
|
|
612
|
+
"content-type": "application/json"
|
|
613
|
+
};
|
|
611
614
|
if (this.owner === "openai" && this.organization) {
|
|
612
615
|
headers["OpenAI-Organization"] = this.organization;
|
|
613
616
|
}
|
package/svelte.mjs
CHANGED
package/workflow.js
CHANGED
|
@@ -608,11 +608,14 @@ var LLMProvider = class extends BaseProvider {
|
|
|
608
608
|
}
|
|
609
609
|
getHeaders(options) {
|
|
610
610
|
if (this.owner === "upstash" && !options.analytics) {
|
|
611
|
-
return {};
|
|
611
|
+
return { "content-type": "application/json" };
|
|
612
612
|
}
|
|
613
613
|
const header = this.owner === "anthropic" ? "x-api-key" : "authorization";
|
|
614
614
|
const headerValue = this.owner === "anthropic" ? this.token : `Bearer ${this.token}`;
|
|
615
|
-
const headers = {
|
|
615
|
+
const headers = {
|
|
616
|
+
[header]: headerValue,
|
|
617
|
+
"content-type": "application/json"
|
|
618
|
+
};
|
|
616
619
|
if (this.owner === "openai" && this.organization) {
|
|
617
620
|
headers["OpenAI-Organization"] = this.organization;
|
|
618
621
|
}
|