@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 CHANGED
@@ -1,7 +1,4 @@
1
- import Kink from './base/index.js'
2
-
3
- export * from './base/index.js'
4
- export * from './site/index.js'
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'
@@ -1,5 +1,4 @@
1
- import Kink from './base/index.js';
1
+ export { default } from './base/index.js';
2
2
  export * from './base/index.js';
3
3
  export * from './site/index.js';
4
4
  export * from './tree/index.js';
5
- export default Kink;
@@ -1,6 +1,5 @@
1
- import Kink from './base/index.js';
1
+ export { default } from './base/index.js';
2
2
  export * from './base/index.js';
3
3
  export * from './site/index.js';
4
4
  export * from './tree/index.js';
5
- export default Kink;
6
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../code/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,iBAAiB,CAAA;AAElC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAE/B,eAAe,IAAI,CAAA"}
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';
@@ -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
@@ -1,4 +1,4 @@
1
- import Kink from '../../code/base';
1
+ import Kink from '../../code/base/index.js';
2
2
  export declare const host = "@cluesurf/kink";
3
3
  type BaseZodError = {
4
4
  link: Array<string | number>;
@@ -1,4 +1,4 @@
1
- import Kink from '../../code/base';
1
+ import Kink from '../../code/base/index.js';
2
2
  export const host = '@cluesurf/kink';
3
3
  let CODE_INDEX = 1;
4
4
  const CODE = {
@@ -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 = [];
@@ -1,4 +1,4 @@
1
- import Kink from '../../code/base';
1
+ import Kink from '../../code/base/index.js';
2
2
  type Base = {
3
3
  syntax_error: {};
4
4
  };
@@ -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';
@@ -1,2 +1,2 @@
1
- export * from './node';
1
+ export * from './node.js';
2
2
  //# sourceMappingURL=index.js.map
@@ -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;
@@ -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' };
@@ -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,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}`];
@@ -1,4 +1,4 @@
1
- import Kink from '../../code/base';
1
+ import Kink from '../../code/base/index.js';
2
2
  type Base = {
3
3
  syntax_error: {};
4
4
  };
@@ -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.4",
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.2",
37
- "@trivago/prettier-plugin-sort-imports": "^4.0.0",
38
- "@types/lodash": "^4.14.194",
39
- "@types/node": "^18.11.17",
40
- "@types/prettier": "^2.7.2",
41
- "@typescript-eslint/eslint-plugin": "^5.46.1",
42
- "@typescript-eslint/parser": "^5.46.1",
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.31.0",
45
- "eslint-config-prettier": "^8.5.0",
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.5.2",
48
- "eslint-plugin-import": "^2.26.0",
49
- "eslint-plugin-n": "^15.6.0",
50
- "eslint-plugin-prettier": "^4.2.1",
51
- "eslint-plugin-promise": "^6.1.1",
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
- "prettier": "^2.8.1",
57
- "ts-node": "^10.9.1",
58
- "tsc-alias": "^1.8.2",
59
- "tsx": "^4.11.0",
60
- "typescript": "^5.0.4"
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",