aws-delivlib 14.4.2 → 14.4.3
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/lib/publishing/github/node_modules/.yarn-integrity +42 -36
- package/lib/publishing/github/node_modules/@octokit/app/dist-node/index.js +146 -106
- package/lib/publishing/github/node_modules/@octokit/app/dist-node/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/app/dist-src/each-installation.js +34 -23
- package/lib/publishing/github/node_modules/@octokit/app/dist-src/each-repository.js +46 -38
- package/lib/publishing/github/node_modules/@octokit/app/dist-src/get-installation-octokit.js +16 -13
- package/lib/publishing/github/node_modules/@octokit/app/dist-src/index.js +76 -63
- package/lib/publishing/github/node_modules/@octokit/app/dist-src/middleware/node/index.js +48 -41
- package/lib/publishing/github/node_modules/@octokit/app/dist-src/middleware/node/on-unhandled-request-default.js +12 -7
- package/lib/publishing/github/node_modules/@octokit/app/dist-src/version.js +4 -1
- package/lib/publishing/github/node_modules/@octokit/app/dist-src/webhooks.js +44 -51
- package/lib/publishing/github/node_modules/@octokit/app/dist-types/each-installation.d.ts +6 -3
- package/lib/publishing/github/node_modules/@octokit/app/dist-types/each-repository.d.ts +1 -0
- package/lib/publishing/github/node_modules/@octokit/app/dist-types/version.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/app/dist-web/index.js +306 -0
- package/lib/publishing/github/node_modules/@octokit/app/dist-web/index.js.map +7 -0
- package/lib/publishing/github/node_modules/@octokit/app/package.json +22 -21
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-node/index.js +239 -180
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-node/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-src/auth.js +27 -24
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-src/cache.js +73 -66
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-src/get-app-authentication.js +28 -21
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-src/get-installation-authentication.js +96 -74
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-src/hook.js +79 -75
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-src/index.js +51 -39
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-src/requires-app-auth.js +30 -47
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-src/to-token-authentication.js +29 -11
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-src/version.js +4 -1
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-types/auth.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-types/cache.d.ts +3 -3
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-types/get-app-authentication.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-types/get-installation-authentication.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-types/hook.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-types/index.d.ts +2 -2
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-types/to-token-authentication.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-types/types.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-types/version.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-web/index.js +405 -360
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-web/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/auth-app/package.json +24 -25
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-app/dist-node/index.js +15 -17
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-app/dist-node/index.js.map +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-app/dist-src/version.js +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-app/dist-types/types.d.ts +17 -17
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-app/dist-types/version.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-app/dist-web/index.js +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-app/dist-web/index.js.map +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-app/package.json +3 -3
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-device/dist-node/index.js +23 -31
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-device/dist-node/index.js.map +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-device/dist-src/version.js +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-device/dist-types/types.d.ts +12 -12
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-device/dist-types/version.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-device/dist-web/index.js +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-device/dist-web/index.js.map +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-device/package.json +5 -5
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/README.md +23 -1
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-node/index.js +40 -39
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-node/index.js.map +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-src/auth.js +8 -0
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-src/get-authentication.js +3 -0
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-src/index.js +2 -1
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-src/version.js +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-types/hook.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-types/types.d.ts +38 -34
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-types/version.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-web/index.js +14 -2
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/dist-web/index.js.map +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-oauth-user/package.json +5 -5
- package/lib/publishing/github/node_modules/@octokit/auth-token/README.md +5 -10
- package/lib/publishing/github/node_modules/@octokit/auth-token/dist-node/index.js +44 -20
- package/lib/publishing/github/node_modules/@octokit/auth-token/dist-node/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/auth-token/dist-src/auth.js +13 -17
- package/lib/publishing/github/node_modules/@octokit/auth-token/dist-src/hook.js +10 -4
- package/lib/publishing/github/node_modules/@octokit/auth-token/dist-src/index.js +16 -11
- package/lib/publishing/github/node_modules/@octokit/auth-token/dist-src/with-authorization-prefix.js +8 -10
- package/lib/publishing/github/node_modules/@octokit/auth-token/dist-types/auth.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-token/dist-types/hook.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-token/dist-types/index.d.ts +2 -2
- package/lib/publishing/github/node_modules/@octokit/auth-token/dist-types/types.d.ts +13 -13
- package/lib/publishing/github/node_modules/@octokit/auth-token/dist-web/index.js +42 -45
- package/lib/publishing/github/node_modules/@octokit/auth-token/dist-web/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/auth-token/package.json +23 -27
- package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-node/index.js +47 -22
- package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-node/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-src/auth.js +8 -5
- package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-src/hook.js +33 -24
- package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-src/index.js +12 -7
- package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-src/is-abuse-limit-error.js +8 -5
- package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-src/is-rate-limit-error.js +11 -9
- package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-types/index.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-types/types.d.ts +9 -9
- package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-web/index.js +62 -50
- package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-web/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/package.json +22 -23
- package/lib/publishing/github/node_modules/@octokit/core/README.md +4 -4
- package/lib/publishing/github/node_modules/@octokit/core/dist-node/index.js +119 -100
- package/lib/publishing/github/node_modules/@octokit/core/dist-node/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/core/dist-src/index.js +114 -112
- package/lib/publishing/github/node_modules/@octokit/core/dist-src/version.js +4 -1
- package/lib/publishing/github/node_modules/@octokit/core/dist-types/types.d.ts +7 -7
- package/lib/publishing/github/node_modules/@octokit/core/dist-types/version.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/core/dist-web/index.js +124 -122
- package/lib/publishing/github/node_modules/@octokit/core/dist-web/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/core/package.json +26 -27
- package/lib/publishing/github/node_modules/@octokit/endpoint/README.md +3 -3
- package/lib/publishing/github/node_modules/@octokit/endpoint/dist-node/index.js +22 -62
- package/lib/publishing/github/node_modules/@octokit/endpoint/dist-node/index.js.map +1 -1
- package/lib/publishing/github/node_modules/@octokit/endpoint/dist-src/version.js +1 -1
- package/lib/publishing/github/node_modules/@octokit/endpoint/dist-types/version.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/endpoint/dist-web/index.js +1 -1
- package/lib/publishing/github/node_modules/@octokit/endpoint/dist-web/index.js.map +1 -1
- package/lib/publishing/github/node_modules/@octokit/endpoint/package.json +4 -4
- package/lib/publishing/github/node_modules/@octokit/graphql/README.md +1 -1
- package/lib/publishing/github/node_modules/@octokit/graphql/dist-node/index.js +81 -39
- package/lib/publishing/github/node_modules/@octokit/graphql/dist-node/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/graphql/dist-src/error.js +17 -17
- package/lib/publishing/github/node_modules/@octokit/graphql/dist-src/graphql.js +55 -44
- package/lib/publishing/github/node_modules/@octokit/graphql/dist-src/index.js +17 -12
- package/lib/publishing/github/node_modules/@octokit/graphql/dist-src/version.js +4 -1
- package/lib/publishing/github/node_modules/@octokit/graphql/dist-src/with-defaults.js +12 -9
- package/lib/publishing/github/node_modules/@octokit/graphql/dist-types/error.d.ts +3 -3
- package/lib/publishing/github/node_modules/@octokit/graphql/dist-types/graphql.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/graphql/dist-types/index.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/graphql/dist-types/types.d.ts +7 -7
- package/lib/publishing/github/node_modules/@octokit/graphql/dist-types/version.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/graphql/dist-types/with-defaults.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/graphql/dist-web/index.js +103 -90
- package/lib/publishing/github/node_modules/@octokit/graphql/dist-web/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/graphql/package.json +23 -24
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-node/index.js +290 -263
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-node/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/add-event-handler.js +13 -10
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/emit-event.js +13 -10
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/index.js +108 -64
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/methods/check-token.js +14 -11
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/methods/create-token.js +27 -24
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/methods/delete-authorization.js +43 -40
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/methods/delete-token.js +32 -29
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/methods/get-oauth-client-code.js +5 -2
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/methods/get-user-octokit.js +29 -24
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/methods/get-web-flow-authorization-url.js +16 -28
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/methods/refresh-token.js +34 -29
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/methods/reset-token.js +58 -55
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/methods/scope-token.js +34 -29
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/aws-lambda/api-gateway-v2-parse-request.js +14 -11
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/aws-lambda/api-gateway-v2-send-response.js +9 -6
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/aws-lambda/api-gateway-v2.js +21 -13
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/handle-request.js +217 -210
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/node/index.js +30 -20
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/node/parse-request.js +13 -13
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/node/send-response.js +6 -3
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/on-unhandled-request-default.js +11 -8
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/web-worker/index.js +31 -19
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/web-worker/parse-request.js +11 -9
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/web-worker/send-response.js +8 -5
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/oauth-app-octokit.js +5 -2
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/version.js +4 -1
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-types/middleware/web-worker/index.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-types/version.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/oauth-app/package.json +20 -20
- package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-node/index.js +1 -1
- package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-node/index.js.map +1 -1
- package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-src/version.js +1 -1
- package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/check-token.d.ts +4 -4
- package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/create-device-code.d.ts +3 -3
- package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/delete-authorization.d.ts +3 -3
- package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/delete-token.d.ts +3 -3
- package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/exchange-device-code.d.ts +11 -11
- package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/exchange-web-flow-code.d.ts +4 -4
- package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/get-web-flow-authorization-url.d.ts +4 -4
- package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/refresh-token.d.ts +2 -2
- package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/reset-token.d.ts +4 -4
- package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/scope-token.d.ts +8 -8
- package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/types.d.ts +9 -9
- package/lib/publishing/github/node_modules/@octokit/oauth-methods/dist-types/version.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/oauth-methods/package.json +7 -7
- package/lib/publishing/github/node_modules/@octokit/openapi-types/package.json +2 -2
- package/lib/publishing/github/node_modules/@octokit/openapi-types/types.d.ts +77450 -13127
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js +292 -57
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-src/compose-paginate.js +5 -2
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-src/generated/paginating-endpoints.js +226 -213
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-src/index.js +17 -12
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-src/iterator.js +36 -37
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-src/normalize-paginated-list-response.js +29 -45
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-src/paginate.js +31 -21
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-src/paginating-endpoints.js +14 -9
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-src/version.js +4 -1
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-types/compose-paginate.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-types/generated/paginating-endpoints.d.ts +183 -111
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-types/index.d.ts +3 -4
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-types/iterator.d.ts +3 -3
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-types/normalize-paginated-list-response.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-types/paginate.d.ts +3 -3
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-types/types.d.ts +29 -29
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-types/version.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js +334 -334
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/package.json +24 -26
- package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js +99 -39
- package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js.map +1 -1
- package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js +197 -77
- package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js +1 -1
- package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/method-types.d.ts +1419 -661
- package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/parameters-and-response-types.d.ts +359 -119
- package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/types.d.ts +3 -3
- package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/version.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js +198 -78
- package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js.map +1 -1
- package/lib/publishing/github/node_modules/@octokit/plugin-rest-endpoint-methods/package.json +9 -9
- package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-node/index.js +80 -35
- package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-node/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-src/error-request.js +12 -13
- package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-src/index.js +29 -22
- package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-src/version.js +4 -1
- package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-src/wrap-request.js +31 -15
- package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-types/error-request.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-types/version.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-types/wrap-request.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-web/index.js +68 -54
- package/lib/publishing/github/node_modules/@octokit/plugin-retry/dist-web/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/plugin-retry/package.json +21 -22
- package/lib/publishing/github/node_modules/@octokit/plugin-throttling/dist-node/index.js +18 -11
- package/lib/publishing/github/node_modules/@octokit/plugin-throttling/dist-node/index.js.map +1 -1
- package/lib/publishing/github/node_modules/@octokit/plugin-throttling/dist-src/index.js +21 -14
- package/lib/publishing/github/node_modules/@octokit/plugin-throttling/dist-src/version.js +1 -1
- package/lib/publishing/github/node_modules/@octokit/plugin-throttling/dist-types/index.d.ts +6 -0
- package/lib/publishing/github/node_modules/@octokit/plugin-throttling/dist-types/types.d.ts +13 -12
- package/lib/publishing/github/node_modules/@octokit/plugin-throttling/dist-types/version.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/plugin-throttling/dist-web/index.js +22 -15
- package/lib/publishing/github/node_modules/@octokit/plugin-throttling/dist-web/index.js.map +1 -1
- package/lib/publishing/github/node_modules/@octokit/plugin-throttling/package.json +7 -7
- package/lib/publishing/github/node_modules/@octokit/request/README.md +3 -3
- package/lib/publishing/github/node_modules/@octokit/request/dist-node/index.js +105 -77
- package/lib/publishing/github/node_modules/@octokit/request/dist-node/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/request/dist-src/fetch-wrapper.js +111 -108
- package/lib/publishing/github/node_modules/@octokit/request/dist-src/get-buffer-response.js +5 -2
- package/lib/publishing/github/node_modules/@octokit/request/dist-src/index.js +7 -4
- package/lib/publishing/github/node_modules/@octokit/request/dist-src/version.js +4 -1
- package/lib/publishing/github/node_modules/@octokit/request/dist-src/with-defaults.js +23 -18
- package/lib/publishing/github/node_modules/@octokit/request/dist-types/version.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/request/dist-web/index.js +148 -138
- package/lib/publishing/github/node_modules/@octokit/request/dist-web/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/request/package.json +23 -24
- package/lib/publishing/github/node_modules/@octokit/request-error/dist-node/index.js +10 -19
- package/lib/publishing/github/node_modules/@octokit/request-error/dist-node/index.js.map +1 -1
- package/lib/publishing/github/node_modules/@octokit/request-error/dist-types/types.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/request-error/package.json +4 -4
- package/lib/publishing/github/node_modules/@octokit/tsconfig/LICENSE +7 -0
- package/lib/publishing/github/node_modules/@octokit/tsconfig/README.md +31 -0
- package/lib/publishing/github/node_modules/@octokit/tsconfig/package.json +28 -0
- package/lib/publishing/github/node_modules/@octokit/types/dist-node/index.js +1 -1
- package/lib/publishing/github/node_modules/@octokit/types/dist-src/VERSION.js +1 -1
- package/lib/publishing/github/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/types/dist-types/Fetch.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts +4 -4
- package/lib/publishing/github/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/types/dist-types/RequestError.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/types/dist-types/RequestMethod.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/types/dist-types/RequestOptions.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/types/dist-types/RequestParameters.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/types/dist-types/Route.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/types/dist-types/Signal.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/types/dist-types/Url.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/types/dist-types/VERSION.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts +464 -332
- package/lib/publishing/github/node_modules/@octokit/types/dist-web/index.js +1 -1
- package/lib/publishing/github/node_modules/@octokit/types/package.json +10 -10
- package/lib/publishing/github/node_modules/@octokit/webhooks/README.md +68 -64
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-node/index.js +467 -97
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-node/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/createLogger.js +11 -6
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/event-handler/index.js +23 -16
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/event-handler/on.js +31 -22
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/event-handler/receive.js +51 -49
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/event-handler/remove-listener.js +18 -15
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/event-handler/wrap-error-handler.js +17 -18
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/generated/webhook-names.js +262 -254
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/index.js +40 -22
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/middleware/node/get-missing-headers.js +8 -6
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/middleware/node/get-payload.js +27 -22
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/middleware/node/index.js +19 -6
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/middleware/node/middleware.js +86 -72
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/middleware/node/on-unhandled-request-default.js +12 -7
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/sign.js +8 -2
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/to-normalized-json-string.js +8 -8
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/verify-and-receive.js +22 -16
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/verify.js +9 -2
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/event-handler/on.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/event-handler/remove-listener.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/generated/webhook-names.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/index.d.ts +14 -4
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/middleware/node/get-missing-headers.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/middleware/node/get-payload.d.ts +3 -3
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/middleware/node/index.d.ts +2 -2
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/middleware/node/middleware.d.ts +4 -4
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/middleware/node/on-unhandled-request-default.d.ts +2 -2
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/middleware/node/types.d.ts +5 -4
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/to-normalized-json-string.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/types.d.ts +12 -11
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-types/verify-and-receive.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-web/index.js +609 -533
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-web/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/webhooks/package.json +20 -22
- package/lib/publishing/github/node_modules/@octokit/webhooks-methods/README.md +84 -3
- package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-node/index.js +89 -48
- package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-node/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-src/index.js +22 -2
- package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-src/node/sign.js +19 -16
- package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-src/node/verify.js +18 -14
- package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-src/types.js +8 -5
- package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-src/utils.js +5 -2
- package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-src/version.js +4 -1
- package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-src/web.js +62 -44
- package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-types/index.d.ts +3 -1
- package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-types/node/sign.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-types/types.d.ts +2 -2
- package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-types/version.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-types/web.d.ts +1 -1
- package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-web/index.js +71 -53
- package/lib/publishing/github/node_modules/@octokit/webhooks-methods/dist-web/index.js.map +7 -1
- package/lib/publishing/github/node_modules/@octokit/webhooks-methods/package.json +36 -25
- package/lib/publishing/github/node_modules/@octokit/webhooks-types/package.json +1 -1
- package/lib/publishing/github/node_modules/@octokit/webhooks-types/schema.d.ts +670 -35
- package/lib/publishing/github/node_modules/@types/aws-lambda/README.md +2 -2
- package/lib/publishing/github/node_modules/@types/aws-lambda/index.d.ts +3 -2
- package/lib/publishing/github/node_modules/@types/aws-lambda/package.json +3 -8
- package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/amplify-resolver.d.ts +38 -0
- package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.ts +75 -1
- package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/appsync-resolver.d.ts +4 -0
- package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/codecommit.d.ts +36 -0
- package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-message.d.ts +8 -4
- package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-sms-sender.d.ts +49 -0
- package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/index.d.ts +1 -0
- package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/dynamodb-stream.d.ts +11 -1
- package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/kinesis-stream.d.ts +26 -1
- package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/msk.d.ts +7 -0
- package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/self-managed-kafka.d.ts +27 -0
- package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/sns.d.ts +2 -2
- package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/sqs.d.ts +1 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/README.md +1 -1
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/index.d.ts +14 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/README.md +2 -2
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/assert.d.ts +135 -75
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/async_hooks.d.ts +67 -38
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/buffer.d.ts +220 -101
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/child_process.d.ts +87 -58
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/cluster.d.ts +25 -29
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/console.d.ts +5 -5
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/crypto.d.ts +873 -249
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dgram.d.ts +16 -16
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/diagnostics_channel.d.ts +60 -21
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dns/promises.d.ts +52 -8
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dns.d.ts +27 -18
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dom-events.d.ts +126 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/domain.d.ts +6 -5
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/events.d.ts +166 -93
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/fs/promises.d.ts +149 -74
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/fs.d.ts +288 -121
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/globals.d.ts +22 -13
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/http.d.ts +453 -125
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/http2.d.ts +74 -46
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/https.d.ts +103 -53
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/index.d.ts +6 -2
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/inspector.d.ts +20 -16
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/module.d.ts +6 -4
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/net.d.ts +106 -16
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/os.d.ts +36 -14
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/package.json +15 -3
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/path.d.ts +37 -26
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/perf_hooks.d.ts +96 -15
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/process.d.ts +53 -50
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/punycode.d.ts +1 -1
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/querystring.d.ts +6 -6
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/readline/promises.d.ts +145 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/readline.d.ts +51 -175
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/repl.d.ts +21 -21
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/stream/consumers.d.ts +2 -14
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/stream.d.ts +983 -824
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/string_decoder.d.ts +6 -6
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/test.d.ts +1052 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/timers/promises.d.ts +26 -1
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/timers.d.ts +125 -4
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/tls.d.ts +149 -50
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/trace_events.d.ts +30 -9
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/assert.d.ts +972 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/async_hooks.d.ts +530 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/buffer.d.ts +2351 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/child_process.d.ts +1395 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/cluster.d.ts +410 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/console.d.ts +412 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/crypto.d.ts +3961 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/dns/promises.d.ts +414 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/dns.d.ts +668 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/events.d.ts +724 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/fs/promises.d.ts +1189 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/fs.d.ts +4043 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/globals.d.ts +303 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/http.d.ts +1724 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/http2.d.ts +2129 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/https.d.ts +441 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/inspector.d.ts +2748 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/module.d.ts +116 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/net.d.ts +886 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/os.d.ts +477 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/perf_hooks.d.ts +638 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/process.d.ts +1485 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/readline/promises.d.ts +145 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/readline.d.ts +526 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/stream.d.ts +1392 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/test.d.ts +1052 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/timers.d.ts +215 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/tls.d.ts +1119 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/tty.d.ts +205 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/url.d.ts +901 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/util.d.ts +2052 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/vm.d.ts +894 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/wasi.d.ts +152 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/worker_threads.d.ts +693 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/tty.d.ts +7 -6
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/url.d.ts +66 -56
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/util.d.ts +528 -70
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/v8.d.ts +271 -14
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/vm.d.ts +421 -34
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/wasi.d.ts +13 -19
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/worker_threads.d.ts +81 -37
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/zlib.d.ts +11 -11
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/package.json +3 -3
- package/lib/publishing/github/node_modules/@types/node/README.md +1 -1
- package/lib/publishing/github/node_modules/@types/node/child_process.d.ts +41 -2
- package/lib/publishing/github/node_modules/@types/node/crypto.d.ts +77 -7
- package/lib/publishing/github/node_modules/@types/node/fs/promises.d.ts +15 -12
- package/lib/publishing/github/node_modules/@types/node/globals.d.ts +5 -3
- package/lib/publishing/github/node_modules/@types/node/http.d.ts +142 -53
- package/lib/publishing/github/node_modules/@types/node/http2.d.ts +1 -2
- package/lib/publishing/github/node_modules/@types/node/https.d.ts +192 -62
- package/lib/publishing/github/node_modules/@types/node/index.d.ts +1 -1
- package/lib/publishing/github/node_modules/@types/node/inspector.d.ts +1 -1
- package/lib/publishing/github/node_modules/@types/node/net.d.ts +1 -0
- package/lib/publishing/github/node_modules/@types/node/os.d.ts +1 -0
- package/lib/publishing/github/node_modules/@types/node/package.json +10 -3
- package/lib/publishing/github/node_modules/@types/node/path.d.ts +32 -21
- package/lib/publishing/github/node_modules/@types/node/stream.d.ts +99 -0
- package/lib/publishing/github/node_modules/@types/node/tls.d.ts +13 -13
- package/lib/publishing/github/node_modules/@types/node/ts4.8/assert.d.ts +128 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/async_hooks.d.ts +229 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/buffer.d.ts +89 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/child_process.d.ts +553 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/cluster.d.ts +265 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/console.d.ts +142 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/crypto.d.ts +1283 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/dgram.d.ts +144 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/dns.d.ts +387 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/domain.d.ts +27 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/events.d.ts +82 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/fs/promises.d.ts +572 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/fs.d.ts +2281 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/globals.d.ts +746 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/http.d.ts +580 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/http2.d.ts +961 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/https.d.ts +272 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/index.d.ts +53 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/inspector.d.ts +3051 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/module.d.ts +56 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/net.d.ts +309 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/os.d.ts +243 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/path.d.ts +168 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/perf_hooks.d.ts +274 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/process.d.ts +413 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/punycode.d.ts +78 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/querystring.d.ts +31 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/readline.d.ts +174 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/repl.d.ts +398 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/stream.d.ts +458 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/string_decoder.d.ts +10 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/timers.d.ts +19 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/tls.d.ts +784 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/trace_events.d.ts +64 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/tty.d.ts +69 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/url.d.ts +177 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/util.d.ts +216 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/v8.d.ts +190 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/vm.d.ts +155 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/wasi.d.ts +89 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/worker_threads.d.ts +241 -0
- package/lib/publishing/github/node_modules/@types/node/ts4.8/zlib.d.ts +364 -0
- package/lib/publishing/github/node_modules/@types/node/url.d.ts +28 -0
- package/lib/publishing/github/node_modules/before-after-hook/README.md +1 -3
- package/lib/publishing/github/node_modules/before-after-hook/index.d.ts +48 -48
- package/lib/publishing/github/node_modules/before-after-hook/index.js +43 -39
- package/lib/publishing/github/node_modules/before-after-hook/package.json +15 -10
- package/lib/publishing/github/node_modules/lru-cache/LICENSE +1 -1
- package/lib/publishing/github/node_modules/lru-cache/README.md +1127 -104
- package/lib/publishing/github/node_modules/lru-cache/dist/cjs/index.d.ts +834 -0
- package/lib/publishing/github/node_modules/lru-cache/dist/cjs/index.d.ts.map +1 -0
- package/lib/publishing/github/node_modules/lru-cache/dist/cjs/index.js +1395 -0
- package/lib/publishing/github/node_modules/lru-cache/dist/cjs/index.js.map +1 -0
- package/lib/publishing/github/node_modules/lru-cache/dist/cjs/index.min.js +2 -0
- package/lib/publishing/github/node_modules/lru-cache/dist/cjs/index.min.js.map +7 -0
- package/lib/publishing/github/node_modules/lru-cache/dist/cjs/package.json +3 -0
- package/lib/publishing/github/node_modules/lru-cache/dist/mjs/index.d.ts +834 -0
- package/lib/publishing/github/node_modules/lru-cache/dist/mjs/index.d.ts.map +1 -0
- package/lib/publishing/github/node_modules/lru-cache/dist/mjs/index.js +1391 -0
- package/lib/publishing/github/node_modules/lru-cache/dist/mjs/index.js.map +1 -0
- package/lib/publishing/github/node_modules/lru-cache/dist/mjs/index.min.js +2 -0
- package/lib/publishing/github/node_modules/lru-cache/dist/mjs/index.min.js.map +7 -0
- package/lib/publishing/github/node_modules/lru-cache/dist/mjs/package.json +3 -0
- package/lib/publishing/github/node_modules/lru-cache/package.json +86 -12
- package/lib/publishing/github/node_modules/node-fetch/README.md +43 -0
- package/lib/publishing/github/node_modules/node-fetch/browser.js +7 -7
- package/lib/publishing/github/node_modules/node-fetch/lib/index.es.js +92 -2
- package/lib/publishing/github/node_modules/node-fetch/lib/index.js +92 -2
- package/lib/publishing/github/node_modules/node-fetch/lib/index.mjs +92 -2
- package/lib/publishing/github/node_modules/node-fetch/package.json +16 -3
- package/lib/publishing/github/node_modules/octokit/README.md +4 -4
- package/lib/publishing/github/node_modules/octokit/dist-node/index.js +60 -33
- package/lib/publishing/github/node_modules/octokit/dist-node/index.js.map +7 -1
- package/lib/publishing/github/node_modules/octokit/dist-src/app.js +8 -3
- package/lib/publishing/github/node_modules/octokit/dist-src/index.js +8 -2
- package/lib/publishing/github/node_modules/octokit/dist-src/octokit.js +28 -20
- package/lib/publishing/github/node_modules/octokit/dist-src/version.js +4 -1
- package/lib/publishing/github/node_modules/octokit/dist-types/app.d.ts +2 -2
- package/lib/publishing/github/node_modules/octokit/dist-types/octokit.d.ts +1 -1
- package/lib/publishing/github/node_modules/octokit/dist-types/version.d.ts +1 -1
- package/lib/publishing/github/node_modules/octokit/dist-web/index.js +46 -34
- package/lib/publishing/github/node_modules/octokit/dist-web/index.js.map +7 -1
- package/lib/publishing/github/node_modules/octokit/package.json +26 -28
- package/lib/publishing/github/node_modules/semver/README.md +67 -0
- package/lib/publishing/github/node_modules/semver/bin/semver.js +16 -2
- package/lib/publishing/github/node_modules/semver/classes/comparator.js +37 -33
- package/lib/publishing/github/node_modules/semver/classes/range.js +6 -2
- package/lib/publishing/github/node_modules/semver/classes/semver.js +27 -14
- package/lib/publishing/github/node_modules/semver/functions/diff.js +48 -17
- package/lib/publishing/github/node_modules/semver/functions/inc.js +3 -2
- package/lib/publishing/github/node_modules/semver/functions/parse.js +5 -22
- package/lib/publishing/github/node_modules/semver/index.js +1 -0
- package/lib/publishing/github/node_modules/semver/internal/constants.js +15 -2
- package/lib/publishing/github/node_modules/semver/internal/parse-options.js +14 -10
- package/lib/publishing/github/node_modules/semver/node_modules/lru-cache/LICENSE +15 -0
- package/lib/publishing/github/node_modules/semver/node_modules/lru-cache/README.md +166 -0
- package/lib/publishing/github/node_modules/semver/node_modules/lru-cache/package.json +34 -0
- package/lib/publishing/github/node_modules/semver/package.json +7 -6
- package/lib/publishing/github/node_modules/semver/ranges/intersects.js +1 -1
- package/lib/publishing/github/node_modules/semver/ranges/subset.js +6 -3
- package/lib/publishing/github/node_modules/typescript/lib/tsc.js +8 -3
- package/lib/publishing/github/node_modules/typescript/lib/tsserver.js +13 -3
- package/lib/publishing/github/node_modules/typescript/lib/tsserverlibrary.js +13 -3
- package/lib/publishing/github/node_modules/typescript/lib/typescript.js +13 -3
- package/lib/publishing/github/node_modules/typescript/lib/typescriptServices.js +13 -3
- package/lib/publishing/github/node_modules/typescript/lib/typingsInstaller.js +13 -3
- package/lib/publishing/github/node_modules/typescript/package.json +1 -1
- package/lib/publishing/github/package-lock.json +675 -0
- package/lib/publishing/github/package.json +1 -1
- package/lib/publishing/github/publish.sh +3 -1
- package/package.json +1 -1
- package/lib/publishing/github/node_modules/@octokit/app/dist-src/types.js +0 -1
- package/lib/publishing/github/node_modules/@octokit/auth-app/dist-src/types.js +0 -1
- package/lib/publishing/github/node_modules/@octokit/auth-token/dist-src/types.js +0 -1
- package/lib/publishing/github/node_modules/@octokit/auth-unauthenticated/dist-src/types.js +0 -1
- package/lib/publishing/github/node_modules/@octokit/core/dist-src/types.js +0 -1
- package/lib/publishing/github/node_modules/@octokit/graphql/dist-src/types.js +0 -1
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/middleware/types.js +0 -1
- package/lib/publishing/github/node_modules/@octokit/oauth-app/dist-src/types.js +0 -1
- package/lib/publishing/github/node_modules/@octokit/plugin-paginate-rest/dist-src/types.js +0 -1
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/middleware/node/types.js +0 -1
- package/lib/publishing/github/node_modules/@octokit/webhooks/dist-src/types.js +0 -1
- package/lib/publishing/github/node_modules/@types/lru-cache/LICENSE +0 -21
- package/lib/publishing/github/node_modules/@types/lru-cache/README.md +0 -16
- package/lib/publishing/github/node_modules/@types/lru-cache/index.d.ts +0 -193
- package/lib/publishing/github/node_modules/@types/lru-cache/package.json +0 -30
- package/lib/publishing/github/yarn.lock +0 -473
- /package/lib/publishing/github/node_modules/{lru-cache → semver/node_modules/lru-cache}/index.js +0 -0
package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/buffer.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* recommended to explicitly reference it via an import or require statement.
|
|
11
11
|
*
|
|
12
12
|
* ```js
|
|
13
|
-
* import { Buffer } from 'buffer';
|
|
13
|
+
* import { Buffer } from 'node:buffer';
|
|
14
14
|
*
|
|
15
15
|
* // Creates a zero-filled Buffer of length 10.
|
|
16
16
|
* const buf1 = Buffer.alloc(10);
|
|
@@ -41,10 +41,29 @@
|
|
|
41
41
|
* // Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74].
|
|
42
42
|
* const buf7 = Buffer.from('tést', 'latin1');
|
|
43
43
|
* ```
|
|
44
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
44
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/buffer.js)
|
|
45
45
|
*/
|
|
46
46
|
declare module 'buffer' {
|
|
47
47
|
import { BinaryLike } from 'node:crypto';
|
|
48
|
+
import { ReadableStream as WebReadableStream } from 'node:stream/web';
|
|
49
|
+
/**
|
|
50
|
+
* This function returns `true` if `input` contains only valid UTF-8-encoded data,
|
|
51
|
+
* including the case in which `input` is empty.
|
|
52
|
+
*
|
|
53
|
+
* Throws if the `input` is a detached array buffer.
|
|
54
|
+
* @since v19.4.0, v18.14.0
|
|
55
|
+
* @param input The input to validate.
|
|
56
|
+
*/
|
|
57
|
+
export function isUtf8(input: Buffer | ArrayBuffer | NodeJS.TypedArray): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* This function returns `true` if `input` contains only valid ASCII-encoded data,
|
|
60
|
+
* including the case in which `input` is empty.
|
|
61
|
+
*
|
|
62
|
+
* Throws if the `input` is a detached array buffer.
|
|
63
|
+
* @since v19.6.0, v18.15.0
|
|
64
|
+
* @param input The input to validate.
|
|
65
|
+
*/
|
|
66
|
+
export function isAscii(input: Buffer | ArrayBuffer | NodeJS.TypedArray): boolean;
|
|
48
67
|
export const INSPECT_MAX_BYTES: number;
|
|
49
68
|
export const kMaxLength: number;
|
|
50
69
|
export const kStringMaxLength: number;
|
|
@@ -66,7 +85,7 @@ declare module 'buffer' {
|
|
|
66
85
|
* sequence cannot be adequately represented in the target encoding. For instance:
|
|
67
86
|
*
|
|
68
87
|
* ```js
|
|
69
|
-
* import { Buffer, transcode } from 'buffer';
|
|
88
|
+
* import { Buffer, transcode } from 'node:buffer';
|
|
70
89
|
*
|
|
71
90
|
* const newBuf = transcode(Buffer.from('€'), 'utf8', 'ascii');
|
|
72
91
|
* console.log(newBuf.toString('ascii'));
|
|
@@ -114,7 +133,6 @@ declare module 'buffer' {
|
|
|
114
133
|
* A [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) encapsulates immutable, raw data that can be safely shared across
|
|
115
134
|
* multiple worker threads.
|
|
116
135
|
* @since v15.7.0, v14.18.0
|
|
117
|
-
* @experimental
|
|
118
136
|
*/
|
|
119
137
|
export class Blob {
|
|
120
138
|
/**
|
|
@@ -161,13 +179,59 @@ declare module 'buffer' {
|
|
|
161
179
|
* Returns a new `ReadableStream` that allows the content of the `Blob` to be read.
|
|
162
180
|
* @since v16.7.0
|
|
163
181
|
*/
|
|
164
|
-
stream():
|
|
182
|
+
stream(): WebReadableStream;
|
|
183
|
+
}
|
|
184
|
+
export interface FileOptions {
|
|
185
|
+
/**
|
|
186
|
+
* One of either `'transparent'` or `'native'`. When set to `'native'`, line endings in string source parts will be
|
|
187
|
+
* converted to the platform native line-ending as specified by `require('node:os').EOL`.
|
|
188
|
+
*/
|
|
189
|
+
endings?: 'native' | 'transparent';
|
|
190
|
+
/** The File content-type. */
|
|
191
|
+
type?: string;
|
|
192
|
+
/** The last modified date of the file. `Default`: Date.now(). */
|
|
193
|
+
lastModified?: number;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* A [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) provides information about files.
|
|
197
|
+
* @since v19.2.0, v18.13.0
|
|
198
|
+
*/
|
|
199
|
+
export class File extends Blob {
|
|
200
|
+
constructor(sources: Array<BinaryLike | Blob>, fileName: string, options?: FileOptions);
|
|
201
|
+
/**
|
|
202
|
+
* The name of the `File`.
|
|
203
|
+
* @since v19.2.0, v18.13.0
|
|
204
|
+
*/
|
|
205
|
+
readonly name: string;
|
|
206
|
+
/**
|
|
207
|
+
* The last modified date of the `File`.
|
|
208
|
+
* @since v19.2.0, v18.13.0
|
|
209
|
+
*/
|
|
210
|
+
readonly lastModified: number;
|
|
165
211
|
}
|
|
166
212
|
export import atob = globalThis.atob;
|
|
167
213
|
export import btoa = globalThis.btoa;
|
|
214
|
+
import { Blob as NodeBlob } from 'buffer';
|
|
215
|
+
// This conditional type will be the existing global Blob in a browser, or
|
|
216
|
+
// the copy below in a Node environment.
|
|
217
|
+
type __Blob = typeof globalThis extends { onmessage: any; Blob: infer T } ? T : NodeBlob;
|
|
168
218
|
global {
|
|
219
|
+
namespace NodeJS {
|
|
220
|
+
export { BufferEncoding };
|
|
221
|
+
}
|
|
169
222
|
// Buffer class
|
|
170
|
-
type BufferEncoding =
|
|
223
|
+
type BufferEncoding =
|
|
224
|
+
| 'ascii'
|
|
225
|
+
| 'utf8'
|
|
226
|
+
| 'utf-8'
|
|
227
|
+
| 'utf16le'
|
|
228
|
+
| 'ucs2'
|
|
229
|
+
| 'ucs-2'
|
|
230
|
+
| 'base64'
|
|
231
|
+
| 'base64url'
|
|
232
|
+
| 'latin1'
|
|
233
|
+
| 'binary'
|
|
234
|
+
| 'hex';
|
|
171
235
|
type WithImplicitCoercion<T> =
|
|
172
236
|
| T
|
|
173
237
|
| {
|
|
@@ -229,7 +293,7 @@ declare module 'buffer' {
|
|
|
229
293
|
* Array entries outside that range will be truncated to fit into it.
|
|
230
294
|
*
|
|
231
295
|
* ```js
|
|
232
|
-
* import { Buffer } from 'buffer';
|
|
296
|
+
* import { Buffer } from 'node:buffer';
|
|
233
297
|
*
|
|
234
298
|
* // Creates a new Buffer containing the UTF-8 bytes of the string 'buffer'.
|
|
235
299
|
* const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]);
|
|
@@ -241,7 +305,11 @@ declare module 'buffer' {
|
|
|
241
305
|
* `Buffer.from(array)` and `Buffer.from(string)` may also use the internal`Buffer` pool like `Buffer.allocUnsafe()` does.
|
|
242
306
|
* @since v5.10.0
|
|
243
307
|
*/
|
|
244
|
-
from(
|
|
308
|
+
from(
|
|
309
|
+
arrayBuffer: WithImplicitCoercion<ArrayBuffer | SharedArrayBuffer>,
|
|
310
|
+
byteOffset?: number,
|
|
311
|
+
length?: number,
|
|
312
|
+
): Buffer;
|
|
245
313
|
/**
|
|
246
314
|
* Creates a new Buffer using the passed {data}
|
|
247
315
|
* @param data data to create a new Buffer
|
|
@@ -259,7 +327,7 @@ declare module 'buffer' {
|
|
|
259
327
|
| {
|
|
260
328
|
[Symbol.toPrimitive](hint: 'string'): string;
|
|
261
329
|
},
|
|
262
|
-
encoding?: BufferEncoding
|
|
330
|
+
encoding?: BufferEncoding,
|
|
263
331
|
): Buffer;
|
|
264
332
|
/**
|
|
265
333
|
* Creates a new Buffer using the passed {data}
|
|
@@ -270,7 +338,7 @@ declare module 'buffer' {
|
|
|
270
338
|
* Returns `true` if `obj` is a `Buffer`, `false` otherwise.
|
|
271
339
|
*
|
|
272
340
|
* ```js
|
|
273
|
-
* import { Buffer } from 'buffer';
|
|
341
|
+
* import { Buffer } from 'node:buffer';
|
|
274
342
|
*
|
|
275
343
|
* Buffer.isBuffer(Buffer.alloc(10)); // true
|
|
276
344
|
* Buffer.isBuffer(Buffer.from('foo')); // true
|
|
@@ -286,7 +354,7 @@ declare module 'buffer' {
|
|
|
286
354
|
* or `false` otherwise.
|
|
287
355
|
*
|
|
288
356
|
* ```js
|
|
289
|
-
* import { Buffer } from 'buffer';
|
|
357
|
+
* import { Buffer } from 'node:buffer';
|
|
290
358
|
*
|
|
291
359
|
* console.log(Buffer.isEncoding('utf8'));
|
|
292
360
|
* // Prints: true
|
|
@@ -315,7 +383,7 @@ declare module 'buffer' {
|
|
|
315
383
|
* string.
|
|
316
384
|
*
|
|
317
385
|
* ```js
|
|
318
|
-
* import { Buffer } from 'buffer';
|
|
386
|
+
* import { Buffer } from 'node:buffer';
|
|
319
387
|
*
|
|
320
388
|
* const str = '\u00bd + \u00bc = \u00be';
|
|
321
389
|
*
|
|
@@ -333,7 +401,10 @@ declare module 'buffer' {
|
|
|
333
401
|
* @param [encoding='utf8'] If `string` is a string, this is its encoding.
|
|
334
402
|
* @return The number of bytes contained within `string`.
|
|
335
403
|
*/
|
|
336
|
-
byteLength(
|
|
404
|
+
byteLength(
|
|
405
|
+
string: string | NodeJS.ArrayBufferView | ArrayBuffer | SharedArrayBuffer,
|
|
406
|
+
encoding?: BufferEncoding,
|
|
407
|
+
): number;
|
|
337
408
|
/**
|
|
338
409
|
* Returns a new `Buffer` which is the result of concatenating all the `Buffer`instances in the `list` together.
|
|
339
410
|
*
|
|
@@ -347,7 +418,7 @@ declare module 'buffer' {
|
|
|
347
418
|
* truncated to `totalLength`.
|
|
348
419
|
*
|
|
349
420
|
* ```js
|
|
350
|
-
* import { Buffer } from 'buffer';
|
|
421
|
+
* import { Buffer } from 'node:buffer';
|
|
351
422
|
*
|
|
352
423
|
* // Create a single `Buffer` from a list of three `Buffer` instances.
|
|
353
424
|
*
|
|
@@ -373,11 +444,28 @@ declare module 'buffer' {
|
|
|
373
444
|
* @param totalLength Total length of the `Buffer` instances in `list` when concatenated.
|
|
374
445
|
*/
|
|
375
446
|
concat(list: ReadonlyArray<Uint8Array>, totalLength?: number): Buffer;
|
|
447
|
+
/**
|
|
448
|
+
* Copies the underlying memory of `view` into a new `Buffer`.
|
|
449
|
+
*
|
|
450
|
+
* ```js
|
|
451
|
+
* const u16 = new Uint16Array([0, 0xffff]);
|
|
452
|
+
* const buf = Buffer.copyBytesFrom(u16, 1, 1);
|
|
453
|
+
* u16[1] = 0;
|
|
454
|
+
* console.log(buf.length); // 2
|
|
455
|
+
* console.log(buf[0]); // 255
|
|
456
|
+
* console.log(buf[1]); // 255
|
|
457
|
+
* ```
|
|
458
|
+
* @since v19.8.0
|
|
459
|
+
* @param view The {TypedArray} to copy.
|
|
460
|
+
* @param [offset=': 0'] The starting offset within `view`.
|
|
461
|
+
* @param [length=view.length - offset] The number of elements from `view` to copy.
|
|
462
|
+
*/
|
|
463
|
+
copyBytesFrom(view: NodeJS.TypedArray, offset?: number, length?: number): Buffer;
|
|
376
464
|
/**
|
|
377
465
|
* Compares `buf1` to `buf2`, typically for the purpose of sorting arrays of`Buffer` instances. This is equivalent to calling `buf1.compare(buf2)`.
|
|
378
466
|
*
|
|
379
467
|
* ```js
|
|
380
|
-
* import { Buffer } from 'buffer';
|
|
468
|
+
* import { Buffer } from 'node:buffer';
|
|
381
469
|
*
|
|
382
470
|
* const buf1 = Buffer.from('1234');
|
|
383
471
|
* const buf2 = Buffer.from('0123');
|
|
@@ -395,7 +483,7 @@ declare module 'buffer' {
|
|
|
395
483
|
* Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled.
|
|
396
484
|
*
|
|
397
485
|
* ```js
|
|
398
|
-
* import { Buffer } from 'buffer';
|
|
486
|
+
* import { Buffer } from 'node:buffer';
|
|
399
487
|
*
|
|
400
488
|
* const buf = Buffer.alloc(5);
|
|
401
489
|
*
|
|
@@ -403,12 +491,12 @@ declare module 'buffer' {
|
|
|
403
491
|
* // Prints: <Buffer 00 00 00 00 00>
|
|
404
492
|
* ```
|
|
405
493
|
*
|
|
406
|
-
* If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `
|
|
494
|
+
* If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown.
|
|
407
495
|
*
|
|
408
496
|
* If `fill` is specified, the allocated `Buffer` will be initialized by calling `buf.fill(fill)`.
|
|
409
497
|
*
|
|
410
498
|
* ```js
|
|
411
|
-
* import { Buffer } from 'buffer';
|
|
499
|
+
* import { Buffer } from 'node:buffer';
|
|
412
500
|
*
|
|
413
501
|
* const buf = Buffer.alloc(5, 'a');
|
|
414
502
|
*
|
|
@@ -420,7 +508,7 @@ declare module 'buffer' {
|
|
|
420
508
|
* initialized by calling `buf.fill(fill, encoding)`.
|
|
421
509
|
*
|
|
422
510
|
* ```js
|
|
423
|
-
* import { Buffer } from 'buffer';
|
|
511
|
+
* import { Buffer } from 'node:buffer';
|
|
424
512
|
*
|
|
425
513
|
* const buf = Buffer.alloc(11, 'aGVsbG8gd29ybGQ=', 'base64');
|
|
426
514
|
*
|
|
@@ -440,13 +528,13 @@ declare module 'buffer' {
|
|
|
440
528
|
*/
|
|
441
529
|
alloc(size: number, fill?: string | Buffer | number, encoding?: BufferEncoding): Buffer;
|
|
442
530
|
/**
|
|
443
|
-
* Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `
|
|
531
|
+
* Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown.
|
|
444
532
|
*
|
|
445
533
|
* The underlying memory for `Buffer` instances created in this way is _not_
|
|
446
534
|
* _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
535
|
*
|
|
448
536
|
* ```js
|
|
449
|
-
* import { Buffer } from 'buffer';
|
|
537
|
+
* import { Buffer } from 'node:buffer';
|
|
450
538
|
*
|
|
451
539
|
* const buf = Buffer.allocUnsafe(10);
|
|
452
540
|
*
|
|
@@ -477,15 +565,15 @@ declare module 'buffer' {
|
|
|
477
565
|
*/
|
|
478
566
|
allocUnsafe(size: number): Buffer;
|
|
479
567
|
/**
|
|
480
|
-
* Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `
|
|
481
|
-
*
|
|
568
|
+
* Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. A zero-length `Buffer` is created if
|
|
569
|
+
* `size` is 0.
|
|
482
570
|
*
|
|
483
571
|
* The underlying memory for `Buffer` instances created in this way is _not_
|
|
484
|
-
* _initialized_. The contents of the newly created `Buffer` are unknown
|
|
572
|
+
* _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `buf.fill(0)` to initialize
|
|
485
573
|
* such `Buffer` instances with zeroes.
|
|
486
574
|
*
|
|
487
575
|
* When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances,
|
|
488
|
-
* allocations under 4
|
|
576
|
+
* allocations under 4 KiB are sliced from a single pre-allocated `Buffer`. This
|
|
489
577
|
* allows applications to avoid the garbage collection overhead of creating many
|
|
490
578
|
* individually allocated `Buffer` instances. This approach improves both
|
|
491
579
|
* performance and memory usage by eliminating the need to track and clean up as
|
|
@@ -497,7 +585,7 @@ declare module 'buffer' {
|
|
|
497
585
|
* then copying out the relevant bits.
|
|
498
586
|
*
|
|
499
587
|
* ```js
|
|
500
|
-
* import { Buffer } from 'buffer';
|
|
588
|
+
* import { Buffer } from 'node:buffer';
|
|
501
589
|
*
|
|
502
590
|
* // Need to keep around a few small chunks of memory.
|
|
503
591
|
* const store = [];
|
|
@@ -535,7 +623,7 @@ declare module 'buffer' {
|
|
|
535
623
|
* written. However, partially encoded characters will not be written.
|
|
536
624
|
*
|
|
537
625
|
* ```js
|
|
538
|
-
* import { Buffer } from 'buffer';
|
|
626
|
+
* import { Buffer } from 'node:buffer';
|
|
539
627
|
*
|
|
540
628
|
* const buf = Buffer.alloc(256);
|
|
541
629
|
*
|
|
@@ -571,7 +659,7 @@ declare module 'buffer' {
|
|
|
571
659
|
* as {@link constants.MAX_STRING_LENGTH}.
|
|
572
660
|
*
|
|
573
661
|
* ```js
|
|
574
|
-
* import { Buffer } from 'buffer';
|
|
662
|
+
* import { Buffer } from 'node:buffer';
|
|
575
663
|
*
|
|
576
664
|
* const buf1 = Buffer.allocUnsafe(26);
|
|
577
665
|
*
|
|
@@ -608,7 +696,7 @@ declare module 'buffer' {
|
|
|
608
696
|
* In particular, `Buffer.from(buf.toJSON())` works like `Buffer.from(buf)`.
|
|
609
697
|
*
|
|
610
698
|
* ```js
|
|
611
|
-
* import { Buffer } from 'buffer';
|
|
699
|
+
* import { Buffer } from 'node:buffer';
|
|
612
700
|
*
|
|
613
701
|
* const buf = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5]);
|
|
614
702
|
* const json = JSON.stringify(buf);
|
|
@@ -635,7 +723,7 @@ declare module 'buffer' {
|
|
|
635
723
|
* Returns `true` if both `buf` and `otherBuffer` have exactly the same bytes,`false` otherwise. Equivalent to `buf.compare(otherBuffer) === 0`.
|
|
636
724
|
*
|
|
637
725
|
* ```js
|
|
638
|
-
* import { Buffer } from 'buffer';
|
|
726
|
+
* import { Buffer } from 'node:buffer';
|
|
639
727
|
*
|
|
640
728
|
* const buf1 = Buffer.from('ABC');
|
|
641
729
|
* const buf2 = Buffer.from('414243', 'hex');
|
|
@@ -659,7 +747,7 @@ declare module 'buffer' {
|
|
|
659
747
|
* * `-1` is returned if `target` should come _after_`buf` when sorted.
|
|
660
748
|
*
|
|
661
749
|
* ```js
|
|
662
|
-
* import { Buffer } from 'buffer';
|
|
750
|
+
* import { Buffer } from 'node:buffer';
|
|
663
751
|
*
|
|
664
752
|
* const buf1 = Buffer.from('ABC');
|
|
665
753
|
* const buf2 = Buffer.from('BCD');
|
|
@@ -683,7 +771,7 @@ declare module 'buffer' {
|
|
|
683
771
|
* The optional `targetStart`, `targetEnd`, `sourceStart`, and `sourceEnd`arguments can be used to limit the comparison to specific ranges within `target`and `buf` respectively.
|
|
684
772
|
*
|
|
685
773
|
* ```js
|
|
686
|
-
* import { Buffer } from 'buffer';
|
|
774
|
+
* import { Buffer } from 'node:buffer';
|
|
687
775
|
*
|
|
688
776
|
* const buf1 = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8, 9]);
|
|
689
777
|
* const buf2 = Buffer.from([5, 6, 7, 8, 9, 1, 2, 3, 4]);
|
|
@@ -704,7 +792,13 @@ declare module 'buffer' {
|
|
|
704
792
|
* @param [sourceStart=0] The offset within `buf` at which to begin comparison.
|
|
705
793
|
* @param [sourceEnd=buf.length] The offset within `buf` at which to end comparison (not inclusive).
|
|
706
794
|
*/
|
|
707
|
-
compare(
|
|
795
|
+
compare(
|
|
796
|
+
target: Uint8Array,
|
|
797
|
+
targetStart?: number,
|
|
798
|
+
targetEnd?: number,
|
|
799
|
+
sourceStart?: number,
|
|
800
|
+
sourceEnd?: number,
|
|
801
|
+
): -1 | 0 | 1;
|
|
708
802
|
/**
|
|
709
803
|
* Copies data from a region of `buf` to a region in `target`, even if the `target`memory region overlaps with `buf`.
|
|
710
804
|
*
|
|
@@ -713,7 +807,7 @@ declare module 'buffer' {
|
|
|
713
807
|
* different function arguments.
|
|
714
808
|
*
|
|
715
809
|
* ```js
|
|
716
|
-
* import { Buffer } from 'buffer';
|
|
810
|
+
* import { Buffer } from 'node:buffer';
|
|
717
811
|
*
|
|
718
812
|
* // Create two `Buffer` instances.
|
|
719
813
|
* const buf1 = Buffer.allocUnsafe(26);
|
|
@@ -734,7 +828,7 @@ declare module 'buffer' {
|
|
|
734
828
|
* ```
|
|
735
829
|
*
|
|
736
830
|
* ```js
|
|
737
|
-
* import { Buffer } from 'buffer';
|
|
831
|
+
* import { Buffer } from 'node:buffer';
|
|
738
832
|
*
|
|
739
833
|
* // Create a `Buffer` and copy data from one region to an overlapping region
|
|
740
834
|
* // within the same `Buffer`.
|
|
@@ -763,13 +857,11 @@ declare module 'buffer' {
|
|
|
763
857
|
* Returns a new `Buffer` that references the same memory as the original, but
|
|
764
858
|
* offset and cropped by the `start` and `end` indices.
|
|
765
859
|
*
|
|
766
|
-
* This is the same behavior as `buf.subarray()`.
|
|
767
|
-
*
|
|
768
860
|
* This method is not compatible with the `Uint8Array.prototype.slice()`,
|
|
769
861
|
* which is a superclass of `Buffer`. To copy the slice, use`Uint8Array.prototype.slice()`.
|
|
770
862
|
*
|
|
771
863
|
* ```js
|
|
772
|
-
* import { Buffer } from 'buffer';
|
|
864
|
+
* import { Buffer } from 'node:buffer';
|
|
773
865
|
*
|
|
774
866
|
* const buf = Buffer.from('buffer');
|
|
775
867
|
*
|
|
@@ -780,8 +872,17 @@ declare module 'buffer' {
|
|
|
780
872
|
*
|
|
781
873
|
* console.log(buf.toString());
|
|
782
874
|
* // Prints: buffer
|
|
875
|
+
*
|
|
876
|
+
* // With buf.slice(), the original buffer is modified.
|
|
877
|
+
* const notReallyCopiedBuf = buf.slice();
|
|
878
|
+
* notReallyCopiedBuf[0]++;
|
|
879
|
+
* console.log(notReallyCopiedBuf.toString());
|
|
880
|
+
* // Prints: cuffer
|
|
881
|
+
* console.log(buf.toString());
|
|
882
|
+
* // Also prints: cuffer (!)
|
|
783
883
|
* ```
|
|
784
884
|
* @since v0.3.0
|
|
885
|
+
* @deprecated Use `subarray` instead.
|
|
785
886
|
* @param [start=0] Where the new `Buffer` will start.
|
|
786
887
|
* @param [end=buf.length] Where the new `Buffer` will end (not inclusive).
|
|
787
888
|
*/
|
|
@@ -798,7 +899,7 @@ declare module 'buffer' {
|
|
|
798
899
|
* Modifying the new `Buffer` slice will modify the memory in the original `Buffer`because the allocated memory of the two objects overlap.
|
|
799
900
|
*
|
|
800
901
|
* ```js
|
|
801
|
-
* import { Buffer } from 'buffer';
|
|
902
|
+
* import { Buffer } from 'node:buffer';
|
|
802
903
|
*
|
|
803
904
|
* // Create a `Buffer` with the ASCII alphabet, take a slice, and modify one byte
|
|
804
905
|
* // from the original `Buffer`.
|
|
@@ -825,7 +926,7 @@ declare module 'buffer' {
|
|
|
825
926
|
* end of `buf` rather than the beginning.
|
|
826
927
|
*
|
|
827
928
|
* ```js
|
|
828
|
-
* import { Buffer } from 'buffer';
|
|
929
|
+
* import { Buffer } from 'node:buffer';
|
|
829
930
|
*
|
|
830
931
|
* const buf = Buffer.from('buffer');
|
|
831
932
|
*
|
|
@@ -852,7 +953,7 @@ declare module 'buffer' {
|
|
|
852
953
|
* `value` is interpreted and written as a two's complement signed integer.
|
|
853
954
|
*
|
|
854
955
|
* ```js
|
|
855
|
-
* import { Buffer } from 'buffer';
|
|
956
|
+
* import { Buffer } from 'node:buffer';
|
|
856
957
|
*
|
|
857
958
|
* const buf = Buffer.allocUnsafe(8);
|
|
858
959
|
*
|
|
@@ -873,7 +974,7 @@ declare module 'buffer' {
|
|
|
873
974
|
* `value` is interpreted and written as a two's complement signed integer.
|
|
874
975
|
*
|
|
875
976
|
* ```js
|
|
876
|
-
* import { Buffer } from 'buffer';
|
|
977
|
+
* import { Buffer } from 'node:buffer';
|
|
877
978
|
*
|
|
878
979
|
* const buf = Buffer.allocUnsafe(8);
|
|
879
980
|
*
|
|
@@ -894,7 +995,7 @@ declare module 'buffer' {
|
|
|
894
995
|
* This function is also available under the `writeBigUint64BE` alias.
|
|
895
996
|
*
|
|
896
997
|
* ```js
|
|
897
|
-
* import { Buffer } from 'buffer';
|
|
998
|
+
* import { Buffer } from 'node:buffer';
|
|
898
999
|
*
|
|
899
1000
|
* const buf = Buffer.allocUnsafe(8);
|
|
900
1001
|
*
|
|
@@ -918,7 +1019,7 @@ declare module 'buffer' {
|
|
|
918
1019
|
* Writes `value` to `buf` at the specified `offset` as little-endian
|
|
919
1020
|
*
|
|
920
1021
|
* ```js
|
|
921
|
-
* import { Buffer } from 'buffer';
|
|
1022
|
+
* import { Buffer } from 'node:buffer';
|
|
922
1023
|
*
|
|
923
1024
|
* const buf = Buffer.allocUnsafe(8);
|
|
924
1025
|
*
|
|
@@ -947,7 +1048,7 @@ declare module 'buffer' {
|
|
|
947
1048
|
* This function is also available under the `writeUintLE` alias.
|
|
948
1049
|
*
|
|
949
1050
|
* ```js
|
|
950
|
-
* import { Buffer } from 'buffer';
|
|
1051
|
+
* import { Buffer } from 'node:buffer';
|
|
951
1052
|
*
|
|
952
1053
|
* const buf = Buffer.allocUnsafe(6);
|
|
953
1054
|
*
|
|
@@ -975,7 +1076,7 @@ declare module 'buffer' {
|
|
|
975
1076
|
* This function is also available under the `writeUintBE` alias.
|
|
976
1077
|
*
|
|
977
1078
|
* ```js
|
|
978
|
-
* import { Buffer } from 'buffer';
|
|
1079
|
+
* import { Buffer } from 'node:buffer';
|
|
979
1080
|
*
|
|
980
1081
|
* const buf = Buffer.allocUnsafe(6);
|
|
981
1082
|
*
|
|
@@ -1001,7 +1102,7 @@ declare module 'buffer' {
|
|
|
1001
1102
|
* when `value` is anything other than a signed integer.
|
|
1002
1103
|
*
|
|
1003
1104
|
* ```js
|
|
1004
|
-
* import { Buffer } from 'buffer';
|
|
1105
|
+
* import { Buffer } from 'node:buffer';
|
|
1005
1106
|
*
|
|
1006
1107
|
* const buf = Buffer.allocUnsafe(6);
|
|
1007
1108
|
*
|
|
@@ -1022,7 +1123,7 @@ declare module 'buffer' {
|
|
|
1022
1123
|
* signed integer.
|
|
1023
1124
|
*
|
|
1024
1125
|
* ```js
|
|
1025
|
-
* import { Buffer } from 'buffer';
|
|
1126
|
+
* import { Buffer } from 'node:buffer';
|
|
1026
1127
|
*
|
|
1027
1128
|
* const buf = Buffer.allocUnsafe(6);
|
|
1028
1129
|
*
|
|
@@ -1044,7 +1145,7 @@ declare module 'buffer' {
|
|
|
1044
1145
|
* This function is also available under the `readBigUint64BE` alias.
|
|
1045
1146
|
*
|
|
1046
1147
|
* ```js
|
|
1047
|
-
* import { Buffer } from 'buffer';
|
|
1148
|
+
* import { Buffer } from 'node:buffer';
|
|
1048
1149
|
*
|
|
1049
1150
|
* const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]);
|
|
1050
1151
|
*
|
|
@@ -1066,7 +1167,7 @@ declare module 'buffer' {
|
|
|
1066
1167
|
* This function is also available under the `readBigUint64LE` alias.
|
|
1067
1168
|
*
|
|
1068
1169
|
* ```js
|
|
1069
|
-
* import { Buffer } from 'buffer';
|
|
1170
|
+
* import { Buffer } from 'node:buffer';
|
|
1070
1171
|
*
|
|
1071
1172
|
* const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]);
|
|
1072
1173
|
*
|
|
@@ -1107,7 +1208,7 @@ declare module 'buffer' {
|
|
|
1107
1208
|
* This function is also available under the `readUintLE` alias.
|
|
1108
1209
|
*
|
|
1109
1210
|
* ```js
|
|
1110
|
-
* import { Buffer } from 'buffer';
|
|
1211
|
+
* import { Buffer } from 'node:buffer';
|
|
1111
1212
|
*
|
|
1112
1213
|
* const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
|
|
1113
1214
|
*
|
|
@@ -1131,7 +1232,7 @@ declare module 'buffer' {
|
|
|
1131
1232
|
* This function is also available under the `readUintBE` alias.
|
|
1132
1233
|
*
|
|
1133
1234
|
* ```js
|
|
1134
|
-
* import { Buffer } from 'buffer';
|
|
1235
|
+
* import { Buffer } from 'node:buffer';
|
|
1135
1236
|
*
|
|
1136
1237
|
* const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
|
|
1137
1238
|
*
|
|
@@ -1155,7 +1256,7 @@ declare module 'buffer' {
|
|
|
1155
1256
|
* supporting up to 48 bits of accuracy.
|
|
1156
1257
|
*
|
|
1157
1258
|
* ```js
|
|
1158
|
-
* import { Buffer } from 'buffer';
|
|
1259
|
+
* import { Buffer } from 'node:buffer';
|
|
1159
1260
|
*
|
|
1160
1261
|
* const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
|
|
1161
1262
|
*
|
|
@@ -1172,7 +1273,7 @@ declare module 'buffer' {
|
|
|
1172
1273
|
* supporting up to 48 bits of accuracy.
|
|
1173
1274
|
*
|
|
1174
1275
|
* ```js
|
|
1175
|
-
* import { Buffer } from 'buffer';
|
|
1276
|
+
* import { Buffer } from 'node:buffer';
|
|
1176
1277
|
*
|
|
1177
1278
|
* const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
|
|
1178
1279
|
*
|
|
@@ -1194,7 +1295,7 @@ declare module 'buffer' {
|
|
|
1194
1295
|
* This function is also available under the `readUint8` alias.
|
|
1195
1296
|
*
|
|
1196
1297
|
* ```js
|
|
1197
|
-
* import { Buffer } from 'buffer';
|
|
1298
|
+
* import { Buffer } from 'node:buffer';
|
|
1198
1299
|
*
|
|
1199
1300
|
* const buf = Buffer.from([1, -2]);
|
|
1200
1301
|
*
|
|
@@ -1220,7 +1321,7 @@ declare module 'buffer' {
|
|
|
1220
1321
|
* This function is also available under the `readUint16LE` alias.
|
|
1221
1322
|
*
|
|
1222
1323
|
* ```js
|
|
1223
|
-
* import { Buffer } from 'buffer';
|
|
1324
|
+
* import { Buffer } from 'node:buffer';
|
|
1224
1325
|
*
|
|
1225
1326
|
* const buf = Buffer.from([0x12, 0x34, 0x56]);
|
|
1226
1327
|
*
|
|
@@ -1246,7 +1347,7 @@ declare module 'buffer' {
|
|
|
1246
1347
|
* This function is also available under the `readUint16BE` alias.
|
|
1247
1348
|
*
|
|
1248
1349
|
* ```js
|
|
1249
|
-
* import { Buffer } from 'buffer';
|
|
1350
|
+
* import { Buffer } from 'node:buffer';
|
|
1250
1351
|
*
|
|
1251
1352
|
* const buf = Buffer.from([0x12, 0x34, 0x56]);
|
|
1252
1353
|
*
|
|
@@ -1270,7 +1371,7 @@ declare module 'buffer' {
|
|
|
1270
1371
|
* This function is also available under the `readUint32LE` alias.
|
|
1271
1372
|
*
|
|
1272
1373
|
* ```js
|
|
1273
|
-
* import { Buffer } from 'buffer';
|
|
1374
|
+
* import { Buffer } from 'node:buffer';
|
|
1274
1375
|
*
|
|
1275
1376
|
* const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]);
|
|
1276
1377
|
*
|
|
@@ -1294,7 +1395,7 @@ declare module 'buffer' {
|
|
|
1294
1395
|
* This function is also available under the `readUint32BE` alias.
|
|
1295
1396
|
*
|
|
1296
1397
|
* ```js
|
|
1297
|
-
* import { Buffer } from 'buffer';
|
|
1398
|
+
* import { Buffer } from 'node:buffer';
|
|
1298
1399
|
*
|
|
1299
1400
|
* const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]);
|
|
1300
1401
|
*
|
|
@@ -1316,7 +1417,7 @@ declare module 'buffer' {
|
|
|
1316
1417
|
* Integers read from a `Buffer` are interpreted as two's complement signed values.
|
|
1317
1418
|
*
|
|
1318
1419
|
* ```js
|
|
1319
|
-
* import { Buffer } from 'buffer';
|
|
1420
|
+
* import { Buffer } from 'node:buffer';
|
|
1320
1421
|
*
|
|
1321
1422
|
* const buf = Buffer.from([-1, 5]);
|
|
1322
1423
|
*
|
|
@@ -1337,7 +1438,7 @@ declare module 'buffer' {
|
|
|
1337
1438
|
* Integers read from a `Buffer` are interpreted as two's complement signed values.
|
|
1338
1439
|
*
|
|
1339
1440
|
* ```js
|
|
1340
|
-
* import { Buffer } from 'buffer';
|
|
1441
|
+
* import { Buffer } from 'node:buffer';
|
|
1341
1442
|
*
|
|
1342
1443
|
* const buf = Buffer.from([0, 5]);
|
|
1343
1444
|
*
|
|
@@ -1356,7 +1457,7 @@ declare module 'buffer' {
|
|
|
1356
1457
|
* Integers read from a `Buffer` are interpreted as two's complement signed values.
|
|
1357
1458
|
*
|
|
1358
1459
|
* ```js
|
|
1359
|
-
* import { Buffer } from 'buffer';
|
|
1460
|
+
* import { Buffer } from 'node:buffer';
|
|
1360
1461
|
*
|
|
1361
1462
|
* const buf = Buffer.from([0, 5]);
|
|
1362
1463
|
*
|
|
@@ -1373,7 +1474,7 @@ declare module 'buffer' {
|
|
|
1373
1474
|
* Integers read from a `Buffer` are interpreted as two's complement signed values.
|
|
1374
1475
|
*
|
|
1375
1476
|
* ```js
|
|
1376
|
-
* import { Buffer } from 'buffer';
|
|
1477
|
+
* import { Buffer } from 'node:buffer';
|
|
1377
1478
|
*
|
|
1378
1479
|
* const buf = Buffer.from([0, 0, 0, 5]);
|
|
1379
1480
|
*
|
|
@@ -1392,7 +1493,7 @@ declare module 'buffer' {
|
|
|
1392
1493
|
* Integers read from a `Buffer` are interpreted as two's complement signed values.
|
|
1393
1494
|
*
|
|
1394
1495
|
* ```js
|
|
1395
|
-
* import { Buffer } from 'buffer';
|
|
1496
|
+
* import { Buffer } from 'node:buffer';
|
|
1396
1497
|
*
|
|
1397
1498
|
* const buf = Buffer.from([0, 0, 0, 5]);
|
|
1398
1499
|
*
|
|
@@ -1407,7 +1508,7 @@ declare module 'buffer' {
|
|
|
1407
1508
|
* Reads a 32-bit, little-endian float from `buf` at the specified `offset`.
|
|
1408
1509
|
*
|
|
1409
1510
|
* ```js
|
|
1410
|
-
* import { Buffer } from 'buffer';
|
|
1511
|
+
* import { Buffer } from 'node:buffer';
|
|
1411
1512
|
*
|
|
1412
1513
|
* const buf = Buffer.from([1, 2, 3, 4]);
|
|
1413
1514
|
*
|
|
@@ -1424,7 +1525,7 @@ declare module 'buffer' {
|
|
|
1424
1525
|
* Reads a 32-bit, big-endian float from `buf` at the specified `offset`.
|
|
1425
1526
|
*
|
|
1426
1527
|
* ```js
|
|
1427
|
-
* import { Buffer } from 'buffer';
|
|
1528
|
+
* import { Buffer } from 'node:buffer';
|
|
1428
1529
|
*
|
|
1429
1530
|
* const buf = Buffer.from([1, 2, 3, 4]);
|
|
1430
1531
|
*
|
|
@@ -1439,7 +1540,7 @@ declare module 'buffer' {
|
|
|
1439
1540
|
* Reads a 64-bit, little-endian double from `buf` at the specified `offset`.
|
|
1440
1541
|
*
|
|
1441
1542
|
* ```js
|
|
1442
|
-
* import { Buffer } from 'buffer';
|
|
1543
|
+
* import { Buffer } from 'node:buffer';
|
|
1443
1544
|
*
|
|
1444
1545
|
* const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]);
|
|
1445
1546
|
*
|
|
@@ -1456,7 +1557,7 @@ declare module 'buffer' {
|
|
|
1456
1557
|
* Reads a 64-bit, big-endian double from `buf` at the specified `offset`.
|
|
1457
1558
|
*
|
|
1458
1559
|
* ```js
|
|
1459
|
-
* import { Buffer } from 'buffer';
|
|
1560
|
+
* import { Buffer } from 'node:buffer';
|
|
1460
1561
|
*
|
|
1461
1562
|
* const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]);
|
|
1462
1563
|
*
|
|
@@ -1473,7 +1574,7 @@ declare module 'buffer' {
|
|
|
1473
1574
|
* byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 2.
|
|
1474
1575
|
*
|
|
1475
1576
|
* ```js
|
|
1476
|
-
* import { Buffer } from 'buffer';
|
|
1577
|
+
* import { Buffer } from 'node:buffer';
|
|
1477
1578
|
*
|
|
1478
1579
|
* const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]);
|
|
1479
1580
|
*
|
|
@@ -1495,7 +1596,7 @@ declare module 'buffer' {
|
|
|
1495
1596
|
* between UTF-16 little-endian and UTF-16 big-endian:
|
|
1496
1597
|
*
|
|
1497
1598
|
* ```js
|
|
1498
|
-
* import { Buffer } from 'buffer';
|
|
1599
|
+
* import { Buffer } from 'node:buffer';
|
|
1499
1600
|
*
|
|
1500
1601
|
* const buf = Buffer.from('This is little-endian UTF-16', 'utf16le');
|
|
1501
1602
|
* buf.swap16(); // Convert to big-endian UTF-16 text.
|
|
@@ -1509,7 +1610,7 @@ declare module 'buffer' {
|
|
|
1509
1610
|
* byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 4.
|
|
1510
1611
|
*
|
|
1511
1612
|
* ```js
|
|
1512
|
-
* import { Buffer } from 'buffer';
|
|
1613
|
+
* import { Buffer } from 'node:buffer';
|
|
1513
1614
|
*
|
|
1514
1615
|
* const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]);
|
|
1515
1616
|
*
|
|
@@ -1535,7 +1636,7 @@ declare module 'buffer' {
|
|
|
1535
1636
|
* Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 8.
|
|
1536
1637
|
*
|
|
1537
1638
|
* ```js
|
|
1538
|
-
* import { Buffer } from 'buffer';
|
|
1639
|
+
* import { Buffer } from 'node:buffer';
|
|
1539
1640
|
*
|
|
1540
1641
|
* const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]);
|
|
1541
1642
|
*
|
|
@@ -1564,7 +1665,7 @@ declare module 'buffer' {
|
|
|
1564
1665
|
* This function is also available under the `writeUint8` alias.
|
|
1565
1666
|
*
|
|
1566
1667
|
* ```js
|
|
1567
|
-
* import { Buffer } from 'buffer';
|
|
1668
|
+
* import { Buffer } from 'node:buffer';
|
|
1568
1669
|
*
|
|
1569
1670
|
* const buf = Buffer.allocUnsafe(4);
|
|
1570
1671
|
*
|
|
@@ -1594,7 +1695,7 @@ declare module 'buffer' {
|
|
|
1594
1695
|
* This function is also available under the `writeUint16LE` alias.
|
|
1595
1696
|
*
|
|
1596
1697
|
* ```js
|
|
1597
|
-
* import { Buffer } from 'buffer';
|
|
1698
|
+
* import { Buffer } from 'node:buffer';
|
|
1598
1699
|
*
|
|
1599
1700
|
* const buf = Buffer.allocUnsafe(4);
|
|
1600
1701
|
*
|
|
@@ -1622,7 +1723,7 @@ declare module 'buffer' {
|
|
|
1622
1723
|
* This function is also available under the `writeUint16BE` alias.
|
|
1623
1724
|
*
|
|
1624
1725
|
* ```js
|
|
1625
|
-
* import { Buffer } from 'buffer';
|
|
1726
|
+
* import { Buffer } from 'node:buffer';
|
|
1626
1727
|
*
|
|
1627
1728
|
* const buf = Buffer.allocUnsafe(4);
|
|
1628
1729
|
*
|
|
@@ -1650,7 +1751,7 @@ declare module 'buffer' {
|
|
|
1650
1751
|
* This function is also available under the `writeUint32LE` alias.
|
|
1651
1752
|
*
|
|
1652
1753
|
* ```js
|
|
1653
|
-
* import { Buffer } from 'buffer';
|
|
1754
|
+
* import { Buffer } from 'node:buffer';
|
|
1654
1755
|
*
|
|
1655
1756
|
* const buf = Buffer.allocUnsafe(4);
|
|
1656
1757
|
*
|
|
@@ -1677,7 +1778,7 @@ declare module 'buffer' {
|
|
|
1677
1778
|
* This function is also available under the `writeUint32BE` alias.
|
|
1678
1779
|
*
|
|
1679
1780
|
* ```js
|
|
1680
|
-
* import { Buffer } from 'buffer';
|
|
1781
|
+
* import { Buffer } from 'node:buffer';
|
|
1681
1782
|
*
|
|
1682
1783
|
* const buf = Buffer.allocUnsafe(4);
|
|
1683
1784
|
*
|
|
@@ -1705,7 +1806,7 @@ declare module 'buffer' {
|
|
|
1705
1806
|
* `value` is interpreted and written as a two's complement signed integer.
|
|
1706
1807
|
*
|
|
1707
1808
|
* ```js
|
|
1708
|
-
* import { Buffer } from 'buffer';
|
|
1809
|
+
* import { Buffer } from 'node:buffer';
|
|
1709
1810
|
*
|
|
1710
1811
|
* const buf = Buffer.allocUnsafe(2);
|
|
1711
1812
|
*
|
|
@@ -1728,7 +1829,7 @@ declare module 'buffer' {
|
|
|
1728
1829
|
* The `value` is interpreted and written as a two's complement signed integer.
|
|
1729
1830
|
*
|
|
1730
1831
|
* ```js
|
|
1731
|
-
* import { Buffer } from 'buffer';
|
|
1832
|
+
* import { Buffer } from 'node:buffer';
|
|
1732
1833
|
*
|
|
1733
1834
|
* const buf = Buffer.allocUnsafe(2);
|
|
1734
1835
|
*
|
|
@@ -1750,7 +1851,7 @@ declare module 'buffer' {
|
|
|
1750
1851
|
* The `value` is interpreted and written as a two's complement signed integer.
|
|
1751
1852
|
*
|
|
1752
1853
|
* ```js
|
|
1753
|
-
* import { Buffer } from 'buffer';
|
|
1854
|
+
* import { Buffer } from 'node:buffer';
|
|
1754
1855
|
*
|
|
1755
1856
|
* const buf = Buffer.allocUnsafe(2);
|
|
1756
1857
|
*
|
|
@@ -1772,7 +1873,7 @@ declare module 'buffer' {
|
|
|
1772
1873
|
* The `value` is interpreted and written as a two's complement signed integer.
|
|
1773
1874
|
*
|
|
1774
1875
|
* ```js
|
|
1775
|
-
* import { Buffer } from 'buffer';
|
|
1876
|
+
* import { Buffer } from 'node:buffer';
|
|
1776
1877
|
*
|
|
1777
1878
|
* const buf = Buffer.allocUnsafe(4);
|
|
1778
1879
|
*
|
|
@@ -1794,7 +1895,7 @@ declare module 'buffer' {
|
|
|
1794
1895
|
* The `value` is interpreted and written as a two's complement signed integer.
|
|
1795
1896
|
*
|
|
1796
1897
|
* ```js
|
|
1797
|
-
* import { Buffer } from 'buffer';
|
|
1898
|
+
* import { Buffer } from 'node:buffer';
|
|
1798
1899
|
*
|
|
1799
1900
|
* const buf = Buffer.allocUnsafe(4);
|
|
1800
1901
|
*
|
|
@@ -1814,7 +1915,7 @@ declare module 'buffer' {
|
|
|
1814
1915
|
* undefined when `value` is anything other than a JavaScript number.
|
|
1815
1916
|
*
|
|
1816
1917
|
* ```js
|
|
1817
|
-
* import { Buffer } from 'buffer';
|
|
1918
|
+
* import { Buffer } from 'node:buffer';
|
|
1818
1919
|
*
|
|
1819
1920
|
* const buf = Buffer.allocUnsafe(4);
|
|
1820
1921
|
*
|
|
@@ -1834,7 +1935,7 @@ declare module 'buffer' {
|
|
|
1834
1935
|
* undefined when `value` is anything other than a JavaScript number.
|
|
1835
1936
|
*
|
|
1836
1937
|
* ```js
|
|
1837
|
-
* import { Buffer } from 'buffer';
|
|
1938
|
+
* import { Buffer } from 'node:buffer';
|
|
1838
1939
|
*
|
|
1839
1940
|
* const buf = Buffer.allocUnsafe(4);
|
|
1840
1941
|
*
|
|
@@ -1854,7 +1955,7 @@ declare module 'buffer' {
|
|
|
1854
1955
|
* other than a JavaScript number.
|
|
1855
1956
|
*
|
|
1856
1957
|
* ```js
|
|
1857
|
-
* import { Buffer } from 'buffer';
|
|
1958
|
+
* import { Buffer } from 'node:buffer';
|
|
1858
1959
|
*
|
|
1859
1960
|
* const buf = Buffer.allocUnsafe(8);
|
|
1860
1961
|
*
|
|
@@ -1874,7 +1975,7 @@ declare module 'buffer' {
|
|
|
1874
1975
|
* other than a JavaScript number.
|
|
1875
1976
|
*
|
|
1876
1977
|
* ```js
|
|
1877
|
-
* import { Buffer } from 'buffer';
|
|
1978
|
+
* import { Buffer } from 'node:buffer';
|
|
1878
1979
|
*
|
|
1879
1980
|
* const buf = Buffer.allocUnsafe(8);
|
|
1880
1981
|
*
|
|
@@ -1894,7 +1995,7 @@ declare module 'buffer' {
|
|
|
1894
1995
|
* the entire `buf` will be filled:
|
|
1895
1996
|
*
|
|
1896
1997
|
* ```js
|
|
1897
|
-
* import { Buffer } from 'buffer';
|
|
1998
|
+
* import { Buffer } from 'node:buffer';
|
|
1898
1999
|
*
|
|
1899
2000
|
* // Fill a `Buffer` with the ASCII character 'h'.
|
|
1900
2001
|
*
|
|
@@ -1902,6 +2003,12 @@ declare module 'buffer' {
|
|
|
1902
2003
|
*
|
|
1903
2004
|
* console.log(b.toString());
|
|
1904
2005
|
* // Prints: hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
|
|
2006
|
+
*
|
|
2007
|
+
* // Fill a buffer with empty string
|
|
2008
|
+
* const c = Buffer.allocUnsafe(5).fill('');
|
|
2009
|
+
*
|
|
2010
|
+
* console.log(c.fill(''));
|
|
2011
|
+
* // Prints: <Buffer 00 00 00 00 00>
|
|
1905
2012
|
* ```
|
|
1906
2013
|
*
|
|
1907
2014
|
* `value` is coerced to a `uint32` value if it is not a string, `Buffer`, or
|
|
@@ -1912,7 +2019,7 @@ declare module 'buffer' {
|
|
|
1912
2019
|
* then only the bytes of that character that fit into `buf` are written:
|
|
1913
2020
|
*
|
|
1914
2021
|
* ```js
|
|
1915
|
-
* import { Buffer } from 'buffer';
|
|
2022
|
+
* import { Buffer } from 'node:buffer';
|
|
1916
2023
|
*
|
|
1917
2024
|
* // Fill a `Buffer` with character that takes up two bytes in UTF-8.
|
|
1918
2025
|
*
|
|
@@ -1924,7 +2031,7 @@ declare module 'buffer' {
|
|
|
1924
2031
|
* fill data remains, an exception is thrown:
|
|
1925
2032
|
*
|
|
1926
2033
|
* ```js
|
|
1927
|
-
* import { Buffer } from 'buffer';
|
|
2034
|
+
* import { Buffer } from 'node:buffer';
|
|
1928
2035
|
*
|
|
1929
2036
|
* const buf = Buffer.allocUnsafe(5);
|
|
1930
2037
|
*
|
|
@@ -1936,7 +2043,7 @@ declare module 'buffer' {
|
|
|
1936
2043
|
* // Throws an exception.
|
|
1937
2044
|
* ```
|
|
1938
2045
|
* @since v0.5.0
|
|
1939
|
-
* @param value The value with which to fill `buf`.
|
|
2046
|
+
* @param value The value with which to fill `buf`. Empty value (string, Uint8Array, Buffer) is coerced to `0`.
|
|
1940
2047
|
* @param [offset=0] Number of bytes to skip before starting to fill `buf`.
|
|
1941
2048
|
* @param [end=buf.length] Where to stop filling `buf` (not inclusive).
|
|
1942
2049
|
* @param [encoding='utf8'] The encoding for `value` if `value` is a string.
|
|
@@ -1948,12 +2055,12 @@ declare module 'buffer' {
|
|
|
1948
2055
|
*
|
|
1949
2056
|
* * a string, `value` is interpreted according to the character encoding in`encoding`.
|
|
1950
2057
|
* * a `Buffer` or [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array), `value` will be used in its entirety.
|
|
1951
|
-
* To compare a partial `Buffer`, use `buf.
|
|
2058
|
+
* To compare a partial `Buffer`, use `buf.subarray`.
|
|
1952
2059
|
* * a number, `value` will be interpreted as an unsigned 8-bit integer
|
|
1953
2060
|
* value between `0` and `255`.
|
|
1954
2061
|
*
|
|
1955
2062
|
* ```js
|
|
1956
|
-
* import { Buffer } from 'buffer';
|
|
2063
|
+
* import { Buffer } from 'node:buffer';
|
|
1957
2064
|
*
|
|
1958
2065
|
* const buf = Buffer.from('this is a buffer');
|
|
1959
2066
|
*
|
|
@@ -1986,7 +2093,7 @@ declare module 'buffer' {
|
|
|
1986
2093
|
* behavior matches [`String.prototype.indexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf).
|
|
1987
2094
|
*
|
|
1988
2095
|
* ```js
|
|
1989
|
-
* import { Buffer } from 'buffer';
|
|
2096
|
+
* import { Buffer } from 'node:buffer';
|
|
1990
2097
|
*
|
|
1991
2098
|
* const b = Buffer.from('abcdef');
|
|
1992
2099
|
*
|
|
@@ -2017,7 +2124,7 @@ declare module 'buffer' {
|
|
|
2017
2124
|
* rather than the first occurrence.
|
|
2018
2125
|
*
|
|
2019
2126
|
* ```js
|
|
2020
|
-
* import { Buffer } from 'buffer';
|
|
2127
|
+
* import { Buffer } from 'node:buffer';
|
|
2021
2128
|
*
|
|
2022
2129
|
* const buf = Buffer.from('this buffer is a buffer');
|
|
2023
2130
|
*
|
|
@@ -2052,7 +2159,7 @@ declare module 'buffer' {
|
|
|
2052
2159
|
* This behavior matches [`String.prototype.lastIndexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf).
|
|
2053
2160
|
*
|
|
2054
2161
|
* ```js
|
|
2055
|
-
* import { Buffer } from 'buffer';
|
|
2162
|
+
* import { Buffer } from 'node:buffer';
|
|
2056
2163
|
*
|
|
2057
2164
|
* const b = Buffer.from('abcdef');
|
|
2058
2165
|
*
|
|
@@ -2085,7 +2192,7 @@ declare module 'buffer' {
|
|
|
2085
2192
|
* of `buf`.
|
|
2086
2193
|
*
|
|
2087
2194
|
* ```js
|
|
2088
|
-
* import { Buffer } from 'buffer';
|
|
2195
|
+
* import { Buffer } from 'node:buffer';
|
|
2089
2196
|
*
|
|
2090
2197
|
* // Log the entire contents of a `Buffer`.
|
|
2091
2198
|
*
|
|
@@ -2109,7 +2216,7 @@ declare module 'buffer' {
|
|
|
2109
2216
|
* Equivalent to `buf.indexOf() !== -1`.
|
|
2110
2217
|
*
|
|
2111
2218
|
* ```js
|
|
2112
|
-
* import { Buffer } from 'buffer';
|
|
2219
|
+
* import { Buffer } from 'node:buffer';
|
|
2113
2220
|
*
|
|
2114
2221
|
* const buf = Buffer.from('this is a buffer');
|
|
2115
2222
|
*
|
|
@@ -2139,7 +2246,7 @@ declare module 'buffer' {
|
|
|
2139
2246
|
* Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) of `buf` keys (indices).
|
|
2140
2247
|
*
|
|
2141
2248
|
* ```js
|
|
2142
|
-
* import { Buffer } from 'buffer';
|
|
2249
|
+
* import { Buffer } from 'node:buffer';
|
|
2143
2250
|
*
|
|
2144
2251
|
* const buf = Buffer.from('buffer');
|
|
2145
2252
|
*
|
|
@@ -2162,7 +2269,7 @@ declare module 'buffer' {
|
|
|
2162
2269
|
* called automatically when a `Buffer` is used in a `for..of` statement.
|
|
2163
2270
|
*
|
|
2164
2271
|
* ```js
|
|
2165
|
-
* import { Buffer } from 'buffer';
|
|
2272
|
+
* import { Buffer } from 'node:buffer';
|
|
2166
2273
|
*
|
|
2167
2274
|
* const buf = Buffer.from('buffer');
|
|
2168
2275
|
*
|
|
@@ -2205,7 +2312,7 @@ declare module 'buffer' {
|
|
|
2205
2312
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2206
2313
|
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2207
2314
|
* @since v15.13.0, v14.17.0
|
|
2208
|
-
* @
|
|
2315
|
+
* @legacy Use `Buffer.from(data, 'base64')` instead.
|
|
2209
2316
|
* @param data The Base64-encoded input string.
|
|
2210
2317
|
*/
|
|
2211
2318
|
function atob(data: string): string;
|
|
@@ -2221,10 +2328,22 @@ declare module 'buffer' {
|
|
|
2221
2328
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2222
2329
|
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2223
2330
|
* @since v15.13.0, v14.17.0
|
|
2224
|
-
* @
|
|
2331
|
+
* @legacy Use `buf.toString('base64')` instead.
|
|
2225
2332
|
* @param data An ASCII (Latin1) string.
|
|
2226
2333
|
*/
|
|
2227
2334
|
function btoa(data: string): string;
|
|
2335
|
+
interface Blob extends __Blob {}
|
|
2336
|
+
/**
|
|
2337
|
+
* `Blob` class is a global reference for `require('node:buffer').Blob`
|
|
2338
|
+
* https://nodejs.org/api/buffer.html#class-blob
|
|
2339
|
+
* @since v18.0.0
|
|
2340
|
+
*/
|
|
2341
|
+
var Blob: typeof globalThis extends {
|
|
2342
|
+
onmessage: any;
|
|
2343
|
+
Blob: infer T;
|
|
2344
|
+
}
|
|
2345
|
+
? T
|
|
2346
|
+
: typeof NodeBlob;
|
|
2228
2347
|
}
|
|
2229
2348
|
}
|
|
2230
2349
|
declare module 'node:buffer' {
|