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
|
@@ -1,34 +1,108 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lru-cache",
|
|
3
3
|
"description": "A cache object that deletes the least-recently-used items.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "9.1.2",
|
|
5
5
|
"author": "Isaac Z. Schlueter <i@izs.me>",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"mru",
|
|
8
8
|
"lru",
|
|
9
9
|
"cache"
|
|
10
10
|
],
|
|
11
|
+
"sideEffects": false,
|
|
11
12
|
"scripts": {
|
|
12
|
-
"
|
|
13
|
-
"
|
|
13
|
+
"build": "npm run prepare",
|
|
14
|
+
"preprepare": "rm -rf dist",
|
|
15
|
+
"prepare": "tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
|
|
16
|
+
"postprepare": "bash fixup.sh",
|
|
17
|
+
"pretest": "npm run prepare",
|
|
18
|
+
"presnap": "npm run prepare",
|
|
19
|
+
"test": "c8 tap",
|
|
20
|
+
"snap": "c8 tap",
|
|
14
21
|
"preversion": "npm test",
|
|
15
22
|
"postversion": "npm publish",
|
|
16
|
-
"prepublishOnly": "git push origin --follow-tags"
|
|
23
|
+
"prepublishOnly": "git push origin --follow-tags",
|
|
24
|
+
"format": "prettier --write .",
|
|
25
|
+
"typedoc": "typedoc --tsconfig tsconfig-esm.json ./src/*.ts",
|
|
26
|
+
"benchmark-results-typedoc": "bash scripts/benchmark-results-typedoc.sh",
|
|
27
|
+
"prebenchmark": "npm run prepare",
|
|
28
|
+
"benchmark": "make -C benchmark",
|
|
29
|
+
"preprofile": "npm run prepare",
|
|
30
|
+
"profile": "make -C benchmark profile"
|
|
31
|
+
},
|
|
32
|
+
"main": "./dist/cjs/index.js",
|
|
33
|
+
"module": "./dist/mjs/index.js",
|
|
34
|
+
"exports": {
|
|
35
|
+
"./min": {
|
|
36
|
+
"import": {
|
|
37
|
+
"types": "./dist/mjs/index.d.ts",
|
|
38
|
+
"default": "./dist/mjs/index.min.js"
|
|
39
|
+
},
|
|
40
|
+
"require": {
|
|
41
|
+
"types": "./dist/cjs/index.d.ts",
|
|
42
|
+
"default": "./dist/cjs/index.min.js"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
".": {
|
|
46
|
+
"import": {
|
|
47
|
+
"types": "./dist/mjs/index.d.ts",
|
|
48
|
+
"default": "./dist/mjs/index.js"
|
|
49
|
+
},
|
|
50
|
+
"require": {
|
|
51
|
+
"types": "./dist/cjs/index.d.ts",
|
|
52
|
+
"default": "./dist/cjs/index.js"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
17
55
|
},
|
|
18
|
-
"main": "index.js",
|
|
19
56
|
"repository": "git://github.com/isaacs/node-lru-cache.git",
|
|
20
57
|
"devDependencies": {
|
|
58
|
+
"@size-limit/preset-small-lib": "^7.0.8",
|
|
59
|
+
"@types/node": "^20.2.5",
|
|
60
|
+
"@types/tap": "^15.0.6",
|
|
21
61
|
"benchmark": "^2.1.4",
|
|
22
|
-
"
|
|
62
|
+
"c8": "^7.11.2",
|
|
63
|
+
"clock-mock": "^1.0.6",
|
|
64
|
+
"esbuild": "^0.17.11",
|
|
65
|
+
"eslint-config-prettier": "^8.5.0",
|
|
66
|
+
"marked": "^4.2.12",
|
|
67
|
+
"mkdirp": "^2.1.5",
|
|
68
|
+
"prettier": "^2.6.2",
|
|
69
|
+
"size-limit": "^7.0.8",
|
|
70
|
+
"tap": "^16.3.4",
|
|
71
|
+
"ts-node": "^10.9.1",
|
|
72
|
+
"tslib": "^2.4.0",
|
|
73
|
+
"typedoc": "^0.24.6",
|
|
74
|
+
"typescript": "^5.0.4"
|
|
23
75
|
},
|
|
24
76
|
"license": "ISC",
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"yallist": "^4.0.0"
|
|
27
|
-
},
|
|
28
77
|
"files": [
|
|
29
|
-
"
|
|
78
|
+
"dist"
|
|
30
79
|
],
|
|
31
80
|
"engines": {
|
|
32
|
-
"node": ">=
|
|
33
|
-
}
|
|
81
|
+
"node": "14 || >=16.14"
|
|
82
|
+
},
|
|
83
|
+
"prettier": {
|
|
84
|
+
"semi": false,
|
|
85
|
+
"printWidth": 70,
|
|
86
|
+
"tabWidth": 2,
|
|
87
|
+
"useTabs": false,
|
|
88
|
+
"singleQuote": true,
|
|
89
|
+
"jsxSingleQuote": false,
|
|
90
|
+
"bracketSameLine": true,
|
|
91
|
+
"arrowParens": "avoid",
|
|
92
|
+
"endOfLine": "lf"
|
|
93
|
+
},
|
|
94
|
+
"tap": {
|
|
95
|
+
"coverage": false,
|
|
96
|
+
"node-arg": [
|
|
97
|
+
"--expose-gc",
|
|
98
|
+
"-r",
|
|
99
|
+
"ts-node/register"
|
|
100
|
+
],
|
|
101
|
+
"ts": false
|
|
102
|
+
},
|
|
103
|
+
"size-limit": [
|
|
104
|
+
{
|
|
105
|
+
"path": "./dist/mjs/index.js"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
34
108
|
}
|
|
@@ -188,6 +188,49 @@ fetch('https://assets-cdn.github.com/images/modules/logos_page/Octocat.png')
|
|
|
188
188
|
});
|
|
189
189
|
```
|
|
190
190
|
|
|
191
|
+
In Node.js 14 you can also use async iterators to read `body`; however, be careful to catch
|
|
192
|
+
errors -- the longer a response runs, the more likely it is to encounter an error.
|
|
193
|
+
|
|
194
|
+
```js
|
|
195
|
+
const fetch = require('node-fetch');
|
|
196
|
+
const response = await fetch('https://httpbin.org/stream/3');
|
|
197
|
+
try {
|
|
198
|
+
for await (const chunk of response.body) {
|
|
199
|
+
console.dir(JSON.parse(chunk.toString()));
|
|
200
|
+
}
|
|
201
|
+
} catch (err) {
|
|
202
|
+
console.error(err.stack);
|
|
203
|
+
}
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
In Node.js 12 you can also use async iterators to read `body`; however, async iterators with streams
|
|
207
|
+
did not mature until Node.js 14, so you need to do some extra work to ensure you handle errors
|
|
208
|
+
directly from the stream and wait on it response to fully close.
|
|
209
|
+
|
|
210
|
+
```js
|
|
211
|
+
const fetch = require('node-fetch');
|
|
212
|
+
const read = async body => {
|
|
213
|
+
let error;
|
|
214
|
+
body.on('error', err => {
|
|
215
|
+
error = err;
|
|
216
|
+
});
|
|
217
|
+
for await (const chunk of body) {
|
|
218
|
+
console.dir(JSON.parse(chunk.toString()));
|
|
219
|
+
}
|
|
220
|
+
return new Promise((resolve, reject) => {
|
|
221
|
+
body.on('close', () => {
|
|
222
|
+
error ? reject(error) : resolve();
|
|
223
|
+
});
|
|
224
|
+
});
|
|
225
|
+
};
|
|
226
|
+
try {
|
|
227
|
+
const response = await fetch('https://httpbin.org/stream/3');
|
|
228
|
+
await read(response.body);
|
|
229
|
+
} catch (err) {
|
|
230
|
+
console.error(err.stack);
|
|
231
|
+
}
|
|
232
|
+
```
|
|
233
|
+
|
|
191
234
|
#### Buffer
|
|
192
235
|
If you prefer to cache binary data in full, use buffer(). (NOTE: `buffer()` is a `node-fetch`-only API)
|
|
193
236
|
|
|
@@ -11,15 +11,15 @@ var getGlobal = function () {
|
|
|
11
11
|
throw new Error('unable to locate global object');
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var globalObject = getGlobal();
|
|
15
15
|
|
|
16
|
-
module.exports = exports =
|
|
16
|
+
module.exports = exports = globalObject.fetch;
|
|
17
17
|
|
|
18
18
|
// Needed for TypeScript and Webpack.
|
|
19
|
-
if (
|
|
20
|
-
exports.default =
|
|
19
|
+
if (globalObject.fetch) {
|
|
20
|
+
exports.default = globalObject.fetch.bind(globalObject);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
exports.Headers =
|
|
24
|
-
exports.Request =
|
|
25
|
-
exports.Response =
|
|
23
|
+
exports.Headers = globalObject.Headers;
|
|
24
|
+
exports.Request = globalObject.Request;
|
|
25
|
+
exports.Response = globalObject.Response;
|
|
@@ -1413,6 +1413,20 @@ const isDomainOrSubdomain = function isDomainOrSubdomain(destination, original)
|
|
|
1413
1413
|
return orig === dest || orig[orig.length - dest.length - 1] === '.' && orig.endsWith(dest);
|
|
1414
1414
|
};
|
|
1415
1415
|
|
|
1416
|
+
/**
|
|
1417
|
+
* isSameProtocol reports whether the two provided URLs use the same protocol.
|
|
1418
|
+
*
|
|
1419
|
+
* Both domains must already be in canonical form.
|
|
1420
|
+
* @param {string|URL} original
|
|
1421
|
+
* @param {string|URL} destination
|
|
1422
|
+
*/
|
|
1423
|
+
const isSameProtocol = function isSameProtocol(destination, original) {
|
|
1424
|
+
const orig = new URL$1(original).protocol;
|
|
1425
|
+
const dest = new URL$1(destination).protocol;
|
|
1426
|
+
|
|
1427
|
+
return orig === dest;
|
|
1428
|
+
};
|
|
1429
|
+
|
|
1416
1430
|
/**
|
|
1417
1431
|
* Fetch function
|
|
1418
1432
|
*
|
|
@@ -1444,7 +1458,7 @@ function fetch(url, opts) {
|
|
|
1444
1458
|
let error = new AbortError('The user aborted a request.');
|
|
1445
1459
|
reject(error);
|
|
1446
1460
|
if (request.body && request.body instanceof Stream.Readable) {
|
|
1447
|
-
request.body
|
|
1461
|
+
destroyStream(request.body, error);
|
|
1448
1462
|
}
|
|
1449
1463
|
if (!response || !response.body) return;
|
|
1450
1464
|
response.body.emit('error', error);
|
|
@@ -1485,9 +1499,43 @@ function fetch(url, opts) {
|
|
|
1485
1499
|
|
|
1486
1500
|
req.on('error', function (err) {
|
|
1487
1501
|
reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err));
|
|
1502
|
+
|
|
1503
|
+
if (response && response.body) {
|
|
1504
|
+
destroyStream(response.body, err);
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1488
1507
|
finalize();
|
|
1489
1508
|
});
|
|
1490
1509
|
|
|
1510
|
+
fixResponseChunkedTransferBadEnding(req, function (err) {
|
|
1511
|
+
if (signal && signal.aborted) {
|
|
1512
|
+
return;
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
if (response && response.body) {
|
|
1516
|
+
destroyStream(response.body, err);
|
|
1517
|
+
}
|
|
1518
|
+
});
|
|
1519
|
+
|
|
1520
|
+
/* c8 ignore next 18 */
|
|
1521
|
+
if (parseInt(process.version.substring(1)) < 14) {
|
|
1522
|
+
// Before Node.js 14, pipeline() does not fully support async iterators and does not always
|
|
1523
|
+
// properly handle when the socket close/end events are out of order.
|
|
1524
|
+
req.on('socket', function (s) {
|
|
1525
|
+
s.addListener('close', function (hadError) {
|
|
1526
|
+
// if a data listener is still present we didn't end cleanly
|
|
1527
|
+
const hasDataListener = s.listenerCount('data') > 0;
|
|
1528
|
+
|
|
1529
|
+
// if end happened before close but the socket didn't emit an error, do it now
|
|
1530
|
+
if (response && hasDataListener && !hadError && !(signal && signal.aborted)) {
|
|
1531
|
+
const err = new Error('Premature close');
|
|
1532
|
+
err.code = 'ERR_STREAM_PREMATURE_CLOSE';
|
|
1533
|
+
response.body.emit('error', err);
|
|
1534
|
+
}
|
|
1535
|
+
});
|
|
1536
|
+
});
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1491
1539
|
req.on('response', function (res) {
|
|
1492
1540
|
clearTimeout(reqTimeout);
|
|
1493
1541
|
|
|
@@ -1559,7 +1607,7 @@ function fetch(url, opts) {
|
|
|
1559
1607
|
size: request.size
|
|
1560
1608
|
};
|
|
1561
1609
|
|
|
1562
|
-
if (!isDomainOrSubdomain(request.url, locationURL)) {
|
|
1610
|
+
if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) {
|
|
1563
1611
|
for (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) {
|
|
1564
1612
|
requestOpts.headers.delete(name);
|
|
1565
1613
|
}
|
|
@@ -1652,6 +1700,13 @@ function fetch(url, opts) {
|
|
|
1652
1700
|
response = new Response(body, response_options);
|
|
1653
1701
|
resolve(response);
|
|
1654
1702
|
});
|
|
1703
|
+
raw.on('end', function () {
|
|
1704
|
+
// some old IIS servers return zero-length OK deflate responses, so 'data' is never emitted.
|
|
1705
|
+
if (!response) {
|
|
1706
|
+
response = new Response(body, response_options);
|
|
1707
|
+
resolve(response);
|
|
1708
|
+
}
|
|
1709
|
+
});
|
|
1655
1710
|
return;
|
|
1656
1711
|
}
|
|
1657
1712
|
|
|
@@ -1671,6 +1726,41 @@ function fetch(url, opts) {
|
|
|
1671
1726
|
writeToStream(req, request);
|
|
1672
1727
|
});
|
|
1673
1728
|
}
|
|
1729
|
+
function fixResponseChunkedTransferBadEnding(request, errorCallback) {
|
|
1730
|
+
let socket;
|
|
1731
|
+
|
|
1732
|
+
request.on('socket', function (s) {
|
|
1733
|
+
socket = s;
|
|
1734
|
+
});
|
|
1735
|
+
|
|
1736
|
+
request.on('response', function (response) {
|
|
1737
|
+
const headers = response.headers;
|
|
1738
|
+
|
|
1739
|
+
if (headers['transfer-encoding'] === 'chunked' && !headers['content-length']) {
|
|
1740
|
+
response.once('close', function (hadError) {
|
|
1741
|
+
// if a data listener is still present we didn't end cleanly
|
|
1742
|
+
const hasDataListener = socket.listenerCount('data') > 0;
|
|
1743
|
+
|
|
1744
|
+
if (hasDataListener && !hadError) {
|
|
1745
|
+
const err = new Error('Premature close');
|
|
1746
|
+
err.code = 'ERR_STREAM_PREMATURE_CLOSE';
|
|
1747
|
+
errorCallback(err);
|
|
1748
|
+
}
|
|
1749
|
+
});
|
|
1750
|
+
}
|
|
1751
|
+
});
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
function destroyStream(stream, err) {
|
|
1755
|
+
if (stream.destroy) {
|
|
1756
|
+
stream.destroy(err);
|
|
1757
|
+
} else {
|
|
1758
|
+
// node < 8
|
|
1759
|
+
stream.emit('error', err);
|
|
1760
|
+
stream.end();
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1674
1764
|
/**
|
|
1675
1765
|
* Redirect code matching
|
|
1676
1766
|
*
|
|
@@ -1417,6 +1417,20 @@ const isDomainOrSubdomain = function isDomainOrSubdomain(destination, original)
|
|
|
1417
1417
|
return orig === dest || orig[orig.length - dest.length - 1] === '.' && orig.endsWith(dest);
|
|
1418
1418
|
};
|
|
1419
1419
|
|
|
1420
|
+
/**
|
|
1421
|
+
* isSameProtocol reports whether the two provided URLs use the same protocol.
|
|
1422
|
+
*
|
|
1423
|
+
* Both domains must already be in canonical form.
|
|
1424
|
+
* @param {string|URL} original
|
|
1425
|
+
* @param {string|URL} destination
|
|
1426
|
+
*/
|
|
1427
|
+
const isSameProtocol = function isSameProtocol(destination, original) {
|
|
1428
|
+
const orig = new URL$1(original).protocol;
|
|
1429
|
+
const dest = new URL$1(destination).protocol;
|
|
1430
|
+
|
|
1431
|
+
return orig === dest;
|
|
1432
|
+
};
|
|
1433
|
+
|
|
1420
1434
|
/**
|
|
1421
1435
|
* Fetch function
|
|
1422
1436
|
*
|
|
@@ -1448,7 +1462,7 @@ function fetch(url, opts) {
|
|
|
1448
1462
|
let error = new AbortError('The user aborted a request.');
|
|
1449
1463
|
reject(error);
|
|
1450
1464
|
if (request.body && request.body instanceof Stream.Readable) {
|
|
1451
|
-
request.body
|
|
1465
|
+
destroyStream(request.body, error);
|
|
1452
1466
|
}
|
|
1453
1467
|
if (!response || !response.body) return;
|
|
1454
1468
|
response.body.emit('error', error);
|
|
@@ -1489,9 +1503,43 @@ function fetch(url, opts) {
|
|
|
1489
1503
|
|
|
1490
1504
|
req.on('error', function (err) {
|
|
1491
1505
|
reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err));
|
|
1506
|
+
|
|
1507
|
+
if (response && response.body) {
|
|
1508
|
+
destroyStream(response.body, err);
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1492
1511
|
finalize();
|
|
1493
1512
|
});
|
|
1494
1513
|
|
|
1514
|
+
fixResponseChunkedTransferBadEnding(req, function (err) {
|
|
1515
|
+
if (signal && signal.aborted) {
|
|
1516
|
+
return;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
if (response && response.body) {
|
|
1520
|
+
destroyStream(response.body, err);
|
|
1521
|
+
}
|
|
1522
|
+
});
|
|
1523
|
+
|
|
1524
|
+
/* c8 ignore next 18 */
|
|
1525
|
+
if (parseInt(process.version.substring(1)) < 14) {
|
|
1526
|
+
// Before Node.js 14, pipeline() does not fully support async iterators and does not always
|
|
1527
|
+
// properly handle when the socket close/end events are out of order.
|
|
1528
|
+
req.on('socket', function (s) {
|
|
1529
|
+
s.addListener('close', function (hadError) {
|
|
1530
|
+
// if a data listener is still present we didn't end cleanly
|
|
1531
|
+
const hasDataListener = s.listenerCount('data') > 0;
|
|
1532
|
+
|
|
1533
|
+
// if end happened before close but the socket didn't emit an error, do it now
|
|
1534
|
+
if (response && hasDataListener && !hadError && !(signal && signal.aborted)) {
|
|
1535
|
+
const err = new Error('Premature close');
|
|
1536
|
+
err.code = 'ERR_STREAM_PREMATURE_CLOSE';
|
|
1537
|
+
response.body.emit('error', err);
|
|
1538
|
+
}
|
|
1539
|
+
});
|
|
1540
|
+
});
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1495
1543
|
req.on('response', function (res) {
|
|
1496
1544
|
clearTimeout(reqTimeout);
|
|
1497
1545
|
|
|
@@ -1563,7 +1611,7 @@ function fetch(url, opts) {
|
|
|
1563
1611
|
size: request.size
|
|
1564
1612
|
};
|
|
1565
1613
|
|
|
1566
|
-
if (!isDomainOrSubdomain(request.url, locationURL)) {
|
|
1614
|
+
if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) {
|
|
1567
1615
|
for (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) {
|
|
1568
1616
|
requestOpts.headers.delete(name);
|
|
1569
1617
|
}
|
|
@@ -1656,6 +1704,13 @@ function fetch(url, opts) {
|
|
|
1656
1704
|
response = new Response(body, response_options);
|
|
1657
1705
|
resolve(response);
|
|
1658
1706
|
});
|
|
1707
|
+
raw.on('end', function () {
|
|
1708
|
+
// some old IIS servers return zero-length OK deflate responses, so 'data' is never emitted.
|
|
1709
|
+
if (!response) {
|
|
1710
|
+
response = new Response(body, response_options);
|
|
1711
|
+
resolve(response);
|
|
1712
|
+
}
|
|
1713
|
+
});
|
|
1659
1714
|
return;
|
|
1660
1715
|
}
|
|
1661
1716
|
|
|
@@ -1675,6 +1730,41 @@ function fetch(url, opts) {
|
|
|
1675
1730
|
writeToStream(req, request);
|
|
1676
1731
|
});
|
|
1677
1732
|
}
|
|
1733
|
+
function fixResponseChunkedTransferBadEnding(request, errorCallback) {
|
|
1734
|
+
let socket;
|
|
1735
|
+
|
|
1736
|
+
request.on('socket', function (s) {
|
|
1737
|
+
socket = s;
|
|
1738
|
+
});
|
|
1739
|
+
|
|
1740
|
+
request.on('response', function (response) {
|
|
1741
|
+
const headers = response.headers;
|
|
1742
|
+
|
|
1743
|
+
if (headers['transfer-encoding'] === 'chunked' && !headers['content-length']) {
|
|
1744
|
+
response.once('close', function (hadError) {
|
|
1745
|
+
// if a data listener is still present we didn't end cleanly
|
|
1746
|
+
const hasDataListener = socket.listenerCount('data') > 0;
|
|
1747
|
+
|
|
1748
|
+
if (hasDataListener && !hadError) {
|
|
1749
|
+
const err = new Error('Premature close');
|
|
1750
|
+
err.code = 'ERR_STREAM_PREMATURE_CLOSE';
|
|
1751
|
+
errorCallback(err);
|
|
1752
|
+
}
|
|
1753
|
+
});
|
|
1754
|
+
}
|
|
1755
|
+
});
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
function destroyStream(stream, err) {
|
|
1759
|
+
if (stream.destroy) {
|
|
1760
|
+
stream.destroy(err);
|
|
1761
|
+
} else {
|
|
1762
|
+
// node < 8
|
|
1763
|
+
stream.emit('error', err);
|
|
1764
|
+
stream.end();
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1678
1768
|
/**
|
|
1679
1769
|
* Redirect code matching
|
|
1680
1770
|
*
|
|
@@ -1411,6 +1411,20 @@ const isDomainOrSubdomain = function isDomainOrSubdomain(destination, original)
|
|
|
1411
1411
|
return orig === dest || orig[orig.length - dest.length - 1] === '.' && orig.endsWith(dest);
|
|
1412
1412
|
};
|
|
1413
1413
|
|
|
1414
|
+
/**
|
|
1415
|
+
* isSameProtocol reports whether the two provided URLs use the same protocol.
|
|
1416
|
+
*
|
|
1417
|
+
* Both domains must already be in canonical form.
|
|
1418
|
+
* @param {string|URL} original
|
|
1419
|
+
* @param {string|URL} destination
|
|
1420
|
+
*/
|
|
1421
|
+
const isSameProtocol = function isSameProtocol(destination, original) {
|
|
1422
|
+
const orig = new URL$1(original).protocol;
|
|
1423
|
+
const dest = new URL$1(destination).protocol;
|
|
1424
|
+
|
|
1425
|
+
return orig === dest;
|
|
1426
|
+
};
|
|
1427
|
+
|
|
1414
1428
|
/**
|
|
1415
1429
|
* Fetch function
|
|
1416
1430
|
*
|
|
@@ -1442,7 +1456,7 @@ function fetch(url, opts) {
|
|
|
1442
1456
|
let error = new AbortError('The user aborted a request.');
|
|
1443
1457
|
reject(error);
|
|
1444
1458
|
if (request.body && request.body instanceof Stream.Readable) {
|
|
1445
|
-
request.body
|
|
1459
|
+
destroyStream(request.body, error);
|
|
1446
1460
|
}
|
|
1447
1461
|
if (!response || !response.body) return;
|
|
1448
1462
|
response.body.emit('error', error);
|
|
@@ -1483,9 +1497,43 @@ function fetch(url, opts) {
|
|
|
1483
1497
|
|
|
1484
1498
|
req.on('error', function (err) {
|
|
1485
1499
|
reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err));
|
|
1500
|
+
|
|
1501
|
+
if (response && response.body) {
|
|
1502
|
+
destroyStream(response.body, err);
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1486
1505
|
finalize();
|
|
1487
1506
|
});
|
|
1488
1507
|
|
|
1508
|
+
fixResponseChunkedTransferBadEnding(req, function (err) {
|
|
1509
|
+
if (signal && signal.aborted) {
|
|
1510
|
+
return;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
if (response && response.body) {
|
|
1514
|
+
destroyStream(response.body, err);
|
|
1515
|
+
}
|
|
1516
|
+
});
|
|
1517
|
+
|
|
1518
|
+
/* c8 ignore next 18 */
|
|
1519
|
+
if (parseInt(process.version.substring(1)) < 14) {
|
|
1520
|
+
// Before Node.js 14, pipeline() does not fully support async iterators and does not always
|
|
1521
|
+
// properly handle when the socket close/end events are out of order.
|
|
1522
|
+
req.on('socket', function (s) {
|
|
1523
|
+
s.addListener('close', function (hadError) {
|
|
1524
|
+
// if a data listener is still present we didn't end cleanly
|
|
1525
|
+
const hasDataListener = s.listenerCount('data') > 0;
|
|
1526
|
+
|
|
1527
|
+
// if end happened before close but the socket didn't emit an error, do it now
|
|
1528
|
+
if (response && hasDataListener && !hadError && !(signal && signal.aborted)) {
|
|
1529
|
+
const err = new Error('Premature close');
|
|
1530
|
+
err.code = 'ERR_STREAM_PREMATURE_CLOSE';
|
|
1531
|
+
response.body.emit('error', err);
|
|
1532
|
+
}
|
|
1533
|
+
});
|
|
1534
|
+
});
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1489
1537
|
req.on('response', function (res) {
|
|
1490
1538
|
clearTimeout(reqTimeout);
|
|
1491
1539
|
|
|
@@ -1557,7 +1605,7 @@ function fetch(url, opts) {
|
|
|
1557
1605
|
size: request.size
|
|
1558
1606
|
};
|
|
1559
1607
|
|
|
1560
|
-
if (!isDomainOrSubdomain(request.url, locationURL)) {
|
|
1608
|
+
if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) {
|
|
1561
1609
|
for (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) {
|
|
1562
1610
|
requestOpts.headers.delete(name);
|
|
1563
1611
|
}
|
|
@@ -1650,6 +1698,13 @@ function fetch(url, opts) {
|
|
|
1650
1698
|
response = new Response(body, response_options);
|
|
1651
1699
|
resolve(response);
|
|
1652
1700
|
});
|
|
1701
|
+
raw.on('end', function () {
|
|
1702
|
+
// some old IIS servers return zero-length OK deflate responses, so 'data' is never emitted.
|
|
1703
|
+
if (!response) {
|
|
1704
|
+
response = new Response(body, response_options);
|
|
1705
|
+
resolve(response);
|
|
1706
|
+
}
|
|
1707
|
+
});
|
|
1653
1708
|
return;
|
|
1654
1709
|
}
|
|
1655
1710
|
|
|
@@ -1669,6 +1724,41 @@ function fetch(url, opts) {
|
|
|
1669
1724
|
writeToStream(req, request);
|
|
1670
1725
|
});
|
|
1671
1726
|
}
|
|
1727
|
+
function fixResponseChunkedTransferBadEnding(request, errorCallback) {
|
|
1728
|
+
let socket;
|
|
1729
|
+
|
|
1730
|
+
request.on('socket', function (s) {
|
|
1731
|
+
socket = s;
|
|
1732
|
+
});
|
|
1733
|
+
|
|
1734
|
+
request.on('response', function (response) {
|
|
1735
|
+
const headers = response.headers;
|
|
1736
|
+
|
|
1737
|
+
if (headers['transfer-encoding'] === 'chunked' && !headers['content-length']) {
|
|
1738
|
+
response.once('close', function (hadError) {
|
|
1739
|
+
// if a data listener is still present we didn't end cleanly
|
|
1740
|
+
const hasDataListener = socket.listenerCount('data') > 0;
|
|
1741
|
+
|
|
1742
|
+
if (hasDataListener && !hadError) {
|
|
1743
|
+
const err = new Error('Premature close');
|
|
1744
|
+
err.code = 'ERR_STREAM_PREMATURE_CLOSE';
|
|
1745
|
+
errorCallback(err);
|
|
1746
|
+
}
|
|
1747
|
+
});
|
|
1748
|
+
}
|
|
1749
|
+
});
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
function destroyStream(stream, err) {
|
|
1753
|
+
if (stream.destroy) {
|
|
1754
|
+
stream.destroy(err);
|
|
1755
|
+
} else {
|
|
1756
|
+
// node < 8
|
|
1757
|
+
stream.emit('error', err);
|
|
1758
|
+
stream.end();
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
|
|
1672
1762
|
/**
|
|
1673
1763
|
* Redirect code matching
|
|
1674
1764
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-fetch",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.11",
|
|
4
4
|
"description": "A light-weight module that brings window.fetch to node.js",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"browser": "./browser.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"whatwg-url": "^5.0.0"
|
|
41
41
|
},
|
|
42
|
-
"peerDependencies": {
|
|
42
|
+
"peerDependencies": {
|
|
43
43
|
"encoding": "^0.1.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
@@ -53,7 +53,9 @@
|
|
|
53
53
|
"abortcontroller-polyfill": "^1.3.0",
|
|
54
54
|
"babel-core": "^6.26.3",
|
|
55
55
|
"babel-plugin-istanbul": "^4.1.6",
|
|
56
|
-
"babel-
|
|
56
|
+
"babel-plugin-transform-async-generator-functions": "^6.24.1",
|
|
57
|
+
"babel-polyfill": "^6.26.0",
|
|
58
|
+
"babel-preset-env": "1.4.0",
|
|
57
59
|
"babel-register": "^6.16.3",
|
|
58
60
|
"chai": "^3.5.0",
|
|
59
61
|
"chai-as-promised": "^7.1.1",
|
|
@@ -72,5 +74,16 @@
|
|
|
72
74
|
"rollup-plugin-babel": "^3.0.7",
|
|
73
75
|
"string-to-arraybuffer": "^1.0.2",
|
|
74
76
|
"teeny-request": "3.7.0"
|
|
77
|
+
},
|
|
78
|
+
"release": {
|
|
79
|
+
"branches": [
|
|
80
|
+
"+([0-9]).x",
|
|
81
|
+
"main",
|
|
82
|
+
"next",
|
|
83
|
+
{
|
|
84
|
+
"name": "beta",
|
|
85
|
+
"prerelease": true
|
|
86
|
+
}
|
|
87
|
+
]
|
|
75
88
|
}
|
|
76
89
|
}
|
|
@@ -17,7 +17,7 @@ The `octokit` package integrates the three main Octokit libraries
|
|
|
17
17
|
- [`Octokit` API Client](#octokit-api-client)
|
|
18
18
|
- [Constructor options](#constructor-options)
|
|
19
19
|
- [Authentication](#authentication)
|
|
20
|
-
- [Proxy Servers](#proxy-servers-nodejs-only)
|
|
20
|
+
- [Proxy Servers (Node.js only)](#proxy-servers-nodejs-only)
|
|
21
21
|
- [REST API](#rest-api)
|
|
22
22
|
- [`octokit.rest` endpoint methods](#octokitrest-endpoint-methods)
|
|
23
23
|
- [`octokit.request()`](#octokitrequest)
|
|
@@ -76,7 +76,7 @@ import { Octokit, App } from "https://cdn.skypack.dev/octokit?dts";
|
|
|
76
76
|
Node 12+
|
|
77
77
|
</th><td>
|
|
78
78
|
|
|
79
|
-
Install with <code>npm install octokit</code>, or <code>yarn add octokit</code>
|
|
79
|
+
Install with <code>npm/pnpm install octokit</code>, or <code>yarn add octokit</code>
|
|
80
80
|
|
|
81
81
|
```js
|
|
82
82
|
import { Octokit, App } from "octokit";
|
|
@@ -87,7 +87,7 @@ import { Octokit, App } from "octokit";
|
|
|
87
87
|
Node 10 and below
|
|
88
88
|
</th><td>
|
|
89
89
|
|
|
90
|
-
Install with <code>npm install octokit</code>, or <code>yarn add octokit</code>
|
|
90
|
+
Install with <code>npm/pnpm install octokit</code>, or <code>yarn add octokit</code>
|
|
91
91
|
|
|
92
92
|
```js
|
|
93
93
|
const { Octokit, App } = require("octokit");
|
|
@@ -159,7 +159,7 @@ const octokit = new Octokit({
|
|
|
159
159
|
<code>authStrategy</code>
|
|
160
160
|
</th>
|
|
161
161
|
<td>
|
|
162
|
-
<code>Function
|
|
162
|
+
<code>Function</code>
|
|
163
163
|
</td>
|
|
164
164
|
<td>
|
|
165
165
|
|