@cluesurf/kink 1.3.4 → 1.3.6
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/index.ts +4 -7
- package/host/code/index.d.ts +1 -2
- package/host/code/index.js +1 -2
- package/host/code/index.js.map +1 -1
- package/host/code/site/index.d.ts +2 -2
- package/host/code/site/index.js +3 -3
- package/host/code/site/kink.d.ts +1 -1
- package/host/code/site/kink.js +1 -1
- package/host/code/site/make.js +3 -3
- package/host/code/site/test.d.ts +1 -1
- package/host/code/site/test.js +2 -2
- package/host/code/tree/browser.d.ts +3 -3
- package/host/code/tree/browser.js +3 -3
- package/host/code/tree/index.d.ts +1 -1
- package/host/code/tree/index.js +1 -1
- package/host/code/tree/make.d.ts +1 -1
- package/host/code/tree/make.js +1 -1
- package/host/code/tree/node.d.ts +3 -3
- package/host/code/tree/node.js +3 -3
- package/host/code/tree/test.d.ts +1 -1
- package/host/code/tree/test.js +2 -2
- package/package.json +22 -21
package/code/index.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './tree/index.js'
|
|
6
|
-
|
|
7
|
-
export default Kink
|
|
1
|
+
export { default } from './base'
|
|
2
|
+
export * from './base'
|
|
3
|
+
export * from './site'
|
|
4
|
+
export * from './tree'
|
package/host/code/index.d.ts
CHANGED
package/host/code/index.js
CHANGED
package/host/code/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../code/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../code/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Kink, { KinkList } from '../base';
|
|
1
|
+
import Kink, { KinkList } from '../base/index.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare function isZodError<I>(input: any): input is z.ZodSafeParseError<I>;
|
|
4
4
|
export declare function loadKink(error: any): Kink | undefined;
|
|
5
5
|
export declare function loadKinkList(error: any): Kink;
|
|
6
6
|
export declare function loadZodErrorJSON(error: z.ZodError): KinkList;
|
|
7
|
-
export { default } from './make';
|
|
7
|
+
export { default } from './make.js';
|
package/host/code/site/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Kink, { KinkList } from '../base';
|
|
1
|
+
import Kink, { KinkList } from '../base/index.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import kink, { host } from './kink';
|
|
3
|
+
import kink, { host } from './kink.js';
|
|
4
4
|
export function isZodError(input) {
|
|
5
5
|
return Boolean(
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
@@ -72,5 +72,5 @@ export function loadZodErrorJSON(error) {
|
|
|
72
72
|
}
|
|
73
73
|
}));
|
|
74
74
|
}
|
|
75
|
-
export { default } from './make';
|
|
75
|
+
export { default } from './make.js';
|
|
76
76
|
//# sourceMappingURL=index.js.map
|
package/host/code/site/kink.d.ts
CHANGED
package/host/code/site/kink.js
CHANGED
package/host/code/site/make.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { KinkList } from '../base';
|
|
2
|
-
import { loadKink } from '.';
|
|
3
|
-
import { makeKinkText } from '../tree';
|
|
1
|
+
import { KinkList } from '../base/index.js';
|
|
2
|
+
import { loadKink } from './index.js';
|
|
3
|
+
import { makeKinkText } from '../tree/index.js';
|
|
4
4
|
export default function makeSiteKinkText(error) {
|
|
5
5
|
const kink = loadKink(error);
|
|
6
6
|
const text = [];
|
package/host/code/site/test.d.ts
CHANGED
package/host/code/site/test.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Kink from '../../code/base';
|
|
1
|
+
import Kink from '../../code/base/index.js';
|
|
2
2
|
import fs from 'fs';
|
|
3
|
-
import makeSiteKinkText from '.';
|
|
3
|
+
import makeSiteKinkText from './index.js';
|
|
4
4
|
const host = '@cluesurf/kink';
|
|
5
5
|
Kink.base(host, 'syntax_error', () => ({
|
|
6
6
|
code: 1,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Kink from '../../code/base';
|
|
2
|
-
import makeText from './make';
|
|
3
|
-
export * from './make';
|
|
1
|
+
import Kink from '../../code/base/index.js';
|
|
2
|
+
import makeText from './make.js';
|
|
3
|
+
export * from './make.js';
|
|
4
4
|
export declare function makeBaseKinkText(kink: Error): string;
|
|
5
5
|
export declare function makeKinkText(kink: Kink): string;
|
|
6
6
|
export { makeText };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Kink from '../../code/base';
|
|
2
|
-
import makeText from './make';
|
|
3
|
-
export * from './make';
|
|
1
|
+
import Kink from '../../code/base/index.js';
|
|
2
|
+
import makeText from './make.js';
|
|
3
|
+
export * from './make.js';
|
|
4
4
|
export function makeBaseKinkText(kink) {
|
|
5
5
|
return makeText({ ...Kink.makeBase(kink), list: [] });
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './node';
|
|
1
|
+
export * from './node.js';
|
package/host/code/tree/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './node';
|
|
1
|
+
export * from './node.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/host/code/tree/make.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare function makeLinkList(list: Array<string>, hook?: HostLinkHook):
|
|
|
24
24
|
*/
|
|
25
25
|
declare const makeText: ({ host, code, note, link, list, time, hook, }: MakeText) => string;
|
|
26
26
|
export default makeText;
|
|
27
|
-
export { makeKinkText, makeBaseKinkText } from './node';
|
|
27
|
+
export { makeKinkText, makeBaseKinkText } from './node.js';
|
|
28
28
|
export declare const makeTextHead: (note: string, code: string, host: string, time: string) => string[];
|
|
29
29
|
export declare function readListLine(text: string, hook?: HostLinkHook): LineListLink | undefined;
|
|
30
30
|
export declare function readListLineFile(text: string, hook?: HostLinkHook): LineListLink;
|
package/host/code/tree/make.js
CHANGED
|
@@ -216,7 +216,7 @@ const makeText = ({ host, code, note, link = {}, list, time, hook, }) => {
|
|
|
216
216
|
export default makeText;
|
|
217
217
|
// Export node implementation by default for now
|
|
218
218
|
// Dynamic resolution will be handled by package.json exports field when using @cluesurf/kink/system
|
|
219
|
-
export { makeKinkText, makeBaseKinkText } from './node';
|
|
219
|
+
export { makeKinkText, makeBaseKinkText } from './node.js';
|
|
220
220
|
export const makeTextHead = (note, code, host, time) => {
|
|
221
221
|
const list = [];
|
|
222
222
|
const R = { tone: 'red' };
|
package/host/code/tree/node.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Kink from '../../code/base';
|
|
2
|
-
import makeText from './make';
|
|
3
|
-
export * from './make';
|
|
1
|
+
import Kink from '../../code/base/index.js';
|
|
2
|
+
import makeText from './make.js';
|
|
3
|
+
export * from './make.js';
|
|
4
4
|
export declare function makeBaseKinkText(kink: Error): string;
|
|
5
5
|
export declare function makeKinkText(kink: Kink): string;
|
|
6
6
|
export { makeText };
|
package/host/code/tree/node.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import smc from '@cspotcode/source-map';
|
|
2
|
-
import Kink from '../../code/base';
|
|
2
|
+
import Kink from '../../code/base/index.js';
|
|
3
3
|
import fs from 'fs';
|
|
4
4
|
import pathResolve from 'path';
|
|
5
|
-
import makeText from './make';
|
|
6
|
-
export * from './make';
|
|
5
|
+
import makeText from './make.js';
|
|
6
|
+
export * from './make.js';
|
|
7
7
|
const HOST_LINK_MESH = {};
|
|
8
8
|
function loadHostLink(line) {
|
|
9
9
|
const link = HOST_LINK_MESH[`${line}`];
|
package/host/code/tree/test.d.ts
CHANGED
package/host/code/tree/test.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Kink from '../../code/base';
|
|
1
|
+
import Kink from '../../code/base/index.js';
|
|
2
2
|
import fs from 'fs';
|
|
3
3
|
import { format } from 'date-fns';
|
|
4
|
-
import { makeKinkText, makeBaseKinkText, TIME_FORM } from './make';
|
|
4
|
+
import { makeKinkText, makeBaseKinkText, TIME_FORM } from './make.js';
|
|
5
5
|
const host = '@cluesurf/kink';
|
|
6
6
|
Kink.base(host, 'syntax_error', () => ({
|
|
7
7
|
code: 1,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cluesurf/kink",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6",
|
|
4
4
|
"main": "./host/code/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -26,38 +26,39 @@
|
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"prettier": "@cluesurf/wash/flow.json",
|
|
28
28
|
"scripts": {
|
|
29
|
-
"make": "tsc && tsc-alias",
|
|
29
|
+
"make": "tsc && tsc-alias && fix-esm-import-path host/code",
|
|
30
30
|
"scan": "concurrently --kill-others \"tsc -w\" \"tsc-alias -w\"",
|
|
31
31
|
"lint": "eslint --ext .ts . --ignore-path .gitignore --fix",
|
|
32
32
|
"test": "tsx test",
|
|
33
33
|
"host": "pnpm make && npm publish --access=public"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@cluesurf/wash": "^0.6.
|
|
37
|
-
"@trivago/prettier-plugin-sort-imports": "^4.
|
|
38
|
-
"@types/lodash": "^4.
|
|
39
|
-
"@types/node": "^18.
|
|
40
|
-
"@types/prettier": "^2.7.
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
42
|
-
"@typescript-eslint/parser": "^5.
|
|
36
|
+
"@cluesurf/wash": "^0.6.10",
|
|
37
|
+
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
38
|
+
"@types/lodash": "^4.17.20",
|
|
39
|
+
"@types/node": "^18.19.130",
|
|
40
|
+
"@types/prettier": "^2.7.3",
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
42
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
43
43
|
"concurrently": "^7.6.0",
|
|
44
|
-
"eslint": "^8.
|
|
45
|
-
"eslint-config-prettier": "^8.
|
|
44
|
+
"eslint": "^8.57.1",
|
|
45
|
+
"eslint-config-prettier": "^8.10.2",
|
|
46
46
|
"eslint-config-standard-with-typescript": "^24.0.0",
|
|
47
|
-
"eslint-import-resolver-typescript": "^3.
|
|
48
|
-
"eslint-plugin-import": "^2.
|
|
49
|
-
"eslint-plugin-n": "^15.
|
|
50
|
-
"eslint-plugin-prettier": "^4.2.
|
|
51
|
-
"eslint-plugin-promise": "^6.
|
|
47
|
+
"eslint-import-resolver-typescript": "^3.10.1",
|
|
48
|
+
"eslint-plugin-import": "^2.32.0",
|
|
49
|
+
"eslint-plugin-n": "^15.7.0",
|
|
50
|
+
"eslint-plugin-prettier": "^4.2.5",
|
|
51
|
+
"eslint-plugin-promise": "^6.6.0",
|
|
52
52
|
"eslint-plugin-simple-import-sort": "^8.0.0",
|
|
53
53
|
"eslint-plugin-sort-exports": "^0.8.0",
|
|
54
54
|
"eslint-plugin-sort-keys": "^2.3.5",
|
|
55
55
|
"eslint-plugin-typescript-sort-keys": "^3.3.0",
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
56
|
+
"fix-esm-import-path": "^1.10.3",
|
|
57
|
+
"prettier": "^2.8.8",
|
|
58
|
+
"ts-node": "^10.9.2",
|
|
59
|
+
"tsc-alias": "^1.8.16",
|
|
60
|
+
"tsx": "^4.20.6",
|
|
61
|
+
"typescript": "^5.9.3"
|
|
61
62
|
},
|
|
62
63
|
"dependencies": {
|
|
63
64
|
"@cluesurf/show": "^1.0.2",
|