@nasti-toolchain/nasti 2.2.0 → 2.4.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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../client/hmr.ts"],"sourcesContent":["// Nasti HMR 浏览器客户端\n// 此文件会被内联到 Dev Server 中间件返回给浏览器\n\nexport interface HotModule {\n accept(cb?: (mod: any) => void): void\n accept(deps: string[], cb: (mods: any[]) => void): void\n dispose(cb: (data: any) => void): void\n prune(cb: () => void): void\n invalidate(): void\n data: Record<string, any>\n}\n\ndeclare global {\n interface ImportMeta {\n hot?: HotModule\n }\n}\n\nexport {}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../client/hmr.ts"],"sourcesContent":["// Nasti HMR 浏览器客户端\n// 此文件会被内联到 Dev Server 中间件返回给浏览器\n\nexport interface HotModule {\n accept(cb?: (mod: any) => void): void\n accept(dep: string, cb: (mod: any) => void): void\n accept(deps: string[], cb: (mods: any[]) => void): void\n dispose(cb: (data: Record<string, any>) => void | Promise<void>): void\n prune(cb: (data: Record<string, any>) => void | Promise<void>): void\n invalidate(message?: string): void\n data: Record<string, any>\n}\n\ndeclare global {\n interface ImportMeta {\n hot?: HotModule\n }\n}\n\nexport {}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1,9 +1,10 @@
1
1
  interface HotModule {
2
2
  accept(cb?: (mod: any) => void): void;
3
+ accept(dep: string, cb: (mod: any) => void): void;
3
4
  accept(deps: string[], cb: (mods: any[]) => void): void;
4
- dispose(cb: (data: any) => void): void;
5
- prune(cb: () => void): void;
6
- invalidate(): void;
5
+ dispose(cb: (data: Record<string, any>) => void | Promise<void>): void;
6
+ prune(cb: (data: Record<string, any>) => void | Promise<void>): void;
7
+ invalidate(message?: string): void;
7
8
  data: Record<string, any>;
8
9
  }
9
10
  declare global {
@@ -1,9 +1,10 @@
1
1
  interface HotModule {
2
2
  accept(cb?: (mod: any) => void): void;
3
+ accept(dep: string, cb: (mod: any) => void): void;
3
4
  accept(deps: string[], cb: (mods: any[]) => void): void;
4
- dispose(cb: (data: any) => void): void;
5
- prune(cb: () => void): void;
6
- invalidate(): void;
5
+ dispose(cb: (data: Record<string, any>) => void | Promise<void>): void;
6
+ prune(cb: (data: Record<string, any>) => void | Promise<void>): void;
7
+ invalidate(message?: string): void;
7
8
  data: Record<string, any>;
8
9
  }
9
10
  declare global {