node-red-contrib-tak-registration 0.11.1 → 0.11.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/node_modules/@types/node/LICENSE +0 -0
- package/node_modules/@types/node/README.md +4 -5
- package/node_modules/@types/node/assert/strict.d.ts +4 -4
- package/node_modules/@types/node/assert.d.ts +50 -26
- package/node_modules/@types/node/async_hooks.d.ts +13 -6
- package/node_modules/@types/node/buffer.d.ts +46 -38
- package/node_modules/@types/node/child_process.d.ts +278 -138
- package/node_modules/@types/node/cluster.d.ts +107 -89
- package/node_modules/@types/node/console.d.ts +18 -15
- package/node_modules/@types/node/constants.d.ts +12 -11
- package/node_modules/@types/node/crypto.d.ts +746 -268
- package/node_modules/@types/node/dgram.d.ts +82 -46
- package/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/node/dns/promises.d.ts +37 -26
- package/node_modules/@types/node/dns.d.ts +204 -63
- package/node_modules/@types/node/dom-events.d.ts +67 -71
- package/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/node/events.d.ts +99 -8
- package/node_modules/@types/node/fs/promises.d.ts +122 -85
- package/node_modules/@types/node/fs.d.ts +520 -316
- package/node_modules/@types/node/globals.d.ts +346 -286
- package/node_modules/@types/node/globals.global.d.ts +0 -0
- package/node_modules/@types/node/http.d.ts +321 -189
- package/node_modules/@types/node/http2.d.ts +630 -377
- package/node_modules/@types/node/https.d.ts +221 -112
- package/node_modules/@types/node/index.d.ts +0 -45
- package/node_modules/@types/node/inspector.d.ts +0 -1
- package/node_modules/@types/node/module.d.ts +75 -31
- package/node_modules/@types/node/net.d.ts +149 -93
- package/node_modules/@types/node/os.d.ts +10 -9
- package/node_modules/@types/node/package.json +88 -90
- package/node_modules/@types/node/path.d.ts +13 -13
- package/node_modules/@types/node/perf_hooks.d.ts +19 -18
- package/node_modules/@types/node/process.d.ts +170 -126
- package/node_modules/@types/node/punycode.d.ts +4 -4
- package/node_modules/@types/node/querystring.d.ts +14 -4
- package/node_modules/@types/node/readline/promises.d.ts +12 -7
- package/node_modules/@types/node/readline.d.ts +69 -56
- package/node_modules/@types/node/repl.d.ts +67 -61
- package/node_modules/@types/node/stream/consumers.d.ts +10 -10
- package/node_modules/@types/node/stream/promises.d.ts +56 -15
- package/node_modules/@types/node/stream/web.d.ts +40 -20
- package/node_modules/@types/node/stream.d.ts +365 -232
- package/node_modules/@types/node/string_decoder.d.ts +8 -8
- package/node_modules/@types/node/test.d.ts +133 -212
- package/node_modules/@types/node/timers/promises.d.ts +4 -4
- package/node_modules/@types/node/timers.d.ts +26 -11
- package/node_modules/@types/node/tls.d.ts +152 -72
- package/node_modules/@types/node/trace_events.d.ts +3 -3
- package/node_modules/@types/node/ts4.8/assert/strict.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/assert.d.ts +50 -26
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +13 -6
- package/node_modules/@types/node/ts4.8/buffer.d.ts +47 -39
- package/node_modules/@types/node/ts4.8/child_process.d.ts +278 -138
- package/node_modules/@types/node/ts4.8/cluster.d.ts +107 -89
- package/node_modules/@types/node/ts4.8/console.d.ts +18 -15
- package/node_modules/@types/node/ts4.8/constants.d.ts +12 -11
- package/node_modules/@types/node/ts4.8/crypto.d.ts +746 -268
- package/node_modules/@types/node/ts4.8/dgram.d.ts +82 -46
- package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/node/ts4.8/dns/promises.d.ts +37 -26
- package/node_modules/@types/node/ts4.8/dns.d.ts +204 -63
- package/node_modules/@types/node/ts4.8/dom-events.d.ts +67 -71
- package/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/events.d.ts +99 -8
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +122 -85
- package/node_modules/@types/node/ts4.8/fs.d.ts +520 -316
- package/node_modules/@types/node/ts4.8/globals.d.ts +346 -286
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -0
- package/node_modules/@types/node/ts4.8/http.d.ts +321 -189
- package/node_modules/@types/node/ts4.8/http2.d.ts +630 -377
- package/node_modules/@types/node/ts4.8/https.d.ts +221 -112
- package/node_modules/@types/node/ts4.8/index.d.ts +0 -0
- package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -1
- package/node_modules/@types/node/ts4.8/module.d.ts +75 -31
- package/node_modules/@types/node/ts4.8/net.d.ts +149 -93
- package/node_modules/@types/node/ts4.8/os.d.ts +10 -9
- package/node_modules/@types/node/ts4.8/path.d.ts +13 -13
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +19 -18
- package/node_modules/@types/node/ts4.8/process.d.ts +170 -126
- package/node_modules/@types/node/ts4.8/punycode.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/querystring.d.ts +14 -4
- package/node_modules/@types/node/ts4.8/readline/promises.d.ts +12 -7
- package/node_modules/@types/node/ts4.8/readline.d.ts +69 -56
- package/node_modules/@types/node/ts4.8/repl.d.ts +67 -61
- package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +10 -10
- package/node_modules/@types/node/ts4.8/stream/promises.d.ts +56 -15
- package/node_modules/@types/node/ts4.8/stream/web.d.ts +40 -20
- package/node_modules/@types/node/ts4.8/stream.d.ts +494 -223
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +8 -8
- package/node_modules/@types/node/ts4.8/test.d.ts +135 -214
- package/node_modules/@types/node/ts4.8/timers/promises.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/timers.d.ts +26 -11
- package/node_modules/@types/node/ts4.8/tls.d.ts +152 -72
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +3 -3
- package/node_modules/@types/node/ts4.8/tty.d.ts +10 -10
- package/node_modules/@types/node/ts4.8/url.d.ts +26 -14
- package/node_modules/@types/node/ts4.8/util.d.ts +187 -120
- package/node_modules/@types/node/ts4.8/v8.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/vm.d.ts +58 -50
- package/node_modules/@types/node/ts4.8/wasi.d.ts +10 -4
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +83 -86
- package/node_modules/@types/node/ts4.8/zlib.d.ts +9 -9
- package/node_modules/@types/node/tty.d.ts +10 -10
- package/node_modules/@types/node/url.d.ts +26 -14
- package/node_modules/@types/node/util.d.ts +187 -120
- package/node_modules/@types/node/v8.d.ts +4 -4
- package/node_modules/@types/node/vm.d.ts +58 -50
- package/node_modules/@types/node/wasi.d.ts +10 -4
- package/node_modules/@types/node/worker_threads.d.ts +83 -86
- package/node_modules/@types/node/zlib.d.ts +9 -9
- package/node_modules/axios/CHANGELOG.md +225 -0
- package/node_modules/axios/README.md +273 -9
- package/node_modules/axios/dist/axios.js +249 -178
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +213 -193
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +213 -193
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +297 -213
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +20 -11
- package/node_modules/axios/index.d.ts +21 -12
- package/node_modules/axios/lib/adapters/adapters.js +33 -15
- package/node_modules/axios/lib/adapters/http.js +25 -12
- package/node_modules/axios/lib/adapters/xhr.js +17 -10
- package/node_modules/axios/lib/core/mergeConfig.js +1 -0
- package/node_modules/axios/lib/defaults/index.js +1 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/cookies.js +39 -49
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +2 -2
- package/node_modules/axios/lib/platform/browser/index.js +0 -51
- package/node_modules/axios/lib/platform/common/utils.js +47 -0
- package/node_modules/axios/lib/platform/index.js +5 -1
- package/node_modules/axios/package.json +2 -1
- package/node_modules/call-bind/.eslintrc +0 -1
- package/node_modules/call-bind/.nycrc +0 -4
- package/node_modules/call-bind/CHANGELOG.md +35 -0
- package/node_modules/call-bind/README.md +63 -1
- package/node_modules/call-bind/index.js +10 -13
- package/node_modules/call-bind/package.json +33 -23
- package/node_modules/call-bind/test/callBound.js +0 -1
- package/node_modules/call-bind/test/index.js +18 -4
- package/node_modules/{function-bind → deep-equal}/.editorconfig +1 -1
- package/node_modules/deep-equal/.eslintrc +6 -0
- package/node_modules/deep-equal/.nycrc +17 -0
- package/node_modules/deep-equal/CHANGELOG.md +204 -4
- package/node_modules/deep-equal/assert.js +3 -0
- package/node_modules/deep-equal/package.json +39 -17
- package/node_modules/deep-equal/readme.markdown +28 -12
- package/node_modules/deep-equal/test/_tape.js +24 -3
- package/node_modules/deep-equal/test/cmp.js +1047 -48
- package/node_modules/define-data-property/CHANGELOG.md +10 -0
- package/node_modules/define-data-property/index.d.ts.map +1 -1
- package/node_modules/define-data-property/index.js +8 -0
- package/node_modules/define-data-property/package.json +11 -9
- package/node_modules/define-data-property/test/index.js +6 -11
- package/node_modules/define-data-property/tsconfig.json +1 -0
- package/node_modules/fast-xml-parser/CHANGELOG.md +11 -0
- package/node_modules/fast-xml-parser/package.json +5 -5
- package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +1 -0
- package/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +4 -0
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +6 -3
- package/node_modules/follow-redirects/index.js +16 -4
- package/node_modules/follow-redirects/package.json +2 -3
- package/node_modules/function-bind/.eslintrc +11 -5
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/README.md +25 -27
- package/node_modules/function-bind/implementation.js +44 -12
- package/node_modules/function-bind/package.json +38 -14
- package/node_modules/get-intrinsic/CHANGELOG.md +8 -0
- package/node_modules/get-intrinsic/index.js +1 -1
- package/node_modules/get-intrinsic/package.json +11 -11
- package/node_modules/has-property-descriptors/CHANGELOG.md +11 -0
- package/node_modules/has-property-descriptors/package.json +13 -6
- package/node_modules/hasown/.eslintrc +5 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +20 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.d.ts.map +1 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +91 -0
- package/node_modules/hasown/tsconfig.json +49 -0
- package/node_modules/set-function-length/.eslintrc +27 -0
- package/node_modules/set-function-length/.github/FUNDING.yml +12 -0
- package/node_modules/set-function-length/.nycrc +13 -0
- package/node_modules/set-function-length/CHANGELOG.md +41 -0
- package/node_modules/set-function-length/LICENSE +21 -0
- package/node_modules/set-function-length/README.md +56 -0
- package/node_modules/set-function-length/env.js +19 -0
- package/node_modules/set-function-length/index.js +41 -0
- package/node_modules/set-function-length/package.json +84 -0
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client.d.ts +97 -0
- package/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/node_modules/undici-types/errors.d.ts +128 -0
- package/node_modules/undici-types/fetch.d.ts +209 -0
- package/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/handlers.d.ts +9 -0
- package/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/undici-types/index.d.ts +63 -0
- package/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +71 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +28 -0
- package/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/node_modules/undici-types/readable.d.ts +61 -0
- package/node_modules/undici-types/webidl.d.ts +220 -0
- package/node_modules/undici-types/websocket.d.ts +131 -0
- package/package.json +3 -3
- package/tak-ingest.js +39 -24
- package/tak-registration.html +4 -4
- package/node_modules/define-data-property/tsinit +0 -109
- package/node_modules/function-bind/.jscs.json +0 -176
- package/node_modules/function-bind/.npmignore +0 -22
- package/node_modules/function-bind/.travis.yml +0 -168
- package/node_modules/has/LICENSE-MIT +0 -22
- package/node_modules/has/README.md +0 -18
- package/node_modules/has/package.json +0 -48
- package/node_modules/has/src/index.js +0 -5
- package/node_modules/has/test/index.js +0 -10
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
* ```
|
|
44
44
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/buffer.js)
|
|
45
45
|
*/
|
|
46
|
-
declare module
|
|
47
|
-
import { BinaryLike } from
|
|
48
|
-
import { ReadableStream as WebReadableStream } from
|
|
46
|
+
declare module "buffer" {
|
|
47
|
+
import { BinaryLike } from "node:crypto";
|
|
48
|
+
import { ReadableStream as WebReadableStream } from "node:stream/web";
|
|
49
49
|
/**
|
|
50
50
|
* This function returns `true` if `input` contains only valid UTF-8-encoded data,
|
|
51
51
|
* including the case in which `input` is empty.
|
|
@@ -71,7 +71,16 @@ declare module 'buffer' {
|
|
|
71
71
|
MAX_LENGTH: number;
|
|
72
72
|
MAX_STRING_LENGTH: number;
|
|
73
73
|
};
|
|
74
|
-
export type TranscodeEncoding =
|
|
74
|
+
export type TranscodeEncoding =
|
|
75
|
+
| "ascii"
|
|
76
|
+
| "utf8"
|
|
77
|
+
| "utf-8"
|
|
78
|
+
| "utf16le"
|
|
79
|
+
| "utf-16le"
|
|
80
|
+
| "ucs2"
|
|
81
|
+
| "ucs-2"
|
|
82
|
+
| "latin1"
|
|
83
|
+
| "binary";
|
|
75
84
|
/**
|
|
76
85
|
* Re-encodes the given `Buffer` or `Uint8Array` instance from one character
|
|
77
86
|
* encoding to another. Returns a new `Buffer` instance.
|
|
@@ -102,7 +111,7 @@ declare module 'buffer' {
|
|
|
102
111
|
export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer;
|
|
103
112
|
export const SlowBuffer: {
|
|
104
113
|
/** @deprecated since v6.0.0, use `Buffer.allocUnsafeSlow()` */
|
|
105
|
-
new
|
|
114
|
+
new(size: number): Buffer;
|
|
106
115
|
prototype: Buffer;
|
|
107
116
|
};
|
|
108
117
|
/**
|
|
@@ -186,7 +195,7 @@ declare module 'buffer' {
|
|
|
186
195
|
* One of either `'transparent'` or `'native'`. When set to `'native'`, line endings in string source parts will be
|
|
187
196
|
* converted to the platform native line-ending as specified by `require('node:os').EOL`.
|
|
188
197
|
*/
|
|
189
|
-
endings?:
|
|
198
|
+
endings?: "native" | "transparent";
|
|
190
199
|
/** The File content-type. */
|
|
191
200
|
type?: string;
|
|
192
201
|
/** The last modified date of the file. `Default`: Date.now(). */
|
|
@@ -211,32 +220,33 @@ declare module 'buffer' {
|
|
|
211
220
|
}
|
|
212
221
|
export import atob = globalThis.atob;
|
|
213
222
|
export import btoa = globalThis.btoa;
|
|
214
|
-
import { Blob as NodeBlob } from
|
|
223
|
+
import { Blob as NodeBlob } from "buffer";
|
|
215
224
|
// This conditional type will be the existing global Blob in a browser, or
|
|
216
225
|
// the copy below in a Node environment.
|
|
217
|
-
type __Blob = typeof globalThis extends { onmessage: any; Blob:
|
|
226
|
+
type __Blob = typeof globalThis extends { onmessage: any; Blob: any } ? {} : NodeBlob;
|
|
218
227
|
global {
|
|
219
228
|
namespace NodeJS {
|
|
220
229
|
export { BufferEncoding };
|
|
221
230
|
}
|
|
222
231
|
// Buffer class
|
|
223
232
|
type BufferEncoding =
|
|
224
|
-
|
|
|
225
|
-
|
|
|
226
|
-
|
|
|
227
|
-
|
|
|
228
|
-
|
|
|
229
|
-
|
|
|
230
|
-
|
|
|
231
|
-
|
|
|
232
|
-
|
|
|
233
|
-
|
|
|
234
|
-
|
|
|
233
|
+
| "ascii"
|
|
234
|
+
| "utf8"
|
|
235
|
+
| "utf-8"
|
|
236
|
+
| "utf16le"
|
|
237
|
+
| "utf-16le"
|
|
238
|
+
| "ucs2"
|
|
239
|
+
| "ucs-2"
|
|
240
|
+
| "base64"
|
|
241
|
+
| "base64url"
|
|
242
|
+
| "latin1"
|
|
243
|
+
| "binary"
|
|
244
|
+
| "hex";
|
|
235
245
|
type WithImplicitCoercion<T> =
|
|
236
246
|
| T
|
|
237
247
|
| {
|
|
238
|
-
|
|
239
|
-
|
|
248
|
+
valueOf(): T;
|
|
249
|
+
};
|
|
240
250
|
/**
|
|
241
251
|
* Raw data is stored in instances of the Buffer class.
|
|
242
252
|
* A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized.
|
|
@@ -250,44 +260,43 @@ declare module 'buffer' {
|
|
|
250
260
|
* @param encoding encoding to use, optional. Default is 'utf8'
|
|
251
261
|
* @deprecated since v10.0.0 - Use `Buffer.from(string[, encoding])` instead.
|
|
252
262
|
*/
|
|
253
|
-
new
|
|
263
|
+
new(str: string, encoding?: BufferEncoding): Buffer;
|
|
254
264
|
/**
|
|
255
265
|
* Allocates a new buffer of {size} octets.
|
|
256
266
|
*
|
|
257
267
|
* @param size count of octets to allocate.
|
|
258
268
|
* @deprecated since v10.0.0 - Use `Buffer.alloc()` instead (also see `Buffer.allocUnsafe()`).
|
|
259
269
|
*/
|
|
260
|
-
new
|
|
270
|
+
new(size: number): Buffer;
|
|
261
271
|
/**
|
|
262
272
|
* Allocates a new buffer containing the given {array} of octets.
|
|
263
273
|
*
|
|
264
274
|
* @param array The octets to store.
|
|
265
275
|
* @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
|
|
266
276
|
*/
|
|
267
|
-
new
|
|
277
|
+
new(array: Uint8Array): Buffer;
|
|
268
278
|
/**
|
|
269
279
|
* Produces a Buffer backed by the same allocated memory as
|
|
270
280
|
* the given {ArrayBuffer}/{SharedArrayBuffer}.
|
|
271
281
|
*
|
|
272
|
-
*
|
|
273
282
|
* @param arrayBuffer The ArrayBuffer with which to share memory.
|
|
274
283
|
* @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead.
|
|
275
284
|
*/
|
|
276
|
-
new
|
|
285
|
+
new(arrayBuffer: ArrayBuffer | SharedArrayBuffer): Buffer;
|
|
277
286
|
/**
|
|
278
287
|
* Allocates a new buffer containing the given {array} of octets.
|
|
279
288
|
*
|
|
280
289
|
* @param array The octets to store.
|
|
281
290
|
* @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
|
|
282
291
|
*/
|
|
283
|
-
new
|
|
292
|
+
new(array: readonly any[]): Buffer;
|
|
284
293
|
/**
|
|
285
294
|
* Copies the passed {buffer} data onto a new {Buffer} instance.
|
|
286
295
|
*
|
|
287
296
|
* @param buffer The buffer to copy.
|
|
288
297
|
* @deprecated since v10.0.0 - Use `Buffer.from(buffer)` instead.
|
|
289
298
|
*/
|
|
290
|
-
new
|
|
299
|
+
new(buffer: Buffer): Buffer;
|
|
291
300
|
/**
|
|
292
301
|
* Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`.
|
|
293
302
|
* Array entries outside that range will be truncated to fit into it.
|
|
@@ -318,8 +327,8 @@ declare module 'buffer' {
|
|
|
318
327
|
* Creates a new Buffer using the passed {data}
|
|
319
328
|
* @param data data to create a new Buffer
|
|
320
329
|
*/
|
|
321
|
-
from(data: Uint8Array |
|
|
322
|
-
from(data: WithImplicitCoercion<Uint8Array |
|
|
330
|
+
from(data: Uint8Array | readonly number[]): Buffer;
|
|
331
|
+
from(data: WithImplicitCoercion<Uint8Array | readonly number[] | string>): Buffer;
|
|
323
332
|
/**
|
|
324
333
|
* Creates a new Buffer containing the given JavaScript string {str}.
|
|
325
334
|
* If provided, the {encoding} parameter identifies the character encoding.
|
|
@@ -329,8 +338,8 @@ declare module 'buffer' {
|
|
|
329
338
|
str:
|
|
330
339
|
| WithImplicitCoercion<string>
|
|
331
340
|
| {
|
|
332
|
-
|
|
333
|
-
|
|
341
|
+
[Symbol.toPrimitive](hint: "string"): string;
|
|
342
|
+
},
|
|
334
343
|
encoding?: BufferEncoding,
|
|
335
344
|
): Buffer;
|
|
336
345
|
/**
|
|
@@ -447,7 +456,7 @@ declare module 'buffer' {
|
|
|
447
456
|
* @param list List of `Buffer` or {@link Uint8Array} instances to concatenate.
|
|
448
457
|
* @param totalLength Total length of the `Buffer` instances in `list` when concatenated.
|
|
449
458
|
*/
|
|
450
|
-
concat(list:
|
|
459
|
+
concat(list: readonly Uint8Array[], totalLength?: number): Buffer;
|
|
451
460
|
/**
|
|
452
461
|
* Copies the underlying memory of `view` into a new `Buffer`.
|
|
453
462
|
*
|
|
@@ -530,7 +539,7 @@ declare module 'buffer' {
|
|
|
530
539
|
* @param [fill=0] A value to pre-fill the new `Buffer` with.
|
|
531
540
|
* @param [encoding='utf8'] If `fill` is a string, this is its encoding.
|
|
532
541
|
*/
|
|
533
|
-
alloc(size: number, fill?: string |
|
|
542
|
+
alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer;
|
|
534
543
|
/**
|
|
535
544
|
* Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown.
|
|
536
545
|
*
|
|
@@ -719,7 +728,7 @@ declare module 'buffer' {
|
|
|
719
728
|
* @since v0.9.2
|
|
720
729
|
*/
|
|
721
730
|
toJSON(): {
|
|
722
|
-
type:
|
|
731
|
+
type: "Buffer";
|
|
723
732
|
data: number[];
|
|
724
733
|
};
|
|
725
734
|
/**
|
|
@@ -2344,11 +2353,10 @@ declare module 'buffer' {
|
|
|
2344
2353
|
var Blob: typeof globalThis extends {
|
|
2345
2354
|
onmessage: any;
|
|
2346
2355
|
Blob: infer T;
|
|
2347
|
-
}
|
|
2348
|
-
? T
|
|
2356
|
+
} ? T
|
|
2349
2357
|
: typeof NodeBlob;
|
|
2350
2358
|
}
|
|
2351
2359
|
}
|
|
2352
|
-
declare module
|
|
2353
|
-
export * from
|
|
2360
|
+
declare module "node:buffer" {
|
|
2361
|
+
export * from "buffer";
|
|
2354
2362
|
}
|