@mavogel/awscdk-rootmail 0.0.334 → 0.0.335
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/.jsii +2 -4
- package/CLAUDE.md +14 -30
- package/cdk.json +0 -1
- package/lib/rootmail.js +1 -1
- package/lib/ses-receive.js +1 -1
- package/package.json +1 -10
- package/lib/index-cli-synth.d.ts +0 -1
- package/lib/index-cli-synth.js +0 -68
- package/lib/scripts/publish-assets.d.ts +0 -1
- package/lib/scripts/publish-assets.js +0 -39
- package/node_modules/async-retry/LICENSE.md +0 -21
- package/node_modules/async-retry/README.md +0 -53
- package/node_modules/async-retry/lib/index.js +0 -61
- package/node_modules/async-retry/package.json +0 -55
- package/node_modules/asynckit/LICENSE +0 -21
- package/node_modules/asynckit/README.md +0 -233
- package/node_modules/asynckit/bench.js +0 -76
- package/node_modules/asynckit/index.js +0 -6
- package/node_modules/asynckit/lib/abort.js +0 -29
- package/node_modules/asynckit/lib/async.js +0 -34
- package/node_modules/asynckit/lib/defer.js +0 -26
- package/node_modules/asynckit/lib/iterate.js +0 -75
- package/node_modules/asynckit/lib/readable_asynckit.js +0 -91
- package/node_modules/asynckit/lib/readable_parallel.js +0 -25
- package/node_modules/asynckit/lib/readable_serial.js +0 -25
- package/node_modules/asynckit/lib/readable_serial_ordered.js +0 -29
- package/node_modules/asynckit/lib/state.js +0 -37
- package/node_modules/asynckit/lib/streamify.js +0 -141
- package/node_modules/asynckit/lib/terminator.js +0 -29
- package/node_modules/asynckit/package.json +0 -63
- package/node_modules/asynckit/parallel.js +0 -43
- package/node_modules/asynckit/serial.js +0 -17
- package/node_modules/asynckit/serialOrdered.js +0 -75
- package/node_modules/asynckit/stream.js +0 -21
- package/node_modules/axios/CHANGELOG.md +0 -1416
- package/node_modules/axios/LICENSE +0 -7
- package/node_modules/axios/MIGRATION_GUIDE.md +0 -877
- package/node_modules/axios/README.md +0 -2019
- package/node_modules/axios/dist/axios.js +0 -4494
- package/node_modules/axios/dist/axios.js.map +0 -1
- package/node_modules/axios/dist/axios.min.js +0 -5
- package/node_modules/axios/dist/axios.min.js.map +0 -1
- package/node_modules/axios/dist/browser/axios.cjs +0 -4273
- package/node_modules/axios/dist/browser/axios.cjs.map +0 -1
- package/node_modules/axios/dist/esm/axios.js +0 -4293
- package/node_modules/axios/dist/esm/axios.js.map +0 -1
- package/node_modules/axios/dist/esm/axios.min.js +0 -3
- package/node_modules/axios/dist/esm/axios.min.js.map +0 -1
- package/node_modules/axios/dist/node/axios.cjs +0 -4811
- package/node_modules/axios/dist/node/axios.cjs.map +0 -1
- package/node_modules/axios/index.d.cts +0 -716
- package/node_modules/axios/index.d.ts +0 -810
- package/node_modules/axios/index.js +0 -43
- package/node_modules/axios/lib/adapters/README.md +0 -36
- package/node_modules/axios/lib/adapters/adapters.js +0 -130
- package/node_modules/axios/lib/adapters/fetch.js +0 -338
- package/node_modules/axios/lib/adapters/http.js +0 -954
- package/node_modules/axios/lib/adapters/xhr.js +0 -222
- package/node_modules/axios/lib/axios.js +0 -89
- package/node_modules/axios/lib/cancel/CancelToken.js +0 -135
- package/node_modules/axios/lib/cancel/CanceledError.js +0 -22
- package/node_modules/axios/lib/cancel/isCancel.js +0 -5
- package/node_modules/axios/lib/core/Axios.js +0 -277
- package/node_modules/axios/lib/core/AxiosError.js +0 -90
- package/node_modules/axios/lib/core/AxiosHeaders.js +0 -378
- package/node_modules/axios/lib/core/InterceptorManager.js +0 -72
- package/node_modules/axios/lib/core/README.md +0 -8
- package/node_modules/axios/lib/core/buildFullPath.js +0 -22
- package/node_modules/axios/lib/core/dispatchRequest.js +0 -77
- package/node_modules/axios/lib/core/mergeConfig.js +0 -107
- package/node_modules/axios/lib/core/settle.js +0 -31
- package/node_modules/axios/lib/core/transformData.js +0 -28
- package/node_modules/axios/lib/defaults/index.js +0 -172
- package/node_modules/axios/lib/defaults/transitional.js +0 -8
- package/node_modules/axios/lib/env/README.md +0 -3
- package/node_modules/axios/lib/env/classes/FormData.js +0 -2
- package/node_modules/axios/lib/env/data.js +0 -1
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -156
- package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -62
- package/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -77
- package/node_modules/axios/lib/helpers/README.md +0 -7
- package/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -29
- package/node_modules/axios/lib/helpers/bind.js +0 -14
- package/node_modules/axios/lib/helpers/buildURL.js +0 -66
- package/node_modules/axios/lib/helpers/callbackify.js +0 -18
- package/node_modules/axios/lib/helpers/combineURLs.js +0 -15
- package/node_modules/axios/lib/helpers/composeSignals.js +0 -56
- package/node_modules/axios/lib/helpers/cookies.js +0 -48
- package/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -31
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +0 -73
- package/node_modules/axios/lib/helpers/formDataToJSON.js +0 -95
- package/node_modules/axios/lib/helpers/formDataToStream.js +0 -118
- package/node_modules/axios/lib/helpers/fromDataURI.js +0 -53
- package/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -19
- package/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -16
- package/node_modules/axios/lib/helpers/null.js +0 -2
- package/node_modules/axios/lib/helpers/parseHeaders.js +0 -69
- package/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
- package/node_modules/axios/lib/helpers/progressEventReducer.js +0 -51
- package/node_modules/axios/lib/helpers/readBlob.js +0 -15
- package/node_modules/axios/lib/helpers/resolveConfig.js +0 -70
- package/node_modules/axios/lib/helpers/shouldBypassProxy.js +0 -106
- package/node_modules/axios/lib/helpers/speedometer.js +0 -55
- package/node_modules/axios/lib/helpers/spread.js +0 -28
- package/node_modules/axios/lib/helpers/throttle.js +0 -44
- package/node_modules/axios/lib/helpers/toFormData.js +0 -241
- package/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
- package/node_modules/axios/lib/helpers/trackStream.js +0 -89
- package/node_modules/axios/lib/helpers/validator.js +0 -110
- package/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
- package/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
- package/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -4
- package/node_modules/axios/lib/platform/browser/index.js +0 -13
- package/node_modules/axios/lib/platform/common/utils.js +0 -52
- package/node_modules/axios/lib/platform/index.js +0 -7
- package/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
- package/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -4
- package/node_modules/axios/lib/platform/node/index.js +0 -37
- package/node_modules/axios/lib/utils.js +0 -919
- package/node_modules/axios/package.json +0 -190
- package/node_modules/call-bind-apply-helpers/.eslintrc +0 -17
- package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +0 -12
- package/node_modules/call-bind-apply-helpers/.nycrc +0 -9
- package/node_modules/call-bind-apply-helpers/CHANGELOG.md +0 -30
- package/node_modules/call-bind-apply-helpers/LICENSE +0 -21
- package/node_modules/call-bind-apply-helpers/README.md +0 -62
- package/node_modules/call-bind-apply-helpers/actualApply.d.ts +0 -1
- package/node_modules/call-bind-apply-helpers/actualApply.js +0 -10
- package/node_modules/call-bind-apply-helpers/applyBind.d.ts +0 -19
- package/node_modules/call-bind-apply-helpers/applyBind.js +0 -10
- package/node_modules/call-bind-apply-helpers/functionApply.d.ts +0 -1
- package/node_modules/call-bind-apply-helpers/functionApply.js +0 -4
- package/node_modules/call-bind-apply-helpers/functionCall.d.ts +0 -1
- package/node_modules/call-bind-apply-helpers/functionCall.js +0 -4
- package/node_modules/call-bind-apply-helpers/index.d.ts +0 -64
- package/node_modules/call-bind-apply-helpers/index.js +0 -15
- package/node_modules/call-bind-apply-helpers/package.json +0 -85
- package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +0 -3
- package/node_modules/call-bind-apply-helpers/reflectApply.js +0 -4
- package/node_modules/call-bind-apply-helpers/test/index.js +0 -63
- package/node_modules/call-bind-apply-helpers/tsconfig.json +0 -9
- package/node_modules/combined-stream/License +0 -19
- package/node_modules/combined-stream/Readme.md +0 -138
- package/node_modules/combined-stream/lib/combined_stream.js +0 -208
- package/node_modules/combined-stream/package.json +0 -25
- package/node_modules/delayed-stream/.npmignore +0 -1
- package/node_modules/delayed-stream/License +0 -19
- package/node_modules/delayed-stream/Makefile +0 -7
- package/node_modules/delayed-stream/Readme.md +0 -141
- package/node_modules/delayed-stream/lib/delayed_stream.js +0 -107
- package/node_modules/delayed-stream/package.json +0 -27
- package/node_modules/dunder-proto/.eslintrc +0 -5
- package/node_modules/dunder-proto/.github/FUNDING.yml +0 -12
- package/node_modules/dunder-proto/.nycrc +0 -13
- package/node_modules/dunder-proto/CHANGELOG.md +0 -24
- package/node_modules/dunder-proto/LICENSE +0 -21
- package/node_modules/dunder-proto/README.md +0 -54
- package/node_modules/dunder-proto/get.d.ts +0 -5
- package/node_modules/dunder-proto/get.js +0 -30
- package/node_modules/dunder-proto/package.json +0 -76
- package/node_modules/dunder-proto/set.d.ts +0 -5
- package/node_modules/dunder-proto/set.js +0 -35
- package/node_modules/dunder-proto/test/get.js +0 -34
- package/node_modules/dunder-proto/test/index.js +0 -4
- package/node_modules/dunder-proto/test/set.js +0 -50
- package/node_modules/dunder-proto/tsconfig.json +0 -9
- package/node_modules/es-define-property/.eslintrc +0 -13
- package/node_modules/es-define-property/.github/FUNDING.yml +0 -12
- package/node_modules/es-define-property/.nycrc +0 -9
- package/node_modules/es-define-property/CHANGELOG.md +0 -29
- package/node_modules/es-define-property/LICENSE +0 -21
- package/node_modules/es-define-property/README.md +0 -49
- package/node_modules/es-define-property/index.d.ts +0 -3
- package/node_modules/es-define-property/index.js +0 -14
- package/node_modules/es-define-property/package.json +0 -81
- package/node_modules/es-define-property/test/index.js +0 -56
- package/node_modules/es-define-property/tsconfig.json +0 -10
- package/node_modules/es-errors/.eslintrc +0 -5
- package/node_modules/es-errors/.github/FUNDING.yml +0 -12
- package/node_modules/es-errors/CHANGELOG.md +0 -40
- package/node_modules/es-errors/LICENSE +0 -21
- package/node_modules/es-errors/README.md +0 -55
- package/node_modules/es-errors/eval.d.ts +0 -3
- package/node_modules/es-errors/eval.js +0 -4
- package/node_modules/es-errors/index.d.ts +0 -3
- package/node_modules/es-errors/index.js +0 -4
- package/node_modules/es-errors/package.json +0 -80
- package/node_modules/es-errors/range.d.ts +0 -3
- package/node_modules/es-errors/range.js +0 -4
- package/node_modules/es-errors/ref.d.ts +0 -3
- package/node_modules/es-errors/ref.js +0 -4
- package/node_modules/es-errors/syntax.d.ts +0 -3
- package/node_modules/es-errors/syntax.js +0 -4
- package/node_modules/es-errors/test/index.js +0 -19
- package/node_modules/es-errors/tsconfig.json +0 -49
- package/node_modules/es-errors/type.d.ts +0 -3
- package/node_modules/es-errors/type.js +0 -4
- package/node_modules/es-errors/uri.d.ts +0 -3
- package/node_modules/es-errors/uri.js +0 -4
- package/node_modules/es-object-atoms/.eslintrc +0 -16
- package/node_modules/es-object-atoms/.github/FUNDING.yml +0 -12
- package/node_modules/es-object-atoms/CHANGELOG.md +0 -37
- package/node_modules/es-object-atoms/LICENSE +0 -21
- package/node_modules/es-object-atoms/README.md +0 -63
- package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +0 -3
- package/node_modules/es-object-atoms/RequireObjectCoercible.js +0 -11
- package/node_modules/es-object-atoms/ToObject.d.ts +0 -7
- package/node_modules/es-object-atoms/ToObject.js +0 -10
- package/node_modules/es-object-atoms/index.d.ts +0 -3
- package/node_modules/es-object-atoms/index.js +0 -4
- package/node_modules/es-object-atoms/isObject.d.ts +0 -3
- package/node_modules/es-object-atoms/isObject.js +0 -6
- package/node_modules/es-object-atoms/package.json +0 -80
- package/node_modules/es-object-atoms/test/index.js +0 -38
- package/node_modules/es-object-atoms/tsconfig.json +0 -6
- package/node_modules/es-set-tostringtag/.eslintrc +0 -13
- package/node_modules/es-set-tostringtag/.nycrc +0 -9
- package/node_modules/es-set-tostringtag/CHANGELOG.md +0 -67
- package/node_modules/es-set-tostringtag/LICENSE +0 -21
- package/node_modules/es-set-tostringtag/README.md +0 -53
- package/node_modules/es-set-tostringtag/index.d.ts +0 -10
- package/node_modules/es-set-tostringtag/index.js +0 -35
- package/node_modules/es-set-tostringtag/package.json +0 -78
- package/node_modules/es-set-tostringtag/test/index.js +0 -85
- package/node_modules/es-set-tostringtag/tsconfig.json +0 -9
- package/node_modules/follow-redirects/LICENSE +0 -18
- package/node_modules/follow-redirects/README.md +0 -155
- package/node_modules/follow-redirects/debug.js +0 -15
- package/node_modules/follow-redirects/http.js +0 -1
- package/node_modules/follow-redirects/https.js +0 -1
- package/node_modules/follow-redirects/index.js +0 -686
- package/node_modules/follow-redirects/package.json +0 -58
- package/node_modules/form-data/CHANGELOG.md +0 -659
- package/node_modules/form-data/License +0 -19
- package/node_modules/form-data/README.md +0 -355
- package/node_modules/form-data/index.d.ts +0 -62
- package/node_modules/form-data/lib/browser.js +0 -4
- package/node_modules/form-data/lib/form_data.js +0 -494
- package/node_modules/form-data/lib/populate.js +0 -10
- package/node_modules/form-data/package.json +0 -82
- package/node_modules/function-bind/.eslintrc +0 -21
- package/node_modules/function-bind/.github/FUNDING.yml +0 -12
- package/node_modules/function-bind/.github/SECURITY.md +0 -3
- package/node_modules/function-bind/.nycrc +0 -13
- package/node_modules/function-bind/CHANGELOG.md +0 -136
- package/node_modules/function-bind/LICENSE +0 -20
- package/node_modules/function-bind/README.md +0 -46
- package/node_modules/function-bind/implementation.js +0 -84
- package/node_modules/function-bind/index.js +0 -5
- package/node_modules/function-bind/package.json +0 -87
- package/node_modules/function-bind/test/.eslintrc +0 -9
- package/node_modules/function-bind/test/index.js +0 -252
- package/node_modules/get-intrinsic/.eslintrc +0 -42
- package/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
- package/node_modules/get-intrinsic/.nycrc +0 -9
- package/node_modules/get-intrinsic/CHANGELOG.md +0 -186
- package/node_modules/get-intrinsic/LICENSE +0 -21
- package/node_modules/get-intrinsic/README.md +0 -71
- package/node_modules/get-intrinsic/index.js +0 -378
- package/node_modules/get-intrinsic/package.json +0 -97
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
- package/node_modules/get-proto/.eslintrc +0 -10
- package/node_modules/get-proto/.github/FUNDING.yml +0 -12
- package/node_modules/get-proto/.nycrc +0 -9
- package/node_modules/get-proto/CHANGELOG.md +0 -21
- package/node_modules/get-proto/LICENSE +0 -21
- package/node_modules/get-proto/Object.getPrototypeOf.d.ts +0 -5
- package/node_modules/get-proto/Object.getPrototypeOf.js +0 -6
- package/node_modules/get-proto/README.md +0 -50
- package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +0 -3
- package/node_modules/get-proto/Reflect.getPrototypeOf.js +0 -4
- package/node_modules/get-proto/index.d.ts +0 -5
- package/node_modules/get-proto/index.js +0 -27
- package/node_modules/get-proto/package.json +0 -81
- package/node_modules/get-proto/test/index.js +0 -68
- package/node_modules/get-proto/tsconfig.json +0 -9
- package/node_modules/gopd/.eslintrc +0 -16
- package/node_modules/gopd/.github/FUNDING.yml +0 -12
- package/node_modules/gopd/CHANGELOG.md +0 -45
- package/node_modules/gopd/LICENSE +0 -21
- package/node_modules/gopd/README.md +0 -40
- package/node_modules/gopd/gOPD.d.ts +0 -1
- package/node_modules/gopd/gOPD.js +0 -4
- package/node_modules/gopd/index.d.ts +0 -5
- package/node_modules/gopd/index.js +0 -15
- package/node_modules/gopd/package.json +0 -77
- package/node_modules/gopd/test/index.js +0 -36
- package/node_modules/gopd/tsconfig.json +0 -9
- package/node_modules/has-symbols/.eslintrc +0 -11
- package/node_modules/has-symbols/.github/FUNDING.yml +0 -12
- package/node_modules/has-symbols/.nycrc +0 -9
- package/node_modules/has-symbols/CHANGELOG.md +0 -91
- package/node_modules/has-symbols/LICENSE +0 -21
- package/node_modules/has-symbols/README.md +0 -46
- package/node_modules/has-symbols/index.d.ts +0 -3
- package/node_modules/has-symbols/index.js +0 -14
- package/node_modules/has-symbols/package.json +0 -111
- package/node_modules/has-symbols/shams.d.ts +0 -3
- package/node_modules/has-symbols/shams.js +0 -45
- package/node_modules/has-symbols/test/index.js +0 -22
- package/node_modules/has-symbols/test/shams/core-js.js +0 -29
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -29
- package/node_modules/has-symbols/test/tests.js +0 -58
- package/node_modules/has-symbols/tsconfig.json +0 -10
- package/node_modules/has-tostringtag/.eslintrc +0 -5
- package/node_modules/has-tostringtag/.github/FUNDING.yml +0 -12
- package/node_modules/has-tostringtag/.nycrc +0 -13
- package/node_modules/has-tostringtag/CHANGELOG.md +0 -42
- package/node_modules/has-tostringtag/LICENSE +0 -21
- package/node_modules/has-tostringtag/README.md +0 -46
- package/node_modules/has-tostringtag/index.d.ts +0 -3
- package/node_modules/has-tostringtag/index.js +0 -8
- package/node_modules/has-tostringtag/package.json +0 -108
- package/node_modules/has-tostringtag/shams.d.ts +0 -3
- package/node_modules/has-tostringtag/shams.js +0 -8
- package/node_modules/has-tostringtag/test/index.js +0 -21
- package/node_modules/has-tostringtag/test/shams/core-js.js +0 -31
- package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +0 -30
- package/node_modules/has-tostringtag/test/tests.js +0 -15
- package/node_modules/has-tostringtag/tsconfig.json +0 -49
- package/node_modules/hasown/.eslintrc +0 -5
- package/node_modules/hasown/.github/FUNDING.yml +0 -12
- package/node_modules/hasown/.nycrc +0 -13
- package/node_modules/hasown/CHANGELOG.md +0 -40
- package/node_modules/hasown/LICENSE +0 -21
- package/node_modules/hasown/README.md +0 -40
- package/node_modules/hasown/index.d.ts +0 -3
- package/node_modules/hasown/index.js +0 -8
- package/node_modules/hasown/package.json +0 -92
- package/node_modules/hasown/tsconfig.json +0 -6
- package/node_modules/math-intrinsics/.eslintrc +0 -16
- package/node_modules/math-intrinsics/.github/FUNDING.yml +0 -12
- package/node_modules/math-intrinsics/CHANGELOG.md +0 -24
- package/node_modules/math-intrinsics/LICENSE +0 -21
- package/node_modules/math-intrinsics/README.md +0 -50
- package/node_modules/math-intrinsics/abs.d.ts +0 -1
- package/node_modules/math-intrinsics/abs.js +0 -4
- package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +0 -3
- package/node_modules/math-intrinsics/constants/maxArrayLength.js +0 -4
- package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +0 -3
- package/node_modules/math-intrinsics/constants/maxSafeInteger.js +0 -5
- package/node_modules/math-intrinsics/constants/maxValue.d.ts +0 -3
- package/node_modules/math-intrinsics/constants/maxValue.js +0 -5
- package/node_modules/math-intrinsics/floor.d.ts +0 -1
- package/node_modules/math-intrinsics/floor.js +0 -4
- package/node_modules/math-intrinsics/isFinite.d.ts +0 -3
- package/node_modules/math-intrinsics/isFinite.js +0 -12
- package/node_modules/math-intrinsics/isInteger.d.ts +0 -3
- package/node_modules/math-intrinsics/isInteger.js +0 -16
- package/node_modules/math-intrinsics/isNaN.d.ts +0 -1
- package/node_modules/math-intrinsics/isNaN.js +0 -6
- package/node_modules/math-intrinsics/isNegativeZero.d.ts +0 -3
- package/node_modules/math-intrinsics/isNegativeZero.js +0 -6
- package/node_modules/math-intrinsics/max.d.ts +0 -1
- package/node_modules/math-intrinsics/max.js +0 -4
- package/node_modules/math-intrinsics/min.d.ts +0 -1
- package/node_modules/math-intrinsics/min.js +0 -4
- package/node_modules/math-intrinsics/mod.d.ts +0 -3
- package/node_modules/math-intrinsics/mod.js +0 -9
- package/node_modules/math-intrinsics/package.json +0 -86
- package/node_modules/math-intrinsics/pow.d.ts +0 -1
- package/node_modules/math-intrinsics/pow.js +0 -4
- package/node_modules/math-intrinsics/round.d.ts +0 -1
- package/node_modules/math-intrinsics/round.js +0 -4
- package/node_modules/math-intrinsics/sign.d.ts +0 -3
- package/node_modules/math-intrinsics/sign.js +0 -11
- package/node_modules/math-intrinsics/test/index.js +0 -192
- package/node_modules/math-intrinsics/tsconfig.json +0 -3
- package/node_modules/mime-db/HISTORY.md +0 -507
- package/node_modules/mime-db/LICENSE +0 -23
- package/node_modules/mime-db/README.md +0 -100
- package/node_modules/mime-db/db.json +0 -8519
- package/node_modules/mime-db/index.js +0 -12
- package/node_modules/mime-db/package.json +0 -60
- package/node_modules/mime-types/HISTORY.md +0 -397
- package/node_modules/mime-types/LICENSE +0 -23
- package/node_modules/mime-types/README.md +0 -113
- package/node_modules/mime-types/index.js +0 -188
- package/node_modules/mime-types/package.json +0 -44
- package/node_modules/proxy-from-env/LICENSE +0 -20
- package/node_modules/proxy-from-env/README.md +0 -163
- package/node_modules/proxy-from-env/index.cjs +0 -105
- package/node_modules/proxy-from-env/index.js +0 -103
- package/node_modules/proxy-from-env/package.json +0 -43
- package/node_modules/retry/License +0 -21
- package/node_modules/retry/README.md +0 -227
- package/node_modules/retry/example/dns.js +0 -31
- package/node_modules/retry/example/stop.js +0 -40
- package/node_modules/retry/index.js +0 -1
- package/node_modules/retry/lib/retry.js +0 -100
- package/node_modules/retry/lib/retry_operation.js +0 -162
- package/node_modules/retry/package.json +0 -36
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import utils from '../utils.js';
|
|
4
|
-
import defaults from '../defaults/index.js';
|
|
5
|
-
import AxiosHeaders from '../core/AxiosHeaders.js';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Transform the data for a request or a response
|
|
9
|
-
*
|
|
10
|
-
* @param {Array|Function} fns A single function or Array of functions
|
|
11
|
-
* @param {?Object} response The response object
|
|
12
|
-
*
|
|
13
|
-
* @returns {*} The resulting transformed data
|
|
14
|
-
*/
|
|
15
|
-
export default function transformData(fns, response) {
|
|
16
|
-
const config = this || defaults;
|
|
17
|
-
const context = response || config;
|
|
18
|
-
const headers = AxiosHeaders.from(context.headers);
|
|
19
|
-
let data = context.data;
|
|
20
|
-
|
|
21
|
-
utils.forEach(fns, function transform(fn) {
|
|
22
|
-
data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
headers.normalize();
|
|
26
|
-
|
|
27
|
-
return data;
|
|
28
|
-
}
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import utils from '../utils.js';
|
|
4
|
-
import AxiosError from '../core/AxiosError.js';
|
|
5
|
-
import transitionalDefaults from './transitional.js';
|
|
6
|
-
import toFormData from '../helpers/toFormData.js';
|
|
7
|
-
import toURLEncodedForm from '../helpers/toURLEncodedForm.js';
|
|
8
|
-
import platform from '../platform/index.js';
|
|
9
|
-
import formDataToJSON from '../helpers/formDataToJSON.js';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* It takes a string, tries to parse it, and if it fails, it returns the stringified version
|
|
13
|
-
* of the input
|
|
14
|
-
*
|
|
15
|
-
* @param {any} rawValue - The value to be stringified.
|
|
16
|
-
* @param {Function} parser - A function that parses a string into a JavaScript object.
|
|
17
|
-
* @param {Function} encoder - A function that takes a value and returns a string.
|
|
18
|
-
*
|
|
19
|
-
* @returns {string} A stringified version of the rawValue.
|
|
20
|
-
*/
|
|
21
|
-
function stringifySafely(rawValue, parser, encoder) {
|
|
22
|
-
if (utils.isString(rawValue)) {
|
|
23
|
-
try {
|
|
24
|
-
(parser || JSON.parse)(rawValue);
|
|
25
|
-
return utils.trim(rawValue);
|
|
26
|
-
} catch (e) {
|
|
27
|
-
if (e.name !== 'SyntaxError') {
|
|
28
|
-
throw e;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return (encoder || JSON.stringify)(rawValue);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
const defaults = {
|
|
37
|
-
transitional: transitionalDefaults,
|
|
38
|
-
|
|
39
|
-
adapter: ['xhr', 'http', 'fetch'],
|
|
40
|
-
|
|
41
|
-
transformRequest: [
|
|
42
|
-
function transformRequest(data, headers) {
|
|
43
|
-
const contentType = headers.getContentType() || '';
|
|
44
|
-
const hasJSONContentType = contentType.indexOf('application/json') > -1;
|
|
45
|
-
const isObjectPayload = utils.isObject(data);
|
|
46
|
-
|
|
47
|
-
if (isObjectPayload && utils.isHTMLForm(data)) {
|
|
48
|
-
data = new FormData(data);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
const isFormData = utils.isFormData(data);
|
|
52
|
-
|
|
53
|
-
if (isFormData) {
|
|
54
|
-
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
if (
|
|
58
|
-
utils.isArrayBuffer(data) ||
|
|
59
|
-
utils.isBuffer(data) ||
|
|
60
|
-
utils.isStream(data) ||
|
|
61
|
-
utils.isFile(data) ||
|
|
62
|
-
utils.isBlob(data) ||
|
|
63
|
-
utils.isReadableStream(data)
|
|
64
|
-
) {
|
|
65
|
-
return data;
|
|
66
|
-
}
|
|
67
|
-
if (utils.isArrayBufferView(data)) {
|
|
68
|
-
return data.buffer;
|
|
69
|
-
}
|
|
70
|
-
if (utils.isURLSearchParams(data)) {
|
|
71
|
-
headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
|
|
72
|
-
return data.toString();
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
let isFileList;
|
|
76
|
-
|
|
77
|
-
if (isObjectPayload) {
|
|
78
|
-
if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
|
|
79
|
-
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
if (
|
|
83
|
-
(isFileList = utils.isFileList(data)) ||
|
|
84
|
-
contentType.indexOf('multipart/form-data') > -1
|
|
85
|
-
) {
|
|
86
|
-
const _FormData = this.env && this.env.FormData;
|
|
87
|
-
|
|
88
|
-
return toFormData(
|
|
89
|
-
isFileList ? { 'files[]': data } : data,
|
|
90
|
-
_FormData && new _FormData(),
|
|
91
|
-
this.formSerializer
|
|
92
|
-
);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
if (isObjectPayload || hasJSONContentType) {
|
|
97
|
-
headers.setContentType('application/json', false);
|
|
98
|
-
return stringifySafely(data);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
return data;
|
|
102
|
-
},
|
|
103
|
-
],
|
|
104
|
-
|
|
105
|
-
transformResponse: [
|
|
106
|
-
function transformResponse(data) {
|
|
107
|
-
const transitional = this.transitional || defaults.transitional;
|
|
108
|
-
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
109
|
-
const JSONRequested = this.responseType === 'json';
|
|
110
|
-
|
|
111
|
-
if (utils.isResponse(data) || utils.isReadableStream(data)) {
|
|
112
|
-
return data;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
if (
|
|
116
|
-
data &&
|
|
117
|
-
utils.isString(data) &&
|
|
118
|
-
((forcedJSONParsing && !this.responseType) || JSONRequested)
|
|
119
|
-
) {
|
|
120
|
-
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
121
|
-
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
122
|
-
|
|
123
|
-
try {
|
|
124
|
-
return JSON.parse(data, this.parseReviver);
|
|
125
|
-
} catch (e) {
|
|
126
|
-
if (strictJSONParsing) {
|
|
127
|
-
if (e.name === 'SyntaxError') {
|
|
128
|
-
throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
129
|
-
}
|
|
130
|
-
throw e;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
return data;
|
|
136
|
-
},
|
|
137
|
-
],
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
141
|
-
* timeout is not created.
|
|
142
|
-
*/
|
|
143
|
-
timeout: 0,
|
|
144
|
-
|
|
145
|
-
xsrfCookieName: 'XSRF-TOKEN',
|
|
146
|
-
xsrfHeaderName: 'X-XSRF-TOKEN',
|
|
147
|
-
|
|
148
|
-
maxContentLength: -1,
|
|
149
|
-
maxBodyLength: -1,
|
|
150
|
-
|
|
151
|
-
env: {
|
|
152
|
-
FormData: platform.classes.FormData,
|
|
153
|
-
Blob: platform.classes.Blob,
|
|
154
|
-
},
|
|
155
|
-
|
|
156
|
-
validateStatus: function validateStatus(status) {
|
|
157
|
-
return status >= 200 && status < 300;
|
|
158
|
-
},
|
|
159
|
-
|
|
160
|
-
headers: {
|
|
161
|
-
common: {
|
|
162
|
-
Accept: 'application/json, text/plain, */*',
|
|
163
|
-
'Content-Type': undefined,
|
|
164
|
-
},
|
|
165
|
-
},
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
|
|
169
|
-
defaults.headers[method] = {};
|
|
170
|
-
});
|
|
171
|
-
|
|
172
|
-
export default defaults;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const VERSION = "1.15.0";
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import stream from 'stream';
|
|
4
|
-
import utils from '../utils.js';
|
|
5
|
-
|
|
6
|
-
const kInternals = Symbol('internals');
|
|
7
|
-
|
|
8
|
-
class AxiosTransformStream extends stream.Transform {
|
|
9
|
-
constructor(options) {
|
|
10
|
-
options = utils.toFlatObject(
|
|
11
|
-
options,
|
|
12
|
-
{
|
|
13
|
-
maxRate: 0,
|
|
14
|
-
chunkSize: 64 * 1024,
|
|
15
|
-
minChunkSize: 100,
|
|
16
|
-
timeWindow: 500,
|
|
17
|
-
ticksRate: 2,
|
|
18
|
-
samplesCount: 15,
|
|
19
|
-
},
|
|
20
|
-
null,
|
|
21
|
-
(prop, source) => {
|
|
22
|
-
return !utils.isUndefined(source[prop]);
|
|
23
|
-
}
|
|
24
|
-
);
|
|
25
|
-
|
|
26
|
-
super({
|
|
27
|
-
readableHighWaterMark: options.chunkSize,
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
const internals = (this[kInternals] = {
|
|
31
|
-
timeWindow: options.timeWindow,
|
|
32
|
-
chunkSize: options.chunkSize,
|
|
33
|
-
maxRate: options.maxRate,
|
|
34
|
-
minChunkSize: options.minChunkSize,
|
|
35
|
-
bytesSeen: 0,
|
|
36
|
-
isCaptured: false,
|
|
37
|
-
notifiedBytesLoaded: 0,
|
|
38
|
-
ts: Date.now(),
|
|
39
|
-
bytes: 0,
|
|
40
|
-
onReadCallback: null,
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
this.on('newListener', (event) => {
|
|
44
|
-
if (event === 'progress') {
|
|
45
|
-
if (!internals.isCaptured) {
|
|
46
|
-
internals.isCaptured = true;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
_read(size) {
|
|
53
|
-
const internals = this[kInternals];
|
|
54
|
-
|
|
55
|
-
if (internals.onReadCallback) {
|
|
56
|
-
internals.onReadCallback();
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
return super._read(size);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
_transform(chunk, encoding, callback) {
|
|
63
|
-
const internals = this[kInternals];
|
|
64
|
-
const maxRate = internals.maxRate;
|
|
65
|
-
|
|
66
|
-
const readableHighWaterMark = this.readableHighWaterMark;
|
|
67
|
-
|
|
68
|
-
const timeWindow = internals.timeWindow;
|
|
69
|
-
|
|
70
|
-
const divider = 1000 / timeWindow;
|
|
71
|
-
const bytesThreshold = maxRate / divider;
|
|
72
|
-
const minChunkSize =
|
|
73
|
-
internals.minChunkSize !== false
|
|
74
|
-
? Math.max(internals.minChunkSize, bytesThreshold * 0.01)
|
|
75
|
-
: 0;
|
|
76
|
-
|
|
77
|
-
const pushChunk = (_chunk, _callback) => {
|
|
78
|
-
const bytes = Buffer.byteLength(_chunk);
|
|
79
|
-
internals.bytesSeen += bytes;
|
|
80
|
-
internals.bytes += bytes;
|
|
81
|
-
|
|
82
|
-
internals.isCaptured && this.emit('progress', internals.bytesSeen);
|
|
83
|
-
|
|
84
|
-
if (this.push(_chunk)) {
|
|
85
|
-
process.nextTick(_callback);
|
|
86
|
-
} else {
|
|
87
|
-
internals.onReadCallback = () => {
|
|
88
|
-
internals.onReadCallback = null;
|
|
89
|
-
process.nextTick(_callback);
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
const transformChunk = (_chunk, _callback) => {
|
|
95
|
-
const chunkSize = Buffer.byteLength(_chunk);
|
|
96
|
-
let chunkRemainder = null;
|
|
97
|
-
let maxChunkSize = readableHighWaterMark;
|
|
98
|
-
let bytesLeft;
|
|
99
|
-
let passed = 0;
|
|
100
|
-
|
|
101
|
-
if (maxRate) {
|
|
102
|
-
const now = Date.now();
|
|
103
|
-
|
|
104
|
-
if (!internals.ts || (passed = now - internals.ts) >= timeWindow) {
|
|
105
|
-
internals.ts = now;
|
|
106
|
-
bytesLeft = bytesThreshold - internals.bytes;
|
|
107
|
-
internals.bytes = bytesLeft < 0 ? -bytesLeft : 0;
|
|
108
|
-
passed = 0;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
bytesLeft = bytesThreshold - internals.bytes;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
if (maxRate) {
|
|
115
|
-
if (bytesLeft <= 0) {
|
|
116
|
-
// next time window
|
|
117
|
-
return setTimeout(() => {
|
|
118
|
-
_callback(null, _chunk);
|
|
119
|
-
}, timeWindow - passed);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
if (bytesLeft < maxChunkSize) {
|
|
123
|
-
maxChunkSize = bytesLeft;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
if (maxChunkSize && chunkSize > maxChunkSize && chunkSize - maxChunkSize > minChunkSize) {
|
|
128
|
-
chunkRemainder = _chunk.subarray(maxChunkSize);
|
|
129
|
-
_chunk = _chunk.subarray(0, maxChunkSize);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
pushChunk(
|
|
133
|
-
_chunk,
|
|
134
|
-
chunkRemainder
|
|
135
|
-
? () => {
|
|
136
|
-
process.nextTick(_callback, null, chunkRemainder);
|
|
137
|
-
}
|
|
138
|
-
: _callback
|
|
139
|
-
);
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
transformChunk(chunk, function transformNextChunk(err, _chunk) {
|
|
143
|
-
if (err) {
|
|
144
|
-
return callback(err);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
if (_chunk) {
|
|
148
|
-
transformChunk(_chunk, transformNextChunk);
|
|
149
|
-
} else {
|
|
150
|
-
callback(null);
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export default AxiosTransformStream;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import toFormData from './toFormData.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* It encodes a string by replacing all characters that are not in the unreserved set with
|
|
7
|
-
* their percent-encoded equivalents
|
|
8
|
-
*
|
|
9
|
-
* @param {string} str - The string to encode.
|
|
10
|
-
*
|
|
11
|
-
* @returns {string} The encoded string.
|
|
12
|
-
*/
|
|
13
|
-
function encode(str) {
|
|
14
|
-
const charMap = {
|
|
15
|
-
'!': '%21',
|
|
16
|
-
"'": '%27',
|
|
17
|
-
'(': '%28',
|
|
18
|
-
')': '%29',
|
|
19
|
-
'~': '%7E',
|
|
20
|
-
'%20': '+',
|
|
21
|
-
'%00': '\x00',
|
|
22
|
-
};
|
|
23
|
-
return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
|
|
24
|
-
return charMap[match];
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* It takes a params object and converts it to a FormData object
|
|
30
|
-
*
|
|
31
|
-
* @param {Object<string, any>} params - The parameters to be converted to a FormData object.
|
|
32
|
-
* @param {Object<string, any>} options - The options object passed to the Axios constructor.
|
|
33
|
-
*
|
|
34
|
-
* @returns {void}
|
|
35
|
-
*/
|
|
36
|
-
function AxiosURLSearchParams(params, options) {
|
|
37
|
-
this._pairs = [];
|
|
38
|
-
|
|
39
|
-
params && toFormData(params, this, options);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
const prototype = AxiosURLSearchParams.prototype;
|
|
43
|
-
|
|
44
|
-
prototype.append = function append(name, value) {
|
|
45
|
-
this._pairs.push([name, value]);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
prototype.toString = function toString(encoder) {
|
|
49
|
-
const _encode = encoder
|
|
50
|
-
? function (value) {
|
|
51
|
-
return encoder.call(this, value, encode);
|
|
52
|
-
}
|
|
53
|
-
: encode;
|
|
54
|
-
|
|
55
|
-
return this._pairs
|
|
56
|
-
.map(function each(pair) {
|
|
57
|
-
return _encode(pair[0]) + '=' + _encode(pair[1]);
|
|
58
|
-
}, '')
|
|
59
|
-
.join('&');
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export default AxiosURLSearchParams;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
const HttpStatusCode = {
|
|
2
|
-
Continue: 100,
|
|
3
|
-
SwitchingProtocols: 101,
|
|
4
|
-
Processing: 102,
|
|
5
|
-
EarlyHints: 103,
|
|
6
|
-
Ok: 200,
|
|
7
|
-
Created: 201,
|
|
8
|
-
Accepted: 202,
|
|
9
|
-
NonAuthoritativeInformation: 203,
|
|
10
|
-
NoContent: 204,
|
|
11
|
-
ResetContent: 205,
|
|
12
|
-
PartialContent: 206,
|
|
13
|
-
MultiStatus: 207,
|
|
14
|
-
AlreadyReported: 208,
|
|
15
|
-
ImUsed: 226,
|
|
16
|
-
MultipleChoices: 300,
|
|
17
|
-
MovedPermanently: 301,
|
|
18
|
-
Found: 302,
|
|
19
|
-
SeeOther: 303,
|
|
20
|
-
NotModified: 304,
|
|
21
|
-
UseProxy: 305,
|
|
22
|
-
Unused: 306,
|
|
23
|
-
TemporaryRedirect: 307,
|
|
24
|
-
PermanentRedirect: 308,
|
|
25
|
-
BadRequest: 400,
|
|
26
|
-
Unauthorized: 401,
|
|
27
|
-
PaymentRequired: 402,
|
|
28
|
-
Forbidden: 403,
|
|
29
|
-
NotFound: 404,
|
|
30
|
-
MethodNotAllowed: 405,
|
|
31
|
-
NotAcceptable: 406,
|
|
32
|
-
ProxyAuthenticationRequired: 407,
|
|
33
|
-
RequestTimeout: 408,
|
|
34
|
-
Conflict: 409,
|
|
35
|
-
Gone: 410,
|
|
36
|
-
LengthRequired: 411,
|
|
37
|
-
PreconditionFailed: 412,
|
|
38
|
-
PayloadTooLarge: 413,
|
|
39
|
-
UriTooLong: 414,
|
|
40
|
-
UnsupportedMediaType: 415,
|
|
41
|
-
RangeNotSatisfiable: 416,
|
|
42
|
-
ExpectationFailed: 417,
|
|
43
|
-
ImATeapot: 418,
|
|
44
|
-
MisdirectedRequest: 421,
|
|
45
|
-
UnprocessableEntity: 422,
|
|
46
|
-
Locked: 423,
|
|
47
|
-
FailedDependency: 424,
|
|
48
|
-
TooEarly: 425,
|
|
49
|
-
UpgradeRequired: 426,
|
|
50
|
-
PreconditionRequired: 428,
|
|
51
|
-
TooManyRequests: 429,
|
|
52
|
-
RequestHeaderFieldsTooLarge: 431,
|
|
53
|
-
UnavailableForLegalReasons: 451,
|
|
54
|
-
InternalServerError: 500,
|
|
55
|
-
NotImplemented: 501,
|
|
56
|
-
BadGateway: 502,
|
|
57
|
-
ServiceUnavailable: 503,
|
|
58
|
-
GatewayTimeout: 504,
|
|
59
|
-
HttpVersionNotSupported: 505,
|
|
60
|
-
VariantAlsoNegotiates: 506,
|
|
61
|
-
InsufficientStorage: 507,
|
|
62
|
-
LoopDetected: 508,
|
|
63
|
-
NotExtended: 510,
|
|
64
|
-
NetworkAuthenticationRequired: 511,
|
|
65
|
-
WebServerIsDown: 521,
|
|
66
|
-
ConnectionTimedOut: 522,
|
|
67
|
-
OriginIsUnreachable: 523,
|
|
68
|
-
TimeoutOccurred: 524,
|
|
69
|
-
SslHandshakeFailed: 525,
|
|
70
|
-
InvalidSslCertificate: 526,
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
74
|
-
HttpStatusCode[value] = key;
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
export default HttpStatusCode;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# axios // helpers
|
|
2
|
-
|
|
3
|
-
The modules found in `helpers/` should be generic modules that are _not_ specific to the domain logic of axios. These modules could theoretically be published to npm on their own and consumed by other modules or apps. Some examples of generic modules are things like:
|
|
4
|
-
|
|
5
|
-
- Browser polyfills
|
|
6
|
-
- Managing cookies
|
|
7
|
-
- Parsing HTTP headers
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import stream from 'stream';
|
|
4
|
-
|
|
5
|
-
class ZlibHeaderTransformStream extends stream.Transform {
|
|
6
|
-
__transform(chunk, encoding, callback) {
|
|
7
|
-
this.push(chunk);
|
|
8
|
-
callback();
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
_transform(chunk, encoding, callback) {
|
|
12
|
-
if (chunk.length !== 0) {
|
|
13
|
-
this._transform = this.__transform;
|
|
14
|
-
|
|
15
|
-
// Add Default Compression headers if no zlib headers are present
|
|
16
|
-
if (chunk[0] !== 120) {
|
|
17
|
-
// Hex: 78
|
|
18
|
-
const header = Buffer.alloc(2);
|
|
19
|
-
header[0] = 120; // Hex: 78
|
|
20
|
-
header[1] = 156; // Hex: 9C
|
|
21
|
-
this.push(header, encoding);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
this.__transform(chunk, encoding, callback);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export default ZlibHeaderTransformStream;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Create a bound version of a function with a specified `this` context
|
|
5
|
-
*
|
|
6
|
-
* @param {Function} fn - The function to bind
|
|
7
|
-
* @param {*} thisArg - The value to be passed as the `this` parameter
|
|
8
|
-
* @returns {Function} A new function that will call the original function with the specified `this` context
|
|
9
|
-
*/
|
|
10
|
-
export default function bind(fn, thisArg) {
|
|
11
|
-
return function wrap() {
|
|
12
|
-
return fn.apply(thisArg, arguments);
|
|
13
|
-
};
|
|
14
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import utils from '../utils.js';
|
|
4
|
-
import AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with
|
|
8
|
-
* their plain counterparts (`:`, `$`, `,`, `+`).
|
|
9
|
-
*
|
|
10
|
-
* @param {string} val The value to be encoded.
|
|
11
|
-
*
|
|
12
|
-
* @returns {string} The encoded value.
|
|
13
|
-
*/
|
|
14
|
-
function encode(val) {
|
|
15
|
-
return encodeURIComponent(val)
|
|
16
|
-
.replace(/%3A/gi, ':')
|
|
17
|
-
.replace(/%24/g, '$')
|
|
18
|
-
.replace(/%2C/gi, ',')
|
|
19
|
-
.replace(/%20/g, '+');
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Build a URL by appending params to the end
|
|
24
|
-
*
|
|
25
|
-
* @param {string} url The base of the url (e.g., http://www.google.com)
|
|
26
|
-
* @param {object} [params] The params to be appended
|
|
27
|
-
* @param {?(object|Function)} options
|
|
28
|
-
*
|
|
29
|
-
* @returns {string} The formatted url
|
|
30
|
-
*/
|
|
31
|
-
export default function buildURL(url, params, options) {
|
|
32
|
-
if (!params) {
|
|
33
|
-
return url;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
const _encode = (options && options.encode) || encode;
|
|
37
|
-
|
|
38
|
-
const _options = utils.isFunction(options)
|
|
39
|
-
? {
|
|
40
|
-
serialize: options,
|
|
41
|
-
}
|
|
42
|
-
: options;
|
|
43
|
-
|
|
44
|
-
const serializeFn = _options && _options.serialize;
|
|
45
|
-
|
|
46
|
-
let serializedParams;
|
|
47
|
-
|
|
48
|
-
if (serializeFn) {
|
|
49
|
-
serializedParams = serializeFn(params, _options);
|
|
50
|
-
} else {
|
|
51
|
-
serializedParams = utils.isURLSearchParams(params)
|
|
52
|
-
? params.toString()
|
|
53
|
-
: new AxiosURLSearchParams(params, _options).toString(_encode);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
if (serializedParams) {
|
|
57
|
-
const hashmarkIndex = url.indexOf('#');
|
|
58
|
-
|
|
59
|
-
if (hashmarkIndex !== -1) {
|
|
60
|
-
url = url.slice(0, hashmarkIndex);
|
|
61
|
-
}
|
|
62
|
-
url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
return url;
|
|
66
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import utils from '../utils.js';
|
|
2
|
-
|
|
3
|
-
const callbackify = (fn, reducer) => {
|
|
4
|
-
return utils.isAsyncFn(fn)
|
|
5
|
-
? function (...args) {
|
|
6
|
-
const cb = args.pop();
|
|
7
|
-
fn.apply(this, args).then((value) => {
|
|
8
|
-
try {
|
|
9
|
-
reducer ? cb(null, ...reducer(value)) : cb(null, value);
|
|
10
|
-
} catch (err) {
|
|
11
|
-
cb(err);
|
|
12
|
-
}
|
|
13
|
-
}, cb);
|
|
14
|
-
}
|
|
15
|
-
: fn;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export default callbackify;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Creates a new URL by combining the specified URLs
|
|
5
|
-
*
|
|
6
|
-
* @param {string} baseURL The base URL
|
|
7
|
-
* @param {string} relativeURL The relative URL
|
|
8
|
-
*
|
|
9
|
-
* @returns {string} The combined URL
|
|
10
|
-
*/
|
|
11
|
-
export default function combineURLs(baseURL, relativeURL) {
|
|
12
|
-
return relativeURL
|
|
13
|
-
? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '')
|
|
14
|
-
: baseURL;
|
|
15
|
-
}
|