two-stroke 8.0.20 → 8.0.22

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/oxlint.config.mjs CHANGED
@@ -60,6 +60,7 @@ export default defineConfig({
60
60
  "vitest/require-top-level-describe": "off",
61
61
  "vitest/max-expects": "off",
62
62
  "vitest/no-hooks": "off",
63
+ "unicorn/number-literal-case": "off",
63
64
  },
64
65
  overrides: [
65
66
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "two-stroke",
3
- "version": "8.0.20",
3
+ "version": "8.0.22",
4
4
  "description": "Simple Cloudflare Worker framework.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -20,7 +20,7 @@
20
20
  "type": "module",
21
21
  "main": "src/index.ts",
22
22
  "dependencies": {
23
- "jose": "^6.2.4",
23
+ "jose": "^6.2.6",
24
24
  "mime": "^4.1.0",
25
25
  "msw": "^2.15.0",
26
26
  "openapi-fetch": "^0.17.0",
@@ -30,10 +30,10 @@
30
30
  "zod": "^4.4.3"
31
31
  },
32
32
  "devDependencies": {
33
- "@cloudflare/vitest-pool-workers": "^0.18.8",
34
- "knip": "^6.29.0",
35
- "oxfmt": "^0.60.0",
36
- "oxlint": "^1.75.0",
33
+ "@cloudflare/vitest-pool-workers": "^0.20.1",
34
+ "knip": "^6.31.0",
35
+ "oxfmt": "^0.61.0",
36
+ "oxlint": "^1.76.0",
37
37
  "oxlint-tsgolint": "^7.0.2001",
38
38
  "vitest": "^4.1.10"
39
39
  },
package/src/index.ts CHANGED
@@ -40,7 +40,7 @@ export function twoStroke<T>(
40
40
  context: ExecutionContext,
41
41
  ): Promise<Response> {
42
42
  const defaultHeaders = {
43
- Very: "Origin",
43
+ Vary: "Origin",
44
44
  "Access-Control-Allow-Origin": origin
45
45
  ? (env.SENTRY_ENVIRONMENT === "staging" || env.SENTRY_ENVIRONMENT === "dev") &&
46
46
  req.headers.get("Origin")?.split(":")[1]?.endsWith("localhost")
@@ -1,16 +1,9 @@
1
1
  /* eslint-disable */
2
- // Generated by Wrangler by running `wrangler types` (hash: 257ab1035028648fc82c85d44bb6571e)
3
- // Runtime types generated with workerd@1.20260708.1 2025-09-15 disable_nodejs_fs_module,nodejs_compat
2
+ // Generated by Wrangler by running `wrangler types` (hash: a586733b457304f7909e3b75aa9b2082)
3
+ // Runtime types generated with workerd@1.20260730.1 2025-09-15 disable_nodejs_fs_module,nodejs_compat
4
4
  interface __BaseEnv_Env {
5
- KINESIS_STREAM_NAME_V2: string;
6
- LABS_PRIVATE_KEY: string;
7
- SENTRY_DSN: string;
8
- SENTRY_ENVIRONMENT: string;
9
- SENTRY_TRACES_SAMPLE_RATE: string;
10
- SLACK_SUPABASE_PUBLIC_KEY: string;
11
- TOKEN_AUDIENCE: string;
12
- TOKEN_HASH: string;
13
- TOKEN_ISSUER: string;
5
+ TOKEN_ISSUER: "fake";
6
+ TOKEN_AUDIENCE: "fake";
14
7
  }
15
8
  declare namespace Cloudflare {
16
9
  interface GlobalProps {
@@ -23,7 +16,7 @@ type StringifyValues<EnvType extends Record<string, unknown>> = {
23
16
  [Binding in keyof EnvType]: EnvType[Binding] extends string ? EnvType[Binding] : string;
24
17
  };
25
18
  declare namespace NodeJS {
26
- interface ProcessEnv extends StringifyValues<Pick<Cloudflare.Env, "KINESIS_STREAM_NAME_V2" | "LABS_PRIVATE_KEY" | "SENTRY_DSN" | "SENTRY_ENVIRONMENT" | "SENTRY_TRACES_SAMPLE_RATE" | "SLACK_SUPABASE_PUBLIC_KEY" | "TOKEN_AUDIENCE" | "TOKEN_HASH" | "TOKEN_ISSUER">> {}
19
+ interface ProcessEnv extends StringifyValues<Pick<Cloudflare.Env, "TOKEN_ISSUER" | "TOKEN_AUDIENCE">> {}
27
20
  }
28
21
 
29
22
  // Begin runtime types