@agility/content-fetch 2.0.0-rc2 → 2.0.0-rc20
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/build.js +24 -0
- package/dist/agility-content-fetch.node.js +894 -495
- package/dist/api-client.d.ts +3 -7
- package/dist/browser.js +510 -0
- package/dist/index.d.ts +8 -11
- package/dist/node.js +531 -0
- package/dist/types/Client.d.ts +8 -1
- package/dist/types/ContentItem.d.ts +11 -3
- package/dist/types/ContentZone.d.ts +1 -0
- package/dist/types/Filter.d.ts +1 -1
- package/dist/types/FilterOperator.d.ts +9 -9
- package/dist/types/Page.d.ts +3 -1
- package/package.json +18 -11
- package/tsconfig.json +1 -1
- package/.nyc_output/713b1ec2-05ec-4b67-8061-b6cad0a45ad5.json +0 -1
- package/.yarn/cache/@ampproject-remapping-npm-2.2.1-3da3d624be-03c04fd526.zip +0 -0
- package/.yarn/cache/@babel-code-frame-npm-7.22.5-b36f88d6f9-cfe804f518.zip +0 -0
- package/.yarn/cache/@babel-compat-data-npm-7.22.9-f9e02d51b9-bed77d9044.zip +0 -0
- package/.yarn/cache/@babel-core-npm-7.22.9-509b29c82e-7bf069aece.zip +0 -0
- package/.yarn/cache/@babel-generator-npm-7.22.9-d9fccf9328-7c9d2c58b8.zip +0 -0
- package/.yarn/cache/@babel-helper-compilation-targets-npm-7.22.9-b4473889ca-ea0006c6a9.zip +0 -0
- package/.yarn/cache/@babel-helper-environment-visitor-npm-7.22.5-7bc52eec61-248532077d.zip +0 -0
- package/.yarn/cache/@babel-helper-function-name-npm-7.22.5-8a1a69b63d-6b1f6ce1b1.zip +0 -0
- package/.yarn/cache/@babel-helper-hoist-variables-npm-7.22.5-6db3192347-394ca191b4.zip +0 -0
- package/.yarn/cache/@babel-helper-module-imports-npm-7.22.5-399b6063db-9ac2b0404f.zip +0 -0
- package/.yarn/cache/@babel-helper-module-transforms-npm-7.22.9-dfa9ef05d1-2751f77660.zip +0 -0
- package/.yarn/cache/@babel-helper-plugin-utils-npm-7.22.5-192e38e1de-c0fc722707.zip +0 -0
- package/.yarn/cache/@babel-helper-simple-access-npm-7.22.5-0a3f578780-fe9686714c.zip +0 -0
- package/.yarn/cache/@babel-helper-split-export-declaration-npm-7.22.6-e723505aef-e141cace58.zip +0 -0
- package/.yarn/cache/@babel-helper-string-parser-npm-7.22.5-448ff0e489-836851ca5e.zip +0 -0
- package/.yarn/cache/@babel-helper-validator-identifier-npm-7.22.5-4536624779-7f0f301134.zip +0 -0
- package/.yarn/cache/@babel-helper-validator-option-npm-7.22.5-eaf22b24ab-bbeca8a85e.zip +0 -0
- package/.yarn/cache/@babel-helpers-npm-7.22.6-8e54464b9e-5c1f33241f.zip +0 -0
- package/.yarn/cache/@babel-highlight-npm-7.22.5-3182ccc1fe-f61ae6de6e.zip +0 -0
- package/.yarn/cache/@babel-parser-npm-7.22.7-7fbdf28552-02209ddbd4.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-async-generators-npm-7.8.4-d10cf993c9-7ed1c1d9b9.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-bigint-npm-7.8.3-b05d971e6c-3a10849d83.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-class-properties-npm-7.12.13-002ee9d930-24f34b196d.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-import-meta-npm-7.10.4-4a0a0158bc-166ac1125d.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-json-strings-npm-7.8.3-6dc7848179-bf5aea1f31.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-jsx-npm-7.22.5-2cbf8e7e68-8829d30c26.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-logical-assignment-operators-npm-7.10.4-72ae00fdf6-aff3357703.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-nullish-coalescing-operator-npm-7.8.3-8a723173b5-87aca49189.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-numeric-separator-npm-7.10.4-81444be605-01ec5547bd.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-object-rest-spread-npm-7.8.3-60bd05b6ae-fddcf581a5.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-optional-catch-binding-npm-7.8.3-ce337427d8-910d90e72b.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-optional-chaining-npm-7.8.3-f3f3c79579-eef94d53a1.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-top-level-await-npm-7.14.5-60a0a2e83b-bbd1a56b09.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-typescript-npm-7.22.5-e17157d73d-8ab7718fbb.zip +0 -0
- package/.yarn/cache/@babel-template-npm-7.22.5-358c44dc9d-c574641016.zip +0 -0
- package/.yarn/cache/@babel-traverse-npm-7.22.8-98fbaaf7d8-a381369bc3.zip +0 -0
- package/.yarn/cache/@babel-types-npm-7.22.10-ffafe4058f-095c4f4b75.zip +0 -0
- package/.yarn/cache/@babel-types-npm-7.22.5-d1e4264bef-c13a9c1dc7.zip +0 -0
- package/.yarn/cache/@bcoe-v8-coverage-npm-0.2.3-9e27b3c57e-850f930553.zip +0 -0
- package/.yarn/cache/@colors-colors-npm-1.5.0-875af3a8b4-d64d5260be.zip +0 -0
- package/.yarn/cache/@isaacs-cliui-npm-8.0.2-f4364666d5-4a473b9b32.zip +0 -0
- package/.yarn/cache/@isaacs-string-locale-compare-npm-1.1.0-3911094464-7287da5d11.zip +0 -0
- package/.yarn/cache/@istanbuljs-load-nyc-config-npm-1.1.0-42d17c9cb1-d578da5e2e.zip +0 -0
- package/.yarn/cache/@istanbuljs-schema-npm-0.1.3-466bd3eaaa-5282759d96.zip +0 -0
- package/.yarn/cache/@jest-console-npm-29.6.2-4db58c0edb-1198667bda.zip +0 -0
- package/.yarn/cache/@jest-core-npm-29.6.2-5d908b046b-6bbb388643.zip +0 -0
- package/.yarn/cache/@jest-environment-npm-29.6.2-48e8b9de28-c7de0e4c0d.zip +0 -0
- package/.yarn/cache/@jest-expect-npm-29.6.2-7910937388-bd2d88a4e7.zip +0 -0
- package/.yarn/cache/@jest-expect-utils-npm-29.6.2-bafd0077bb-0decf2009a.zip +0 -0
- package/.yarn/cache/@jest-fake-timers-npm-29.6.2-db388f40be-1abcda02f2.zip +0 -0
- package/.yarn/cache/@jest-globals-npm-29.6.2-c549594aed-aa4a54f19c.zip +0 -0
- package/.yarn/cache/@jest-reporters-npm-29.6.2-42ade157bc-7cf880d073.zip +0 -0
- package/.yarn/cache/@jest-schemas-npm-29.6.0-3ca8b9309f-c00511c69c.zip +0 -0
- package/.yarn/cache/@jest-source-map-npm-29.6.0-84d0709d08-9c6c403874.zip +0 -0
- package/.yarn/cache/@jest-test-result-npm-29.6.2-066177b4eb-8aff37f18c.zip +0 -0
- package/.yarn/cache/@jest-test-sequencer-npm-29.6.2-05231e441f-12dc2577e4.zip +0 -0
- package/.yarn/cache/@jest-transform-npm-29.6.2-6b692dd6ca-ffb8c3c344.zip +0 -0
- package/.yarn/cache/@jest-types-npm-29.6.1-b7c765fadd-89fc1ccf71.zip +0 -0
- package/.yarn/cache/@jridgewell-gen-mapping-npm-0.3.3-1815eba94c-4a74944bd3.zip +0 -0
- package/.yarn/cache/@jridgewell-resolve-uri-npm-3.1.0-6ff2351e61-b5ceaaf9a1.zip +0 -0
- package/.yarn/cache/@jridgewell-set-array-npm-1.1.2-45b82d7fb6-69a84d5980.zip +0 -0
- package/.yarn/cache/@jridgewell-sourcemap-codec-npm-1.4.14-f5f0630788-61100637b6.zip +0 -0
- package/.yarn/cache/@jridgewell-sourcemap-codec-npm-1.4.15-a055fb62cf-b881c7e503.zip +0 -0
- package/.yarn/cache/@jridgewell-trace-mapping-npm-0.3.18-cd96571385-0572669f85.zip +0 -0
- package/.yarn/cache/@npmcli-arborist-npm-6.3.0-9d3adbe1f6-4f59d5408c.zip +0 -0
- package/.yarn/cache/@npmcli-config-npm-6.2.1-4191bac29e-8c8d47f900.zip +0 -0
- package/.yarn/cache/@npmcli-disparity-colors-npm-3.0.0-9fe9301a52-49320c6927.zip +0 -0
- package/.yarn/cache/@npmcli-fs-npm-3.1.0-0844a57978-a50a6818de.zip +0 -0
- package/.yarn/cache/@npmcli-git-npm-4.1.0-f7322fced9-37efb92659.zip +0 -0
- package/.yarn/cache/@npmcli-installed-package-contents-npm-2.0.2-99564e3824-60789d5ed2.zip +0 -0
- package/.yarn/cache/@npmcli-map-workspaces-npm-3.0.4-b07359726d-99607dbc50.zip +0 -0
- package/.yarn/cache/@npmcli-metavuln-calculator-npm-5.0.1-b28e316793-cd08ad9cc4.zip +0 -0
- package/.yarn/cache/@npmcli-name-from-folder-npm-2.0.0-18e2dba870-fb3ef891aa.zip +0 -0
- package/.yarn/cache/@npmcli-node-gyp-npm-3.0.0-b160a0116c-fe3802b813.zip +0 -0
- package/.yarn/cache/@npmcli-package-json-npm-4.0.1-8fba8ea1a2-699b80a72f.zip +0 -0
- package/.yarn/cache/@npmcli-promise-spawn-npm-6.0.2-c9941b207c-aa725780c1.zip +0 -0
- package/.yarn/cache/@npmcli-query-npm-3.0.0-53c05bcb30-90fca7edd5.zip +0 -0
- package/.yarn/cache/@npmcli-run-script-npm-6.0.2-6a98dec431-7a671d7dbe.zip +0 -0
- package/.yarn/cache/@pkgjs-parseargs-npm-0.11.0-cd2a3fe948-6ad6a00fc4.zip +0 -0
- package/.yarn/cache/@sigstore-bundle-npm-1.0.0-6224fc68db-9902b9fcd2.zip +0 -0
- package/.yarn/cache/@sigstore-protobuf-specs-npm-0.2.0-93c8e6c759-6b7c5d3612.zip +0 -0
- package/.yarn/cache/@sigstore-tuf-npm-1.0.3-9a2b6b14aa-0a32594b73.zip +0 -0
- package/.yarn/cache/@sinclair-typebox-npm-0.27.8-23e206d653-00bd7362a3.zip +0 -0
- package/.yarn/cache/@sinonjs-commons-npm-3.0.0-fa72ff71a1-b4b5b73d4d.zip +0 -0
- package/.yarn/cache/@sinonjs-fake-timers-npm-10.3.0-7417f876b4-614d30cb4d.zip +0 -0
- package/.yarn/cache/@tootallnate-once-npm-2.0.0-e36cf4f140-ad87447820.zip +0 -0
- package/.yarn/cache/@tufjs-canonical-json-npm-1.0.0-66d27d850f-9ff3bcd129.zip +0 -0
- package/.yarn/cache/@tufjs-models-npm-1.0.4-a1dddaf561-b489baa854.zip +0 -0
- package/.yarn/cache/@types-babel__core-npm-7.20.1-f44761b6b6-9fcd9691a3.zip +0 -0
- package/.yarn/cache/@types-babel__generator-npm-7.6.4-03e776f956-20effbbb5f.zip +0 -0
- package/.yarn/cache/@types-babel__template-npm-7.4.1-fe1db49e53-649fe8b42c.zip +0 -0
- package/.yarn/cache/@types-babel__traverse-npm-7.20.1-e1e93d4b3f-58341e23c6.zip +0 -0
- package/.yarn/cache/@types-graceful-fs-npm-4.1.6-1eadcf742d-c3070ccdc9.zip +0 -0
- package/.yarn/cache/@types-istanbul-lib-coverage-npm-2.0.4-734954bb56-a25d7589ee.zip +0 -0
- package/.yarn/cache/@types-istanbul-lib-report-npm-3.0.0-50de3e6b3b-656398b62d.zip +0 -0
- package/.yarn/cache/@types-istanbul-reports-npm-3.0.1-770e825002-f1ad54bc68.zip +0 -0
- package/.yarn/cache/@types-jest-npm-29.5.3-8fc40e94bc-e36bb92e0b.zip +0 -0
- package/.yarn/cache/@types-node-npm-18.11.9-d21dd6ec05-cc0aae109e.zip +0 -0
- package/.yarn/cache/@types-node-npm-20.4.5-7555fad0d4-36a0304a8d.zip +0 -0
- package/.yarn/cache/@types-stack-utils-npm-2.0.1-867718ab70-205fdbe332.zip +0 -0
- package/.yarn/cache/@types-yargs-npm-17.0.24-b034cf1d8b-5f3ac4dc4f.zip +0 -0
- package/.yarn/cache/@types-yargs-parser-npm-21.0.0-c8a3b32c52-b2f4c8d12a.zip +0 -0
- package/.yarn/cache/abbrev-npm-1.1.1-3659247eab-a4a97ec07d.zip +0 -0
- package/.yarn/cache/abbrev-npm-2.0.0-0eb38a17e5-0e994ad2aa.zip +0 -0
- package/.yarn/cache/abort-controller-npm-3.0.0-2f3a9a2bcb-170bdba9b4.zip +0 -0
- package/.yarn/cache/agent-base-npm-6.0.2-428f325a93-f52b6872cc.zip +0 -0
- package/.yarn/cache/agentkeepalive-npm-4.3.0-ac3d8e6807-982453aa44.zip +0 -0
- package/.yarn/cache/aggregate-error-npm-3.1.0-415a406f4e-1101a33f21.zip +0 -0
- package/.yarn/cache/agility-jsdoc-template-npm-1.0.3-552626862e-eab23c1f7f.zip +0 -0
- package/.yarn/cache/ansi-escapes-npm-4.3.2-3ad173702f-93111c4218.zip +0 -0
- package/.yarn/cache/ansi-regex-npm-5.0.1-c963a48615-2aa4bb54ca.zip +0 -0
- package/.yarn/cache/ansi-regex-npm-6.0.1-8d663a607d-1ff8b7667c.zip +0 -0
- package/.yarn/cache/ansi-styles-npm-3.2.1-8cb8107983-d85ade01c1.zip +0 -0
- package/.yarn/cache/ansi-styles-npm-4.3.0-245c7d42c7-513b44c3b2.zip +0 -0
- package/.yarn/cache/ansi-styles-npm-5.2.0-72fc7003e3-d7f4e97ce0.zip +0 -0
- package/.yarn/cache/ansi-styles-npm-6.2.1-d43647018c-ef940f2f0c.zip +0 -0
- package/.yarn/cache/anymatch-npm-3.1.3-bc81d103b1-3e044fd6d1.zip +0 -0
- package/.yarn/cache/aproba-npm-2.0.0-8716bcfde6-5615cadcfb.zip +0 -0
- package/.yarn/cache/archy-npm-1.0.0-7db8bfdc3b-504ae7af65.zip +0 -0
- package/.yarn/cache/are-we-there-yet-npm-3.0.1-3395b1512f-52590c2486.zip +0 -0
- package/.yarn/cache/are-we-there-yet-npm-4.0.1-734c8e8dce-16871ee259.zip +0 -0
- package/.yarn/cache/argparse-npm-1.0.10-528934e59d-7ca6e45583.zip +0 -0
- package/.yarn/cache/asynckit-npm-0.4.0-c718858525-7b78c451df.zip +0 -0
- package/.yarn/cache/axios-cache-adapter-npm-2.7.3-26c357b785-ff44bee6a2.zip +0 -0
- package/.yarn/cache/axios-npm-0.27.2-dbe3a48aea-38cb754046.zip +0 -0
- package/.yarn/cache/babel-jest-npm-29.6.2-b4a252efef-3936b5d6ed.zip +0 -0
- package/.yarn/cache/babel-plugin-istanbul-npm-6.1.1-df824055e4-cb4fd95738.zip +0 -0
- package/.yarn/cache/babel-plugin-jest-hoist-npm-29.5.0-3760955b96-099b525407.zip +0 -0
- package/.yarn/cache/babel-preset-current-node-syntax-npm-1.0.1-849ec71e32-d118c27424.zip +0 -0
- package/.yarn/cache/babel-preset-jest-npm-29.5.0-1e9ee3b405-5566ca2762.zip +0 -0
- package/.yarn/cache/balanced-match-npm-1.0.2-a53c126459-9706c088a2.zip +0 -0
- package/.yarn/cache/base64-js-npm-1.5.1-b2f7275641-669632eb37.zip +0 -0
- package/.yarn/cache/bin-links-npm-4.0.2-592819adbc-6f83e73100.zip +0 -0
- package/.yarn/cache/binary-extensions-npm-2.2.0-180c33fec7-ccd267956c.zip +0 -0
- package/.yarn/cache/brace-expansion-npm-1.1.11-fb95eb05ad-faf34a7bb0.zip +0 -0
- package/.yarn/cache/brace-expansion-npm-2.0.1-17aa2616f9-a61e7cd2e8.zip +0 -0
- package/.yarn/cache/braces-npm-3.0.2-782240b28a-e2a8e769a8.zip +0 -0
- package/.yarn/cache/browserslist-npm-4.21.10-e2170a875b-1e27c0f111.zip +0 -0
- package/.yarn/cache/bs-logger-npm-0.2.6-7670f88b66-d34bdaf68c.zip +0 -0
- package/.yarn/cache/bser-npm-2.1.1-cc902055ce-9ba4dc58ce.zip +0 -0
- package/.yarn/cache/buffer-from-npm-1.1.2-03d2f20d7e-0448524a56.zip +0 -0
- package/.yarn/cache/buffer-npm-6.0.3-cd90dfedfe-5ad23293d9.zip +0 -0
- package/.yarn/cache/builtins-npm-5.0.1-6d4820dd76-66d204657f.zip +0 -0
- package/.yarn/cache/cacache-npm-17.1.3-f75f768a29-385756781e.zip +0 -0
- package/.yarn/cache/cache-control-esm-npm-1.0.0-ee383a8c40-4f8c8399f2.zip +0 -0
- package/.yarn/cache/callsites-npm-3.1.0-268f989910-072d17b6ab.zip +0 -0
- package/.yarn/cache/camelcase-npm-5.3.1-5db8af62c5-e6effce26b.zip +0 -0
- package/.yarn/cache/camelcase-npm-6.3.0-e5e42a0d15-8c96818a90.zip +0 -0
- package/.yarn/cache/caniuse-lite-npm-1.0.30001518-2e4e82df98-1b63272f6e.zip +0 -0
- package/.yarn/cache/chalk-npm-2.4.2-3ea16dd91e-ec3661d38f.zip +0 -0
- package/.yarn/cache/chalk-npm-4.1.2-ba8b67ab80-fe75c9d5c7.zip +0 -0
- package/.yarn/cache/chalk-npm-5.3.0-d181999efb-623922e077.zip +0 -0
- package/.yarn/cache/char-regex-npm-1.0.2-ecade5f97f-b563e4b603.zip +0 -0
- package/.yarn/cache/charenc-npm-0.0.2-aca0c2f207-81dcadbe57.zip +0 -0
- package/.yarn/cache/chownr-npm-2.0.0-638f1c9c61-c57cf9dd07.zip +0 -0
- package/.yarn/cache/ci-info-npm-3.8.0-d56a0b67d6-d0a4d31604.zip +0 -0
- package/.yarn/cache/cidr-regex-npm-3.1.1-a5f3c156e7-ef9306d086.zip +0 -0
- package/.yarn/cache/cjs-module-lexer-npm-1.2.3-9d788a3c14-5ea3cb867a.zip +0 -0
- package/.yarn/cache/clean-stack-npm-2.2.0-a8ce435a5c-2ac8cd2b2f.zip +0 -0
- package/.yarn/cache/cli-columns-npm-4.0.0-7c43bbe435-fa1a3a7f4e.zip +0 -0
- package/.yarn/cache/cli-table3-npm-0.6.3-1dca7f9152-09897f6846.zip +0 -0
- package/.yarn/cache/cliui-npm-8.0.1-3b029092cf-79648b3b00.zip +0 -0
- package/.yarn/cache/clone-npm-1.0.4-a610fcbcf9-d06418b733.zip +0 -0
- package/.yarn/cache/cmd-shim-npm-6.0.1-87ebf774a0-359006b3a5.zip +0 -0
- package/.yarn/cache/co-npm-4.6.0-03f2d1feb6-5210d92230.zip +0 -0
- package/.yarn/cache/collect-v8-coverage-npm-1.0.2-bd20d0c572-c10f41c39a.zip +0 -0
- package/.yarn/cache/color-convert-npm-1.9.3-1fe690075e-fd7a64a17c.zip +0 -0
- package/.yarn/cache/color-convert-npm-2.0.1-79730e935b-79e6bdb9fd.zip +0 -0
- package/.yarn/cache/color-name-npm-1.1.3-728b7b5d39-09c5d3e33d.zip +0 -0
- package/.yarn/cache/color-name-npm-1.1.4-025792b0ea-b044585952.zip +0 -0
- package/.yarn/cache/color-support-npm-1.1.3-3be5c53455-9b73568176.zip +0 -0
- package/.yarn/cache/columnify-npm-1.6.0-aa925d932b-0d59002361.zip +0 -0
- package/.yarn/cache/combined-stream-npm-1.0.8-dc14d4a63a-49fa4aeb49.zip +0 -0
- package/.yarn/cache/common-ancestor-path-npm-1.0.1-27534e68da-1d2e418606.zip +0 -0
- package/.yarn/cache/concat-map-npm-0.0.1-85a921b7ee-902a9f5d89.zip +0 -0
- package/.yarn/cache/console-control-strings-npm-1.1.0-e3160e5275-8755d76787.zip +0 -0
- package/.yarn/cache/convert-source-map-npm-1.9.0-e294555f4b-dc55a1f28d.zip +0 -0
- package/.yarn/cache/convert-source-map-npm-2.0.0-7ab664dc4e-63ae9933be.zip +0 -0
- package/.yarn/cache/cross-spawn-npm-7.0.3-e4ff3e65b3-671cc7c728.zip +0 -0
- package/.yarn/cache/crypt-npm-0.0.2-033627d94f-baf4c7bbe0.zip +0 -0
- package/.yarn/cache/cssesc-npm-3.0.0-15ec56f86f-f8c4ababff.zip +0 -0
- package/.yarn/cache/debug-npm-4.3.4-4513954577-3dbad3f94e.zip +0 -0
- package/.yarn/cache/dedent-npm-1.5.1-8d0a005200-c3c300a14e.zip +0 -0
- package/.yarn/cache/deepmerge-npm-4.3.1-4f751a0844-2024c6a980.zip +0 -0
- package/.yarn/cache/defaults-npm-1.0.4-f3fbaf2528-3a88b7a587.zip +0 -0
- package/.yarn/cache/delayed-stream-npm-1.0.0-c5a4c4cc02-46fe6e83e2.zip +0 -0
- package/.yarn/cache/delegates-npm-1.0.0-9b1942d75f-a51744d9b5.zip +0 -0
- package/.yarn/cache/depd-npm-2.0.0-b6c51a4b43-abbe19c768.zip +0 -0
- package/.yarn/cache/detect-newline-npm-3.1.0-6d33fa8d37-ae6cd429c4.zip +0 -0
- package/.yarn/cache/diff-npm-5.1.0-d24d222280-c7bf0df7c9.zip +0 -0
- package/.yarn/cache/diff-sequences-npm-29.4.3-ffe403944f-28b265e04f.zip +0 -0
- package/.yarn/cache/eastasianwidth-npm-0.2.0-c37eb16bd1-7d00d7cd8e.zip +0 -0
- package/.yarn/cache/electron-to-chromium-npm-1.4.481-eaa539b254-52b7e8d7ae.zip +0 -0
- package/.yarn/cache/emittery-npm-0.13.1-cb6cd1bb03-2b089ab630.zip +0 -0
- package/.yarn/cache/emoji-regex-npm-8.0.0-213764015c-d4c5c39d5a.zip +0 -0
- package/.yarn/cache/emoji-regex-npm-9.2.2-e6fac8d058-8487182da7.zip +0 -0
- package/.yarn/cache/encoding-npm-0.1.13-82a1837d30-bb98632f8f.zip +0 -0
- package/.yarn/cache/env-paths-npm-2.2.1-7c7577428c-65b5df55a8.zip +0 -0
- package/.yarn/cache/err-code-npm-2.0.3-082e0ff9a7-8b7b1be20d.zip +0 -0
- package/.yarn/cache/error-ex-npm-1.3.2-5654f80c0f-c1c2b8b65f.zip +0 -0
- package/.yarn/cache/escalade-npm-3.1.1-e02da076aa-a3e2a99f07.zip +0 -0
- package/.yarn/cache/escape-string-regexp-npm-1.0.5-3284de402f-6092fda75c.zip +0 -0
- package/.yarn/cache/escape-string-regexp-npm-2.0.0-aef69d2a25-9f8a2d5743.zip +0 -0
- package/.yarn/cache/esprima-npm-4.0.1-1084e98778-b45bc805a6.zip +0 -0
- package/.yarn/cache/event-target-shim-npm-5.0.1-cb48709025-1ffe3bb22a.zip +0 -0
- package/.yarn/cache/events-npm-3.3.0-c280bc7e48-f6f487ad21.zip +0 -0
- package/.yarn/cache/execa-npm-5.1.1-191347acf5-fba9022c8c.zip +0 -0
- package/.yarn/cache/exit-npm-0.1.2-ef3761a67d-abc407f07a.zip +0 -0
- package/.yarn/cache/expect-npm-29.6.2-d56284fd66-71f7b0c560.zip +0 -0
- package/.yarn/cache/exponential-backoff-npm-3.1.1-04df458b30-3d21519a4f.zip +0 -0
- package/.yarn/cache/fast-json-stable-stringify-npm-2.1.0-02e8905fda-b191531e36.zip +0 -0
- package/.yarn/cache/fastest-levenshtein-npm-1.0.16-192d328856-a78d44285c.zip +0 -0
- package/.yarn/cache/fb-watchman-npm-2.0.2-bcb6f8f831-b15a124cef.zip +0 -0
- package/.yarn/cache/fill-range-npm-7.0.1-b8b1817caa-cc283f4e65.zip +0 -0
- package/.yarn/cache/find-up-npm-4.1.0-c3ccf8d855-4c172680e8.zip +0 -0
- package/.yarn/cache/follow-redirects-npm-1.15.2-1ec1dd82be-faa66059b6.zip +0 -0
- package/.yarn/cache/foreground-child-npm-3.1.1-77e78ed774-139d270bc8.zip +0 -0
- package/.yarn/cache/form-data-npm-4.0.0-916facec2d-01135bf867.zip +0 -0
- package/.yarn/cache/fs-minipass-npm-2.1.0-501ef87306-1b8d128dae.zip +0 -0
- package/.yarn/cache/fs-minipass-npm-3.0.2-a27ef235f5-e9cc0e1f2d.zip +0 -0
- package/.yarn/cache/fs.realpath-npm-1.0.0-c8f05d8126-99ddea01a7.zip +0 -0
- package/.yarn/cache/fsevents-npm-2.3.2-a881d6ac9f-97ade64e75.zip +0 -0
- package/.yarn/cache/fsevents-patch-2882183fbf-8.zip +0 -0
- package/.yarn/cache/function-bind-npm-1.1.1-b56b322ae9-b32fbaebb3.zip +0 -0
- package/.yarn/cache/gauge-npm-4.0.4-8f878385e9-788b6bfe52.zip +0 -0
- package/.yarn/cache/gauge-npm-5.0.1-69ab73de36-09b1eb8d8c.zip +0 -0
- package/.yarn/cache/gensync-npm-1.0.0-beta.2-224666d72f-a7437e58c6.zip +0 -0
- package/.yarn/cache/get-caller-file-npm-2.0.5-80e8a86305-b9769a836d.zip +0 -0
- package/.yarn/cache/get-package-type-npm-0.1.0-6c70cdc8ab-bba0811116.zip +0 -0
- package/.yarn/cache/get-stream-npm-6.0.1-83e51a4642-e04ecece32.zip +0 -0
- package/.yarn/cache/glob-npm-10.3.3-2d9abea8c7-29190d3291.zip +0 -0
- package/.yarn/cache/glob-npm-7.2.3-2d866d17a5-29452e97b3.zip +0 -0
- package/.yarn/cache/globals-npm-11.12.0-1fa7f41a6c-67051a45ec.zip +0 -0
- package/.yarn/cache/graceful-fs-npm-4.2.11-24bb648a68-ac85f94da9.zip +0 -0
- package/.yarn/cache/has-flag-npm-3.0.0-16ac11fe05-4a15638b45.zip +0 -0
- package/.yarn/cache/has-flag-npm-4.0.0-32af9f0536-261a135703.zip +0 -0
- package/.yarn/cache/has-npm-1.0.3-b7f00631c1-b9ad53d53b.zip +0 -0
- package/.yarn/cache/has-unicode-npm-2.0.1-893adb4747-1eab07a743.zip +0 -0
- package/.yarn/cache/hosted-git-info-npm-6.1.1-d57807f6a5-fcd3ca2eaa.zip +0 -0
- package/.yarn/cache/html-escaper-npm-2.0.2-38e51ef294-d2df2da3ad.zip +0 -0
- package/.yarn/cache/http-cache-semantics-npm-4.1.1-1120131375-83ac0bc60b.zip +0 -0
- package/.yarn/cache/http-proxy-agent-npm-5.0.0-7f1f121b83-e2ee1ff165.zip +0 -0
- package/.yarn/cache/https-proxy-agent-npm-5.0.1-42d65f358e-571fccdf38.zip +0 -0
- package/.yarn/cache/human-signals-npm-2.1.0-f75815481d-b87fd89fce.zip +0 -0
- package/.yarn/cache/humanize-ms-npm-1.2.1-e942bd7329-9c7a74a282.zip +0 -0
- package/.yarn/cache/iconv-lite-npm-0.6.3-24b8aae27e-3f60d47a5c.zip +0 -0
- package/.yarn/cache/ieee754-npm-1.2.1-fb63b3caeb-5144c0c981.zip +0 -0
- package/.yarn/cache/ignore-walk-npm-6.0.3-ebca6b06c4-d8ba534beb.zip +0 -0
- package/.yarn/cache/import-local-npm-3.1.0-8960af5e51-bfcdb63b5e.zip +0 -0
- package/.yarn/cache/imurmurhash-npm-0.1.4-610c5068a0-7cae75c8cd.zip +0 -0
- package/.yarn/cache/indent-string-npm-4.0.0-7b717435b2-824cfb9929.zip +0 -0
- package/.yarn/cache/inflight-npm-1.0.6-ccedb4b908-f4f76aa072.zip +0 -0
- package/.yarn/cache/inherits-npm-2.0.4-c66b3957a0-4a48a73384.zip +0 -0
- package/.yarn/cache/ini-npm-4.1.1-01c2cbda7b-0e59095540.zip +0 -0
- package/.yarn/cache/init-package-json-npm-5.0.0-0656c8f580-ad601c717d.zip +0 -0
- package/.yarn/cache/install-npm-0.13.0-53f6b8981f-645bad1253.zip +0 -0
- package/.yarn/cache/ip-npm-2.0.0-204facb3cc-cfcfac6b87.zip +0 -0
- package/.yarn/cache/ip-regex-npm-4.3.0-4ac12c6be9-7ff904b891.zip +0 -0
- package/.yarn/cache/is-arrayish-npm-0.2.1-23927dfb15-eef4417e3c.zip +0 -0
- package/.yarn/cache/is-buffer-npm-1.1.6-08199d9ccc-4a186d995d.zip +0 -0
- package/.yarn/cache/is-cidr-npm-4.0.2-74bbb734d3-ee6e670e65.zip +0 -0
- package/.yarn/cache/is-core-module-npm-2.12.1-ce74e89160-f04ea30533.zip +0 -0
- package/.yarn/cache/is-fullwidth-code-point-npm-3.0.0-1ecf4ebee5-44a30c2945.zip +0 -0
- package/.yarn/cache/is-generator-fn-npm-2.1.0-37895c2d2b-a6ad5492cf.zip +0 -0
- package/.yarn/cache/is-lambda-npm-1.0.1-7ab55bc8a8-93a32f0194.zip +0 -0
- package/.yarn/cache/is-number-npm-7.0.0-060086935c-456ac6f8e0.zip +0 -0
- package/.yarn/cache/is-stream-npm-2.0.1-c802db55e7-b8e05ccdf9.zip +0 -0
- package/.yarn/cache/isexe-npm-2.0.0-b58870bd2e-26bf6c5480.zip +0 -0
- package/.yarn/cache/istanbul-lib-coverage-npm-3.2.0-93f84b2c8c-a2a545033b.zip +0 -0
- package/.yarn/cache/istanbul-lib-instrument-npm-5.2.1-1b3ad719a9-bf16f1803b.zip +0 -0
- package/.yarn/cache/istanbul-lib-report-npm-3.0.1-b17446ab24-fd17a1b879.zip +0 -0
- package/.yarn/cache/istanbul-lib-source-maps-npm-4.0.1-af0f859df7-21ad3df45d.zip +0 -0
- package/.yarn/cache/istanbul-reports-npm-3.1.6-66918eb97f-44c4c0582f.zip +0 -0
- package/.yarn/cache/jackspeak-npm-2.2.2-374ca454fe-7b1468dd91.zip +0 -0
- package/.yarn/cache/jest-changed-files-npm-29.5.0-9ca582b770-a67a7cb3c1.zip +0 -0
- package/.yarn/cache/jest-circus-npm-29.6.2-675d768a16-4f5a96a68c.zip +0 -0
- package/.yarn/cache/jest-cli-npm-29.6.2-99e0036409-0b7b09ae4b.zip +0 -0
- package/.yarn/cache/jest-config-npm-29.6.2-71660b6c0c-3bd104a3ac.zip +0 -0
- package/.yarn/cache/jest-diff-npm-29.6.2-caa9c5f644-0effd66a0c.zip +0 -0
- package/.yarn/cache/jest-docblock-npm-29.4.3-0fa9ff492b-e0e9df1485.zip +0 -0
- package/.yarn/cache/jest-each-npm-29.6.2-c58f436344-b64194f4ca.zip +0 -0
- package/.yarn/cache/jest-environment-node-npm-29.6.2-0ac11b8f1c-0b754ac2d3.zip +0 -0
- package/.yarn/cache/jest-get-type-npm-29.4.3-790eefdb01-6ac7f2dde1.zip +0 -0
- package/.yarn/cache/jest-haste-map-npm-29.6.2-70adb235f5-7262339720.zip +0 -0
- package/.yarn/cache/jest-leak-detector-npm-29.6.2-d58b6b7df0-e00152acdb.zip +0 -0
- package/.yarn/cache/jest-matcher-utils-npm-29.6.2-fd1c69812e-3e1b65dd30.zip +0 -0
- package/.yarn/cache/jest-message-util-npm-29.6.2-8bd7bc632e-e8e3c8d230.zip +0 -0
- package/.yarn/cache/jest-mock-npm-29.6.2-c31cf48c24-0bacb5d584.zip +0 -0
- package/.yarn/cache/jest-npm-29.6.2-5eda7a13ff-dd63facd4e.zip +0 -0
- package/.yarn/cache/jest-pnp-resolver-npm-1.2.3-70e06bf27c-db1a8ab2cb.zip +0 -0
- package/.yarn/cache/jest-regex-util-npm-29.4.3-defc22c588-96fc7fc28c.zip +0 -0
- package/.yarn/cache/jest-resolve-dependencies-npm-29.6.2-63dbac2655-d40ee11af2.zip +0 -0
- package/.yarn/cache/jest-resolve-npm-29.6.2-21cedcf0b9-01721957e6.zip +0 -0
- package/.yarn/cache/jest-runner-npm-29.6.2-74dddde534-46bd506a08.zip +0 -0
- package/.yarn/cache/jest-runtime-npm-29.6.2-3a51c05bc4-8e7e4486b2.zip +0 -0
- package/.yarn/cache/jest-snapshot-npm-29.6.2-6ed320289f-c1c70a9dbc.zip +0 -0
- package/.yarn/cache/jest-util-npm-29.6.2-41bd0e8e02-8aedc0c800.zip +0 -0
- package/.yarn/cache/jest-validate-npm-29.6.2-008427c47c-32648d0021.zip +0 -0
- package/.yarn/cache/jest-watcher-npm-29.6.2-ec5e606774-14624190fc.zip +0 -0
- package/.yarn/cache/jest-worker-npm-29.6.2-ccd8e6f0e1-1103556453.zip +0 -0
- package/.yarn/cache/js-tokens-npm-4.0.0-0ac852e9e2-8a95213a5a.zip +0 -0
- package/.yarn/cache/js-yaml-npm-3.14.1-b968c6095e-bef146085f.zip +0 -0
- package/.yarn/cache/jsesc-npm-2.5.2-c5acb78804-4dc1907711.zip +0 -0
- package/.yarn/cache/json-parse-even-better-errors-npm-2.3.1-144d62256e-798ed4cf33.zip +0 -0
- package/.yarn/cache/json-parse-even-better-errors-npm-3.0.0-3675833c0a-f1970b5220.zip +0 -0
- package/.yarn/cache/json-stringify-nice-npm-1.1.4-0b0ddb188b-6ddf781148.zip +0 -0
- package/.yarn/cache/json5-npm-2.2.3-9962c55073-2a7436a933.zip +0 -0
- package/.yarn/cache/jsonparse-npm-1.3.1-b6fde74828-6514a7be46.zip +0 -0
- package/.yarn/cache/just-diff-apply-npm-5.5.0-04951e29f4-ed6bbd5978.zip +0 -0
- package/.yarn/cache/just-diff-npm-6.0.2-f73771d84e-1a0c7524f6.zip +0 -0
- package/.yarn/cache/kleur-npm-3.0.3-f6f53649a4-df82cd1e17.zip +0 -0
- package/.yarn/cache/leven-npm-3.1.0-b7697736a3-638401d534.zip +0 -0
- package/.yarn/cache/libnpmaccess-npm-7.0.2-57b91bfda5-73d49f3939.zip +0 -0
- package/.yarn/cache/libnpmdiff-npm-5.0.19-26809d318b-47835abc81.zip +0 -0
- package/.yarn/cache/libnpmexec-npm-6.0.3-9bfdfc5775-c9c92dc29a.zip +0 -0
- package/.yarn/cache/libnpmfund-npm-4.0.19-742ff1c9b5-77905879f7.zip +0 -0
- package/.yarn/cache/libnpmhook-npm-9.0.3-1ed2368ed2-535ecefa22.zip +0 -0
- package/.yarn/cache/libnpmorg-npm-5.0.4-8ff49f84d5-4e170ba145.zip +0 -0
- package/.yarn/cache/libnpmpack-npm-5.0.19-fad75068a8-d164d61383.zip +0 -0
- package/.yarn/cache/libnpmpublish-npm-7.5.0-e0dfdc81a9-feb99876be.zip +0 -0
- package/.yarn/cache/libnpmsearch-npm-6.0.2-664c687722-7a62e5cb1c.zip +0 -0
- package/.yarn/cache/libnpmteam-npm-5.0.3-1e0a2afab9-a39ccdb4a6.zip +0 -0
- package/.yarn/cache/libnpmversion-npm-4.0.2-257501dd35-4666db4671.zip +0 -0
- package/.yarn/cache/lines-and-columns-npm-1.2.4-d6c7cc5799-0c37f9f7fa.zip +0 -0
- package/.yarn/cache/locate-path-npm-5.0.0-46580c43e4-83e51725e6.zip +0 -0
- package/.yarn/cache/lodash.memoize-npm-4.1.2-0e6250041f-9ff3942fee.zip +0 -0
- package/.yarn/cache/lru-cache-npm-10.0.0-256d74bb20-18f101675f.zip +0 -0
- package/.yarn/cache/lru-cache-npm-5.1.1-f475882a51-c154ae1cbb.zip +0 -0
- package/.yarn/cache/lru-cache-npm-6.0.0-b4c8668fe1-f97f499f89.zip +0 -0
- package/.yarn/cache/lru-cache-npm-7.18.3-e68be5b11c-e550d77238.zip +0 -0
- package/.yarn/cache/make-dir-npm-4.0.0-ec3cd921cc-bf0731a2dd.zip +0 -0
- package/.yarn/cache/make-error-npm-1.3.6-ccb85d9458-b86e5e0e25.zip +0 -0
- package/.yarn/cache/make-fetch-happen-npm-11.1.1-f32b79aaaa-7268bf274a.zip +0 -0
- package/.yarn/cache/makeerror-npm-1.0.12-69abf085d7-b38a025a12.zip +0 -0
- package/.yarn/cache/md5-npm-2.3.0-86c49d3915-a63cacf401.zip +0 -0
- package/.yarn/cache/merge-stream-npm-2.0.0-2ac83efea5-6fa4dcc8d8.zip +0 -0
- package/.yarn/cache/micromatch-npm-4.0.5-cfab5d7669-02a17b671c.zip +0 -0
- package/.yarn/cache/mime-db-npm-1.52.0-b5371d6fd2-0d99a03585.zip +0 -0
- package/.yarn/cache/mime-types-npm-2.1.35-dd9ea9f3e2-89a5b7f1de.zip +0 -0
- package/.yarn/cache/mimic-fn-npm-2.1.0-4fbeb3abb4-d2421a3444.zip +0 -0
- package/.yarn/cache/minimatch-npm-3.1.2-9405269906-c154e56640.zip +0 -0
- package/.yarn/cache/minimatch-npm-9.0.3-69d7d6fad5-253487976b.zip +0 -0
- package/.yarn/cache/minipass-collect-npm-1.0.2-3b4676eab5-14df761028.zip +0 -0
- package/.yarn/cache/minipass-fetch-npm-3.0.3-2c4966d142-af5ab2552a.zip +0 -0
- package/.yarn/cache/minipass-flush-npm-1.0.5-efe79d9826-56269a0b22.zip +0 -0
- package/.yarn/cache/minipass-json-stream-npm-1.0.1-96490706d6-791b696a27.zip +0 -0
- package/.yarn/cache/minipass-npm-3.3.6-b8d93a945b-a30d083c80.zip +0 -0
- package/.yarn/cache/minipass-npm-5.0.0-c64fb63c92-425dab2887.zip +0 -0
- package/.yarn/cache/minipass-npm-7.0.2-baa42a5a34-46776de732.zip +0 -0
- package/.yarn/cache/minipass-pipeline-npm-1.2.4-5924cb077f-b14240dac0.zip +0 -0
- package/.yarn/cache/minipass-sized-npm-1.0.3-306d86f432-79076749fc.zip +0 -0
- package/.yarn/cache/minizlib-npm-2.1.2-ea89cd0cfb-f1fdeac0b0.zip +0 -0
- package/.yarn/cache/mkdirp-npm-1.0.4-37f6ef56b9-a96865108c.zip +0 -0
- package/.yarn/cache/ms-npm-2.1.2-ec0c1512ff-673cdb2c31.zip +0 -0
- package/.yarn/cache/ms-npm-2.1.3-81ff3cfac1-aa92de6080.zip +0 -0
- package/.yarn/cache/mute-stream-npm-1.0.0-b6e846d471-36fc968b0e.zip +0 -0
- package/.yarn/cache/natural-compare-npm-1.4.0-97b75b362d-23ad088b08.zip +0 -0
- package/.yarn/cache/negotiator-npm-0.6.3-9d50e36171-b8ffeb1e26.zip +0 -0
- package/.yarn/cache/node-gyp-npm-9.4.0-ebf5f5573e-78b404e2e0.zip +0 -0
- package/.yarn/cache/node-int64-npm-0.4.0-0dc04ec3b2-d0b30b1ee6.zip +0 -0
- package/.yarn/cache/node-releases-npm-2.0.13-1f2e177887-17ec8f315d.zip +0 -0
- package/.yarn/cache/nopt-npm-6.0.0-5ea8050815-82149371f8.zip +0 -0
- package/.yarn/cache/nopt-npm-7.2.0-dd734b678d-a9c0f57fb8.zip +0 -0
- package/.yarn/cache/normalize-package-data-npm-5.0.0-6327e2af68-a459f05eaf.zip +0 -0
- package/.yarn/cache/normalize-path-npm-3.0.0-658ba7d77f-88eeb4da89.zip +0 -0
- package/.yarn/cache/npm-audit-report-npm-5.0.0-b0af56272d-a18f16f514.zip +0 -0
- package/.yarn/cache/npm-bundled-npm-3.0.0-0b3c5ee4f3-110859c2d6.zip +0 -0
- package/.yarn/cache/npm-install-checks-npm-6.1.1-e05db36ccf-8fb3ed05cf.zip +0 -0
- package/.yarn/cache/npm-normalize-package-bin-npm-3.0.1-6c120b50f7-de416d720a.zip +0 -0
- package/.yarn/cache/npm-npm-9.8.1-c06ac946c2-d3f12cd0c0.zip +0 -0
- package/.yarn/cache/npm-package-arg-npm-10.1.0-e9f0aaa69d-8fe4b6a742.zip +0 -0
- package/.yarn/cache/npm-packlist-npm-7.0.4-1c0b919056-5ffa1f8f0b.zip +0 -0
- package/.yarn/cache/npm-pick-manifest-npm-8.0.2-ec194cb513-c9f71b5735.zip +0 -0
- package/.yarn/cache/npm-profile-npm-7.0.1-73c58f96b1-c78d2e6394.zip +0 -0
- package/.yarn/cache/npm-registry-fetch-npm-14.0.5-6b3e6c0dd0-c636496429.zip +0 -0
- package/.yarn/cache/npm-run-path-npm-4.0.1-7aebd8bab3-5374c0cea4.zip +0 -0
- package/.yarn/cache/npm-user-validate-npm-2.0.0-2fa10ebf8a-52c0c64cb2.zip +0 -0
- package/.yarn/cache/npmlog-npm-6.0.2-e0e69455c7-ae238cd264.zip +0 -0
- package/.yarn/cache/npmlog-npm-7.0.1-a0f355f530-caabeb1f55.zip +0 -0
- package/.yarn/cache/once-npm-1.4.0-ccf03ef07a-cd0a885013.zip +0 -0
- package/.yarn/cache/onetime-npm-5.1.2-3ed148fa42-2478859ef8.zip +0 -0
- package/.yarn/cache/p-limit-npm-2.3.0-94a0310039-84ff17f1a3.zip +0 -0
- package/.yarn/cache/p-limit-npm-3.1.0-05d2ede37f-7c3690c4db.zip +0 -0
- package/.yarn/cache/p-locate-npm-4.1.0-eec6872537-513bd14a45.zip +0 -0
- package/.yarn/cache/p-map-npm-4.0.0-4677ae07c7-cb0ab21ec0.zip +0 -0
- package/.yarn/cache/p-try-npm-2.2.0-e0390dbaf8-f8a8e9a769.zip +0 -0
- package/.yarn/cache/pacote-npm-15.2.0-b9ed3321e9-c731572be2.zip +0 -0
- package/.yarn/cache/parse-conflict-json-npm-3.0.1-9455a1ad04-d8d2656bc0.zip +0 -0
- package/.yarn/cache/parse-json-npm-5.2.0-00a63b1199-62085b17d6.zip +0 -0
- package/.yarn/cache/path-exists-npm-4.0.0-e9e4f63eb0-505807199d.zip +0 -0
- package/.yarn/cache/path-is-absolute-npm-1.0.1-31bc695ffd-060840f92c.zip +0 -0
- package/.yarn/cache/path-key-npm-3.1.1-0e66ea8321-55cd7a9dd4.zip +0 -0
- package/.yarn/cache/path-parse-npm-1.0.7-09564527b7-49abf3d811.zip +0 -0
- package/.yarn/cache/path-scurry-npm-1.10.1-52bd946f2e-e2557cff3a.zip +0 -0
- package/.yarn/cache/picocolors-npm-1.0.0-d81e0b1927-a2e8092dd8.zip +0 -0
- package/.yarn/cache/picomatch-npm-2.3.1-c782cfd986-050c865ce8.zip +0 -0
- package/.yarn/cache/pirates-npm-4.0.6-a8ec571a43-46a65fefaf.zip +0 -0
- package/.yarn/cache/pkg-dir-npm-4.2.0-2b5d0a8d32-9863e3f351.zip +0 -0
- package/.yarn/cache/postcss-selector-parser-npm-6.0.13-f732d92326-f89163338a.zip +0 -0
- package/.yarn/cache/pretty-format-npm-29.6.2-7f39471065-a0f972a44f.zip +0 -0
- package/.yarn/cache/proc-log-npm-3.0.0-a8c21c2f0f-02b64e1b39.zip +0 -0
- package/.yarn/cache/process-npm-0.11.10-aeb3b641ae-bfcce49814.zip +0 -0
- package/.yarn/cache/promise-all-reject-late-npm-1.0.1-19ba0dce9c-d7d61ac412.zip +0 -0
- package/.yarn/cache/promise-call-limit-npm-1.0.2-2a84fbc485-d0664dd295.zip +0 -0
- package/.yarn/cache/promise-inflight-npm-1.0.1-5bb925afac-2274948309.zip +0 -0
- package/.yarn/cache/promise-retry-npm-2.0.1-871f0b01b7-f96a3f6d90.zip +0 -0
- package/.yarn/cache/prompts-npm-2.4.2-f5d25d5eea-d8fd1fe638.zip +0 -0
- package/.yarn/cache/promzard-npm-1.0.0-a0d17e2d53-c069488271.zip +0 -0
- package/.yarn/cache/pure-rand-npm-6.0.2-5d375bc0a6-79de33876a.zip +0 -0
- package/.yarn/cache/qrcode-terminal-npm-0.12.0-f81f8a6a67-51638d11d0.zip +0 -0
- package/.yarn/cache/react-is-npm-18.2.0-0cc5edb910-e72d0ba81b.zip +0 -0
- package/.yarn/cache/read-cmd-shim-npm-4.0.0-2339b15fb0-2fb5a8a389.zip +0 -0
- package/.yarn/cache/read-npm-2.1.0-0e0cb8a375-e745999138.zip +0 -0
- package/.yarn/cache/read-package-json-fast-npm-3.0.2-1232471a07-8d406869f0.zip +0 -0
- package/.yarn/cache/read-package-json-npm-6.0.4-bf5c705b94-ce40c46712.zip +0 -0
- package/.yarn/cache/readable-stream-npm-3.6.2-d2a6069158-bdcbe6c22e.zip +0 -0
- package/.yarn/cache/readable-stream-npm-4.4.2-ac0d67d9ca-6f4063763d.zip +0 -0
- package/.yarn/cache/require-directory-npm-2.1.1-8608aee50b-fb47e70bf0.zip +0 -0
- package/.yarn/cache/resolve-cwd-npm-3.0.0-e6f4e296bf-546e081601.zip +0 -0
- package/.yarn/cache/resolve-from-npm-5.0.0-15c9db4d33-4ceeb9113e.zip +0 -0
- package/.yarn/cache/resolve-npm-1.22.2-9d9621a4ae-7e5df75796.zip +0 -0
- package/.yarn/cache/resolve-patch-f4c4056507-66cc788f13.zip +0 -0
- package/.yarn/cache/resolve.exports-npm-2.0.2-f59b42bbe5-1c7778ca1b.zip +0 -0
- package/.yarn/cache/retry-npm-0.12.0-72ac7fb4cc-623bd7d2e5.zip +0 -0
- package/.yarn/cache/rimraf-npm-3.0.2-2cb7dac69a-87f4164e39.zip +0 -0
- package/.yarn/cache/safe-buffer-npm-5.2.1-3481c8aa9b-b99c4b41fd.zip +0 -0
- package/.yarn/cache/safer-buffer-npm-2.1.2-8d5c0b705e-cab8f25ae6.zip +0 -0
- package/.yarn/cache/semver-npm-6.3.1-bcba31fdbe-ae47d06de2.zip +0 -0
- package/.yarn/cache/semver-npm-7.5.4-c4ad957fcd-12d8ad952f.zip +0 -0
- package/.yarn/cache/set-blocking-npm-2.0.0-49e2cffa24-6e65a05f7c.zip +0 -0
- package/.yarn/cache/shebang-command-npm-2.0.0-eb2b01921d-6b52fe8727.zip +0 -0
- package/.yarn/cache/shebang-regex-npm-3.0.0-899a0cd65e-1a2bcae50d.zip +0 -0
- package/.yarn/cache/signal-exit-npm-3.0.7-bd270458a3-a2f098f247.zip +0 -0
- package/.yarn/cache/signal-exit-npm-4.1.0-61fb957687-64c757b498.zip +0 -0
- package/.yarn/cache/sigstore-npm-1.8.0-c7dd60d00a-9886278224.zip +0 -0
- package/.yarn/cache/sisteransi-npm-1.0.5-af60cc0cfa-aba6438f46.zip +0 -0
- package/.yarn/cache/slash-npm-3.0.0-b87de2279a-94a93fff61.zip +0 -0
- package/.yarn/cache/smart-buffer-npm-4.2.0-5ac3f668bb-b5167a7142.zip +0 -0
- package/.yarn/cache/socks-npm-2.7.1-17f2b53052-259d9e3e8e.zip +0 -0
- package/.yarn/cache/socks-proxy-agent-npm-7.0.0-7aacf32ea0-7205543701.zip +0 -0
- package/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip +0 -0
- package/.yarn/cache/source-map-support-npm-0.5.13-377dfd7321-933550047b.zip +0 -0
- package/.yarn/cache/spdx-correct-npm-3.2.0-ffae008484-e9ae98d22f.zip +0 -0
- package/.yarn/cache/spdx-exceptions-npm-2.3.0-2b68dad75a-cb69a26fa3.zip +0 -0
- package/.yarn/cache/spdx-expression-parse-npm-3.0.1-b718cbb35a-a1c6e104a2.zip +0 -0
- package/.yarn/cache/spdx-license-ids-npm-3.0.13-928dd45e3f-3469d85c65.zip +0 -0
- package/.yarn/cache/sprintf-js-npm-1.0.3-73f0a322fa-19d79aec21.zip +0 -0
- package/.yarn/cache/ssri-npm-10.0.4-f583dafaf3-fb14da9f8a.zip +0 -0
- package/.yarn/cache/stack-utils-npm-2.0.6-2be1099696-052bf4d25b.zip +0 -0
- package/.yarn/cache/string-length-npm-4.0.2-675173c7a2-ce85533ef5.zip +0 -0
- package/.yarn/cache/string-width-npm-4.2.3-2c27177bae-e52c10dc3f.zip +0 -0
- package/.yarn/cache/string-width-npm-5.1.2-bf60531341-7369deaa29.zip +0 -0
- package/.yarn/cache/string_decoder-npm-1.3.0-2422117fd0-8417646695.zip +0 -0
- package/.yarn/cache/strip-ansi-npm-6.0.1-caddc7cb40-f3cd25890a.zip +0 -0
- package/.yarn/cache/strip-ansi-npm-7.1.0-7453b80b79-859c73fcf2.zip +0 -0
- package/.yarn/cache/strip-bom-npm-4.0.0-97d367a64d-9dbcfbaf50.zip +0 -0
- package/.yarn/cache/strip-final-newline-npm-2.0.0-340c4f7c66-69412b5e25.zip +0 -0
- package/.yarn/cache/strip-json-comments-npm-3.1.1-dcb2324823-492f73e272.zip +0 -0
- package/.yarn/cache/supports-color-npm-5.5.0-183ac537bc-95f6f4ba5a.zip +0 -0
- package/.yarn/cache/supports-color-npm-7.2.0-606bfcf7da-3dda818de0.zip +0 -0
- package/.yarn/cache/supports-color-npm-8.1.1-289e937149-c052193a7e.zip +0 -0
- package/.yarn/cache/supports-color-npm-9.4.0-a415f39758-cb8ff8daea.zip +0 -0
- package/.yarn/cache/supports-preserve-symlinks-flag-npm-1.0.0-f17c4d0028-53b1e247e6.zip +0 -0
- package/.yarn/cache/tar-npm-6.1.15-44c3e71720-f23832fcee.zip +0 -0
- package/.yarn/cache/test-exclude-npm-6.0.0-3fb03d69df-3b34a3d771.zip +0 -0
- package/.yarn/cache/text-table-npm-0.2.0-d92a778b59-b6937a38c8.zip +0 -0
- package/.yarn/cache/tiny-relative-date-npm-1.3.0-4737b1ee94-82a1fa2f3b.zip +0 -0
- package/.yarn/cache/tmpl-npm-1.0.5-d399ba37e2-cd922d9b85.zip +0 -0
- package/.yarn/cache/to-fast-properties-npm-2.0.0-0dc60cc481-be2de62fe5.zip +0 -0
- package/.yarn/cache/to-regex-range-npm-5.0.1-f1e8263b00-f76fa01b3d.zip +0 -0
- package/.yarn/cache/treeverse-npm-3.0.0-6c6d119afd-73168d9887.zip +0 -0
- package/.yarn/cache/ts-jest-npm-29.1.1-04e888e48e-a8c9e284ed.zip +0 -0
- package/.yarn/cache/tuf-js-npm-1.1.7-045f70823d-089fc0dabe.zip +0 -0
- package/.yarn/cache/type-detect-npm-4.0.8-8d8127b901-62b5628bff.zip +0 -0
- package/.yarn/cache/type-fest-npm-0.21.3-5ff2a9c6fd-e6b32a3b38.zip +0 -0
- package/.yarn/cache/typescript-npm-5.1.6-b157762de3-b2f2c35096.zip +0 -0
- package/.yarn/cache/typescript-patch-bd21d74a9d-f53bfe97f7.zip +0 -0
- package/.yarn/cache/unique-filename-npm-3.0.0-77d68e0a45-8e2f59b356.zip +0 -0
- package/.yarn/cache/unique-slug-npm-4.0.0-e6b08f28aa-0884b58365.zip +0 -0
- package/.yarn/cache/update-browserslist-db-npm-1.0.11-2c8e64258f-b98327518f.zip +0 -0
- package/.yarn/cache/util-deprecate-npm-1.0.2-e3fe1a219c-474acf1146.zip +0 -0
- package/.yarn/cache/v8-to-istanbul-npm-9.1.0-04cd324682-2069d59ee4.zip +0 -0
- package/.yarn/cache/validate-npm-package-license-npm-3.0.4-7af8adc7a8-35703ac889.zip +0 -0
- package/.yarn/cache/validate-npm-package-name-npm-5.0.0-fc061c1b84-5342a99498.zip +0 -0
- package/.yarn/cache/walk-up-path-npm-3.0.1-67ab100d5d-9ffca02fe3.zip +0 -0
- package/.yarn/cache/walker-npm-1.0.8-b0a05b9478-ad7a257ea1.zip +0 -0
- package/.yarn/cache/wcwidth-npm-1.0.1-05fa596453-814e9d1ddc.zip +0 -0
- package/.yarn/cache/which-npm-2.0.2-320ddf72f7-1a5c563d3c.zip +0 -0
- package/.yarn/cache/which-npm-3.0.1-b2b0f09ace-adf720fe9d.zip +0 -0
- package/.yarn/cache/wide-align-npm-1.1.5-889d77e592-d5fc37cd56.zip +0 -0
- package/.yarn/cache/wrap-ansi-npm-7.0.0-ad6e1a0554-a790b846fd.zip +0 -0
- package/.yarn/cache/wrap-ansi-npm-8.1.0-26a4e6ae28-371733296d.zip +0 -0
- package/.yarn/cache/wrappy-npm-1.0.2-916de4d4b3-159da4805f.zip +0 -0
- package/.yarn/cache/write-file-atomic-npm-4.0.2-661baae4aa-5da60bd4ee.zip +0 -0
- package/.yarn/cache/write-file-atomic-npm-5.0.1-52283db6ee-8dbb0e2512.zip +0 -0
- package/.yarn/cache/y18n-npm-5.0.8-5f3a0a7e62-54f0fb9562.zip +0 -0
- package/.yarn/cache/yallist-npm-3.1.1-a568a556b4-48f7bb00dc.zip +0 -0
- package/.yarn/cache/yallist-npm-4.0.0-b493d9e907-343617202a.zip +0 -0
- package/.yarn/cache/yargs-npm-17.7.2-80b62638e1-73b572e863.zip +0 -0
- package/.yarn/cache/yargs-parser-npm-21.1.1-8fdc003314-ed2d96a616.zip +0 -0
- package/.yarn/cache/yocto-queue-npm-0.1.0-c6c9a7db29-f77b3d8d00.zip +0 -0
- package/.yarn/install-state.gz +0 -0
- package/coverage/base.css +0 -223
- package/coverage/block-navigation.js +0 -79
- package/coverage/index.html +0 -123
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -170
- package/coverage/src/api-client.js.html +0 -549
- package/coverage/src/content-fetch.js.html +0 -336
- package/coverage/src/index.html +0 -123
- package/coverage/src/methods/getContentItem.js.html +0 -285
- package/coverage/src/methods/getContentList.js.html +0 -486
- package/coverage/src/methods/getGallery.js.html +0 -243
- package/coverage/src/methods/getPage.js.html +0 -273
- package/coverage/src/methods/getSitemapFlat.js.html +0 -240
- package/coverage/src/methods/getSitemapNested.js.html +0 -231
- package/coverage/src/methods/getSyncContent.js.html +0 -258
- package/coverage/src/methods/getSyncPages.js.html +0 -258
- package/coverage/src/methods/getUrlRedirections.js.html +0 -339
- package/coverage/src/methods/index.html +0 -201
- package/coverage/src/methods/syncContentItems.js.html +0 -186
- package/coverage/src/methods/syncPageItems.js.html +0 -186
- package/coverage/src/types/FilterLogicOperator.js.html +0 -129
- package/coverage/src/types/FilterOperator.js.html +0 -156
- package/coverage/src/types/SortDirection.js.html +0 -129
- package/coverage/src/types/index.html +0 -123
- package/coverage/src/utils.js.html +0 -330
- package/dist/agility-content-fetch.browser.js +0 -420
- package/dist/api-client.js +0 -316
- package/dist/index.js +0 -7
- package/dist/methods/getContentItem.js +0 -49
- package/dist/methods/getContentList.js +0 -94
- package/dist/methods/getGallery.js +0 -39
- package/dist/methods/getPage.js +0 -47
- package/dist/methods/getSitemapFlat.js +0 -26
- package/dist/methods/getSitemapNested.js +0 -23
- package/dist/methods/getSyncContent.js +0 -26
- package/dist/methods/getSyncPages.js +0 -26
- package/dist/methods/getUrlRedirections.js +0 -50
- package/dist/types/Client.js +0 -2
- package/dist/types/Config.js +0 -2
- package/dist/types/ContentItem.js +0 -2
- package/dist/types/ContentList.js +0 -9
- package/dist/types/ContentZone.js +0 -2
- package/dist/types/EnvConfig.js +0 -2
- package/dist/types/Filter.js +0 -10
- package/dist/types/FilterLogicOperator.js +0 -13
- package/dist/types/FilterOperator.js +0 -30
- package/dist/types/Gallery.js +0 -12
- package/dist/types/MediaItem.js +0 -13
- package/dist/types/MediaItemMetaData.js +0 -12
- package/dist/types/Page.js +0 -20
- package/dist/types/SEO.js +0 -11
- package/dist/types/SitemapFlat.js +0 -10
- package/dist/types/SitemapFlatItem.js +0 -17
- package/dist/types/SitemapNested.js +0 -7
- package/dist/types/SitemapNestedItem.js +0 -2
- package/dist/types/SitemapVisibility.js +0 -9
- package/dist/types/SortDirection.js +0 -13
- package/dist/types/SyncContent.js +0 -9
- package/dist/types/SyncPages.js +0 -9
- package/dist/types/SystemProperties.js +0 -11
- package/dist/types/UrlRedirection.js +0 -11
- package/dist/types/UrlRedirectionResponse.js +0 -9
- package/dist/types/index.js +0 -10
- package/dist/utils.js +0 -81
|
@@ -91,7 +91,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
91
91
|
/******/
|
|
92
92
|
/******/
|
|
93
93
|
/******/ // Load entry module and return exports
|
|
94
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
94
|
+
/******/ return __webpack_require__(__webpack_require__.s = 49);
|
|
95
95
|
/******/ })
|
|
96
96
|
/************************************************************************/
|
|
97
97
|
/******/ ([
|
|
@@ -101,9 +101,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
101
101
|
"use strict";
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
var bind = __webpack_require__(
|
|
105
|
-
|
|
106
|
-
/*global toString:true*/
|
|
104
|
+
var bind = __webpack_require__(6);
|
|
107
105
|
|
|
108
106
|
// utils is a library of generic helper functions non-specific to axios
|
|
109
107
|
|
|
@@ -288,7 +286,7 @@ function isURLSearchParams(val) {
|
|
|
288
286
|
* @returns {String} The String freed of excess whitespace
|
|
289
287
|
*/
|
|
290
288
|
function trim(str) {
|
|
291
|
-
return str.
|
|
289
|
+
return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, '');
|
|
292
290
|
}
|
|
293
291
|
|
|
294
292
|
/**
|
|
@@ -536,69 +534,9 @@ module.exports = function buildURL(url, params, paramsSerializer) {
|
|
|
536
534
|
"use strict";
|
|
537
535
|
|
|
538
536
|
|
|
539
|
-
var enhanceError = __webpack_require__(8);
|
|
540
|
-
|
|
541
|
-
/**
|
|
542
|
-
* Create an Error with the specified message, config, error code, request and response.
|
|
543
|
-
*
|
|
544
|
-
* @param {string} message The error message.
|
|
545
|
-
* @param {Object} config The config.
|
|
546
|
-
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
547
|
-
* @param {Object} [request] The request.
|
|
548
|
-
* @param {Object} [response] The response.
|
|
549
|
-
* @returns {Error} The created error.
|
|
550
|
-
*/
|
|
551
|
-
module.exports = function createError(message, config, code, request, response) {
|
|
552
|
-
var error = new Error(message);
|
|
553
|
-
return enhanceError(error, config, code, request, response);
|
|
554
|
-
};
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
/***/ }),
|
|
558
|
-
/* 3 */
|
|
559
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
560
|
-
|
|
561
|
-
module.exports = __webpack_require__(19);
|
|
562
|
-
|
|
563
|
-
/***/ }),
|
|
564
|
-
/* 4 */
|
|
565
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
566
|
-
|
|
567
|
-
"use strict";
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
module.exports = function bind(fn, thisArg) {
|
|
571
|
-
return function wrap() {
|
|
572
|
-
var args = new Array(arguments.length);
|
|
573
|
-
for (var i = 0; i < args.length; i++) {
|
|
574
|
-
args[i] = arguments[i];
|
|
575
|
-
}
|
|
576
|
-
return fn.apply(thisArg, args);
|
|
577
|
-
};
|
|
578
|
-
};
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
/***/ }),
|
|
582
|
-
/* 5 */
|
|
583
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
584
|
-
|
|
585
|
-
"use strict";
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
module.exports = function isCancel(value) {
|
|
589
|
-
return !!(value && value.__CANCEL__);
|
|
590
|
-
};
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
/***/ }),
|
|
594
|
-
/* 6 */
|
|
595
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
596
|
-
|
|
597
|
-
"use strict";
|
|
598
|
-
|
|
599
|
-
|
|
600
537
|
var utils = __webpack_require__(0);
|
|
601
|
-
var normalizeHeaderName = __webpack_require__(
|
|
538
|
+
var normalizeHeaderName = __webpack_require__(25);
|
|
539
|
+
var enhanceError = __webpack_require__(3);
|
|
602
540
|
|
|
603
541
|
var DEFAULT_CONTENT_TYPE = {
|
|
604
542
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
@@ -614,20 +552,43 @@ function getDefaultAdapter() {
|
|
|
614
552
|
var adapter;
|
|
615
553
|
if (typeof XMLHttpRequest !== 'undefined') {
|
|
616
554
|
// For browsers use XHR adapter
|
|
617
|
-
adapter = __webpack_require__(
|
|
555
|
+
adapter = __webpack_require__(26);
|
|
618
556
|
} else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
|
|
619
557
|
// For node use HTTP adapter
|
|
620
|
-
adapter = __webpack_require__(
|
|
558
|
+
adapter = __webpack_require__(32);
|
|
621
559
|
}
|
|
622
560
|
return adapter;
|
|
623
561
|
}
|
|
624
562
|
|
|
563
|
+
function stringifySafely(rawValue, parser, encoder) {
|
|
564
|
+
if (utils.isString(rawValue)) {
|
|
565
|
+
try {
|
|
566
|
+
(parser || JSON.parse)(rawValue);
|
|
567
|
+
return utils.trim(rawValue);
|
|
568
|
+
} catch (e) {
|
|
569
|
+
if (e.name !== 'SyntaxError') {
|
|
570
|
+
throw e;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
return (encoder || JSON.stringify)(rawValue);
|
|
576
|
+
}
|
|
577
|
+
|
|
625
578
|
var defaults = {
|
|
579
|
+
|
|
580
|
+
transitional: {
|
|
581
|
+
silentJSONParsing: true,
|
|
582
|
+
forcedJSONParsing: true,
|
|
583
|
+
clarifyTimeoutError: false
|
|
584
|
+
},
|
|
585
|
+
|
|
626
586
|
adapter: getDefaultAdapter(),
|
|
627
587
|
|
|
628
588
|
transformRequest: [function transformRequest(data, headers) {
|
|
629
589
|
normalizeHeaderName(headers, 'Accept');
|
|
630
590
|
normalizeHeaderName(headers, 'Content-Type');
|
|
591
|
+
|
|
631
592
|
if (utils.isFormData(data) ||
|
|
632
593
|
utils.isArrayBuffer(data) ||
|
|
633
594
|
utils.isBuffer(data) ||
|
|
@@ -644,20 +605,32 @@ var defaults = {
|
|
|
644
605
|
setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
|
|
645
606
|
return data.toString();
|
|
646
607
|
}
|
|
647
|
-
if (utils.isObject(data)) {
|
|
648
|
-
setContentTypeIfUnset(headers, 'application/json
|
|
649
|
-
return
|
|
608
|
+
if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {
|
|
609
|
+
setContentTypeIfUnset(headers, 'application/json');
|
|
610
|
+
return stringifySafely(data);
|
|
650
611
|
}
|
|
651
612
|
return data;
|
|
652
613
|
}],
|
|
653
614
|
|
|
654
615
|
transformResponse: [function transformResponse(data) {
|
|
655
|
-
|
|
656
|
-
|
|
616
|
+
var transitional = this.transitional;
|
|
617
|
+
var silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
618
|
+
var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
619
|
+
var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';
|
|
620
|
+
|
|
621
|
+
if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {
|
|
657
622
|
try {
|
|
658
|
-
|
|
659
|
-
} catch (e) {
|
|
623
|
+
return JSON.parse(data);
|
|
624
|
+
} catch (e) {
|
|
625
|
+
if (strictJSONParsing) {
|
|
626
|
+
if (e.name === 'SyntaxError') {
|
|
627
|
+
throw enhanceError(e, this, 'E_JSON_PARSE');
|
|
628
|
+
}
|
|
629
|
+
throw e;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
660
632
|
}
|
|
633
|
+
|
|
661
634
|
return data;
|
|
662
635
|
}],
|
|
663
636
|
|
|
@@ -696,39 +669,7 @@ module.exports = defaults;
|
|
|
696
669
|
|
|
697
670
|
|
|
698
671
|
/***/ }),
|
|
699
|
-
/*
|
|
700
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
701
|
-
|
|
702
|
-
"use strict";
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
var createError = __webpack_require__(2);
|
|
706
|
-
|
|
707
|
-
/**
|
|
708
|
-
* Resolve or reject a Promise based on response status.
|
|
709
|
-
*
|
|
710
|
-
* @param {Function} resolve A function that resolves the promise.
|
|
711
|
-
* @param {Function} reject A function that rejects the promise.
|
|
712
|
-
* @param {object} response The response.
|
|
713
|
-
*/
|
|
714
|
-
module.exports = function settle(resolve, reject, response) {
|
|
715
|
-
var validateStatus = response.config.validateStatus;
|
|
716
|
-
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
717
|
-
resolve(response);
|
|
718
|
-
} else {
|
|
719
|
-
reject(createError(
|
|
720
|
-
'Request failed with status code ' + response.status,
|
|
721
|
-
response.config,
|
|
722
|
-
null,
|
|
723
|
-
response.request,
|
|
724
|
-
response
|
|
725
|
-
));
|
|
726
|
-
}
|
|
727
|
-
};
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
/***/ }),
|
|
731
|
-
/* 8 */
|
|
672
|
+
/* 3 */
|
|
732
673
|
/***/ (function(module, exports, __webpack_require__) {
|
|
733
674
|
|
|
734
675
|
"use strict";
|
|
@@ -777,14 +718,95 @@ module.exports = function enhanceError(error, config, code, request, response) {
|
|
|
777
718
|
|
|
778
719
|
|
|
779
720
|
/***/ }),
|
|
780
|
-
/*
|
|
721
|
+
/* 4 */
|
|
722
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
723
|
+
|
|
724
|
+
"use strict";
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
var enhanceError = __webpack_require__(3);
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
731
|
+
*
|
|
732
|
+
* @param {string} message The error message.
|
|
733
|
+
* @param {Object} config The config.
|
|
734
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
735
|
+
* @param {Object} [request] The request.
|
|
736
|
+
* @param {Object} [response] The response.
|
|
737
|
+
* @returns {Error} The created error.
|
|
738
|
+
*/
|
|
739
|
+
module.exports = function createError(message, config, code, request, response) {
|
|
740
|
+
var error = new Error(message);
|
|
741
|
+
return enhanceError(error, config, code, request, response);
|
|
742
|
+
};
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
/***/ }),
|
|
746
|
+
/* 5 */
|
|
747
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
748
|
+
|
|
749
|
+
module.exports = __webpack_require__(20);
|
|
750
|
+
|
|
751
|
+
/***/ }),
|
|
752
|
+
/* 6 */
|
|
753
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
754
|
+
|
|
755
|
+
"use strict";
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
module.exports = function bind(fn, thisArg) {
|
|
759
|
+
return function wrap() {
|
|
760
|
+
var args = new Array(arguments.length);
|
|
761
|
+
for (var i = 0; i < args.length; i++) {
|
|
762
|
+
args[i] = arguments[i];
|
|
763
|
+
}
|
|
764
|
+
return fn.apply(thisArg, args);
|
|
765
|
+
};
|
|
766
|
+
};
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
/***/ }),
|
|
770
|
+
/* 7 */
|
|
771
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
772
|
+
|
|
773
|
+
"use strict";
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
var createError = __webpack_require__(4);
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Resolve or reject a Promise based on response status.
|
|
780
|
+
*
|
|
781
|
+
* @param {Function} resolve A function that resolves the promise.
|
|
782
|
+
* @param {Function} reject A function that rejects the promise.
|
|
783
|
+
* @param {object} response The response.
|
|
784
|
+
*/
|
|
785
|
+
module.exports = function settle(resolve, reject, response) {
|
|
786
|
+
var validateStatus = response.config.validateStatus;
|
|
787
|
+
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
788
|
+
resolve(response);
|
|
789
|
+
} else {
|
|
790
|
+
reject(createError(
|
|
791
|
+
'Request failed with status code ' + response.status,
|
|
792
|
+
response.config,
|
|
793
|
+
null,
|
|
794
|
+
response.request,
|
|
795
|
+
response
|
|
796
|
+
));
|
|
797
|
+
}
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
/***/ }),
|
|
802
|
+
/* 8 */
|
|
781
803
|
/***/ (function(module, exports, __webpack_require__) {
|
|
782
804
|
|
|
783
805
|
"use strict";
|
|
784
806
|
|
|
785
807
|
|
|
786
|
-
var isAbsoluteURL = __webpack_require__(
|
|
787
|
-
var combineURLs = __webpack_require__(
|
|
808
|
+
var isAbsoluteURL = __webpack_require__(28);
|
|
809
|
+
var combineURLs = __webpack_require__(29);
|
|
788
810
|
|
|
789
811
|
/**
|
|
790
812
|
* Creates a new URL by combining the baseURL with the requestedURL,
|
|
@@ -804,41 +826,47 @@ module.exports = function buildFullPath(baseURL, requestedURL) {
|
|
|
804
826
|
|
|
805
827
|
|
|
806
828
|
/***/ }),
|
|
807
|
-
/*
|
|
829
|
+
/* 9 */
|
|
808
830
|
/***/ (function(module, exports) {
|
|
809
831
|
|
|
810
832
|
module.exports = require("http");
|
|
811
833
|
|
|
812
834
|
/***/ }),
|
|
813
|
-
/*
|
|
835
|
+
/* 10 */
|
|
814
836
|
/***/ (function(module, exports) {
|
|
815
837
|
|
|
816
838
|
module.exports = require("https");
|
|
817
839
|
|
|
818
840
|
/***/ }),
|
|
819
|
-
/*
|
|
841
|
+
/* 11 */
|
|
820
842
|
/***/ (function(module, exports, __webpack_require__) {
|
|
821
843
|
|
|
822
|
-
var url = __webpack_require__(
|
|
844
|
+
var url = __webpack_require__(12);
|
|
823
845
|
var URL = url.URL;
|
|
824
|
-
var http = __webpack_require__(
|
|
825
|
-
var https = __webpack_require__(
|
|
826
|
-
var Writable = __webpack_require__(
|
|
827
|
-
var assert = __webpack_require__(
|
|
828
|
-
var debug = __webpack_require__(
|
|
846
|
+
var http = __webpack_require__(9);
|
|
847
|
+
var https = __webpack_require__(10);
|
|
848
|
+
var Writable = __webpack_require__(33).Writable;
|
|
849
|
+
var assert = __webpack_require__(34);
|
|
850
|
+
var debug = __webpack_require__(35);
|
|
829
851
|
|
|
830
852
|
// Create handlers that pass events from native requests
|
|
853
|
+
var events = ["abort", "aborted", "connect", "error", "socket", "timeout"];
|
|
831
854
|
var eventHandlers = Object.create(null);
|
|
832
|
-
|
|
855
|
+
events.forEach(function (event) {
|
|
833
856
|
eventHandlers[event] = function (arg1, arg2, arg3) {
|
|
834
857
|
this._redirectable.emit(event, arg1, arg2, arg3);
|
|
835
858
|
};
|
|
836
859
|
});
|
|
837
860
|
|
|
861
|
+
var InvalidUrlError = createErrorType(
|
|
862
|
+
"ERR_INVALID_URL",
|
|
863
|
+
"Invalid URL",
|
|
864
|
+
TypeError
|
|
865
|
+
);
|
|
838
866
|
// Error types with codes
|
|
839
867
|
var RedirectionError = createErrorType(
|
|
840
868
|
"ERR_FR_REDIRECTION_FAILURE",
|
|
841
|
-
""
|
|
869
|
+
"Redirected request failed"
|
|
842
870
|
);
|
|
843
871
|
var TooManyRedirectsError = createErrorType(
|
|
844
872
|
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
@@ -853,6 +881,9 @@ var WriteAfterEndError = createErrorType(
|
|
|
853
881
|
"write after end"
|
|
854
882
|
);
|
|
855
883
|
|
|
884
|
+
// istanbul ignore next
|
|
885
|
+
var destroy = Writable.prototype.destroy || noop;
|
|
886
|
+
|
|
856
887
|
// An HTTP(S) request that can be redirected
|
|
857
888
|
function RedirectableRequest(options, responseCallback) {
|
|
858
889
|
// Initialize the request
|
|
@@ -882,6 +913,18 @@ function RedirectableRequest(options, responseCallback) {
|
|
|
882
913
|
}
|
|
883
914
|
RedirectableRequest.prototype = Object.create(Writable.prototype);
|
|
884
915
|
|
|
916
|
+
RedirectableRequest.prototype.abort = function () {
|
|
917
|
+
destroyRequest(this._currentRequest);
|
|
918
|
+
this._currentRequest.abort();
|
|
919
|
+
this.emit("abort");
|
|
920
|
+
};
|
|
921
|
+
|
|
922
|
+
RedirectableRequest.prototype.destroy = function (error) {
|
|
923
|
+
destroyRequest(this._currentRequest, error);
|
|
924
|
+
destroy.call(this, error);
|
|
925
|
+
return this;
|
|
926
|
+
};
|
|
927
|
+
|
|
885
928
|
// Writes buffered data to the current native request
|
|
886
929
|
RedirectableRequest.prototype.write = function (data, encoding, callback) {
|
|
887
930
|
// Writing is not allowed if end has been called
|
|
@@ -890,10 +933,10 @@ RedirectableRequest.prototype.write = function (data, encoding, callback) {
|
|
|
890
933
|
}
|
|
891
934
|
|
|
892
935
|
// Validate input and shift parameters if necessary
|
|
893
|
-
if (!(
|
|
936
|
+
if (!isString(data) && !isBuffer(data)) {
|
|
894
937
|
throw new TypeError("data should be a string, Buffer or Uint8Array");
|
|
895
938
|
}
|
|
896
|
-
if (
|
|
939
|
+
if (isFunction(encoding)) {
|
|
897
940
|
callback = encoding;
|
|
898
941
|
encoding = null;
|
|
899
942
|
}
|
|
@@ -922,11 +965,11 @@ RedirectableRequest.prototype.write = function (data, encoding, callback) {
|
|
|
922
965
|
// Ends the current native request
|
|
923
966
|
RedirectableRequest.prototype.end = function (data, encoding, callback) {
|
|
924
967
|
// Shift parameters if necessary
|
|
925
|
-
if (
|
|
968
|
+
if (isFunction(data)) {
|
|
926
969
|
callback = data;
|
|
927
970
|
data = encoding = null;
|
|
928
971
|
}
|
|
929
|
-
else if (
|
|
972
|
+
else if (isFunction(encoding)) {
|
|
930
973
|
callback = encoding;
|
|
931
974
|
encoding = null;
|
|
932
975
|
}
|
|
@@ -961,40 +1004,74 @@ RedirectableRequest.prototype.removeHeader = function (name) {
|
|
|
961
1004
|
|
|
962
1005
|
// Global timeout for all underlying requests
|
|
963
1006
|
RedirectableRequest.prototype.setTimeout = function (msecs, callback) {
|
|
1007
|
+
var self = this;
|
|
1008
|
+
|
|
1009
|
+
// Destroys the socket on timeout
|
|
1010
|
+
function destroyOnTimeout(socket) {
|
|
1011
|
+
socket.setTimeout(msecs);
|
|
1012
|
+
socket.removeListener("timeout", socket.destroy);
|
|
1013
|
+
socket.addListener("timeout", socket.destroy);
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
// Sets up a timer to trigger a timeout event
|
|
1017
|
+
function startTimer(socket) {
|
|
1018
|
+
if (self._timeout) {
|
|
1019
|
+
clearTimeout(self._timeout);
|
|
1020
|
+
}
|
|
1021
|
+
self._timeout = setTimeout(function () {
|
|
1022
|
+
self.emit("timeout");
|
|
1023
|
+
clearTimer();
|
|
1024
|
+
}, msecs);
|
|
1025
|
+
destroyOnTimeout(socket);
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
// Stops a timeout from triggering
|
|
1029
|
+
function clearTimer() {
|
|
1030
|
+
// Clear the timeout
|
|
1031
|
+
if (self._timeout) {
|
|
1032
|
+
clearTimeout(self._timeout);
|
|
1033
|
+
self._timeout = null;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
// Clean up all attached listeners
|
|
1037
|
+
self.removeListener("abort", clearTimer);
|
|
1038
|
+
self.removeListener("error", clearTimer);
|
|
1039
|
+
self.removeListener("response", clearTimer);
|
|
1040
|
+
self.removeListener("close", clearTimer);
|
|
1041
|
+
if (callback) {
|
|
1042
|
+
self.removeListener("timeout", callback);
|
|
1043
|
+
}
|
|
1044
|
+
if (!self.socket) {
|
|
1045
|
+
self._currentRequest.removeListener("socket", startTimer);
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
// Attach callback if passed
|
|
964
1050
|
if (callback) {
|
|
965
|
-
this.
|
|
1051
|
+
this.on("timeout", callback);
|
|
966
1052
|
}
|
|
967
1053
|
|
|
1054
|
+
// Start the timer if or when the socket is opened
|
|
968
1055
|
if (this.socket) {
|
|
969
|
-
startTimer(this
|
|
1056
|
+
startTimer(this.socket);
|
|
970
1057
|
}
|
|
971
1058
|
else {
|
|
972
|
-
|
|
973
|
-
this._currentRequest.once("socket", function () {
|
|
974
|
-
startTimer(self, msecs);
|
|
975
|
-
});
|
|
1059
|
+
this._currentRequest.once("socket", startTimer);
|
|
976
1060
|
}
|
|
977
1061
|
|
|
978
|
-
|
|
979
|
-
this.
|
|
1062
|
+
// Clean up on events
|
|
1063
|
+
this.on("socket", destroyOnTimeout);
|
|
1064
|
+
this.on("abort", clearTimer);
|
|
1065
|
+
this.on("error", clearTimer);
|
|
1066
|
+
this.on("response", clearTimer);
|
|
1067
|
+
this.on("close", clearTimer);
|
|
980
1068
|
|
|
981
1069
|
return this;
|
|
982
1070
|
};
|
|
983
1071
|
|
|
984
|
-
function startTimer(request, msecs) {
|
|
985
|
-
clearTimeout(request._timeout);
|
|
986
|
-
request._timeout = setTimeout(function () {
|
|
987
|
-
request.emit("timeout");
|
|
988
|
-
}, msecs);
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
function clearTimer() {
|
|
992
|
-
clearTimeout(this._timeout);
|
|
993
|
-
}
|
|
994
|
-
|
|
995
1072
|
// Proxy all other public ClientRequest methods
|
|
996
1073
|
[
|
|
997
|
-
"
|
|
1074
|
+
"flushHeaders", "getHeader",
|
|
998
1075
|
"setNoDelay", "setSocketKeepAlive",
|
|
999
1076
|
].forEach(function (method) {
|
|
1000
1077
|
RedirectableRequest.prototype[method] = function (a, b) {
|
|
@@ -1053,28 +1130,30 @@ RedirectableRequest.prototype._performRequest = function () {
|
|
|
1053
1130
|
// If specified, use the agent corresponding to the protocol
|
|
1054
1131
|
// (HTTP and HTTPS use different types of agents)
|
|
1055
1132
|
if (this._options.agents) {
|
|
1056
|
-
var scheme = protocol.
|
|
1133
|
+
var scheme = protocol.slice(0, -1);
|
|
1057
1134
|
this._options.agent = this._options.agents[scheme];
|
|
1058
1135
|
}
|
|
1059
1136
|
|
|
1060
|
-
// Create the native request
|
|
1137
|
+
// Create the native request and set up its event handlers
|
|
1061
1138
|
var request = this._currentRequest =
|
|
1062
1139
|
nativeProtocol.request(this._options, this._onNativeResponse);
|
|
1063
|
-
this._currentUrl = url.format(this._options);
|
|
1064
|
-
|
|
1065
|
-
// Set up event handlers
|
|
1066
1140
|
request._redirectable = this;
|
|
1067
|
-
for (var event
|
|
1068
|
-
|
|
1069
|
-
if (event) {
|
|
1070
|
-
request.on(event, eventHandlers[event]);
|
|
1071
|
-
}
|
|
1141
|
+
for (var event of events) {
|
|
1142
|
+
request.on(event, eventHandlers[event]);
|
|
1072
1143
|
}
|
|
1073
1144
|
|
|
1145
|
+
// RFC7230§5.3.1: When making a request directly to an origin server, […]
|
|
1146
|
+
// a client MUST send only the absolute path […] as the request-target.
|
|
1147
|
+
this._currentUrl = /^\//.test(this._options.path) ?
|
|
1148
|
+
url.format(this._options) :
|
|
1149
|
+
// When making a request to a proxy, […]
|
|
1150
|
+
// a client MUST send the target URI in absolute-form […].
|
|
1151
|
+
this._options.path;
|
|
1152
|
+
|
|
1074
1153
|
// End a redirected request
|
|
1075
1154
|
// (The first request must be ended explicitly with RedirectableRequest#end)
|
|
1076
1155
|
if (this._isRedirect) {
|
|
1077
|
-
// Write the request entity and end
|
|
1156
|
+
// Write the request entity and end
|
|
1078
1157
|
var i = 0;
|
|
1079
1158
|
var self = this;
|
|
1080
1159
|
var buffers = this._requestBodyBuffers;
|
|
@@ -1122,86 +1201,120 @@ RedirectableRequest.prototype._processResponse = function (response) {
|
|
|
1122
1201
|
// the user agent MAY automatically redirect its request to the URI
|
|
1123
1202
|
// referenced by the Location field value,
|
|
1124
1203
|
// even if the specific status code is not understood.
|
|
1204
|
+
|
|
1205
|
+
// If the response is not a redirect; return it as-is
|
|
1125
1206
|
var location = response.headers.location;
|
|
1126
|
-
if (location
|
|
1127
|
-
statusCode
|
|
1128
|
-
|
|
1129
|
-
this.
|
|
1130
|
-
this.
|
|
1131
|
-
this._currentRequest.abort();
|
|
1132
|
-
// Discard the remainder of the response to avoid waiting for data
|
|
1133
|
-
response.destroy();
|
|
1134
|
-
|
|
1135
|
-
// RFC7231§6.4: A client SHOULD detect and intervene
|
|
1136
|
-
// in cyclical redirections (i.e., "infinite" redirection loops).
|
|
1137
|
-
if (++this._redirectCount > this._options.maxRedirects) {
|
|
1138
|
-
this.emit("error", new TooManyRedirectsError());
|
|
1139
|
-
return;
|
|
1140
|
-
}
|
|
1207
|
+
if (!location || this._options.followRedirects === false ||
|
|
1208
|
+
statusCode < 300 || statusCode >= 400) {
|
|
1209
|
+
response.responseUrl = this._currentUrl;
|
|
1210
|
+
response.redirects = this._redirects;
|
|
1211
|
+
this.emit("response", response);
|
|
1141
1212
|
|
|
1142
|
-
//
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" ||
|
|
1147
|
-
// RFC7231§6.4.4: The 303 (See Other) status code indicates that
|
|
1148
|
-
// the server is redirecting the user agent to a different resource […]
|
|
1149
|
-
// A user agent can perform a retrieval request targeting that URI
|
|
1150
|
-
// (a GET or HEAD request if using HTTP) […]
|
|
1151
|
-
(statusCode === 303) && !/^(?:GET|HEAD)$/.test(this._options.method)) {
|
|
1152
|
-
this._options.method = "GET";
|
|
1153
|
-
// Drop a possible entity and headers related to it
|
|
1154
|
-
this._requestBodyBuffers = [];
|
|
1155
|
-
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
1156
|
-
}
|
|
1213
|
+
// Clean up
|
|
1214
|
+
this._requestBodyBuffers = [];
|
|
1215
|
+
return;
|
|
1216
|
+
}
|
|
1157
1217
|
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1218
|
+
// The response is a redirect, so abort the current request
|
|
1219
|
+
destroyRequest(this._currentRequest);
|
|
1220
|
+
// Discard the remainder of the response to avoid waiting for data
|
|
1221
|
+
response.destroy();
|
|
1161
1222
|
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
this.
|
|
1166
|
-
|
|
1167
|
-
|
|
1223
|
+
// RFC7231§6.4: A client SHOULD detect and intervene
|
|
1224
|
+
// in cyclical redirections (i.e., "infinite" redirection loops).
|
|
1225
|
+
if (++this._redirectCount > this._options.maxRedirects) {
|
|
1226
|
+
this.emit("error", new TooManyRedirectsError());
|
|
1227
|
+
return;
|
|
1228
|
+
}
|
|
1168
1229
|
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1230
|
+
// Store the request headers if applicable
|
|
1231
|
+
var requestHeaders;
|
|
1232
|
+
var beforeRedirect = this._options.beforeRedirect;
|
|
1233
|
+
if (beforeRedirect) {
|
|
1234
|
+
requestHeaders = Object.assign({
|
|
1235
|
+
// The Host header was set by nativeProtocol.request
|
|
1236
|
+
Host: response.req.getHeader("host"),
|
|
1237
|
+
}, this._options.headers);
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
// RFC7231§6.4: Automatic redirection needs to done with
|
|
1241
|
+
// care for methods not known to be safe, […]
|
|
1242
|
+
// RFC7231§6.4.2–3: For historical reasons, a user agent MAY change
|
|
1243
|
+
// the request method from POST to GET for the subsequent request.
|
|
1244
|
+
var method = this._options.method;
|
|
1245
|
+
if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" ||
|
|
1246
|
+
// RFC7231§6.4.4: The 303 (See Other) status code indicates that
|
|
1247
|
+
// the server is redirecting the user agent to a different resource […]
|
|
1248
|
+
// A user agent can perform a retrieval request targeting that URI
|
|
1249
|
+
// (a GET or HEAD request if using HTTP) […]
|
|
1250
|
+
(statusCode === 303) && !/^(?:GET|HEAD)$/.test(this._options.method)) {
|
|
1251
|
+
this._options.method = "GET";
|
|
1252
|
+
// Drop a possible entity and headers related to it
|
|
1253
|
+
this._requestBodyBuffers = [];
|
|
1254
|
+
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
1255
|
+
}
|
|
1173
1256
|
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1257
|
+
// Drop the Host header, as the redirect might lead to a different host
|
|
1258
|
+
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
1259
|
+
|
|
1260
|
+
// If the redirect is relative, carry over the host of the last request
|
|
1261
|
+
var currentUrlParts = url.parse(this._currentUrl);
|
|
1262
|
+
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
1263
|
+
var currentUrl = /^\w+:/.test(location) ? this._currentUrl :
|
|
1264
|
+
url.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
1265
|
+
|
|
1266
|
+
// Determine the URL of the redirection
|
|
1267
|
+
var redirectUrl;
|
|
1268
|
+
try {
|
|
1269
|
+
redirectUrl = url.resolve(currentUrl, location);
|
|
1270
|
+
}
|
|
1271
|
+
catch (cause) {
|
|
1272
|
+
this.emit("error", new RedirectionError({ cause: cause }));
|
|
1273
|
+
return;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
// Create the redirected request
|
|
1277
|
+
debug("redirecting to", redirectUrl);
|
|
1278
|
+
this._isRedirect = true;
|
|
1279
|
+
var redirectUrlParts = url.parse(redirectUrl);
|
|
1280
|
+
Object.assign(this._options, redirectUrlParts);
|
|
1281
|
+
|
|
1282
|
+
// Drop confidential headers when redirecting to a less secure protocol
|
|
1283
|
+
// or to a different domain that is not a superdomain
|
|
1284
|
+
if (redirectUrlParts.protocol !== currentUrlParts.protocol &&
|
|
1285
|
+
redirectUrlParts.protocol !== "https:" ||
|
|
1286
|
+
redirectUrlParts.host !== currentHost &&
|
|
1287
|
+
!isSubdomain(redirectUrlParts.host, currentHost)) {
|
|
1288
|
+
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
|
1289
|
+
}
|
|
1186
1290
|
|
|
1187
|
-
|
|
1291
|
+
// Evaluate the beforeRedirect callback
|
|
1292
|
+
if (isFunction(beforeRedirect)) {
|
|
1293
|
+
var responseDetails = {
|
|
1294
|
+
headers: response.headers,
|
|
1295
|
+
statusCode: statusCode,
|
|
1296
|
+
};
|
|
1297
|
+
var requestDetails = {
|
|
1298
|
+
url: currentUrl,
|
|
1299
|
+
method: method,
|
|
1300
|
+
headers: requestHeaders,
|
|
1301
|
+
};
|
|
1188
1302
|
try {
|
|
1189
|
-
this.
|
|
1303
|
+
beforeRedirect(this._options, responseDetails, requestDetails);
|
|
1190
1304
|
}
|
|
1191
|
-
catch (
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
this.emit("error", error);
|
|
1305
|
+
catch (err) {
|
|
1306
|
+
this.emit("error", err);
|
|
1307
|
+
return;
|
|
1195
1308
|
}
|
|
1309
|
+
this._sanitizeOptions(this._options);
|
|
1196
1310
|
}
|
|
1197
|
-
else {
|
|
1198
|
-
// The response is not a redirect; return it as-is
|
|
1199
|
-
response.responseUrl = this._currentUrl;
|
|
1200
|
-
response.redirects = this._redirects;
|
|
1201
|
-
this.emit("response", response);
|
|
1202
1311
|
|
|
1203
|
-
|
|
1204
|
-
|
|
1312
|
+
// Perform the redirected request
|
|
1313
|
+
try {
|
|
1314
|
+
this._performRequest();
|
|
1315
|
+
}
|
|
1316
|
+
catch (cause) {
|
|
1317
|
+
this.emit("error", new RedirectionError({ cause: cause }));
|
|
1205
1318
|
}
|
|
1206
1319
|
};
|
|
1207
1320
|
|
|
@@ -1223,15 +1336,19 @@ function wrap(protocols) {
|
|
|
1223
1336
|
// Executes a request, following redirects
|
|
1224
1337
|
function request(input, options, callback) {
|
|
1225
1338
|
// Parse parameters
|
|
1226
|
-
if (
|
|
1227
|
-
var
|
|
1339
|
+
if (isString(input)) {
|
|
1340
|
+
var parsed;
|
|
1228
1341
|
try {
|
|
1229
|
-
|
|
1342
|
+
parsed = urlToOptions(new URL(input));
|
|
1230
1343
|
}
|
|
1231
1344
|
catch (err) {
|
|
1232
1345
|
/* istanbul ignore next */
|
|
1233
|
-
|
|
1346
|
+
parsed = url.parse(input);
|
|
1347
|
+
}
|
|
1348
|
+
if (!isString(parsed.protocol)) {
|
|
1349
|
+
throw new InvalidUrlError({ input });
|
|
1234
1350
|
}
|
|
1351
|
+
input = parsed;
|
|
1235
1352
|
}
|
|
1236
1353
|
else if (URL && (input instanceof URL)) {
|
|
1237
1354
|
input = urlToOptions(input);
|
|
@@ -1241,7 +1358,7 @@ function wrap(protocols) {
|
|
|
1241
1358
|
options = input;
|
|
1242
1359
|
input = { protocol: protocol };
|
|
1243
1360
|
}
|
|
1244
|
-
if (
|
|
1361
|
+
if (isFunction(options)) {
|
|
1245
1362
|
callback = options;
|
|
1246
1363
|
options = null;
|
|
1247
1364
|
}
|
|
@@ -1252,6 +1369,9 @@ function wrap(protocols) {
|
|
|
1252
1369
|
maxBodyLength: exports.maxBodyLength,
|
|
1253
1370
|
}, input, options);
|
|
1254
1371
|
options.nativeProtocols = nativeProtocols;
|
|
1372
|
+
if (!isString(options.host) && !isString(options.hostname)) {
|
|
1373
|
+
options.hostname = "::1";
|
|
1374
|
+
}
|
|
1255
1375
|
|
|
1256
1376
|
assert.equal(options.protocol, protocol, "protocol mismatch");
|
|
1257
1377
|
debug("options", options);
|
|
@@ -1305,34 +1425,65 @@ function removeMatchingHeaders(regex, headers) {
|
|
|
1305
1425
|
delete headers[header];
|
|
1306
1426
|
}
|
|
1307
1427
|
}
|
|
1308
|
-
return lastValue
|
|
1428
|
+
return (lastValue === null || typeof lastValue === "undefined") ?
|
|
1429
|
+
undefined : String(lastValue).trim();
|
|
1309
1430
|
}
|
|
1310
1431
|
|
|
1311
|
-
function createErrorType(code,
|
|
1312
|
-
|
|
1432
|
+
function createErrorType(code, message, baseClass) {
|
|
1433
|
+
// Create constructor
|
|
1434
|
+
function CustomError(properties) {
|
|
1313
1435
|
Error.captureStackTrace(this, this.constructor);
|
|
1314
|
-
this
|
|
1436
|
+
Object.assign(this, properties || {});
|
|
1437
|
+
this.code = code;
|
|
1438
|
+
this.message = this.cause ? message + ": " + this.cause.message : message;
|
|
1315
1439
|
}
|
|
1316
|
-
|
|
1440
|
+
|
|
1441
|
+
// Attach constructor and set default properties
|
|
1442
|
+
CustomError.prototype = new (baseClass || Error)();
|
|
1317
1443
|
CustomError.prototype.constructor = CustomError;
|
|
1318
1444
|
CustomError.prototype.name = "Error [" + code + "]";
|
|
1319
|
-
CustomError.prototype.code = code;
|
|
1320
1445
|
return CustomError;
|
|
1321
1446
|
}
|
|
1322
1447
|
|
|
1448
|
+
function destroyRequest(request, error) {
|
|
1449
|
+
for (var event of events) {
|
|
1450
|
+
request.removeListener(event, eventHandlers[event]);
|
|
1451
|
+
}
|
|
1452
|
+
request.on("error", noop);
|
|
1453
|
+
request.destroy(error);
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
function isSubdomain(subdomain, domain) {
|
|
1457
|
+
assert(isString(subdomain) && isString(domain));
|
|
1458
|
+
var dot = subdomain.length - domain.length - 1;
|
|
1459
|
+
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
function isString(value) {
|
|
1463
|
+
return typeof value === "string" || value instanceof String;
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
function isFunction(value) {
|
|
1467
|
+
return typeof value === "function";
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
function isBuffer(value) {
|
|
1471
|
+
return typeof value === "object" && ("length" in value);
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1323
1474
|
// Exports
|
|
1324
1475
|
module.exports = wrap({ http: http, https: https });
|
|
1325
1476
|
module.exports.wrap = wrap;
|
|
1326
1477
|
|
|
1327
1478
|
|
|
1328
1479
|
/***/ }),
|
|
1329
|
-
/*
|
|
1480
|
+
/* 12 */
|
|
1330
1481
|
/***/ (function(module, exports) {
|
|
1331
1482
|
|
|
1332
1483
|
module.exports = require("url");
|
|
1333
1484
|
|
|
1334
1485
|
/***/ }),
|
|
1335
|
-
/*
|
|
1486
|
+
/* 13 */
|
|
1336
1487
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1337
1488
|
|
|
1338
1489
|
|
|
@@ -1348,7 +1499,7 @@ function setup(env) {
|
|
|
1348
1499
|
createDebug.disable = disable;
|
|
1349
1500
|
createDebug.enable = enable;
|
|
1350
1501
|
createDebug.enabled = enabled;
|
|
1351
|
-
createDebug.humanize = __webpack_require__(
|
|
1502
|
+
createDebug.humanize = __webpack_require__(38);
|
|
1352
1503
|
createDebug.destroy = destroy;
|
|
1353
1504
|
|
|
1354
1505
|
Object.keys(env).forEach(key => {
|
|
@@ -1371,7 +1522,7 @@ function setup(env) {
|
|
|
1371
1522
|
|
|
1372
1523
|
/**
|
|
1373
1524
|
* Selects a color for a debug namespace
|
|
1374
|
-
* @param {String} namespace The namespace string for the
|
|
1525
|
+
* @param {String} namespace The namespace string for the debug instance to be colored
|
|
1375
1526
|
* @return {Number|String} An ANSI color code for the given namespace
|
|
1376
1527
|
* @api private
|
|
1377
1528
|
*/
|
|
@@ -1397,6 +1548,8 @@ function setup(env) {
|
|
|
1397
1548
|
function createDebug(namespace) {
|
|
1398
1549
|
let prevTime;
|
|
1399
1550
|
let enableOverride = null;
|
|
1551
|
+
let namespacesCache;
|
|
1552
|
+
let enabledCache;
|
|
1400
1553
|
|
|
1401
1554
|
function debug(...args) {
|
|
1402
1555
|
// Disabled?
|
|
@@ -1457,7 +1610,17 @@ function setup(env) {
|
|
|
1457
1610
|
Object.defineProperty(debug, 'enabled', {
|
|
1458
1611
|
enumerable: true,
|
|
1459
1612
|
configurable: false,
|
|
1460
|
-
get: () =>
|
|
1613
|
+
get: () => {
|
|
1614
|
+
if (enableOverride !== null) {
|
|
1615
|
+
return enableOverride;
|
|
1616
|
+
}
|
|
1617
|
+
if (namespacesCache !== createDebug.namespaces) {
|
|
1618
|
+
namespacesCache = createDebug.namespaces;
|
|
1619
|
+
enabledCache = createDebug.enabled(namespace);
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
return enabledCache;
|
|
1623
|
+
},
|
|
1461
1624
|
set: v => {
|
|
1462
1625
|
enableOverride = v;
|
|
1463
1626
|
}
|
|
@@ -1486,6 +1649,7 @@ function setup(env) {
|
|
|
1486
1649
|
*/
|
|
1487
1650
|
function enable(namespaces) {
|
|
1488
1651
|
createDebug.save(namespaces);
|
|
1652
|
+
createDebug.namespaces = namespaces;
|
|
1489
1653
|
|
|
1490
1654
|
createDebug.names = [];
|
|
1491
1655
|
createDebug.skips = [];
|
|
@@ -1503,7 +1667,7 @@ function setup(env) {
|
|
|
1503
1667
|
namespaces = split[i].replace(/\*/g, '.*?');
|
|
1504
1668
|
|
|
1505
1669
|
if (namespaces[0] === '-') {
|
|
1506
|
-
createDebug.skips.push(new RegExp('^' + namespaces.
|
|
1670
|
+
createDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));
|
|
1507
1671
|
} else {
|
|
1508
1672
|
createDebug.names.push(new RegExp('^' + namespaces + '$'));
|
|
1509
1673
|
}
|
|
@@ -1599,11 +1763,17 @@ module.exports = setup;
|
|
|
1599
1763
|
|
|
1600
1764
|
|
|
1601
1765
|
/***/ }),
|
|
1602
|
-
/*
|
|
1766
|
+
/* 14 */
|
|
1603
1767
|
/***/ (function(module, exports) {
|
|
1604
1768
|
|
|
1605
1769
|
module.exports = require("util");
|
|
1606
1770
|
|
|
1771
|
+
/***/ }),
|
|
1772
|
+
/* 15 */
|
|
1773
|
+
/***/ (function(module) {
|
|
1774
|
+
|
|
1775
|
+
module.exports = JSON.parse("{\"name\":\"axios\",\"version\":\"0.21.4\",\"description\":\"Promise based HTTP client for the browser and node.js\",\"main\":\"index.js\",\"scripts\":{\"test\":\"grunt test\",\"start\":\"node ./sandbox/server.js\",\"build\":\"NODE_ENV=production grunt build\",\"preversion\":\"npm test\",\"version\":\"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\",\"postversion\":\"git push && git push --tags\",\"examples\":\"node ./examples/server.js\",\"coveralls\":\"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\"fix\":\"eslint --fix lib/**/*.js\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/axios/axios.git\"},\"keywords\":[\"xhr\",\"http\",\"ajax\",\"promise\",\"node\"],\"author\":\"Matt Zabriskie\",\"license\":\"MIT\",\"bugs\":{\"url\":\"https://github.com/axios/axios/issues\"},\"homepage\":\"https://axios-http.com\",\"devDependencies\":{\"coveralls\":\"^3.0.0\",\"es6-promise\":\"^4.2.4\",\"grunt\":\"^1.3.0\",\"grunt-banner\":\"^0.6.0\",\"grunt-cli\":\"^1.2.0\",\"grunt-contrib-clean\":\"^1.1.0\",\"grunt-contrib-watch\":\"^1.0.0\",\"grunt-eslint\":\"^23.0.0\",\"grunt-karma\":\"^4.0.0\",\"grunt-mocha-test\":\"^0.13.3\",\"grunt-ts\":\"^6.0.0-beta.19\",\"grunt-webpack\":\"^4.0.2\",\"istanbul-instrumenter-loader\":\"^1.0.0\",\"jasmine-core\":\"^2.4.1\",\"karma\":\"^6.3.2\",\"karma-chrome-launcher\":\"^3.1.0\",\"karma-firefox-launcher\":\"^2.1.0\",\"karma-jasmine\":\"^1.1.1\",\"karma-jasmine-ajax\":\"^0.1.13\",\"karma-safari-launcher\":\"^1.0.0\",\"karma-sauce-launcher\":\"^4.3.6\",\"karma-sinon\":\"^1.0.5\",\"karma-sourcemap-loader\":\"^0.3.8\",\"karma-webpack\":\"^4.0.2\",\"load-grunt-tasks\":\"^3.5.2\",\"minimist\":\"^1.2.0\",\"mocha\":\"^8.2.1\",\"sinon\":\"^4.5.0\",\"terser-webpack-plugin\":\"^4.2.3\",\"typescript\":\"^4.0.5\",\"url-search-params\":\"^0.10.0\",\"webpack\":\"^4.44.2\",\"webpack-dev-server\":\"^3.11.0\"},\"browser\":{\"./lib/adapters/http.js\":\"./lib/adapters/xhr.js\"},\"jsdelivr\":\"dist/axios.min.js\",\"unpkg\":\"dist/axios.min.js\",\"typings\":\"./index.d.ts\",\"dependencies\":{\"follow-redirects\":\"^1.14.0\"},\"bundlesize\":[{\"path\":\"./dist/axios.min.js\",\"threshold\":\"5kB\"}]}");
|
|
1776
|
+
|
|
1607
1777
|
/***/ }),
|
|
1608
1778
|
/* 16 */
|
|
1609
1779
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -1611,6 +1781,18 @@ module.exports = require("util");
|
|
|
1611
1781
|
"use strict";
|
|
1612
1782
|
|
|
1613
1783
|
|
|
1784
|
+
module.exports = function isCancel(value) {
|
|
1785
|
+
return !!(value && value.__CANCEL__);
|
|
1786
|
+
};
|
|
1787
|
+
|
|
1788
|
+
|
|
1789
|
+
/***/ }),
|
|
1790
|
+
/* 17 */
|
|
1791
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1792
|
+
|
|
1793
|
+
"use strict";
|
|
1794
|
+
|
|
1795
|
+
|
|
1614
1796
|
var utils = __webpack_require__(0);
|
|
1615
1797
|
|
|
1616
1798
|
/**
|
|
@@ -1699,7 +1881,7 @@ module.exports = function mergeConfig(config1, config2) {
|
|
|
1699
1881
|
|
|
1700
1882
|
|
|
1701
1883
|
/***/ }),
|
|
1702
|
-
/*
|
|
1884
|
+
/* 18 */
|
|
1703
1885
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1704
1886
|
|
|
1705
1887
|
"use strict";
|
|
@@ -1725,12 +1907,12 @@ module.exports = Cancel;
|
|
|
1725
1907
|
|
|
1726
1908
|
|
|
1727
1909
|
/***/ }),
|
|
1728
|
-
/*
|
|
1910
|
+
/* 19 */
|
|
1729
1911
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1730
1912
|
|
|
1731
1913
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
1732
1914
|
if(true)
|
|
1733
|
-
module.exports = factory(__webpack_require__(
|
|
1915
|
+
module.exports = factory(__webpack_require__(5));
|
|
1734
1916
|
else {}
|
|
1735
1917
|
})(global, function(__WEBPACK_EXTERNAL_MODULE_axios__) {
|
|
1736
1918
|
return /******/ (function(modules) { // webpackBootstrap
|
|
@@ -6153,7 +6335,7 @@ function defaultInvalidate(_x6, _x7) {
|
|
|
6153
6335
|
}
|
|
6154
6336
|
|
|
6155
6337
|
function _defaultInvalidate() {
|
|
6156
|
-
_defaultInvalidate = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(
|
|
6338
|
+
_defaultInvalidate = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(config, req) {
|
|
6157
6339
|
var method;
|
|
6158
6340
|
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
6159
6341
|
while (1) {
|
|
@@ -6161,13 +6343,13 @@ function _defaultInvalidate() {
|
|
|
6161
6343
|
case 0:
|
|
6162
6344
|
method = req.method.toLowerCase();
|
|
6163
6345
|
|
|
6164
|
-
if (
|
|
6346
|
+
if (!config.exclude.methods.includes(method)) {
|
|
6165
6347
|
_context3.next = 4;
|
|
6166
6348
|
break;
|
|
6167
6349
|
}
|
|
6168
6350
|
|
|
6169
6351
|
_context3.next = 4;
|
|
6170
|
-
return
|
|
6352
|
+
return config.store.removeItem(config.uuid);
|
|
6171
6353
|
|
|
6172
6354
|
case 4:
|
|
6173
6355
|
case "end":
|
|
@@ -6275,7 +6457,8 @@ var defaults = {
|
|
|
6275
6457
|
exclude: {
|
|
6276
6458
|
paths: [],
|
|
6277
6459
|
query: true,
|
|
6278
|
-
filter: null
|
|
6460
|
+
filter: null,
|
|
6461
|
+
methods: ['post', 'patch', 'put', 'delete']
|
|
6279
6462
|
},
|
|
6280
6463
|
adapter: axios__WEBPACK_IMPORTED_MODULE_4___default.a.defaults.adapter,
|
|
6281
6464
|
clearOnStale: true,
|
|
@@ -6304,7 +6487,9 @@ var disallowedPerRequestKeys = ['limit', 'store', 'adapter', 'uuid', 'acceptStal
|
|
|
6304
6487
|
var makeConfig = function makeConfig() {
|
|
6305
6488
|
var override = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
6306
6489
|
|
|
6307
|
-
var config = _objectSpread(_objectSpread({}, defaults.cache), override)
|
|
6490
|
+
var config = _objectSpread(_objectSpread(_objectSpread({}, defaults.cache), override), {}, {
|
|
6491
|
+
exclude: _objectSpread(_objectSpread({}, defaults.cache.exclude), override.exclude)
|
|
6492
|
+
}); // Create a cache key method
|
|
6308
6493
|
|
|
6309
6494
|
|
|
6310
6495
|
config.key = Object(_cache__WEBPACK_IMPORTED_MODULE_6__["key"])(config);
|
|
@@ -6350,10 +6535,15 @@ var mergeRequestConfig = function mergeRequestConfig(config, req) {
|
|
|
6350
6535
|
|
|
6351
6536
|
if (mergedConfig.debug === true) {
|
|
6352
6537
|
mergedConfig.debug = debug;
|
|
6538
|
+
} // Create a cache key method
|
|
6539
|
+
|
|
6540
|
+
|
|
6541
|
+
if (requestConfig.key) {
|
|
6542
|
+
mergedConfig.key = Object(_cache__WEBPACK_IMPORTED_MODULE_6__["key"])(requestConfig);
|
|
6353
6543
|
} // Generate request UUID
|
|
6354
6544
|
|
|
6355
6545
|
|
|
6356
|
-
mergedConfig.uuid =
|
|
6546
|
+
mergedConfig.uuid = mergedConfig.key(req);
|
|
6357
6547
|
config.debug("Request config for ".concat(req.url), mergedConfig);
|
|
6358
6548
|
return mergedConfig;
|
|
6359
6549
|
};
|
|
@@ -6380,7 +6570,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6380
6570
|
/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0__);
|
|
6381
6571
|
/* harmony import */ var core_js_modules_es6_object_to_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es6.object.to-string */ "./node_modules/core-js/modules/es6.object.to-string.js");
|
|
6382
6572
|
/* harmony import */ var core_js_modules_es6_object_to_string__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_to_string__WEBPACK_IMPORTED_MODULE_1__);
|
|
6383
|
-
/* harmony import */ var
|
|
6573
|
+
/* harmony import */ var core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es7.array.includes */ "./node_modules/core-js/modules/es7.array.includes.js");
|
|
6574
|
+
/* harmony import */ var core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_2__);
|
|
6575
|
+
/* harmony import */ var core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.string.includes */ "./node_modules/core-js/modules/es6.string.includes.js");
|
|
6576
|
+
/* harmony import */ var core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_3__);
|
|
6577
|
+
/* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utilities */ "./src/utilities.js");
|
|
6578
|
+
|
|
6579
|
+
|
|
6384
6580
|
|
|
6385
6581
|
|
|
6386
6582
|
|
|
@@ -6391,6 +6587,12 @@ function exclude() {
|
|
|
6391
6587
|
var _config$exclude = config.exclude,
|
|
6392
6588
|
exclude = _config$exclude === void 0 ? {} : _config$exclude,
|
|
6393
6589
|
debug = config.debug;
|
|
6590
|
+
var method = req.method.toLowerCase();
|
|
6591
|
+
|
|
6592
|
+
if (method === 'head' || exclude.methods.includes(method)) {
|
|
6593
|
+
debug("Excluding request by HTTP method ".concat(req.url));
|
|
6594
|
+
return true;
|
|
6595
|
+
}
|
|
6394
6596
|
|
|
6395
6597
|
if (typeof exclude.filter === 'function' && exclude.filter(req)) {
|
|
6396
6598
|
debug("Excluding request by filter ".concat(req.url));
|
|
@@ -6398,7 +6600,7 @@ function exclude() {
|
|
|
6398
6600
|
} // do not cache request with query
|
|
6399
6601
|
|
|
6400
6602
|
|
|
6401
|
-
var hasQueryParams = /\?.*$/.test(req.url) || Object(
|
|
6603
|
+
var hasQueryParams = /\?.*$/.test(req.url) || Object(_utilities__WEBPACK_IMPORTED_MODULE_4__["isObject"])(req.params) && Object.keys(req.params).length !== 0 || typeof URLSearchParams !== 'undefined' && req.params instanceof URLSearchParams;
|
|
6402
6604
|
|
|
6403
6605
|
if (exclude.query && hasQueryParams) {
|
|
6404
6606
|
debug("Excluding request by query ".concat(req.url));
|
|
@@ -7344,19 +7546,13 @@ var RedisStore = /*#__PURE__*/function () {
|
|
|
7344
7546
|
|
|
7345
7547
|
"use strict";
|
|
7346
7548
|
__webpack_require__.r(__webpack_exports__);
|
|
7347
|
-
/* harmony import */ var
|
|
7348
|
-
/* harmony import */ var
|
|
7349
|
-
/* harmony import */ var
|
|
7350
|
-
/* harmony import */ var
|
|
7351
|
-
/* harmony import */ var
|
|
7352
|
-
/* harmony import */ var
|
|
7353
|
-
/* harmony import */ var
|
|
7354
|
-
/* harmony import */ var core_js_modules_es6_object_to_string__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_to_string__WEBPACK_IMPORTED_MODULE_3__);
|
|
7355
|
-
/* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./response */ "./src/response.js");
|
|
7356
|
-
/* harmony import */ var _exclude__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./exclude */ "./src/exclude.js");
|
|
7357
|
-
/* harmony import */ var _cache__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./cache */ "./src/cache.js");
|
|
7358
|
-
|
|
7359
|
-
|
|
7549
|
+
/* harmony import */ var regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! regenerator-runtime/runtime */ "./node_modules/regenerator-runtime/runtime.js");
|
|
7550
|
+
/* harmony import */ var regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_0__);
|
|
7551
|
+
/* harmony import */ var core_js_modules_es6_object_to_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es6.object.to-string */ "./node_modules/core-js/modules/es6.object.to-string.js");
|
|
7552
|
+
/* harmony import */ var core_js_modules_es6_object_to_string__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_to_string__WEBPACK_IMPORTED_MODULE_1__);
|
|
7553
|
+
/* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./response */ "./src/response.js");
|
|
7554
|
+
/* harmony import */ var _exclude__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./exclude */ "./src/exclude.js");
|
|
7555
|
+
/* harmony import */ var _cache__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./cache */ "./src/cache.js");
|
|
7360
7556
|
|
|
7361
7557
|
|
|
7362
7558
|
|
|
@@ -7374,7 +7570,7 @@ function request(_x, _x2) {
|
|
|
7374
7570
|
|
|
7375
7571
|
function _request() {
|
|
7376
7572
|
_request = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(config, req) {
|
|
7377
|
-
var next,
|
|
7573
|
+
var next, res, excludeFromCache;
|
|
7378
7574
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
7379
7575
|
while (1) {
|
|
7380
7576
|
switch (_context.prev = _context.next) {
|
|
@@ -7394,7 +7590,7 @@ function _request() {
|
|
|
7394
7590
|
args[_key] = arguments[_key];
|
|
7395
7591
|
}
|
|
7396
7592
|
|
|
7397
|
-
return
|
|
7593
|
+
return _response__WEBPACK_IMPORTED_MODULE_2__["default"].apply(void 0, [config, req].concat(args));
|
|
7398
7594
|
}; // run invalidate function to check if any cache items need to be invalidated.
|
|
7399
7595
|
|
|
7400
7596
|
|
|
@@ -7402,7 +7598,7 @@ function _request() {
|
|
|
7402
7598
|
return config.invalidate(config, req);
|
|
7403
7599
|
|
|
7404
7600
|
case 5:
|
|
7405
|
-
if (!Object(
|
|
7601
|
+
if (!Object(_exclude__WEBPACK_IMPORTED_MODULE_3__["default"])(config, req)) {
|
|
7406
7602
|
_context.next = 7;
|
|
7407
7603
|
break;
|
|
7408
7604
|
}
|
|
@@ -7410,21 +7606,11 @@ function _request() {
|
|
|
7410
7606
|
return _context.abrupt("return", excludeFromCache());
|
|
7411
7607
|
|
|
7412
7608
|
case 7:
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
_context.next = 10;
|
|
7417
|
-
break;
|
|
7418
|
-
}
|
|
7419
|
-
|
|
7420
|
-
return _context.abrupt("return", excludeFromCache());
|
|
7609
|
+
_context.prev = 7;
|
|
7610
|
+
_context.next = 10;
|
|
7611
|
+
return Object(_cache__WEBPACK_IMPORTED_MODULE_4__["read"])(config, req);
|
|
7421
7612
|
|
|
7422
7613
|
case 10:
|
|
7423
|
-
_context.prev = 10;
|
|
7424
|
-
_context.next = 13;
|
|
7425
|
-
return Object(_cache__WEBPACK_IMPORTED_MODULE_6__["read"])(config, req);
|
|
7426
|
-
|
|
7427
|
-
case 13:
|
|
7428
7614
|
res = _context.sent;
|
|
7429
7615
|
res.config = req;
|
|
7430
7616
|
res.request = {
|
|
@@ -7435,30 +7621,30 @@ function _request() {
|
|
|
7435
7621
|
next: res
|
|
7436
7622
|
});
|
|
7437
7623
|
|
|
7438
|
-
case
|
|
7439
|
-
_context.prev =
|
|
7440
|
-
_context.t0 = _context["catch"](
|
|
7624
|
+
case 16:
|
|
7625
|
+
_context.prev = 16;
|
|
7626
|
+
_context.t0 = _context["catch"](7);
|
|
7441
7627
|
|
|
7442
7628
|
if (!(config.clearOnStale && _context.t0.reason === 'cache-stale')) {
|
|
7443
|
-
_context.next =
|
|
7629
|
+
_context.next = 21;
|
|
7444
7630
|
break;
|
|
7445
7631
|
}
|
|
7446
7632
|
|
|
7447
|
-
_context.next =
|
|
7633
|
+
_context.next = 21;
|
|
7448
7634
|
return config.store.removeItem(config.uuid);
|
|
7449
7635
|
|
|
7450
|
-
case
|
|
7636
|
+
case 21:
|
|
7451
7637
|
return _context.abrupt("return", {
|
|
7452
7638
|
config: config,
|
|
7453
7639
|
next: next
|
|
7454
7640
|
});
|
|
7455
7641
|
|
|
7456
|
-
case
|
|
7642
|
+
case 22:
|
|
7457
7643
|
case "end":
|
|
7458
7644
|
return _context.stop();
|
|
7459
7645
|
}
|
|
7460
7646
|
}
|
|
7461
|
-
}, _callee, null, [[
|
|
7647
|
+
}, _callee, null, [[7, 16]]);
|
|
7462
7648
|
}));
|
|
7463
7649
|
return _request.apply(this, arguments);
|
|
7464
7650
|
}
|
|
@@ -7718,7 +7904,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_axios__;
|
|
|
7718
7904
|
/*! no static exports found */
|
|
7719
7905
|
/***/ (function(module, exports) {
|
|
7720
7906
|
|
|
7721
|
-
module.exports = __webpack_require__(
|
|
7907
|
+
module.exports = __webpack_require__(14);
|
|
7722
7908
|
|
|
7723
7909
|
/***/ })
|
|
7724
7910
|
|
|
@@ -7727,17 +7913,17 @@ module.exports = __webpack_require__(15);
|
|
|
7727
7913
|
//# sourceMappingURL=cache.node.js.map
|
|
7728
7914
|
|
|
7729
7915
|
/***/ }),
|
|
7730
|
-
/*
|
|
7916
|
+
/* 20 */
|
|
7731
7917
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7732
7918
|
|
|
7733
7919
|
"use strict";
|
|
7734
7920
|
|
|
7735
7921
|
|
|
7736
7922
|
var utils = __webpack_require__(0);
|
|
7737
|
-
var bind = __webpack_require__(
|
|
7738
|
-
var Axios = __webpack_require__(
|
|
7739
|
-
var mergeConfig = __webpack_require__(
|
|
7740
|
-
var defaults = __webpack_require__(
|
|
7923
|
+
var bind = __webpack_require__(6);
|
|
7924
|
+
var Axios = __webpack_require__(21);
|
|
7925
|
+
var mergeConfig = __webpack_require__(17);
|
|
7926
|
+
var defaults = __webpack_require__(2);
|
|
7741
7927
|
|
|
7742
7928
|
/**
|
|
7743
7929
|
* Create an instance of Axios
|
|
@@ -7770,18 +7956,18 @@ axios.create = function create(instanceConfig) {
|
|
|
7770
7956
|
};
|
|
7771
7957
|
|
|
7772
7958
|
// Expose Cancel & CancelToken
|
|
7773
|
-
axios.Cancel = __webpack_require__(
|
|
7774
|
-
axios.CancelToken = __webpack_require__(
|
|
7775
|
-
axios.isCancel = __webpack_require__(
|
|
7959
|
+
axios.Cancel = __webpack_require__(18);
|
|
7960
|
+
axios.CancelToken = __webpack_require__(46);
|
|
7961
|
+
axios.isCancel = __webpack_require__(16);
|
|
7776
7962
|
|
|
7777
7963
|
// Expose all/spread
|
|
7778
7964
|
axios.all = function all(promises) {
|
|
7779
7965
|
return Promise.all(promises);
|
|
7780
7966
|
};
|
|
7781
|
-
axios.spread = __webpack_require__(
|
|
7967
|
+
axios.spread = __webpack_require__(47);
|
|
7782
7968
|
|
|
7783
7969
|
// Expose isAxiosError
|
|
7784
|
-
axios.isAxiosError = __webpack_require__(
|
|
7970
|
+
axios.isAxiosError = __webpack_require__(48);
|
|
7785
7971
|
|
|
7786
7972
|
module.exports = axios;
|
|
7787
7973
|
|
|
@@ -7790,7 +7976,7 @@ module.exports.default = axios;
|
|
|
7790
7976
|
|
|
7791
7977
|
|
|
7792
7978
|
/***/ }),
|
|
7793
|
-
/*
|
|
7979
|
+
/* 21 */
|
|
7794
7980
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7795
7981
|
|
|
7796
7982
|
"use strict";
|
|
@@ -7798,10 +7984,12 @@ module.exports.default = axios;
|
|
|
7798
7984
|
|
|
7799
7985
|
var utils = __webpack_require__(0);
|
|
7800
7986
|
var buildURL = __webpack_require__(1);
|
|
7801
|
-
var InterceptorManager = __webpack_require__(
|
|
7802
|
-
var dispatchRequest = __webpack_require__(
|
|
7803
|
-
var mergeConfig = __webpack_require__(
|
|
7987
|
+
var InterceptorManager = __webpack_require__(22);
|
|
7988
|
+
var dispatchRequest = __webpack_require__(23);
|
|
7989
|
+
var mergeConfig = __webpack_require__(17);
|
|
7990
|
+
var validator = __webpack_require__(45);
|
|
7804
7991
|
|
|
7992
|
+
var validators = validator.validators;
|
|
7805
7993
|
/**
|
|
7806
7994
|
* Create a new instance of Axios
|
|
7807
7995
|
*
|
|
@@ -7841,20 +8029,71 @@ Axios.prototype.request = function request(config) {
|
|
|
7841
8029
|
config.method = 'get';
|
|
7842
8030
|
}
|
|
7843
8031
|
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
8032
|
+
var transitional = config.transitional;
|
|
8033
|
+
|
|
8034
|
+
if (transitional !== undefined) {
|
|
8035
|
+
validator.assertOptions(transitional, {
|
|
8036
|
+
silentJSONParsing: validators.transitional(validators.boolean, '1.0.0'),
|
|
8037
|
+
forcedJSONParsing: validators.transitional(validators.boolean, '1.0.0'),
|
|
8038
|
+
clarifyTimeoutError: validators.transitional(validators.boolean, '1.0.0')
|
|
8039
|
+
}, false);
|
|
8040
|
+
}
|
|
7847
8041
|
|
|
8042
|
+
// filter out skipped interceptors
|
|
8043
|
+
var requestInterceptorChain = [];
|
|
8044
|
+
var synchronousRequestInterceptors = true;
|
|
7848
8045
|
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
7849
|
-
|
|
8046
|
+
if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
|
|
8047
|
+
return;
|
|
8048
|
+
}
|
|
8049
|
+
|
|
8050
|
+
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
8051
|
+
|
|
8052
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
7850
8053
|
});
|
|
7851
8054
|
|
|
8055
|
+
var responseInterceptorChain = [];
|
|
7852
8056
|
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
7853
|
-
|
|
8057
|
+
responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
7854
8058
|
});
|
|
7855
8059
|
|
|
7856
|
-
|
|
7857
|
-
|
|
8060
|
+
var promise;
|
|
8061
|
+
|
|
8062
|
+
if (!synchronousRequestInterceptors) {
|
|
8063
|
+
var chain = [dispatchRequest, undefined];
|
|
8064
|
+
|
|
8065
|
+
Array.prototype.unshift.apply(chain, requestInterceptorChain);
|
|
8066
|
+
chain = chain.concat(responseInterceptorChain);
|
|
8067
|
+
|
|
8068
|
+
promise = Promise.resolve(config);
|
|
8069
|
+
while (chain.length) {
|
|
8070
|
+
promise = promise.then(chain.shift(), chain.shift());
|
|
8071
|
+
}
|
|
8072
|
+
|
|
8073
|
+
return promise;
|
|
8074
|
+
}
|
|
8075
|
+
|
|
8076
|
+
|
|
8077
|
+
var newConfig = config;
|
|
8078
|
+
while (requestInterceptorChain.length) {
|
|
8079
|
+
var onFulfilled = requestInterceptorChain.shift();
|
|
8080
|
+
var onRejected = requestInterceptorChain.shift();
|
|
8081
|
+
try {
|
|
8082
|
+
newConfig = onFulfilled(newConfig);
|
|
8083
|
+
} catch (error) {
|
|
8084
|
+
onRejected(error);
|
|
8085
|
+
break;
|
|
8086
|
+
}
|
|
8087
|
+
}
|
|
8088
|
+
|
|
8089
|
+
try {
|
|
8090
|
+
promise = dispatchRequest(newConfig);
|
|
8091
|
+
} catch (error) {
|
|
8092
|
+
return Promise.reject(error);
|
|
8093
|
+
}
|
|
8094
|
+
|
|
8095
|
+
while (responseInterceptorChain.length) {
|
|
8096
|
+
promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
|
|
7858
8097
|
}
|
|
7859
8098
|
|
|
7860
8099
|
return promise;
|
|
@@ -7892,7 +8131,7 @@ module.exports = Axios;
|
|
|
7892
8131
|
|
|
7893
8132
|
|
|
7894
8133
|
/***/ }),
|
|
7895
|
-
/*
|
|
8134
|
+
/* 22 */
|
|
7896
8135
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7897
8136
|
|
|
7898
8137
|
"use strict";
|
|
@@ -7912,10 +8151,12 @@ function InterceptorManager() {
|
|
|
7912
8151
|
*
|
|
7913
8152
|
* @return {Number} An ID used to remove interceptor later
|
|
7914
8153
|
*/
|
|
7915
|
-
InterceptorManager.prototype.use = function use(fulfilled, rejected) {
|
|
8154
|
+
InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
|
|
7916
8155
|
this.handlers.push({
|
|
7917
8156
|
fulfilled: fulfilled,
|
|
7918
|
-
rejected: rejected
|
|
8157
|
+
rejected: rejected,
|
|
8158
|
+
synchronous: options ? options.synchronous : false,
|
|
8159
|
+
runWhen: options ? options.runWhen : null
|
|
7919
8160
|
});
|
|
7920
8161
|
return this.handlers.length - 1;
|
|
7921
8162
|
};
|
|
@@ -7951,16 +8192,16 @@ module.exports = InterceptorManager;
|
|
|
7951
8192
|
|
|
7952
8193
|
|
|
7953
8194
|
/***/ }),
|
|
7954
|
-
/*
|
|
8195
|
+
/* 23 */
|
|
7955
8196
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7956
8197
|
|
|
7957
8198
|
"use strict";
|
|
7958
8199
|
|
|
7959
8200
|
|
|
7960
8201
|
var utils = __webpack_require__(0);
|
|
7961
|
-
var transformData = __webpack_require__(
|
|
7962
|
-
var isCancel = __webpack_require__(
|
|
7963
|
-
var defaults = __webpack_require__(
|
|
8202
|
+
var transformData = __webpack_require__(24);
|
|
8203
|
+
var isCancel = __webpack_require__(16);
|
|
8204
|
+
var defaults = __webpack_require__(2);
|
|
7964
8205
|
|
|
7965
8206
|
/**
|
|
7966
8207
|
* Throws a `Cancel` if cancellation has been requested.
|
|
@@ -7984,7 +8225,8 @@ module.exports = function dispatchRequest(config) {
|
|
|
7984
8225
|
config.headers = config.headers || {};
|
|
7985
8226
|
|
|
7986
8227
|
// Transform request data
|
|
7987
|
-
config.data = transformData(
|
|
8228
|
+
config.data = transformData.call(
|
|
8229
|
+
config,
|
|
7988
8230
|
config.data,
|
|
7989
8231
|
config.headers,
|
|
7990
8232
|
config.transformRequest
|
|
@@ -8010,7 +8252,8 @@ module.exports = function dispatchRequest(config) {
|
|
|
8010
8252
|
throwIfCancellationRequested(config);
|
|
8011
8253
|
|
|
8012
8254
|
// Transform response data
|
|
8013
|
-
response.data = transformData(
|
|
8255
|
+
response.data = transformData.call(
|
|
8256
|
+
config,
|
|
8014
8257
|
response.data,
|
|
8015
8258
|
response.headers,
|
|
8016
8259
|
config.transformResponse
|
|
@@ -8023,7 +8266,8 @@ module.exports = function dispatchRequest(config) {
|
|
|
8023
8266
|
|
|
8024
8267
|
// Transform response data
|
|
8025
8268
|
if (reason && reason.response) {
|
|
8026
|
-
reason.response.data = transformData(
|
|
8269
|
+
reason.response.data = transformData.call(
|
|
8270
|
+
config,
|
|
8027
8271
|
reason.response.data,
|
|
8028
8272
|
reason.response.headers,
|
|
8029
8273
|
config.transformResponse
|
|
@@ -8037,13 +8281,14 @@ module.exports = function dispatchRequest(config) {
|
|
|
8037
8281
|
|
|
8038
8282
|
|
|
8039
8283
|
/***/ }),
|
|
8040
|
-
/*
|
|
8284
|
+
/* 24 */
|
|
8041
8285
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8042
8286
|
|
|
8043
8287
|
"use strict";
|
|
8044
8288
|
|
|
8045
8289
|
|
|
8046
8290
|
var utils = __webpack_require__(0);
|
|
8291
|
+
var defaults = __webpack_require__(2);
|
|
8047
8292
|
|
|
8048
8293
|
/**
|
|
8049
8294
|
* Transform the data for a request or a response
|
|
@@ -8054,9 +8299,10 @@ var utils = __webpack_require__(0);
|
|
|
8054
8299
|
* @returns {*} The resulting transformed data
|
|
8055
8300
|
*/
|
|
8056
8301
|
module.exports = function transformData(data, headers, fns) {
|
|
8302
|
+
var context = this || defaults;
|
|
8057
8303
|
/*eslint no-param-reassign:0*/
|
|
8058
8304
|
utils.forEach(fns, function transform(fn) {
|
|
8059
|
-
data = fn(data, headers);
|
|
8305
|
+
data = fn.call(context, data, headers);
|
|
8060
8306
|
});
|
|
8061
8307
|
|
|
8062
8308
|
return data;
|
|
@@ -8064,7 +8310,7 @@ module.exports = function transformData(data, headers, fns) {
|
|
|
8064
8310
|
|
|
8065
8311
|
|
|
8066
8312
|
/***/ }),
|
|
8067
|
-
/*
|
|
8313
|
+
/* 25 */
|
|
8068
8314
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8069
8315
|
|
|
8070
8316
|
"use strict";
|
|
@@ -8083,7 +8329,7 @@ module.exports = function normalizeHeaderName(headers, normalizedName) {
|
|
|
8083
8329
|
|
|
8084
8330
|
|
|
8085
8331
|
/***/ }),
|
|
8086
|
-
/*
|
|
8332
|
+
/* 26 */
|
|
8087
8333
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8088
8334
|
|
|
8089
8335
|
"use strict";
|
|
@@ -8091,17 +8337,18 @@ module.exports = function normalizeHeaderName(headers, normalizedName) {
|
|
|
8091
8337
|
|
|
8092
8338
|
var utils = __webpack_require__(0);
|
|
8093
8339
|
var settle = __webpack_require__(7);
|
|
8094
|
-
var cookies = __webpack_require__(
|
|
8340
|
+
var cookies = __webpack_require__(27);
|
|
8095
8341
|
var buildURL = __webpack_require__(1);
|
|
8096
|
-
var buildFullPath = __webpack_require__(
|
|
8097
|
-
var parseHeaders = __webpack_require__(
|
|
8098
|
-
var isURLSameOrigin = __webpack_require__(
|
|
8099
|
-
var createError = __webpack_require__(
|
|
8342
|
+
var buildFullPath = __webpack_require__(8);
|
|
8343
|
+
var parseHeaders = __webpack_require__(30);
|
|
8344
|
+
var isURLSameOrigin = __webpack_require__(31);
|
|
8345
|
+
var createError = __webpack_require__(4);
|
|
8100
8346
|
|
|
8101
8347
|
module.exports = function xhrAdapter(config) {
|
|
8102
8348
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
8103
8349
|
var requestData = config.data;
|
|
8104
8350
|
var requestHeaders = config.headers;
|
|
8351
|
+
var responseType = config.responseType;
|
|
8105
8352
|
|
|
8106
8353
|
if (utils.isFormData(requestData)) {
|
|
8107
8354
|
delete requestHeaders['Content-Type']; // Let the browser set it
|
|
@@ -8122,23 +8369,14 @@ module.exports = function xhrAdapter(config) {
|
|
|
8122
8369
|
// Set the request timeout in MS
|
|
8123
8370
|
request.timeout = config.timeout;
|
|
8124
8371
|
|
|
8125
|
-
|
|
8126
|
-
|
|
8127
|
-
if (!request || request.readyState !== 4) {
|
|
8128
|
-
return;
|
|
8129
|
-
}
|
|
8130
|
-
|
|
8131
|
-
// The request errored out and we didn't get a response, this will be
|
|
8132
|
-
// handled by onerror instead
|
|
8133
|
-
// With one exception: request that using file: protocol, most browsers
|
|
8134
|
-
// will return status as 0 even though it's a successful request
|
|
8135
|
-
if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
|
|
8372
|
+
function onloadend() {
|
|
8373
|
+
if (!request) {
|
|
8136
8374
|
return;
|
|
8137
8375
|
}
|
|
8138
|
-
|
|
8139
8376
|
// Prepare the response
|
|
8140
8377
|
var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
|
|
8141
|
-
var responseData = !
|
|
8378
|
+
var responseData = !responseType || responseType === 'text' || responseType === 'json' ?
|
|
8379
|
+
request.responseText : request.response;
|
|
8142
8380
|
var response = {
|
|
8143
8381
|
data: responseData,
|
|
8144
8382
|
status: request.status,
|
|
@@ -8152,7 +8390,30 @@ module.exports = function xhrAdapter(config) {
|
|
|
8152
8390
|
|
|
8153
8391
|
// Clean up request
|
|
8154
8392
|
request = null;
|
|
8155
|
-
}
|
|
8393
|
+
}
|
|
8394
|
+
|
|
8395
|
+
if ('onloadend' in request) {
|
|
8396
|
+
// Use onloadend if available
|
|
8397
|
+
request.onloadend = onloadend;
|
|
8398
|
+
} else {
|
|
8399
|
+
// Listen for ready state to emulate onloadend
|
|
8400
|
+
request.onreadystatechange = function handleLoad() {
|
|
8401
|
+
if (!request || request.readyState !== 4) {
|
|
8402
|
+
return;
|
|
8403
|
+
}
|
|
8404
|
+
|
|
8405
|
+
// The request errored out and we didn't get a response, this will be
|
|
8406
|
+
// handled by onerror instead
|
|
8407
|
+
// With one exception: request that using file: protocol, most browsers
|
|
8408
|
+
// will return status as 0 even though it's a successful request
|
|
8409
|
+
if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
|
|
8410
|
+
return;
|
|
8411
|
+
}
|
|
8412
|
+
// readystate handler is calling before onerror or ontimeout handlers,
|
|
8413
|
+
// so we should call onloadend on the next 'tick'
|
|
8414
|
+
setTimeout(onloadend);
|
|
8415
|
+
};
|
|
8416
|
+
}
|
|
8156
8417
|
|
|
8157
8418
|
// Handle browser request cancellation (as opposed to a manual cancellation)
|
|
8158
8419
|
request.onabort = function handleAbort() {
|
|
@@ -8182,7 +8443,10 @@ module.exports = function xhrAdapter(config) {
|
|
|
8182
8443
|
if (config.timeoutErrorMessage) {
|
|
8183
8444
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
8184
8445
|
}
|
|
8185
|
-
reject(createError(
|
|
8446
|
+
reject(createError(
|
|
8447
|
+
timeoutErrorMessage,
|
|
8448
|
+
config,
|
|
8449
|
+
config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
|
|
8186
8450
|
request));
|
|
8187
8451
|
|
|
8188
8452
|
// Clean up request
|
|
@@ -8222,16 +8486,8 @@ module.exports = function xhrAdapter(config) {
|
|
|
8222
8486
|
}
|
|
8223
8487
|
|
|
8224
8488
|
// Add responseType to request if needed
|
|
8225
|
-
if (
|
|
8226
|
-
|
|
8227
|
-
request.responseType = config.responseType;
|
|
8228
|
-
} catch (e) {
|
|
8229
|
-
// Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.
|
|
8230
|
-
// But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.
|
|
8231
|
-
if (config.responseType !== 'json') {
|
|
8232
|
-
throw e;
|
|
8233
|
-
}
|
|
8234
|
-
}
|
|
8489
|
+
if (responseType && responseType !== 'json') {
|
|
8490
|
+
request.responseType = config.responseType;
|
|
8235
8491
|
}
|
|
8236
8492
|
|
|
8237
8493
|
// Handle progress if needed
|
|
@@ -8269,7 +8525,7 @@ module.exports = function xhrAdapter(config) {
|
|
|
8269
8525
|
|
|
8270
8526
|
|
|
8271
8527
|
/***/ }),
|
|
8272
|
-
/*
|
|
8528
|
+
/* 27 */
|
|
8273
8529
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8274
8530
|
|
|
8275
8531
|
"use strict";
|
|
@@ -8329,7 +8585,7 @@ module.exports = (
|
|
|
8329
8585
|
|
|
8330
8586
|
|
|
8331
8587
|
/***/ }),
|
|
8332
|
-
/*
|
|
8588
|
+
/* 28 */
|
|
8333
8589
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8334
8590
|
|
|
8335
8591
|
"use strict";
|
|
@@ -8350,7 +8606,7 @@ module.exports = function isAbsoluteURL(url) {
|
|
|
8350
8606
|
|
|
8351
8607
|
|
|
8352
8608
|
/***/ }),
|
|
8353
|
-
/*
|
|
8609
|
+
/* 29 */
|
|
8354
8610
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8355
8611
|
|
|
8356
8612
|
"use strict";
|
|
@@ -8371,7 +8627,7 @@ module.exports = function combineURLs(baseURL, relativeURL) {
|
|
|
8371
8627
|
|
|
8372
8628
|
|
|
8373
8629
|
/***/ }),
|
|
8374
|
-
/*
|
|
8630
|
+
/* 30 */
|
|
8375
8631
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8376
8632
|
|
|
8377
8633
|
"use strict";
|
|
@@ -8431,7 +8687,7 @@ module.exports = function parseHeaders(headers) {
|
|
|
8431
8687
|
|
|
8432
8688
|
|
|
8433
8689
|
/***/ }),
|
|
8434
|
-
/*
|
|
8690
|
+
/* 31 */
|
|
8435
8691
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8436
8692
|
|
|
8437
8693
|
"use strict";
|
|
@@ -8506,7 +8762,7 @@ module.exports = (
|
|
|
8506
8762
|
|
|
8507
8763
|
|
|
8508
8764
|
/***/ }),
|
|
8509
|
-
/*
|
|
8765
|
+
/* 32 */
|
|
8510
8766
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8511
8767
|
|
|
8512
8768
|
"use strict";
|
|
@@ -8514,17 +8770,17 @@ module.exports = (
|
|
|
8514
8770
|
|
|
8515
8771
|
var utils = __webpack_require__(0);
|
|
8516
8772
|
var settle = __webpack_require__(7);
|
|
8517
|
-
var buildFullPath = __webpack_require__(
|
|
8773
|
+
var buildFullPath = __webpack_require__(8);
|
|
8518
8774
|
var buildURL = __webpack_require__(1);
|
|
8519
|
-
var http = __webpack_require__(
|
|
8520
|
-
var https = __webpack_require__(
|
|
8521
|
-
var httpFollow = __webpack_require__(
|
|
8522
|
-
var httpsFollow = __webpack_require__(
|
|
8523
|
-
var url = __webpack_require__(
|
|
8524
|
-
var zlib = __webpack_require__(
|
|
8525
|
-
var pkg = __webpack_require__(
|
|
8526
|
-
var createError = __webpack_require__(
|
|
8527
|
-
var enhanceError = __webpack_require__(
|
|
8775
|
+
var http = __webpack_require__(9);
|
|
8776
|
+
var https = __webpack_require__(10);
|
|
8777
|
+
var httpFollow = __webpack_require__(11).http;
|
|
8778
|
+
var httpsFollow = __webpack_require__(11).https;
|
|
8779
|
+
var url = __webpack_require__(12);
|
|
8780
|
+
var zlib = __webpack_require__(44);
|
|
8781
|
+
var pkg = __webpack_require__(15);
|
|
8782
|
+
var createError = __webpack_require__(4);
|
|
8783
|
+
var enhanceError = __webpack_require__(3);
|
|
8528
8784
|
|
|
8529
8785
|
var isHttps = /https:?/;
|
|
8530
8786
|
|
|
@@ -8566,9 +8822,16 @@ module.exports = function httpAdapter(config) {
|
|
|
8566
8822
|
var headers = config.headers;
|
|
8567
8823
|
|
|
8568
8824
|
// Set User-Agent (required by some servers)
|
|
8569
|
-
// Only set header if it hasn't been set in config
|
|
8570
8825
|
// See https://github.com/axios/axios/issues/69
|
|
8571
|
-
if (
|
|
8826
|
+
if ('User-Agent' in headers || 'user-agent' in headers) {
|
|
8827
|
+
// User-Agent is specified; handle case where no UA header is desired
|
|
8828
|
+
if (!headers['User-Agent'] && !headers['user-agent']) {
|
|
8829
|
+
delete headers['User-Agent'];
|
|
8830
|
+
delete headers['user-agent'];
|
|
8831
|
+
}
|
|
8832
|
+
// Otherwise, use specified value
|
|
8833
|
+
} else {
|
|
8834
|
+
// Only set header if it hasn't been set in config
|
|
8572
8835
|
headers['User-Agent'] = 'axios/' + pkg.version;
|
|
8573
8836
|
}
|
|
8574
8837
|
|
|
@@ -8743,11 +9006,13 @@ module.exports = function httpAdapter(config) {
|
|
|
8743
9006
|
settle(resolve, reject, response);
|
|
8744
9007
|
} else {
|
|
8745
9008
|
var responseBuffer = [];
|
|
9009
|
+
var totalResponseBytes = 0;
|
|
8746
9010
|
stream.on('data', function handleStreamData(chunk) {
|
|
8747
9011
|
responseBuffer.push(chunk);
|
|
9012
|
+
totalResponseBytes += chunk.length;
|
|
8748
9013
|
|
|
8749
9014
|
// make sure the content length is not over the maxContentLength if specified
|
|
8750
|
-
if (config.maxContentLength > -1 &&
|
|
9015
|
+
if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
|
|
8751
9016
|
stream.destroy();
|
|
8752
9017
|
reject(createError('maxContentLength size of ' + config.maxContentLength + ' exceeded',
|
|
8753
9018
|
config, null, lastRequest));
|
|
@@ -8782,14 +9047,33 @@ module.exports = function httpAdapter(config) {
|
|
|
8782
9047
|
|
|
8783
9048
|
// Handle request timeout
|
|
8784
9049
|
if (config.timeout) {
|
|
9050
|
+
// This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types.
|
|
9051
|
+
var timeout = parseInt(config.timeout, 10);
|
|
9052
|
+
|
|
9053
|
+
if (isNaN(timeout)) {
|
|
9054
|
+
reject(createError(
|
|
9055
|
+
'error trying to parse `config.timeout` to int',
|
|
9056
|
+
config,
|
|
9057
|
+
'ERR_PARSE_TIMEOUT',
|
|
9058
|
+
req
|
|
9059
|
+
));
|
|
9060
|
+
|
|
9061
|
+
return;
|
|
9062
|
+
}
|
|
9063
|
+
|
|
8785
9064
|
// Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.
|
|
8786
9065
|
// And timer callback will be fired, and abort() will be invoked before connection, then get "socket hang up" and code ECONNRESET.
|
|
8787
9066
|
// At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.
|
|
8788
9067
|
// And then these socket which be hang up will devoring CPU little by little.
|
|
8789
9068
|
// ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.
|
|
8790
|
-
req.setTimeout(
|
|
9069
|
+
req.setTimeout(timeout, function handleRequestTimeout() {
|
|
8791
9070
|
req.abort();
|
|
8792
|
-
reject(createError(
|
|
9071
|
+
reject(createError(
|
|
9072
|
+
'timeout of ' + timeout + 'ms exceeded',
|
|
9073
|
+
config,
|
|
9074
|
+
config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
|
|
9075
|
+
req
|
|
9076
|
+
));
|
|
8793
9077
|
});
|
|
8794
9078
|
}
|
|
8795
9079
|
|
|
@@ -8816,19 +9100,19 @@ module.exports = function httpAdapter(config) {
|
|
|
8816
9100
|
|
|
8817
9101
|
|
|
8818
9102
|
/***/ }),
|
|
8819
|
-
/*
|
|
9103
|
+
/* 33 */
|
|
8820
9104
|
/***/ (function(module, exports) {
|
|
8821
9105
|
|
|
8822
9106
|
module.exports = require("stream");
|
|
8823
9107
|
|
|
8824
9108
|
/***/ }),
|
|
8825
|
-
/*
|
|
9109
|
+
/* 34 */
|
|
8826
9110
|
/***/ (function(module, exports) {
|
|
8827
9111
|
|
|
8828
9112
|
module.exports = require("assert");
|
|
8829
9113
|
|
|
8830
9114
|
/***/ }),
|
|
8831
|
-
/*
|
|
9115
|
+
/* 35 */
|
|
8832
9116
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8833
9117
|
|
|
8834
9118
|
var debug;
|
|
@@ -8837,9 +9121,10 @@ module.exports = function () {
|
|
|
8837
9121
|
if (!debug) {
|
|
8838
9122
|
try {
|
|
8839
9123
|
/* eslint global-require: off */
|
|
8840
|
-
debug = __webpack_require__(
|
|
9124
|
+
debug = __webpack_require__(36)("follow-redirects");
|
|
8841
9125
|
}
|
|
8842
|
-
catch (error) {
|
|
9126
|
+
catch (error) { /* */ }
|
|
9127
|
+
if (typeof debug !== "function") {
|
|
8843
9128
|
debug = function () { /* */ };
|
|
8844
9129
|
}
|
|
8845
9130
|
}
|
|
@@ -8848,7 +9133,7 @@ module.exports = function () {
|
|
|
8848
9133
|
|
|
8849
9134
|
|
|
8850
9135
|
/***/ }),
|
|
8851
|
-
/*
|
|
9136
|
+
/* 36 */
|
|
8852
9137
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8853
9138
|
|
|
8854
9139
|
/**
|
|
@@ -8857,14 +9142,14 @@ module.exports = function () {
|
|
|
8857
9142
|
*/
|
|
8858
9143
|
|
|
8859
9144
|
if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
|
|
8860
|
-
module.exports = __webpack_require__(
|
|
9145
|
+
module.exports = __webpack_require__(37);
|
|
8861
9146
|
} else {
|
|
8862
|
-
module.exports = __webpack_require__(
|
|
9147
|
+
module.exports = __webpack_require__(39);
|
|
8863
9148
|
}
|
|
8864
9149
|
|
|
8865
9150
|
|
|
8866
9151
|
/***/ }),
|
|
8867
|
-
/*
|
|
9152
|
+
/* 37 */
|
|
8868
9153
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8869
9154
|
|
|
8870
9155
|
/* eslint-env browser */
|
|
@@ -9121,7 +9406,7 @@ function localstorage() {
|
|
|
9121
9406
|
}
|
|
9122
9407
|
}
|
|
9123
9408
|
|
|
9124
|
-
module.exports = __webpack_require__(
|
|
9409
|
+
module.exports = __webpack_require__(13)(exports);
|
|
9125
9410
|
|
|
9126
9411
|
const {formatters} = module.exports;
|
|
9127
9412
|
|
|
@@ -9139,7 +9424,7 @@ formatters.j = function (v) {
|
|
|
9139
9424
|
|
|
9140
9425
|
|
|
9141
9426
|
/***/ }),
|
|
9142
|
-
/*
|
|
9427
|
+
/* 38 */
|
|
9143
9428
|
/***/ (function(module, exports) {
|
|
9144
9429
|
|
|
9145
9430
|
/**
|
|
@@ -9307,15 +9592,15 @@ function plural(ms, msAbs, n, name) {
|
|
|
9307
9592
|
|
|
9308
9593
|
|
|
9309
9594
|
/***/ }),
|
|
9310
|
-
/*
|
|
9595
|
+
/* 39 */
|
|
9311
9596
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9312
9597
|
|
|
9313
9598
|
/**
|
|
9314
9599
|
* Module dependencies.
|
|
9315
9600
|
*/
|
|
9316
9601
|
|
|
9317
|
-
const tty = __webpack_require__(
|
|
9318
|
-
const util = __webpack_require__(
|
|
9602
|
+
const tty = __webpack_require__(40);
|
|
9603
|
+
const util = __webpack_require__(14);
|
|
9319
9604
|
|
|
9320
9605
|
/**
|
|
9321
9606
|
* This is the Node.js implementation of `debug()`.
|
|
@@ -9341,7 +9626,7 @@ exports.colors = [6, 2, 3, 4, 5, 1];
|
|
|
9341
9626
|
try {
|
|
9342
9627
|
// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
|
|
9343
9628
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
9344
|
-
const supportsColor = __webpack_require__(
|
|
9629
|
+
const supportsColor = __webpack_require__(41);
|
|
9345
9630
|
|
|
9346
9631
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
9347
9632
|
exports.colors = [
|
|
@@ -9549,7 +9834,7 @@ function init(debug) {
|
|
|
9549
9834
|
}
|
|
9550
9835
|
}
|
|
9551
9836
|
|
|
9552
|
-
module.exports = __webpack_require__(
|
|
9837
|
+
module.exports = __webpack_require__(13)(exports);
|
|
9553
9838
|
|
|
9554
9839
|
const {formatters} = module.exports;
|
|
9555
9840
|
|
|
@@ -9576,35 +9861,42 @@ formatters.O = function (v) {
|
|
|
9576
9861
|
|
|
9577
9862
|
|
|
9578
9863
|
/***/ }),
|
|
9579
|
-
/*
|
|
9864
|
+
/* 40 */
|
|
9580
9865
|
/***/ (function(module, exports) {
|
|
9581
9866
|
|
|
9582
9867
|
module.exports = require("tty");
|
|
9583
9868
|
|
|
9584
9869
|
/***/ }),
|
|
9585
|
-
/*
|
|
9870
|
+
/* 41 */
|
|
9586
9871
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9587
9872
|
|
|
9588
9873
|
"use strict";
|
|
9589
9874
|
|
|
9590
|
-
const os = __webpack_require__(
|
|
9591
|
-
const hasFlag = __webpack_require__(
|
|
9875
|
+
const os = __webpack_require__(42);
|
|
9876
|
+
const hasFlag = __webpack_require__(43);
|
|
9592
9877
|
|
|
9593
|
-
const env = process
|
|
9878
|
+
const {env} = process;
|
|
9594
9879
|
|
|
9595
9880
|
let forceColor;
|
|
9596
9881
|
if (hasFlag('no-color') ||
|
|
9597
9882
|
hasFlag('no-colors') ||
|
|
9598
|
-
hasFlag('color=false')
|
|
9599
|
-
|
|
9883
|
+
hasFlag('color=false') ||
|
|
9884
|
+
hasFlag('color=never')) {
|
|
9885
|
+
forceColor = 0;
|
|
9600
9886
|
} else if (hasFlag('color') ||
|
|
9601
9887
|
hasFlag('colors') ||
|
|
9602
9888
|
hasFlag('color=true') ||
|
|
9603
9889
|
hasFlag('color=always')) {
|
|
9604
|
-
forceColor =
|
|
9890
|
+
forceColor = 1;
|
|
9605
9891
|
}
|
|
9606
9892
|
if ('FORCE_COLOR' in env) {
|
|
9607
|
-
|
|
9893
|
+
if (env.FORCE_COLOR === true || env.FORCE_COLOR === 'true') {
|
|
9894
|
+
forceColor = 1;
|
|
9895
|
+
} else if (env.FORCE_COLOR === false || env.FORCE_COLOR === 'false') {
|
|
9896
|
+
forceColor = 0;
|
|
9897
|
+
} else {
|
|
9898
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
9899
|
+
}
|
|
9608
9900
|
}
|
|
9609
9901
|
|
|
9610
9902
|
function translateLevel(level) {
|
|
@@ -9621,7 +9913,7 @@ function translateLevel(level) {
|
|
|
9621
9913
|
}
|
|
9622
9914
|
|
|
9623
9915
|
function supportsColor(stream) {
|
|
9624
|
-
if (forceColor ===
|
|
9916
|
+
if (forceColor === 0) {
|
|
9625
9917
|
return 0;
|
|
9626
9918
|
}
|
|
9627
9919
|
|
|
@@ -9635,11 +9927,15 @@ function supportsColor(stream) {
|
|
|
9635
9927
|
return 2;
|
|
9636
9928
|
}
|
|
9637
9929
|
|
|
9638
|
-
if (stream && !stream.isTTY && forceColor
|
|
9930
|
+
if (stream && !stream.isTTY && forceColor === undefined) {
|
|
9639
9931
|
return 0;
|
|
9640
9932
|
}
|
|
9641
9933
|
|
|
9642
|
-
const min = forceColor
|
|
9934
|
+
const min = forceColor || 0;
|
|
9935
|
+
|
|
9936
|
+
if (env.TERM === 'dumb') {
|
|
9937
|
+
return min;
|
|
9938
|
+
}
|
|
9643
9939
|
|
|
9644
9940
|
if (process.platform === 'win32') {
|
|
9645
9941
|
// Node.js 7.5.0 is the first version of Node.js to include a patch to
|
|
@@ -9700,10 +9996,6 @@ function supportsColor(stream) {
|
|
|
9700
9996
|
return 1;
|
|
9701
9997
|
}
|
|
9702
9998
|
|
|
9703
|
-
if (env.TERM === 'dumb') {
|
|
9704
|
-
return min;
|
|
9705
|
-
}
|
|
9706
|
-
|
|
9707
9999
|
return min;
|
|
9708
10000
|
}
|
|
9709
10001
|
|
|
@@ -9720,13 +10012,13 @@ module.exports = {
|
|
|
9720
10012
|
|
|
9721
10013
|
|
|
9722
10014
|
/***/ }),
|
|
9723
|
-
/*
|
|
10015
|
+
/* 42 */
|
|
9724
10016
|
/***/ (function(module, exports) {
|
|
9725
10017
|
|
|
9726
10018
|
module.exports = require("os");
|
|
9727
10019
|
|
|
9728
10020
|
/***/ }),
|
|
9729
|
-
/*
|
|
10021
|
+
/* 43 */
|
|
9730
10022
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9731
10023
|
|
|
9732
10024
|
"use strict";
|
|
@@ -9741,25 +10033,131 @@ module.exports = (flag, argv) => {
|
|
|
9741
10033
|
|
|
9742
10034
|
|
|
9743
10035
|
/***/ }),
|
|
9744
|
-
/*
|
|
10036
|
+
/* 44 */
|
|
9745
10037
|
/***/ (function(module, exports) {
|
|
9746
10038
|
|
|
9747
10039
|
module.exports = require("zlib");
|
|
9748
10040
|
|
|
9749
10041
|
/***/ }),
|
|
9750
|
-
/*
|
|
9751
|
-
/***/ (function(module) {
|
|
10042
|
+
/* 45 */
|
|
10043
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
10044
|
+
|
|
10045
|
+
"use strict";
|
|
10046
|
+
|
|
10047
|
+
|
|
10048
|
+
var pkg = __webpack_require__(15);
|
|
10049
|
+
|
|
10050
|
+
var validators = {};
|
|
10051
|
+
|
|
10052
|
+
// eslint-disable-next-line func-names
|
|
10053
|
+
['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {
|
|
10054
|
+
validators[type] = function validator(thing) {
|
|
10055
|
+
return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
|
|
10056
|
+
};
|
|
10057
|
+
});
|
|
10058
|
+
|
|
10059
|
+
var deprecatedWarnings = {};
|
|
10060
|
+
var currentVerArr = pkg.version.split('.');
|
|
10061
|
+
|
|
10062
|
+
/**
|
|
10063
|
+
* Compare package versions
|
|
10064
|
+
* @param {string} version
|
|
10065
|
+
* @param {string?} thanVersion
|
|
10066
|
+
* @returns {boolean}
|
|
10067
|
+
*/
|
|
10068
|
+
function isOlderVersion(version, thanVersion) {
|
|
10069
|
+
var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr;
|
|
10070
|
+
var destVer = version.split('.');
|
|
10071
|
+
for (var i = 0; i < 3; i++) {
|
|
10072
|
+
if (pkgVersionArr[i] > destVer[i]) {
|
|
10073
|
+
return true;
|
|
10074
|
+
} else if (pkgVersionArr[i] < destVer[i]) {
|
|
10075
|
+
return false;
|
|
10076
|
+
}
|
|
10077
|
+
}
|
|
10078
|
+
return false;
|
|
10079
|
+
}
|
|
10080
|
+
|
|
10081
|
+
/**
|
|
10082
|
+
* Transitional option validator
|
|
10083
|
+
* @param {function|boolean?} validator
|
|
10084
|
+
* @param {string?} version
|
|
10085
|
+
* @param {string} message
|
|
10086
|
+
* @returns {function}
|
|
10087
|
+
*/
|
|
10088
|
+
validators.transitional = function transitional(validator, version, message) {
|
|
10089
|
+
var isDeprecated = version && isOlderVersion(version);
|
|
10090
|
+
|
|
10091
|
+
function formatMessage(opt, desc) {
|
|
10092
|
+
return '[Axios v' + pkg.version + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
|
|
10093
|
+
}
|
|
10094
|
+
|
|
10095
|
+
// eslint-disable-next-line func-names
|
|
10096
|
+
return function(value, opt, opts) {
|
|
10097
|
+
if (validator === false) {
|
|
10098
|
+
throw new Error(formatMessage(opt, ' has been removed in ' + version));
|
|
10099
|
+
}
|
|
10100
|
+
|
|
10101
|
+
if (isDeprecated && !deprecatedWarnings[opt]) {
|
|
10102
|
+
deprecatedWarnings[opt] = true;
|
|
10103
|
+
// eslint-disable-next-line no-console
|
|
10104
|
+
console.warn(
|
|
10105
|
+
formatMessage(
|
|
10106
|
+
opt,
|
|
10107
|
+
' has been deprecated since v' + version + ' and will be removed in the near future'
|
|
10108
|
+
)
|
|
10109
|
+
);
|
|
10110
|
+
}
|
|
10111
|
+
|
|
10112
|
+
return validator ? validator(value, opt, opts) : true;
|
|
10113
|
+
};
|
|
10114
|
+
};
|
|
10115
|
+
|
|
10116
|
+
/**
|
|
10117
|
+
* Assert object's properties type
|
|
10118
|
+
* @param {object} options
|
|
10119
|
+
* @param {object} schema
|
|
10120
|
+
* @param {boolean?} allowUnknown
|
|
10121
|
+
*/
|
|
10122
|
+
|
|
10123
|
+
function assertOptions(options, schema, allowUnknown) {
|
|
10124
|
+
if (typeof options !== 'object') {
|
|
10125
|
+
throw new TypeError('options must be an object');
|
|
10126
|
+
}
|
|
10127
|
+
var keys = Object.keys(options);
|
|
10128
|
+
var i = keys.length;
|
|
10129
|
+
while (i-- > 0) {
|
|
10130
|
+
var opt = keys[i];
|
|
10131
|
+
var validator = schema[opt];
|
|
10132
|
+
if (validator) {
|
|
10133
|
+
var value = options[opt];
|
|
10134
|
+
var result = value === undefined || validator(value, opt, options);
|
|
10135
|
+
if (result !== true) {
|
|
10136
|
+
throw new TypeError('option ' + opt + ' must be ' + result);
|
|
10137
|
+
}
|
|
10138
|
+
continue;
|
|
10139
|
+
}
|
|
10140
|
+
if (allowUnknown !== true) {
|
|
10141
|
+
throw Error('Unknown option ' + opt);
|
|
10142
|
+
}
|
|
10143
|
+
}
|
|
10144
|
+
}
|
|
10145
|
+
|
|
10146
|
+
module.exports = {
|
|
10147
|
+
isOlderVersion: isOlderVersion,
|
|
10148
|
+
assertOptions: assertOptions,
|
|
10149
|
+
validators: validators
|
|
10150
|
+
};
|
|
9752
10151
|
|
|
9753
|
-
module.exports = JSON.parse("{\"name\":\"axios\",\"version\":\"0.21.1\",\"description\":\"Promise based HTTP client for the browser and node.js\",\"main\":\"index.js\",\"scripts\":{\"test\":\"grunt test && bundlesize\",\"start\":\"node ./sandbox/server.js\",\"build\":\"NODE_ENV=production grunt build\",\"preversion\":\"npm test\",\"version\":\"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\",\"postversion\":\"git push && git push --tags\",\"examples\":\"node ./examples/server.js\",\"coveralls\":\"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\"fix\":\"eslint --fix lib/**/*.js\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/axios/axios.git\"},\"keywords\":[\"xhr\",\"http\",\"ajax\",\"promise\",\"node\"],\"author\":\"Matt Zabriskie\",\"license\":\"MIT\",\"bugs\":{\"url\":\"https://github.com/axios/axios/issues\"},\"homepage\":\"https://github.com/axios/axios\",\"devDependencies\":{\"bundlesize\":\"^0.17.0\",\"coveralls\":\"^3.0.0\",\"es6-promise\":\"^4.2.4\",\"grunt\":\"^1.0.2\",\"grunt-banner\":\"^0.6.0\",\"grunt-cli\":\"^1.2.0\",\"grunt-contrib-clean\":\"^1.1.0\",\"grunt-contrib-watch\":\"^1.0.0\",\"grunt-eslint\":\"^20.1.0\",\"grunt-karma\":\"^2.0.0\",\"grunt-mocha-test\":\"^0.13.3\",\"grunt-ts\":\"^6.0.0-beta.19\",\"grunt-webpack\":\"^1.0.18\",\"istanbul-instrumenter-loader\":\"^1.0.0\",\"jasmine-core\":\"^2.4.1\",\"karma\":\"^1.3.0\",\"karma-chrome-launcher\":\"^2.2.0\",\"karma-coverage\":\"^1.1.1\",\"karma-firefox-launcher\":\"^1.1.0\",\"karma-jasmine\":\"^1.1.1\",\"karma-jasmine-ajax\":\"^0.1.13\",\"karma-opera-launcher\":\"^1.0.0\",\"karma-safari-launcher\":\"^1.0.0\",\"karma-sauce-launcher\":\"^1.2.0\",\"karma-sinon\":\"^1.0.5\",\"karma-sourcemap-loader\":\"^0.3.7\",\"karma-webpack\":\"^1.7.0\",\"load-grunt-tasks\":\"^3.5.2\",\"minimist\":\"^1.2.0\",\"mocha\":\"^5.2.0\",\"sinon\":\"^4.5.0\",\"typescript\":\"^2.8.1\",\"url-search-params\":\"^0.10.0\",\"webpack\":\"^1.13.1\",\"webpack-dev-server\":\"^1.14.1\"},\"browser\":{\"./lib/adapters/http.js\":\"./lib/adapters/xhr.js\"},\"jsdelivr\":\"dist/axios.min.js\",\"unpkg\":\"dist/axios.min.js\",\"typings\":\"./index.d.ts\",\"dependencies\":{\"follow-redirects\":\"^1.10.0\"},\"bundlesize\":[{\"path\":\"./dist/axios.min.js\",\"threshold\":\"5kB\"}]}");
|
|
9754
10152
|
|
|
9755
10153
|
/***/ }),
|
|
9756
|
-
/*
|
|
10154
|
+
/* 46 */
|
|
9757
10155
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9758
10156
|
|
|
9759
10157
|
"use strict";
|
|
9760
10158
|
|
|
9761
10159
|
|
|
9762
|
-
var Cancel = __webpack_require__(
|
|
10160
|
+
var Cancel = __webpack_require__(18);
|
|
9763
10161
|
|
|
9764
10162
|
/**
|
|
9765
10163
|
* A `CancelToken` is an object that can be used to request cancellation of an operation.
|
|
@@ -9817,7 +10215,7 @@ module.exports = CancelToken;
|
|
|
9817
10215
|
|
|
9818
10216
|
|
|
9819
10217
|
/***/ }),
|
|
9820
|
-
/*
|
|
10218
|
+
/* 47 */
|
|
9821
10219
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9822
10220
|
|
|
9823
10221
|
"use strict";
|
|
@@ -9851,7 +10249,7 @@ module.exports = function spread(callback) {
|
|
|
9851
10249
|
|
|
9852
10250
|
|
|
9853
10251
|
/***/ }),
|
|
9854
|
-
/*
|
|
10252
|
+
/* 48 */
|
|
9855
10253
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9856
10254
|
|
|
9857
10255
|
"use strict";
|
|
@@ -9869,7 +10267,7 @@ module.exports = function isAxiosError(payload) {
|
|
|
9869
10267
|
|
|
9870
10268
|
|
|
9871
10269
|
/***/ }),
|
|
9872
|
-
/*
|
|
10270
|
+
/* 49 */
|
|
9873
10271
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9874
10272
|
|
|
9875
10273
|
"use strict";
|
|
@@ -9877,14 +10275,14 @@ module.exports = function isAxiosError(payload) {
|
|
|
9877
10275
|
__webpack_require__.r(__webpack_exports__);
|
|
9878
10276
|
|
|
9879
10277
|
// EXTERNAL MODULE: ./node_modules/axios/index.js
|
|
9880
|
-
var axios = __webpack_require__(
|
|
10278
|
+
var axios = __webpack_require__(5);
|
|
9881
10279
|
var axios_default = /*#__PURE__*/__webpack_require__.n(axios);
|
|
9882
10280
|
|
|
9883
10281
|
// EXTERNAL MODULE: ./node_modules/axios-cache-adapter/dist/cache.node.js
|
|
9884
|
-
var cache_node = __webpack_require__(
|
|
10282
|
+
var cache_node = __webpack_require__(19);
|
|
9885
10283
|
|
|
9886
10284
|
// CONCATENATED MODULE: ./src/utils.js
|
|
9887
|
-
function ownKeys(
|
|
10285
|
+
function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(obj, key, value) {key = _toPropertyKey(key);if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toPropertyKey(arg) {var key = _toPrimitive(arg, "string");return _typeof(key) === "symbol" ? key : String(key);}function _toPrimitive(input, hint) {if (_typeof(input) !== "object" || input === null) return input;var prim = input[Symbol.toPrimitive];if (prim !== undefined) {var res = prim.call(input, hint || "default");if (_typeof(res) !== "object") return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return (hint === "string" ? String : Number)(input);}function logError(consoleMessage) {
|
|
9888
10286
|
console.error('\x1b[41m%s\x1b[0m', consoleMessage);
|
|
9889
10287
|
}
|
|
9890
10288
|
|
|
@@ -9942,8 +10340,8 @@ function buildPathUrl(contentType, referenceName, skip, take, sort, direction, f
|
|
|
9942
10340
|
|
|
9943
10341
|
function buildAuthHeader(config) {
|
|
9944
10342
|
var defaultAuthHeaders = {
|
|
9945
|
-
'APIKey': config.apiKey
|
|
9946
|
-
|
|
10343
|
+
'APIKey': config.apiKey
|
|
10344
|
+
};
|
|
9947
10345
|
|
|
9948
10346
|
if (config.requiresGuidInHeaders) {
|
|
9949
10347
|
defaultAuthHeaders.Guid = config.guid;
|
|
@@ -10006,8 +10404,8 @@ function getSitemapFlat(requestParams) {
|
|
|
10006
10404
|
method: 'get',
|
|
10007
10405
|
baseURL: buildRequestUrlPath(this.config, requestParams.locale ? requestParams.locale : requestParams.languageCode),
|
|
10008
10406
|
headers: buildAuthHeader(this.config),
|
|
10009
|
-
params: {}
|
|
10010
|
-
|
|
10407
|
+
params: {}
|
|
10408
|
+
};
|
|
10011
10409
|
|
|
10012
10410
|
return this.makeRequest(req);
|
|
10013
10411
|
}
|
|
@@ -10065,8 +10463,8 @@ function getSitemapNested(requestParams) {
|
|
|
10065
10463
|
method: 'get',
|
|
10066
10464
|
baseURL: buildRequestUrlPath(this.config, requestParams.locale ? requestParams.locale : requestParams.languageCode),
|
|
10067
10465
|
headers: buildAuthHeader(this.config),
|
|
10068
|
-
params: {}
|
|
10069
|
-
|
|
10466
|
+
params: {}
|
|
10467
|
+
};
|
|
10070
10468
|
|
|
10071
10469
|
return this.makeRequest(req);
|
|
10072
10470
|
}
|
|
@@ -10081,7 +10479,7 @@ function getSitemapNested_validateRequestParams(requestParams) {
|
|
|
10081
10479
|
|
|
10082
10480
|
/* harmony default export */ var methods_getSitemapNested = (getSitemapNested);
|
|
10083
10481
|
// CONCATENATED MODULE: ./src/methods/getContentItem.js
|
|
10084
|
-
function getContentItem_ownKeys(
|
|
10482
|
+
function getContentItem_typeof(o) {"@babel/helpers - typeof";return getContentItem_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, getContentItem_typeof(o);}function getContentItem_ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function getContentItem_objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? getContentItem_ownKeys(Object(t), !0).forEach(function (r) {getContentItem_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : getContentItem_ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function getContentItem_defineProperty(obj, key, value) {key = getContentItem_toPropertyKey(key);if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function getContentItem_toPropertyKey(arg) {var key = getContentItem_toPrimitive(arg, "string");return getContentItem_typeof(key) === "symbol" ? key : String(key);}function getContentItem_toPrimitive(input, hint) {if (getContentItem_typeof(input) !== "object" || input === null) return input;var prim = input[Symbol.toPrimitive];if (prim !== undefined) {var res = prim.call(input, hint || "default");if (getContentItem_typeof(res) !== "object") return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return (hint === "string" ? String : Number)(input);}
|
|
10085
10483
|
|
|
10086
10484
|
/**
|
|
10087
10485
|
* Gets the details of a content item by their Content ID.
|
|
@@ -10126,8 +10524,8 @@ function getContentItem(requestParams) {
|
|
|
10126
10524
|
method: 'get',
|
|
10127
10525
|
baseURL: buildRequestUrlPath(this.config, requestParams.locale ? requestParams.locale : requestParams.languageCode),
|
|
10128
10526
|
headers: buildAuthHeader(this.config),
|
|
10129
|
-
params: {}
|
|
10130
|
-
|
|
10527
|
+
params: {}
|
|
10528
|
+
};
|
|
10131
10529
|
|
|
10132
10530
|
return this.makeRequest(req);
|
|
10133
10531
|
}
|
|
@@ -10149,12 +10547,12 @@ function getContentItem_validateRequestParams(requestParams) {
|
|
|
10149
10547
|
|
|
10150
10548
|
var defaultParams = {
|
|
10151
10549
|
contentLinkDepth: 1,
|
|
10152
|
-
expandAllContentLinks: false
|
|
10153
|
-
|
|
10550
|
+
expandAllContentLinks: false
|
|
10551
|
+
};
|
|
10154
10552
|
|
|
10155
10553
|
/* harmony default export */ var methods_getContentItem = (getContentItem);
|
|
10156
10554
|
// CONCATENATED MODULE: ./src/methods/getContentList.js
|
|
10157
|
-
function getContentList_ownKeys(
|
|
10555
|
+
function getContentList_typeof(o) {"@babel/helpers - typeof";return getContentList_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, getContentList_typeof(o);}function getContentList_ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function getContentList_objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? getContentList_ownKeys(Object(t), !0).forEach(function (r) {getContentList_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : getContentList_ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function getContentList_defineProperty(obj, key, value) {key = getContentList_toPropertyKey(key);if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function getContentList_toPropertyKey(arg) {var key = getContentList_toPrimitive(arg, "string");return getContentList_typeof(key) === "symbol" ? key : String(key);}function getContentList_toPrimitive(input, hint) {if (getContentList_typeof(input) !== "object" || input === null) return input;var prim = input[Symbol.toPrimitive];if (prim !== undefined) {var res = prim.call(input, hint || "default");if (getContentList_typeof(res) !== "object") return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return (hint === "string" ? String : Number)(input);}
|
|
10158
10556
|
|
|
10159
10557
|
/**
|
|
10160
10558
|
* Retrieves a list of content items by reference name.
|
|
@@ -10228,8 +10626,8 @@ function getContentList(requestParams) {
|
|
|
10228
10626
|
method: 'get',
|
|
10229
10627
|
baseURL: buildRequestUrlPath(this.config, requestParams.locale ? requestParams.locale : requestParams.languageCode),
|
|
10230
10628
|
headers: buildAuthHeader(this.config),
|
|
10231
|
-
params: {}
|
|
10232
|
-
|
|
10629
|
+
params: {}
|
|
10630
|
+
};
|
|
10233
10631
|
|
|
10234
10632
|
return this.makeRequest(req);
|
|
10235
10633
|
}
|
|
@@ -10290,12 +10688,12 @@ function getContentList_validateRequestParams(requestParams) {
|
|
|
10290
10688
|
|
|
10291
10689
|
var getContentList_defaultParams = {
|
|
10292
10690
|
contentLinkDepth: 1,
|
|
10293
|
-
expandAllContentLinks: false
|
|
10294
|
-
|
|
10691
|
+
expandAllContentLinks: false
|
|
10692
|
+
};
|
|
10295
10693
|
|
|
10296
10694
|
/* harmony default export */ var methods_getContentList = (getContentList);
|
|
10297
10695
|
// CONCATENATED MODULE: ./src/methods/getPage.js
|
|
10298
|
-
function getPage_ownKeys(
|
|
10696
|
+
function getPage_typeof(o) {"@babel/helpers - typeof";return getPage_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, getPage_typeof(o);}function getPage_ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function getPage_objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? getPage_ownKeys(Object(t), !0).forEach(function (r) {getPage_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : getPage_ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function getPage_defineProperty(obj, key, value) {key = getPage_toPropertyKey(key);if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function getPage_toPropertyKey(arg) {var key = getPage_toPrimitive(arg, "string");return getPage_typeof(key) === "symbol" ? key : String(key);}function getPage_toPrimitive(input, hint) {if (getPage_typeof(input) !== "object" || input === null) return input;var prim = input[Symbol.toPrimitive];if (prim !== undefined) {var res = prim.call(input, hint || "default");if (getPage_typeof(res) !== "object") return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return (hint === "string" ? String : Number)(input);}
|
|
10299
10697
|
|
|
10300
10698
|
/**
|
|
10301
10699
|
* Gets the details of a page by its Page ID.
|
|
@@ -10339,8 +10737,8 @@ function getPage(requestParams) {
|
|
|
10339
10737
|
method: 'get',
|
|
10340
10738
|
baseURL: buildRequestUrlPath(this.config, requestParams.locale ? requestParams.locale : requestParams.languageCode),
|
|
10341
10739
|
headers: buildAuthHeader(this.config),
|
|
10342
|
-
params: {}
|
|
10343
|
-
|
|
10740
|
+
params: {}
|
|
10741
|
+
};
|
|
10344
10742
|
|
|
10345
10743
|
return this.makeRequest(req);
|
|
10346
10744
|
}
|
|
@@ -10359,13 +10757,13 @@ function getPage_validateRequestParams(requestParams) {
|
|
|
10359
10757
|
|
|
10360
10758
|
var getPage_defaultParams = {
|
|
10361
10759
|
contentLinkDepth: 2,
|
|
10362
|
-
expandAllContentLinks: true
|
|
10363
|
-
|
|
10760
|
+
expandAllContentLinks: true
|
|
10761
|
+
};
|
|
10364
10762
|
|
|
10365
10763
|
|
|
10366
10764
|
/* harmony default export */ var methods_getPage = (getPage);
|
|
10367
10765
|
// CONCATENATED MODULE: ./src/methods/getGallery.js
|
|
10368
|
-
function getGallery_ownKeys(
|
|
10766
|
+
function getGallery_typeof(o) {"@babel/helpers - typeof";return getGallery_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, getGallery_typeof(o);}function getGallery_ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function getGallery_objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? getGallery_ownKeys(Object(t), !0).forEach(function (r) {getGallery_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : getGallery_ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function getGallery_defineProperty(obj, key, value) {key = getGallery_toPropertyKey(key);if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function getGallery_toPropertyKey(arg) {var key = getGallery_toPrimitive(arg, "string");return getGallery_typeof(key) === "symbol" ? key : String(key);}function getGallery_toPrimitive(input, hint) {if (getGallery_typeof(input) !== "object" || input === null) return input;var prim = input[Symbol.toPrimitive];if (prim !== undefined) {var res = prim.call(input, hint || "default");if (getGallery_typeof(res) !== "object") return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return (hint === "string" ? String : Number)(input);}
|
|
10369
10767
|
|
|
10370
10768
|
/**
|
|
10371
10769
|
* Gets the details of a gallery by their Gallery ID.
|
|
@@ -10405,8 +10803,8 @@ function getGallery(requestParams) {
|
|
|
10405
10803
|
method: 'get',
|
|
10406
10804
|
baseURL: buildRequestUrlPath(this.config, 'gallery'),
|
|
10407
10805
|
headers: buildAuthHeader(this.config),
|
|
10408
|
-
params: {}
|
|
10409
|
-
|
|
10806
|
+
params: {}
|
|
10807
|
+
};
|
|
10410
10808
|
|
|
10411
10809
|
return this.makeRequest(req);
|
|
10412
10810
|
}
|
|
@@ -10420,8 +10818,8 @@ function getGallery_validateRequestParams(requestParams) {
|
|
|
10420
10818
|
}
|
|
10421
10819
|
|
|
10422
10820
|
var getGallery_defaultParams = {
|
|
10423
|
-
contentLinkDepth: 1
|
|
10424
|
-
|
|
10821
|
+
contentLinkDepth: 1
|
|
10822
|
+
};
|
|
10425
10823
|
|
|
10426
10824
|
/* harmony default export */ var methods_getGallery = (getGallery);
|
|
10427
10825
|
// CONCATENATED MODULE: ./src/methods/getUrlRedirections.js
|
|
@@ -10475,8 +10873,8 @@ function getUrlRedirections(requestParams) {
|
|
|
10475
10873
|
method: 'get',
|
|
10476
10874
|
baseURL: buildRequestUrlPath(this.config, 'urlredirection'),
|
|
10477
10875
|
headers: buildAuthHeader(this.config),
|
|
10478
|
-
params: {}
|
|
10479
|
-
|
|
10876
|
+
params: {}
|
|
10877
|
+
};
|
|
10480
10878
|
|
|
10481
10879
|
var self = this;
|
|
10482
10880
|
var promise = new Promise(function (resolve, reject) {
|
|
@@ -10490,10 +10888,10 @@ function getUrlRedirections(requestParams) {
|
|
|
10490
10888
|
resolve(data);
|
|
10491
10889
|
}
|
|
10492
10890
|
})["catch"](
|
|
10493
|
-
|
|
10494
|
-
|
|
10495
|
-
|
|
10496
|
-
|
|
10891
|
+
function (error) {
|
|
10892
|
+
reject(error);
|
|
10893
|
+
}
|
|
10894
|
+
);
|
|
10497
10895
|
});
|
|
10498
10896
|
return promise;
|
|
10499
10897
|
}
|
|
@@ -10561,8 +10959,8 @@ function getSyncContent(requestParams) {
|
|
|
10561
10959
|
method: 'get',
|
|
10562
10960
|
baseURL: buildRequestUrlPath(this.config, requestParams.locale ? requestParams.locale : requestParams.languageCode),
|
|
10563
10961
|
headers: buildAuthHeader(this.config),
|
|
10564
|
-
params: {}
|
|
10565
|
-
|
|
10962
|
+
params: {}
|
|
10963
|
+
};
|
|
10566
10964
|
|
|
10567
10965
|
return this.makeRequest(req);
|
|
10568
10966
|
}
|
|
@@ -10625,8 +11023,8 @@ function getSyncPages(requestParams) {
|
|
|
10625
11023
|
method: 'get',
|
|
10626
11024
|
baseURL: buildRequestUrlPath(this.config, requestParams.locale ? requestParams.locale : requestParams.languageCode),
|
|
10627
11025
|
headers: buildAuthHeader(this.config),
|
|
10628
|
-
params: {}
|
|
10629
|
-
|
|
11026
|
+
params: {}
|
|
11027
|
+
};
|
|
10630
11028
|
|
|
10631
11029
|
return this.makeRequest(req);
|
|
10632
11030
|
}
|
|
@@ -10671,8 +11069,8 @@ var FilterOperators = {
|
|
|
10671
11069
|
/** Greater Than or Equal To */
|
|
10672
11070
|
GREATER_THAN_OR_EQUAL_TO: "gte",
|
|
10673
11071
|
/** Like (string only) */
|
|
10674
|
-
LIKE: "like"
|
|
10675
|
-
|
|
11072
|
+
LIKE: "like"
|
|
11073
|
+
};
|
|
10676
11074
|
|
|
10677
11075
|
/* harmony default export */ var FilterOperator = (FilterOperators);
|
|
10678
11076
|
// CONCATENATED MODULE: ./src/types/FilterLogicOperator.js
|
|
@@ -10693,8 +11091,8 @@ var FilterLogicOperators = {
|
|
|
10693
11091
|
/** And */
|
|
10694
11092
|
AND: "and",
|
|
10695
11093
|
/** Or */
|
|
10696
|
-
OR: "or"
|
|
10697
|
-
|
|
11094
|
+
OR: "or"
|
|
11095
|
+
};
|
|
10698
11096
|
|
|
10699
11097
|
/* harmony default export */ var FilterLogicOperator = (FilterLogicOperators);
|
|
10700
11098
|
// CONCATENATED MODULE: ./src/types/SortDirection.js
|
|
@@ -10715,13 +11113,13 @@ var SortDirections = {
|
|
|
10715
11113
|
/** Ascending */
|
|
10716
11114
|
ASC: "asc",
|
|
10717
11115
|
/** Descending */
|
|
10718
|
-
DESC: "desc"
|
|
10719
|
-
|
|
11116
|
+
DESC: "desc"
|
|
11117
|
+
};
|
|
10720
11118
|
|
|
10721
11119
|
/* harmony default export */ var SortDirection = (SortDirections);
|
|
10722
11120
|
// CONCATENATED MODULE: ./src/api-client.js
|
|
10723
|
-
function
|
|
10724
|
-
|
|
11121
|
+
function api_client_typeof(o) {"@babel/helpers - typeof";return api_client_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, api_client_typeof(o);}function _regeneratorRuntime() {"use strict";
|
|
11122
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime = function _regeneratorRuntime() {return e;};var t,e = {},r = Object.prototype,n = r.hasOwnProperty,o = Object.defineProperty || function (t, e, r) {t[e] = r.value;},i = "function" == typeof Symbol ? Symbol : {},a = i.iterator || "@@iterator",c = i.asyncIterator || "@@asyncIterator",u = i.toStringTag || "@@toStringTag";function define(t, e, r) {return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e];}try {define({}, "");} catch (t) {define = function define(t, e, r) {return t[e] = r;};}function wrap(t, e, r, n) {var i = e && e.prototype instanceof Generator ? e : Generator,a = Object.create(i.prototype),c = new Context(n || []);return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a;}function tryCatch(t, e, r) {try {return { type: "normal", arg: t.call(e, r) };} catch (t) {return { type: "throw", arg: t };}}e.wrap = wrap;var h = "suspendedStart",l = "suspendedYield",f = "executing",s = "completed",y = {};function Generator() {}function GeneratorFunction() {}function GeneratorFunctionPrototype() {}var p = {};define(p, a, function () {return this;});var d = Object.getPrototypeOf,v = d && d(d(values([])));v && v !== r && n.call(v, a) && (p = v);var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);function defineIteratorMethods(t) {["next", "throw", "return"].forEach(function (e) {define(t, e, function (t) {return this._invoke(e, t);});});}function AsyncIterator(t, e) {function invoke(r, o, i, a) {var c = tryCatch(t[r], t, o);if ("throw" !== c.type) {var u = c.arg,h = u.value;return h && "object" == api_client_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {invoke("next", t, i, a);}, function (t) {invoke("throw", t, i, a);}) : e.resolve(h).then(function (t) {u.value = t, i(u);}, function (t) {return invoke("throw", t, i, a);});}a(c.arg);}var r;o(this, "_invoke", { value: function value(t, n) {function callInvokeWithMethodAndArg() {return new e(function (e, r) {invoke(t, n, e, r);});}return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();} });}function makeInvokeMethod(e, r, n) {var o = h;return function (i, a) {if (o === f) throw new Error("Generator is already running");if (o === s) {if ("throw" === i) throw a;return { value: t, done: !0 };}for (n.method = i, n.arg = a;;) {var c = n.delegate;if (c) {var u = maybeInvokeDelegate(c, n);if (u) {if (u === y) continue;return u;}}if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {if (o === h) throw o = s, n.arg;n.dispatchException(n.arg);} else "return" === n.method && n.abrupt("return", n.arg);o = f;var p = tryCatch(e, r, n);if ("normal" === p.type) {if (o = n.done ? s : l, p.arg === y) continue;return { value: p.arg, done: n.done };}"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);}};}function maybeInvokeDelegate(e, r) {var n = r.method,o = e.iterator[n];if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;var i = tryCatch(o, e.iterator, r.arg);if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;var a = i.arg;return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);}function pushTryEntry(t) {var e = { tryLoc: t[0] };1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);}function resetTryEntry(t) {var e = t.completion || {};e.type = "normal", delete e.arg, t.completion = e;}function Context(t) {this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0);}function values(e) {if (e || "" === e) {var r = e[a];if (r) return r.call(e);if ("function" == typeof e.next) return e;if (!isNaN(e.length)) {var o = -1,i = function next() {for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;return next.value = t, next.done = !0, next;};return i.next = i;}}throw new TypeError(api_client_typeof(e) + " is not iterable");}return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {var e = "function" == typeof t && t.constructor;return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));}, e.mark = function (t) {return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;}, e.awrap = function (t) {return { __await: t };}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {return this;}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {void 0 === i && (i = Promise);var a = new AsyncIterator(wrap(t, r, n, o), i);return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {return t.done ? t.value : a.next();});}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {return this;}), define(g, "toString", function () {return "[object Generator]";}), e.keys = function (t) {var e = Object(t),r = [];for (var n in e) r.push(n);return r.reverse(), function next() {for (; r.length;) {var t = r.pop();if (t in e) return next.value = t, next.done = !1, next;}return next.done = !0, next;};}, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) {if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);}, stop: function stop() {this.done = !0;var t = this.tryEntries[0].completion;if ("throw" === t.type) throw t.arg;return this.rval;}, dispatchException: function dispatchException(e) {if (this.done) throw e;var r = this;function handle(n, o) {return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;}for (var o = this.tryEntries.length - 1; o >= 0; --o) {var i = this.tryEntries[o],a = i.completion;if ("root" === i.tryLoc) return handle("end");if (i.tryLoc <= this.prev) {var c = n.call(i, "catchLoc"),u = n.call(i, "finallyLoc");if (c && u) {if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);if (this.prev < i.finallyLoc) return handle(i.finallyLoc);} else if (c) {if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);} else {if (!u) throw new Error("try statement without catch or finally");if (this.prev < i.finallyLoc) return handle(i.finallyLoc);}}}}, abrupt: function abrupt(t, e) {for (var r = this.tryEntries.length - 1; r >= 0; --r) {var o = this.tryEntries[r];if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {var i = o;break;}}i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);var a = i ? i.completion : {};return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);}, complete: function complete(t, e) {if ("throw" === t.type) throw t.arg;return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;}, finish: function finish(t) {for (var e = this.tryEntries.length - 1; e >= 0; --e) {var r = this.tryEntries[e];if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;}}, "catch": function _catch(t) {for (var e = this.tryEntries.length - 1; e >= 0; --e) {var r = this.tryEntries[e];if (r.tryLoc === t) {var n = r.completion;if ("throw" === n.type) {var o = n.arg;resetTryEntry(r);}return o;}}throw new Error("illegal catch attempt");}, delegateYield: function delegateYield(e, r, n) {return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y;} }, e;}function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {try {var info = gen[key](arg);var value = info.value;} catch (error) {reject(error);return;}if (info.done) {resolve(value);} else {Promise.resolve(value).then(_next, _throw);}}function _asyncToGenerator(fn) {return function () {var self = this,args = arguments;return new Promise(function (resolve, reject) {var gen = fn.apply(self, args);function _next(value) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);}function _throw(err) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);}_next(undefined);});};}function api_client_ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function api_client_objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? api_client_ownKeys(Object(t), !0).forEach(function (r) {api_client_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : api_client_ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function api_client_defineProperty(obj, key, value) {key = api_client_toPropertyKey(key);if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function api_client_toPropertyKey(arg) {var key = api_client_toPrimitive(arg, "string");return api_client_typeof(key) === "symbol" ? key : String(key);}function api_client_toPrimitive(input, hint) {if (api_client_typeof(input) !== "object" || input === null) return input;var prim = input[Symbol.toPrimitive];if (prim !== undefined) {var res = prim.call(input, hint || "default");if (api_client_typeof(res) !== "object") return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return (hint === "string" ? String : Number)(input);}
|
|
10725
11123
|
|
|
10726
11124
|
|
|
10727
11125
|
|
|
@@ -10749,8 +11147,8 @@ var defaultConfig = {
|
|
|
10749
11147
|
debug: false,
|
|
10750
11148
|
caching: {
|
|
10751
11149
|
maxAge: 0 //caching disabled by default
|
|
10752
|
-
}
|
|
10753
|
-
|
|
11150
|
+
}
|
|
11151
|
+
};
|
|
10754
11152
|
|
|
10755
11153
|
function buildEnvConfig() {
|
|
10756
11154
|
var envConfig = {};
|
|
@@ -10781,8 +11179,8 @@ function buildBaseUrl(guid) {
|
|
|
10781
11179
|
c: '-ca',
|
|
10782
11180
|
e: '-eu',
|
|
10783
11181
|
a: '-aus',
|
|
10784
|
-
d: '-dev'
|
|
10785
|
-
|
|
11182
|
+
d: '-dev'
|
|
11183
|
+
};
|
|
10786
11184
|
|
|
10787
11185
|
var suffix = guid.substr(guid.length - 2, 2);
|
|
10788
11186
|
var env = suffix.substr(1);
|
|
@@ -10821,16 +11219,16 @@ function createClient(userConfig) {
|
|
|
10821
11219
|
if (config.caching.maxAge > 0) {
|
|
10822
11220
|
var cache = Object(cache_node["setupCache"])({
|
|
10823
11221
|
maxAge: config.caching.maxAge,
|
|
10824
|
-
exclude: { query: false }
|
|
10825
|
-
|
|
11222
|
+
exclude: { query: false }
|
|
11223
|
+
});
|
|
10826
11224
|
adapter = cache.adapter;
|
|
10827
11225
|
}
|
|
10828
11226
|
|
|
10829
11227
|
var api = null;
|
|
10830
11228
|
|
|
10831
11229
|
api = axios_default.a.create({
|
|
10832
|
-
adapter: adapter
|
|
10833
|
-
|
|
11230
|
+
adapter: adapter
|
|
11231
|
+
});
|
|
10834
11232
|
|
|
10835
11233
|
//the function that actually makes ALL our requests
|
|
10836
11234
|
function makeRequest(reqConfig) {
|
|
@@ -10840,25 +11238,25 @@ function createClient(userConfig) {
|
|
|
10840
11238
|
}
|
|
10841
11239
|
|
|
10842
11240
|
//make the request using our axios instance
|
|
10843
|
-
return api(reqConfig).then( /*#__PURE__*/function () {var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
10844
|
-
|
|
10845
|
-
data = response.data;
|
|
10846
|
-
//if our response is from cache, inject that property in the data response
|
|
10847
|
-
if (response.request.fromCache) {
|
|
10848
|
-
data['fromCache'] = true;
|
|
10849
|
-
}
|
|
11241
|
+
return api(reqConfig).then( /*#__PURE__*/function () {var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {var data;return _regeneratorRuntime().wrap(function _callee$(_context) {while (1) switch (_context.prev = _context.next) {case 0:
|
|
10850
11242
|
|
|
10851
|
-
|
|
10852
|
-
|
|
10853
|
-
|
|
10854
|
-
|
|
10855
|
-
|
|
11243
|
+
data = response.data;
|
|
11244
|
+
//if our response is from cache, inject that property in the data response
|
|
11245
|
+
if (response.request.fromCache) {
|
|
11246
|
+
data['fromCache'] = true;
|
|
11247
|
+
}
|
|
10856
11248
|
|
|
11249
|
+
if (config.debug) {
|
|
11250
|
+
data['agilityResponseHeaders'] = response.headers;
|
|
11251
|
+
}return _context.abrupt("return",
|
|
10857
11252
|
|
|
11253
|
+
data);case 4:case "end":return _context.stop();}}, _callee);}));return function (_x) {return _ref.apply(this, arguments);};}()
|
|
10858
11254
|
|
|
10859
|
-
function _callee2(error) {return regeneratorRuntime.wrap(function _callee2$(_context2) {while (1) {switch (_context2.prev = _context2.next) {case 0:
|
|
10860
|
-
logError("AgilityCMS Fetch API ERROR: Request failed for ".concat(reqConfig.baseURL).concat(reqConfig.url, " ... ").concat(error, " ... Does the item exist?"));case 1:case "end":return _context2.stop();}}}, _callee2);}));return function (_x2) {return _ref2.apply(this, arguments);};}());
|
|
10861
11255
|
|
|
11256
|
+
)["catch"]( /*#__PURE__*/function () {var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(
|
|
11257
|
+
function _callee2(error) {return _regeneratorRuntime().wrap(function _callee2$(_context2) {while (1) switch (_context2.prev = _context2.next) {case 0:
|
|
11258
|
+
logError("AgilityCMS Fetch API ERROR: Request failed for ".concat(reqConfig.baseURL).concat(reqConfig.url, " ... ").concat(error, " ... Does the item exist?"));case 1:case "end":return _context2.stop();}}, _callee2);}));return function (_x2) {return _ref2.apply(this, arguments);};}()
|
|
11259
|
+
);
|
|
10862
11260
|
}
|
|
10863
11261
|
|
|
10864
11262
|
//export only these properties:
|
|
@@ -10877,9 +11275,9 @@ function createClient(userConfig) {
|
|
|
10877
11275
|
types: {
|
|
10878
11276
|
FilterOperators: FilterOperator,
|
|
10879
11277
|
FilterLogicOperators: FilterLogicOperator,
|
|
10880
|
-
SortDirections: SortDirection
|
|
10881
|
-
|
|
10882
|
-
|
|
11278
|
+
SortDirections: SortDirection
|
|
11279
|
+
}
|
|
11280
|
+
};
|
|
10883
11281
|
|
|
10884
11282
|
}
|
|
10885
11283
|
// CONCATENATED MODULE: ./src/content-fetch.js
|
|
@@ -10971,7 +11369,8 @@ function validateConfigParams(configParams) {
|
|
|
10971
11369
|
|
|
10972
11370
|
|
|
10973
11371
|
/* harmony default export */ var content_fetch = __webpack_exports__["default"] = ({
|
|
10974
|
-
getApi: getApi
|
|
11372
|
+
getApi: getApi
|
|
11373
|
+
});
|
|
10975
11374
|
|
|
10976
11375
|
/***/ })
|
|
10977
11376
|
/******/ ])["default"];
|