two-stroke 6.5.1 → 6.5.3
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/bin/lint.mjs +4 -1
- package/bin/test.mjs +2 -2
- package/bin/type-check.mjs +4 -1
- package/package.json +5 -5
- package/worker-configuration.d.ts +2 -2
package/bin/lint.mjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
|
+
import fs from "fs";
|
|
3
4
|
import { cmd } from "../src/cmd.mjs";
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
if (fs.existsSync("wrangler.jsonc")) {
|
|
7
|
+
cmd("wrangler types --check")
|
|
8
|
+
}
|
|
6
9
|
cmd("eslint --cache --max-warnings=0");
|
|
7
10
|
cmd("prettier --cache --check .");
|
package/bin/test.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import prettier from "prettier";
|
|
|
8
8
|
import ts from "typescript";
|
|
9
9
|
import { Miniflare } from "miniflare";
|
|
10
10
|
|
|
11
|
-
if (fs.existsSync("wrangler.
|
|
11
|
+
if (fs.existsSync("wrangler.jsonc")) {
|
|
12
12
|
cmd("wrangler deploy --env= --dry-run --outdir=dist");
|
|
13
13
|
const miniflare = new Miniflare({
|
|
14
14
|
modules: true,
|
|
@@ -41,7 +41,7 @@ if (fs.existsSync("wrangler.toml")) {
|
|
|
41
41
|
}
|
|
42
42
|
cmd("vitest", [
|
|
43
43
|
...(!process.argv.slice(2).includes("-w") &&
|
|
44
|
-
|
|
44
|
+
!process.argv.slice(2).includes("--watch")
|
|
45
45
|
? ["--run"]
|
|
46
46
|
: []),
|
|
47
47
|
...process.argv.slice(2),
|
package/bin/type-check.mjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
|
+
import fs from "fs";
|
|
3
4
|
import { cmd } from "../src/cmd.mjs";
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
if (fs.existsSync("wrangler.jsonc")) {
|
|
7
|
+
cmd("wrangler types")
|
|
8
|
+
}
|
|
6
9
|
cmd("wrangler deploy --env= --dry-run --outdir=dist");
|
|
7
10
|
cmd("tsc --noEmit");
|
package/package.json
CHANGED
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
"type-check": "./bin/type-check.mjs"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@cloudflare/vitest-pool-workers": "^0.12.
|
|
13
|
+
"@cloudflare/vitest-pool-workers": "^0.12.21",
|
|
14
14
|
"@sentry/cli": "^3.3.0",
|
|
15
15
|
"@types/node": "^25.3.3",
|
|
16
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
17
|
-
"@typescript-eslint/parser": "^8.
|
|
16
|
+
"@typescript-eslint/eslint-plugin": "^8.57.1",
|
|
17
|
+
"@typescript-eslint/parser": "^8.57.1",
|
|
18
18
|
"@vitest/coverage-istanbul": "^4.0.18",
|
|
19
19
|
"eslint-config-prettier": "^10.1.8",
|
|
20
|
-
"eslint-config-two-stroke": "^1.
|
|
20
|
+
"eslint-config-two-stroke": "^1.5.0",
|
|
21
21
|
"eslint-config-typescript": "^3.0.0",
|
|
22
22
|
"jose": "^6.2.0",
|
|
23
23
|
"jwk-subtle": "^1.1.5",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"url": "https://github.com/change-engine/two-stroke"
|
|
58
58
|
},
|
|
59
59
|
"type": "module",
|
|
60
|
-
"version": "6.5.
|
|
60
|
+
"version": "6.5.3",
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/eslint": "^9.6.1",
|
|
63
63
|
"eslint": "^10.0.3",
|
|
@@ -8826,7 +8826,7 @@ type AIGatewayHeaders = {
|
|
|
8826
8826
|
[key: string]: string | number | boolean | object;
|
|
8827
8827
|
};
|
|
8828
8828
|
type AIGatewayUniversalRequest = {
|
|
8829
|
-
provider: AIGatewayProviders | string;
|
|
8829
|
+
provider: AIGatewayProviders | string;
|
|
8830
8830
|
endpoint: string;
|
|
8831
8831
|
headers: Partial<AIGatewayHeaders>;
|
|
8832
8832
|
query: unknown;
|
|
@@ -8842,7 +8842,7 @@ declare abstract class AiGateway {
|
|
|
8842
8842
|
gateway?: UniversalGatewayOptions;
|
|
8843
8843
|
extraHeaders?: object;
|
|
8844
8844
|
}): Promise<Response>;
|
|
8845
|
-
getUrl(provider?: AIGatewayProviders | string): Promise<string>;
|
|
8845
|
+
getUrl(provider?: AIGatewayProviders | string): Promise<string>;
|
|
8846
8846
|
}
|
|
8847
8847
|
/**
|
|
8848
8848
|
* @deprecated AutoRAG has been replaced by AI Search. Use AiSearchInternalError instead.
|