@unpackjs/core 1.6.3 → 1.6.4
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/compiled/css-loader/index.js +20 -20
- package/compiled/less-loader/index.js +8 -8
- package/compiled/postcss-loader/index.js +34 -34
- package/compiled/sass-loader/index.js +10 -8
- package/compiled/sass-loader/package.json +1 -1
- package/compiled/style-loader/index.js +10 -10
- package/dist/bundler-config/chunkSplit.cjs +39 -3
- package/dist/bundler-config/chunkSplit.d.ts.map +1 -1
- package/dist/bundler-config/chunkSplit.js +39 -3
- package/dist/bundler-config/helper.cjs +2 -2
- package/dist/bundler-config/helper.js +1 -1
- package/dist/bundler-config/index.cjs +4 -1
- package/dist/bundler-config/index.d.ts.map +1 -1
- package/dist/bundler-config/index.js +5 -2
- package/dist/constants.cjs +4 -1
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +3 -1
- package/dist/createUnpack.cjs +2 -2
- package/dist/createUnpack.js +2 -2
- package/dist/run/dev.cjs +1 -1
- package/dist/run/dev.js +1 -1
- package/dist/thread-loader/worker.js +1 -1
- package/dist/typed-css-modules/plugin.cjs +2 -2
- package/dist/typed-css-modules/plugin.d.ts.map +1 -1
- package/dist/typed-css-modules/plugin.js +1 -1
- package/dist/types/chunkSplit.d.ts +1 -1
- package/dist/types/chunkSplit.d.ts.map +1 -1
- package/dist/utils.cjs +3 -10
- package/dist/utils.d.ts +0 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +2 -8
- package/package.json +8 -12
- package/compiled/fast-glob/index.d.ts +0 -237
- package/compiled/fast-glob/index.js +0 -5726
- package/compiled/fast-glob/license +0 -21
- package/compiled/fast-glob/package.json +0 -1
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import * as fs from 'fs';
|
|
3
|
-
|
|
4
|
-
declare type ErrnoException$1 = NodeJS.ErrnoException;
|
|
5
|
-
|
|
6
|
-
declare type StatAsynchronousMethod = (path: string, callback: (error: ErrnoException$1 | null, stats: fs.Stats) => void) => void;
|
|
7
|
-
declare type StatSynchronousMethod = (path: string) => fs.Stats;
|
|
8
|
-
interface FileSystemAdapter$2 {
|
|
9
|
-
lstat: StatAsynchronousMethod;
|
|
10
|
-
stat: StatAsynchronousMethod;
|
|
11
|
-
lstatSync: StatSynchronousMethod;
|
|
12
|
-
statSync: StatSynchronousMethod;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface Entry$2 {
|
|
16
|
-
dirent: Dirent;
|
|
17
|
-
name: string;
|
|
18
|
-
path: string;
|
|
19
|
-
stats?: Stats;
|
|
20
|
-
}
|
|
21
|
-
declare type Stats = fs.Stats;
|
|
22
|
-
declare type ErrnoException = NodeJS.ErrnoException;
|
|
23
|
-
interface Dirent {
|
|
24
|
-
isBlockDevice: () => boolean;
|
|
25
|
-
isCharacterDevice: () => boolean;
|
|
26
|
-
isDirectory: () => boolean;
|
|
27
|
-
isFIFO: () => boolean;
|
|
28
|
-
isFile: () => boolean;
|
|
29
|
-
isSocket: () => boolean;
|
|
30
|
-
isSymbolicLink: () => boolean;
|
|
31
|
-
name: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
interface ReaddirAsynchronousMethod {
|
|
35
|
-
(filepath: string, options: {
|
|
36
|
-
withFileTypes: true;
|
|
37
|
-
}, callback: (error: ErrnoException | null, files: Dirent[]) => void): void;
|
|
38
|
-
(filepath: string, callback: (error: ErrnoException | null, files: string[]) => void): void;
|
|
39
|
-
}
|
|
40
|
-
interface ReaddirSynchronousMethod {
|
|
41
|
-
(filepath: string, options: {
|
|
42
|
-
withFileTypes: true;
|
|
43
|
-
}): Dirent[];
|
|
44
|
-
(filepath: string): string[];
|
|
45
|
-
}
|
|
46
|
-
declare type FileSystemAdapter$1 = FileSystemAdapter$2 & {
|
|
47
|
-
readdir: ReaddirAsynchronousMethod;
|
|
48
|
-
readdirSync: ReaddirSynchronousMethod;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
declare type Entry$1 = Entry$2;
|
|
52
|
-
|
|
53
|
-
type Entry = Entry$1;
|
|
54
|
-
type Pattern = string;
|
|
55
|
-
type FileSystemAdapter = FileSystemAdapter$1;
|
|
56
|
-
|
|
57
|
-
type Options = {
|
|
58
|
-
/**
|
|
59
|
-
* Return the absolute path for entries.
|
|
60
|
-
*
|
|
61
|
-
* @default false
|
|
62
|
-
*/
|
|
63
|
-
absolute?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* If set to `true`, then patterns without slashes will be matched against
|
|
66
|
-
* the basename of the path if it contains slashes.
|
|
67
|
-
*
|
|
68
|
-
* @default false
|
|
69
|
-
*/
|
|
70
|
-
baseNameMatch?: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Enables Bash-like brace expansion.
|
|
73
|
-
*
|
|
74
|
-
* @default true
|
|
75
|
-
*/
|
|
76
|
-
braceExpansion?: boolean;
|
|
77
|
-
/**
|
|
78
|
-
* Enables a case-sensitive mode for matching files.
|
|
79
|
-
*
|
|
80
|
-
* @default true
|
|
81
|
-
*/
|
|
82
|
-
caseSensitiveMatch?: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* Specifies the maximum number of concurrent requests from a reader to read
|
|
85
|
-
* directories.
|
|
86
|
-
*
|
|
87
|
-
* @default os.cpus().length
|
|
88
|
-
*/
|
|
89
|
-
concurrency?: number;
|
|
90
|
-
/**
|
|
91
|
-
* The current working directory in which to search.
|
|
92
|
-
*
|
|
93
|
-
* @default process.cwd()
|
|
94
|
-
*/
|
|
95
|
-
cwd?: string;
|
|
96
|
-
/**
|
|
97
|
-
* Specifies the maximum depth of a read directory relative to the start
|
|
98
|
-
* directory.
|
|
99
|
-
*
|
|
100
|
-
* @default Infinity
|
|
101
|
-
*/
|
|
102
|
-
deep?: number;
|
|
103
|
-
/**
|
|
104
|
-
* Allow patterns to match entries that begin with a period (`.`).
|
|
105
|
-
*
|
|
106
|
-
* @default false
|
|
107
|
-
*/
|
|
108
|
-
dot?: boolean;
|
|
109
|
-
/**
|
|
110
|
-
* Enables Bash-like `extglob` functionality.
|
|
111
|
-
*
|
|
112
|
-
* @default true
|
|
113
|
-
*/
|
|
114
|
-
extglob?: boolean;
|
|
115
|
-
/**
|
|
116
|
-
* Indicates whether to traverse descendants of symbolic link directories.
|
|
117
|
-
*
|
|
118
|
-
* @default true
|
|
119
|
-
*/
|
|
120
|
-
followSymbolicLinks?: boolean;
|
|
121
|
-
/**
|
|
122
|
-
* Custom implementation of methods for working with the file system.
|
|
123
|
-
*
|
|
124
|
-
* @default fs.*
|
|
125
|
-
*/
|
|
126
|
-
fs?: Partial<FileSystemAdapter>;
|
|
127
|
-
/**
|
|
128
|
-
* Enables recursively repeats a pattern containing `**`.
|
|
129
|
-
* If `false`, `**` behaves exactly like `*`.
|
|
130
|
-
*
|
|
131
|
-
* @default true
|
|
132
|
-
*/
|
|
133
|
-
globstar?: boolean;
|
|
134
|
-
/**
|
|
135
|
-
* An array of glob patterns to exclude matches.
|
|
136
|
-
* This is an alternative way to use negative patterns.
|
|
137
|
-
*
|
|
138
|
-
* @default []
|
|
139
|
-
*/
|
|
140
|
-
ignore?: Pattern[];
|
|
141
|
-
/**
|
|
142
|
-
* Mark the directory path with the final slash.
|
|
143
|
-
*
|
|
144
|
-
* @default false
|
|
145
|
-
*/
|
|
146
|
-
markDirectories?: boolean;
|
|
147
|
-
/**
|
|
148
|
-
* Returns objects (instead of strings) describing entries.
|
|
149
|
-
*
|
|
150
|
-
* @default false
|
|
151
|
-
*/
|
|
152
|
-
objectMode?: boolean;
|
|
153
|
-
/**
|
|
154
|
-
* Return only directories.
|
|
155
|
-
*
|
|
156
|
-
* @default false
|
|
157
|
-
*/
|
|
158
|
-
onlyDirectories?: boolean;
|
|
159
|
-
/**
|
|
160
|
-
* Return only files.
|
|
161
|
-
*
|
|
162
|
-
* @default true
|
|
163
|
-
*/
|
|
164
|
-
onlyFiles?: boolean;
|
|
165
|
-
/**
|
|
166
|
-
* Enables an object mode (`objectMode`) with an additional `stats` field.
|
|
167
|
-
*
|
|
168
|
-
* @default false
|
|
169
|
-
*/
|
|
170
|
-
stats?: boolean;
|
|
171
|
-
/**
|
|
172
|
-
* By default this package suppress only `ENOENT` errors.
|
|
173
|
-
* Set to `true` to suppress any error.
|
|
174
|
-
*
|
|
175
|
-
* @default false
|
|
176
|
-
*/
|
|
177
|
-
suppressErrors?: boolean;
|
|
178
|
-
/**
|
|
179
|
-
* Throw an error when symbolic link is broken if `true` or safely
|
|
180
|
-
* return `lstat` call if `false`.
|
|
181
|
-
*
|
|
182
|
-
* @default false
|
|
183
|
-
*/
|
|
184
|
-
throwErrorOnBrokenSymbolicLink?: boolean;
|
|
185
|
-
/**
|
|
186
|
-
* Ensures that the returned entries are unique.
|
|
187
|
-
*
|
|
188
|
-
* @default true
|
|
189
|
-
*/
|
|
190
|
-
unique?: boolean;
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
type Task = {
|
|
194
|
-
base: string;
|
|
195
|
-
dynamic: boolean;
|
|
196
|
-
patterns: Pattern[];
|
|
197
|
-
positive: Pattern[];
|
|
198
|
-
negative: Pattern[];
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
type EntryObjectModePredicate = {
|
|
202
|
-
[TKey in keyof Pick<Options, 'objectMode'>]-?: true;
|
|
203
|
-
};
|
|
204
|
-
type EntryStatsPredicate = {
|
|
205
|
-
[TKey in keyof Pick<Options, 'stats'>]-?: true;
|
|
206
|
-
};
|
|
207
|
-
type EntryObjectPredicate = EntryObjectModePredicate | EntryStatsPredicate;
|
|
208
|
-
declare function FastGlob(source: Pattern | Pattern[], options: Options & EntryObjectPredicate): Promise<Entry[]>;
|
|
209
|
-
declare function FastGlob(source: Pattern | Pattern[], options?: Options): Promise<string[]>;
|
|
210
|
-
declare namespace FastGlob {
|
|
211
|
-
type Options = Options;
|
|
212
|
-
type Entry = Entry;
|
|
213
|
-
type Task = Task;
|
|
214
|
-
type Pattern = Pattern;
|
|
215
|
-
type FileSystemAdapter = FileSystemAdapter;
|
|
216
|
-
const glob: typeof FastGlob;
|
|
217
|
-
const globSync: typeof sync;
|
|
218
|
-
const globStream: typeof stream;
|
|
219
|
-
const async: typeof FastGlob;
|
|
220
|
-
function sync(source: Pattern | Pattern[], options: Options & EntryObjectPredicate): Entry[];
|
|
221
|
-
function sync(source: Pattern | Pattern[], options?: Options): string[];
|
|
222
|
-
function stream(source: Pattern | Pattern[], options?: Options): NodeJS.ReadableStream;
|
|
223
|
-
function generateTasks(source: Pattern | Pattern[], options?: Options): Task[];
|
|
224
|
-
function isDynamicPattern(source: Pattern, options?: Options): boolean;
|
|
225
|
-
function escapePath(source: string): Pattern;
|
|
226
|
-
function convertPathToPattern(source: string): Pattern;
|
|
227
|
-
namespace posix {
|
|
228
|
-
function escapePath(source: string): Pattern;
|
|
229
|
-
function convertPathToPattern(source: string): Pattern;
|
|
230
|
-
}
|
|
231
|
-
namespace win32 {
|
|
232
|
-
function escapePath(source: string): Pattern;
|
|
233
|
-
function convertPathToPattern(source: string): Pattern;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export { FastGlob as default };
|