@hpcc-js/observablehq-compiler 3.7.13 → 3.8.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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/types/compiler.d.ts +24 -24
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hpcc-js/observablehq-compiler",
3
- "version": "3.7.13",
3
+ "version": "3.8.0",
4
4
  "description": "hpcc-js - ObservableHQ Compiler (unoffical)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -46,7 +46,7 @@
46
46
  "bundle-watch": "vite build --watch",
47
47
  "bundle-serve": "vite --port 5514",
48
48
  "bundle-preview": "vite preview --outDir /",
49
- "gen-types": "tsc --project tsconfig.json",
49
+ "gen-types": "tsgo --project tsconfig.json",
50
50
  "gen-types-watch": "npm run gen-types -- --watch",
51
51
  "build": "run-p gen-types bundle",
52
52
  "watch": "run-p gen-types-watch bundle-watch",
@@ -67,7 +67,7 @@
67
67
  "yargs": "18.0.0"
68
68
  },
69
69
  "devDependencies": {
70
- "@hpcc-js/esbuild-plugins": "^1.8.11",
70
+ "@hpcc-js/esbuild-plugins": "^1.9.0",
71
71
  "@observablehq/inspector": "5.0.1",
72
72
  "@observablehq/notebook-kit": "1.9.1",
73
73
  "@observablehq/parser": "6.1.0",
@@ -94,5 +94,5 @@
94
94
  "url": "https://github.com/hpcc-systems/Visualization/issues"
95
95
  },
96
96
  "homepage": "https://github.com/hpcc-systems/Visualization/tree/main/packages/observablehq-compiler",
97
- "gitHead": "1c0e8862859769465f70f384183f1399191d76e6"
97
+ "gitHead": "b762adfab7d03d06ea8cfab59059456100ea757c"
98
98
  }
@@ -15,23 +15,23 @@ declare function createCell(node: ohq.Node, options: CompileOptions): Promise<{
15
15
  (runtime: ohq.Runtime, main: ohq.Module, inspector?: InspectorFactoryEx): ohq.Module;
16
16
  importVariables: {
17
17
  (main: ohq.Module, otherModule: ohq.Module): void;
18
- delete(): void;
18
+ delete: () => void;
19
19
  }[];
20
20
  variables: {
21
21
  (module: ohq.Module, inspector?: InspectorFactoryEx): ohq.Variable;
22
- delete(): void;
23
- write(w: Writer): void;
22
+ delete: () => void;
23
+ write: (w: Writer) => void;
24
24
  }[];
25
- delete(): void;
26
- write(w: Writer): void;
25
+ delete: () => void;
26
+ write: (w: Writer) => void;
27
27
  }[];
28
28
  variables: {
29
29
  (module: ohq.Module, inspector?: InspectorFactoryEx): ohq.Variable;
30
- delete(): void;
31
- write(w: Writer): void;
30
+ delete: () => void;
31
+ write: (w: Writer) => void;
32
32
  }[];
33
- delete(): void;
34
- write(w: Writer): void;
33
+ delete: () => void;
34
+ write: (w: Writer) => void;
35
35
  }>;
36
36
  export type CellFunc = Awaited<ReturnType<typeof createCell>>;
37
37
  export interface CompileOptions {
@@ -48,30 +48,30 @@ export declare function notebook(_files?: ohq.File[], _cells?: CellFunc[], { bas
48
48
  (runtime: ohq.Runtime, main: ohq.Module, inspector?: InspectorFactoryEx): ohq.Module;
49
49
  importVariables: {
50
50
  (main: ohq.Module, otherModule: ohq.Module): void;
51
- delete(): void;
51
+ delete: () => void;
52
52
  }[];
53
53
  variables: {
54
54
  (module: ohq.Module, inspector?: InspectorFactoryEx): ohq.Variable;
55
- delete(): void;
56
- write(w: Writer): void;
55
+ delete: () => void;
56
+ write: (w: Writer) => void;
57
57
  }[];
58
- delete(): void;
59
- write(w: Writer): void;
58
+ delete: () => void;
59
+ write: (w: Writer) => void;
60
60
  }[];
61
61
  variables: {
62
62
  (module: ohq.Module, inspector?: InspectorFactoryEx): ohq.Variable;
63
- delete(): void;
64
- write(w: Writer): void;
63
+ delete: () => void;
64
+ write: (w: Writer) => void;
65
65
  }[];
66
- delete(): void;
67
- write(w: Writer): void;
66
+ delete: () => void;
67
+ write: (w: Writer) => void;
68
68
  }>;
69
- set(n: ohq.Node): Promise<CellFunc>;
70
- get(id: string | number): CellFunc | undefined;
71
- delete(id: string | number): boolean;
72
- clear(): void;
73
- write(w: Writer): void;
74
- toString(w?: Writer): string;
69
+ set: (n: ohq.Node) => Promise<CellFunc>;
70
+ get: (id: string | number) => CellFunc | undefined;
71
+ delete: (id: string | number) => boolean;
72
+ clear: () => void;
73
+ write: (w: Writer) => void;
74
+ toString: (w?: Writer) => string;
75
75
  };
76
76
  type NotebookFunc = ReturnType<typeof notebook>;
77
77
  export declare function isNotebookKit(value: any): value is Notebook;