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