cloudstructs 0.4.20 → 0.4.23
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/.jsii +3 -3
- package/assets/email-receiver/s3.lambda/index.js +8 -13
- package/assets/email-receiver/whitelist.lambda/index.js +8 -13
- package/assets/slack-app/provider.lambda/index.js +203 -35
- package/assets/slack-events/events.lambda/index.js +9 -16
- package/assets/slack-textract/detect.lambda/index.js +323 -93
- package/assets/toolkit-cleaner/clean-images.lambda/index.js +8 -13
- package/assets/toolkit-cleaner/clean-objects.lambda/index.js +9 -16
- package/assets/toolkit-cleaner/extract-template-hashes.lambda/index.js +8 -13
- package/assets/toolkit-cleaner/get-stack-names.lambda/index.js +8 -13
- package/assets/url-shortener/shortener.lambda/index.js +8 -13
- package/changelog.md +1 -1
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/static-website/index.js +14 -3
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@sindresorhus/is/dist/index.d.ts +9 -4
- package/node_modules/@sindresorhus/is/dist/index.js +9 -3
- package/node_modules/@sindresorhus/is/package.json +1 -1
- package/node_modules/@sindresorhus/is/readme.md +24 -4
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +41 -10
- package/node_modules/@slack/logger/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +48 -14
- package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +12 -2
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +7 -0
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +41 -10
- package/node_modules/@slack/web-api/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +48 -14
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +12 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +7 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +41 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +48 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +12 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +7 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/buffer.d.ts +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/crypto.d.ts +41 -10
- package/node_modules/@types/is-stream/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/fs.d.ts +48 -14
- package/node_modules/@types/is-stream/node_modules/@types/node/globals.d.ts +12 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/http2.d.ts +1 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/net.d.ts +7 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/json-buffer/LICENSE +21 -0
- package/node_modules/@types/json-buffer/README.md +16 -0
- package/node_modules/@types/json-buffer/index.d.ts +19 -0
- package/node_modules/@types/json-buffer/package.json +24 -0
- package/node_modules/@types/keyv/README.md +1 -1
- package/node_modules/@types/keyv/index.d.ts +16 -3
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +41 -10
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +48 -14
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +12 -2
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +7 -0
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/keyv/package.json +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +41 -10
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +48 -14
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +12 -2
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +7 -0
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/retry/LICENSE +21 -21
- package/node_modules/@types/retry/README.md +4 -4
- package/node_modules/@types/retry/index.d.ts +9 -9
- package/node_modules/@types/retry/package.json +5 -7
- package/node_modules/compress-brotli/LICENSE.md +21 -0
- package/node_modules/compress-brotli/README.md +125 -0
- package/node_modules/compress-brotli/package.json +97 -0
- package/node_modules/compress-brotli/src/index.d.ts +36 -0
- package/node_modules/compress-brotli/src/index.js +45 -0
- package/node_modules/compress-brotli/src/merge-options.js +18 -0
- package/node_modules/follow-redirects/README.md +8 -1
- package/node_modules/follow-redirects/index.js +102 -82
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/keyv/package.json +55 -46
- package/node_modules/keyv/src/index.d.ts +89 -0
- package/node_modules/keyv/src/index.js +177 -25
- package/node_modules/mime-db/HISTORY.md +8 -0
- package/node_modules/mime-db/LICENSE +19 -18
- package/node_modules/mime-db/README.md +1 -1
- package/node_modules/mime-db/db.json +54 -6
- package/node_modules/mime-db/index.js +1 -0
- package/node_modules/mime-db/package.json +5 -4
- package/node_modules/mime-types/HISTORY.md +9 -0
- package/node_modules/mime-types/README.md +1 -1
- package/node_modules/mime-types/package.json +5 -5
- package/node_modules/p-retry/package.json +2 -2
- package/package.json +10 -10
- package/releasetag.txt +1 -1
- package/version.txt +1 -1
- package/node_modules/keyv/.nyc_output/5d6b8dd1-67cf-42ee-8492-c8ae62ce826c.json +0 -1
- package/node_modules/keyv/.nyc_output/ce27532e-5888-46d4-ae10-5a71058d3f0c.json +0 -1
- package/node_modules/keyv/.nyc_output/processinfo/5d6b8dd1-67cf-42ee-8492-c8ae62ce826c.json +0 -1
- package/node_modules/keyv/.nyc_output/processinfo/ce27532e-5888-46d4-ae10-5a71058d3f0c.json +0 -1
- package/node_modules/keyv/.nyc_output/processinfo/index.json +0 -1
- package/node_modules/keyv/test/test.js +0 -130
- package/node_modules/keyv/test/testdb.sqlite +0 -0
|
@@ -94,5 +94,5 @@ class UrlShortener extends constructs_1.Construct {
|
|
|
94
94
|
}
|
|
95
95
|
exports.UrlShortener = UrlShortener;
|
|
96
96
|
_a = JSII_RTTI_SYMBOL_1;
|
|
97
|
-
UrlShortener[_a] = { fqn: "cloudstructs.UrlShortener", version: "0.4.
|
|
97
|
+
UrlShortener[_a] = { fqn: "cloudstructs.UrlShortener", version: "0.4.23" };
|
|
98
98
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXJsLXNob3J0ZW5lci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLDZDQUEyQztBQUMzQyx5REFBeUQ7QUFDekQsMERBQTBEO0FBQzFELHlEQUF5RDtBQUN6RCw4REFBOEQ7QUFDOUQscURBQXFEO0FBRXJELDJDQUEyQztBQUMzQyw2Q0FBNkM7QUFDN0MsbURBQW1EO0FBQ25ELDJEQUEyRDtBQUMzRCx5Q0FBeUM7QUFDekMsMkNBQXVDO0FBQ3ZDLDZEQUF5RDtBQTZCekQ7O0dBRUc7QUFDSCxNQUFhLFlBQWEsU0FBUSxzQkFBUztJQVd6QyxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQXdCOztRQUNoRSxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWpCLDBCQUEwQjtRQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLFFBQVEsQ0FBQyxLQUFLLENBQUMsSUFBSSxFQUFFLE9BQU8sRUFBRTtZQUM5QyxZQUFZLEVBQUU7Z0JBQ1osSUFBSSxFQUFFLEtBQUs7Z0JBQ1gsSUFBSSxFQUFFLFFBQVEsQ0FBQyxhQUFhLENBQUMsTUFBTTthQUNwQztTQUNGLENBQUMsQ0FBQztRQUVILDJCQUEyQjtRQUMzQixNQUFNLE1BQU0sR0FBRyxJQUFJLEVBQUUsQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFLFFBQVEsRUFBRTtZQUMzQ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ydGVuZXIke3Byb3BzLmhvc3RlZFpvbmUuem9uZU5hbWV9YCwge1xuICAgICAgaGFuZGxlcixcbiAgICAgIGVuZHBvaW50VHlwZXM6IHByb3BzLmFwaUdhdGV3YXlFbmRwb2ludCA/IFthcGlnYXRld2F5LkVuZHBvaW50VHlwZS5QUklWQVRFXSA6IHVuZGVmaW5lZCxcbiAgICAgIHBvbGljeTogcHJvcHMuYXBpR2F0ZXdheUVuZHBvaW50XG4gICAgICAgID8gbmV3IGlhbS5Qb2xpY3lEb2N1bWVudCh7XG4gICAgICAgICAgc3RhdGVtZW50czogW1xuICAgICAgICAgICAgbmV3IGlhbS5Qb2xpY3lTdGF0ZW1lbnQoe1xuICAgICAgICAgICAgICBlZmZlY3Q6IGlhbS5FZmZlY3QuQUxMT1csXG4gICAgICAgICAgICAgIGFjdGlvbnM6IFsnZXhlY3V0ZS1hcGk6SW52b2tlJ10sXG4gICAgICAgICAgICAgIHByaW5jaXBhbHM6IFtuZXcgaWFtLkFueVByaW5jaXBhbCgpXSxcbiAgICAgICAgICAgICAgcmVzb3VyY2VzOiBbRm4uam9pbignJywgWydleGVjdXRlLWFwaTovJywgJyonXSldLFxuICAgICAgICAgICAgICBjb25kaXRpb25zOiB7XG4gICAgICAgICAgICAgICAgU3RyaW5nRXF1YWxzOiB7ICdhd3M6U291cmNlVnBjZSc6IHByb3BzLmFwaUdhdGV3YXlFbmRwb2ludC52cGNFbmRwb2ludElkIH0sXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICBdLFxuICAgICAgICB9KVxuICAgICAgICA6IHVuZGVmaW5lZCxcbiAgICB9KTtcblxuICAgIHRoaXMuYXBpRW5kcG9pbnQgPSB0aGlzLmFwaS51cmw7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference lib="es2018" />
|
|
3
3
|
/// <reference lib="dom" />
|
|
4
4
|
import { Class, Falsy, TypedArray, ObservableLike, Primitive } from './types';
|
|
5
|
-
declare const objectTypeNames: readonly ["Function", "Generator", "AsyncGenerator", "GeneratorFunction", "AsyncGeneratorFunction", "AsyncFunction", "Observable", "Array", "Buffer", "Object", "RegExp", "Date", "Error", "Map", "Set", "WeakMap", "WeakSet", "ArrayBuffer", "SharedArrayBuffer", "DataView", "Promise", "URL", "FormData", "URLSearchParams", "HTMLElement", ...("Int8Array" | "Uint8Array" | "Uint8ClampedArray" | "Int16Array" | "Uint16Array" | "Int32Array" | "Uint32Array" | "Float32Array" | "Float64Array" | "BigInt64Array" | "BigUint64Array")[]];
|
|
5
|
+
declare const objectTypeNames: readonly ["Function", "Generator", "AsyncGenerator", "GeneratorFunction", "AsyncGeneratorFunction", "AsyncFunction", "Observable", "Array", "Buffer", "Blob", "Object", "RegExp", "Date", "Error", "Map", "Set", "WeakMap", "WeakSet", "ArrayBuffer", "SharedArrayBuffer", "DataView", "Promise", "URL", "FormData", "URLSearchParams", "HTMLElement", ...("Int8Array" | "Uint8Array" | "Uint8ClampedArray" | "Int16Array" | "Uint16Array" | "Int32Array" | "Uint32Array" | "Float32Array" | "Float64Array" | "BigInt64Array" | "BigUint64Array")[]];
|
|
6
6
|
declare type ObjectTypeName = typeof objectTypeNames[number];
|
|
7
7
|
declare const primitiveTypeNames: readonly ["null", "undefined", "string", "number", "bigint", "boolean", "symbol"];
|
|
8
8
|
declare type PrimitiveTypeName = typeof primitiveTypeNames[number];
|
|
@@ -21,6 +21,7 @@ declare namespace is {
|
|
|
21
21
|
var numericString: (value: unknown) => value is string;
|
|
22
22
|
var array: <T = unknown>(value: unknown, assertion?: ((value: T) => value is T) | undefined) => value is T[];
|
|
23
23
|
var buffer: (value: unknown) => value is Buffer;
|
|
24
|
+
var blob: (value: unknown) => value is Blob;
|
|
24
25
|
var nullOrUndefined: (value: unknown) => value is null | undefined;
|
|
25
26
|
var object: (value: unknown) => value is object;
|
|
26
27
|
var iterable: <T = unknown>(value: unknown) => value is Iterable<T>;
|
|
@@ -77,8 +78,9 @@ declare namespace is {
|
|
|
77
78
|
var emptyArray: (value: unknown) => value is never[];
|
|
78
79
|
var nonEmptyArray: (value: unknown) => value is unknown[];
|
|
79
80
|
var emptyString: (value: unknown) => value is "";
|
|
80
|
-
var nonEmptyString: (value: unknown) => value is string;
|
|
81
81
|
var emptyStringOrWhitespace: (value: unknown) => value is string;
|
|
82
|
+
var nonEmptyString: (value: unknown) => value is string;
|
|
83
|
+
var nonEmptyStringAndNotWhitespace: (value: unknown) => value is string;
|
|
82
84
|
var emptyObject: <Key extends string | number | symbol = string>(value: unknown) => value is Record<Key, never>;
|
|
83
85
|
var nonEmptyObject: <Key extends string | number | symbol = string, Value = unknown>(value: unknown) => value is Record<Key, Value>;
|
|
84
86
|
var emptySet: (value: unknown) => value is Set<never>;
|
|
@@ -124,8 +126,9 @@ export declare const enum AssertionTypeDescription {
|
|
|
124
126
|
emptyArray = "empty array",
|
|
125
127
|
nonEmptyArray = "non-empty array",
|
|
126
128
|
emptyString = "empty string",
|
|
127
|
-
nonEmptyString = "non-empty string",
|
|
128
129
|
emptyStringOrWhitespace = "empty string or whitespace",
|
|
130
|
+
nonEmptyString = "non-empty string",
|
|
131
|
+
nonEmptyStringAndNotWhitespace = "non-empty string and not whitespace",
|
|
129
132
|
emptyObject = "empty object",
|
|
130
133
|
nonEmptyObject = "non-empty object",
|
|
131
134
|
emptySet = "empty set",
|
|
@@ -152,6 +155,7 @@ interface Assert {
|
|
|
152
155
|
numericString: (value: unknown) => asserts value is string;
|
|
153
156
|
array: <T = unknown>(value: unknown, assertion?: (element: unknown) => asserts element is T) => asserts value is T[];
|
|
154
157
|
buffer: (value: unknown) => asserts value is Buffer;
|
|
158
|
+
blob: (value: unknown) => asserts value is Blob;
|
|
155
159
|
nullOrUndefined: (value: unknown) => asserts value is null | undefined;
|
|
156
160
|
object: <Key extends keyof any = string, Value = unknown>(value: unknown) => asserts value is Record<Key, Value>;
|
|
157
161
|
iterable: <T = unknown>(value: unknown) => asserts value is Iterable<T>;
|
|
@@ -204,8 +208,9 @@ interface Assert {
|
|
|
204
208
|
emptyArray: (value: unknown) => asserts value is never[];
|
|
205
209
|
nonEmptyArray: (value: unknown) => asserts value is unknown[];
|
|
206
210
|
emptyString: (value: unknown) => asserts value is '';
|
|
207
|
-
nonEmptyString: (value: unknown) => asserts value is string;
|
|
208
211
|
emptyStringOrWhitespace: (value: unknown) => asserts value is string;
|
|
212
|
+
nonEmptyString: (value: unknown) => asserts value is string;
|
|
213
|
+
nonEmptyStringAndNotWhitespace: (value: unknown) => asserts value is string;
|
|
209
214
|
emptyObject: <Key extends keyof any = string>(value: unknown) => asserts value is Record<Key, never>;
|
|
210
215
|
nonEmptyObject: <Key extends keyof any = string, Value = unknown>(value: unknown) => asserts value is Record<Key, Value>;
|
|
211
216
|
emptySet: (value: unknown) => asserts value is Set<never>;
|
|
@@ -29,6 +29,7 @@ const objectTypeNames = [
|
|
|
29
29
|
'Observable',
|
|
30
30
|
'Array',
|
|
31
31
|
'Buffer',
|
|
32
|
+
'Blob',
|
|
32
33
|
'Object',
|
|
33
34
|
'RegExp',
|
|
34
35
|
'Date',
|
|
@@ -139,6 +140,7 @@ is.array = (value, assertion) => {
|
|
|
139
140
|
return value.every(assertion);
|
|
140
141
|
};
|
|
141
142
|
is.buffer = (value) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = value) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.isBuffer) === null || _c === void 0 ? void 0 : _c.call(_b, value)) !== null && _d !== void 0 ? _d : false; };
|
|
143
|
+
is.blob = (value) => isObjectOfType('Blob')(value);
|
|
142
144
|
is.nullOrUndefined = (value) => is.null_(value) || is.undefined(value);
|
|
143
145
|
is.object = (value) => !is.null_(value) && (typeof value === 'object' || is.function_(value));
|
|
144
146
|
is.iterable = (value) => { var _a; return is.function_((_a = value) === null || _a === void 0 ? void 0 : _a[Symbol.iterator]); };
|
|
@@ -258,10 +260,12 @@ is.oddInteger = isAbsoluteMod2(1);
|
|
|
258
260
|
is.emptyArray = (value) => is.array(value) && value.length === 0;
|
|
259
261
|
is.nonEmptyArray = (value) => is.array(value) && value.length > 0;
|
|
260
262
|
is.emptyString = (value) => is.string(value) && value.length === 0;
|
|
261
|
-
// TODO: Use `not ''` when the `not` operator is available.
|
|
262
|
-
is.nonEmptyString = (value) => is.string(value) && value.length > 0;
|
|
263
263
|
const isWhiteSpaceString = (value) => is.string(value) && !/\S/.test(value);
|
|
264
264
|
is.emptyStringOrWhitespace = (value) => is.emptyString(value) || isWhiteSpaceString(value);
|
|
265
|
+
// TODO: Use `not ''` when the `not` operator is available.
|
|
266
|
+
is.nonEmptyString = (value) => is.string(value) && value.length > 0;
|
|
267
|
+
// TODO: Use `not ''` when the `not` operator is available.
|
|
268
|
+
is.nonEmptyStringAndNotWhitespace = (value) => is.string(value) && !is.emptyStringOrWhitespace(value);
|
|
265
269
|
is.emptyObject = (value) => is.object(value) && !is.map(value) && !is.set(value) && Object.keys(value).length === 0;
|
|
266
270
|
// TODO: Use `not` operator here to remove `Map` and `Set` from type guard:
|
|
267
271
|
// - https://github.com/Microsoft/TypeScript/pull/29317
|
|
@@ -320,6 +324,7 @@ exports.assert = {
|
|
|
320
324
|
}
|
|
321
325
|
},
|
|
322
326
|
buffer: (value) => assertType(is.buffer(value), 'Buffer', value),
|
|
327
|
+
blob: (value) => assertType(is.blob(value), 'Blob', value),
|
|
323
328
|
nullOrUndefined: (value) => assertType(is.nullOrUndefined(value), "null or undefined" /* nullOrUndefined */, value),
|
|
324
329
|
object: (value) => assertType(is.object(value), 'Object', value),
|
|
325
330
|
iterable: (value) => assertType(is.iterable(value), "Iterable" /* iterable */, value),
|
|
@@ -374,8 +379,9 @@ exports.assert = {
|
|
|
374
379
|
emptyArray: (value) => assertType(is.emptyArray(value), "empty array" /* emptyArray */, value),
|
|
375
380
|
nonEmptyArray: (value) => assertType(is.nonEmptyArray(value), "non-empty array" /* nonEmptyArray */, value),
|
|
376
381
|
emptyString: (value) => assertType(is.emptyString(value), "empty string" /* emptyString */, value),
|
|
377
|
-
nonEmptyString: (value) => assertType(is.nonEmptyString(value), "non-empty string" /* nonEmptyString */, value),
|
|
378
382
|
emptyStringOrWhitespace: (value) => assertType(is.emptyStringOrWhitespace(value), "empty string or whitespace" /* emptyStringOrWhitespace */, value),
|
|
383
|
+
nonEmptyString: (value) => assertType(is.nonEmptyString(value), "non-empty string" /* nonEmptyString */, value),
|
|
384
|
+
nonEmptyStringAndNotWhitespace: (value) => assertType(is.nonEmptyStringAndNotWhitespace(value), "non-empty string and not whitespace" /* nonEmptyStringAndNotWhitespace */, value),
|
|
379
385
|
emptyObject: (value) => assertType(is.emptyObject(value), "empty object" /* emptyObject */, value),
|
|
380
386
|
nonEmptyObject: (value) => assertType(is.nonEmptyObject(value), "non-empty object" /* nonEmptyObject */, value),
|
|
381
387
|
emptySet: (value) => assertType(is.emptySet(value), "empty set" /* emptySet */, value),
|
|
@@ -17,8 +17,8 @@ For example, `is.string('🦄') //=> true`
|
|
|
17
17
|
|
|
18
18
|
## Install
|
|
19
19
|
|
|
20
|
-
```
|
|
21
|
-
|
|
20
|
+
```sh
|
|
21
|
+
npm install @sindresorhus/is
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
## Usage
|
|
@@ -82,6 +82,9 @@ All the below methods accept a value and returns a boolean for whether the value
|
|
|
82
82
|
|
|
83
83
|
##### .undefined(value)
|
|
84
84
|
##### .null(value)
|
|
85
|
+
|
|
86
|
+
**Note:** TypeScript users must use `.null_()` because of a TypeScript naming limitation.
|
|
87
|
+
|
|
85
88
|
##### .string(value)
|
|
86
89
|
##### .number(value)
|
|
87
90
|
|
|
@@ -103,7 +106,11 @@ is.array(value, is.number); // Validate `value` is an array and all of its items
|
|
|
103
106
|
```
|
|
104
107
|
|
|
105
108
|
##### .function(value)
|
|
109
|
+
|
|
110
|
+
**Note:** TypeScript users must use `.function_()` because of a TypeScript naming limitation.
|
|
111
|
+
|
|
106
112
|
##### .buffer(value)
|
|
113
|
+
##### .blob(value)
|
|
107
114
|
##### .object(value)
|
|
108
115
|
|
|
109
116
|
Keep in mind that [functions are objects too](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions).
|
|
@@ -235,13 +242,24 @@ is.enumCase('other', Direction);
|
|
|
235
242
|
|
|
236
243
|
Returns `true` if the value is a `string` and the `.length` is 0.
|
|
237
244
|
|
|
245
|
+
##### .emptyStringOrWhitespace(value)
|
|
246
|
+
|
|
247
|
+
Returns `true` if `is.emptyString(value)` or if it's a `string` that is all whitespace.
|
|
248
|
+
|
|
238
249
|
##### .nonEmptyString(value)
|
|
239
250
|
|
|
240
251
|
Returns `true` if the value is a `string` and the `.length` is more than 0.
|
|
241
252
|
|
|
242
|
-
##### .
|
|
253
|
+
##### .nonEmptyStringAndNotWhitespace(value)
|
|
243
254
|
|
|
244
|
-
Returns `true` if
|
|
255
|
+
Returns `true` if the value is a `string` that is not empty and not whitespace.
|
|
256
|
+
|
|
257
|
+
```js
|
|
258
|
+
const values = ['property1', '', null, 'property2', ' ', undefined];
|
|
259
|
+
|
|
260
|
+
values.filter(is.nonEmptyStringAndNotWhitespace);
|
|
261
|
+
//=> ['property1', 'property2']
|
|
262
|
+
```
|
|
245
263
|
|
|
246
264
|
##### .emptyArray(value)
|
|
247
265
|
|
|
@@ -372,6 +390,8 @@ An object is plain if it's created by either `{}`, `new Object()`, or `Object.cr
|
|
|
372
390
|
|
|
373
391
|
Returns `true` for instances created by a class.
|
|
374
392
|
|
|
393
|
+
**Note:** TypeScript users must use `.class_()` because of a TypeScript naming limitation.
|
|
394
|
+
|
|
375
395
|
##### .typedArray(value)
|
|
376
396
|
|
|
377
397
|
##### .arrayLike(value)
|
|
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sun, 01 May 2022 20:31:38 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
|
-
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
13
|
+
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
16
|
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13).
|
|
@@ -258,7 +258,7 @@ declare module 'async_hooks' {
|
|
|
258
258
|
* @param type The type of async event.
|
|
259
259
|
* @param triggerAsyncId The ID of the execution context that created
|
|
260
260
|
* this async event (default: `executionAsyncId()`), or an
|
|
261
|
-
* AsyncResourceOptions object (since
|
|
261
|
+
* AsyncResourceOptions object (since v9.3.0)
|
|
262
262
|
*/
|
|
263
263
|
constructor(type: string, triggerAsyncId?: number | AsyncResourceOptions);
|
|
264
264
|
/**
|
|
@@ -443,7 +443,7 @@ declare module 'buffer' {
|
|
|
443
443
|
* Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown.
|
|
444
444
|
*
|
|
445
445
|
* The underlying memory for `Buffer` instances created in this way is _not_
|
|
446
|
-
* _initialized_. The contents of the newly created `Buffer` are unknown
|
|
446
|
+
* _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes.
|
|
447
447
|
*
|
|
448
448
|
* ```js
|
|
449
449
|
* import { Buffer } from 'buffer';
|
|
@@ -704,7 +704,7 @@ declare module 'buffer' {
|
|
|
704
704
|
* @param [sourceStart=0] The offset within `buf` at which to begin comparison.
|
|
705
705
|
* @param [sourceEnd=buf.length] The offset within `buf` at which to end comparison (not inclusive).
|
|
706
706
|
*/
|
|
707
|
-
compare(target: Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number):
|
|
707
|
+
compare(target: Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): -1 | 0 | 1;
|
|
708
708
|
/**
|
|
709
709
|
* Copies data from a region of `buf` to a region in `target`, even if the `target`memory region overlaps with `buf`.
|
|
710
710
|
*
|
|
@@ -646,6 +646,7 @@ declare module 'crypto' {
|
|
|
646
646
|
}
|
|
647
647
|
type CipherCCMTypes = 'aes-128-ccm' | 'aes-192-ccm' | 'aes-256-ccm' | 'chacha20-poly1305';
|
|
648
648
|
type CipherGCMTypes = 'aes-128-gcm' | 'aes-192-gcm' | 'aes-256-gcm';
|
|
649
|
+
type CipherOCBTypes = 'aes-128-ocb' | 'aes-192-ocb' | 'aes-256-ocb';
|
|
649
650
|
type BinaryLike = string | NodeJS.ArrayBufferView;
|
|
650
651
|
type CipherKey = BinaryLike | KeyObject;
|
|
651
652
|
interface CipherCCMOptions extends stream.TransformOptions {
|
|
@@ -654,6 +655,9 @@ declare module 'crypto' {
|
|
|
654
655
|
interface CipherGCMOptions extends stream.TransformOptions {
|
|
655
656
|
authTagLength?: number | undefined;
|
|
656
657
|
}
|
|
658
|
+
interface CipherOCBOptions extends stream.TransformOptions {
|
|
659
|
+
authTagLength: number;
|
|
660
|
+
}
|
|
657
661
|
/**
|
|
658
662
|
* Creates and returns a `Cipher` object that uses the given `algorithm` and`password`.
|
|
659
663
|
*
|
|
@@ -720,8 +724,9 @@ declare module 'crypto' {
|
|
|
720
724
|
* @since v0.1.94
|
|
721
725
|
* @param options `stream.transform` options
|
|
722
726
|
*/
|
|
723
|
-
function createCipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike
|
|
724
|
-
function createCipheriv(algorithm:
|
|
727
|
+
function createCipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike, options: CipherCCMOptions): CipherCCM;
|
|
728
|
+
function createCipheriv(algorithm: CipherOCBTypes, key: CipherKey, iv: BinaryLike, options: CipherOCBOptions): CipherOCB;
|
|
729
|
+
function createCipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike, options?: CipherGCMOptions): CipherGCM;
|
|
725
730
|
function createCipheriv(algorithm: string, key: CipherKey, iv: BinaryLike | null, options?: stream.TransformOptions): Cipher;
|
|
726
731
|
/**
|
|
727
732
|
* Instances of the `Cipher` class are used to encrypt data. The class can be
|
|
@@ -907,6 +912,15 @@ declare module 'crypto' {
|
|
|
907
912
|
): this;
|
|
908
913
|
getAuthTag(): Buffer;
|
|
909
914
|
}
|
|
915
|
+
interface CipherOCB extends Cipher {
|
|
916
|
+
setAAD(
|
|
917
|
+
buffer: NodeJS.ArrayBufferView,
|
|
918
|
+
options?: {
|
|
919
|
+
plaintextLength: number;
|
|
920
|
+
}
|
|
921
|
+
): this;
|
|
922
|
+
getAuthTag(): Buffer;
|
|
923
|
+
}
|
|
910
924
|
/**
|
|
911
925
|
* Creates and returns a `Decipher` object that uses the given `algorithm` and`password` (key).
|
|
912
926
|
*
|
|
@@ -961,8 +975,9 @@ declare module 'crypto' {
|
|
|
961
975
|
* @since v0.1.94
|
|
962
976
|
* @param options `stream.transform` options
|
|
963
977
|
*/
|
|
964
|
-
function createDecipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike
|
|
965
|
-
function createDecipheriv(algorithm:
|
|
978
|
+
function createDecipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike, options: CipherCCMOptions): DecipherCCM;
|
|
979
|
+
function createDecipheriv(algorithm: CipherOCBTypes, key: CipherKey, iv: BinaryLike, options: CipherOCBOptions): DecipherOCB;
|
|
980
|
+
function createDecipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike, options?: CipherGCMOptions): DecipherGCM;
|
|
966
981
|
function createDecipheriv(algorithm: string, key: CipherKey, iv: BinaryLike | null, options?: stream.TransformOptions): Decipher;
|
|
967
982
|
/**
|
|
968
983
|
* Instances of the `Decipher` class are used to decrypt data. The class can be
|
|
@@ -1133,6 +1148,15 @@ declare module 'crypto' {
|
|
|
1133
1148
|
}
|
|
1134
1149
|
): this;
|
|
1135
1150
|
}
|
|
1151
|
+
interface DecipherOCB extends Decipher {
|
|
1152
|
+
setAuthTag(buffer: NodeJS.ArrayBufferView): this;
|
|
1153
|
+
setAAD(
|
|
1154
|
+
buffer: NodeJS.ArrayBufferView,
|
|
1155
|
+
options?: {
|
|
1156
|
+
plaintextLength: number;
|
|
1157
|
+
}
|
|
1158
|
+
): this;
|
|
1159
|
+
}
|
|
1136
1160
|
interface PrivateKeyInput {
|
|
1137
1161
|
key: string | Buffer;
|
|
1138
1162
|
format?: KeyFormat | undefined;
|
|
@@ -3084,21 +3108,28 @@ declare module 'crypto' {
|
|
|
3084
3108
|
* @since v15.6.0
|
|
3085
3109
|
*/
|
|
3086
3110
|
readonly fingerprint256: string;
|
|
3111
|
+
/**
|
|
3112
|
+
* The SHA-512 fingerprint of this certificate.
|
|
3113
|
+
* @since v16.14.0
|
|
3114
|
+
*/
|
|
3115
|
+
readonly fingerprint512: string;
|
|
3087
3116
|
/**
|
|
3088
3117
|
* The complete subject of this certificate.
|
|
3089
3118
|
* @since v15.6.0
|
|
3090
3119
|
*/
|
|
3091
3120
|
readonly subject: string;
|
|
3092
3121
|
/**
|
|
3093
|
-
* The subject alternative name specified for this certificate
|
|
3122
|
+
* The subject alternative name specified for this certificate or `undefined`
|
|
3123
|
+
* if not available.
|
|
3094
3124
|
* @since v15.6.0
|
|
3095
3125
|
*/
|
|
3096
|
-
readonly subjectAltName: string;
|
|
3126
|
+
readonly subjectAltName: string | undefined;
|
|
3097
3127
|
/**
|
|
3098
|
-
* The information access content of this certificate
|
|
3128
|
+
* The information access content of this certificate or `undefined` if not
|
|
3129
|
+
* available.
|
|
3099
3130
|
* @since v15.6.0
|
|
3100
3131
|
*/
|
|
3101
|
-
readonly infoAccess: string;
|
|
3132
|
+
readonly infoAccess: string | undefined;
|
|
3102
3133
|
/**
|
|
3103
3134
|
* An array detailing the key usages for this certificate.
|
|
3104
3135
|
* @since v15.6.0
|
|
@@ -3146,7 +3177,7 @@ declare module 'crypto' {
|
|
|
3146
3177
|
* @since v15.6.0
|
|
3147
3178
|
* @return Returns `email` if the certificate matches, `undefined` if it does not.
|
|
3148
3179
|
*/
|
|
3149
|
-
checkEmail(email: string, options?: X509CheckOptions): string | undefined;
|
|
3180
|
+
checkEmail(email: string, options?: Pick<X509CheckOptions, 'subject'>): string | undefined;
|
|
3150
3181
|
/**
|
|
3151
3182
|
* Checks whether the certificate matches the given host name.
|
|
3152
3183
|
* @since v15.6.0
|
|
@@ -3158,7 +3189,7 @@ declare module 'crypto' {
|
|
|
3158
3189
|
* @since v15.6.0
|
|
3159
3190
|
* @return Returns `ip` if the certificate matches, `undefined` if it does not.
|
|
3160
3191
|
*/
|
|
3161
|
-
checkIP(ip: string
|
|
3192
|
+
checkIP(ip: string): string | undefined;
|
|
3162
3193
|
/**
|
|
3163
3194
|
* Checks whether this certificate was issued by the given `otherCert`.
|
|
3164
3195
|
* @since v15.6.0
|
|
@@ -57,7 +57,7 @@ declare module 'diagnostics_channel' {
|
|
|
57
57
|
* @return The named channel object
|
|
58
58
|
*/
|
|
59
59
|
function channel(name: string): Channel;
|
|
60
|
-
type ChannelListener = (
|
|
60
|
+
type ChannelListener = (message: unknown, name: string) => void;
|
|
61
61
|
/**
|
|
62
62
|
* The class `Channel` represents an individual named channel within the data
|
|
63
63
|
* pipeline. It is use to track subscribers and to publish messages when there
|
|
@@ -89,6 +89,24 @@ declare module 'diagnostics_channel' {
|
|
|
89
89
|
*/
|
|
90
90
|
readonly hasSubscribers: boolean;
|
|
91
91
|
private constructor(name: string);
|
|
92
|
+
/**
|
|
93
|
+
* Publish a message to any subscribers to the channel. This will
|
|
94
|
+
* trigger message handlers synchronously so they will execute within
|
|
95
|
+
* the same context.
|
|
96
|
+
*
|
|
97
|
+
* ```js
|
|
98
|
+
* import diagnostics_channel from 'diagnostics_channel';
|
|
99
|
+
*
|
|
100
|
+
* const channel = diagnostics_channel.channel('my-channel');
|
|
101
|
+
*
|
|
102
|
+
* channel.publish({
|
|
103
|
+
* some: 'message'
|
|
104
|
+
* });
|
|
105
|
+
* ```
|
|
106
|
+
* @since v15.1.0, v14.17.0
|
|
107
|
+
* @param message The message to send to the channel subscribers
|
|
108
|
+
*/
|
|
109
|
+
publish(message: unknown): void;
|
|
92
110
|
/**
|
|
93
111
|
* Register a message handler to subscribe to this channel. This message handler
|
|
94
112
|
* will be run synchronously whenever a message is published to the channel. Any
|
|
@@ -2233,6 +2233,23 @@ declare module 'fs' {
|
|
|
2233
2233
|
*/
|
|
2234
2234
|
export function writeSync(fd: number, string: string, position?: number | null, encoding?: BufferEncoding | null): number;
|
|
2235
2235
|
export type ReadPosition = number | bigint;
|
|
2236
|
+
export interface ReadSyncOptions {
|
|
2237
|
+
/**
|
|
2238
|
+
* @default 0
|
|
2239
|
+
*/
|
|
2240
|
+
offset?: number | undefined;
|
|
2241
|
+
/**
|
|
2242
|
+
* @default `length of buffer`
|
|
2243
|
+
*/
|
|
2244
|
+
length?: number | undefined;
|
|
2245
|
+
/**
|
|
2246
|
+
* @default null
|
|
2247
|
+
*/
|
|
2248
|
+
position?: ReadPosition | null | undefined;
|
|
2249
|
+
}
|
|
2250
|
+
export interface ReadAsyncOptions<TBuffer extends NodeJS.ArrayBufferView> extends ReadSyncOptions {
|
|
2251
|
+
buffer?: TBuffer;
|
|
2252
|
+
}
|
|
2236
2253
|
/**
|
|
2237
2254
|
* Read data from the file specified by `fd`.
|
|
2238
2255
|
*
|
|
@@ -2258,6 +2275,24 @@ declare module 'fs' {
|
|
|
2258
2275
|
position: ReadPosition | null,
|
|
2259
2276
|
callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void
|
|
2260
2277
|
): void;
|
|
2278
|
+
/**
|
|
2279
|
+
* Similar to the above `fs.read` function, this version takes an optional `options` object.
|
|
2280
|
+
* If not otherwise specified in an `options` object,
|
|
2281
|
+
* `buffer` defaults to `Buffer.alloc(16384)`,
|
|
2282
|
+
* `offset` defaults to `0`,
|
|
2283
|
+
* `length` defaults to `buffer.byteLength`, `- offset` as of Node 17.6.0
|
|
2284
|
+
* `position` defaults to `null`
|
|
2285
|
+
* @since v12.17.0, 13.11.0
|
|
2286
|
+
*/
|
|
2287
|
+
export function read<TBuffer extends NodeJS.ArrayBufferView>(
|
|
2288
|
+
fd: number,
|
|
2289
|
+
options: ReadAsyncOptions<TBuffer>,
|
|
2290
|
+
callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void
|
|
2291
|
+
): void;
|
|
2292
|
+
export function read(
|
|
2293
|
+
fd: number,
|
|
2294
|
+
callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NodeJS.ArrayBufferView) => void
|
|
2295
|
+
): void;
|
|
2261
2296
|
export namespace read {
|
|
2262
2297
|
/**
|
|
2263
2298
|
* @param fd A file descriptor.
|
|
@@ -2276,20 +2311,19 @@ declare module 'fs' {
|
|
|
2276
2311
|
bytesRead: number;
|
|
2277
2312
|
buffer: TBuffer;
|
|
2278
2313
|
}>;
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
position?: ReadPosition | null | undefined;
|
|
2314
|
+
function __promisify__<TBuffer extends NodeJS.ArrayBufferView>(
|
|
2315
|
+
fd: number,
|
|
2316
|
+
options: ReadAsyncOptions<TBuffer>
|
|
2317
|
+
): Promise<{
|
|
2318
|
+
bytesRead: number;
|
|
2319
|
+
buffer: TBuffer;
|
|
2320
|
+
}>;
|
|
2321
|
+
function __promisify__(
|
|
2322
|
+
fd: number
|
|
2323
|
+
): Promise<{
|
|
2324
|
+
bytesRead: number;
|
|
2325
|
+
buffer: NodeJS.ArrayBufferView;
|
|
2326
|
+
}>;
|
|
2293
2327
|
}
|
|
2294
2328
|
/**
|
|
2295
2329
|
* Returns the number of `bytesRead`.
|
|
@@ -100,6 +100,16 @@ interface BigInt64Array extends RelativeIndexable<bigint> {}
|
|
|
100
100
|
interface BigUint64Array extends RelativeIndexable<bigint> {}
|
|
101
101
|
//#endregion ArrayLike.at() end
|
|
102
102
|
|
|
103
|
+
/**
|
|
104
|
+
* @since v17.0.0
|
|
105
|
+
*
|
|
106
|
+
* Creates a deep clone of an object.
|
|
107
|
+
*/
|
|
108
|
+
declare function structuredClone<T>(
|
|
109
|
+
value: T,
|
|
110
|
+
transfer?: { transfer: ReadonlyArray<import('worker_threads').TransferListItem> },
|
|
111
|
+
): T;
|
|
112
|
+
|
|
103
113
|
/*----------------------------------------------*
|
|
104
114
|
* *
|
|
105
115
|
* GLOBAL INTERFACES *
|
|
@@ -262,11 +272,11 @@ declare namespace NodeJS {
|
|
|
262
272
|
id: string;
|
|
263
273
|
filename: string;
|
|
264
274
|
loaded: boolean;
|
|
265
|
-
/** @deprecated since
|
|
275
|
+
/** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */
|
|
266
276
|
parent: Module | null | undefined;
|
|
267
277
|
children: Module[];
|
|
268
278
|
/**
|
|
269
|
-
* @since
|
|
279
|
+
* @since v11.14.0
|
|
270
280
|
*
|
|
271
281
|
* The directory name of the module. This is usually the same as the path.dirname() of the module.id.
|
|
272
282
|
*/
|
|
@@ -580,6 +580,7 @@ declare module 'http2' {
|
|
|
580
580
|
parent?: number | undefined;
|
|
581
581
|
weight?: number | undefined;
|
|
582
582
|
waitForTrailers?: boolean | undefined;
|
|
583
|
+
signal?: AbortSignal | undefined;
|
|
583
584
|
}
|
|
584
585
|
export interface SessionState {
|
|
585
586
|
effectiveLocalWindowSize?: number | undefined;
|
|
@@ -59,6 +59,7 @@ declare module 'net' {
|
|
|
59
59
|
path: string;
|
|
60
60
|
}
|
|
61
61
|
type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts;
|
|
62
|
+
type SocketReadyState = 'opening' | 'open' | 'readOnly' | 'writeOnly' | 'closed';
|
|
62
63
|
/**
|
|
63
64
|
* This class is an abstraction of a TCP socket or a streaming `IPC` endpoint
|
|
64
65
|
* (uses named pipes on Windows, and Unix domain sockets otherwise). It is also
|
|
@@ -262,6 +263,12 @@ declare module 'net' {
|
|
|
262
263
|
* @since v0.9.6
|
|
263
264
|
*/
|
|
264
265
|
readonly localPort?: number;
|
|
266
|
+
/**
|
|
267
|
+
* This property represents the state of the connection as a string.
|
|
268
|
+
* @see {https://nodejs.org/api/net.html#socketreadystate}
|
|
269
|
+
* @since v0.5.0
|
|
270
|
+
*/
|
|
271
|
+
readonly readyState: SocketReadyState;
|
|
265
272
|
/**
|
|
266
273
|
* The string representation of the remote IP address. For example,`'74.125.127.100'` or `'2001:4860:a005::68'`. Value may be `undefined` if
|
|
267
274
|
* the socket is destroyed (for example, if the client disconnected).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.31",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -215,6 +215,6 @@
|
|
|
215
215
|
},
|
|
216
216
|
"scripts": {},
|
|
217
217
|
"dependencies": {},
|
|
218
|
-
"typesPublisherContentHash": "
|
|
219
|
-
"typeScriptVersion": "3.
|
|
218
|
+
"typesPublisherContentHash": "187e51e75f3e87938751363254f337ef4fab9306b9bb5a7d36cb895b7c95c5e2",
|
|
219
|
+
"typeScriptVersion": "3.9"
|
|
220
220
|
}
|
|
@@ -1405,7 +1405,7 @@ declare module 'process' {
|
|
|
1405
1405
|
emit(event: 'unhandledRejection', reason: unknown, promise: Promise<unknown>): boolean;
|
|
1406
1406
|
emit(event: 'warning', warning: Error): boolean;
|
|
1407
1407
|
emit(event: 'message', message: unknown, sendHandle: unknown): this;
|
|
1408
|
-
emit(event: Signals, signal
|
|
1408
|
+
emit(event: Signals, signal?: Signals): boolean;
|
|
1409
1409
|
emit(event: 'multipleResolves', type: MultipleResolveType, promise: Promise<unknown>, value: unknown): this;
|
|
1410
1410
|
emit(event: 'worker', listener: WorkerListener): this;
|
|
1411
1411
|
on(event: 'beforeExit', listener: BeforeExitListener): this;
|
|
@@ -139,7 +139,8 @@ declare module 'stream/web' {
|
|
|
139
139
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
140
140
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
141
141
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
142
|
-
|
|
142
|
+
values(options?: { preventCancel?: boolean }): AsyncIterableIterator<R>;
|
|
143
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<R>;
|
|
143
144
|
}
|
|
144
145
|
const ReadableStream: {
|
|
145
146
|
prototype: ReadableStream;
|
|
@@ -723,7 +723,7 @@ declare module 'tls' {
|
|
|
723
723
|
* object.passphrase is optional. Encrypted keys will be decrypted with
|
|
724
724
|
* object.passphrase if provided, or options.passphrase if it is not.
|
|
725
725
|
*/
|
|
726
|
-
key?: string | Buffer | Array<Buffer | KeyObject> | undefined;
|
|
726
|
+
key?: string | Buffer | Array<string | Buffer | KeyObject> | undefined;
|
|
727
727
|
/**
|
|
728
728
|
* Name of an OpenSSL engine to get private key from. Should be used
|
|
729
729
|
* together with privateKeyIdentifier.
|
|
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sun, 01 May 2022 20:31:38 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
|
-
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
13
|
+
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
16
|
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13).
|
|
@@ -258,7 +258,7 @@ declare module 'async_hooks' {
|
|
|
258
258
|
* @param type The type of async event.
|
|
259
259
|
* @param triggerAsyncId The ID of the execution context that created
|
|
260
260
|
* this async event (default: `executionAsyncId()`), or an
|
|
261
|
-
* AsyncResourceOptions object (since
|
|
261
|
+
* AsyncResourceOptions object (since v9.3.0)
|
|
262
262
|
*/
|
|
263
263
|
constructor(type: string, triggerAsyncId?: number | AsyncResourceOptions);
|
|
264
264
|
/**
|