cloudstructs 0.6.19 → 0.6.21
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 +2 -2
- 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/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/static-website/index.js +1 -1
- package/lib/toolkit-cleaner/index.js +3 -3
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/async_hooks.d.ts +12 -0
- package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +8 -0
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +9 -0
- package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +86 -7
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/async_hooks.d.ts +12 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/module.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/net.d.ts +9 -1
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/tls.d.ts +86 -7
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/util.d.ts +85 -0
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +85 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/async_hooks.d.ts +12 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +8 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +9 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +86 -7
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/async_hooks.d.ts +12 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/module.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/net.d.ts +9 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/tls.d.ts +86 -7
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/util.d.ts +85 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +85 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +12 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +8 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +9 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +86 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/async_hooks.d.ts +12 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/module.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/net.d.ts +9 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tls.d.ts +86 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/util.d.ts +85 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +85 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/async_hooks.d.ts +12 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/module.d.ts +1 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/net.d.ts +8 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/test.d.ts +9 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/tls.d.ts +86 -7
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/async_hooks.d.ts +12 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/module.d.ts +1 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/net.d.ts +9 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/tls.d.ts +86 -7
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/util.d.ts +85 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/util.d.ts +85 -0
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +12 -0
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +8 -0
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +9 -0
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +86 -7
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/async_hooks.d.ts +12 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/module.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/net.d.ts +9 -1
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tls.d.ts +86 -7
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/util.d.ts +85 -0
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +85 -0
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +12 -0
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +8 -0
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +9 -0
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +86 -7
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/async_hooks.d.ts +12 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/module.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/net.d.ts +9 -1
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tls.d.ts +86 -7
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/util.d.ts +85 -0
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +85 -0
- package/package.json +4 -4
|
@@ -41,21 +41,100 @@ declare module 'tls' {
|
|
|
41
41
|
CN: string;
|
|
42
42
|
}
|
|
43
43
|
interface PeerCertificate {
|
|
44
|
+
/**
|
|
45
|
+
* `true` if a Certificate Authority (CA), `false` otherwise.
|
|
46
|
+
* @since v18.13.0
|
|
47
|
+
*/
|
|
48
|
+
ca: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* The DER encoded X.509 certificate data.
|
|
51
|
+
*/
|
|
52
|
+
raw: Buffer;
|
|
53
|
+
/**
|
|
54
|
+
* The certificate subject.
|
|
55
|
+
*/
|
|
44
56
|
subject: Certificate;
|
|
57
|
+
/**
|
|
58
|
+
* The certificate issuer, described in the same terms as the `subject`.
|
|
59
|
+
*/
|
|
45
60
|
issuer: Certificate;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
exponent: string;
|
|
61
|
+
/**
|
|
62
|
+
* The date-time the certificate is valid from.
|
|
63
|
+
*/
|
|
50
64
|
valid_from: string;
|
|
65
|
+
/**
|
|
66
|
+
* The date-time the certificate is valid to.
|
|
67
|
+
*/
|
|
51
68
|
valid_to: string;
|
|
69
|
+
/**
|
|
70
|
+
* The certificate serial number, as a hex string.
|
|
71
|
+
*/
|
|
72
|
+
serialNumber: string;
|
|
73
|
+
/**
|
|
74
|
+
* The SHA-1 digest of the DER encoded certificate.
|
|
75
|
+
* It is returned as a `:` separated hexadecimal string.
|
|
76
|
+
*/
|
|
52
77
|
fingerprint: string;
|
|
78
|
+
/**
|
|
79
|
+
* The SHA-256 digest of the DER encoded certificate.
|
|
80
|
+
* It is returned as a `:` separated hexadecimal string.
|
|
81
|
+
*/
|
|
53
82
|
fingerprint256: string;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
83
|
+
/**
|
|
84
|
+
* The SHA-512 digest of the DER encoded certificate.
|
|
85
|
+
* It is returned as a `:` separated hexadecimal string.
|
|
86
|
+
*/
|
|
87
|
+
fingerprint512: string;
|
|
88
|
+
/**
|
|
89
|
+
* The extended key usage, a set of OIDs.
|
|
90
|
+
*/
|
|
91
|
+
ext_key_usage?: string[];
|
|
92
|
+
/**
|
|
93
|
+
* A string containing concatenated names for the subject,
|
|
94
|
+
* an alternative to the `subject` names.
|
|
95
|
+
*/
|
|
96
|
+
subjectaltname?: string;
|
|
97
|
+
/**
|
|
98
|
+
* An array describing the AuthorityInfoAccess, used with OCSP.
|
|
99
|
+
*/
|
|
100
|
+
infoAccess?: NodeJS.Dict<string[]>;
|
|
101
|
+
/**
|
|
102
|
+
* For RSA keys: The RSA bit size.
|
|
103
|
+
*
|
|
104
|
+
* For EC keys: The key size in bits.
|
|
105
|
+
*/
|
|
106
|
+
bits?: number;
|
|
107
|
+
/**
|
|
108
|
+
* The RSA exponent, as a string in hexadecimal number notation.
|
|
109
|
+
*/
|
|
110
|
+
exponent?: string;
|
|
111
|
+
/**
|
|
112
|
+
* The RSA modulus, as a hexadecimal string.
|
|
113
|
+
*/
|
|
114
|
+
modulus?: string;
|
|
115
|
+
/**
|
|
116
|
+
* The public key.
|
|
117
|
+
*/
|
|
118
|
+
pubkey?: Buffer;
|
|
119
|
+
/**
|
|
120
|
+
* The ASN.1 name of the OID of the elliptic curve.
|
|
121
|
+
* Well-known curves are identified by an OID.
|
|
122
|
+
* While it is unusual, it is possible that the curve
|
|
123
|
+
* is identified by its mathematical properties,
|
|
124
|
+
* in which case it will not have an OID.
|
|
125
|
+
*/
|
|
126
|
+
asn1Curve?: string;
|
|
127
|
+
/**
|
|
128
|
+
* The NIST name for the elliptic curve,if it has one
|
|
129
|
+
* (not all well-known curves have been assigned names by NIST).
|
|
130
|
+
*/
|
|
131
|
+
nistCurve?: string;
|
|
57
132
|
}
|
|
58
133
|
interface DetailedPeerCertificate extends PeerCertificate {
|
|
134
|
+
/**
|
|
135
|
+
* The issuer certificate object.
|
|
136
|
+
* For self-signed certificates, this may be a circular reference.
|
|
137
|
+
*/
|
|
59
138
|
issuerCertificate: DetailedPeerCertificate;
|
|
60
139
|
}
|
|
61
140
|
interface CipherNameAndProtocol {
|
|
@@ -1426,6 +1426,91 @@ declare module 'util' {
|
|
|
1426
1426
|
tokens?: Token[];
|
|
1427
1427
|
}
|
|
1428
1428
|
: PreciseParsedResults<T>;
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* @since v18.13.0
|
|
1432
|
+
*/
|
|
1433
|
+
export class MIMEType {
|
|
1434
|
+
/**
|
|
1435
|
+
* Creates a new MIMEType object by parsing the input.
|
|
1436
|
+
*
|
|
1437
|
+
* A `TypeError` will be thrown if the `input` is not a valid MIME.
|
|
1438
|
+
* Note that an effort will be made to coerce the given values into strings.
|
|
1439
|
+
* @param input The input MIME to parse.
|
|
1440
|
+
*/
|
|
1441
|
+
constructor(input: string | { toString: () => string });
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* Gets and sets the type portion of the MIME.
|
|
1445
|
+
*/
|
|
1446
|
+
type: string;
|
|
1447
|
+
|
|
1448
|
+
/**
|
|
1449
|
+
* Gets and sets the subtype portion of the MIME.
|
|
1450
|
+
*/
|
|
1451
|
+
subtype: string;
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* Gets the essence of the MIME.
|
|
1455
|
+
*
|
|
1456
|
+
* Use `mime.type` or `mime.subtype` to alter the MIME.
|
|
1457
|
+
*/
|
|
1458
|
+
readonly essence: string;
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
* Gets the `MIMEParams` object representing the parameters of the MIME.
|
|
1462
|
+
*/
|
|
1463
|
+
readonly params: MIMEParams;
|
|
1464
|
+
|
|
1465
|
+
/**
|
|
1466
|
+
* Returns the serialized MIME.
|
|
1467
|
+
*
|
|
1468
|
+
* Because of the need for standard compliance, this method
|
|
1469
|
+
* does not allow users to customize the serialization process of the MIME.
|
|
1470
|
+
*/
|
|
1471
|
+
toString(): string;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
/**
|
|
1475
|
+
* @since v18.13.0
|
|
1476
|
+
*/
|
|
1477
|
+
export class MIMEParams {
|
|
1478
|
+
/**
|
|
1479
|
+
* Remove all name-value pairs whose name is `name`.
|
|
1480
|
+
*/
|
|
1481
|
+
delete(name: string): void;
|
|
1482
|
+
/**
|
|
1483
|
+
* Returns an iterator over each of the name-value pairs in the parameters.
|
|
1484
|
+
*/
|
|
1485
|
+
entries(): IterableIterator<[name: string, value: string]>;
|
|
1486
|
+
/**
|
|
1487
|
+
* Returns the value of the first name-value pair whose name is `name`.
|
|
1488
|
+
* If there are no such pairs, `null` is returned.
|
|
1489
|
+
*/
|
|
1490
|
+
get(name: string): string | null;
|
|
1491
|
+
/**
|
|
1492
|
+
* Returns `true` if there is at least one name-value pair whose name is `name`.
|
|
1493
|
+
*/
|
|
1494
|
+
has(name: string): boolean;
|
|
1495
|
+
/**
|
|
1496
|
+
* Returns an iterator over the names of each name-value pair.
|
|
1497
|
+
*/
|
|
1498
|
+
keys(): IterableIterator<string>;
|
|
1499
|
+
/**
|
|
1500
|
+
* Sets the value in the `MIMEParams` object associated with `name` to `value`.
|
|
1501
|
+
* If there are any pre-existing name-value pairs whose names are `name`,
|
|
1502
|
+
* set the first such pair's value to `value`.
|
|
1503
|
+
*/
|
|
1504
|
+
set(name: string, value: string): void;
|
|
1505
|
+
/**
|
|
1506
|
+
* Returns an iterator over the values of each name-value pair.
|
|
1507
|
+
*/
|
|
1508
|
+
values(): IterableIterator<string>;
|
|
1509
|
+
/**
|
|
1510
|
+
* Returns an iterator over each of the name-value pairs in the parameters.
|
|
1511
|
+
*/
|
|
1512
|
+
[Symbol.iterator]: typeof MIMEParams.prototype.entries;
|
|
1513
|
+
}
|
|
1429
1514
|
}
|
|
1430
1515
|
declare module 'util/types' {
|
|
1431
1516
|
export * from 'util/types';
|
|
@@ -1426,6 +1426,91 @@ declare module 'util' {
|
|
|
1426
1426
|
tokens?: Token[];
|
|
1427
1427
|
}
|
|
1428
1428
|
: PreciseParsedResults<T>;
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* @since v18.13.0
|
|
1432
|
+
*/
|
|
1433
|
+
export class MIMEType {
|
|
1434
|
+
/**
|
|
1435
|
+
* Creates a new MIMEType object by parsing the input.
|
|
1436
|
+
*
|
|
1437
|
+
* A `TypeError` will be thrown if the `input` is not a valid MIME.
|
|
1438
|
+
* Note that an effort will be made to coerce the given values into strings.
|
|
1439
|
+
* @param input The input MIME to parse.
|
|
1440
|
+
*/
|
|
1441
|
+
constructor(input: string | { toString: () => string });
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* Gets and sets the type portion of the MIME.
|
|
1445
|
+
*/
|
|
1446
|
+
type: string;
|
|
1447
|
+
|
|
1448
|
+
/**
|
|
1449
|
+
* Gets and sets the subtype portion of the MIME.
|
|
1450
|
+
*/
|
|
1451
|
+
subtype: string;
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* Gets the essence of the MIME.
|
|
1455
|
+
*
|
|
1456
|
+
* Use `mime.type` or `mime.subtype` to alter the MIME.
|
|
1457
|
+
*/
|
|
1458
|
+
readonly essence: string;
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
* Gets the `MIMEParams` object representing the parameters of the MIME.
|
|
1462
|
+
*/
|
|
1463
|
+
readonly params: MIMEParams;
|
|
1464
|
+
|
|
1465
|
+
/**
|
|
1466
|
+
* Returns the serialized MIME.
|
|
1467
|
+
*
|
|
1468
|
+
* Because of the need for standard compliance, this method
|
|
1469
|
+
* does not allow users to customize the serialization process of the MIME.
|
|
1470
|
+
*/
|
|
1471
|
+
toString(): string;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
/**
|
|
1475
|
+
* @since v18.13.0
|
|
1476
|
+
*/
|
|
1477
|
+
export class MIMEParams {
|
|
1478
|
+
/**
|
|
1479
|
+
* Remove all name-value pairs whose name is `name`.
|
|
1480
|
+
*/
|
|
1481
|
+
delete(name: string): void;
|
|
1482
|
+
/**
|
|
1483
|
+
* Returns an iterator over each of the name-value pairs in the parameters.
|
|
1484
|
+
*/
|
|
1485
|
+
entries(): IterableIterator<[name: string, value: string]>;
|
|
1486
|
+
/**
|
|
1487
|
+
* Returns the value of the first name-value pair whose name is `name`.
|
|
1488
|
+
* If there are no such pairs, `null` is returned.
|
|
1489
|
+
*/
|
|
1490
|
+
get(name: string): string | null;
|
|
1491
|
+
/**
|
|
1492
|
+
* Returns `true` if there is at least one name-value pair whose name is `name`.
|
|
1493
|
+
*/
|
|
1494
|
+
has(name: string): boolean;
|
|
1495
|
+
/**
|
|
1496
|
+
* Returns an iterator over the names of each name-value pair.
|
|
1497
|
+
*/
|
|
1498
|
+
keys(): IterableIterator<string>;
|
|
1499
|
+
/**
|
|
1500
|
+
* Sets the value in the `MIMEParams` object associated with `name` to `value`.
|
|
1501
|
+
* If there are any pre-existing name-value pairs whose names are `name`,
|
|
1502
|
+
* set the first such pair's value to `value`.
|
|
1503
|
+
*/
|
|
1504
|
+
set(name: string, value: string): void;
|
|
1505
|
+
/**
|
|
1506
|
+
* Returns an iterator over the values of each name-value pair.
|
|
1507
|
+
*/
|
|
1508
|
+
values(): IterableIterator<string>;
|
|
1509
|
+
/**
|
|
1510
|
+
* Returns an iterator over each of the name-value pairs in the parameters.
|
|
1511
|
+
*/
|
|
1512
|
+
[Symbol.iterator]: typeof MIMEParams.prototype.entries;
|
|
1513
|
+
}
|
|
1429
1514
|
}
|
|
1430
1515
|
declare module 'util/types' {
|
|
1431
1516
|
export * from 'util/types';
|
|
@@ -8,7 +8,7 @@ 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: Tue, 07 Feb 2023 08:32:36 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
|
@@ -319,6 +319,16 @@ declare module 'async_hooks' {
|
|
|
319
319
|
*/
|
|
320
320
|
triggerAsyncId(): number;
|
|
321
321
|
}
|
|
322
|
+
interface AsyncLocalStorageOptions<T> {
|
|
323
|
+
/**
|
|
324
|
+
* Optional callback invoked before a store is propagated to a new async resource.
|
|
325
|
+
* Returning `true` allows propagation, returning `false` avoids it. Default is to propagate always.
|
|
326
|
+
* @param type The type of async event.
|
|
327
|
+
* @param store The current store.
|
|
328
|
+
* @since v18.13.0
|
|
329
|
+
*/
|
|
330
|
+
onPropagate?: ((type: string, store: T) => boolean) | undefined;
|
|
331
|
+
}
|
|
322
332
|
/**
|
|
323
333
|
* This class creates stores that stay coherent through asynchronous operations.
|
|
324
334
|
*
|
|
@@ -368,6 +378,8 @@ declare module 'async_hooks' {
|
|
|
368
378
|
* @since v13.10.0, v12.17.0
|
|
369
379
|
*/
|
|
370
380
|
class AsyncLocalStorage<T> {
|
|
381
|
+
constructor(options?: AsyncLocalStorageOptions<T>);
|
|
382
|
+
|
|
371
383
|
/**
|
|
372
384
|
* Disables the instance of `AsyncLocalStorage`. All subsequent calls
|
|
373
385
|
* to `asyncLocalStorage.getStore()` will return `undefined` until`asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()` is called again.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for non-npm package Node.js 18.
|
|
1
|
+
// Type definitions for non-npm package Node.js 18.13
|
|
2
2
|
// Project: https://nodejs.org/
|
|
3
3
|
// Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
|
|
4
4
|
// DefinitelyTyped <https://github.com/DefinitelyTyped>
|
|
@@ -85,6 +85,7 @@ declare module 'module' {
|
|
|
85
85
|
static wrap(code: string): string;
|
|
86
86
|
static createRequire(path: string | URL): NodeRequire;
|
|
87
87
|
static builtinModules: string[];
|
|
88
|
+
static isBuiltin(moduleName: string): boolean;
|
|
88
89
|
static Module: typeof Module;
|
|
89
90
|
constructor(id: string, parent?: Module);
|
|
90
91
|
}
|
|
@@ -57,6 +57,14 @@ declare module 'net' {
|
|
|
57
57
|
noDelay?: boolean | undefined;
|
|
58
58
|
keepAlive?: boolean | undefined;
|
|
59
59
|
keepAliveInitialDelay?: number | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* @since v18.13.0
|
|
62
|
+
*/
|
|
63
|
+
autoSelectFamily?: boolean | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* @since v18.13.0
|
|
66
|
+
*/
|
|
67
|
+
autoSelectFamilyAttemptTimeout?: number | undefined;
|
|
60
68
|
}
|
|
61
69
|
interface IpcSocketConnectOpts extends ConnectOpts {
|
|
62
70
|
path: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.13.0",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -232,6 +232,6 @@
|
|
|
232
232
|
},
|
|
233
233
|
"scripts": {},
|
|
234
234
|
"dependencies": {},
|
|
235
|
-
"typesPublisherContentHash": "
|
|
235
|
+
"typesPublisherContentHash": "6c5087993475c3d03552602e518e6747e3493f7e7dec65e81e1f206b013ad890",
|
|
236
236
|
"typeScriptVersion": "4.2"
|
|
237
237
|
}
|
|
@@ -264,6 +264,15 @@ declare module 'node:test' {
|
|
|
264
264
|
*/
|
|
265
265
|
beforeEach: typeof beforeEach;
|
|
266
266
|
|
|
267
|
+
/**
|
|
268
|
+
* This function is used to create a hook that runs after the current test finishes.
|
|
269
|
+
* @param fn The hook function. If the hook uses callbacks, the callback function is passed as
|
|
270
|
+
* the second argument. Default: A no-op function.
|
|
271
|
+
* @param options Configuration options for the hook.
|
|
272
|
+
* @since v18.13.0
|
|
273
|
+
*/
|
|
274
|
+
after: typeof after;
|
|
275
|
+
|
|
267
276
|
/**
|
|
268
277
|
* This function is used to create a hook running after each subtest of the current test.
|
|
269
278
|
* @param fn The hook function. If the hook uses callbacks, the callback function is passed as
|
|
@@ -41,21 +41,100 @@ declare module 'tls' {
|
|
|
41
41
|
CN: string;
|
|
42
42
|
}
|
|
43
43
|
interface PeerCertificate {
|
|
44
|
+
/**
|
|
45
|
+
* `true` if a Certificate Authority (CA), `false` otherwise.
|
|
46
|
+
* @since v18.13.0
|
|
47
|
+
*/
|
|
48
|
+
ca: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* The DER encoded X.509 certificate data.
|
|
51
|
+
*/
|
|
52
|
+
raw: Buffer;
|
|
53
|
+
/**
|
|
54
|
+
* The certificate subject.
|
|
55
|
+
*/
|
|
44
56
|
subject: Certificate;
|
|
57
|
+
/**
|
|
58
|
+
* The certificate issuer, described in the same terms as the `subject`.
|
|
59
|
+
*/
|
|
45
60
|
issuer: Certificate;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
exponent: string;
|
|
61
|
+
/**
|
|
62
|
+
* The date-time the certificate is valid from.
|
|
63
|
+
*/
|
|
50
64
|
valid_from: string;
|
|
65
|
+
/**
|
|
66
|
+
* The date-time the certificate is valid to.
|
|
67
|
+
*/
|
|
51
68
|
valid_to: string;
|
|
69
|
+
/**
|
|
70
|
+
* The certificate serial number, as a hex string.
|
|
71
|
+
*/
|
|
72
|
+
serialNumber: string;
|
|
73
|
+
/**
|
|
74
|
+
* The SHA-1 digest of the DER encoded certificate.
|
|
75
|
+
* It is returned as a `:` separated hexadecimal string.
|
|
76
|
+
*/
|
|
52
77
|
fingerprint: string;
|
|
78
|
+
/**
|
|
79
|
+
* The SHA-256 digest of the DER encoded certificate.
|
|
80
|
+
* It is returned as a `:` separated hexadecimal string.
|
|
81
|
+
*/
|
|
53
82
|
fingerprint256: string;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
83
|
+
/**
|
|
84
|
+
* The SHA-512 digest of the DER encoded certificate.
|
|
85
|
+
* It is returned as a `:` separated hexadecimal string.
|
|
86
|
+
*/
|
|
87
|
+
fingerprint512: string;
|
|
88
|
+
/**
|
|
89
|
+
* The extended key usage, a set of OIDs.
|
|
90
|
+
*/
|
|
91
|
+
ext_key_usage?: string[];
|
|
92
|
+
/**
|
|
93
|
+
* A string containing concatenated names for the subject,
|
|
94
|
+
* an alternative to the `subject` names.
|
|
95
|
+
*/
|
|
96
|
+
subjectaltname?: string;
|
|
97
|
+
/**
|
|
98
|
+
* An array describing the AuthorityInfoAccess, used with OCSP.
|
|
99
|
+
*/
|
|
100
|
+
infoAccess?: NodeJS.Dict<string[]>;
|
|
101
|
+
/**
|
|
102
|
+
* For RSA keys: The RSA bit size.
|
|
103
|
+
*
|
|
104
|
+
* For EC keys: The key size in bits.
|
|
105
|
+
*/
|
|
106
|
+
bits?: number;
|
|
107
|
+
/**
|
|
108
|
+
* The RSA exponent, as a string in hexadecimal number notation.
|
|
109
|
+
*/
|
|
110
|
+
exponent?: string;
|
|
111
|
+
/**
|
|
112
|
+
* The RSA modulus, as a hexadecimal string.
|
|
113
|
+
*/
|
|
114
|
+
modulus?: string;
|
|
115
|
+
/**
|
|
116
|
+
* The public key.
|
|
117
|
+
*/
|
|
118
|
+
pubkey?: Buffer;
|
|
119
|
+
/**
|
|
120
|
+
* The ASN.1 name of the OID of the elliptic curve.
|
|
121
|
+
* Well-known curves are identified by an OID.
|
|
122
|
+
* While it is unusual, it is possible that the curve
|
|
123
|
+
* is identified by its mathematical properties,
|
|
124
|
+
* in which case it will not have an OID.
|
|
125
|
+
*/
|
|
126
|
+
asn1Curve?: string;
|
|
127
|
+
/**
|
|
128
|
+
* The NIST name for the elliptic curve,if it has one
|
|
129
|
+
* (not all well-known curves have been assigned names by NIST).
|
|
130
|
+
*/
|
|
131
|
+
nistCurve?: string;
|
|
57
132
|
}
|
|
58
133
|
interface DetailedPeerCertificate extends PeerCertificate {
|
|
134
|
+
/**
|
|
135
|
+
* The issuer certificate object.
|
|
136
|
+
* For self-signed certificates, this may be a circular reference.
|
|
137
|
+
*/
|
|
59
138
|
issuerCertificate: DetailedPeerCertificate;
|
|
60
139
|
}
|
|
61
140
|
interface CipherNameAndProtocol {
|
package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/async_hooks.d.ts
CHANGED
|
@@ -319,6 +319,16 @@ declare module 'async_hooks' {
|
|
|
319
319
|
*/
|
|
320
320
|
triggerAsyncId(): number;
|
|
321
321
|
}
|
|
322
|
+
interface AsyncLocalStorageOptions<T> {
|
|
323
|
+
/**
|
|
324
|
+
* Optional callback invoked before a store is propagated to a new async resource.
|
|
325
|
+
* Returning `true` allows propagation, returning `false` avoids it. Default is to propagate always.
|
|
326
|
+
* @param type The type of async event.
|
|
327
|
+
* @param store The current store.
|
|
328
|
+
* @since v18.13.0
|
|
329
|
+
*/
|
|
330
|
+
onPropagate?: ((type: string, store: T) => boolean) | undefined;
|
|
331
|
+
}
|
|
322
332
|
/**
|
|
323
333
|
* This class creates stores that stay coherent through asynchronous operations.
|
|
324
334
|
*
|
|
@@ -368,6 +378,8 @@ declare module 'async_hooks' {
|
|
|
368
378
|
* @since v13.10.0, v12.17.0
|
|
369
379
|
*/
|
|
370
380
|
class AsyncLocalStorage<T> {
|
|
381
|
+
constructor(options?: AsyncLocalStorageOptions<T>);
|
|
382
|
+
|
|
371
383
|
/**
|
|
372
384
|
* Disables the instance of `AsyncLocalStorage`. All subsequent calls
|
|
373
385
|
* to `asyncLocalStorage.getStore()` will return `undefined` until`asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()` is called again.
|
|
@@ -85,6 +85,7 @@ declare module 'module' {
|
|
|
85
85
|
static wrap(code: string): string;
|
|
86
86
|
static createRequire(path: string | URL): NodeRequire;
|
|
87
87
|
static builtinModules: string[];
|
|
88
|
+
static isBuiltin(moduleName: string): boolean;
|
|
88
89
|
static Module: typeof Module;
|
|
89
90
|
constructor(id: string, parent?: Module);
|
|
90
91
|
}
|
|
@@ -57,6 +57,14 @@ declare module 'net' {
|
|
|
57
57
|
noDelay?: boolean | undefined;
|
|
58
58
|
keepAlive?: boolean | undefined;
|
|
59
59
|
keepAliveInitialDelay?: number | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* @since v18.13.0
|
|
62
|
+
*/
|
|
63
|
+
autoSelectFamily?: boolean | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* @since v18.13.0
|
|
66
|
+
*/
|
|
67
|
+
autoSelectFamilyAttemptTimeout?: number | undefined;
|
|
60
68
|
}
|
|
61
69
|
interface IpcSocketConnectOpts extends ConnectOpts {
|
|
62
70
|
path: string;
|
|
@@ -281,7 +289,7 @@ declare module 'net' {
|
|
|
281
289
|
* The string representation of the local IP family. `'IPv4'` or `'IPv6'`.
|
|
282
290
|
* @since v18.8.0
|
|
283
291
|
*/
|
|
284
|
-
|
|
292
|
+
readonly localFamily?: string;
|
|
285
293
|
/**
|
|
286
294
|
* This property represents the state of the connection as a string.
|
|
287
295
|
* @see {https://nodejs.org/api/net.html#socketreadystate}
|
|
@@ -41,21 +41,100 @@ declare module 'tls' {
|
|
|
41
41
|
CN: string;
|
|
42
42
|
}
|
|
43
43
|
interface PeerCertificate {
|
|
44
|
+
/**
|
|
45
|
+
* `true` if a Certificate Authority (CA), `false` otherwise.
|
|
46
|
+
* @since v18.13.0
|
|
47
|
+
*/
|
|
48
|
+
ca: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* The DER encoded X.509 certificate data.
|
|
51
|
+
*/
|
|
52
|
+
raw: Buffer;
|
|
53
|
+
/**
|
|
54
|
+
* The certificate subject.
|
|
55
|
+
*/
|
|
44
56
|
subject: Certificate;
|
|
57
|
+
/**
|
|
58
|
+
* The certificate issuer, described in the same terms as the `subject`.
|
|
59
|
+
*/
|
|
45
60
|
issuer: Certificate;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
exponent: string;
|
|
61
|
+
/**
|
|
62
|
+
* The date-time the certificate is valid from.
|
|
63
|
+
*/
|
|
50
64
|
valid_from: string;
|
|
65
|
+
/**
|
|
66
|
+
* The date-time the certificate is valid to.
|
|
67
|
+
*/
|
|
51
68
|
valid_to: string;
|
|
69
|
+
/**
|
|
70
|
+
* The certificate serial number, as a hex string.
|
|
71
|
+
*/
|
|
72
|
+
serialNumber: string;
|
|
73
|
+
/**
|
|
74
|
+
* The SHA-1 digest of the DER encoded certificate.
|
|
75
|
+
* It is returned as a `:` separated hexadecimal string.
|
|
76
|
+
*/
|
|
52
77
|
fingerprint: string;
|
|
78
|
+
/**
|
|
79
|
+
* The SHA-256 digest of the DER encoded certificate.
|
|
80
|
+
* It is returned as a `:` separated hexadecimal string.
|
|
81
|
+
*/
|
|
53
82
|
fingerprint256: string;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
83
|
+
/**
|
|
84
|
+
* The SHA-512 digest of the DER encoded certificate.
|
|
85
|
+
* It is returned as a `:` separated hexadecimal string.
|
|
86
|
+
*/
|
|
87
|
+
fingerprint512: string;
|
|
88
|
+
/**
|
|
89
|
+
* The extended key usage, a set of OIDs.
|
|
90
|
+
*/
|
|
91
|
+
ext_key_usage?: string[];
|
|
92
|
+
/**
|
|
93
|
+
* A string containing concatenated names for the subject,
|
|
94
|
+
* an alternative to the `subject` names.
|
|
95
|
+
*/
|
|
96
|
+
subjectaltname?: string;
|
|
97
|
+
/**
|
|
98
|
+
* An array describing the AuthorityInfoAccess, used with OCSP.
|
|
99
|
+
*/
|
|
100
|
+
infoAccess?: NodeJS.Dict<string[]>;
|
|
101
|
+
/**
|
|
102
|
+
* For RSA keys: The RSA bit size.
|
|
103
|
+
*
|
|
104
|
+
* For EC keys: The key size in bits.
|
|
105
|
+
*/
|
|
106
|
+
bits?: number;
|
|
107
|
+
/**
|
|
108
|
+
* The RSA exponent, as a string in hexadecimal number notation.
|
|
109
|
+
*/
|
|
110
|
+
exponent?: string;
|
|
111
|
+
/**
|
|
112
|
+
* The RSA modulus, as a hexadecimal string.
|
|
113
|
+
*/
|
|
114
|
+
modulus?: string;
|
|
115
|
+
/**
|
|
116
|
+
* The public key.
|
|
117
|
+
*/
|
|
118
|
+
pubkey?: Buffer;
|
|
119
|
+
/**
|
|
120
|
+
* The ASN.1 name of the OID of the elliptic curve.
|
|
121
|
+
* Well-known curves are identified by an OID.
|
|
122
|
+
* While it is unusual, it is possible that the curve
|
|
123
|
+
* is identified by its mathematical properties,
|
|
124
|
+
* in which case it will not have an OID.
|
|
125
|
+
*/
|
|
126
|
+
asn1Curve?: string;
|
|
127
|
+
/**
|
|
128
|
+
* The NIST name for the elliptic curve,if it has one
|
|
129
|
+
* (not all well-known curves have been assigned names by NIST).
|
|
130
|
+
*/
|
|
131
|
+
nistCurve?: string;
|
|
57
132
|
}
|
|
58
133
|
interface DetailedPeerCertificate extends PeerCertificate {
|
|
134
|
+
/**
|
|
135
|
+
* The issuer certificate object.
|
|
136
|
+
* For self-signed certificates, this may be a circular reference.
|
|
137
|
+
*/
|
|
59
138
|
issuerCertificate: DetailedPeerCertificate;
|
|
60
139
|
}
|
|
61
140
|
interface CipherNameAndProtocol {
|