@warpgogol/werkstatt-shared 0.6.0 → 0.7.0
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
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warpgogol/werkstatt-shared",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=24 <25"
|
|
8
|
+
},
|
|
6
9
|
"description": "Stack-agnostic shared infrastructure extracted from werkstatt-site (RFC-0868).",
|
|
7
10
|
"repository": {
|
|
8
11
|
"type": "git",
|
|
@@ -1329,6 +1332,8 @@
|
|
|
1329
1332
|
}
|
|
1330
1333
|
},
|
|
1331
1334
|
"scripts": {
|
|
1335
|
+
"lint": "pnpm exec eslint \"src/**/*.ts\"",
|
|
1336
|
+
"typecheck": "pnpm exec tsc -p tsconfig.json --noEmit",
|
|
1332
1337
|
"build": "pnpm exec tsc -p tsconfig.json --noEmit",
|
|
1333
1338
|
"build:check": "pnpm exec tsc -p tsconfig.json --noEmit",
|
|
1334
1339
|
"prepublishOnly": "pnpm exec tsc -p tsconfig.json --noEmit",
|
|
@@ -1362,7 +1367,10 @@
|
|
|
1362
1367
|
"@cloudflare/workers-types": "^5.20260801.1",
|
|
1363
1368
|
"@types/node": "^24.0.0",
|
|
1364
1369
|
"astro": "^7.2.0",
|
|
1370
|
+
"eslint": "^10.8.0",
|
|
1365
1371
|
"fast-check": "^4.9.0",
|
|
1372
|
+
"typescript": "^6.0.3",
|
|
1373
|
+
"typescript-eslint": "8.65.0",
|
|
1366
1374
|
"vitest": "^4.1.10"
|
|
1367
1375
|
},
|
|
1368
1376
|
"packageManager": "pnpm@11.10.0"
|
|
@@ -141,7 +141,7 @@ describe("PassportSchema", () => {
|
|
|
141
141
|
});
|
|
142
142
|
|
|
143
143
|
test("defaults stars to empty array when omitted", () => {
|
|
144
|
-
const { stars, ...withoutStars } = validPassport.composition;
|
|
144
|
+
const { stars: _stars, ...withoutStars } = validPassport.composition;
|
|
145
145
|
const result = PassportSchema.safeParse({
|
|
146
146
|
...validPassport,
|
|
147
147
|
composition: withoutStars,
|
|
@@ -32,6 +32,7 @@ export function createLanguageRedirectMiddleware(options: {
|
|
|
32
32
|
supportedLangs: readonly string[];
|
|
33
33
|
defaultLang: string;
|
|
34
34
|
}) {
|
|
35
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
35
36
|
return defineMiddleware((ctx: any, next: any) => {
|
|
36
37
|
const url = new URL(ctx.request.url);
|
|
37
38
|
const segments = url.pathname.split("/").filter(Boolean);
|