two-stroke 6.0.2 → 6.1.1
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/package.json +13 -13
- package/src/index.ts +2 -0
- package/src/types.ts +1 -0
package/package.json
CHANGED
|
@@ -10,25 +10,25 @@
|
|
|
10
10
|
"type-check": "./bin/type-check.mjs"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@cloudflare/vitest-pool-workers": "^0.9.
|
|
14
|
-
"@cloudflare/workers-types": "^4.
|
|
15
|
-
"@sentry/cli": "^2.
|
|
16
|
-
"@types/node": "^24.
|
|
17
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
18
|
-
"@typescript-eslint/parser": "^8.
|
|
13
|
+
"@cloudflare/vitest-pool-workers": "^0.9.11",
|
|
14
|
+
"@cloudflare/workers-types": "^4.20251008.0",
|
|
15
|
+
"@sentry/cli": "^2.56.0",
|
|
16
|
+
"@types/node": "^24.7.0",
|
|
17
|
+
"@typescript-eslint/eslint-plugin": "^8.46.0",
|
|
18
|
+
"@typescript-eslint/parser": "^8.46.0",
|
|
19
19
|
"@vitest/coverage-istanbul": "^3.2.4",
|
|
20
20
|
"eslint-config-prettier": "^10.1.8",
|
|
21
|
-
"eslint-config-two-stroke": "^1.2.
|
|
21
|
+
"eslint-config-two-stroke": "^1.2.12",
|
|
22
22
|
"eslint-config-typescript": "^3.0.0",
|
|
23
23
|
"jose": "^6.1.0",
|
|
24
24
|
"jwk-subtle": "^1.0.7",
|
|
25
25
|
"mime": "^4.1.0",
|
|
26
|
-
"miniflare": "^4.
|
|
27
|
-
"openapi-fetch": "^0.14.
|
|
26
|
+
"miniflare": "^4.20251004.0",
|
|
27
|
+
"openapi-fetch": "^0.14.1",
|
|
28
28
|
"openapi-typescript": "^7.9.1",
|
|
29
29
|
"pbkdf-subtle": "^1.0.0",
|
|
30
30
|
"toucan-js": "^4.1.1",
|
|
31
|
-
"zod": "^4.1.
|
|
31
|
+
"zod": "^4.1.12"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@sentry/cli": ">=2",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"name": "two-stroke",
|
|
53
53
|
"packageManager": "yarn@4.6.0",
|
|
54
54
|
"type": "module",
|
|
55
|
-
"version": "6.
|
|
55
|
+
"version": "6.1.1",
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/eslint": "^9.6.1",
|
|
58
|
-
"eslint": "^9.
|
|
58
|
+
"eslint": "^9.37.0",
|
|
59
59
|
"prettier": "^3.6.2",
|
|
60
|
-
"typescript": "^5.9.
|
|
60
|
+
"typescript": "^5.9.3",
|
|
61
61
|
"vitest": "^3.2.4"
|
|
62
62
|
}
|
|
63
63
|
}
|
package/src/index.ts
CHANGED
|
@@ -145,6 +145,7 @@ export function twoStroke<T extends Env>(
|
|
|
145
145
|
params,
|
|
146
146
|
searchParams: new URL(req.url).searchParams,
|
|
147
147
|
sentry,
|
|
148
|
+
waitUntil: (p: Promise<void>) => context.waitUntil(p),
|
|
148
149
|
});
|
|
149
150
|
else {
|
|
150
151
|
console.error({
|
|
@@ -174,6 +175,7 @@ export function twoStroke<T extends Env>(
|
|
|
174
175
|
params,
|
|
175
176
|
searchParams: new URL(req.url).searchParams,
|
|
176
177
|
sentry,
|
|
178
|
+
waitUntil: (p: Promise<void>) => context.waitUntil(p),
|
|
177
179
|
});
|
|
178
180
|
}
|
|
179
181
|
if (response.status === undefined || response.status === 200) {
|