@rspack/core 0.6.4-canary-010ffa6-20240507093348 → 0.6.5-canary-0a5cf0d-20240508123903

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 (47) hide show
  1. package/compiled/browserslist/index.d.ts +1 -0
  2. package/compiled/browserslist/index.js +2028 -0
  3. package/compiled/browserslist/license +20 -0
  4. package/compiled/browserslist/package.json +1 -0
  5. package/compiled/graceful-fs/index.d.ts +13 -0
  6. package/compiled/graceful-fs/index.js +1063 -0
  7. package/compiled/graceful-fs/license +15 -0
  8. package/compiled/graceful-fs/package.json +1 -0
  9. package/compiled/json-parse-even-better-errors/index.d.ts +1 -0
  10. package/compiled/json-parse-even-better-errors/index.js +193 -0
  11. package/compiled/json-parse-even-better-errors/package.json +1 -0
  12. package/compiled/neo-async/index.d.ts +685 -0
  13. package/compiled/neo-async/index.js +9207 -0
  14. package/compiled/neo-async/license +22 -0
  15. package/compiled/neo-async/package.json +1 -0
  16. package/compiled/watchpack/index.d.ts +216 -0
  17. package/compiled/watchpack/index.js +2075 -0
  18. package/compiled/watchpack/license +20 -0
  19. package/compiled/watchpack/package.json +1 -0
  20. package/compiled/zod/index.d.ts +1647 -0
  21. package/compiled/zod/index.js +4208 -0
  22. package/compiled/zod/license +21 -0
  23. package/compiled/zod/package.json +1 -0
  24. package/compiled/zod-validation-error/index.d.ts +188 -0
  25. package/compiled/zod-validation-error/index.js +4367 -0
  26. package/compiled/zod-validation-error/license +9 -0
  27. package/compiled/zod-validation-error/package.json +1 -0
  28. package/dist/Compiler.d.ts +2 -2
  29. package/dist/MultiCompiler.js +1 -1
  30. package/dist/MultiWatching.js +1 -1
  31. package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
  32. package/dist/builtin-plugin/BannerPlugin.js +1 -1
  33. package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +1 -1
  34. package/dist/builtin-plugin/HtmlRspackPlugin.js +1 -1
  35. package/dist/builtin-plugin/IgnorePlugin.js +1 -1
  36. package/dist/config/browserslistTargetHandler.js +1 -1
  37. package/dist/config/zod.d.ts +1 -1
  38. package/dist/config/zod.js +1 -1
  39. package/dist/lib/CacheFacade.js +1 -1
  40. package/dist/loader-runner/index.js +1 -1
  41. package/dist/node/NodeEnvironmentPlugin.js +1 -1
  42. package/dist/node/NodeWatchFileSystem.d.ts +3 -3
  43. package/dist/node/NodeWatchFileSystem.js +1 -1
  44. package/dist/rspackOptionsApply.js +1 -1
  45. package/dist/util/validate.d.ts +1 -1
  46. package/dist/util/validate.js +1 -1
  47. package/package.json +20 -14
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2014-2018 Suguru Motegi
4
+ Based on Async.js, Copyright Caolan McMahon
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ {"name":"neo-async","version":"2.6.2","license":"MIT","types":"index.d.ts","type":"commonjs"}
@@ -0,0 +1,216 @@
1
+ /// <reference types="node" />
2
+ import { EventEmitter } from 'events';
3
+ import fs from 'graceful-fs';
4
+
5
+ declare class DirectoryWatcher extends EventEmitter {
6
+ options: Watchpack.WatcherOptions;
7
+ directories: {
8
+ [path: string]: Watcher | true;
9
+ };
10
+ files: {
11
+ [path: string]: [number, number];
12
+ };
13
+ initialScan: boolean;
14
+ initialScanRemoved: string[];
15
+ nestedWatching: boolean;
16
+ path: string;
17
+ refs: number;
18
+ watcher: fs.FSWatcher;
19
+ watchers: {
20
+ [path: string]: Watcher[];
21
+ };
22
+
23
+ constructor(directoryPath: string, options: Watchpack.WatcherOptions);
24
+
25
+ setFileTime(filePath: string, mtime: number, initial: boolean, type?: string | boolean): void;
26
+
27
+ setDirectory(directoryPath: string, exist: boolean, initial: boolean): void;
28
+
29
+ createNestedWatcher(directoryPath: string): void;
30
+
31
+ setNestedWatching(flag: boolean): void;
32
+
33
+ watch(filePath: string, startTime: number): Watcher;
34
+
35
+ onFileAdded(filePath: string, stat: fs.Stats): void;
36
+
37
+ onDirectoryAdded(directoryPath: string): void;
38
+
39
+ onChange(filePath: string, stat: fs.Stats): void;
40
+
41
+ onFileUnlinked(filePath: string): void;
42
+
43
+ onDirectoryUnlinked(directoryPath: string): void;
44
+
45
+ onWatcherError(): void;
46
+
47
+ doInitialScan(): void;
48
+
49
+ getTimes(): {
50
+ [path: string]: number;
51
+ };
52
+
53
+ close(): void;
54
+ }
55
+
56
+ declare class Watcher extends EventEmitter {
57
+ data: number;
58
+ directoryWatcher: DirectoryWatcher;
59
+ path: string;
60
+ startTime: number;
61
+
62
+ constructor(directoryWatcher: DirectoryWatcher, filePath: string, startTime: number);
63
+
64
+ checkStartTime(mtime: number, initial: boolean): boolean;
65
+
66
+ close(): void;
67
+ }
68
+
69
+ interface Entry {
70
+ /** A point in time at which is it safe to say all changes happened before that */
71
+ safeTime: number;
72
+ /** Only for file entries: the last modified timestamp of the file */
73
+ timestamp: number;
74
+ }
75
+
76
+ declare class Watchpack extends EventEmitter {
77
+ aggregatedChanges: Set<string>;
78
+ aggregatedRemovals: Set<string>;
79
+
80
+ aggregateTimeout: NodeJS.Timer;
81
+ dirWatchers: Watcher[];
82
+ fileWatchers: Watcher[];
83
+ /** Last modified times for files by path */
84
+ mtimes: {
85
+ [path: string]: number;
86
+ };
87
+ options: Watchpack.WatchOptions;
88
+ paused: boolean;
89
+ watcherOptions: Watchpack.WatcherOptions;
90
+
91
+ constructor(options: Watchpack.WatchOptions);
92
+
93
+ /**
94
+ * Starts watching these files and directories
95
+ * Calling this again will override the files and directories
96
+ */
97
+ watch(options: {
98
+ /**
99
+ * Can be files or directories
100
+ * For files: content and existence changes are tracked
101
+ * For directories: only existence and timestamp changes are tracked
102
+ */
103
+ files?: Iterable<string>;
104
+ /**
105
+ * Can only be directories
106
+ * Directory content (and content of children, ...) and existence changes are tracked.
107
+ * For files: content and existence changes are tracked
108
+ * Assumed to exist, when directory is not found without further information a remove event is emitted
109
+ */
110
+ directories?: Iterable<string>;
111
+ /**
112
+ * Can be files or directories
113
+ * Only existence changes are tracked
114
+ * Assued to not exist, no remove event is emitted when not found initially
115
+ */
116
+ missing?: Iterable<string>;
117
+ startTime?: number;
118
+ }): void;
119
+
120
+ on(
121
+ eventName: "change",
122
+ listener: (
123
+ /** The changed file or directory */
124
+ filePath: string,
125
+ /** The last modified time of the changed file */
126
+ modifiedTime: number,
127
+ /** Textual information how this change was detected */
128
+ explanation: string,
129
+ ) => void,
130
+ ): this;
131
+
132
+ on(
133
+ eventName: "remove",
134
+ listener: (
135
+ /** The removed file or directory */
136
+ filePath: string,
137
+ /** Textual information how this change was detected */
138
+ explanation: string,
139
+ ) => void,
140
+ ): this;
141
+
142
+ on(
143
+ eventName: "aggregated",
144
+ listener: (
145
+ /** Set of all changed files */
146
+ changes: Set<string>,
147
+ /** Set of all removed files */
148
+ removals: Set<string>,
149
+ ) => void,
150
+ ): this;
151
+
152
+ /**
153
+ * Stops emitting events, but keeps watchers open
154
+ * The next "watch" call can reuse the watchers
155
+ * The watcher will keep aggregating events which can be received with `getAggregated()`
156
+ */
157
+ pause(): void;
158
+
159
+ /**
160
+ * Stops emitting events and closes all watchers
161
+ */
162
+ close(): void;
163
+
164
+ /**
165
+ * Returns the current aggregated info and removes that from the watcher
166
+ * The next aggregated event won't include that info and will only emitted when futher changes happen
167
+ * Can be used when paused
168
+ */
169
+ getAggregated(): {
170
+ changes: Set<string>;
171
+ removals: Set<string>;
172
+ };
173
+
174
+ /**
175
+ * Collects time info objects for all known files and directories
176
+ * This includes info from files not directly watched
177
+ */
178
+ collectTimeInfoEntries(fileInfoEntries: Map<string, Entry>, directoryInfoEntries: Map<string, Entry>): void;
179
+
180
+ /**
181
+ * Returns a `Map` with all known time info objects for files and directories
182
+ * Similar to `collectTimeInfoEntries()` but returns a single map with all entries
183
+ */
184
+ getTimeInfoEntries(): Map<string, Entry>;
185
+
186
+ /**
187
+ * Returns an object with all known change times for files
188
+ * This include timestamps from files not directly watched
189
+ * Key: absolute path, value: timestamp as number
190
+ * @deprecated
191
+ */
192
+ getTimes(): {
193
+ [path: string]: number;
194
+ };
195
+
196
+ _fileWatcher(file: string, watcher: Watcher): Watcher;
197
+
198
+ _dirWatcher(item: string, watcher: Watcher): Watcher;
199
+
200
+ _onChange(item: string, mtime: number, file?: string): void;
201
+
202
+ _onTimeout(): void;
203
+ }
204
+
205
+ declare namespace Watchpack {
206
+ interface WatcherOptions {
207
+ ignored?: string[] | string | RegExp | ((path: string) => boolean) | undefined;
208
+ poll?: boolean | number | undefined;
209
+ followSymlinks?: boolean;
210
+ }
211
+ interface WatchOptions extends WatcherOptions {
212
+ aggregateTimeout?: number | undefined;
213
+ }
214
+ }
215
+
216
+ export { Watchpack as default };