@upstash/qstash 2.7.19 → 2.7.20

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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Receiver,
3
3
  serve
4
- } from "./chunk-S5ODGXCI.mjs";
4
+ } from "./chunk-WXLHIS4A.mjs";
5
5
 
6
6
  // node_modules/defu/dist/defu.mjs
7
7
  function isPlainObject(value) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BaseProvider
3
- } from "./chunk-S5ODGXCI.mjs";
3
+ } from "./chunk-WXLHIS4A.mjs";
4
4
 
5
5
  // src/client/api/email.ts
6
6
  var EmailProvider = class extends BaseProvider {
@@ -587,6 +587,9 @@ var LLMProvider = class extends BaseProvider {
587
587
  if (this.owner === "openai" && this.organization) {
588
588
  headers["OpenAI-Organization"] = this.organization;
589
589
  }
590
+ if (this.owner === "anthropic") {
591
+ headers["anthropic-version"] = "2023-06-01";
592
+ }
590
593
  return headers;
591
594
  }
592
595
  /**
package/cloudflare.js CHANGED
@@ -623,6 +623,9 @@ var LLMProvider = class extends BaseProvider {
623
623
  if (this.owner === "openai" && this.organization) {
624
624
  headers["OpenAI-Organization"] = this.organization;
625
625
  }
626
+ if (this.owner === "anthropic") {
627
+ headers["anthropic-version"] = "2023-06-01";
628
+ }
626
629
  return headers;
627
630
  }
628
631
  /**
package/cloudflare.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  serve
3
- } from "./chunk-S5ODGXCI.mjs";
3
+ } from "./chunk-WXLHIS4A.mjs";
4
4
 
5
5
  // platforms/cloudflare.ts
6
6
  var getArgs = (args) => {
package/h3.js CHANGED
@@ -947,6 +947,9 @@ var LLMProvider = class extends BaseProvider {
947
947
  if (this.owner === "openai" && this.organization) {
948
948
  headers["OpenAI-Organization"] = this.organization;
949
949
  }
950
+ if (this.owner === "anthropic") {
951
+ headers["anthropic-version"] = "2023-06-01";
952
+ }
950
953
  return headers;
951
954
  }
952
955
  /**
package/h3.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  serve,
3
3
  verifySignatureH3
4
- } from "./chunk-L2DZYBAR.mjs";
5
- import "./chunk-RNFKMAEP.mjs";
6
- import "./chunk-S5ODGXCI.mjs";
4
+ } from "./chunk-3XWIKEL6.mjs";
5
+ import "./chunk-JSD5ZIXP.mjs";
6
+ import "./chunk-WXLHIS4A.mjs";
7
7
  export {
8
8
  serve,
9
9
  verifySignatureH3
package/hono.js CHANGED
@@ -623,6 +623,9 @@ var LLMProvider = class extends BaseProvider {
623
623
  if (this.owner === "openai" && this.organization) {
624
624
  headers["OpenAI-Organization"] = this.organization;
625
625
  }
626
+ if (this.owner === "anthropic") {
627
+ headers["anthropic-version"] = "2023-06-01";
628
+ }
626
629
  return headers;
627
630
  }
628
631
  /**
package/hono.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  serve
3
- } from "./chunk-S5ODGXCI.mjs";
3
+ } from "./chunk-WXLHIS4A.mjs";
4
4
 
5
5
  // platforms/hono.ts
6
6
  var serve2 = (routeFunction, options) => {
package/index.js CHANGED
@@ -643,6 +643,9 @@ var LLMProvider = class extends BaseProvider {
643
643
  if (this.owner === "openai" && this.organization) {
644
644
  headers["OpenAI-Organization"] = this.organization;
645
645
  }
646
+ if (this.owner === "anthropic") {
647
+ headers["anthropic-version"] = "2023-06-01";
648
+ }
646
649
  return headers;
647
650
  }
648
651
  /**
package/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resend
3
- } from "./chunk-RNFKMAEP.mjs";
3
+ } from "./chunk-JSD5ZIXP.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-S5ODGXCI.mjs";
25
+ } from "./chunk-WXLHIS4A.mjs";
26
26
  export {
27
27
  Chat,
28
28
  Client,
package/nextjs.js CHANGED
@@ -627,6 +627,9 @@ var LLMProvider = class extends BaseProvider {
627
627
  if (this.owner === "openai" && this.organization) {
628
628
  headers["OpenAI-Organization"] = this.organization;
629
629
  }
630
+ if (this.owner === "anthropic") {
631
+ headers["anthropic-version"] = "2023-06-01";
632
+ }
630
633
  return headers;
631
634
  }
632
635
  /**
package/nextjs.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Receiver,
3
3
  serve
4
- } from "./chunk-S5ODGXCI.mjs";
4
+ } from "./chunk-WXLHIS4A.mjs";
5
5
 
6
6
  // platforms/nextjs.ts
7
7
  var BAD_REQUEST = 400;
package/nuxt.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  verifySignatureH3
3
- } from "./chunk-L2DZYBAR.mjs";
4
- import "./chunk-RNFKMAEP.mjs";
5
- import "./chunk-S5ODGXCI.mjs";
3
+ } from "./chunk-3XWIKEL6.mjs";
4
+ import "./chunk-JSD5ZIXP.mjs";
5
+ import "./chunk-WXLHIS4A.mjs";
6
6
 
7
7
  // platforms/nuxt.ts
8
8
  var verifySignatureNuxt = verifySignatureH3;
package/package.json CHANGED
@@ -1 +1 @@
1
- {"version":"v2.7.19","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"}}
1
+ {"version":"v2.7.20","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
@@ -624,6 +624,9 @@ var LLMProvider = class extends BaseProvider {
624
624
  if (this.owner === "openai" && this.organization) {
625
625
  headers["OpenAI-Organization"] = this.organization;
626
626
  }
627
+ if (this.owner === "anthropic") {
628
+ headers["anthropic-version"] = "2023-06-01";
629
+ }
627
630
  return headers;
628
631
  }
629
632
  /**
package/solidjs.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import "./chunk-RNFKMAEP.mjs";
1
+ import "./chunk-JSD5ZIXP.mjs";
2
2
  import {
3
3
  Receiver,
4
4
  serve
5
- } from "./chunk-S5ODGXCI.mjs";
5
+ } from "./chunk-WXLHIS4A.mjs";
6
6
 
7
7
  // platforms/solidjs.ts
8
8
  var verifySignatureSolidjs = (handler, config) => {
package/svelte.js CHANGED
@@ -624,6 +624,9 @@ var LLMProvider = class extends BaseProvider {
624
624
  if (this.owner === "openai" && this.organization) {
625
625
  headers["OpenAI-Organization"] = this.organization;
626
626
  }
627
+ if (this.owner === "anthropic") {
628
+ headers["anthropic-version"] = "2023-06-01";
629
+ }
627
630
  return headers;
628
631
  }
629
632
  /**
package/svelte.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import "./chunk-RNFKMAEP.mjs";
1
+ import "./chunk-JSD5ZIXP.mjs";
2
2
  import {
3
3
  Receiver,
4
4
  serve
5
- } from "./chunk-S5ODGXCI.mjs";
5
+ } from "./chunk-WXLHIS4A.mjs";
6
6
 
7
7
  // platforms/svelte.ts
8
8
  var verifySignatureSvelte = (handler, config) => {
package/workflow.js CHANGED
@@ -629,6 +629,9 @@ var LLMProvider = class extends BaseProvider {
629
629
  if (this.owner === "openai" && this.organization) {
630
630
  headers["OpenAI-Organization"] = this.organization;
631
631
  }
632
+ if (this.owner === "anthropic") {
633
+ headers["anthropic-version"] = "2023-06-01";
634
+ }
632
635
  return headers;
633
636
  }
634
637
  /**
package/workflow.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  WorkflowLogger,
7
7
  processOptions,
8
8
  serve
9
- } from "./chunk-S5ODGXCI.mjs";
9
+ } from "./chunk-WXLHIS4A.mjs";
10
10
  export {
11
11
  DisabledWorkflowContext,
12
12
  StepTypes,