@cluesurf/kink 1.3.6 → 1.3.8

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/code/site/kink.ts CHANGED
@@ -2,12 +2,12 @@ import Kink from '~/code/base'
2
2
 
3
3
  export const host = '@cluesurf/kink'
4
4
 
5
- type BaseZodError = {
6
- link: Array<string | number>
5
+ interface BaseZodError {
6
+ link: (string | number)[]
7
7
  message: string
8
8
  }
9
9
 
10
- type Base = {
10
+ interface Base {
11
11
  call_fail: {
12
12
  take: {}
13
13
  }
@@ -25,13 +25,13 @@ type Base = {
25
25
  form_fail: {
26
26
  take: BaseZodError & {
27
27
  have: string
28
- link: Array<string>
28
+ link: string[]
29
29
  need: string
30
30
  }
31
31
  }
32
32
  form_link_fail: {
33
33
  take: BaseZodError & {
34
- list: Array<string>
34
+ list: string[]
35
35
  }
36
36
  }
37
37
  }
@@ -1,10 +1,10 @@
1
1
  import Kink from '../../code/base/index.js';
2
2
  export declare const host = "@cluesurf/kink";
3
- type BaseZodError = {
4
- link: Array<string | number>;
3
+ interface BaseZodError {
4
+ link: (string | number)[];
5
5
  message: string;
6
- };
7
- type Base = {
6
+ }
7
+ interface Base {
8
8
  call_fail: {
9
9
  take: {};
10
10
  };
@@ -16,16 +16,16 @@ type Base = {
16
16
  form_fail: {
17
17
  take: BaseZodError & {
18
18
  have: string;
19
- link: Array<string>;
19
+ link: string[];
20
20
  need: string;
21
21
  };
22
22
  };
23
23
  form_link_fail: {
24
24
  take: BaseZodError & {
25
- list: Array<string>;
25
+ list: string[];
26
26
  };
27
27
  };
28
- };
28
+ }
29
29
  type Name = keyof Base;
30
30
  export default function makeBase<N extends Name>(form: N, link?: Base[N]['take'], siteCode?: number): Kink;
31
31
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cluesurf/kink",
3
- "version": "1.3.6",
3
+ "version": "1.3.8",
4
4
  "main": "./host/code/index.js",
5
5
  "type": "module",
6
6
  "exports": {
@@ -61,7 +61,7 @@
61
61
  "typescript": "^5.9.3"
62
62
  },
63
63
  "dependencies": {
64
- "@cluesurf/show": "^1.0.2",
64
+ "@cluesurf/show": "^1.0.4",
65
65
  "@cspotcode/source-map": "^0.8.0",
66
66
  "date-fns": "^4.1.0",
67
67
  "lodash": "^4.17.21",