@idlebox/chokidar 0.0.23 → 0.0.24

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.
@@ -3,7 +3,7 @@
3
3
  // @ts-ignore
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.startChokidar = exports.WatchHelper = void 0;
6
+ exports.FSWatcher = exports.startChokidar = exports.WatchHelper = void 0;
7
7
  /* main.ts */
8
8
  // Identifiers
9
9
  var main_js_1 = require("./main.cjs");
@@ -12,4 +12,6 @@ var main_js_2 = require("./main.cjs");
12
12
  Object.defineProperty(exports, "startChokidar", { enumerable: true, get: function () { return main_js_2.startChokidar; } });
13
13
  /* re-export.ts */
14
14
  // Identifiers
15
+ var re_export_js_1 = require("./re-export.cjs");
16
+ Object.defineProperty(exports, "FSWatcher", { enumerable: true, get: function () { return re_export_js_1.FSWatcher; } });
15
17
  //# sourceMappingURL=__create_index.generated.cjs.map
@@ -6,5 +6,5 @@
6
6
  "../../src/__create_index.generated.ts"
7
7
  ],
8
8
  "names": [],
9
- "mappings": ";AAAA,wBAAwB;AACxB,aAAa;AACb,oBAAoB;;;AAEpB,aAAa;AACZ,cAAc;AACd,sCAAsC;AAA9B,sGAAA,WAAW,OAAA;AAEnB,sCAAwC;AAAhC,wGAAA,aAAa,OAAA;AACtB,kBAAkB;AACjB,cAAc"
9
+ "mappings": ";AAAA,wBAAwB;AACxB,aAAa;AACb,oBAAoB;;;AAEpB,aAAa;AACZ,cAAc;AACd,sCAAsC;AAA9B,sGAAA,WAAW,OAAA;AAEnB,sCAAwC;AAAhC,wGAAA,aAAa,OAAA;AACtB,kBAAkB;AACjB,cAAc;AACd,gDAAyC;AAAjC,yGAAA,SAAS,OAAA"
10
10
  }
@@ -0,0 +1,5 @@
1
+ export { WatchHelper } from "./main.js";
2
+ export { type IWatchHelper } from "./main.js";
3
+ export { startChokidar } from "./main.js";
4
+ export { FSWatcher } from "./re-export.js";
5
+ //# sourceMappingURL=__create_index.generated.d.ts.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "file": "__create_index.generated.d.ts",
4
+ "sourceRoot": "",
5
+ "sources": [
6
+ "../../src/__create_index.generated.ts"
7
+ ],
8
+ "names": [],
9
+ "mappings": "AAMC,OAAO,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AACtC,OAAO,EAAC,KAAK,YAAY,EAAC,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAC,aAAa,EAAC,MAAM,WAAW,CAAC;AAGxC,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC"
10
+ }
@@ -0,0 +1,11 @@
1
+ // DO NOT EDIT THIS FILE
2
+ // @ts-ignore
3
+ /* eslint-disable */
4
+ /* main.ts */
5
+ // Identifiers
6
+ export { WatchHelper } from "./main.js";
7
+ export { startChokidar } from "./main.js";
8
+ /* re-export.ts */
9
+ // Identifiers
10
+ export { FSWatcher } from "./re-export.js";
11
+ //# sourceMappingURL=__create_index.generated.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "file": "__create_index.generated.js",
4
+ "sourceRoot": "",
5
+ "sources": [
6
+ "../../src/__create_index.generated.ts"
7
+ ],
8
+ "names": [],
9
+ "mappings": "AAAA,wBAAwB;AACxB,aAAa;AACb,oBAAoB;AAEpB,aAAa;AACZ,cAAc;AACd,OAAO,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AAEtC,OAAO,EAAC,aAAa,EAAC,MAAM,WAAW,CAAC;AACzC,kBAAkB;AACjB,cAAc;AACd,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC"
10
+ }
@@ -0,0 +1 @@
1
+ {"version":"5.8.2"}
@@ -1,19 +1,4 @@
1
1
  import { FSWatcher } from 'chokidar';
2
-
3
- declare interface IReloadFunction {
4
- (changes: string[]): void | Promise<void>;
5
- }
6
-
7
- export declare interface IWatchHelper {
8
- addWatch(newWatch: string): void;
9
- delWatch(oldWatch: string): void;
10
- reset(): void;
11
- dispose(): Promise<void>;
12
- readonly watches: ReadonlyArray<string>;
13
- }
14
-
15
- export declare function startChokidar(reload: IReloadFunction): IWatchHelper;
16
-
17
2
  export declare class WatchHelper implements IWatchHelper {
18
3
  private readonly watcher;
19
4
  private readonly onChange;
@@ -34,5 +19,16 @@ export declare class WatchHelper implements IWatchHelper {
34
19
  get watches(): ReadonlyArray<string>;
35
20
  dispose(): Promise<void>;
36
21
  }
37
-
38
- export { }
22
+ export interface IWatchHelper {
23
+ addWatch(newWatch: string): void;
24
+ delWatch(oldWatch: string): void;
25
+ reset(): void;
26
+ dispose(): Promise<void>;
27
+ readonly watches: ReadonlyArray<string>;
28
+ }
29
+ interface IReloadFunction {
30
+ (changes: string[]): void | Promise<void>;
31
+ }
32
+ export declare function startChokidar(reload: IReloadFunction): IWatchHelper;
33
+ export {};
34
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "file": "main.d.ts",
4
+ "sourceRoot": "",
5
+ "sources": [
6
+ "../../src/main.ts"
7
+ ],
8
+ "names": [],
9
+ "mappings": "AACA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAgBrC,qBAAa,WAAY,YAAW,YAAY;IAQnC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAAa,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAP1E,OAAO,CAAC,QAAQ,CAAqB;IACrC,OAAO,CAAC,KAAK,CAAc;IAEpB,UAAU,SAAO;IACxB,OAAO,CAAC,OAAO,CAAC,CAAgB;IAChC,OAAO,CAAC,OAAO,CAAqB;gBAEP,OAAO,EAAE,SAAS,EAAmB,QAAQ,EAAE,eAAe;IAO3F,OAAO,CAAC,SAAS,CAAC,CAAiB;IACnC,OAAO,CAAC,QAAQ;IAQhB,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,YAAY;IAqBpB,OAAO,CAAC,WAAW;IA8BnB,QAAQ,CAAC,QAAQ,EAAE,MAAM;IAMzB,QAAQ,CAAC,QAAQ,EAAE,MAAM;IAOzB,KAAK;IAIL,IAAI,OAAO,IAAI,aAAa,CAAC,MAAM,CAAC,CAEnC;IAED,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAGxB;AAED,MAAM,WAAW,YAAY;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,KAAK,IAAI,IAAI,CAAC;IACd,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CACxC;AAED,UAAU,eAAe;IACxB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1C;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,eAAe,GAAG,YAAY,CASnE"
10
+ }
@@ -120,4 +120,4 @@ export function startChokidar(reload) {
120
120
  registerGlobalLifecycle(w);
121
121
  return w;
122
122
  }
123
- //# sourceMappingURL=main.mjs.map
123
+ //# sourceMappingURL=main.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "file": "main.mjs",
3
+ "file": "main.js",
4
4
  "sourceRoot": "",
5
5
  "sources": [
6
6
  "../../src/main.ts"
@@ -0,0 +1,2 @@
1
+ export { FSWatcher } from 'chokidar';
2
+ //# sourceMappingURL=re-export.d.ts.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "file": "re-export.d.ts",
4
+ "sourceRoot": "",
5
+ "sources": [
6
+ "../../src/re-export.ts"
7
+ ],
8
+ "names": [],
9
+ "mappings": "AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC"
10
+ }
@@ -0,0 +1,4 @@
1
+ import _chokidar_0 from 'chokidar';
2
+ export const _chokidar_0_0 = _chokidar_0.FSWatcher;
3
+ export { _chokidar_0_0 as FSWatcher };
4
+ //# sourceMappingURL=re-export.js.map
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "version": 3,
3
- "file": "re-export.mjs",
3
+ "file": "re-export.js",
4
4
  "sourceRoot": "",
5
5
  "sources": [
6
6
  "../../src/re-export.ts"
7
7
  ],
8
8
  "names": [],
9
- "mappings": "wBAA0B,UAAU;aAA3B,SAAS,eAAT,SAAS"
9
+ "mappings": "wBAA0B,UAAU;yCAA3B,SAAS;0BAAT,SAAS"
10
10
  }
package/package.json CHANGED
@@ -1,29 +1,31 @@
1
1
  {
2
2
  "name": "@idlebox/chokidar",
3
3
  "type": "module",
4
- "version": "0.0.23",
4
+ "version": "0.0.24",
5
5
  "license": "MIT",
6
6
  "author": "GongT <admin@gongt.me> https://github.com/gongt/",
7
7
  "main": "./lib/cjs/__create_index.generated.cjs",
8
- "module": "./lib/esm/__create_index.generated.mjs",
8
+ "module": "./lib/esm/__create_index.generated.js",
9
+ "types": "./lib/esm/__create_index.generated.d.ts",
9
10
  "exports": {
10
11
  ".": {
11
- "import": "./lib/esm/__create_index.generated.mjs",
12
+ "types": "./lib/esm/__create_index.generated.d.ts",
13
+ "import": "./lib/esm/__create_index.generated.js",
12
14
  "require": "./lib/cjs/__create_index.generated.cjs"
13
15
  },
14
16
  "./package.json": "./package.json"
15
17
  },
16
18
  "dependencies": {
17
- "chokidar": "^3.6.0",
18
- "debug": "^4.3.6",
19
- "@idlebox/common": "^1.3.33"
19
+ "chokidar": "^4.0.1",
20
+ "debug": "^4.3.7",
21
+ "@idlebox/common": "^1.4.2"
20
22
  },
21
23
  "devDependencies": {
22
- "@rushstack/heft": "^0.67.0",
24
+ "@rushstack/heft": "^0.68.2",
23
25
  "@types/debug": "^4.1.12",
24
- "@types/node": "^22.5.3",
25
- "@build-script/single-dog-asset": "^1.0.31",
26
- "@internal/dualstack-rig": "^1.0.1"
26
+ "@types/node": "^22.8.6",
27
+ "@internal/local-rig": "^1.0.1",
28
+ "@build-script/single-dog-asset": "^1.0.33"
27
29
  },
28
30
  "scripts": {
29
31
  "build": "heft --unmanaged build",
package/src/tsconfig.json CHANGED
@@ -1,11 +1,9 @@
1
1
  {
2
- "extends": "@internal/dualstack-rig/profiles/all-in-one/tsconfig.json",
2
+ "extends": "@internal/local-rig/profiles/dualstack/tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "typeRoots": ["../node_modules/@types", "../node_modules"],
5
- "outDir": "../lib",
5
+ "outDir": "../lib/esm",
6
6
  "rootDir": "./",
7
- "declarationDir": "../temp/dts-out",
8
- "tsBuildInfoFile": "../temp/tsbuildinfo.json",
9
7
  "types": ["node"]
10
8
  }
11
9
  }
@@ -1,38 +0,0 @@
1
- import { FSWatcher } from 'chokidar';
2
-
3
- declare interface IReloadFunction {
4
- (changes: string[]): void | Promise<void>;
5
- }
6
-
7
- export declare interface IWatchHelper {
8
- addWatch(newWatch: string): void;
9
- delWatch(oldWatch: string): void;
10
- reset(): void;
11
- dispose(): Promise<void>;
12
- readonly watches: ReadonlyArray<string>;
13
- }
14
-
15
- export declare function startChokidar(reload: IReloadFunction): IWatchHelper;
16
-
17
- export declare class WatchHelper implements IWatchHelper {
18
- private readonly watcher;
19
- private readonly onChange;
20
- private _watches;
21
- private state;
22
- debounceMs: number;
23
- private lastRun?;
24
- private changes;
25
- constructor(watcher: FSWatcher, onChange: IReloadFunction);
26
- private _debounce?;
27
- private debounce;
28
- private changeState;
29
- private handleChange;
30
- private realTrigger;
31
- addWatch(newWatch: string): void;
32
- delWatch(oldWatch: string): void;
33
- reset(): void;
34
- get watches(): ReadonlyArray<string>;
35
- dispose(): Promise<void>;
36
- }
37
-
38
- export { }
@@ -1,10 +0,0 @@
1
- // DO NOT EDIT THIS FILE
2
- // @ts-ignore
3
- /* eslint-disable */
4
- /* main.ts */
5
- // Identifiers
6
- export { WatchHelper } from "./main.mjs";
7
- export { startChokidar } from "./main.mjs";
8
- /* re-export.ts */
9
- // Identifiers
10
- //# sourceMappingURL=__create_index.generated.mjs.map
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "file": "__create_index.generated.mjs",
4
- "sourceRoot": "",
5
- "sources": [
6
- "../../src/__create_index.generated.ts"
7
- ],
8
- "names": [],
9
- "mappings": "AAAA,wBAAwB;AACxB,aAAa;AACb,oBAAoB;AAEpB,aAAa;AACZ,cAAc;AACd,OAAO,EAAC,WAAW,EAAC,mBAAkB;AAEtC,OAAO,EAAC,aAAa,EAAC,mBAAkB;AACzC,kBAAkB;AACjB,cAAc"
10
- }
@@ -1,3 +0,0 @@
1
- import _chokidar_0 from 'chokidar';
2
- export const FSWatcher = _chokidar_0.FSWatcher;
3
- //# sourceMappingURL=re-export.mjs.map