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,19 +1,49 @@
|
|
|
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
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
30
|
+
// pkg/dist-src/index.js
|
|
31
|
+
var dist_src_exports = {};
|
|
32
|
+
__export(dist_src_exports, {
|
|
33
|
+
OAuthApp: () => OAuthApp,
|
|
34
|
+
createAWSLambdaAPIGatewayV2Handler: () => createAWSLambdaAPIGatewayV2Handler,
|
|
35
|
+
createCloudflareHandler: () => createCloudflareHandler,
|
|
36
|
+
createNodeMiddleware: () => createNodeMiddleware,
|
|
37
|
+
createWebWorkerHandler: () => createWebWorkerHandler,
|
|
38
|
+
handleRequest: () => handleRequest
|
|
39
|
+
});
|
|
40
|
+
module.exports = __toCommonJS(dist_src_exports);
|
|
41
|
+
var import_auth_oauth_app = require("@octokit/auth-oauth-app");
|
|
14
42
|
|
|
15
|
-
|
|
43
|
+
// pkg/dist-src/version.js
|
|
44
|
+
var VERSION = "4.2.2";
|
|
16
45
|
|
|
46
|
+
// pkg/dist-src/add-event-handler.js
|
|
17
47
|
function addEventHandler(state, eventName, eventHandler) {
|
|
18
48
|
if (Array.isArray(eventName)) {
|
|
19
49
|
for (const singleEventName of eventName) {
|
|
@@ -27,15 +57,19 @@ function addEventHandler(state, eventName, eventHandler) {
|
|
|
27
57
|
state.eventHandlers[eventName].push(eventHandler);
|
|
28
58
|
}
|
|
29
59
|
|
|
30
|
-
|
|
31
|
-
|
|
60
|
+
// pkg/dist-src/oauth-app-octokit.js
|
|
61
|
+
var import_core = require("@octokit/core");
|
|
62
|
+
var import_universal_user_agent = require("universal-user-agent");
|
|
63
|
+
var OAuthAppOctokit = import_core.Octokit.defaults({
|
|
64
|
+
userAgent: `octokit-oauth-app.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`
|
|
32
65
|
});
|
|
33
66
|
|
|
67
|
+
// pkg/dist-src/methods/get-user-octokit.js
|
|
68
|
+
var import_auth_oauth_user = require("@octokit/auth-oauth-user");
|
|
69
|
+
|
|
70
|
+
// pkg/dist-src/emit-event.js
|
|
34
71
|
async function emitEvent(state, context) {
|
|
35
|
-
const {
|
|
36
|
-
name,
|
|
37
|
-
action
|
|
38
|
-
} = context;
|
|
72
|
+
const { name, action } = context;
|
|
39
73
|
if (state.eventHandlers[`${name}.${action}`]) {
|
|
40
74
|
for (const eventHandler of state.eventHandlers[`${name}.${action}`]) {
|
|
41
75
|
await eventHandler(context);
|
|
@@ -48,14 +82,15 @@ async function emitEvent(state, context) {
|
|
|
48
82
|
}
|
|
49
83
|
}
|
|
50
84
|
|
|
85
|
+
// pkg/dist-src/methods/get-user-octokit.js
|
|
51
86
|
async function getUserOctokitWithState(state, options) {
|
|
52
87
|
return state.octokit.auth({
|
|
53
88
|
type: "oauth-user",
|
|
54
89
|
...options,
|
|
55
|
-
async factory(
|
|
90
|
+
async factory(options2) {
|
|
56
91
|
const octokit = new state.Octokit({
|
|
57
|
-
authStrategy:
|
|
58
|
-
auth:
|
|
92
|
+
authStrategy: import_auth_oauth_user.createOAuthUserAuth,
|
|
93
|
+
auth: options2
|
|
59
94
|
});
|
|
60
95
|
const authentication = await octokit.auth({
|
|
61
96
|
type: "get"
|
|
@@ -73,24 +108,16 @@ async function getUserOctokitWithState(state, options) {
|
|
|
73
108
|
});
|
|
74
109
|
}
|
|
75
110
|
|
|
111
|
+
// pkg/dist-src/methods/get-web-flow-authorization-url.js
|
|
112
|
+
var OAuthMethods = __toESM(require("@octokit/oauth-methods"));
|
|
76
113
|
function getWebFlowAuthorizationUrlWithState(state, options) {
|
|
77
|
-
let allowSignup;
|
|
78
|
-
if (options.allowSignup === undefined && state.allowSignup === undefined) {
|
|
79
|
-
allowSignup = true;
|
|
80
|
-
} else if (options.allowSignup === undefined && state.allowSignup !== undefined) {
|
|
81
|
-
allowSignup = state.allowSignup;
|
|
82
|
-
} else if (state.allowSignup === undefined && options.allowSignup !== undefined) {
|
|
83
|
-
allowSignup = options.allowSignup;
|
|
84
|
-
} else {
|
|
85
|
-
allowSignup = options.allowSignup || state.allowSignup;
|
|
86
|
-
}
|
|
87
114
|
const optionsWithDefaults = {
|
|
88
115
|
clientId: state.clientId,
|
|
89
116
|
request: state.octokit.request,
|
|
90
117
|
...options,
|
|
91
|
-
allowSignup,
|
|
92
|
-
redirectUrl: options.redirectUrl
|
|
93
|
-
scopes: options.scopes
|
|
118
|
+
allowSignup: state.allowSignup ?? options.allowSignup,
|
|
119
|
+
redirectUrl: options.redirectUrl ?? state.redirectUrl,
|
|
120
|
+
scopes: options.scopes ?? state.defaultScopes
|
|
94
121
|
};
|
|
95
122
|
return OAuthMethods.getWebFlowAuthorizationUrl({
|
|
96
123
|
clientType: state.clientType,
|
|
@@ -98,6 +125,8 @@ function getWebFlowAuthorizationUrlWithState(state, options) {
|
|
|
98
125
|
});
|
|
99
126
|
}
|
|
100
127
|
|
|
128
|
+
// pkg/dist-src/methods/create-token.js
|
|
129
|
+
var OAuthAppAuth = __toESM(require("@octokit/auth-oauth-app"));
|
|
101
130
|
async function createTokenWithState(state, options) {
|
|
102
131
|
const authentication = await state.octokit.auth({
|
|
103
132
|
type: "oauth-user",
|
|
@@ -123,13 +152,13 @@ async function createTokenWithState(state, options) {
|
|
|
123
152
|
}
|
|
124
153
|
})
|
|
125
154
|
});
|
|
126
|
-
return {
|
|
127
|
-
authentication
|
|
128
|
-
};
|
|
155
|
+
return { authentication };
|
|
129
156
|
}
|
|
130
157
|
|
|
158
|
+
// pkg/dist-src/methods/check-token.js
|
|
159
|
+
var OAuthMethods2 = __toESM(require("@octokit/oauth-methods"));
|
|
131
160
|
async function checkTokenWithState(state, options) {
|
|
132
|
-
const result = await
|
|
161
|
+
const result = await OAuthMethods2.checkToken({
|
|
133
162
|
// @ts-expect-error not worth the extra code to appease TS
|
|
134
163
|
clientType: state.clientType,
|
|
135
164
|
clientId: state.clientId,
|
|
@@ -137,13 +166,13 @@ async function checkTokenWithState(state, options) {
|
|
|
137
166
|
request: state.octokit.request,
|
|
138
167
|
...options
|
|
139
168
|
});
|
|
140
|
-
Object.assign(result.authentication, {
|
|
141
|
-
type: "token",
|
|
142
|
-
tokenType: "oauth"
|
|
143
|
-
});
|
|
169
|
+
Object.assign(result.authentication, { type: "token", tokenType: "oauth" });
|
|
144
170
|
return result;
|
|
145
171
|
}
|
|
146
172
|
|
|
173
|
+
// pkg/dist-src/methods/reset-token.js
|
|
174
|
+
var OAuthMethods3 = __toESM(require("@octokit/oauth-methods"));
|
|
175
|
+
var import_auth_oauth_user2 = require("@octokit/auth-oauth-user");
|
|
147
176
|
async function resetTokenWithState(state, options) {
|
|
148
177
|
const optionsWithDefaults = {
|
|
149
178
|
clientId: state.clientId,
|
|
@@ -152,37 +181,34 @@ async function resetTokenWithState(state, options) {
|
|
|
152
181
|
...options
|
|
153
182
|
};
|
|
154
183
|
if (state.clientType === "oauth-app") {
|
|
155
|
-
const
|
|
184
|
+
const response2 = await OAuthMethods3.resetToken({
|
|
156
185
|
clientType: "oauth-app",
|
|
157
186
|
...optionsWithDefaults
|
|
158
187
|
});
|
|
159
|
-
const
|
|
188
|
+
const authentication2 = Object.assign(response2.authentication, {
|
|
160
189
|
type: "token",
|
|
161
190
|
tokenType: "oauth"
|
|
162
191
|
});
|
|
163
192
|
await emitEvent(state, {
|
|
164
193
|
name: "token",
|
|
165
194
|
action: "reset",
|
|
166
|
-
token:
|
|
167
|
-
scopes:
|
|
168
|
-
authentication:
|
|
195
|
+
token: response2.authentication.token,
|
|
196
|
+
scopes: response2.authentication.scopes || void 0,
|
|
197
|
+
authentication: authentication2,
|
|
169
198
|
octokit: new state.Octokit({
|
|
170
|
-
authStrategy:
|
|
199
|
+
authStrategy: import_auth_oauth_user2.createOAuthUserAuth,
|
|
171
200
|
auth: {
|
|
172
201
|
clientType: state.clientType,
|
|
173
202
|
clientId: state.clientId,
|
|
174
203
|
clientSecret: state.clientSecret,
|
|
175
|
-
token:
|
|
176
|
-
scopes:
|
|
204
|
+
token: response2.authentication.token,
|
|
205
|
+
scopes: response2.authentication.scopes
|
|
177
206
|
}
|
|
178
207
|
})
|
|
179
208
|
});
|
|
180
|
-
return {
|
|
181
|
-
...response,
|
|
182
|
-
authentication
|
|
183
|
-
};
|
|
209
|
+
return { ...response2, authentication: authentication2 };
|
|
184
210
|
}
|
|
185
|
-
const response = await
|
|
211
|
+
const response = await OAuthMethods3.resetToken({
|
|
186
212
|
clientType: "github-app",
|
|
187
213
|
...optionsWithDefaults
|
|
188
214
|
});
|
|
@@ -194,9 +220,9 @@ async function resetTokenWithState(state, options) {
|
|
|
194
220
|
name: "token",
|
|
195
221
|
action: "reset",
|
|
196
222
|
token: response.authentication.token,
|
|
197
|
-
authentication
|
|
223
|
+
authentication,
|
|
198
224
|
octokit: new state.Octokit({
|
|
199
|
-
authStrategy:
|
|
225
|
+
authStrategy: import_auth_oauth_user2.createOAuthUserAuth,
|
|
200
226
|
auth: {
|
|
201
227
|
clientType: state.clientType,
|
|
202
228
|
clientId: state.clientId,
|
|
@@ -205,17 +231,19 @@ async function resetTokenWithState(state, options) {
|
|
|
205
231
|
}
|
|
206
232
|
})
|
|
207
233
|
});
|
|
208
|
-
return {
|
|
209
|
-
...response,
|
|
210
|
-
authentication
|
|
211
|
-
};
|
|
234
|
+
return { ...response, authentication };
|
|
212
235
|
}
|
|
213
236
|
|
|
237
|
+
// pkg/dist-src/methods/refresh-token.js
|
|
238
|
+
var OAuthMethods4 = __toESM(require("@octokit/oauth-methods"));
|
|
239
|
+
var import_auth_oauth_user3 = require("@octokit/auth-oauth-user");
|
|
214
240
|
async function refreshTokenWithState(state, options) {
|
|
215
241
|
if (state.clientType === "oauth-app") {
|
|
216
|
-
throw new Error(
|
|
242
|
+
throw new Error(
|
|
243
|
+
"[@octokit/oauth-app] app.refreshToken() is not supported for OAuth Apps"
|
|
244
|
+
);
|
|
217
245
|
}
|
|
218
|
-
const response = await
|
|
246
|
+
const response = await OAuthMethods4.refreshToken({
|
|
219
247
|
clientType: "github-app",
|
|
220
248
|
clientId: state.clientId,
|
|
221
249
|
clientSecret: state.clientSecret,
|
|
@@ -230,9 +258,9 @@ async function refreshTokenWithState(state, options) {
|
|
|
230
258
|
name: "token",
|
|
231
259
|
action: "refreshed",
|
|
232
260
|
token: response.authentication.token,
|
|
233
|
-
authentication
|
|
261
|
+
authentication,
|
|
234
262
|
octokit: new state.Octokit({
|
|
235
|
-
authStrategy:
|
|
263
|
+
authStrategy: import_auth_oauth_user3.createOAuthUserAuth,
|
|
236
264
|
auth: {
|
|
237
265
|
clientType: state.clientType,
|
|
238
266
|
clientId: state.clientId,
|
|
@@ -241,17 +269,19 @@ async function refreshTokenWithState(state, options) {
|
|
|
241
269
|
}
|
|
242
270
|
})
|
|
243
271
|
});
|
|
244
|
-
return {
|
|
245
|
-
...response,
|
|
246
|
-
authentication
|
|
247
|
-
};
|
|
272
|
+
return { ...response, authentication };
|
|
248
273
|
}
|
|
249
274
|
|
|
275
|
+
// pkg/dist-src/methods/scope-token.js
|
|
276
|
+
var OAuthMethods5 = __toESM(require("@octokit/oauth-methods"));
|
|
277
|
+
var import_auth_oauth_user4 = require("@octokit/auth-oauth-user");
|
|
250
278
|
async function scopeTokenWithState(state, options) {
|
|
251
279
|
if (state.clientType === "oauth-app") {
|
|
252
|
-
throw new Error(
|
|
280
|
+
throw new Error(
|
|
281
|
+
"[@octokit/oauth-app] app.scopeToken() is not supported for OAuth Apps"
|
|
282
|
+
);
|
|
253
283
|
}
|
|
254
|
-
const response = await
|
|
284
|
+
const response = await OAuthMethods5.scopeToken({
|
|
255
285
|
clientType: "github-app",
|
|
256
286
|
clientId: state.clientId,
|
|
257
287
|
clientSecret: state.clientSecret,
|
|
@@ -266,9 +296,9 @@ async function scopeTokenWithState(state, options) {
|
|
|
266
296
|
name: "token",
|
|
267
297
|
action: "scoped",
|
|
268
298
|
token: response.authentication.token,
|
|
269
|
-
authentication
|
|
299
|
+
authentication,
|
|
270
300
|
octokit: new state.Octokit({
|
|
271
|
-
authStrategy:
|
|
301
|
+
authStrategy: import_auth_oauth_user4.createOAuthUserAuth,
|
|
272
302
|
auth: {
|
|
273
303
|
clientType: state.clientType,
|
|
274
304
|
clientId: state.clientId,
|
|
@@ -277,12 +307,12 @@ async function scopeTokenWithState(state, options) {
|
|
|
277
307
|
}
|
|
278
308
|
})
|
|
279
309
|
});
|
|
280
|
-
return {
|
|
281
|
-
...response,
|
|
282
|
-
authentication
|
|
283
|
-
};
|
|
310
|
+
return { ...response, authentication };
|
|
284
311
|
}
|
|
285
312
|
|
|
313
|
+
// pkg/dist-src/methods/delete-token.js
|
|
314
|
+
var OAuthMethods6 = __toESM(require("@octokit/oauth-methods"));
|
|
315
|
+
var import_auth_unauthenticated = require("@octokit/auth-unauthenticated");
|
|
286
316
|
async function deleteTokenWithState(state, options) {
|
|
287
317
|
const optionsWithDefaults = {
|
|
288
318
|
clientId: state.clientId,
|
|
@@ -290,21 +320,22 @@ async function deleteTokenWithState(state, options) {
|
|
|
290
320
|
request: state.octokit.request,
|
|
291
321
|
...options
|
|
292
322
|
};
|
|
293
|
-
const response = state.clientType === "oauth-app" ? await
|
|
323
|
+
const response = state.clientType === "oauth-app" ? await OAuthMethods6.deleteToken({
|
|
294
324
|
clientType: "oauth-app",
|
|
295
325
|
...optionsWithDefaults
|
|
296
|
-
}) :
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
326
|
+
}) : (
|
|
327
|
+
// istanbul ignore next
|
|
328
|
+
await OAuthMethods6.deleteToken({
|
|
329
|
+
clientType: "github-app",
|
|
330
|
+
...optionsWithDefaults
|
|
331
|
+
})
|
|
332
|
+
);
|
|
302
333
|
await emitEvent(state, {
|
|
303
334
|
name: "token",
|
|
304
335
|
action: "deleted",
|
|
305
336
|
token: options.token,
|
|
306
337
|
octokit: new state.Octokit({
|
|
307
|
-
authStrategy:
|
|
338
|
+
authStrategy: import_auth_unauthenticated.createUnauthenticatedAuth,
|
|
308
339
|
auth: {
|
|
309
340
|
reason: `Handling "token.deleted" event. The access for the token has been revoked.`
|
|
310
341
|
}
|
|
@@ -313,6 +344,9 @@ async function deleteTokenWithState(state, options) {
|
|
|
313
344
|
return response;
|
|
314
345
|
}
|
|
315
346
|
|
|
347
|
+
// pkg/dist-src/methods/delete-authorization.js
|
|
348
|
+
var OAuthMethods7 = __toESM(require("@octokit/oauth-methods"));
|
|
349
|
+
var import_auth_unauthenticated2 = require("@octokit/auth-unauthenticated");
|
|
316
350
|
async function deleteAuthorizationWithState(state, options) {
|
|
317
351
|
const optionsWithDefaults = {
|
|
318
352
|
clientId: state.clientId,
|
|
@@ -320,21 +354,22 @@ async function deleteAuthorizationWithState(state, options) {
|
|
|
320
354
|
request: state.octokit.request,
|
|
321
355
|
...options
|
|
322
356
|
};
|
|
323
|
-
const response = state.clientType === "oauth-app" ? await
|
|
357
|
+
const response = state.clientType === "oauth-app" ? await OAuthMethods7.deleteAuthorization({
|
|
324
358
|
clientType: "oauth-app",
|
|
325
359
|
...optionsWithDefaults
|
|
326
|
-
}) :
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
360
|
+
}) : (
|
|
361
|
+
// istanbul ignore next
|
|
362
|
+
await OAuthMethods7.deleteAuthorization({
|
|
363
|
+
clientType: "github-app",
|
|
364
|
+
...optionsWithDefaults
|
|
365
|
+
})
|
|
366
|
+
);
|
|
332
367
|
await emitEvent(state, {
|
|
333
368
|
name: "token",
|
|
334
369
|
action: "deleted",
|
|
335
370
|
token: options.token,
|
|
336
371
|
octokit: new state.Octokit({
|
|
337
|
-
authStrategy:
|
|
372
|
+
authStrategy: import_auth_unauthenticated2.createUnauthenticatedAuth,
|
|
338
373
|
auth: {
|
|
339
374
|
reason: `Handling "token.deleted" event. The access for the token has been revoked.`
|
|
340
375
|
}
|
|
@@ -345,7 +380,7 @@ async function deleteAuthorizationWithState(state, options) {
|
|
|
345
380
|
action: "deleted",
|
|
346
381
|
token: options.token,
|
|
347
382
|
octokit: new state.Octokit({
|
|
348
|
-
authStrategy:
|
|
383
|
+
authStrategy: import_auth_unauthenticated2.createUnauthenticatedAuth,
|
|
349
384
|
auth: {
|
|
350
385
|
reason: `Handling "authorization.deleted" event. The access for the app has been revoked.`
|
|
351
386
|
}
|
|
@@ -354,10 +389,10 @@ async function deleteAuthorizationWithState(state, options) {
|
|
|
354
389
|
return response;
|
|
355
390
|
}
|
|
356
391
|
|
|
357
|
-
//
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
392
|
+
// pkg/dist-src/middleware/handle-request.js
|
|
393
|
+
var import_fromentries = __toESM(require("fromentries"));
|
|
394
|
+
async function handleRequest(app, { pathPrefix = "/api/github/oauth" }, request) {
|
|
395
|
+
var _a, _b, _c, _d, _e, _f;
|
|
361
396
|
if (request.method === "OPTIONS") {
|
|
362
397
|
return {
|
|
363
398
|
status: 200,
|
|
@@ -368,11 +403,7 @@ async function handleRequest(app, {
|
|
|
368
403
|
}
|
|
369
404
|
};
|
|
370
405
|
}
|
|
371
|
-
|
|
372
|
-
// hence the workaround using new URL()
|
|
373
|
-
const {
|
|
374
|
-
pathname
|
|
375
|
-
} = new URL(request.url, "http://localhost");
|
|
406
|
+
const { pathname } = new URL(request.url, "http://localhost");
|
|
376
407
|
const route = [request.method, pathname].join(" ");
|
|
377
408
|
const routes = {
|
|
378
409
|
getLogin: `GET ${pathPrefix}/login`,
|
|
@@ -385,7 +416,6 @@ async function handleRequest(app, {
|
|
|
385
416
|
deleteToken: `DELETE ${pathPrefix}/token`,
|
|
386
417
|
deleteGrant: `DELETE ${pathPrefix}/grant`
|
|
387
418
|
};
|
|
388
|
-
// handle unknown routes
|
|
389
419
|
if (!Object.values(routes).includes(route)) {
|
|
390
420
|
return null;
|
|
391
421
|
}
|
|
@@ -405,40 +435,30 @@ async function handleRequest(app, {
|
|
|
405
435
|
})
|
|
406
436
|
};
|
|
407
437
|
}
|
|
408
|
-
const {
|
|
409
|
-
|
|
410
|
-
} = new URL(request.url, "http://localhost");
|
|
411
|
-
const query = fromEntries(searchParams);
|
|
438
|
+
const { searchParams } = new URL(request.url, "http://localhost");
|
|
439
|
+
const query = (0, import_fromentries.default)(searchParams);
|
|
412
440
|
const headers = request.headers;
|
|
413
441
|
try {
|
|
414
|
-
var _headers$authorizatio6;
|
|
415
442
|
if (route === routes.getLogin) {
|
|
416
|
-
const {
|
|
417
|
-
url
|
|
418
|
-
} = app.getWebFlowAuthorizationUrl({
|
|
443
|
+
const { url } = app.getWebFlowAuthorizationUrl({
|
|
419
444
|
state: query.state,
|
|
420
|
-
scopes: query.scopes ? query.scopes.split(",") :
|
|
421
|
-
allowSignup: query.allowSignup ? query.allowSignup === "true" :
|
|
445
|
+
scopes: query.scopes ? query.scopes.split(",") : void 0,
|
|
446
|
+
allowSignup: query.allowSignup ? query.allowSignup === "true" : void 0,
|
|
422
447
|
redirectUrl: query.redirectUrl
|
|
423
448
|
});
|
|
424
|
-
return {
|
|
425
|
-
status: 302,
|
|
426
|
-
headers: {
|
|
427
|
-
location: url
|
|
428
|
-
}
|
|
429
|
-
};
|
|
449
|
+
return { status: 302, headers: { location: url } };
|
|
430
450
|
}
|
|
431
451
|
if (route === routes.getCallback) {
|
|
432
452
|
if (query.error) {
|
|
433
|
-
throw new Error(
|
|
453
|
+
throw new Error(
|
|
454
|
+
`[@octokit/oauth-app] ${query.error} ${query.error_description}`
|
|
455
|
+
);
|
|
434
456
|
}
|
|
435
457
|
if (!query.code) {
|
|
436
458
|
throw new Error('[@octokit/oauth-app] "code" parameter is required');
|
|
437
459
|
}
|
|
438
460
|
const {
|
|
439
|
-
authentication: {
|
|
440
|
-
token
|
|
441
|
-
}
|
|
461
|
+
authentication: { token: token2 }
|
|
442
462
|
} = await app.createToken({
|
|
443
463
|
code: query.code
|
|
444
464
|
});
|
|
@@ -449,14 +469,11 @@ async function handleRequest(app, {
|
|
|
449
469
|
},
|
|
450
470
|
text: `<h1>Token created successfully</h1>
|
|
451
471
|
|
|
452
|
-
<p>Your token is: <strong>${
|
|
472
|
+
<p>Your token is: <strong>${token2}</strong>. Copy it now as it cannot be shown again.</p>`
|
|
453
473
|
};
|
|
454
474
|
}
|
|
455
475
|
if (route === routes.createToken) {
|
|
456
|
-
const {
|
|
457
|
-
code,
|
|
458
|
-
redirectUrl
|
|
459
|
-
} = json;
|
|
476
|
+
const { code, redirectUrl } = json;
|
|
460
477
|
if (!code) {
|
|
461
478
|
throw new Error('[@octokit/oauth-app] "code" parameter is required');
|
|
462
479
|
}
|
|
@@ -464,7 +481,6 @@ async function handleRequest(app, {
|
|
|
464
481
|
code,
|
|
465
482
|
redirectUrl
|
|
466
483
|
});
|
|
467
|
-
// @ts-ignore
|
|
468
484
|
delete result.authentication.clientSecret;
|
|
469
485
|
return {
|
|
470
486
|
status: 201,
|
|
@@ -476,15 +492,15 @@ async function handleRequest(app, {
|
|
|
476
492
|
};
|
|
477
493
|
}
|
|
478
494
|
if (route === routes.getToken) {
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
495
|
+
const token2 = (_a = headers.authorization) == null ? void 0 : _a.substr("token ".length);
|
|
496
|
+
if (!token2) {
|
|
497
|
+
throw new Error(
|
|
498
|
+
'[@octokit/oauth-app] "Authorization" header is required'
|
|
499
|
+
);
|
|
483
500
|
}
|
|
484
501
|
const result = await app.checkToken({
|
|
485
|
-
token
|
|
502
|
+
token: token2
|
|
486
503
|
});
|
|
487
|
-
// @ts-ignore
|
|
488
504
|
delete result.authentication.clientSecret;
|
|
489
505
|
return {
|
|
490
506
|
status: 200,
|
|
@@ -496,15 +512,13 @@ async function handleRequest(app, {
|
|
|
496
512
|
};
|
|
497
513
|
}
|
|
498
514
|
if (route === routes.patchToken) {
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
515
|
+
const token2 = (_b = headers.authorization) == null ? void 0 : _b.substr("token ".length);
|
|
516
|
+
if (!token2) {
|
|
517
|
+
throw new Error(
|
|
518
|
+
'[@octokit/oauth-app] "Authorization" header is required'
|
|
519
|
+
);
|
|
503
520
|
}
|
|
504
|
-
const result = await app.resetToken({
|
|
505
|
-
token
|
|
506
|
-
});
|
|
507
|
-
// @ts-ignore
|
|
521
|
+
const result = await app.resetToken({ token: token2 });
|
|
508
522
|
delete result.authentication.clientSecret;
|
|
509
523
|
return {
|
|
510
524
|
status: 200,
|
|
@@ -516,21 +530,19 @@ async function handleRequest(app, {
|
|
|
516
530
|
};
|
|
517
531
|
}
|
|
518
532
|
if (route === routes.patchRefreshToken) {
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
533
|
+
const token2 = (_c = headers.authorization) == null ? void 0 : _c.substr("token ".length);
|
|
534
|
+
if (!token2) {
|
|
535
|
+
throw new Error(
|
|
536
|
+
'[@octokit/oauth-app] "Authorization" header is required'
|
|
537
|
+
);
|
|
523
538
|
}
|
|
524
|
-
const {
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
539
|
+
const { refreshToken: refreshToken2 } = json;
|
|
540
|
+
if (!refreshToken2) {
|
|
541
|
+
throw new Error(
|
|
542
|
+
"[@octokit/oauth-app] refreshToken must be sent in request body"
|
|
543
|
+
);
|
|
529
544
|
}
|
|
530
|
-
const result = await app.refreshToken({
|
|
531
|
-
refreshToken
|
|
532
|
-
});
|
|
533
|
-
// @ts-ignore
|
|
545
|
+
const result = await app.refreshToken({ refreshToken: refreshToken2 });
|
|
534
546
|
delete result.authentication.clientSecret;
|
|
535
547
|
return {
|
|
536
548
|
status: 200,
|
|
@@ -542,16 +554,16 @@ async function handleRequest(app, {
|
|
|
542
554
|
};
|
|
543
555
|
}
|
|
544
556
|
if (route === routes.scopeToken) {
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
557
|
+
const token2 = (_d = headers.authorization) == null ? void 0 : _d.substr("token ".length);
|
|
558
|
+
if (!token2) {
|
|
559
|
+
throw new Error(
|
|
560
|
+
'[@octokit/oauth-app] "Authorization" header is required'
|
|
561
|
+
);
|
|
549
562
|
}
|
|
550
563
|
const result = await app.scopeToken({
|
|
551
|
-
token,
|
|
564
|
+
token: token2,
|
|
552
565
|
...json
|
|
553
566
|
});
|
|
554
|
-
// @ts-ignore
|
|
555
567
|
delete result.authentication.clientSecret;
|
|
556
568
|
return {
|
|
557
569
|
status: 200,
|
|
@@ -563,34 +575,32 @@ async function handleRequest(app, {
|
|
|
563
575
|
};
|
|
564
576
|
}
|
|
565
577
|
if (route === routes.deleteToken) {
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
578
|
+
const token2 = (_e = headers.authorization) == null ? void 0 : _e.substr("token ".length);
|
|
579
|
+
if (!token2) {
|
|
580
|
+
throw new Error(
|
|
581
|
+
'[@octokit/oauth-app] "Authorization" header is required'
|
|
582
|
+
);
|
|
570
583
|
}
|
|
571
584
|
await app.deleteToken({
|
|
572
|
-
token
|
|
585
|
+
token: token2
|
|
573
586
|
});
|
|
574
587
|
return {
|
|
575
588
|
status: 204,
|
|
576
|
-
headers: {
|
|
577
|
-
"access-control-allow-origin": "*"
|
|
578
|
-
}
|
|
589
|
+
headers: { "access-control-allow-origin": "*" }
|
|
579
590
|
};
|
|
580
591
|
}
|
|
581
|
-
|
|
582
|
-
const token = (_headers$authorizatio6 = headers.authorization) === null || _headers$authorizatio6 === void 0 ? void 0 : _headers$authorizatio6.substr("token ".length);
|
|
592
|
+
const token = (_f = headers.authorization) == null ? void 0 : _f.substr("token ".length);
|
|
583
593
|
if (!token) {
|
|
584
|
-
throw new Error(
|
|
594
|
+
throw new Error(
|
|
595
|
+
'[@octokit/oauth-app] "Authorization" header is required'
|
|
596
|
+
);
|
|
585
597
|
}
|
|
586
598
|
await app.deleteAuthorization({
|
|
587
599
|
token
|
|
588
600
|
});
|
|
589
601
|
return {
|
|
590
602
|
status: 204,
|
|
591
|
-
headers: {
|
|
592
|
-
"access-control-allow-origin": "*"
|
|
593
|
-
}
|
|
603
|
+
headers: { "access-control-allow-origin": "*" }
|
|
594
604
|
};
|
|
595
605
|
} catch (error) {
|
|
596
606
|
return {
|
|
@@ -599,51 +609,42 @@ async function handleRequest(app, {
|
|
|
599
609
|
"content-type": "application/json",
|
|
600
610
|
"access-control-allow-origin": "*"
|
|
601
611
|
},
|
|
602
|
-
text: JSON.stringify({
|
|
603
|
-
error: error.message
|
|
604
|
-
})
|
|
612
|
+
text: JSON.stringify({ error: error.message })
|
|
605
613
|
};
|
|
606
614
|
}
|
|
607
615
|
}
|
|
608
616
|
|
|
617
|
+
// pkg/dist-src/middleware/node/parse-request.js
|
|
609
618
|
function parseRequest(request) {
|
|
610
|
-
const {
|
|
611
|
-
method,
|
|
612
|
-
url,
|
|
613
|
-
headers
|
|
614
|
-
} = request;
|
|
619
|
+
const { method, url, headers } = request;
|
|
615
620
|
async function text() {
|
|
616
|
-
const
|
|
621
|
+
const text2 = await new Promise((resolve, reject) => {
|
|
617
622
|
let bodyChunks = [];
|
|
618
|
-
request.on("error", reject).on("data", chunk => bodyChunks.push(chunk)).on("end", () => resolve(Buffer.concat(bodyChunks).toString()));
|
|
623
|
+
request.on("error", reject).on("data", (chunk) => bodyChunks.push(chunk)).on("end", () => resolve(Buffer.concat(bodyChunks).toString()));
|
|
619
624
|
});
|
|
620
|
-
return
|
|
625
|
+
return text2;
|
|
621
626
|
}
|
|
622
|
-
return {
|
|
623
|
-
method,
|
|
624
|
-
url,
|
|
625
|
-
headers,
|
|
626
|
-
text
|
|
627
|
-
};
|
|
627
|
+
return { method, url, headers, text };
|
|
628
628
|
}
|
|
629
629
|
|
|
630
|
+
// pkg/dist-src/middleware/node/send-response.js
|
|
630
631
|
function sendResponse(octokitResponse, response) {
|
|
631
632
|
response.writeHead(octokitResponse.status, octokitResponse.headers);
|
|
632
633
|
response.end(octokitResponse.text);
|
|
633
634
|
}
|
|
634
635
|
|
|
636
|
+
// pkg/dist-src/middleware/on-unhandled-request-default.js
|
|
635
637
|
function onUnhandledRequestDefault(request) {
|
|
636
638
|
return {
|
|
637
639
|
status: 404,
|
|
638
|
-
headers: {
|
|
639
|
-
"content-type": "application/json"
|
|
640
|
-
},
|
|
640
|
+
headers: { "content-type": "application/json" },
|
|
641
641
|
text: JSON.stringify({
|
|
642
642
|
error: `Unknown route: ${request.method} ${request.url}`
|
|
643
643
|
})
|
|
644
644
|
};
|
|
645
645
|
}
|
|
646
646
|
|
|
647
|
+
// pkg/dist-src/middleware/node/index.js
|
|
647
648
|
function onUnhandledRequestDefaultNode(request, response) {
|
|
648
649
|
const octokitRequest = parseRequest(request);
|
|
649
650
|
const octokitResponse = onUnhandledRequestDefault(octokitRequest);
|
|
@@ -654,14 +655,18 @@ function createNodeMiddleware(app, {
|
|
|
654
655
|
onUnhandledRequest
|
|
655
656
|
} = {}) {
|
|
656
657
|
if (onUnhandledRequest) {
|
|
657
|
-
app.octokit.log.warn(
|
|
658
|
+
app.octokit.log.warn(
|
|
659
|
+
"[@octokit/oauth-app] `onUnhandledRequest` is deprecated and will be removed from the next major version."
|
|
660
|
+
);
|
|
658
661
|
}
|
|
659
662
|
onUnhandledRequest ?? (onUnhandledRequest = onUnhandledRequestDefaultNode);
|
|
660
|
-
return async function
|
|
663
|
+
return async function(request, response, next) {
|
|
661
664
|
const octokitRequest = parseRequest(request);
|
|
662
|
-
const octokitResponse = await handleRequest(
|
|
663
|
-
|
|
664
|
-
|
|
665
|
+
const octokitResponse = await handleRequest(
|
|
666
|
+
app,
|
|
667
|
+
{ pathPrefix },
|
|
668
|
+
octokitRequest
|
|
669
|
+
);
|
|
665
670
|
if (octokitResponse) {
|
|
666
671
|
sendResponse(octokitResponse, response);
|
|
667
672
|
} else if (typeof next === "function") {
|
|
@@ -672,8 +677,8 @@ function createNodeMiddleware(app, {
|
|
|
672
677
|
};
|
|
673
678
|
}
|
|
674
679
|
|
|
675
|
-
|
|
676
|
-
|
|
680
|
+
// pkg/dist-src/middleware/web-worker/parse-request.js
|
|
681
|
+
function parseRequest2(request) {
|
|
677
682
|
const headers = Object.fromEntries(request.headers.entries());
|
|
678
683
|
return {
|
|
679
684
|
method: request.method,
|
|
@@ -683,61 +688,63 @@ function parseRequest$1(request) {
|
|
|
683
688
|
};
|
|
684
689
|
}
|
|
685
690
|
|
|
686
|
-
|
|
691
|
+
// pkg/dist-src/middleware/web-worker/send-response.js
|
|
692
|
+
function sendResponse2(octokitResponse) {
|
|
687
693
|
return new Response(octokitResponse.text, {
|
|
688
694
|
status: octokitResponse.status,
|
|
689
695
|
headers: octokitResponse.headers
|
|
690
696
|
});
|
|
691
697
|
}
|
|
692
698
|
|
|
699
|
+
// pkg/dist-src/middleware/web-worker/index.js
|
|
693
700
|
async function onUnhandledRequestDefaultWebWorker(request) {
|
|
694
|
-
const octokitRequest =
|
|
701
|
+
const octokitRequest = parseRequest2(request);
|
|
695
702
|
const octokitResponse = onUnhandledRequestDefault(octokitRequest);
|
|
696
|
-
return
|
|
703
|
+
return sendResponse2(octokitResponse);
|
|
697
704
|
}
|
|
698
705
|
function createWebWorkerHandler(app, {
|
|
699
706
|
pathPrefix,
|
|
700
707
|
onUnhandledRequest
|
|
701
708
|
} = {}) {
|
|
702
709
|
if (onUnhandledRequest) {
|
|
703
|
-
app.octokit.log.warn(
|
|
710
|
+
app.octokit.log.warn(
|
|
711
|
+
"[@octokit/oauth-app] `onUnhandledRequest` is deprecated and will be removed from the next major version."
|
|
712
|
+
);
|
|
704
713
|
}
|
|
705
714
|
onUnhandledRequest ?? (onUnhandledRequest = onUnhandledRequestDefaultWebWorker);
|
|
706
|
-
return async function
|
|
707
|
-
const octokitRequest =
|
|
708
|
-
const octokitResponse = await handleRequest(
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
715
|
+
return async function(request) {
|
|
716
|
+
const octokitRequest = parseRequest2(request);
|
|
717
|
+
const octokitResponse = await handleRequest(
|
|
718
|
+
app,
|
|
719
|
+
{ pathPrefix },
|
|
720
|
+
octokitRequest
|
|
721
|
+
);
|
|
722
|
+
return octokitResponse ? sendResponse2(octokitResponse) : await onUnhandledRequest(request);
|
|
712
723
|
};
|
|
713
724
|
}
|
|
714
|
-
/** @deprecated */
|
|
715
725
|
function createCloudflareHandler(...args) {
|
|
716
|
-
args[0].octokit.log.warn(
|
|
726
|
+
args[0].octokit.log.warn(
|
|
727
|
+
"[@octokit/oauth-app] `createCloudflareHandler` is deprecated, use `createWebWorkerHandler` instead"
|
|
728
|
+
);
|
|
717
729
|
return createWebWorkerHandler(...args);
|
|
718
730
|
}
|
|
719
731
|
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
} = request.requestContext.http;
|
|
732
|
+
// pkg/dist-src/middleware/aws-lambda/api-gateway-v2-parse-request.js
|
|
733
|
+
function parseRequest3(request) {
|
|
734
|
+
const { method } = request.requestContext.http;
|
|
724
735
|
let url = request.rawPath;
|
|
725
|
-
const {
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
if (
|
|
729
|
-
|
|
736
|
+
const { stage } = request.requestContext;
|
|
737
|
+
if (url.startsWith("/" + stage))
|
|
738
|
+
url = url.substring(stage.length + 1);
|
|
739
|
+
if (request.rawQueryString)
|
|
740
|
+
url += "?" + request.rawQueryString;
|
|
730
741
|
const headers = request.headers;
|
|
731
742
|
const text = async () => request.body || "";
|
|
732
|
-
return {
|
|
733
|
-
method,
|
|
734
|
-
url,
|
|
735
|
-
headers,
|
|
736
|
-
text
|
|
737
|
-
};
|
|
743
|
+
return { method, url, headers, text };
|
|
738
744
|
}
|
|
739
745
|
|
|
740
|
-
|
|
746
|
+
// pkg/dist-src/middleware/aws-lambda/api-gateway-v2-send-response.js
|
|
747
|
+
function sendResponse3(octokitResponse) {
|
|
741
748
|
return {
|
|
742
749
|
statusCode: octokitResponse.status,
|
|
743
750
|
headers: octokitResponse.headers,
|
|
@@ -745,29 +752,31 @@ function sendResponse$2(octokitResponse) {
|
|
|
745
752
|
};
|
|
746
753
|
}
|
|
747
754
|
|
|
755
|
+
// pkg/dist-src/middleware/aws-lambda/api-gateway-v2.js
|
|
748
756
|
async function onUnhandledRequestDefaultAWSAPIGatewayV2(event) {
|
|
749
|
-
const request =
|
|
757
|
+
const request = parseRequest3(event);
|
|
750
758
|
const response = onUnhandledRequestDefault(request);
|
|
751
|
-
return
|
|
759
|
+
return sendResponse3(response);
|
|
752
760
|
}
|
|
753
761
|
function createAWSLambdaAPIGatewayV2Handler(app, {
|
|
754
762
|
pathPrefix,
|
|
755
763
|
onUnhandledRequest
|
|
756
764
|
} = {}) {
|
|
757
765
|
if (onUnhandledRequest) {
|
|
758
|
-
app.octokit.log.warn(
|
|
766
|
+
app.octokit.log.warn(
|
|
767
|
+
"[@octokit/oauth-app] `onUnhandledRequest` is deprecated and will be removed from the next major version."
|
|
768
|
+
);
|
|
759
769
|
}
|
|
760
770
|
onUnhandledRequest ?? (onUnhandledRequest = onUnhandledRequestDefaultAWSAPIGatewayV2);
|
|
761
|
-
return async function
|
|
762
|
-
const request =
|
|
763
|
-
const response = await handleRequest(app, {
|
|
764
|
-
|
|
765
|
-
}, request);
|
|
766
|
-
return response ? sendResponse$2(response) : onUnhandledRequest(event);
|
|
771
|
+
return async function(event) {
|
|
772
|
+
const request = parseRequest3(event);
|
|
773
|
+
const response = await handleRequest(app, { pathPrefix }, request);
|
|
774
|
+
return response ? sendResponse3(response) : onUnhandledRequest(event);
|
|
767
775
|
};
|
|
768
776
|
}
|
|
769
777
|
|
|
770
|
-
|
|
778
|
+
// pkg/dist-src/index.js
|
|
779
|
+
var OAuthApp = class {
|
|
771
780
|
static defaults(defaults) {
|
|
772
781
|
const OAuthAppWithDefaults = class extends this {
|
|
773
782
|
constructor(...args) {
|
|
@@ -780,10 +789,10 @@ class OAuthApp {
|
|
|
780
789
|
return OAuthAppWithDefaults;
|
|
781
790
|
}
|
|
782
791
|
constructor(options) {
|
|
783
|
-
const
|
|
792
|
+
const Octokit2 = options.Octokit || OAuthAppOctokit;
|
|
784
793
|
this.type = options.clientType || "oauth-app";
|
|
785
|
-
const octokit = new
|
|
786
|
-
authStrategy:
|
|
794
|
+
const octokit = new Octokit2({
|
|
795
|
+
authStrategy: import_auth_oauth_app.createOAuthAppAuth,
|
|
787
796
|
auth: {
|
|
788
797
|
clientType: this.type,
|
|
789
798
|
clientId: options.clientId,
|
|
@@ -800,30 +809,48 @@ class OAuthApp {
|
|
|
800
809
|
baseUrl: options.baseUrl,
|
|
801
810
|
redirectUrl: options.redirectUrl,
|
|
802
811
|
log: options.log,
|
|
803
|
-
Octokit,
|
|
812
|
+
Octokit: Octokit2,
|
|
804
813
|
octokit,
|
|
805
814
|
eventHandlers: {}
|
|
806
815
|
};
|
|
807
816
|
this.on = addEventHandler.bind(null, state);
|
|
808
|
-
// @ts-expect-error TODO: figure this out
|
|
809
817
|
this.octokit = octokit;
|
|
810
818
|
this.getUserOctokit = getUserOctokitWithState.bind(null, state);
|
|
811
|
-
this.getWebFlowAuthorizationUrl = getWebFlowAuthorizationUrlWithState.bind(
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
this.
|
|
816
|
-
|
|
819
|
+
this.getWebFlowAuthorizationUrl = getWebFlowAuthorizationUrlWithState.bind(
|
|
820
|
+
null,
|
|
821
|
+
state
|
|
822
|
+
);
|
|
823
|
+
this.createToken = createTokenWithState.bind(
|
|
824
|
+
null,
|
|
825
|
+
state
|
|
826
|
+
);
|
|
827
|
+
this.checkToken = checkTokenWithState.bind(
|
|
828
|
+
null,
|
|
829
|
+
state
|
|
830
|
+
);
|
|
831
|
+
this.resetToken = resetTokenWithState.bind(
|
|
832
|
+
null,
|
|
833
|
+
state
|
|
834
|
+
);
|
|
835
|
+
this.refreshToken = refreshTokenWithState.bind(
|
|
836
|
+
null,
|
|
837
|
+
state
|
|
838
|
+
);
|
|
839
|
+
this.scopeToken = scopeTokenWithState.bind(
|
|
840
|
+
null,
|
|
841
|
+
state
|
|
842
|
+
);
|
|
817
843
|
this.deleteToken = deleteTokenWithState.bind(null, state);
|
|
818
844
|
this.deleteAuthorization = deleteAuthorizationWithState.bind(null, state);
|
|
819
845
|
}
|
|
820
|
-
}
|
|
846
|
+
};
|
|
821
847
|
OAuthApp.VERSION = VERSION;
|
|
822
|
-
|
|
823
|
-
exports
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
848
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
849
|
+
0 && (module.exports = {
|
|
850
|
+
OAuthApp,
|
|
851
|
+
createAWSLambdaAPIGatewayV2Handler,
|
|
852
|
+
createCloudflareHandler,
|
|
853
|
+
createNodeMiddleware,
|
|
854
|
+
createWebWorkerHandler,
|
|
855
|
+
handleRequest
|
|
856
|
+
});
|