@emulsify/cli 1.11.3 → 1.12.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.
- package/dist/index.js +3 -1
- package/dist/node_modules/.package-lock.json +34 -24
- package/dist/node_modules/@types/node/README.md +2 -2
- package/dist/node_modules/@types/node/assert.d.ts +23 -1
- package/dist/node_modules/@types/node/async_hooks.d.ts +64 -0
- package/dist/node_modules/@types/node/buffer.buffer.d.ts +124 -38
- package/dist/node_modules/@types/node/buffer.d.ts +19 -17
- package/dist/node_modules/@types/node/child_process.d.ts +88 -161
- package/dist/node_modules/@types/node/cluster.d.ts +5 -6
- package/dist/node_modules/@types/node/constants.d.ts +14 -12
- package/dist/node_modules/@types/node/crypto.d.ts +237 -171
- package/dist/node_modules/@types/node/dgram.d.ts +15 -14
- package/dist/node_modules/@types/node/diagnostics_channel.d.ts +39 -15
- package/dist/node_modules/@types/node/dns/promises.d.ts +11 -9
- package/dist/node_modules/@types/node/dns.d.ts +28 -21
- package/dist/node_modules/@types/node/events.d.ts +81 -35
- package/dist/node_modules/@types/node/fs/promises.d.ts +61 -36
- package/dist/node_modules/@types/node/fs.d.ts +251 -193
- package/dist/node_modules/@types/node/globals.d.ts +146 -442
- package/dist/node_modules/@types/node/globals.typedarray.d.ts +17 -0
- package/dist/node_modules/@types/node/http.d.ts +137 -32
- package/dist/node_modules/@types/node/http2.d.ts +102 -26
- package/dist/node_modules/@types/node/https.d.ts +94 -60
- package/dist/node_modules/@types/node/index.d.ts +5 -3
- package/dist/node_modules/@types/node/{inspector.d.ts → inspector.generated.d.ts} +272 -2
- package/dist/node_modules/@types/node/module.d.ts +362 -138
- package/dist/node_modules/@types/node/net.d.ts +27 -20
- package/dist/node_modules/@types/node/os.d.ts +14 -3
- package/dist/node_modules/@types/node/package.json +4 -89
- package/dist/node_modules/@types/node/perf_hooks.d.ts +37 -10
- package/dist/node_modules/@types/node/process.d.ts +108 -35
- package/dist/node_modules/@types/node/querystring.d.ts +2 -3
- package/dist/node_modules/@types/node/readline/promises.d.ts +15 -3
- package/dist/node_modules/@types/node/readline.d.ts +66 -17
- package/dist/node_modules/@types/node/stream/consumers.d.ts +33 -7
- package/dist/node_modules/@types/node/stream/web.d.ts +13 -4
- package/dist/node_modules/@types/node/stream.d.ts +963 -1014
- package/dist/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/dist/node_modules/@types/node/test.d.ts +1504 -1655
- package/dist/node_modules/@types/node/timers/promises.d.ts +28 -17
- package/dist/node_modules/@types/node/timers.d.ts +157 -111
- package/dist/node_modules/@types/node/tls.d.ts +105 -67
- package/dist/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +120 -37
- package/dist/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +15 -0
- package/dist/node_modules/@types/node/ts5.6/index.d.ts +5 -3
- package/dist/node_modules/@types/node/url.d.ts +10 -1
- package/dist/node_modules/@types/node/util.d.ts +43 -10
- package/dist/node_modules/@types/node/v8.d.ts +7 -6
- package/dist/node_modules/@types/node/vm.d.ts +148 -70
- package/dist/node_modules/@types/node/wasi.d.ts +1 -1
- package/dist/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/dist/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/dist/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/dist/node_modules/@types/node/web-globals/fetch.d.ts +46 -0
- package/dist/node_modules/@types/node/worker_threads.d.ts +60 -39
- package/dist/node_modules/@types/node/zlib.d.ts +21 -20
- package/dist/node_modules/debug/package.json +7 -3
- package/dist/node_modules/debug/src/browser.js +2 -1
- package/dist/node_modules/debug/src/common.js +57 -39
- package/dist/node_modules/fast-uri/.github/dependabot.yml +1 -1
- package/dist/node_modules/fast-uri/.github/workflows/ci.yml +81 -3
- package/dist/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +6 -2
- package/dist/node_modules/fast-uri/LICENSE +3 -1
- package/dist/node_modules/fast-uri/README.md +55 -37
- package/dist/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
- package/dist/node_modules/fast-uri/benchmark/equal.mjs +51 -0
- package/dist/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
- package/dist/node_modules/fast-uri/benchmark/package.json +17 -0
- package/dist/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
- package/dist/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
- package/dist/node_modules/fast-uri/eslint.config.js +6 -0
- package/dist/node_modules/fast-uri/index.js +98 -61
- package/dist/node_modules/fast-uri/lib/schemes.js +160 -81
- package/dist/node_modules/fast-uri/lib/utils.js +217 -123
- package/dist/node_modules/fast-uri/package.json +44 -14
- package/dist/node_modules/fast-uri/test/ajv.test.js +7 -3
- package/dist/node_modules/fast-uri/test/equal.test.js +7 -2
- package/dist/node_modules/fast-uri/test/fixtures/uri-js-parse.json +501 -0
- package/dist/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
- package/dist/node_modules/fast-uri/test/parse.test.js +31 -31
- package/dist/node_modules/fast-uri/test/resolve.test.js +52 -49
- package/dist/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
- package/dist/node_modules/fast-uri/test/serialize.test.js +55 -47
- package/dist/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
- package/dist/node_modules/fast-uri/test/uri-js.test.js +230 -230
- package/dist/node_modules/fast-uri/test/util.test.js +23 -8
- package/dist/node_modules/fast-uri/tsconfig.json +9 -0
- package/dist/node_modules/fast-uri/types/index.d.ts +16 -9
- package/dist/node_modules/fast-uri/types/index.test-d.ts +9 -9
- package/dist/node_modules/fs-extra/LICENSE +1 -1
- package/dist/node_modules/fs-extra/README.md +3 -1
- package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +11 -1
- package/dist/node_modules/fs-extra/lib/copy/copy.js +13 -15
- package/dist/node_modules/fs-extra/lib/fs/index.js +6 -0
- package/dist/node_modules/fs-extra/lib/util/async.js +29 -0
- package/dist/node_modules/fs-extra/lib/util/stat.js +2 -1
- package/dist/node_modules/fs-extra/package.json +1 -1
- package/dist/node_modules/jsonfile/README.md +1 -1
- package/dist/node_modules/jsonfile/index.js +3 -3
- package/dist/node_modules/jsonfile/package.json +1 -1
- package/dist/node_modules/simple-git/dist/cjs/index.js +235 -235
- package/dist/node_modules/simple-git/dist/cjs/index.js.map +3 -3
- package/dist/node_modules/simple-git/dist/esm/index.js +229 -233
- package/dist/node_modules/simple-git/dist/esm/index.js.map +3 -3
- package/dist/node_modules/simple-git/dist/src/lib/git-logger.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-branch.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/plugins/error-detection.plugin.d.ts +2 -3
- package/dist/node_modules/simple-git/dist/src/lib/plugins/simple-git-plugin.d.ts +2 -3
- package/dist/node_modules/simple-git/dist/src/lib/plugins/spawn-options-plugin.d.ts +0 -1
- package/dist/node_modules/simple-git/dist/src/lib/runners/scheduler.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/runners/tasks-pending-queue.d.ts +2 -2
- package/dist/node_modules/simple-git/dist/src/lib/tasks/apply-patch.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/clean.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/log.d.ts +3 -3
- package/dist/node_modules/simple-git/dist/src/lib/tasks/push.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/remote.d.ts +4 -2
- package/dist/node_modules/simple-git/dist/src/lib/tasks/reset.d.ts +3 -3
- package/dist/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/task.d.ts +2 -2
- package/dist/node_modules/simple-git/dist/src/lib/types/handlers.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/types/index.d.ts +9 -13
- package/dist/node_modules/simple-git/dist/src/lib/types/tasks.d.ts +5 -6
- package/dist/node_modules/simple-git/dist/src/lib/utils/argument-filters.d.ts +5 -7
- package/dist/node_modules/simple-git/dist/src/lib/utils/git-output-streams.d.ts +0 -1
- package/dist/node_modules/simple-git/dist/src/lib/utils/line-parser.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/utils/task-options.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/utils/util.d.ts +11 -10
- package/dist/node_modules/simple-git/package.json +6 -6
- package/dist/node_modules/simple-git/readme.md +8 -0
- package/dist/node_modules/undici-types/dispatcher.d.ts +1 -0
- package/dist/node_modules/undici-types/eventsource.d.ts +0 -2
- package/dist/node_modules/undici-types/filereader.d.ts +1 -1
- package/dist/node_modules/undici-types/interceptors.d.ts +3 -1
- package/dist/node_modules/undici-types/package.json +1 -1
- package/dist/node_modules/undici-types/patch.d.ts +0 -38
- package/dist/node_modules/undici-types/readable.d.ts +5 -0
- package/dist/node_modules/undici-types/webidl.d.ts +6 -0
- package/dist/node_modules/undici-types/websocket.d.ts +0 -2
- package/dist/package-lock.json +969 -1002
- package/dist/package.json +1 -1
- package/dist/util/getAvailableStarters.js +2 -2
- package/package.json +1 -1
- package/dist/node_modules/@types/node/dom-events.d.ts +0 -124
- package/dist/node_modules/fast-uri/benchmark.js +0 -105
- package/dist/node_modules/fast-uri/lib/scopedChars.js +0 -30
- package/dist/node_modules/fast-uri/test/.gitkeep +0 -0
- package/dist/node_modules/fast-uri/test/compatibility.test.js +0 -131
- package/dist/node_modules/jsonfile/CHANGELOG.md +0 -171
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* @since v10.0.0
|
|
10
10
|
*/
|
|
11
11
|
declare module "fs/promises" {
|
|
12
|
+
import { NonSharedBuffer } from "node:buffer";
|
|
12
13
|
import { Abortable } from "node:events";
|
|
13
14
|
import { Stream } from "node:stream";
|
|
14
15
|
import { ReadableStream } from "node:stream/web";
|
|
@@ -26,6 +27,8 @@ declare module "fs/promises" {
|
|
|
26
27
|
OpenDirOptions,
|
|
27
28
|
OpenMode,
|
|
28
29
|
PathLike,
|
|
30
|
+
ReadOptions,
|
|
31
|
+
ReadOptionsWithBuffer,
|
|
29
32
|
ReadStream,
|
|
30
33
|
ReadVResult,
|
|
31
34
|
RmDirOptions,
|
|
@@ -53,6 +56,7 @@ declare module "fs/promises" {
|
|
|
53
56
|
bytesRead: number;
|
|
54
57
|
buffer: T;
|
|
55
58
|
}
|
|
59
|
+
/** @deprecated This interface will be removed in a future version. Use `import { ReadOptionsWithBuffer } from "node:fs"` instead. */
|
|
56
60
|
interface FileReadOptions<T extends NodeJS.ArrayBufferView = Buffer> {
|
|
57
61
|
/**
|
|
58
62
|
* @default `Buffer.alloc(0xffff)`
|
|
@@ -68,7 +72,7 @@ declare module "fs/promises" {
|
|
|
68
72
|
length?: number | null;
|
|
69
73
|
position?: number | null;
|
|
70
74
|
}
|
|
71
|
-
interface CreateReadStreamOptions {
|
|
75
|
+
interface CreateReadStreamOptions extends Abortable {
|
|
72
76
|
encoding?: BufferEncoding | null | undefined;
|
|
73
77
|
autoClose?: boolean | undefined;
|
|
74
78
|
emitClose?: boolean | undefined;
|
|
@@ -109,7 +113,7 @@ declare module "fs/promises" {
|
|
|
109
113
|
appendFile(
|
|
110
114
|
data: string | Uint8Array,
|
|
111
115
|
options?:
|
|
112
|
-
| (ObjectEncodingOptions &
|
|
116
|
+
| (ObjectEncodingOptions & Abortable)
|
|
113
117
|
| BufferEncoding
|
|
114
118
|
| null,
|
|
115
119
|
): Promise<void>;
|
|
@@ -235,7 +239,13 @@ declare module "fs/promises" {
|
|
|
235
239
|
length?: number | null,
|
|
236
240
|
position?: number | null,
|
|
237
241
|
): Promise<FileReadResult<T>>;
|
|
238
|
-
read<T extends NodeJS.ArrayBufferView
|
|
242
|
+
read<T extends NodeJS.ArrayBufferView>(
|
|
243
|
+
buffer: T,
|
|
244
|
+
options?: ReadOptions,
|
|
245
|
+
): Promise<FileReadResult<T>>;
|
|
246
|
+
read<T extends NodeJS.ArrayBufferView = NonSharedBuffer>(
|
|
247
|
+
options?: ReadOptionsWithBuffer<T>,
|
|
248
|
+
): Promise<FileReadResult<T>>;
|
|
239
249
|
/**
|
|
240
250
|
* Returns a `ReadableStream` that may be used to read the files data.
|
|
241
251
|
*
|
|
@@ -276,39 +286,29 @@ declare module "fs/promises" {
|
|
|
276
286
|
* data will be a string.
|
|
277
287
|
*/
|
|
278
288
|
readFile(
|
|
279
|
-
options?:
|
|
280
|
-
encoding?: null | undefined
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
): Promise<Buffer>;
|
|
289
|
+
options?:
|
|
290
|
+
| ({ encoding?: null | undefined } & Abortable)
|
|
291
|
+
| null,
|
|
292
|
+
): Promise<NonSharedBuffer>;
|
|
284
293
|
/**
|
|
285
294
|
* Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically.
|
|
286
295
|
* The `FileHandle` must have been opened for reading.
|
|
287
|
-
* @param options An object that may contain an optional flag.
|
|
288
|
-
* If a flag is not provided, it defaults to `'r'`.
|
|
289
296
|
*/
|
|
290
297
|
readFile(
|
|
291
298
|
options:
|
|
292
|
-
| {
|
|
293
|
-
encoding: BufferEncoding;
|
|
294
|
-
flag?: OpenMode | undefined;
|
|
295
|
-
}
|
|
299
|
+
| ({ encoding: BufferEncoding } & Abortable)
|
|
296
300
|
| BufferEncoding,
|
|
297
301
|
): Promise<string>;
|
|
298
302
|
/**
|
|
299
303
|
* Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically.
|
|
300
304
|
* The `FileHandle` must have been opened for reading.
|
|
301
|
-
* @param options An object that may contain an optional flag.
|
|
302
|
-
* If a flag is not provided, it defaults to `'r'`.
|
|
303
305
|
*/
|
|
304
306
|
readFile(
|
|
305
307
|
options?:
|
|
306
|
-
| (ObjectEncodingOptions &
|
|
307
|
-
flag?: OpenMode | undefined;
|
|
308
|
-
})
|
|
308
|
+
| (ObjectEncodingOptions & Abortable)
|
|
309
309
|
| BufferEncoding
|
|
310
310
|
| null,
|
|
311
|
-
): Promise<string |
|
|
311
|
+
): Promise<string | NonSharedBuffer>;
|
|
312
312
|
/**
|
|
313
313
|
* Convenience method to create a `readline` interface and stream over the file.
|
|
314
314
|
* See `filehandle.createReadStream()` for the options.
|
|
@@ -395,7 +395,7 @@ declare module "fs/promises" {
|
|
|
395
395
|
writeFile(
|
|
396
396
|
data: string | Uint8Array,
|
|
397
397
|
options?:
|
|
398
|
-
| (ObjectEncodingOptions &
|
|
398
|
+
| (ObjectEncodingOptions & Abortable)
|
|
399
399
|
| BufferEncoding
|
|
400
400
|
| null,
|
|
401
401
|
): Promise<void>;
|
|
@@ -417,7 +417,7 @@ declare module "fs/promises" {
|
|
|
417
417
|
* @param [position='null'] The offset from the beginning of the file where the data from `buffer` should be written. If `position` is not a `number`, the data will be written at the current
|
|
418
418
|
* position. See the POSIX pwrite(2) documentation for more detail.
|
|
419
419
|
*/
|
|
420
|
-
write<TBuffer extends
|
|
420
|
+
write<TBuffer extends NodeJS.ArrayBufferView>(
|
|
421
421
|
buffer: TBuffer,
|
|
422
422
|
offset?: number | null,
|
|
423
423
|
length?: number | null,
|
|
@@ -449,14 +449,20 @@ declare module "fs/promises" {
|
|
|
449
449
|
* @param [position='null'] The offset from the beginning of the file where the data from `buffers` should be written. If `position` is not a `number`, the data will be written at the current
|
|
450
450
|
* position.
|
|
451
451
|
*/
|
|
452
|
-
writev
|
|
452
|
+
writev<TBuffers extends readonly NodeJS.ArrayBufferView[]>(
|
|
453
|
+
buffers: TBuffers,
|
|
454
|
+
position?: number,
|
|
455
|
+
): Promise<WriteVResult<TBuffers>>;
|
|
453
456
|
/**
|
|
454
457
|
* Read from a file and write to an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s
|
|
455
458
|
* @since v13.13.0, v12.17.0
|
|
456
459
|
* @param [position='null'] The offset from the beginning of the file where the data should be read from. If `position` is not a `number`, the data will be read from the current position.
|
|
457
460
|
* @return Fulfills upon success an object containing two properties:
|
|
458
461
|
*/
|
|
459
|
-
readv
|
|
462
|
+
readv<TBuffers extends readonly NodeJS.ArrayBufferView[]>(
|
|
463
|
+
buffers: TBuffers,
|
|
464
|
+
position?: number,
|
|
465
|
+
): Promise<ReadVResult<TBuffers>>;
|
|
460
466
|
/**
|
|
461
467
|
* Closes the file handle after waiting for any pending operation on the handle to
|
|
462
468
|
* complete.
|
|
@@ -692,7 +698,7 @@ declare module "fs/promises" {
|
|
|
692
698
|
recursive?: boolean | undefined;
|
|
693
699
|
}
|
|
694
700
|
| "buffer",
|
|
695
|
-
): Promise<
|
|
701
|
+
): Promise<NonSharedBuffer[]>;
|
|
696
702
|
/**
|
|
697
703
|
* Asynchronous readdir(3) - read a directory.
|
|
698
704
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
@@ -707,7 +713,7 @@ declare module "fs/promises" {
|
|
|
707
713
|
})
|
|
708
714
|
| BufferEncoding
|
|
709
715
|
| null,
|
|
710
|
-
): Promise<string[] |
|
|
716
|
+
): Promise<string[] | NonSharedBuffer[]>;
|
|
711
717
|
/**
|
|
712
718
|
* Asynchronous readdir(3) - read a directory.
|
|
713
719
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
@@ -720,6 +726,19 @@ declare module "fs/promises" {
|
|
|
720
726
|
recursive?: boolean | undefined;
|
|
721
727
|
},
|
|
722
728
|
): Promise<Dirent[]>;
|
|
729
|
+
/**
|
|
730
|
+
* Asynchronous readdir(3) - read a directory.
|
|
731
|
+
* @param path A path to a directory. If a URL is provided, it must use the `file:` protocol.
|
|
732
|
+
* @param options Must include `withFileTypes: true` and `encoding: 'buffer'`.
|
|
733
|
+
*/
|
|
734
|
+
function readdir(
|
|
735
|
+
path: PathLike,
|
|
736
|
+
options: {
|
|
737
|
+
encoding: "buffer";
|
|
738
|
+
withFileTypes: true;
|
|
739
|
+
recursive?: boolean | undefined;
|
|
740
|
+
},
|
|
741
|
+
): Promise<Dirent<NonSharedBuffer>[]>;
|
|
723
742
|
/**
|
|
724
743
|
* Reads the contents of the symbolic link referred to by `path`. See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more detail. The promise is
|
|
725
744
|
* fulfilled with the`linkString` upon success.
|
|
@@ -737,13 +756,16 @@ declare module "fs/promises" {
|
|
|
737
756
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
738
757
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
739
758
|
*/
|
|
740
|
-
function readlink(path: PathLike, options: BufferEncodingOption): Promise<
|
|
759
|
+
function readlink(path: PathLike, options: BufferEncodingOption): Promise<NonSharedBuffer>;
|
|
741
760
|
/**
|
|
742
761
|
* Asynchronous readlink(2) - read value of a symbolic link.
|
|
743
762
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
744
763
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
745
764
|
*/
|
|
746
|
-
function readlink(
|
|
765
|
+
function readlink(
|
|
766
|
+
path: PathLike,
|
|
767
|
+
options?: ObjectEncodingOptions | string | null,
|
|
768
|
+
): Promise<string | NonSharedBuffer>;
|
|
747
769
|
/**
|
|
748
770
|
* Creates a symbolic link.
|
|
749
771
|
*
|
|
@@ -894,7 +916,7 @@ declare module "fs/promises" {
|
|
|
894
916
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
895
917
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
896
918
|
*/
|
|
897
|
-
function realpath(path: PathLike, options: BufferEncodingOption): Promise<
|
|
919
|
+
function realpath(path: PathLike, options: BufferEncodingOption): Promise<NonSharedBuffer>;
|
|
898
920
|
/**
|
|
899
921
|
* Asynchronous realpath(3) - return the canonicalized absolute pathname.
|
|
900
922
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
@@ -903,7 +925,7 @@ declare module "fs/promises" {
|
|
|
903
925
|
function realpath(
|
|
904
926
|
path: PathLike,
|
|
905
927
|
options?: ObjectEncodingOptions | BufferEncoding | null,
|
|
906
|
-
): Promise<string |
|
|
928
|
+
): Promise<string | NonSharedBuffer>;
|
|
907
929
|
/**
|
|
908
930
|
* Creates a unique temporary directory. A unique directory name is generated by
|
|
909
931
|
* appending six random characters to the end of the provided `prefix`. Due to
|
|
@@ -939,13 +961,16 @@ declare module "fs/promises" {
|
|
|
939
961
|
* Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory.
|
|
940
962
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
941
963
|
*/
|
|
942
|
-
function mkdtemp(prefix: string, options: BufferEncodingOption): Promise<
|
|
964
|
+
function mkdtemp(prefix: string, options: BufferEncodingOption): Promise<NonSharedBuffer>;
|
|
943
965
|
/**
|
|
944
966
|
* Asynchronously creates a unique temporary directory.
|
|
945
967
|
* Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory.
|
|
946
968
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
947
969
|
*/
|
|
948
|
-
function mkdtemp(
|
|
970
|
+
function mkdtemp(
|
|
971
|
+
prefix: string,
|
|
972
|
+
options?: ObjectEncodingOptions | BufferEncoding | null,
|
|
973
|
+
): Promise<string | NonSharedBuffer>;
|
|
949
974
|
/**
|
|
950
975
|
* Asynchronously writes data to a file, replacing the file if it already exists. `data` can be a string, a buffer, an
|
|
951
976
|
* [AsyncIterable](https://tc39.github.io/ecma262/#sec-asynciterable-interface), or an
|
|
@@ -1101,7 +1126,7 @@ declare module "fs/promises" {
|
|
|
1101
1126
|
flag?: OpenMode | undefined;
|
|
1102
1127
|
} & Abortable)
|
|
1103
1128
|
| null,
|
|
1104
|
-
): Promise<
|
|
1129
|
+
): Promise<NonSharedBuffer>;
|
|
1105
1130
|
/**
|
|
1106
1131
|
* Asynchronously reads the entire contents of a file.
|
|
1107
1132
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
@@ -1137,7 +1162,7 @@ declare module "fs/promises" {
|
|
|
1137
1162
|
)
|
|
1138
1163
|
| BufferEncoding
|
|
1139
1164
|
| null,
|
|
1140
|
-
): Promise<string |
|
|
1165
|
+
): Promise<string | NonSharedBuffer>;
|
|
1141
1166
|
/**
|
|
1142
1167
|
* Asynchronously open a directory for iterative scanning. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for more detail.
|
|
1143
1168
|
*
|
|
@@ -1204,7 +1229,7 @@ declare module "fs/promises" {
|
|
|
1204
1229
|
encoding: "buffer";
|
|
1205
1230
|
})
|
|
1206
1231
|
| "buffer",
|
|
1207
|
-
): AsyncIterable<FileChangeInfo<
|
|
1232
|
+
): AsyncIterable<FileChangeInfo<NonSharedBuffer>>;
|
|
1208
1233
|
/**
|
|
1209
1234
|
* Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
|
|
1210
1235
|
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
|
|
@@ -1225,7 +1250,7 @@ declare module "fs/promises" {
|
|
|
1225
1250
|
function watch(
|
|
1226
1251
|
filename: PathLike,
|
|
1227
1252
|
options: WatchOptions | string,
|
|
1228
|
-
): AsyncIterable<FileChangeInfo<string>> | AsyncIterable<FileChangeInfo<
|
|
1253
|
+
): AsyncIterable<FileChangeInfo<string>> | AsyncIterable<FileChangeInfo<NonSharedBuffer>>;
|
|
1229
1254
|
/**
|
|
1230
1255
|
* Asynchronously copies the entire directory structure from `src` to `dest`,
|
|
1231
1256
|
* including subdirectories and files.
|