@contractkit/plugin-typescript 0.25.4 → 0.26.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/.turbo/turbo-build$colon$ci.log +4 -4
- package/.turbo/turbo-test$colon$ci.log +12 -12
- package/CHANGELOG.md +11 -0
- package/coverage/clover.xml +353 -352
- package/coverage/coverage-final.json +3 -3
- package/coverage/index.html +12 -12
- package/coverage/src/codegen-contract.ts.html +7 -7
- package/coverage/src/codegen-operation.ts.html +193 -184
- package/coverage/src/codegen-plain-types.ts.html +1 -1
- package/coverage/src/codegen-sdk.ts.html +1 -1
- package/coverage/src/index.html +13 -13
- package/coverage/src/index.ts.html +1 -1
- package/coverage/src/path-utils.ts.html +1 -1
- package/coverage/src/ts-render.ts.html +1 -1
- package/coverage/tests/helpers.ts.html +12 -12
- package/coverage/tests/index.html +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/codegen-operation.ts +4 -1
- package/tests/codegen-operation.test.ts +11 -0
|
@@ -5,9 +5,9 @@ $ tsup src/index.ts --format esm --sourcemap --dts && tsc --emitDeclarationOnly
|
|
|
5
5
|
[34mCLI[39m tsup v8.5.1
|
|
6
6
|
[34mCLI[39m Target: esnext
|
|
7
7
|
[34mESM[39m Build start
|
|
8
|
-
[32mESM[39m [1mdist/index.js [22m[32m150.
|
|
9
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m328.
|
|
10
|
-
[32mESM[39m ⚡️ Build success in
|
|
8
|
+
[32mESM[39m [1mdist/index.js [22m[32m150.35 KB[39m
|
|
9
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m328.43 KB[39m
|
|
10
|
+
[32mESM[39m ⚡️ Build success in 348ms
|
|
11
11
|
[34mDTS[39m Build start
|
|
12
|
-
[32mDTS[39m ⚡️ Build success in
|
|
12
|
+
[32mDTS[39m ⚡️ Build success in 7174ms
|
|
13
13
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m1.82 KB[39m
|
|
@@ -3,26 +3,26 @@ $ vitest run --coverage
|
|
|
3
3
|
[1m[30m[46m RUN [49m[39m[22m [36mv4.1.5 [39m[90m/home/runner/work/ContractKit/ContractKit/packages/plugin-typescript[39m
|
|
4
4
|
[2mCoverage enabled with [22m[33mv8[39m
|
|
5
5
|
|
|
6
|
-
[32m✓[39m tests/codegen-
|
|
7
|
-
[32m✓[39m tests/codegen-operation.test.ts [2m([22m[
|
|
8
|
-
[32m✓[39m tests/codegen-
|
|
9
|
-
[32m✓[39m tests/codegen-
|
|
10
|
-
[32m✓[39m tests/codegen-
|
|
11
|
-
[32m✓[39m tests/pipeline.test.ts [2m([22m[2m25 tests[22m[2m)[22m[32m
|
|
6
|
+
[32m✓[39m tests/codegen-contract.test.ts [2m([22m[2m127 tests[22m[2m)[22m[32m 167[2mms[22m[39m
|
|
7
|
+
[32m✓[39m tests/codegen-operation.test.ts [2m([22m[2m89 tests[22m[2m)[22m[32m 187[2mms[22m[39m
|
|
8
|
+
[32m✓[39m tests/codegen-sdk.test.ts [2m([22m[2m132 tests[22m[2m)[22m[32m 186[2mms[22m[39m
|
|
9
|
+
[32m✓[39m tests/codegen-plain-types.test.ts [2m([22m[2m61 tests[22m[2m)[22m[32m 51[2mms[22m[39m
|
|
10
|
+
[32m✓[39m tests/codegen-server.test.ts [2m([22m[2m19 tests[22m[2m)[22m[32m 74[2mms[22m[39m
|
|
11
|
+
[32m✓[39m tests/pipeline.test.ts [2m([22m[2m25 tests[22m[2m)[22m[32m 177[2mms[22m[39m
|
|
12
12
|
|
|
13
13
|
[2m Test Files [22m [1m[32m6 passed[39m[22m[90m (6)[39m
|
|
14
|
-
[2m Tests [22m [1m[
|
|
15
|
-
[2m Start at [22m
|
|
16
|
-
[2m Duration [22m 7.
|
|
14
|
+
[2m Tests [22m [1m[32m453 passed[39m[22m[90m (453)[39m
|
|
15
|
+
[2m Start at [22m 19:14:39
|
|
16
|
+
[2m Duration [22m 7.36s[2m (transform 4.18s, setup 0ms, import 14.22s, tests 841ms, environment 12ms)[22m
|
|
17
17
|
|
|
18
18
|
[34m % [39m[2mCoverage report from [22m[33mv8[39m
|
|
19
19
|
-------------------|---------|----------|---------|---------|-------------------
|
|
20
20
|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
|
|
21
21
|
-------------------|---------|----------|---------|---------|-------------------
|
|
22
|
-
All files | 80.
|
|
23
|
-
src | 79.83 | 75.
|
|
22
|
+
All files | 80.05 | 75.37 | 83.66 | 82.64 |
|
|
23
|
+
src | 79.83 | 75.06 | 83.24 | 82.41 |
|
|
24
24
|
...n-contract.ts | 87.92 | 82.7 | 90.08 | 89.06 | ...1085,1090-1091
|
|
25
|
-
...-operation.ts | 78.
|
|
25
|
+
...-operation.ts | 78.41 | 74.7 | 78.94 | 79.9 | ...80-691,696-697
|
|
26
26
|
...lain-types.ts | 89.08 | 78.37 | 96.66 | 92.3 | ...31,243,249,301
|
|
27
27
|
codegen-sdk.ts | 88.09 | 82.56 | 87.32 | 91.32 | ...1108-1109,1112
|
|
28
28
|
index.ts | 60.23 | 47.91 | 63.04 | 65.37 | ...08-811,827-846
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @contractkit/contractkit-plugin-typescript
|
|
2
2
|
|
|
3
|
+
## 0.26.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- fff30df: Add a block form to the operation `signature:` key. Alongside the existing bare form (`signature: KEY`), you can now write `signature: { options: KEY, policy: name }` to attach a signature-scoped policy. The policy is passed through to the generated `requireSignature(KEY, { policy: name })` middleware and surfaces in OpenAPI-to-`.ck` output, Markdown docs, and the explorer UI. The bare form is unchanged and remains shorthand for a block with only `options:`.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [fff30df]
|
|
12
|
+
- @contractkit/core@0.21.0
|
|
13
|
+
|
|
3
14
|
## 0.25.4
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|