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,594 +1,670 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
// pkg/dist-src/createLogger.js
|
|
2
|
+
var createLogger = (logger) => ({
|
|
3
|
+
debug: () => {
|
|
4
|
+
},
|
|
5
|
+
info: () => {
|
|
6
|
+
},
|
|
7
|
+
warn: console.warn.bind(console),
|
|
8
|
+
error: console.error.bind(console),
|
|
9
|
+
...logger
|
|
10
10
|
});
|
|
11
11
|
|
|
12
|
-
//
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
12
|
+
// pkg/dist-src/generated/webhook-names.js
|
|
13
|
+
var emitterEventNames = [
|
|
14
|
+
"branch_protection_rule",
|
|
15
|
+
"branch_protection_rule.created",
|
|
16
|
+
"branch_protection_rule.deleted",
|
|
17
|
+
"branch_protection_rule.edited",
|
|
18
|
+
"check_run",
|
|
19
|
+
"check_run.completed",
|
|
20
|
+
"check_run.created",
|
|
21
|
+
"check_run.requested_action",
|
|
22
|
+
"check_run.rerequested",
|
|
23
|
+
"check_suite",
|
|
24
|
+
"check_suite.completed",
|
|
25
|
+
"check_suite.requested",
|
|
26
|
+
"check_suite.rerequested",
|
|
27
|
+
"code_scanning_alert",
|
|
28
|
+
"code_scanning_alert.appeared_in_branch",
|
|
29
|
+
"code_scanning_alert.closed_by_user",
|
|
30
|
+
"code_scanning_alert.created",
|
|
31
|
+
"code_scanning_alert.fixed",
|
|
32
|
+
"code_scanning_alert.reopened",
|
|
33
|
+
"code_scanning_alert.reopened_by_user",
|
|
34
|
+
"commit_comment",
|
|
35
|
+
"commit_comment.created",
|
|
36
|
+
"create",
|
|
37
|
+
"delete",
|
|
38
|
+
"dependabot_alert",
|
|
39
|
+
"dependabot_alert.created",
|
|
40
|
+
"dependabot_alert.dismissed",
|
|
41
|
+
"dependabot_alert.fixed",
|
|
42
|
+
"dependabot_alert.reintroduced",
|
|
43
|
+
"dependabot_alert.reopened",
|
|
44
|
+
"deploy_key",
|
|
45
|
+
"deploy_key.created",
|
|
46
|
+
"deploy_key.deleted",
|
|
47
|
+
"deployment",
|
|
48
|
+
"deployment.created",
|
|
49
|
+
"deployment_status",
|
|
50
|
+
"deployment_status.created",
|
|
51
|
+
"discussion",
|
|
52
|
+
"discussion.answered",
|
|
53
|
+
"discussion.category_changed",
|
|
54
|
+
"discussion.created",
|
|
55
|
+
"discussion.deleted",
|
|
56
|
+
"discussion.edited",
|
|
57
|
+
"discussion.labeled",
|
|
58
|
+
"discussion.locked",
|
|
59
|
+
"discussion.pinned",
|
|
60
|
+
"discussion.transferred",
|
|
61
|
+
"discussion.unanswered",
|
|
62
|
+
"discussion.unlabeled",
|
|
63
|
+
"discussion.unlocked",
|
|
64
|
+
"discussion.unpinned",
|
|
65
|
+
"discussion_comment",
|
|
66
|
+
"discussion_comment.created",
|
|
67
|
+
"discussion_comment.deleted",
|
|
68
|
+
"discussion_comment.edited",
|
|
69
|
+
"fork",
|
|
70
|
+
"github_app_authorization",
|
|
71
|
+
"github_app_authorization.revoked",
|
|
72
|
+
"gollum",
|
|
73
|
+
"installation",
|
|
74
|
+
"installation.created",
|
|
75
|
+
"installation.deleted",
|
|
76
|
+
"installation.new_permissions_accepted",
|
|
77
|
+
"installation.suspend",
|
|
78
|
+
"installation.unsuspend",
|
|
79
|
+
"installation_repositories",
|
|
80
|
+
"installation_repositories.added",
|
|
81
|
+
"installation_repositories.removed",
|
|
82
|
+
"installation_target",
|
|
83
|
+
"installation_target.renamed",
|
|
84
|
+
"issue_comment",
|
|
85
|
+
"issue_comment.created",
|
|
86
|
+
"issue_comment.deleted",
|
|
87
|
+
"issue_comment.edited",
|
|
88
|
+
"issues",
|
|
89
|
+
"issues.assigned",
|
|
90
|
+
"issues.closed",
|
|
91
|
+
"issues.deleted",
|
|
92
|
+
"issues.demilestoned",
|
|
93
|
+
"issues.edited",
|
|
94
|
+
"issues.labeled",
|
|
95
|
+
"issues.locked",
|
|
96
|
+
"issues.milestoned",
|
|
97
|
+
"issues.opened",
|
|
98
|
+
"issues.pinned",
|
|
99
|
+
"issues.reopened",
|
|
100
|
+
"issues.transferred",
|
|
101
|
+
"issues.unassigned",
|
|
102
|
+
"issues.unlabeled",
|
|
103
|
+
"issues.unlocked",
|
|
104
|
+
"issues.unpinned",
|
|
105
|
+
"label",
|
|
106
|
+
"label.created",
|
|
107
|
+
"label.deleted",
|
|
108
|
+
"label.edited",
|
|
109
|
+
"marketplace_purchase",
|
|
110
|
+
"marketplace_purchase.cancelled",
|
|
111
|
+
"marketplace_purchase.changed",
|
|
112
|
+
"marketplace_purchase.pending_change",
|
|
113
|
+
"marketplace_purchase.pending_change_cancelled",
|
|
114
|
+
"marketplace_purchase.purchased",
|
|
115
|
+
"member",
|
|
116
|
+
"member.added",
|
|
117
|
+
"member.edited",
|
|
118
|
+
"member.removed",
|
|
119
|
+
"membership",
|
|
120
|
+
"membership.added",
|
|
121
|
+
"membership.removed",
|
|
122
|
+
"merge_group",
|
|
123
|
+
"merge_group.checks_requested",
|
|
124
|
+
"meta",
|
|
125
|
+
"meta.deleted",
|
|
126
|
+
"milestone",
|
|
127
|
+
"milestone.closed",
|
|
128
|
+
"milestone.created",
|
|
129
|
+
"milestone.deleted",
|
|
130
|
+
"milestone.edited",
|
|
131
|
+
"milestone.opened",
|
|
132
|
+
"org_block",
|
|
133
|
+
"org_block.blocked",
|
|
134
|
+
"org_block.unblocked",
|
|
135
|
+
"organization",
|
|
136
|
+
"organization.deleted",
|
|
137
|
+
"organization.member_added",
|
|
138
|
+
"organization.member_invited",
|
|
139
|
+
"organization.member_removed",
|
|
140
|
+
"organization.renamed",
|
|
141
|
+
"package",
|
|
142
|
+
"package.published",
|
|
143
|
+
"package.updated",
|
|
144
|
+
"page_build",
|
|
145
|
+
"ping",
|
|
146
|
+
"project",
|
|
147
|
+
"project.closed",
|
|
148
|
+
"project.created",
|
|
149
|
+
"project.deleted",
|
|
150
|
+
"project.edited",
|
|
151
|
+
"project.reopened",
|
|
152
|
+
"project_card",
|
|
153
|
+
"project_card.converted",
|
|
154
|
+
"project_card.created",
|
|
155
|
+
"project_card.deleted",
|
|
156
|
+
"project_card.edited",
|
|
157
|
+
"project_card.moved",
|
|
158
|
+
"project_column",
|
|
159
|
+
"project_column.created",
|
|
160
|
+
"project_column.deleted",
|
|
161
|
+
"project_column.edited",
|
|
162
|
+
"project_column.moved",
|
|
163
|
+
"projects_v2_item",
|
|
164
|
+
"projects_v2_item.archived",
|
|
165
|
+
"projects_v2_item.converted",
|
|
166
|
+
"projects_v2_item.created",
|
|
167
|
+
"projects_v2_item.deleted",
|
|
168
|
+
"projects_v2_item.edited",
|
|
169
|
+
"projects_v2_item.reordered",
|
|
170
|
+
"projects_v2_item.restored",
|
|
171
|
+
"public",
|
|
172
|
+
"pull_request",
|
|
173
|
+
"pull_request.assigned",
|
|
174
|
+
"pull_request.auto_merge_disabled",
|
|
175
|
+
"pull_request.auto_merge_enabled",
|
|
176
|
+
"pull_request.closed",
|
|
177
|
+
"pull_request.converted_to_draft",
|
|
178
|
+
"pull_request.demilestoned",
|
|
179
|
+
"pull_request.dequeued",
|
|
180
|
+
"pull_request.edited",
|
|
181
|
+
"pull_request.labeled",
|
|
182
|
+
"pull_request.locked",
|
|
183
|
+
"pull_request.milestoned",
|
|
184
|
+
"pull_request.opened",
|
|
185
|
+
"pull_request.queued",
|
|
186
|
+
"pull_request.ready_for_review",
|
|
187
|
+
"pull_request.reopened",
|
|
188
|
+
"pull_request.review_request_removed",
|
|
189
|
+
"pull_request.review_requested",
|
|
190
|
+
"pull_request.synchronize",
|
|
191
|
+
"pull_request.unassigned",
|
|
192
|
+
"pull_request.unlabeled",
|
|
193
|
+
"pull_request.unlocked",
|
|
194
|
+
"pull_request_review",
|
|
195
|
+
"pull_request_review.dismissed",
|
|
196
|
+
"pull_request_review.edited",
|
|
197
|
+
"pull_request_review.submitted",
|
|
198
|
+
"pull_request_review_comment",
|
|
199
|
+
"pull_request_review_comment.created",
|
|
200
|
+
"pull_request_review_comment.deleted",
|
|
201
|
+
"pull_request_review_comment.edited",
|
|
202
|
+
"pull_request_review_thread",
|
|
203
|
+
"pull_request_review_thread.resolved",
|
|
204
|
+
"pull_request_review_thread.unresolved",
|
|
205
|
+
"push",
|
|
206
|
+
"registry_package",
|
|
207
|
+
"registry_package.published",
|
|
208
|
+
"registry_package.updated",
|
|
209
|
+
"release",
|
|
210
|
+
"release.created",
|
|
211
|
+
"release.deleted",
|
|
212
|
+
"release.edited",
|
|
213
|
+
"release.prereleased",
|
|
214
|
+
"release.published",
|
|
215
|
+
"release.released",
|
|
216
|
+
"release.unpublished",
|
|
217
|
+
"repository",
|
|
218
|
+
"repository.archived",
|
|
219
|
+
"repository.created",
|
|
220
|
+
"repository.deleted",
|
|
221
|
+
"repository.edited",
|
|
222
|
+
"repository.privatized",
|
|
223
|
+
"repository.publicized",
|
|
224
|
+
"repository.renamed",
|
|
225
|
+
"repository.transferred",
|
|
226
|
+
"repository.unarchived",
|
|
227
|
+
"repository_dispatch",
|
|
228
|
+
"repository_import",
|
|
229
|
+
"repository_vulnerability_alert",
|
|
230
|
+
"repository_vulnerability_alert.create",
|
|
231
|
+
"repository_vulnerability_alert.dismiss",
|
|
232
|
+
"repository_vulnerability_alert.reopen",
|
|
233
|
+
"repository_vulnerability_alert.resolve",
|
|
234
|
+
"secret_scanning_alert",
|
|
235
|
+
"secret_scanning_alert.created",
|
|
236
|
+
"secret_scanning_alert.reopened",
|
|
237
|
+
"secret_scanning_alert.resolved",
|
|
238
|
+
"security_advisory",
|
|
239
|
+
"security_advisory.performed",
|
|
240
|
+
"security_advisory.published",
|
|
241
|
+
"security_advisory.updated",
|
|
242
|
+
"security_advisory.withdrawn",
|
|
243
|
+
"sponsorship",
|
|
244
|
+
"sponsorship.cancelled",
|
|
245
|
+
"sponsorship.created",
|
|
246
|
+
"sponsorship.edited",
|
|
247
|
+
"sponsorship.pending_cancellation",
|
|
248
|
+
"sponsorship.pending_tier_change",
|
|
249
|
+
"sponsorship.tier_changed",
|
|
250
|
+
"star",
|
|
251
|
+
"star.created",
|
|
252
|
+
"star.deleted",
|
|
253
|
+
"status",
|
|
254
|
+
"team",
|
|
255
|
+
"team.added_to_repository",
|
|
256
|
+
"team.created",
|
|
257
|
+
"team.deleted",
|
|
258
|
+
"team.edited",
|
|
259
|
+
"team.removed_from_repository",
|
|
260
|
+
"team_add",
|
|
261
|
+
"watch",
|
|
262
|
+
"watch.started",
|
|
263
|
+
"workflow_dispatch",
|
|
264
|
+
"workflow_job",
|
|
265
|
+
"workflow_job.completed",
|
|
266
|
+
"workflow_job.in_progress",
|
|
267
|
+
"workflow_job.queued",
|
|
268
|
+
"workflow_run",
|
|
269
|
+
"workflow_run.completed",
|
|
270
|
+
"workflow_run.in_progress",
|
|
271
|
+
"workflow_run.requested"
|
|
266
272
|
];
|
|
267
273
|
|
|
274
|
+
// pkg/dist-src/event-handler/on.js
|
|
268
275
|
function handleEventHandlers(state, webhookName, handler) {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
276
|
+
if (!state.hooks[webhookName]) {
|
|
277
|
+
state.hooks[webhookName] = [];
|
|
278
|
+
}
|
|
279
|
+
state.hooks[webhookName].push(handler);
|
|
273
280
|
}
|
|
274
281
|
function receiverOn(state, webhookNameOrNames, handler) {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
282
|
+
if (Array.isArray(webhookNameOrNames)) {
|
|
283
|
+
webhookNameOrNames.forEach(
|
|
284
|
+
(webhookName) => receiverOn(state, webhookName, handler)
|
|
285
|
+
);
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
if (["*", "error"].includes(webhookNameOrNames)) {
|
|
289
|
+
const webhookName = webhookNameOrNames === "*" ? "any" : webhookNameOrNames;
|
|
290
|
+
const message = `Using the "${webhookNameOrNames}" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.on${webhookName.charAt(0).toUpperCase() + webhookName.slice(1)}() method instead`;
|
|
291
|
+
throw new Error(message);
|
|
292
|
+
}
|
|
293
|
+
if (!emitterEventNames.includes(webhookNameOrNames)) {
|
|
294
|
+
state.log.warn(
|
|
295
|
+
`"${webhookNameOrNames}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`
|
|
296
|
+
);
|
|
297
|
+
}
|
|
298
|
+
handleEventHandlers(state, webhookNameOrNames, handler);
|
|
288
299
|
}
|
|
289
300
|
function receiverOnAny(state, handler) {
|
|
290
|
-
|
|
301
|
+
handleEventHandlers(state, "*", handler);
|
|
291
302
|
}
|
|
292
303
|
function receiverOnError(state, handler) {
|
|
293
|
-
|
|
304
|
+
handleEventHandlers(state, "error", handler);
|
|
294
305
|
}
|
|
295
306
|
|
|
296
|
-
//
|
|
297
|
-
|
|
298
|
-
|
|
307
|
+
// pkg/dist-src/event-handler/receive.js
|
|
308
|
+
import AggregateError from "aggregate-error";
|
|
309
|
+
|
|
310
|
+
// pkg/dist-src/event-handler/wrap-error-handler.js
|
|
299
311
|
function wrapErrorHandler(handler, error) {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
312
|
+
let returnValue;
|
|
313
|
+
try {
|
|
314
|
+
returnValue = handler(error);
|
|
315
|
+
} catch (error2) {
|
|
316
|
+
console.log('FATAL: Error occurred in "error" event handler');
|
|
317
|
+
console.log(error2);
|
|
318
|
+
}
|
|
319
|
+
if (returnValue && returnValue.catch) {
|
|
320
|
+
returnValue.catch((error2) => {
|
|
321
|
+
console.log('FATAL: Error occurred in "error" event handler');
|
|
322
|
+
console.log(error2);
|
|
323
|
+
});
|
|
324
|
+
}
|
|
314
325
|
}
|
|
315
326
|
|
|
316
|
-
//
|
|
327
|
+
// pkg/dist-src/event-handler/receive.js
|
|
317
328
|
function getHooks(state, eventPayloadAction, eventName) {
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
329
|
+
const hooks = [state.hooks[eventName], state.hooks["*"]];
|
|
330
|
+
if (eventPayloadAction) {
|
|
331
|
+
hooks.unshift(state.hooks[`${eventName}.${eventPayloadAction}`]);
|
|
332
|
+
}
|
|
333
|
+
return [].concat(...hooks.filter(Boolean));
|
|
323
334
|
}
|
|
324
|
-
// main handler function
|
|
325
335
|
function receiverHandle(state, event) {
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
336
|
+
const errorHandlers = state.hooks.error || [];
|
|
337
|
+
if (event instanceof Error) {
|
|
338
|
+
const error = Object.assign(new AggregateError([event]), {
|
|
339
|
+
event,
|
|
340
|
+
errors: [event]
|
|
341
|
+
});
|
|
342
|
+
errorHandlers.forEach((handler) => wrapErrorHandler(handler, error));
|
|
343
|
+
return Promise.reject(error);
|
|
344
|
+
}
|
|
345
|
+
if (!event || !event.name) {
|
|
346
|
+
throw new AggregateError(["Event name not passed"]);
|
|
347
|
+
}
|
|
348
|
+
if (!event.payload) {
|
|
349
|
+
throw new AggregateError(["Event payload not passed"]);
|
|
350
|
+
}
|
|
351
|
+
const hooks = getHooks(
|
|
352
|
+
state,
|
|
353
|
+
"action" in event.payload ? event.payload.action : null,
|
|
354
|
+
event.name
|
|
355
|
+
);
|
|
356
|
+
if (hooks.length === 0) {
|
|
357
|
+
return Promise.resolve();
|
|
358
|
+
}
|
|
359
|
+
const errors = [];
|
|
360
|
+
const promises = hooks.map((handler) => {
|
|
361
|
+
let promise = Promise.resolve(event);
|
|
362
|
+
if (state.transform) {
|
|
363
|
+
promise = promise.then(state.transform);
|
|
340
364
|
}
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
365
|
+
return promise.then((event2) => {
|
|
366
|
+
return handler(event2);
|
|
367
|
+
}).catch((error) => errors.push(Object.assign(error, { event })));
|
|
368
|
+
});
|
|
369
|
+
return Promise.all(promises).then(() => {
|
|
370
|
+
if (errors.length === 0) {
|
|
371
|
+
return;
|
|
345
372
|
}
|
|
346
|
-
const
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
promise = promise.then(state.transform);
|
|
351
|
-
}
|
|
352
|
-
return promise
|
|
353
|
-
.then((event) => {
|
|
354
|
-
return handler(event);
|
|
355
|
-
})
|
|
356
|
-
.catch((error) => errors.push(Object.assign(error, { event })));
|
|
357
|
-
});
|
|
358
|
-
return Promise.all(promises).then(() => {
|
|
359
|
-
if (errors.length === 0) {
|
|
360
|
-
return;
|
|
361
|
-
}
|
|
362
|
-
const error = new AggregateError(errors);
|
|
363
|
-
Object.assign(error, {
|
|
364
|
-
event,
|
|
365
|
-
errors,
|
|
366
|
-
});
|
|
367
|
-
errorHandlers.forEach((handler) => wrapErrorHandler(handler, error));
|
|
368
|
-
throw error;
|
|
373
|
+
const error = new AggregateError(errors);
|
|
374
|
+
Object.assign(error, {
|
|
375
|
+
event,
|
|
376
|
+
errors
|
|
369
377
|
});
|
|
378
|
+
errorHandlers.forEach((handler) => wrapErrorHandler(handler, error));
|
|
379
|
+
throw error;
|
|
380
|
+
});
|
|
370
381
|
}
|
|
371
382
|
|
|
383
|
+
// pkg/dist-src/event-handler/remove-listener.js
|
|
372
384
|
function removeListener(state, webhookNameOrNames, handler) {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
}
|
|
385
|
+
if (Array.isArray(webhookNameOrNames)) {
|
|
386
|
+
webhookNameOrNames.forEach(
|
|
387
|
+
(webhookName) => removeListener(state, webhookName, handler)
|
|
388
|
+
);
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
if (!state.hooks[webhookNameOrNames]) {
|
|
392
|
+
return;
|
|
393
|
+
}
|
|
394
|
+
for (let i = state.hooks[webhookNameOrNames].length - 1; i >= 0; i--) {
|
|
395
|
+
if (state.hooks[webhookNameOrNames][i] === handler) {
|
|
396
|
+
state.hooks[webhookNameOrNames].splice(i, 1);
|
|
397
|
+
return;
|
|
387
398
|
}
|
|
399
|
+
}
|
|
388
400
|
}
|
|
389
401
|
|
|
402
|
+
// pkg/dist-src/event-handler/index.js
|
|
390
403
|
function createEventHandler(options) {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
404
|
+
const state = {
|
|
405
|
+
hooks: {},
|
|
406
|
+
log: createLogger(options && options.log)
|
|
407
|
+
};
|
|
408
|
+
if (options && options.transform) {
|
|
409
|
+
state.transform = options.transform;
|
|
410
|
+
}
|
|
411
|
+
return {
|
|
412
|
+
on: receiverOn.bind(null, state),
|
|
413
|
+
onAny: receiverOnAny.bind(null, state),
|
|
414
|
+
onError: receiverOnError.bind(null, state),
|
|
415
|
+
removeListener: removeListener.bind(null, state),
|
|
416
|
+
receive: receiverHandle.bind(null, state)
|
|
417
|
+
};
|
|
405
418
|
}
|
|
406
419
|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
420
|
+
// pkg/dist-src/sign.js
|
|
421
|
+
import { sign as signMethod } from "@octokit/webhooks-methods";
|
|
422
|
+
|
|
423
|
+
// pkg/dist-src/to-normalized-json-string.js
|
|
410
424
|
function toNormalizedJsonString(payload) {
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
425
|
+
const payloadString = JSON.stringify(payload);
|
|
426
|
+
return payloadString.replace(/[^\\]\\u[\da-f]{4}/g, (s) => {
|
|
427
|
+
return s.substr(0, 3) + s.substr(3).toUpperCase();
|
|
428
|
+
});
|
|
415
429
|
}
|
|
416
430
|
|
|
431
|
+
// pkg/dist-src/sign.js
|
|
417
432
|
async function sign(secret, payload) {
|
|
418
|
-
|
|
433
|
+
return signMethod(
|
|
434
|
+
secret,
|
|
435
|
+
typeof payload === "string" ? payload : toNormalizedJsonString(payload)
|
|
436
|
+
);
|
|
419
437
|
}
|
|
420
438
|
|
|
439
|
+
// pkg/dist-src/verify.js
|
|
440
|
+
import { verify as verifyMethod } from "@octokit/webhooks-methods";
|
|
421
441
|
async function verify(secret, payload, signature) {
|
|
422
|
-
|
|
442
|
+
return verifyMethod(
|
|
443
|
+
secret,
|
|
444
|
+
typeof payload === "string" ? payload : toNormalizedJsonString(payload),
|
|
445
|
+
signature
|
|
446
|
+
);
|
|
423
447
|
}
|
|
424
448
|
|
|
449
|
+
// pkg/dist-src/verify-and-receive.js
|
|
450
|
+
import { verify as verify2 } from "@octokit/webhooks-methods";
|
|
425
451
|
async function verifyAndReceive(state, event) {
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
452
|
+
const matchesSignature = await verify2(
|
|
453
|
+
state.secret,
|
|
454
|
+
typeof event.payload === "object" ? toNormalizedJsonString(event.payload) : event.payload,
|
|
455
|
+
event.signature
|
|
456
|
+
);
|
|
457
|
+
if (!matchesSignature) {
|
|
458
|
+
const error = new Error(
|
|
459
|
+
"[@octokit/webhooks] signature does not match event payload and secret"
|
|
460
|
+
);
|
|
461
|
+
return state.eventHandler.receive(
|
|
462
|
+
Object.assign(error, { event, status: 400 })
|
|
463
|
+
);
|
|
464
|
+
}
|
|
465
|
+
return state.eventHandler.receive({
|
|
466
|
+
id: event.id,
|
|
467
|
+
name: event.name,
|
|
468
|
+
payload: typeof event.payload === "string" ? JSON.parse(event.payload) : event.payload
|
|
469
|
+
});
|
|
441
470
|
}
|
|
442
471
|
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
472
|
+
// pkg/dist-src/middleware/node/get-missing-headers.js
|
|
473
|
+
var WEBHOOK_HEADERS = [
|
|
474
|
+
"x-github-event",
|
|
475
|
+
"x-hub-signature-256",
|
|
476
|
+
"x-github-delivery"
|
|
447
477
|
];
|
|
448
|
-
// https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#delivery-headers
|
|
449
478
|
function getMissingHeaders(request) {
|
|
450
|
-
|
|
479
|
+
return WEBHOOK_HEADERS.filter((header) => !(header in request.headers));
|
|
451
480
|
}
|
|
452
481
|
|
|
453
|
-
//
|
|
482
|
+
// pkg/dist-src/middleware/node/get-payload.js
|
|
483
|
+
import AggregateError2 from "aggregate-error";
|
|
454
484
|
function getPayload(request) {
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
485
|
+
if (request.body) {
|
|
486
|
+
if (typeof request.body !== "string") {
|
|
487
|
+
console.warn(
|
|
488
|
+
"[@octokit/webhooks] Passing the payload as a JSON object in `request.body` is deprecated and will be removed in a future release of `@octokit/webhooks`, please pass it as a a `string` instead."
|
|
489
|
+
);
|
|
490
|
+
}
|
|
491
|
+
return Promise.resolve(request.body);
|
|
492
|
+
}
|
|
493
|
+
return new Promise((resolve, reject) => {
|
|
494
|
+
let data = "";
|
|
495
|
+
request.setEncoding("utf8");
|
|
496
|
+
request.on("error", (error) => reject(new AggregateError2([error])));
|
|
497
|
+
request.on("data", (chunk) => data += chunk);
|
|
498
|
+
request.on("end", () => {
|
|
499
|
+
try {
|
|
500
|
+
JSON.parse(data);
|
|
501
|
+
resolve(data);
|
|
502
|
+
} catch (error) {
|
|
503
|
+
error.message = "Invalid JSON";
|
|
504
|
+
error.status = 400;
|
|
505
|
+
reject(new AggregateError2([error]));
|
|
506
|
+
}
|
|
475
507
|
});
|
|
508
|
+
});
|
|
476
509
|
}
|
|
477
510
|
|
|
511
|
+
// pkg/dist-src/middleware/node/middleware.js
|
|
478
512
|
async function middleware(webhooks, options, request, response, next) {
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
const missingHeaders = getMissingHeaders(request).join(", ");
|
|
503
|
-
if (missingHeaders) {
|
|
504
|
-
response.writeHead(400, {
|
|
505
|
-
"content-type": "application/json",
|
|
506
|
-
});
|
|
507
|
-
response.end(JSON.stringify({
|
|
508
|
-
error: `Required headers missing: ${missingHeaders}`,
|
|
509
|
-
}));
|
|
510
|
-
return;
|
|
511
|
-
}
|
|
512
|
-
const eventName = request.headers["x-github-event"];
|
|
513
|
-
const signatureSHA256 = request.headers["x-hub-signature-256"];
|
|
514
|
-
const id = request.headers["x-github-delivery"];
|
|
515
|
-
options.log.debug(`${eventName} event received (id: ${id})`);
|
|
516
|
-
// GitHub will abort the request if it does not receive a response within 10s
|
|
517
|
-
// See https://github.com/octokit/webhooks.js/issues/185
|
|
518
|
-
let didTimeout = false;
|
|
519
|
-
const timeout = setTimeout(() => {
|
|
520
|
-
didTimeout = true;
|
|
521
|
-
response.statusCode = 202;
|
|
522
|
-
response.end("still processing\n");
|
|
523
|
-
}, 9000).unref();
|
|
524
|
-
try {
|
|
525
|
-
const payload = await getPayload(request);
|
|
526
|
-
await webhooks.verifyAndReceive({
|
|
527
|
-
id: id,
|
|
528
|
-
name: eventName,
|
|
529
|
-
payload: payload,
|
|
530
|
-
signature: signatureSHA256,
|
|
531
|
-
});
|
|
532
|
-
clearTimeout(timeout);
|
|
533
|
-
if (didTimeout)
|
|
534
|
-
return;
|
|
535
|
-
response.end("ok\n");
|
|
536
|
-
}
|
|
537
|
-
catch (error) {
|
|
538
|
-
clearTimeout(timeout);
|
|
539
|
-
if (didTimeout)
|
|
540
|
-
return;
|
|
541
|
-
const err = Array.from(error)[0];
|
|
542
|
-
const errorMessage = err.message
|
|
543
|
-
? `${err.name}: ${err.message}`
|
|
544
|
-
: "Error: An Unspecified error occurred";
|
|
545
|
-
response.statusCode = typeof err.status !== "undefined" ? err.status : 500;
|
|
546
|
-
options.log.error(error);
|
|
547
|
-
response.end(JSON.stringify({
|
|
548
|
-
error: errorMessage,
|
|
549
|
-
}));
|
|
513
|
+
let pathname;
|
|
514
|
+
try {
|
|
515
|
+
pathname = new URL(request.url, "http://localhost").pathname;
|
|
516
|
+
} catch (error) {
|
|
517
|
+
response.writeHead(422, {
|
|
518
|
+
"content-type": "application/json"
|
|
519
|
+
});
|
|
520
|
+
response.end(
|
|
521
|
+
JSON.stringify({
|
|
522
|
+
error: `Request URL could not be parsed: ${request.url}`
|
|
523
|
+
})
|
|
524
|
+
);
|
|
525
|
+
return;
|
|
526
|
+
}
|
|
527
|
+
const isUnknownRoute = request.method !== "POST" || pathname !== options.path;
|
|
528
|
+
const isExpressMiddleware = typeof next === "function";
|
|
529
|
+
if (isUnknownRoute) {
|
|
530
|
+
if (isExpressMiddleware) {
|
|
531
|
+
return next();
|
|
532
|
+
} else {
|
|
533
|
+
return options.onUnhandledRequest(request, response);
|
|
550
534
|
}
|
|
535
|
+
}
|
|
536
|
+
if (!request.headers["content-type"] || !request.headers["content-type"].startsWith("application/json")) {
|
|
537
|
+
response.writeHead(415, {
|
|
538
|
+
"content-type": "application/json",
|
|
539
|
+
accept: "application/json"
|
|
540
|
+
});
|
|
541
|
+
response.end(
|
|
542
|
+
JSON.stringify({
|
|
543
|
+
error: `Unsupported "Content-Type" header value. Must be "application/json"`
|
|
544
|
+
})
|
|
545
|
+
);
|
|
546
|
+
return;
|
|
547
|
+
}
|
|
548
|
+
const missingHeaders = getMissingHeaders(request).join(", ");
|
|
549
|
+
if (missingHeaders) {
|
|
550
|
+
response.writeHead(400, {
|
|
551
|
+
"content-type": "application/json"
|
|
552
|
+
});
|
|
553
|
+
response.end(
|
|
554
|
+
JSON.stringify({
|
|
555
|
+
error: `Required headers missing: ${missingHeaders}`
|
|
556
|
+
})
|
|
557
|
+
);
|
|
558
|
+
return;
|
|
559
|
+
}
|
|
560
|
+
const eventName = request.headers["x-github-event"];
|
|
561
|
+
const signatureSHA256 = request.headers["x-hub-signature-256"];
|
|
562
|
+
const id = request.headers["x-github-delivery"];
|
|
563
|
+
options.log.debug(`${eventName} event received (id: ${id})`);
|
|
564
|
+
let didTimeout = false;
|
|
565
|
+
const timeout = setTimeout(() => {
|
|
566
|
+
didTimeout = true;
|
|
567
|
+
response.statusCode = 202;
|
|
568
|
+
response.end("still processing\n");
|
|
569
|
+
}, 9e3).unref();
|
|
570
|
+
try {
|
|
571
|
+
const payload = await getPayload(request);
|
|
572
|
+
await webhooks.verifyAndReceive({
|
|
573
|
+
id,
|
|
574
|
+
name: eventName,
|
|
575
|
+
payload,
|
|
576
|
+
signature: signatureSHA256
|
|
577
|
+
});
|
|
578
|
+
clearTimeout(timeout);
|
|
579
|
+
if (didTimeout)
|
|
580
|
+
return;
|
|
581
|
+
response.end("ok\n");
|
|
582
|
+
} catch (error) {
|
|
583
|
+
clearTimeout(timeout);
|
|
584
|
+
if (didTimeout)
|
|
585
|
+
return;
|
|
586
|
+
const err = Array.from(error)[0];
|
|
587
|
+
const errorMessage = err.message ? `${err.name}: ${err.message}` : "Error: An Unspecified error occurred";
|
|
588
|
+
response.statusCode = typeof err.status !== "undefined" ? err.status : 500;
|
|
589
|
+
options.log.error(error);
|
|
590
|
+
response.end(
|
|
591
|
+
JSON.stringify({
|
|
592
|
+
error: errorMessage
|
|
593
|
+
})
|
|
594
|
+
);
|
|
595
|
+
}
|
|
551
596
|
}
|
|
552
597
|
|
|
598
|
+
// pkg/dist-src/middleware/node/on-unhandled-request-default.js
|
|
553
599
|
function onUnhandledRequestDefault(request, response) {
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
600
|
+
response.writeHead(404, {
|
|
601
|
+
"content-type": "application/json"
|
|
602
|
+
});
|
|
603
|
+
response.end(
|
|
604
|
+
JSON.stringify({
|
|
605
|
+
error: `Unknown route: ${request.method} ${request.url}`
|
|
606
|
+
})
|
|
607
|
+
);
|
|
560
608
|
}
|
|
561
609
|
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
610
|
+
// pkg/dist-src/middleware/node/index.js
|
|
611
|
+
function createNodeMiddleware(webhooks, {
|
|
612
|
+
path = "/api/github/webhooks",
|
|
613
|
+
onUnhandledRequest = onUnhandledRequestDefault,
|
|
614
|
+
log = createLogger()
|
|
615
|
+
} = {}) {
|
|
616
|
+
const deprecateOnUnhandledRequest = (request, response) => {
|
|
617
|
+
console.warn(
|
|
618
|
+
"[@octokit/webhooks] `onUnhandledRequest()` is deprecated and will be removed in a future release of `@octokit/webhooks`"
|
|
619
|
+
);
|
|
620
|
+
return onUnhandledRequest(request, response);
|
|
621
|
+
};
|
|
622
|
+
return middleware.bind(null, webhooks, {
|
|
623
|
+
path,
|
|
624
|
+
onUnhandledRequest: deprecateOnUnhandledRequest,
|
|
625
|
+
log
|
|
626
|
+
});
|
|
568
627
|
}
|
|
569
628
|
|
|
570
|
-
//
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
}
|
|
576
|
-
const state = {
|
|
577
|
-
eventHandler: createEventHandler(options),
|
|
578
|
-
secret: options.secret,
|
|
579
|
-
hooks: {},
|
|
580
|
-
log: createLogger(options.log),
|
|
581
|
-
};
|
|
582
|
-
this.sign = sign.bind(null, options.secret);
|
|
583
|
-
this.verify = verify.bind(null, options.secret);
|
|
584
|
-
this.on = state.eventHandler.on;
|
|
585
|
-
this.onAny = state.eventHandler.onAny;
|
|
586
|
-
this.onError = state.eventHandler.onError;
|
|
587
|
-
this.removeListener = state.eventHandler.removeListener;
|
|
588
|
-
this.receive = state.eventHandler.receive;
|
|
589
|
-
this.verifyAndReceive = verifyAndReceive.bind(null, state);
|
|
629
|
+
// pkg/dist-src/index.js
|
|
630
|
+
var Webhooks = class {
|
|
631
|
+
constructor(options) {
|
|
632
|
+
if (!options || !options.secret) {
|
|
633
|
+
throw new Error("[@octokit/webhooks] options.secret required");
|
|
590
634
|
}
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
635
|
+
const state = {
|
|
636
|
+
eventHandler: createEventHandler(options),
|
|
637
|
+
secret: options.secret,
|
|
638
|
+
hooks: {},
|
|
639
|
+
log: createLogger(options.log)
|
|
640
|
+
};
|
|
641
|
+
this.sign = sign.bind(null, options.secret);
|
|
642
|
+
this.verify = (eventPayload, signature) => {
|
|
643
|
+
if (typeof eventPayload === "object") {
|
|
644
|
+
console.warn(
|
|
645
|
+
"[@octokit/webhooks] Passing a JSON payload object to `verify()` is deprecated and the functionality will be removed in a future release of `@octokit/webhooks`"
|
|
646
|
+
);
|
|
647
|
+
}
|
|
648
|
+
return verify(options.secret, eventPayload, signature);
|
|
649
|
+
};
|
|
650
|
+
this.on = state.eventHandler.on;
|
|
651
|
+
this.onAny = state.eventHandler.onAny;
|
|
652
|
+
this.onError = state.eventHandler.onError;
|
|
653
|
+
this.removeListener = state.eventHandler.removeListener;
|
|
654
|
+
this.receive = state.eventHandler.receive;
|
|
655
|
+
this.verifyAndReceive = (options2) => {
|
|
656
|
+
if (typeof options2.payload === "object") {
|
|
657
|
+
console.warn(
|
|
658
|
+
"[@octokit/webhooks] Passing a JSON payload object to `verifyAndReceive()` is deprecated and the functionality will be removed in a future release of `@octokit/webhooks`"
|
|
659
|
+
);
|
|
660
|
+
}
|
|
661
|
+
return verifyAndReceive(state, options2);
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
};
|
|
665
|
+
export {
|
|
666
|
+
Webhooks,
|
|
667
|
+
createEventHandler,
|
|
668
|
+
createNodeMiddleware,
|
|
669
|
+
emitterEventNames
|
|
670
|
+
};
|