cdk-ecr-deployment 2.5.1 → 2.5.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/.gitattributes +0 -1
- package/.jsii +2 -2
- package/changelog.md +1 -8
- package/lambda/Dockerfile +10 -3
- package/lambda/go.mod +2 -1
- package/lambda/go.sum +6 -4
- package/lib/index.js +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +3 -3
- 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 +93 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +42 -11
- 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/events.d.ts +31 -3
- 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/index.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +12 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +8 -8
- 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/stream.d.ts +13 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +31 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +3 -3
- 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 +93 -3
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +42 -11
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +31 -3
- 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/index.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +12 -0
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +8 -8
- 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/stream.d.ts +13 -0
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +31 -1
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +3 -3
- 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 +93 -3
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +42 -11
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +31 -3
- 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/index.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +12 -0
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +8 -8
- 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/stream.d.ts +13 -0
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +31 -1
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +1 -1
- package/package.json +9 -6
- package/releasetag.txt +1 -1
- package/version.txt +1 -1
package/.gitattributes
CHANGED
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
/.github/workflows/pull-request-lint.yml linguist-generated
|
|
10
10
|
/.github/workflows/release-v1-main.yml linguist-generated
|
|
11
11
|
/.github/workflows/release.yml linguist-generated
|
|
12
|
-
/.github/workflows/stale.yml linguist-generated
|
|
13
12
|
/.github/workflows/upgrade-main.yml linguist-generated
|
|
14
13
|
/.github/workflows/upgrade-v1-main.yml linguist-generated
|
|
15
14
|
/.gitignore linguist-generated
|
package/.jsii
CHANGED
package/changelog.md
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
### [2.5.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
### Bug Fixes
|
|
6
|
-
|
|
7
|
-
* github.com/docker/distribution@v2.8.0+incompatible checksum mismatch ([ca36544](https://github.com/cdklabs/cdk-ecr-deployment/commit/ca365445b0edc8f1e1089aba40923b9729fd1253))
|
|
8
|
-
* goproxy.cn 504 GATEWAY TIMEOUT on github CI ([ade55d3](https://github.com/cdklabs/cdk-ecr-deployment/commit/ade55d369a1cde936bd26be62963f50db82f26d2))
|
|
9
|
-
* One or more build-args [GOPROXY] were not consumed ([addbad2](https://github.com/cdklabs/cdk-ecr-deployment/commit/addbad2840474744617e3d82697bf6b68b3d2bf5))
|
|
2
|
+
### [2.5.4](https://github.com/cdklabs/cdk-ecr-deployment/compare/v2.5.3...v2.5.4) (2022-05-28)
|
package/lambda/Dockerfile
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
ARG buildImage=public.ecr.aws/sam/build-go1.x:latest
|
|
4
|
-
ARG GOPROXY=https://goproxy.cn|https://goproxy.io|direct
|
|
5
4
|
|
|
6
5
|
FROM ${buildImage}
|
|
7
6
|
|
|
@@ -14,16 +13,24 @@ RUN yum -y install \
|
|
|
14
13
|
libassuan-devel \
|
|
15
14
|
libudev-devel
|
|
16
15
|
|
|
16
|
+
# In https://github.com/aws/aws-sam-build-images/blob/0a39eebc0d1d462afbe155d4e6a4cbcb12888847/build-image-src/Dockerfile-go1x#L29
|
|
17
|
+
# already defined GOPROXY env.
|
|
18
|
+
# To avoid naming conflict which will lead to weird error like https://github.com/laradock/laradock/issues/2618
|
|
19
|
+
# , use the following name instead
|
|
20
|
+
ARG _GOPROXY
|
|
21
|
+
|
|
17
22
|
ENV GOOS=linux \
|
|
18
23
|
GOARCH=amd64 \
|
|
19
24
|
GO111MODULE=on \
|
|
20
|
-
GOPROXY
|
|
25
|
+
GOPROXY="${_GOPROXY}"
|
|
21
26
|
|
|
22
27
|
WORKDIR /ws
|
|
23
28
|
|
|
24
29
|
COPY go.mod go.sum ./
|
|
25
30
|
|
|
26
|
-
RUN go
|
|
31
|
+
RUN go env
|
|
32
|
+
|
|
33
|
+
# RUN go mod download -x
|
|
27
34
|
|
|
28
35
|
COPY . /ws
|
|
29
36
|
|
package/lambda/go.mod
CHANGED
|
@@ -15,8 +15,9 @@ require (
|
|
|
15
15
|
github.com/containers/storage v1.39.0 // indirect
|
|
16
16
|
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
|
|
17
17
|
github.com/gorilla/mux v1.8.0 // indirect
|
|
18
|
+
github.com/imdario/mergo v0.3.13 // indirect
|
|
18
19
|
github.com/opencontainers/go-digest v1.0.0
|
|
19
|
-
github.com/opencontainers/runc v1.1.
|
|
20
|
+
github.com/opencontainers/runc v1.1.2 // indirect
|
|
20
21
|
github.com/pkg/errors v0.9.1
|
|
21
22
|
github.com/prometheus/common v0.33.0 // indirect
|
|
22
23
|
github.com/sirupsen/logrus v1.8.1
|
package/lambda/go.sum
CHANGED
|
@@ -618,8 +618,9 @@ github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJ
|
|
|
618
618
|
github.com/imdario/mergo v0.3.8/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
|
|
619
619
|
github.com/imdario/mergo v0.3.10/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
|
|
620
620
|
github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
|
|
621
|
-
github.com/imdario/mergo v0.3.12 h1:b6R2BslTbIEToALKP7LxUvijTsNI9TAe80pLWN2g/HU=
|
|
622
621
|
github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
|
|
622
|
+
github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk=
|
|
623
|
+
github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg=
|
|
623
624
|
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
|
|
624
625
|
github.com/intel/goresctrl v0.2.0/go.mod h1:+CZdzouYFn5EsxgqAQTEzMfwKwuc0fVdMrT9FCCAVRQ=
|
|
625
626
|
github.com/j-keck/arping v0.0.0-20160618110441-2cf9dc699c56/go.mod h1:ymszkNOg6tORTn+6F6j+Jc8TOr5osrynvN6ivFWZ2GA=
|
|
@@ -790,8 +791,8 @@ github.com/opencontainers/runc v1.0.0-rc9/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rm
|
|
|
790
791
|
github.com/opencontainers/runc v1.0.0-rc93/go.mod h1:3NOsor4w32B2tC0Zbl8Knk4Wg84SM2ImC1fxBuqJ/H0=
|
|
791
792
|
github.com/opencontainers/runc v1.0.2/go.mod h1:aTaHFFwQXuA71CiyxOdFFIorAoemI04suvGRQFzWTD0=
|
|
792
793
|
github.com/opencontainers/runc v1.1.0/go.mod h1:Tj1hFw6eFWp/o33uxGf5yF2BX5yz2Z6iptFpuvbbKqc=
|
|
793
|
-
github.com/opencontainers/runc v1.1.
|
|
794
|
-
github.com/opencontainers/runc v1.1.
|
|
794
|
+
github.com/opencontainers/runc v1.1.2 h1:2VSZwLx5k/BfsBxMMipG/LYUnmqOD/BPkIVgQUcTlLw=
|
|
795
|
+
github.com/opencontainers/runc v1.1.2/go.mod h1:Tj1hFw6eFWp/o33uxGf5yF2BX5yz2Z6iptFpuvbbKqc=
|
|
795
796
|
github.com/opencontainers/runtime-spec v0.1.2-0.20190507144316-5b71a03e2700/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0=
|
|
796
797
|
github.com/opencontainers/runtime-spec v1.0.1/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0=
|
|
797
798
|
github.com/opencontainers/runtime-spec v1.0.2-0.20190207185410-29686dbc5559/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0=
|
|
@@ -1560,8 +1561,9 @@ gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
|
|
|
1560
1561
|
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
|
|
1561
1562
|
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
|
1562
1563
|
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
|
1563
|
-
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=
|
|
1564
1564
|
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
|
1565
|
+
gopkg.in/yaml.v3 v3.0.0 h1:hjy8E9ON/egN1tAYqKb61G10WtihqetD4sz2H+8nIeA=
|
|
1566
|
+
gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
|
1565
1567
|
gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo=
|
|
1566
1568
|
gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw=
|
|
1567
1569
|
gotest.tools/v3 v3.0.2/go.mod h1:3SzNCllyD9/Y+b5r9JIKQ474KzkZyqLqEfYqMsX94Bk=
|
package/lib/index.js
CHANGED
|
@@ -52,7 +52,7 @@ class DockerImageName {
|
|
|
52
52
|
}
|
|
53
53
|
exports.DockerImageName = DockerImageName;
|
|
54
54
|
_a = JSII_RTTI_SYMBOL_1;
|
|
55
|
-
DockerImageName[_a] = { fqn: "cdk-ecr-deployment.DockerImageName", version: "2.5.
|
|
55
|
+
DockerImageName[_a] = { fqn: "cdk-ecr-deployment.DockerImageName", version: "2.5.4" };
|
|
56
56
|
/**
|
|
57
57
|
* @stability stable
|
|
58
58
|
*/
|
|
@@ -78,7 +78,7 @@ class S3ArchiveName {
|
|
|
78
78
|
}
|
|
79
79
|
exports.S3ArchiveName = S3ArchiveName;
|
|
80
80
|
_b = JSII_RTTI_SYMBOL_1;
|
|
81
|
-
S3ArchiveName[_b] = { fqn: "cdk-ecr-deployment.S3ArchiveName", version: "2.5.
|
|
81
|
+
S3ArchiveName[_b] = { fqn: "cdk-ecr-deployment.S3ArchiveName", version: "2.5.4" };
|
|
82
82
|
/**
|
|
83
83
|
* @stability stable
|
|
84
84
|
*/
|
|
@@ -171,5 +171,5 @@ class ECRDeployment extends constructs_1.Construct {
|
|
|
171
171
|
}
|
|
172
172
|
exports.ECRDeployment = ECRDeployment;
|
|
173
173
|
_c = JSII_RTTI_SYMBOL_1;
|
|
174
|
-
ECRDeployment[_c] = { fqn: "cdk-ecr-deployment.ECRDeployment", version: "2.5.
|
|
174
|
+
ECRDeployment[_c] = { fqn: "cdk-ecr-deployment.ECRDeployment", version: "2.5.4" };
|
|
175
175
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxxRUFBcUU7QUFDckUsc0NBQXNDO0FBR3RDLCtDQUErQztBQUMvQyw2QkFBNkI7QUFDN0IsNkNBQW9IO0FBRXBILDJDQUF1QztBQUN2QyxxQ0FBbUQ7QUFvQ25ELFNBQVMsT0FBTyxDQUFDLFVBQWtCO0lBQ2pDLElBQUksZ0NBQXVCLEVBQUUsRUFBRTtRQUM3QixJQUFJ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gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSBidWlsZEltYWdlPzogc3RyaW5nO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHNyYzogSUltYWdlTmFtZTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgZGVzdDogSUltYWdlTmFtZTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgbWVtb3J5TGltaXQ/OiBudW1iZXI7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSByb2xlPzogaWFtLklSb2xlO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgdnBjPzogZWMyLklWcGM7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHZwY1N1Ym5ldHM/OiBlYzIuU3VibmV0U2VsZWN0aW9uO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgZW52aXJvbm1lbnQ/OiB7IFtrZXk6IHN0cmluZ106IHN0cmluZyB9O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIElJbWFnZU5hbWUge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSB1cmk6IHN0cmluZztcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgY3JlZHM/OiBzdHJpbmc7XG59XG5cbmZ1bmN0aW9uIGdldENvZGUoYnVpbGRJbWFnZTogc3RyaW5nKTogbGFtYmRhLkFzc2V0Q29kZSB7XG4gIGlmIChzaG91bGRVc2VQcmVidWlsdExhbWJkYSgpKSB7XG4gICAgdHJ5IHtcbiAgICAgIGNvbnNvbGUubG9nKCdUcnkgdG8gZ2V0IHByZWJ1aWx0IGxhbWJkYScpO1xuXG4gICAgICBjb25zdCBpbnN0YWxsU2NyaXB0ID0gcGF0aC5qb2luKF9fZGlybmFtZSwgJy4uL2xhbWJkYS9pbnN0YWxsLmpzJyk7XG4gICAgICB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2xldG9uRnVuY3Rpb24gc2hvdWxkIGhhdmUgY3JlYXRlZCBhIFJvbGUnKTsgfVxuXG4gICAgcmV0dXJuIGhhbmRsZXJSb2xlLmFkZFRvUHJpbmNpcGFsUG9saWN5KHN0YXRlbWVudCk7XG4gIH1cblxuICBwcml2YXRlIHJlbmRlclNpbmdsZXRvblV1aWQobWVtb3J5TGltaXQ/OiBudW1iZXIpIHtcbiAgICBsZXQgdXVpZCA9ICdiZDA3YzkzMC1lZGI5LTQxMTItYTIwZi0wM2YwOTZmNTM2NjYnO1xuXG4gICAgLy8gaWYgdXNlciBzcGVjaWZ5IGEgY3VzdG9tIG1lbW9yeSBsaW1pdCwgZGVmaW5lIGFub3RoZXIgc2luZ2xldG9uIGhhbmRsZXJcbiAgICAvLyB3aXRoIHRoaXMgY29uZmlndXJhdGlvbi4gb3RoZXJ3aXNlLCBpdCB3b24ndCBiZSBwb3NzaWJsZSB0byB1c2UgbXVsdGlwbGVcbiAgICAvLyBjb25maWd1cmF0aW9ucyBzaW5jZSB3ZSBoYXZlIGEgc2luZ2xldG9uLlxuICAgIGlmIChtZW1vcnlMaW1pdCkge1xuICAgICAgaWYgKFRva2VuLmlzVW5yZXNvbHZlZChtZW1vcnlMaW1pdCkpIHtcbiAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdDYW5cXCd0IHVzZSB0b2tlbnMgd2hlbiBzcGVjaWZ5aW5nIFwibWVtb3J5TGltaXRcIiBzaW5jZSB3ZSB1c2UgaXQgdG8gaWRlbnRpZnkgdGhlIHNpbmdsZXRvbiBjdXN0b20gcmVzb3VyY2UgaGFuZGxlcicpO1xuICAgICAgfVxuXG4gICAgICB1dWlkICs9IGAtJHttZW1vcnlMaW1pdC50b1N0cmluZygpfU1pQmA7XG4gICAgfVxuXG4gICAgcmV0dXJuIHV1aWQ7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -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: Thu, 19 May 2022 14:01:40 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
|
-
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), [
|
|
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), [wafuwafu13](https://github.com/wafuwafu13), and [Matteo Collina](https://github.com/mcollina).
|
|
@@ -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
|
/**
|
|
@@ -390,7 +390,7 @@ declare module 'buffer' {
|
|
|
390
390
|
* @since v0.11.13
|
|
391
391
|
* @return Either `-1`, `0`, or `1`, depending on the result of the comparison. See `compare` for details.
|
|
392
392
|
*/
|
|
393
|
-
compare(buf1: Uint8Array, buf2: Uint8Array):
|
|
393
|
+
compare(buf1: Uint8Array, buf2: Uint8Array): -1 | 0 | 1;
|
|
394
394
|
/**
|
|
395
395
|
* Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled.
|
|
396
396
|
*
|
|
@@ -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
|
*
|
|
@@ -909,6 +909,11 @@ declare module 'buffer' {
|
|
|
909
909
|
* @return `offset` plus the number of bytes written.
|
|
910
910
|
*/
|
|
911
911
|
writeBigUInt64BE(value: bigint, offset?: number): number;
|
|
912
|
+
/**
|
|
913
|
+
* @alias Buffer.writeBigUInt64BE
|
|
914
|
+
* @since v14.10.0, v12.19.0
|
|
915
|
+
*/
|
|
916
|
+
writeBigUint64BE(value: bigint, offset?: number): number;
|
|
912
917
|
/**
|
|
913
918
|
* Writes `value` to `buf` at the specified `offset` as little-endian
|
|
914
919
|
*
|
|
@@ -930,6 +935,11 @@ declare module 'buffer' {
|
|
|
930
935
|
* @return `offset` plus the number of bytes written.
|
|
931
936
|
*/
|
|
932
937
|
writeBigUInt64LE(value: bigint, offset?: number): number;
|
|
938
|
+
/**
|
|
939
|
+
* @alias Buffer.writeBigUInt64LE
|
|
940
|
+
* @since v14.10.0, v12.19.0
|
|
941
|
+
*/
|
|
942
|
+
writeBigUint64LE(value: bigint, offset?: number): number;
|
|
933
943
|
/**
|
|
934
944
|
* Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined
|
|
935
945
|
* when `value` is anything other than an unsigned integer.
|
|
@@ -953,6 +963,11 @@ declare module 'buffer' {
|
|
|
953
963
|
* @return `offset` plus the number of bytes written.
|
|
954
964
|
*/
|
|
955
965
|
writeUIntLE(value: number, offset: number, byteLength: number): number;
|
|
966
|
+
/**
|
|
967
|
+
* @alias Buffer.writeUIntLE
|
|
968
|
+
* @since v14.9.0, v12.19.0
|
|
969
|
+
*/
|
|
970
|
+
writeUintLE(value: number, offset: number, byteLength: number): number;
|
|
956
971
|
/**
|
|
957
972
|
* Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined
|
|
958
973
|
* when `value` is anything other than an unsigned integer.
|
|
@@ -976,6 +991,11 @@ declare module 'buffer' {
|
|
|
976
991
|
* @return `offset` plus the number of bytes written.
|
|
977
992
|
*/
|
|
978
993
|
writeUIntBE(value: number, offset: number, byteLength: number): number;
|
|
994
|
+
/**
|
|
995
|
+
* @alias Buffer.writeUIntBE
|
|
996
|
+
* @since v14.9.0, v12.19.0
|
|
997
|
+
*/
|
|
998
|
+
writeUintBE(value: number, offset: number, byteLength: number): number;
|
|
979
999
|
/**
|
|
980
1000
|
* Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined
|
|
981
1001
|
* when `value` is anything other than a signed integer.
|
|
@@ -1035,6 +1055,11 @@ declare module 'buffer' {
|
|
|
1035
1055
|
* @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`.
|
|
1036
1056
|
*/
|
|
1037
1057
|
readBigUInt64BE(offset?: number): bigint;
|
|
1058
|
+
/**
|
|
1059
|
+
* @alias Buffer.readBigUInt64BE
|
|
1060
|
+
* @since v14.10.0, v12.19.0
|
|
1061
|
+
*/
|
|
1062
|
+
readBigUint64BE(offset?: number): bigint;
|
|
1038
1063
|
/**
|
|
1039
1064
|
* Reads an unsigned, little-endian 64-bit integer from `buf` at the specified`offset`.
|
|
1040
1065
|
*
|
|
@@ -1052,6 +1077,11 @@ declare module 'buffer' {
|
|
|
1052
1077
|
* @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`.
|
|
1053
1078
|
*/
|
|
1054
1079
|
readBigUInt64LE(offset?: number): bigint;
|
|
1080
|
+
/**
|
|
1081
|
+
* @alias Buffer.readBigUInt64LE
|
|
1082
|
+
* @since v14.10.0, v12.19.0
|
|
1083
|
+
*/
|
|
1084
|
+
readBigUint64LE(offset?: number): bigint;
|
|
1055
1085
|
/**
|
|
1056
1086
|
* Reads a signed, big-endian 64-bit integer from `buf` at the specified `offset`.
|
|
1057
1087
|
*
|
|
@@ -1089,6 +1119,11 @@ declare module 'buffer' {
|
|
|
1089
1119
|
* @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`.
|
|
1090
1120
|
*/
|
|
1091
1121
|
readUIntLE(offset: number, byteLength: number): number;
|
|
1122
|
+
/**
|
|
1123
|
+
* @alias Buffer.readUIntLE
|
|
1124
|
+
* @since v14.9.0, v12.19.0
|
|
1125
|
+
*/
|
|
1126
|
+
readUintLE(offset: number, byteLength: number): number;
|
|
1092
1127
|
/**
|
|
1093
1128
|
* Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as an unsigned big-endian integer supporting
|
|
1094
1129
|
* up to 48 bits of accuracy.
|
|
@@ -1110,6 +1145,11 @@ declare module 'buffer' {
|
|
|
1110
1145
|
* @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`.
|
|
1111
1146
|
*/
|
|
1112
1147
|
readUIntBE(offset: number, byteLength: number): number;
|
|
1148
|
+
/**
|
|
1149
|
+
* @alias Buffer.readUIntBE
|
|
1150
|
+
* @since v14.9.0, v12.19.0
|
|
1151
|
+
*/
|
|
1152
|
+
readUintBE(offset: number, byteLength: number): number;
|
|
1113
1153
|
/**
|
|
1114
1154
|
* Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as a little-endian, two's complement signed value
|
|
1115
1155
|
* supporting up to 48 bits of accuracy.
|
|
@@ -1169,6 +1209,11 @@ declare module 'buffer' {
|
|
|
1169
1209
|
* @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`.
|
|
1170
1210
|
*/
|
|
1171
1211
|
readUInt8(offset?: number): number;
|
|
1212
|
+
/**
|
|
1213
|
+
* @alias Buffer.readUInt8
|
|
1214
|
+
* @since v14.9.0, v12.19.0
|
|
1215
|
+
*/
|
|
1216
|
+
readUint8(offset?: number): number;
|
|
1172
1217
|
/**
|
|
1173
1218
|
* Reads an unsigned, little-endian 16-bit integer from `buf` at the specified`offset`.
|
|
1174
1219
|
*
|
|
@@ -1190,6 +1235,11 @@ declare module 'buffer' {
|
|
|
1190
1235
|
* @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`.
|
|
1191
1236
|
*/
|
|
1192
1237
|
readUInt16LE(offset?: number): number;
|
|
1238
|
+
/**
|
|
1239
|
+
* @alias Buffer.readUInt16LE
|
|
1240
|
+
* @since v14.9.0, v12.19.0
|
|
1241
|
+
*/
|
|
1242
|
+
readUint16LE(offset?: number): number;
|
|
1193
1243
|
/**
|
|
1194
1244
|
* Reads an unsigned, big-endian 16-bit integer from `buf` at the specified`offset`.
|
|
1195
1245
|
*
|
|
@@ -1209,6 +1259,11 @@ declare module 'buffer' {
|
|
|
1209
1259
|
* @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`.
|
|
1210
1260
|
*/
|
|
1211
1261
|
readUInt16BE(offset?: number): number;
|
|
1262
|
+
/**
|
|
1263
|
+
* @alias Buffer.readUInt16BE
|
|
1264
|
+
* @since v14.9.0, v12.19.0
|
|
1265
|
+
*/
|
|
1266
|
+
readUint16BE(offset?: number): number;
|
|
1212
1267
|
/**
|
|
1213
1268
|
* Reads an unsigned, little-endian 32-bit integer from `buf` at the specified`offset`.
|
|
1214
1269
|
*
|
|
@@ -1228,6 +1283,11 @@ declare module 'buffer' {
|
|
|
1228
1283
|
* @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
|
|
1229
1284
|
*/
|
|
1230
1285
|
readUInt32LE(offset?: number): number;
|
|
1286
|
+
/**
|
|
1287
|
+
* @alias Buffer.readUInt32LE
|
|
1288
|
+
* @since v14.9.0, v12.19.0
|
|
1289
|
+
*/
|
|
1290
|
+
readUint32LE(offset?: number): number;
|
|
1231
1291
|
/**
|
|
1232
1292
|
* Reads an unsigned, big-endian 32-bit integer from `buf` at the specified`offset`.
|
|
1233
1293
|
*
|
|
@@ -1245,6 +1305,11 @@ declare module 'buffer' {
|
|
|
1245
1305
|
* @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
|
|
1246
1306
|
*/
|
|
1247
1307
|
readUInt32BE(offset?: number): number;
|
|
1308
|
+
/**
|
|
1309
|
+
* @alias Buffer.readUInt32BE
|
|
1310
|
+
* @since v14.9.0, v12.19.0
|
|
1311
|
+
*/
|
|
1312
|
+
readUint32BE(offset?: number): number;
|
|
1248
1313
|
/**
|
|
1249
1314
|
* Reads a signed 8-bit integer from `buf` at the specified `offset`.
|
|
1250
1315
|
*
|
|
@@ -1517,6 +1582,11 @@ declare module 'buffer' {
|
|
|
1517
1582
|
* @return `offset` plus the number of bytes written.
|
|
1518
1583
|
*/
|
|
1519
1584
|
writeUInt8(value: number, offset?: number): number;
|
|
1585
|
+
/**
|
|
1586
|
+
* @alias Buffer.writeUInt8
|
|
1587
|
+
* @since v14.9.0, v12.19.0
|
|
1588
|
+
*/
|
|
1589
|
+
writeUint8(value: number, offset?: number): number;
|
|
1520
1590
|
/**
|
|
1521
1591
|
* Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid unsigned 16-bit integer. Behavior is undefined when `value` is
|
|
1522
1592
|
* anything other than an unsigned 16-bit integer.
|
|
@@ -1540,6 +1610,11 @@ declare module 'buffer' {
|
|
|
1540
1610
|
* @return `offset` plus the number of bytes written.
|
|
1541
1611
|
*/
|
|
1542
1612
|
writeUInt16LE(value: number, offset?: number): number;
|
|
1613
|
+
/**
|
|
1614
|
+
* @alias Buffer.writeUInt16LE
|
|
1615
|
+
* @since v14.9.0, v12.19.0
|
|
1616
|
+
*/
|
|
1617
|
+
writeUint16LE(value: number, offset?: number): number;
|
|
1543
1618
|
/**
|
|
1544
1619
|
* Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid unsigned 16-bit integer. Behavior is undefined when `value`is anything other than an
|
|
1545
1620
|
* unsigned 16-bit integer.
|
|
@@ -1563,6 +1638,11 @@ declare module 'buffer' {
|
|
|
1563
1638
|
* @return `offset` plus the number of bytes written.
|
|
1564
1639
|
*/
|
|
1565
1640
|
writeUInt16BE(value: number, offset?: number): number;
|
|
1641
|
+
/**
|
|
1642
|
+
* @alias Buffer.writeUInt16BE
|
|
1643
|
+
* @since v14.9.0, v12.19.0
|
|
1644
|
+
*/
|
|
1645
|
+
writeUint16BE(value: number, offset?: number): number;
|
|
1566
1646
|
/**
|
|
1567
1647
|
* Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid unsigned 32-bit integer. Behavior is undefined when `value` is
|
|
1568
1648
|
* anything other than an unsigned 32-bit integer.
|
|
@@ -1585,6 +1665,11 @@ declare module 'buffer' {
|
|
|
1585
1665
|
* @return `offset` plus the number of bytes written.
|
|
1586
1666
|
*/
|
|
1587
1667
|
writeUInt32LE(value: number, offset?: number): number;
|
|
1668
|
+
/**
|
|
1669
|
+
* @alias Buffer.writeUInt32LE
|
|
1670
|
+
* @since v14.9.0, v12.19.0
|
|
1671
|
+
*/
|
|
1672
|
+
writeUint32LE(value: number, offset?: number): number;
|
|
1588
1673
|
/**
|
|
1589
1674
|
* Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid unsigned 32-bit integer. Behavior is undefined when `value`is anything other than an
|
|
1590
1675
|
* unsigned 32-bit integer.
|
|
@@ -1607,6 +1692,11 @@ declare module 'buffer' {
|
|
|
1607
1692
|
* @return `offset` plus the number of bytes written.
|
|
1608
1693
|
*/
|
|
1609
1694
|
writeUInt32BE(value: number, offset?: number): number;
|
|
1695
|
+
/**
|
|
1696
|
+
* @alias Buffer.writeUInt32BE
|
|
1697
|
+
* @since v14.9.0, v12.19.0
|
|
1698
|
+
*/
|
|
1699
|
+
writeUint32BE(value: number, offset?: number): number;
|
|
1610
1700
|
/**
|
|
1611
1701
|
* Writes `value` to `buf` at the specified `offset`. `value` must be a valid
|
|
1612
1702
|
* signed 8-bit integer. Behavior is undefined when `value` is anything other than
|
|
@@ -250,7 +250,7 @@ declare module 'crypto' {
|
|
|
250
250
|
*/
|
|
251
251
|
function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
|
|
252
252
|
// https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
|
|
253
|
-
type BinaryToTextEncoding = 'base64' | 'base64url' | 'hex';
|
|
253
|
+
type BinaryToTextEncoding = 'base64' | 'base64url' | 'hex' | 'binary';
|
|
254
254
|
type CharacterEncoding = 'utf8' | 'utf-8' | 'utf16le' | 'latin1';
|
|
255
255
|
type LegacyCharacterEncoding = 'ascii' | 'binary' | 'ucs2' | 'ucs-2';
|
|
256
256
|
type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding;
|
|
@@ -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
|
package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts
CHANGED
|
@@ -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
|