@agility/content-fetch 1.1.5 → 2.0.0-rc10
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/.jsdoc.json +28 -28
- package/.yarn/cache/@ampproject-remapping-npm-2.2.1-3da3d624be-03c04fd526.zip +0 -0
- package/.yarn/cache/@babel-code-frame-npm-7.22.10-bc14e2ec1b-89a06534ad.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.10-54c0aaa674-cc4efa0920.zip +0 -0
- package/.yarn/cache/@babel-generator-npm-7.22.10-1a9a2f9e75-59a79730ab.zip +0 -0
- package/.yarn/cache/@babel-helper-compilation-targets-npm-7.22.10-20c2c02a4f-f6f1896816.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.10-83a2c2542a-3b1219e362.zip +0 -0
- package/.yarn/cache/@babel-highlight-npm-7.22.10-cea13c397b-f714a1e1a7.zip +0 -0
- package/.yarn/cache/@babel-parser-npm-7.22.10-a7c9b29e4f-af51567b7d.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.10-9eaf5a4899-9f7b358563.zip +0 -0
- package/.yarn/cache/@babel-types-npm-7.22.10-ffafe4058f-095c4f4b75.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/@dabh-diagnostics-npm-2.0.3-0f2cd64f24-4879600c55.zip +0 -0
- package/.yarn/cache/@esbuild-win32-x64-npm-0.19.0-2341ee400c-8.zip +0 -0
- package/.yarn/cache/@isaacs-cliui-npm-8.0.2-f4364666d5-4a473b9b32.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.1-aa2de3f210-f5b441fe79.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.15-a055fb62cf-b881c7e503.zip +0 -0
- package/.yarn/cache/@jridgewell-trace-mapping-npm-0.3.19-9aa1a7e2fd-956a6f0f6f.zip +0 -0
- package/.yarn/cache/@npmcli-fs-npm-3.1.0-0844a57978-a50a6818de.zip +0 -0
- package/.yarn/cache/@pkgjs-parseargs-npm-0.11.0-cd2a3fe948-6ad6a00fc4.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/@types-axios-npm-0.14.0-42f41917ea-12a230b940.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.17.4-7b6cd3731e-d4c458202d.zip +0 -0
- package/.yarn/cache/@types-node-npm-20.4.9-c55842c502-504e3da962.zip +0 -0
- package/.yarn/cache/@types-stack-utils-npm-2.0.1-867718ab70-205fdbe332.zip +0 -0
- package/.yarn/cache/@types-triple-beam-npm-1.3.2-e1699700a8-dd7b4a563f.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/agent-base-npm-6.0.2-428f325a93-f52b6872cc.zip +0 -0
- package/.yarn/cache/agentkeepalive-npm-4.5.0-f237b580b2-13278cd5b1.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/are-we-there-yet-npm-3.0.1-3395b1512f-52590c2486.zip +0 -0
- package/.yarn/cache/argparse-npm-1.0.10-528934e59d-7ca6e45583.zip +0 -0
- package/.yarn/cache/args-npm-5.0.3-ec59f35e6d-ac39e65609.zip +0 -0
- package/.yarn/cache/async-npm-3.2.4-aba13508f9-43d07459a4.zip +0 -0
- package/.yarn/cache/asynckit-npm-0.4.0-c718858525-7b78c451df.zip +0 -0
- package/.yarn/cache/axios-npm-0.27.2-dbe3a48aea-38cb754046.zip +0 -0
- package/.yarn/cache/axios-npm-1.4.0-4d7ce8ca3e-7fb6a4313b.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/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/cacache-npm-17.1.3-f75f768a29-385756781e.zip +0 -0
- package/.yarn/cache/callsites-npm-3.1.0-268f989910-072d17b6ab.zip +0 -0
- package/.yarn/cache/camelcase-npm-5.0.0-c808398846-8bfe920e04.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.30001519-1d6b5bc825-66085133ed.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/char-regex-npm-1.0.2-ecade5f97f-b563e4b603.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/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/cliui-npm-8.0.1-3b029092cf-79648b3b00.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-npm-3.2.1-568cf1014f-f81220e8b7.zip +0 -0
- package/.yarn/cache/color-string-npm-1.9.1-dc020e56be-c13fe7cff7.zip +0 -0
- package/.yarn/cache/color-support-npm-1.1.3-3be5c53455-9b73568176.zip +0 -0
- package/.yarn/cache/colorspace-npm-1.1.4-f01655548a-bb3934ef3c.zip +0 -0
- package/.yarn/cache/combined-stream-npm-1.0.8-dc14d4a63a-49fa4aeb49.zip +0 -0
- package/.yarn/cache/commander-npm-2.20.3-d8dcbaa39b-ab8c07884e.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/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/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/detect-file-npm-1.0.0-a22ca7c5b6-1861e41461.zip +0 -0
- package/.yarn/cache/detect-newline-npm-3.1.0-6d33fa8d37-ae6cd429c4.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.488-9c254135e9-431c100e01.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/enabled-npm-2.0.0-bf5d96c9d8-9d256d89f4.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/esbuild-npm-0.19.0-1a8543a0f4-77ef2e57a9.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/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/expand-tilde-npm-2.0.2-a4020a62f5-2efe6ed407.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/fb-watchman-npm-2.0.2-bcb6f8f831-b15a124cef.zip +0 -0
- package/.yarn/cache/fecha-npm-4.2.3-75248da3fd-f94e2fb3ac.zip +0 -0
- package/.yarn/cache/fill-range-npm-7.0.1-b8b1817caa-cc283f4e65.zip +0 -0
- package/.yarn/cache/find-node-modules-npm-2.1.3-431b2c5604-4b8a194ffd.zip +0 -0
- package/.yarn/cache/find-up-npm-4.1.0-c3ccf8d855-4c172680e8.zip +0 -0
- package/.yarn/cache/findup-sync-npm-4.0.0-3884c677a0-94131e1107.zip +0 -0
- package/.yarn/cache/fn.name-npm-1.1.0-b472333184-e357144f48.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/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/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/global-modules-npm-1.0.0-70c522e57a-10be68796c.zip +0 -0
- package/.yarn/cache/global-prefix-npm-1.0.2-a96996834b-061b43470f.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/homedir-polyfill-npm-1.0.3-da1a29ce00-18dd4db870.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/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-1.3.8-fb5040b4c0-dfd98b0ca3.zip +0 -0
- package/.yarn/cache/ip-npm-2.0.0-204facb3cc-cfcfac6b87.zip +0 -0
- package/.yarn/cache/is-arrayish-npm-0.2.1-23927dfb15-eef4417e3c.zip +0 -0
- package/.yarn/cache/is-arrayish-npm-0.3.2-f856180f79-977e64f54d.zip +0 -0
- package/.yarn/cache/is-core-module-npm-2.13.0-e444c50225-053ab101fb.zip +0 -0
- package/.yarn/cache/is-extglob-npm-2.1.1-0870ea68b5-df033653d0.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-glob-npm-4.0.3-cb87bf1bdb-d381c1319f.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/is-windows-npm-1.0.2-898cd6f3d7-438b7e5265.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/json5-npm-2.2.3-9962c55073-2a7436a933.zip +0 -0
- package/.yarn/cache/kleur-npm-3.0.3-f6f53649a4-df82cd1e17.zip +0 -0
- package/.yarn/cache/kuler-npm-2.0.0-19e74c9695-9e10b5a165.zip +0 -0
- package/.yarn/cache/leven-npm-2.1.0-19f0a16606-f7b4a01b15.zip +0 -0
- package/.yarn/cache/leven-npm-3.1.0-b7697736a3-638401d534.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/logform-npm-2.5.1-06017d630d-08fdf03be5.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/merge-npm-2.1.1-90e7307c49-9c36b0e25a.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/minimist-npm-1.2.8-d7af7b1dce-75a6d645fb.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-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/mri-npm-1.1.4-d22a399f26-e65b9aed3b.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/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/normalize-path-npm-3.0.0-658ba7d77f-88eeb4da89.zip +0 -0
- package/.yarn/cache/npm-dts-npm-1.3.12-c921cfddec-3897533c49.zip +0 -0
- package/.yarn/cache/npm-path-npm-2.0.4-fda8ca6d1d-3dfe24d9bb.zip +0 -0
- package/.yarn/cache/npm-run-npm-5.0.1-ba4f9faa65-1c6e171bf0.zip +0 -0
- package/.yarn/cache/npm-run-path-npm-4.0.1-7aebd8bab3-5374c0cea4.zip +0 -0
- package/.yarn/cache/npm-which-npm-3.0.1-2951392327-fba4864161.zip +0 -0
- package/.yarn/cache/npmlog-npm-6.0.2-e0e69455c7-ae238cd264.zip +0 -0
- package/.yarn/cache/once-npm-1.4.0-ccf03ef07a-cd0a885013.zip +0 -0
- package/.yarn/cache/one-time-npm-1.0.0-aeaad5e524-fd008d7e99.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/parse-json-npm-5.2.0-00a63b1199-62085b17d6.zip +0 -0
- package/.yarn/cache/parse-passwd-npm-1.0.0-ace6effa1d-4e55e0231d.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/pretty-format-npm-29.6.2-7f39471065-a0f972a44f.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/protochain-npm-1.0.5-ca0a4ef353-81f417e4f5.zip +0 -0
- package/.yarn/cache/proxy-from-env-npm-1.1.0-c13d07f26b-ed7fcc2ba0.zip +0 -0
- package/.yarn/cache/pure-rand-npm-6.0.2-5d375bc0a6-79de33876a.zip +0 -0
- package/.yarn/cache/react-is-npm-18.2.0-0cc5edb910-e72d0ba81b.zip +0 -0
- package/.yarn/cache/readable-stream-npm-3.6.2-d2a6069158-bdcbe6c22e.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-dir-npm-1.0.1-0a95903c18-ef736b8ed6.zip +0 -0
- package/.yarn/cache/resolve-from-npm-5.0.0-15c9db4d33-4ceeb9113e.zip +0 -0
- package/.yarn/cache/resolve-npm-1.22.4-faa4f32bdd-23f25174c2.zip +0 -0
- package/.yarn/cache/resolve-patch-efbbaf0edd-c45f2545fd.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/rimraf-npm-5.0.1-26fb251a1d-bafce85391.zip +0 -0
- package/.yarn/cache/safe-buffer-npm-5.2.1-3481c8aa9b-b99c4b41fd.zip +0 -0
- package/.yarn/cache/safe-stable-stringify-npm-2.4.3-d895741b40-3aeb644497.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/serializerr-npm-1.0.3-844e49be0c-20fdf7a7e3.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/simple-swizzle-npm-0.2.2-8dee37fad1-a7f3f2ab5c.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/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-trace-npm-0.0.10-9460b173e1-473036ad32.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-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-hex-npm-1.0.0-22389e4d56-1138f68adc.zip +0 -0
- package/.yarn/cache/tmp-npm-0.2.1-a9c8d9c0ca-8b12146541.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/triple-beam-npm-1.4.1-d21ba5346a-2e881a3e8e.zip +0 -0
- package/.yarn/cache/ts-jest-npm-29.1.1-04e888e48e-a8c9e284ed.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/walker-npm-1.0.8-b0a05b9478-ad7a257ea1.zip +0 -0
- package/.yarn/cache/which-npm-1.3.1-f0ebb8bdd8-f2e185c624.zip +0 -0
- package/.yarn/cache/which-npm-2.0.2-320ddf72f7-1a5c563d3c.zip +0 -0
- package/.yarn/cache/wide-align-npm-1.1.5-889d77e592-d5fc37cd56.zip +0 -0
- package/.yarn/cache/winston-npm-3.7.2-5336ad5eff-f1f1a860d2.zip +0 -0
- package/.yarn/cache/winston-transport-npm-4.5.0-e10bfb2169-a56e5678a8.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/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/LICENSE +21 -21
- package/README.md +108 -108
- package/build.js +26 -0
- package/dist/api-client.d.ts +46 -0
- package/dist/browser.js +2057 -0
- package/dist/index.d.ts +8 -0
- package/dist/methods/getContentItem.d.ts +42 -0
- package/dist/methods/getContentList.d.ts +78 -0
- package/dist/methods/getGallery.d.ts +33 -0
- package/dist/methods/getPage.d.ts +41 -0
- package/{src/methods/getSitemapFlat.js → dist/methods/getSitemapFlat.d.ts} +11 -32
- package/{src/methods/getSitemapNested.js → dist/methods/getSitemapNested.d.ts} +11 -29
- package/{src/methods/getSyncContent.js → dist/methods/getSyncContent.d.ts} +13 -33
- package/{src/methods/getSyncPages.js → dist/methods/getSyncPages.d.ts} +13 -33
- package/dist/methods/getUrlRedirections.d.ts +35 -0
- package/dist/node.js +13061 -0
- package/dist/types/Client.d.ts +5 -0
- package/dist/types/Config.d.ts +15 -0
- package/dist/types/ContentItem.d.ts +19 -0
- package/dist/types/ContentList.d.ts +12 -0
- package/dist/types/ContentZone.d.ts +13 -0
- package/dist/types/EnvConfig.d.ts +6 -0
- package/{src/types/Filter.js → dist/types/Filter.d.ts} +14 -13
- package/{src/types/FilterLogicOperator.js → dist/types/FilterLogicOperator.d.ts} +17 -21
- package/{src/types/FilterOperator.js → dist/types/FilterOperator.d.ts} +28 -30
- package/dist/types/Gallery.d.ts +21 -0
- package/dist/types/MediaItem.d.ts +22 -0
- package/dist/types/MediaItemMetaData.d.ts +17 -0
- package/dist/types/Page.d.ts +38 -0
- package/dist/types/SEO.d.ts +16 -0
- package/dist/types/SitemapFlat.d.ts +9 -0
- package/dist/types/SitemapFlatItem.d.ts +29 -0
- package/dist/types/SitemapNested.d.ts +7 -0
- package/dist/types/SitemapNestedItem.d.ts +30 -0
- package/dist/types/SitemapVisibility.d.ts +11 -0
- package/{src/types/SortDirection.js → dist/types/SortDirection.d.ts} +17 -21
- package/dist/types/SyncContent.d.ts +12 -0
- package/dist/types/SyncPages.d.ts +12 -0
- package/dist/types/SystemProperties.d.ts +15 -0
- package/dist/types/UrlRedirection.d.ts +15 -0
- package/dist/types/UrlRedirectionResponse.d.ts +12 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/utils.d.ts +7 -0
- package/jest.config.js +6 -0
- package/package.json +57 -49
- package/tsconfig.json +15 -0
- package/.babelrc +0 -7
- package/.vscode/launch.json +0 -35
- package/dist/agility-content-fetch.browser.js +0 -420
- package/dist/agility-content-fetch.node.js +0 -10978
- package/src/api-client.js +0 -162
- package/src/content-fetch.js +0 -90
- package/src/methods/getContentItem.js +0 -72
- package/src/methods/getContentList.js +0 -140
- package/src/methods/getGallery.js +0 -59
- package/src/methods/getPage.js +0 -69
- package/src/methods/getUrlRedirections.js +0 -91
- package/src/types/ContentItem.js +0 -10
- package/src/types/ContentList.js +0 -8
- package/src/types/ContentZone.js +0 -8
- package/src/types/Gallery.js +0 -11
- package/src/types/MediaItem.js +0 -12
- package/src/types/MediaItemMetaData.js +0 -11
- package/src/types/Page.js +0 -19
- package/src/types/SitemapFlat.js +0 -6
- package/src/types/SitemapFlatItem.js +0 -15
- package/src/types/SitemapNested.js +0 -6
- package/src/types/SitemapNestedItem.js +0 -15
- package/src/types/SitemapVisibility.js +0 -8
- package/src/types/SyncContent.js +0 -8
- package/src/types/SyncPages.js +0 -8
- package/src/types/SystemProperties.js +0 -10
- package/src/types/UrlRedirection.js +0 -11
- package/src/types/UrlRedirectionResponse.js +0 -9
- package/src/utils.js +0 -88
- package/test/apiClients.config.js +0 -53
- package/test/getApi.tests.js +0 -185
- package/test/getContentItem.tests.js +0 -200
- package/test/getContentList.tests.js +0 -371
- package/test/getGallery.tests.js +0 -33
- package/test/getPage.tests.js +0 -93
- package/test/getSitemapFlat.tests.js +0 -73
- package/test/getSitemapNested.tests.js +0 -73
- package/test/getSyncContentItems.tests.js +0 -44
- package/test/getSyncPageItems.tests.js +0 -45
- package/test/getUrlRedirections.tests.js +0 -60
- package/webpack.config.js +0 -58
package/dist/browser.js
ADDED
|
@@ -0,0 +1,2057 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
+
};
|
|
11
|
+
var __export = (target, all) => {
|
|
12
|
+
for (var name in all)
|
|
13
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
14
|
+
};
|
|
15
|
+
var __copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
+
for (let key of __getOwnPropNames(from))
|
|
18
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
19
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
26
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
28
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
|
+
mod
|
|
30
|
+
));
|
|
31
|
+
|
|
32
|
+
// node_modules/axios/lib/helpers/bind.js
|
|
33
|
+
var require_bind = __commonJS({
|
|
34
|
+
"node_modules/axios/lib/helpers/bind.js"(exports, module) {
|
|
35
|
+
"use strict";
|
|
36
|
+
module.exports = function bind(fn, thisArg) {
|
|
37
|
+
return function wrap() {
|
|
38
|
+
var args = new Array(arguments.length);
|
|
39
|
+
for (var i = 0; i < args.length; i++) {
|
|
40
|
+
args[i] = arguments[i];
|
|
41
|
+
}
|
|
42
|
+
return fn.apply(thisArg, args);
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
// node_modules/axios/lib/utils.js
|
|
49
|
+
var require_utils = __commonJS({
|
|
50
|
+
"node_modules/axios/lib/utils.js"(exports, module) {
|
|
51
|
+
"use strict";
|
|
52
|
+
var bind = require_bind();
|
|
53
|
+
var toString = Object.prototype.toString;
|
|
54
|
+
var kindOf = function(cache) {
|
|
55
|
+
return function(thing) {
|
|
56
|
+
var str = toString.call(thing);
|
|
57
|
+
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
58
|
+
};
|
|
59
|
+
}(/* @__PURE__ */ Object.create(null));
|
|
60
|
+
function kindOfTest(type) {
|
|
61
|
+
type = type.toLowerCase();
|
|
62
|
+
return function isKindOf(thing) {
|
|
63
|
+
return kindOf(thing) === type;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function isArray(val) {
|
|
67
|
+
return Array.isArray(val);
|
|
68
|
+
}
|
|
69
|
+
function isUndefined(val) {
|
|
70
|
+
return typeof val === "undefined";
|
|
71
|
+
}
|
|
72
|
+
function isBuffer(val) {
|
|
73
|
+
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && typeof val.constructor.isBuffer === "function" && val.constructor.isBuffer(val);
|
|
74
|
+
}
|
|
75
|
+
var isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
76
|
+
function isArrayBufferView(val) {
|
|
77
|
+
var result;
|
|
78
|
+
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
79
|
+
result = ArrayBuffer.isView(val);
|
|
80
|
+
} else {
|
|
81
|
+
result = val && val.buffer && isArrayBuffer(val.buffer);
|
|
82
|
+
}
|
|
83
|
+
return result;
|
|
84
|
+
}
|
|
85
|
+
function isString(val) {
|
|
86
|
+
return typeof val === "string";
|
|
87
|
+
}
|
|
88
|
+
function isNumber(val) {
|
|
89
|
+
return typeof val === "number";
|
|
90
|
+
}
|
|
91
|
+
function isObject(val) {
|
|
92
|
+
return val !== null && typeof val === "object";
|
|
93
|
+
}
|
|
94
|
+
function isPlainObject(val) {
|
|
95
|
+
if (kindOf(val) !== "object") {
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
var prototype = Object.getPrototypeOf(val);
|
|
99
|
+
return prototype === null || prototype === Object.prototype;
|
|
100
|
+
}
|
|
101
|
+
var isDate = kindOfTest("Date");
|
|
102
|
+
var isFile = kindOfTest("File");
|
|
103
|
+
var isBlob = kindOfTest("Blob");
|
|
104
|
+
var isFileList = kindOfTest("FileList");
|
|
105
|
+
function isFunction(val) {
|
|
106
|
+
return toString.call(val) === "[object Function]";
|
|
107
|
+
}
|
|
108
|
+
function isStream(val) {
|
|
109
|
+
return isObject(val) && isFunction(val.pipe);
|
|
110
|
+
}
|
|
111
|
+
function isFormData(thing) {
|
|
112
|
+
var pattern = "[object FormData]";
|
|
113
|
+
return thing && (typeof FormData === "function" && thing instanceof FormData || toString.call(thing) === pattern || isFunction(thing.toString) && thing.toString() === pattern);
|
|
114
|
+
}
|
|
115
|
+
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
116
|
+
function trim(str) {
|
|
117
|
+
return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, "");
|
|
118
|
+
}
|
|
119
|
+
function isStandardBrowserEnv() {
|
|
120
|
+
if (typeof navigator !== "undefined" && (navigator.product === "ReactNative" || navigator.product === "NativeScript" || navigator.product === "NS")) {
|
|
121
|
+
return false;
|
|
122
|
+
}
|
|
123
|
+
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
124
|
+
}
|
|
125
|
+
function forEach(obj, fn) {
|
|
126
|
+
if (obj === null || typeof obj === "undefined") {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
if (typeof obj !== "object") {
|
|
130
|
+
obj = [obj];
|
|
131
|
+
}
|
|
132
|
+
if (isArray(obj)) {
|
|
133
|
+
for (var i = 0, l = obj.length; i < l; i++) {
|
|
134
|
+
fn.call(null, obj[i], i, obj);
|
|
135
|
+
}
|
|
136
|
+
} else {
|
|
137
|
+
for (var key in obj) {
|
|
138
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
139
|
+
fn.call(null, obj[key], key, obj);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
function merge() {
|
|
145
|
+
var result = {};
|
|
146
|
+
function assignValue(val, key) {
|
|
147
|
+
if (isPlainObject(result[key]) && isPlainObject(val)) {
|
|
148
|
+
result[key] = merge(result[key], val);
|
|
149
|
+
} else if (isPlainObject(val)) {
|
|
150
|
+
result[key] = merge({}, val);
|
|
151
|
+
} else if (isArray(val)) {
|
|
152
|
+
result[key] = val.slice();
|
|
153
|
+
} else {
|
|
154
|
+
result[key] = val;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
158
|
+
forEach(arguments[i], assignValue);
|
|
159
|
+
}
|
|
160
|
+
return result;
|
|
161
|
+
}
|
|
162
|
+
function extend(a, b, thisArg) {
|
|
163
|
+
forEach(b, function assignValue(val, key) {
|
|
164
|
+
if (thisArg && typeof val === "function") {
|
|
165
|
+
a[key] = bind(val, thisArg);
|
|
166
|
+
} else {
|
|
167
|
+
a[key] = val;
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
return a;
|
|
171
|
+
}
|
|
172
|
+
function stripBOM(content) {
|
|
173
|
+
if (content.charCodeAt(0) === 65279) {
|
|
174
|
+
content = content.slice(1);
|
|
175
|
+
}
|
|
176
|
+
return content;
|
|
177
|
+
}
|
|
178
|
+
function inherits(constructor, superConstructor, props, descriptors) {
|
|
179
|
+
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
180
|
+
constructor.prototype.constructor = constructor;
|
|
181
|
+
props && Object.assign(constructor.prototype, props);
|
|
182
|
+
}
|
|
183
|
+
function toFlatObject(sourceObj, destObj, filter) {
|
|
184
|
+
var props;
|
|
185
|
+
var i;
|
|
186
|
+
var prop;
|
|
187
|
+
var merged = {};
|
|
188
|
+
destObj = destObj || {};
|
|
189
|
+
do {
|
|
190
|
+
props = Object.getOwnPropertyNames(sourceObj);
|
|
191
|
+
i = props.length;
|
|
192
|
+
while (i-- > 0) {
|
|
193
|
+
prop = props[i];
|
|
194
|
+
if (!merged[prop]) {
|
|
195
|
+
destObj[prop] = sourceObj[prop];
|
|
196
|
+
merged[prop] = true;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
sourceObj = Object.getPrototypeOf(sourceObj);
|
|
200
|
+
} while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
|
|
201
|
+
return destObj;
|
|
202
|
+
}
|
|
203
|
+
function endsWith(str, searchString, position) {
|
|
204
|
+
str = String(str);
|
|
205
|
+
if (position === void 0 || position > str.length) {
|
|
206
|
+
position = str.length;
|
|
207
|
+
}
|
|
208
|
+
position -= searchString.length;
|
|
209
|
+
var lastIndex = str.indexOf(searchString, position);
|
|
210
|
+
return lastIndex !== -1 && lastIndex === position;
|
|
211
|
+
}
|
|
212
|
+
function toArray(thing) {
|
|
213
|
+
if (!thing)
|
|
214
|
+
return null;
|
|
215
|
+
var i = thing.length;
|
|
216
|
+
if (isUndefined(i))
|
|
217
|
+
return null;
|
|
218
|
+
var arr = new Array(i);
|
|
219
|
+
while (i-- > 0) {
|
|
220
|
+
arr[i] = thing[i];
|
|
221
|
+
}
|
|
222
|
+
return arr;
|
|
223
|
+
}
|
|
224
|
+
var isTypedArray = function(TypedArray) {
|
|
225
|
+
return function(thing) {
|
|
226
|
+
return TypedArray && thing instanceof TypedArray;
|
|
227
|
+
};
|
|
228
|
+
}(typeof Uint8Array !== "undefined" && Object.getPrototypeOf(Uint8Array));
|
|
229
|
+
module.exports = {
|
|
230
|
+
isArray,
|
|
231
|
+
isArrayBuffer,
|
|
232
|
+
isBuffer,
|
|
233
|
+
isFormData,
|
|
234
|
+
isArrayBufferView,
|
|
235
|
+
isString,
|
|
236
|
+
isNumber,
|
|
237
|
+
isObject,
|
|
238
|
+
isPlainObject,
|
|
239
|
+
isUndefined,
|
|
240
|
+
isDate,
|
|
241
|
+
isFile,
|
|
242
|
+
isBlob,
|
|
243
|
+
isFunction,
|
|
244
|
+
isStream,
|
|
245
|
+
isURLSearchParams,
|
|
246
|
+
isStandardBrowserEnv,
|
|
247
|
+
forEach,
|
|
248
|
+
merge,
|
|
249
|
+
extend,
|
|
250
|
+
trim,
|
|
251
|
+
stripBOM,
|
|
252
|
+
inherits,
|
|
253
|
+
toFlatObject,
|
|
254
|
+
kindOf,
|
|
255
|
+
kindOfTest,
|
|
256
|
+
endsWith,
|
|
257
|
+
toArray,
|
|
258
|
+
isTypedArray,
|
|
259
|
+
isFileList
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
|
|
264
|
+
// node_modules/axios/lib/helpers/buildURL.js
|
|
265
|
+
var require_buildURL = __commonJS({
|
|
266
|
+
"node_modules/axios/lib/helpers/buildURL.js"(exports, module) {
|
|
267
|
+
"use strict";
|
|
268
|
+
var utils = require_utils();
|
|
269
|
+
function encode(val) {
|
|
270
|
+
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
271
|
+
}
|
|
272
|
+
module.exports = function buildURL(url, params, paramsSerializer) {
|
|
273
|
+
if (!params) {
|
|
274
|
+
return url;
|
|
275
|
+
}
|
|
276
|
+
var serializedParams;
|
|
277
|
+
if (paramsSerializer) {
|
|
278
|
+
serializedParams = paramsSerializer(params);
|
|
279
|
+
} else if (utils.isURLSearchParams(params)) {
|
|
280
|
+
serializedParams = params.toString();
|
|
281
|
+
} else {
|
|
282
|
+
var parts = [];
|
|
283
|
+
utils.forEach(params, function serialize(val, key) {
|
|
284
|
+
if (val === null || typeof val === "undefined") {
|
|
285
|
+
return;
|
|
286
|
+
}
|
|
287
|
+
if (utils.isArray(val)) {
|
|
288
|
+
key = key + "[]";
|
|
289
|
+
} else {
|
|
290
|
+
val = [val];
|
|
291
|
+
}
|
|
292
|
+
utils.forEach(val, function parseValue(v) {
|
|
293
|
+
if (utils.isDate(v)) {
|
|
294
|
+
v = v.toISOString();
|
|
295
|
+
} else if (utils.isObject(v)) {
|
|
296
|
+
v = JSON.stringify(v);
|
|
297
|
+
}
|
|
298
|
+
parts.push(encode(key) + "=" + encode(v));
|
|
299
|
+
});
|
|
300
|
+
});
|
|
301
|
+
serializedParams = parts.join("&");
|
|
302
|
+
}
|
|
303
|
+
if (serializedParams) {
|
|
304
|
+
var hashmarkIndex = url.indexOf("#");
|
|
305
|
+
if (hashmarkIndex !== -1) {
|
|
306
|
+
url = url.slice(0, hashmarkIndex);
|
|
307
|
+
}
|
|
308
|
+
url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
|
|
309
|
+
}
|
|
310
|
+
return url;
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
|
|
315
|
+
// node_modules/axios/lib/core/InterceptorManager.js
|
|
316
|
+
var require_InterceptorManager = __commonJS({
|
|
317
|
+
"node_modules/axios/lib/core/InterceptorManager.js"(exports, module) {
|
|
318
|
+
"use strict";
|
|
319
|
+
var utils = require_utils();
|
|
320
|
+
function InterceptorManager() {
|
|
321
|
+
this.handlers = [];
|
|
322
|
+
}
|
|
323
|
+
InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
|
|
324
|
+
this.handlers.push({
|
|
325
|
+
fulfilled,
|
|
326
|
+
rejected,
|
|
327
|
+
synchronous: options ? options.synchronous : false,
|
|
328
|
+
runWhen: options ? options.runWhen : null
|
|
329
|
+
});
|
|
330
|
+
return this.handlers.length - 1;
|
|
331
|
+
};
|
|
332
|
+
InterceptorManager.prototype.eject = function eject(id) {
|
|
333
|
+
if (this.handlers[id]) {
|
|
334
|
+
this.handlers[id] = null;
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
InterceptorManager.prototype.forEach = function forEach(fn) {
|
|
338
|
+
utils.forEach(this.handlers, function forEachHandler(h) {
|
|
339
|
+
if (h !== null) {
|
|
340
|
+
fn(h);
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
};
|
|
344
|
+
module.exports = InterceptorManager;
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
|
|
348
|
+
// node_modules/axios/lib/helpers/normalizeHeaderName.js
|
|
349
|
+
var require_normalizeHeaderName = __commonJS({
|
|
350
|
+
"node_modules/axios/lib/helpers/normalizeHeaderName.js"(exports, module) {
|
|
351
|
+
"use strict";
|
|
352
|
+
var utils = require_utils();
|
|
353
|
+
module.exports = function normalizeHeaderName(headers, normalizedName) {
|
|
354
|
+
utils.forEach(headers, function processHeader(value, name) {
|
|
355
|
+
if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
|
|
356
|
+
headers[normalizedName] = value;
|
|
357
|
+
delete headers[name];
|
|
358
|
+
}
|
|
359
|
+
});
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
|
|
364
|
+
// node_modules/axios/lib/core/AxiosError.js
|
|
365
|
+
var require_AxiosError = __commonJS({
|
|
366
|
+
"node_modules/axios/lib/core/AxiosError.js"(exports, module) {
|
|
367
|
+
"use strict";
|
|
368
|
+
var utils = require_utils();
|
|
369
|
+
function AxiosError(message, code, config, request, response) {
|
|
370
|
+
Error.call(this);
|
|
371
|
+
this.message = message;
|
|
372
|
+
this.name = "AxiosError";
|
|
373
|
+
code && (this.code = code);
|
|
374
|
+
config && (this.config = config);
|
|
375
|
+
request && (this.request = request);
|
|
376
|
+
response && (this.response = response);
|
|
377
|
+
}
|
|
378
|
+
utils.inherits(AxiosError, Error, {
|
|
379
|
+
toJSON: function toJSON() {
|
|
380
|
+
return {
|
|
381
|
+
// Standard
|
|
382
|
+
message: this.message,
|
|
383
|
+
name: this.name,
|
|
384
|
+
// Microsoft
|
|
385
|
+
description: this.description,
|
|
386
|
+
number: this.number,
|
|
387
|
+
// Mozilla
|
|
388
|
+
fileName: this.fileName,
|
|
389
|
+
lineNumber: this.lineNumber,
|
|
390
|
+
columnNumber: this.columnNumber,
|
|
391
|
+
stack: this.stack,
|
|
392
|
+
// Axios
|
|
393
|
+
config: this.config,
|
|
394
|
+
code: this.code,
|
|
395
|
+
status: this.response && this.response.status ? this.response.status : null
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
var prototype = AxiosError.prototype;
|
|
400
|
+
var descriptors = {};
|
|
401
|
+
[
|
|
402
|
+
"ERR_BAD_OPTION_VALUE",
|
|
403
|
+
"ERR_BAD_OPTION",
|
|
404
|
+
"ECONNABORTED",
|
|
405
|
+
"ETIMEDOUT",
|
|
406
|
+
"ERR_NETWORK",
|
|
407
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
408
|
+
"ERR_DEPRECATED",
|
|
409
|
+
"ERR_BAD_RESPONSE",
|
|
410
|
+
"ERR_BAD_REQUEST",
|
|
411
|
+
"ERR_CANCELED"
|
|
412
|
+
// eslint-disable-next-line func-names
|
|
413
|
+
].forEach(function(code) {
|
|
414
|
+
descriptors[code] = { value: code };
|
|
415
|
+
});
|
|
416
|
+
Object.defineProperties(AxiosError, descriptors);
|
|
417
|
+
Object.defineProperty(prototype, "isAxiosError", { value: true });
|
|
418
|
+
AxiosError.from = function(error, code, config, request, response, customProps) {
|
|
419
|
+
var axiosError = Object.create(prototype);
|
|
420
|
+
utils.toFlatObject(error, axiosError, function filter(obj) {
|
|
421
|
+
return obj !== Error.prototype;
|
|
422
|
+
});
|
|
423
|
+
AxiosError.call(axiosError, error.message, code, config, request, response);
|
|
424
|
+
axiosError.name = error.name;
|
|
425
|
+
customProps && Object.assign(axiosError, customProps);
|
|
426
|
+
return axiosError;
|
|
427
|
+
};
|
|
428
|
+
module.exports = AxiosError;
|
|
429
|
+
}
|
|
430
|
+
});
|
|
431
|
+
|
|
432
|
+
// node_modules/axios/lib/defaults/transitional.js
|
|
433
|
+
var require_transitional = __commonJS({
|
|
434
|
+
"node_modules/axios/lib/defaults/transitional.js"(exports, module) {
|
|
435
|
+
"use strict";
|
|
436
|
+
module.exports = {
|
|
437
|
+
silentJSONParsing: true,
|
|
438
|
+
forcedJSONParsing: true,
|
|
439
|
+
clarifyTimeoutError: false
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
});
|
|
443
|
+
|
|
444
|
+
// node_modules/axios/lib/helpers/toFormData.js
|
|
445
|
+
var require_toFormData = __commonJS({
|
|
446
|
+
"node_modules/axios/lib/helpers/toFormData.js"(exports, module) {
|
|
447
|
+
"use strict";
|
|
448
|
+
var utils = require_utils();
|
|
449
|
+
function toFormData(obj, formData) {
|
|
450
|
+
formData = formData || new FormData();
|
|
451
|
+
var stack = [];
|
|
452
|
+
function convertValue(value) {
|
|
453
|
+
if (value === null)
|
|
454
|
+
return "";
|
|
455
|
+
if (utils.isDate(value)) {
|
|
456
|
+
return value.toISOString();
|
|
457
|
+
}
|
|
458
|
+
if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {
|
|
459
|
+
return typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
|
|
460
|
+
}
|
|
461
|
+
return value;
|
|
462
|
+
}
|
|
463
|
+
function build(data, parentKey) {
|
|
464
|
+
if (utils.isPlainObject(data) || utils.isArray(data)) {
|
|
465
|
+
if (stack.indexOf(data) !== -1) {
|
|
466
|
+
throw Error("Circular reference detected in " + parentKey);
|
|
467
|
+
}
|
|
468
|
+
stack.push(data);
|
|
469
|
+
utils.forEach(data, function each(value, key) {
|
|
470
|
+
if (utils.isUndefined(value))
|
|
471
|
+
return;
|
|
472
|
+
var fullKey = parentKey ? parentKey + "." + key : key;
|
|
473
|
+
var arr;
|
|
474
|
+
if (value && !parentKey && typeof value === "object") {
|
|
475
|
+
if (utils.endsWith(key, "{}")) {
|
|
476
|
+
value = JSON.stringify(value);
|
|
477
|
+
} else if (utils.endsWith(key, "[]") && (arr = utils.toArray(value))) {
|
|
478
|
+
arr.forEach(function(el) {
|
|
479
|
+
!utils.isUndefined(el) && formData.append(fullKey, convertValue(el));
|
|
480
|
+
});
|
|
481
|
+
return;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
build(value, fullKey);
|
|
485
|
+
});
|
|
486
|
+
stack.pop();
|
|
487
|
+
} else {
|
|
488
|
+
formData.append(parentKey, convertValue(data));
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
build(obj);
|
|
492
|
+
return formData;
|
|
493
|
+
}
|
|
494
|
+
module.exports = toFormData;
|
|
495
|
+
}
|
|
496
|
+
});
|
|
497
|
+
|
|
498
|
+
// node_modules/axios/lib/core/settle.js
|
|
499
|
+
var require_settle = __commonJS({
|
|
500
|
+
"node_modules/axios/lib/core/settle.js"(exports, module) {
|
|
501
|
+
"use strict";
|
|
502
|
+
var AxiosError = require_AxiosError();
|
|
503
|
+
module.exports = function settle(resolve, reject, response) {
|
|
504
|
+
var validateStatus = response.config.validateStatus;
|
|
505
|
+
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
506
|
+
resolve(response);
|
|
507
|
+
} else {
|
|
508
|
+
reject(new AxiosError(
|
|
509
|
+
"Request failed with status code " + response.status,
|
|
510
|
+
[AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
511
|
+
response.config,
|
|
512
|
+
response.request,
|
|
513
|
+
response
|
|
514
|
+
));
|
|
515
|
+
}
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
});
|
|
519
|
+
|
|
520
|
+
// node_modules/axios/lib/helpers/cookies.js
|
|
521
|
+
var require_cookies = __commonJS({
|
|
522
|
+
"node_modules/axios/lib/helpers/cookies.js"(exports, module) {
|
|
523
|
+
"use strict";
|
|
524
|
+
var utils = require_utils();
|
|
525
|
+
module.exports = utils.isStandardBrowserEnv() ? (
|
|
526
|
+
// Standard browser envs support document.cookie
|
|
527
|
+
function standardBrowserEnv() {
|
|
528
|
+
return {
|
|
529
|
+
write: function write(name, value, expires, path, domain, secure) {
|
|
530
|
+
var cookie = [];
|
|
531
|
+
cookie.push(name + "=" + encodeURIComponent(value));
|
|
532
|
+
if (utils.isNumber(expires)) {
|
|
533
|
+
cookie.push("expires=" + new Date(expires).toGMTString());
|
|
534
|
+
}
|
|
535
|
+
if (utils.isString(path)) {
|
|
536
|
+
cookie.push("path=" + path);
|
|
537
|
+
}
|
|
538
|
+
if (utils.isString(domain)) {
|
|
539
|
+
cookie.push("domain=" + domain);
|
|
540
|
+
}
|
|
541
|
+
if (secure === true) {
|
|
542
|
+
cookie.push("secure");
|
|
543
|
+
}
|
|
544
|
+
document.cookie = cookie.join("; ");
|
|
545
|
+
},
|
|
546
|
+
read: function read(name) {
|
|
547
|
+
var match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
548
|
+
return match ? decodeURIComponent(match[3]) : null;
|
|
549
|
+
},
|
|
550
|
+
remove: function remove(name) {
|
|
551
|
+
this.write(name, "", Date.now() - 864e5);
|
|
552
|
+
}
|
|
553
|
+
};
|
|
554
|
+
}()
|
|
555
|
+
) : (
|
|
556
|
+
// Non standard browser env (web workers, react-native) lack needed support.
|
|
557
|
+
function nonStandardBrowserEnv() {
|
|
558
|
+
return {
|
|
559
|
+
write: function write() {
|
|
560
|
+
},
|
|
561
|
+
read: function read() {
|
|
562
|
+
return null;
|
|
563
|
+
},
|
|
564
|
+
remove: function remove() {
|
|
565
|
+
}
|
|
566
|
+
};
|
|
567
|
+
}()
|
|
568
|
+
);
|
|
569
|
+
}
|
|
570
|
+
});
|
|
571
|
+
|
|
572
|
+
// node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
573
|
+
var require_isAbsoluteURL = __commonJS({
|
|
574
|
+
"node_modules/axios/lib/helpers/isAbsoluteURL.js"(exports, module) {
|
|
575
|
+
"use strict";
|
|
576
|
+
module.exports = function isAbsoluteURL(url) {
|
|
577
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
578
|
+
};
|
|
579
|
+
}
|
|
580
|
+
});
|
|
581
|
+
|
|
582
|
+
// node_modules/axios/lib/helpers/combineURLs.js
|
|
583
|
+
var require_combineURLs = __commonJS({
|
|
584
|
+
"node_modules/axios/lib/helpers/combineURLs.js"(exports, module) {
|
|
585
|
+
"use strict";
|
|
586
|
+
module.exports = function combineURLs(baseURL, relativeURL) {
|
|
587
|
+
return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
588
|
+
};
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
|
|
592
|
+
// node_modules/axios/lib/core/buildFullPath.js
|
|
593
|
+
var require_buildFullPath = __commonJS({
|
|
594
|
+
"node_modules/axios/lib/core/buildFullPath.js"(exports, module) {
|
|
595
|
+
"use strict";
|
|
596
|
+
var isAbsoluteURL = require_isAbsoluteURL();
|
|
597
|
+
var combineURLs = require_combineURLs();
|
|
598
|
+
module.exports = function buildFullPath(baseURL, requestedURL) {
|
|
599
|
+
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
|
600
|
+
return combineURLs(baseURL, requestedURL);
|
|
601
|
+
}
|
|
602
|
+
return requestedURL;
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
});
|
|
606
|
+
|
|
607
|
+
// node_modules/axios/lib/helpers/parseHeaders.js
|
|
608
|
+
var require_parseHeaders = __commonJS({
|
|
609
|
+
"node_modules/axios/lib/helpers/parseHeaders.js"(exports, module) {
|
|
610
|
+
"use strict";
|
|
611
|
+
var utils = require_utils();
|
|
612
|
+
var ignoreDuplicateOf = [
|
|
613
|
+
"age",
|
|
614
|
+
"authorization",
|
|
615
|
+
"content-length",
|
|
616
|
+
"content-type",
|
|
617
|
+
"etag",
|
|
618
|
+
"expires",
|
|
619
|
+
"from",
|
|
620
|
+
"host",
|
|
621
|
+
"if-modified-since",
|
|
622
|
+
"if-unmodified-since",
|
|
623
|
+
"last-modified",
|
|
624
|
+
"location",
|
|
625
|
+
"max-forwards",
|
|
626
|
+
"proxy-authorization",
|
|
627
|
+
"referer",
|
|
628
|
+
"retry-after",
|
|
629
|
+
"user-agent"
|
|
630
|
+
];
|
|
631
|
+
module.exports = function parseHeaders(headers) {
|
|
632
|
+
var parsed = {};
|
|
633
|
+
var key;
|
|
634
|
+
var val;
|
|
635
|
+
var i;
|
|
636
|
+
if (!headers) {
|
|
637
|
+
return parsed;
|
|
638
|
+
}
|
|
639
|
+
utils.forEach(headers.split("\n"), function parser(line) {
|
|
640
|
+
i = line.indexOf(":");
|
|
641
|
+
key = utils.trim(line.substr(0, i)).toLowerCase();
|
|
642
|
+
val = utils.trim(line.substr(i + 1));
|
|
643
|
+
if (key) {
|
|
644
|
+
if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
|
|
645
|
+
return;
|
|
646
|
+
}
|
|
647
|
+
if (key === "set-cookie") {
|
|
648
|
+
parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
|
|
649
|
+
} else {
|
|
650
|
+
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
});
|
|
654
|
+
return parsed;
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
});
|
|
658
|
+
|
|
659
|
+
// node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
660
|
+
var require_isURLSameOrigin = __commonJS({
|
|
661
|
+
"node_modules/axios/lib/helpers/isURLSameOrigin.js"(exports, module) {
|
|
662
|
+
"use strict";
|
|
663
|
+
var utils = require_utils();
|
|
664
|
+
module.exports = utils.isStandardBrowserEnv() ? (
|
|
665
|
+
// Standard browser envs have full support of the APIs needed to test
|
|
666
|
+
// whether the request URL is of the same origin as current location.
|
|
667
|
+
function standardBrowserEnv() {
|
|
668
|
+
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
669
|
+
var urlParsingNode = document.createElement("a");
|
|
670
|
+
var originURL;
|
|
671
|
+
function resolveURL(url) {
|
|
672
|
+
var href = url;
|
|
673
|
+
if (msie) {
|
|
674
|
+
urlParsingNode.setAttribute("href", href);
|
|
675
|
+
href = urlParsingNode.href;
|
|
676
|
+
}
|
|
677
|
+
urlParsingNode.setAttribute("href", href);
|
|
678
|
+
return {
|
|
679
|
+
href: urlParsingNode.href,
|
|
680
|
+
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
|
|
681
|
+
host: urlParsingNode.host,
|
|
682
|
+
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
|
|
683
|
+
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
|
|
684
|
+
hostname: urlParsingNode.hostname,
|
|
685
|
+
port: urlParsingNode.port,
|
|
686
|
+
pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
|
|
687
|
+
};
|
|
688
|
+
}
|
|
689
|
+
originURL = resolveURL(window.location.href);
|
|
690
|
+
return function isURLSameOrigin(requestURL) {
|
|
691
|
+
var parsed = utils.isString(requestURL) ? resolveURL(requestURL) : requestURL;
|
|
692
|
+
return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
|
|
693
|
+
};
|
|
694
|
+
}()
|
|
695
|
+
) : (
|
|
696
|
+
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
697
|
+
function nonStandardBrowserEnv() {
|
|
698
|
+
return function isURLSameOrigin() {
|
|
699
|
+
return true;
|
|
700
|
+
};
|
|
701
|
+
}()
|
|
702
|
+
);
|
|
703
|
+
}
|
|
704
|
+
});
|
|
705
|
+
|
|
706
|
+
// node_modules/axios/lib/cancel/CanceledError.js
|
|
707
|
+
var require_CanceledError = __commonJS({
|
|
708
|
+
"node_modules/axios/lib/cancel/CanceledError.js"(exports, module) {
|
|
709
|
+
"use strict";
|
|
710
|
+
var AxiosError = require_AxiosError();
|
|
711
|
+
var utils = require_utils();
|
|
712
|
+
function CanceledError(message) {
|
|
713
|
+
AxiosError.call(this, message == null ? "canceled" : message, AxiosError.ERR_CANCELED);
|
|
714
|
+
this.name = "CanceledError";
|
|
715
|
+
}
|
|
716
|
+
utils.inherits(CanceledError, AxiosError, {
|
|
717
|
+
__CANCEL__: true
|
|
718
|
+
});
|
|
719
|
+
module.exports = CanceledError;
|
|
720
|
+
}
|
|
721
|
+
});
|
|
722
|
+
|
|
723
|
+
// node_modules/axios/lib/helpers/parseProtocol.js
|
|
724
|
+
var require_parseProtocol = __commonJS({
|
|
725
|
+
"node_modules/axios/lib/helpers/parseProtocol.js"(exports, module) {
|
|
726
|
+
"use strict";
|
|
727
|
+
module.exports = function parseProtocol(url) {
|
|
728
|
+
var match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
729
|
+
return match && match[1] || "";
|
|
730
|
+
};
|
|
731
|
+
}
|
|
732
|
+
});
|
|
733
|
+
|
|
734
|
+
// node_modules/axios/lib/adapters/xhr.js
|
|
735
|
+
var require_xhr = __commonJS({
|
|
736
|
+
"node_modules/axios/lib/adapters/xhr.js"(exports, module) {
|
|
737
|
+
"use strict";
|
|
738
|
+
var utils = require_utils();
|
|
739
|
+
var settle = require_settle();
|
|
740
|
+
var cookies = require_cookies();
|
|
741
|
+
var buildURL = require_buildURL();
|
|
742
|
+
var buildFullPath = require_buildFullPath();
|
|
743
|
+
var parseHeaders = require_parseHeaders();
|
|
744
|
+
var isURLSameOrigin = require_isURLSameOrigin();
|
|
745
|
+
var transitionalDefaults = require_transitional();
|
|
746
|
+
var AxiosError = require_AxiosError();
|
|
747
|
+
var CanceledError = require_CanceledError();
|
|
748
|
+
var parseProtocol = require_parseProtocol();
|
|
749
|
+
module.exports = function xhrAdapter(config) {
|
|
750
|
+
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
751
|
+
var requestData = config.data;
|
|
752
|
+
var requestHeaders = config.headers;
|
|
753
|
+
var responseType = config.responseType;
|
|
754
|
+
var onCanceled;
|
|
755
|
+
function done() {
|
|
756
|
+
if (config.cancelToken) {
|
|
757
|
+
config.cancelToken.unsubscribe(onCanceled);
|
|
758
|
+
}
|
|
759
|
+
if (config.signal) {
|
|
760
|
+
config.signal.removeEventListener("abort", onCanceled);
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
if (utils.isFormData(requestData) && utils.isStandardBrowserEnv()) {
|
|
764
|
+
delete requestHeaders["Content-Type"];
|
|
765
|
+
}
|
|
766
|
+
var request = new XMLHttpRequest();
|
|
767
|
+
if (config.auth) {
|
|
768
|
+
var username = config.auth.username || "";
|
|
769
|
+
var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : "";
|
|
770
|
+
requestHeaders.Authorization = "Basic " + btoa(username + ":" + password);
|
|
771
|
+
}
|
|
772
|
+
var fullPath = buildFullPath(config.baseURL, config.url);
|
|
773
|
+
request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
|
|
774
|
+
request.timeout = config.timeout;
|
|
775
|
+
function onloadend() {
|
|
776
|
+
if (!request) {
|
|
777
|
+
return;
|
|
778
|
+
}
|
|
779
|
+
var responseHeaders = "getAllResponseHeaders" in request ? parseHeaders(request.getAllResponseHeaders()) : null;
|
|
780
|
+
var responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response;
|
|
781
|
+
var response = {
|
|
782
|
+
data: responseData,
|
|
783
|
+
status: request.status,
|
|
784
|
+
statusText: request.statusText,
|
|
785
|
+
headers: responseHeaders,
|
|
786
|
+
config,
|
|
787
|
+
request
|
|
788
|
+
};
|
|
789
|
+
settle(function _resolve(value) {
|
|
790
|
+
resolve(value);
|
|
791
|
+
done();
|
|
792
|
+
}, function _reject(err) {
|
|
793
|
+
reject(err);
|
|
794
|
+
done();
|
|
795
|
+
}, response);
|
|
796
|
+
request = null;
|
|
797
|
+
}
|
|
798
|
+
if ("onloadend" in request) {
|
|
799
|
+
request.onloadend = onloadend;
|
|
800
|
+
} else {
|
|
801
|
+
request.onreadystatechange = function handleLoad() {
|
|
802
|
+
if (!request || request.readyState !== 4) {
|
|
803
|
+
return;
|
|
804
|
+
}
|
|
805
|
+
if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {
|
|
806
|
+
return;
|
|
807
|
+
}
|
|
808
|
+
setTimeout(onloadend);
|
|
809
|
+
};
|
|
810
|
+
}
|
|
811
|
+
request.onabort = function handleAbort() {
|
|
812
|
+
if (!request) {
|
|
813
|
+
return;
|
|
814
|
+
}
|
|
815
|
+
reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
|
|
816
|
+
request = null;
|
|
817
|
+
};
|
|
818
|
+
request.onerror = function handleError() {
|
|
819
|
+
reject(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request, request));
|
|
820
|
+
request = null;
|
|
821
|
+
};
|
|
822
|
+
request.ontimeout = function handleTimeout() {
|
|
823
|
+
var timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
|
|
824
|
+
var transitional = config.transitional || transitionalDefaults;
|
|
825
|
+
if (config.timeoutErrorMessage) {
|
|
826
|
+
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
827
|
+
}
|
|
828
|
+
reject(new AxiosError(
|
|
829
|
+
timeoutErrorMessage,
|
|
830
|
+
transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
831
|
+
config,
|
|
832
|
+
request
|
|
833
|
+
));
|
|
834
|
+
request = null;
|
|
835
|
+
};
|
|
836
|
+
if (utils.isStandardBrowserEnv()) {
|
|
837
|
+
var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies.read(config.xsrfCookieName) : void 0;
|
|
838
|
+
if (xsrfValue) {
|
|
839
|
+
requestHeaders[config.xsrfHeaderName] = xsrfValue;
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
if ("setRequestHeader" in request) {
|
|
843
|
+
utils.forEach(requestHeaders, function setRequestHeader(val, key) {
|
|
844
|
+
if (typeof requestData === "undefined" && key.toLowerCase() === "content-type") {
|
|
845
|
+
delete requestHeaders[key];
|
|
846
|
+
} else {
|
|
847
|
+
request.setRequestHeader(key, val);
|
|
848
|
+
}
|
|
849
|
+
});
|
|
850
|
+
}
|
|
851
|
+
if (!utils.isUndefined(config.withCredentials)) {
|
|
852
|
+
request.withCredentials = !!config.withCredentials;
|
|
853
|
+
}
|
|
854
|
+
if (responseType && responseType !== "json") {
|
|
855
|
+
request.responseType = config.responseType;
|
|
856
|
+
}
|
|
857
|
+
if (typeof config.onDownloadProgress === "function") {
|
|
858
|
+
request.addEventListener("progress", config.onDownloadProgress);
|
|
859
|
+
}
|
|
860
|
+
if (typeof config.onUploadProgress === "function" && request.upload) {
|
|
861
|
+
request.upload.addEventListener("progress", config.onUploadProgress);
|
|
862
|
+
}
|
|
863
|
+
if (config.cancelToken || config.signal) {
|
|
864
|
+
onCanceled = function(cancel) {
|
|
865
|
+
if (!request) {
|
|
866
|
+
return;
|
|
867
|
+
}
|
|
868
|
+
reject(!cancel || cancel && cancel.type ? new CanceledError() : cancel);
|
|
869
|
+
request.abort();
|
|
870
|
+
request = null;
|
|
871
|
+
};
|
|
872
|
+
config.cancelToken && config.cancelToken.subscribe(onCanceled);
|
|
873
|
+
if (config.signal) {
|
|
874
|
+
config.signal.aborted ? onCanceled() : config.signal.addEventListener("abort", onCanceled);
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
if (!requestData) {
|
|
878
|
+
requestData = null;
|
|
879
|
+
}
|
|
880
|
+
var protocol = parseProtocol(fullPath);
|
|
881
|
+
if (protocol && ["http", "https", "file"].indexOf(protocol) === -1) {
|
|
882
|
+
reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
|
|
883
|
+
return;
|
|
884
|
+
}
|
|
885
|
+
request.send(requestData);
|
|
886
|
+
});
|
|
887
|
+
};
|
|
888
|
+
}
|
|
889
|
+
});
|
|
890
|
+
|
|
891
|
+
// node_modules/axios/lib/helpers/null.js
|
|
892
|
+
var require_null = __commonJS({
|
|
893
|
+
"node_modules/axios/lib/helpers/null.js"(exports, module) {
|
|
894
|
+
module.exports = null;
|
|
895
|
+
}
|
|
896
|
+
});
|
|
897
|
+
|
|
898
|
+
// node_modules/axios/lib/defaults/index.js
|
|
899
|
+
var require_defaults = __commonJS({
|
|
900
|
+
"node_modules/axios/lib/defaults/index.js"(exports, module) {
|
|
901
|
+
"use strict";
|
|
902
|
+
var utils = require_utils();
|
|
903
|
+
var normalizeHeaderName = require_normalizeHeaderName();
|
|
904
|
+
var AxiosError = require_AxiosError();
|
|
905
|
+
var transitionalDefaults = require_transitional();
|
|
906
|
+
var toFormData = require_toFormData();
|
|
907
|
+
var DEFAULT_CONTENT_TYPE = {
|
|
908
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
909
|
+
};
|
|
910
|
+
function setContentTypeIfUnset(headers, value) {
|
|
911
|
+
if (!utils.isUndefined(headers) && utils.isUndefined(headers["Content-Type"])) {
|
|
912
|
+
headers["Content-Type"] = value;
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
function getDefaultAdapter() {
|
|
916
|
+
var adapter;
|
|
917
|
+
if (typeof XMLHttpRequest !== "undefined") {
|
|
918
|
+
adapter = require_xhr();
|
|
919
|
+
} else if (typeof process !== "undefined" && Object.prototype.toString.call(process) === "[object process]") {
|
|
920
|
+
adapter = require_xhr();
|
|
921
|
+
}
|
|
922
|
+
return adapter;
|
|
923
|
+
}
|
|
924
|
+
function stringifySafely(rawValue, parser, encoder) {
|
|
925
|
+
if (utils.isString(rawValue)) {
|
|
926
|
+
try {
|
|
927
|
+
(parser || JSON.parse)(rawValue);
|
|
928
|
+
return utils.trim(rawValue);
|
|
929
|
+
} catch (e) {
|
|
930
|
+
if (e.name !== "SyntaxError") {
|
|
931
|
+
throw e;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
return (encoder || JSON.stringify)(rawValue);
|
|
936
|
+
}
|
|
937
|
+
var defaults = {
|
|
938
|
+
transitional: transitionalDefaults,
|
|
939
|
+
adapter: getDefaultAdapter(),
|
|
940
|
+
transformRequest: [function transformRequest(data, headers) {
|
|
941
|
+
normalizeHeaderName(headers, "Accept");
|
|
942
|
+
normalizeHeaderName(headers, "Content-Type");
|
|
943
|
+
if (utils.isFormData(data) || utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data)) {
|
|
944
|
+
return data;
|
|
945
|
+
}
|
|
946
|
+
if (utils.isArrayBufferView(data)) {
|
|
947
|
+
return data.buffer;
|
|
948
|
+
}
|
|
949
|
+
if (utils.isURLSearchParams(data)) {
|
|
950
|
+
setContentTypeIfUnset(headers, "application/x-www-form-urlencoded;charset=utf-8");
|
|
951
|
+
return data.toString();
|
|
952
|
+
}
|
|
953
|
+
var isObjectPayload = utils.isObject(data);
|
|
954
|
+
var contentType = headers && headers["Content-Type"];
|
|
955
|
+
var isFileList;
|
|
956
|
+
if ((isFileList = utils.isFileList(data)) || isObjectPayload && contentType === "multipart/form-data") {
|
|
957
|
+
var _FormData = this.env && this.env.FormData;
|
|
958
|
+
return toFormData(isFileList ? { "files[]": data } : data, _FormData && new _FormData());
|
|
959
|
+
} else if (isObjectPayload || contentType === "application/json") {
|
|
960
|
+
setContentTypeIfUnset(headers, "application/json");
|
|
961
|
+
return stringifySafely(data);
|
|
962
|
+
}
|
|
963
|
+
return data;
|
|
964
|
+
}],
|
|
965
|
+
transformResponse: [function transformResponse(data) {
|
|
966
|
+
var transitional = this.transitional || defaults.transitional;
|
|
967
|
+
var silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
968
|
+
var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
969
|
+
var strictJSONParsing = !silentJSONParsing && this.responseType === "json";
|
|
970
|
+
if (strictJSONParsing || forcedJSONParsing && utils.isString(data) && data.length) {
|
|
971
|
+
try {
|
|
972
|
+
return JSON.parse(data);
|
|
973
|
+
} catch (e) {
|
|
974
|
+
if (strictJSONParsing) {
|
|
975
|
+
if (e.name === "SyntaxError") {
|
|
976
|
+
throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
977
|
+
}
|
|
978
|
+
throw e;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
return data;
|
|
983
|
+
}],
|
|
984
|
+
/**
|
|
985
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
986
|
+
* timeout is not created.
|
|
987
|
+
*/
|
|
988
|
+
timeout: 0,
|
|
989
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
990
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
991
|
+
maxContentLength: -1,
|
|
992
|
+
maxBodyLength: -1,
|
|
993
|
+
env: {
|
|
994
|
+
FormData: require_null()
|
|
995
|
+
},
|
|
996
|
+
validateStatus: function validateStatus(status) {
|
|
997
|
+
return status >= 200 && status < 300;
|
|
998
|
+
},
|
|
999
|
+
headers: {
|
|
1000
|
+
common: {
|
|
1001
|
+
"Accept": "application/json, text/plain, */*"
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
};
|
|
1005
|
+
utils.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
|
|
1006
|
+
defaults.headers[method] = {};
|
|
1007
|
+
});
|
|
1008
|
+
utils.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
1009
|
+
defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
|
|
1010
|
+
});
|
|
1011
|
+
module.exports = defaults;
|
|
1012
|
+
}
|
|
1013
|
+
});
|
|
1014
|
+
|
|
1015
|
+
// node_modules/axios/lib/core/transformData.js
|
|
1016
|
+
var require_transformData = __commonJS({
|
|
1017
|
+
"node_modules/axios/lib/core/transformData.js"(exports, module) {
|
|
1018
|
+
"use strict";
|
|
1019
|
+
var utils = require_utils();
|
|
1020
|
+
var defaults = require_defaults();
|
|
1021
|
+
module.exports = function transformData(data, headers, fns) {
|
|
1022
|
+
var context = this || defaults;
|
|
1023
|
+
utils.forEach(fns, function transform(fn) {
|
|
1024
|
+
data = fn.call(context, data, headers);
|
|
1025
|
+
});
|
|
1026
|
+
return data;
|
|
1027
|
+
};
|
|
1028
|
+
}
|
|
1029
|
+
});
|
|
1030
|
+
|
|
1031
|
+
// node_modules/axios/lib/cancel/isCancel.js
|
|
1032
|
+
var require_isCancel = __commonJS({
|
|
1033
|
+
"node_modules/axios/lib/cancel/isCancel.js"(exports, module) {
|
|
1034
|
+
"use strict";
|
|
1035
|
+
module.exports = function isCancel(value) {
|
|
1036
|
+
return !!(value && value.__CANCEL__);
|
|
1037
|
+
};
|
|
1038
|
+
}
|
|
1039
|
+
});
|
|
1040
|
+
|
|
1041
|
+
// node_modules/axios/lib/core/dispatchRequest.js
|
|
1042
|
+
var require_dispatchRequest = __commonJS({
|
|
1043
|
+
"node_modules/axios/lib/core/dispatchRequest.js"(exports, module) {
|
|
1044
|
+
"use strict";
|
|
1045
|
+
var utils = require_utils();
|
|
1046
|
+
var transformData = require_transformData();
|
|
1047
|
+
var isCancel = require_isCancel();
|
|
1048
|
+
var defaults = require_defaults();
|
|
1049
|
+
var CanceledError = require_CanceledError();
|
|
1050
|
+
function throwIfCancellationRequested(config) {
|
|
1051
|
+
if (config.cancelToken) {
|
|
1052
|
+
config.cancelToken.throwIfRequested();
|
|
1053
|
+
}
|
|
1054
|
+
if (config.signal && config.signal.aborted) {
|
|
1055
|
+
throw new CanceledError();
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
module.exports = function dispatchRequest(config) {
|
|
1059
|
+
throwIfCancellationRequested(config);
|
|
1060
|
+
config.headers = config.headers || {};
|
|
1061
|
+
config.data = transformData.call(
|
|
1062
|
+
config,
|
|
1063
|
+
config.data,
|
|
1064
|
+
config.headers,
|
|
1065
|
+
config.transformRequest
|
|
1066
|
+
);
|
|
1067
|
+
config.headers = utils.merge(
|
|
1068
|
+
config.headers.common || {},
|
|
1069
|
+
config.headers[config.method] || {},
|
|
1070
|
+
config.headers
|
|
1071
|
+
);
|
|
1072
|
+
utils.forEach(
|
|
1073
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1074
|
+
function cleanHeaderConfig(method) {
|
|
1075
|
+
delete config.headers[method];
|
|
1076
|
+
}
|
|
1077
|
+
);
|
|
1078
|
+
var adapter = config.adapter || defaults.adapter;
|
|
1079
|
+
return adapter(config).then(function onAdapterResolution(response) {
|
|
1080
|
+
throwIfCancellationRequested(config);
|
|
1081
|
+
response.data = transformData.call(
|
|
1082
|
+
config,
|
|
1083
|
+
response.data,
|
|
1084
|
+
response.headers,
|
|
1085
|
+
config.transformResponse
|
|
1086
|
+
);
|
|
1087
|
+
return response;
|
|
1088
|
+
}, function onAdapterRejection(reason) {
|
|
1089
|
+
if (!isCancel(reason)) {
|
|
1090
|
+
throwIfCancellationRequested(config);
|
|
1091
|
+
if (reason && reason.response) {
|
|
1092
|
+
reason.response.data = transformData.call(
|
|
1093
|
+
config,
|
|
1094
|
+
reason.response.data,
|
|
1095
|
+
reason.response.headers,
|
|
1096
|
+
config.transformResponse
|
|
1097
|
+
);
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
return Promise.reject(reason);
|
|
1101
|
+
});
|
|
1102
|
+
};
|
|
1103
|
+
}
|
|
1104
|
+
});
|
|
1105
|
+
|
|
1106
|
+
// node_modules/axios/lib/core/mergeConfig.js
|
|
1107
|
+
var require_mergeConfig = __commonJS({
|
|
1108
|
+
"node_modules/axios/lib/core/mergeConfig.js"(exports, module) {
|
|
1109
|
+
"use strict";
|
|
1110
|
+
var utils = require_utils();
|
|
1111
|
+
module.exports = function mergeConfig(config1, config2) {
|
|
1112
|
+
config2 = config2 || {};
|
|
1113
|
+
var config = {};
|
|
1114
|
+
function getMergedValue(target, source) {
|
|
1115
|
+
if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
|
|
1116
|
+
return utils.merge(target, source);
|
|
1117
|
+
} else if (utils.isPlainObject(source)) {
|
|
1118
|
+
return utils.merge({}, source);
|
|
1119
|
+
} else if (utils.isArray(source)) {
|
|
1120
|
+
return source.slice();
|
|
1121
|
+
}
|
|
1122
|
+
return source;
|
|
1123
|
+
}
|
|
1124
|
+
function mergeDeepProperties(prop) {
|
|
1125
|
+
if (!utils.isUndefined(config2[prop])) {
|
|
1126
|
+
return getMergedValue(config1[prop], config2[prop]);
|
|
1127
|
+
} else if (!utils.isUndefined(config1[prop])) {
|
|
1128
|
+
return getMergedValue(void 0, config1[prop]);
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
function valueFromConfig2(prop) {
|
|
1132
|
+
if (!utils.isUndefined(config2[prop])) {
|
|
1133
|
+
return getMergedValue(void 0, config2[prop]);
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
function defaultToConfig2(prop) {
|
|
1137
|
+
if (!utils.isUndefined(config2[prop])) {
|
|
1138
|
+
return getMergedValue(void 0, config2[prop]);
|
|
1139
|
+
} else if (!utils.isUndefined(config1[prop])) {
|
|
1140
|
+
return getMergedValue(void 0, config1[prop]);
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
function mergeDirectKeys(prop) {
|
|
1144
|
+
if (prop in config2) {
|
|
1145
|
+
return getMergedValue(config1[prop], config2[prop]);
|
|
1146
|
+
} else if (prop in config1) {
|
|
1147
|
+
return getMergedValue(void 0, config1[prop]);
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
var mergeMap = {
|
|
1151
|
+
"url": valueFromConfig2,
|
|
1152
|
+
"method": valueFromConfig2,
|
|
1153
|
+
"data": valueFromConfig2,
|
|
1154
|
+
"baseURL": defaultToConfig2,
|
|
1155
|
+
"transformRequest": defaultToConfig2,
|
|
1156
|
+
"transformResponse": defaultToConfig2,
|
|
1157
|
+
"paramsSerializer": defaultToConfig2,
|
|
1158
|
+
"timeout": defaultToConfig2,
|
|
1159
|
+
"timeoutMessage": defaultToConfig2,
|
|
1160
|
+
"withCredentials": defaultToConfig2,
|
|
1161
|
+
"adapter": defaultToConfig2,
|
|
1162
|
+
"responseType": defaultToConfig2,
|
|
1163
|
+
"xsrfCookieName": defaultToConfig2,
|
|
1164
|
+
"xsrfHeaderName": defaultToConfig2,
|
|
1165
|
+
"onUploadProgress": defaultToConfig2,
|
|
1166
|
+
"onDownloadProgress": defaultToConfig2,
|
|
1167
|
+
"decompress": defaultToConfig2,
|
|
1168
|
+
"maxContentLength": defaultToConfig2,
|
|
1169
|
+
"maxBodyLength": defaultToConfig2,
|
|
1170
|
+
"beforeRedirect": defaultToConfig2,
|
|
1171
|
+
"transport": defaultToConfig2,
|
|
1172
|
+
"httpAgent": defaultToConfig2,
|
|
1173
|
+
"httpsAgent": defaultToConfig2,
|
|
1174
|
+
"cancelToken": defaultToConfig2,
|
|
1175
|
+
"socketPath": defaultToConfig2,
|
|
1176
|
+
"responseEncoding": defaultToConfig2,
|
|
1177
|
+
"validateStatus": mergeDirectKeys
|
|
1178
|
+
};
|
|
1179
|
+
utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
|
|
1180
|
+
var merge = mergeMap[prop] || mergeDeepProperties;
|
|
1181
|
+
var configValue = merge(prop);
|
|
1182
|
+
utils.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);
|
|
1183
|
+
});
|
|
1184
|
+
return config;
|
|
1185
|
+
};
|
|
1186
|
+
}
|
|
1187
|
+
});
|
|
1188
|
+
|
|
1189
|
+
// node_modules/axios/lib/env/data.js
|
|
1190
|
+
var require_data = __commonJS({
|
|
1191
|
+
"node_modules/axios/lib/env/data.js"(exports, module) {
|
|
1192
|
+
module.exports = {
|
|
1193
|
+
"version": "0.27.2"
|
|
1194
|
+
};
|
|
1195
|
+
}
|
|
1196
|
+
});
|
|
1197
|
+
|
|
1198
|
+
// node_modules/axios/lib/helpers/validator.js
|
|
1199
|
+
var require_validator = __commonJS({
|
|
1200
|
+
"node_modules/axios/lib/helpers/validator.js"(exports, module) {
|
|
1201
|
+
"use strict";
|
|
1202
|
+
var VERSION = require_data().version;
|
|
1203
|
+
var AxiosError = require_AxiosError();
|
|
1204
|
+
var validators = {};
|
|
1205
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type, i) {
|
|
1206
|
+
validators[type] = function validator(thing) {
|
|
1207
|
+
return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type;
|
|
1208
|
+
};
|
|
1209
|
+
});
|
|
1210
|
+
var deprecatedWarnings = {};
|
|
1211
|
+
validators.transitional = function transitional(validator, version, message) {
|
|
1212
|
+
function formatMessage(opt, desc) {
|
|
1213
|
+
return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
|
1214
|
+
}
|
|
1215
|
+
return function(value, opt, opts) {
|
|
1216
|
+
if (validator === false) {
|
|
1217
|
+
throw new AxiosError(
|
|
1218
|
+
formatMessage(opt, " has been removed" + (version ? " in " + version : "")),
|
|
1219
|
+
AxiosError.ERR_DEPRECATED
|
|
1220
|
+
);
|
|
1221
|
+
}
|
|
1222
|
+
if (version && !deprecatedWarnings[opt]) {
|
|
1223
|
+
deprecatedWarnings[opt] = true;
|
|
1224
|
+
console.warn(
|
|
1225
|
+
formatMessage(
|
|
1226
|
+
opt,
|
|
1227
|
+
" has been deprecated since v" + version + " and will be removed in the near future"
|
|
1228
|
+
)
|
|
1229
|
+
);
|
|
1230
|
+
}
|
|
1231
|
+
return validator ? validator(value, opt, opts) : true;
|
|
1232
|
+
};
|
|
1233
|
+
};
|
|
1234
|
+
function assertOptions(options, schema, allowUnknown) {
|
|
1235
|
+
if (typeof options !== "object") {
|
|
1236
|
+
throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
|
|
1237
|
+
}
|
|
1238
|
+
var keys = Object.keys(options);
|
|
1239
|
+
var i = keys.length;
|
|
1240
|
+
while (i-- > 0) {
|
|
1241
|
+
var opt = keys[i];
|
|
1242
|
+
var validator = schema[opt];
|
|
1243
|
+
if (validator) {
|
|
1244
|
+
var value = options[opt];
|
|
1245
|
+
var result = value === void 0 || validator(value, opt, options);
|
|
1246
|
+
if (result !== true) {
|
|
1247
|
+
throw new AxiosError("option " + opt + " must be " + result, AxiosError.ERR_BAD_OPTION_VALUE);
|
|
1248
|
+
}
|
|
1249
|
+
continue;
|
|
1250
|
+
}
|
|
1251
|
+
if (allowUnknown !== true) {
|
|
1252
|
+
throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
module.exports = {
|
|
1257
|
+
assertOptions,
|
|
1258
|
+
validators
|
|
1259
|
+
};
|
|
1260
|
+
}
|
|
1261
|
+
});
|
|
1262
|
+
|
|
1263
|
+
// node_modules/axios/lib/core/Axios.js
|
|
1264
|
+
var require_Axios = __commonJS({
|
|
1265
|
+
"node_modules/axios/lib/core/Axios.js"(exports, module) {
|
|
1266
|
+
"use strict";
|
|
1267
|
+
var utils = require_utils();
|
|
1268
|
+
var buildURL = require_buildURL();
|
|
1269
|
+
var InterceptorManager = require_InterceptorManager();
|
|
1270
|
+
var dispatchRequest = require_dispatchRequest();
|
|
1271
|
+
var mergeConfig = require_mergeConfig();
|
|
1272
|
+
var buildFullPath = require_buildFullPath();
|
|
1273
|
+
var validator = require_validator();
|
|
1274
|
+
var validators = validator.validators;
|
|
1275
|
+
function Axios(instanceConfig) {
|
|
1276
|
+
this.defaults = instanceConfig;
|
|
1277
|
+
this.interceptors = {
|
|
1278
|
+
request: new InterceptorManager(),
|
|
1279
|
+
response: new InterceptorManager()
|
|
1280
|
+
};
|
|
1281
|
+
}
|
|
1282
|
+
Axios.prototype.request = function request(configOrUrl, config) {
|
|
1283
|
+
if (typeof configOrUrl === "string") {
|
|
1284
|
+
config = config || {};
|
|
1285
|
+
config.url = configOrUrl;
|
|
1286
|
+
} else {
|
|
1287
|
+
config = configOrUrl || {};
|
|
1288
|
+
}
|
|
1289
|
+
config = mergeConfig(this.defaults, config);
|
|
1290
|
+
if (config.method) {
|
|
1291
|
+
config.method = config.method.toLowerCase();
|
|
1292
|
+
} else if (this.defaults.method) {
|
|
1293
|
+
config.method = this.defaults.method.toLowerCase();
|
|
1294
|
+
} else {
|
|
1295
|
+
config.method = "get";
|
|
1296
|
+
}
|
|
1297
|
+
var transitional = config.transitional;
|
|
1298
|
+
if (transitional !== void 0) {
|
|
1299
|
+
validator.assertOptions(transitional, {
|
|
1300
|
+
silentJSONParsing: validators.transitional(validators.boolean),
|
|
1301
|
+
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
1302
|
+
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
1303
|
+
}, false);
|
|
1304
|
+
}
|
|
1305
|
+
var requestInterceptorChain = [];
|
|
1306
|
+
var synchronousRequestInterceptors = true;
|
|
1307
|
+
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
1308
|
+
if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config) === false) {
|
|
1309
|
+
return;
|
|
1310
|
+
}
|
|
1311
|
+
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
1312
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
1313
|
+
});
|
|
1314
|
+
var responseInterceptorChain = [];
|
|
1315
|
+
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
1316
|
+
responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
1317
|
+
});
|
|
1318
|
+
var promise;
|
|
1319
|
+
if (!synchronousRequestInterceptors) {
|
|
1320
|
+
var chain = [dispatchRequest, void 0];
|
|
1321
|
+
Array.prototype.unshift.apply(chain, requestInterceptorChain);
|
|
1322
|
+
chain = chain.concat(responseInterceptorChain);
|
|
1323
|
+
promise = Promise.resolve(config);
|
|
1324
|
+
while (chain.length) {
|
|
1325
|
+
promise = promise.then(chain.shift(), chain.shift());
|
|
1326
|
+
}
|
|
1327
|
+
return promise;
|
|
1328
|
+
}
|
|
1329
|
+
var newConfig = config;
|
|
1330
|
+
while (requestInterceptorChain.length) {
|
|
1331
|
+
var onFulfilled = requestInterceptorChain.shift();
|
|
1332
|
+
var onRejected = requestInterceptorChain.shift();
|
|
1333
|
+
try {
|
|
1334
|
+
newConfig = onFulfilled(newConfig);
|
|
1335
|
+
} catch (error) {
|
|
1336
|
+
onRejected(error);
|
|
1337
|
+
break;
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
try {
|
|
1341
|
+
promise = dispatchRequest(newConfig);
|
|
1342
|
+
} catch (error) {
|
|
1343
|
+
return Promise.reject(error);
|
|
1344
|
+
}
|
|
1345
|
+
while (responseInterceptorChain.length) {
|
|
1346
|
+
promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
|
|
1347
|
+
}
|
|
1348
|
+
return promise;
|
|
1349
|
+
};
|
|
1350
|
+
Axios.prototype.getUri = function getUri(config) {
|
|
1351
|
+
config = mergeConfig(this.defaults, config);
|
|
1352
|
+
var fullPath = buildFullPath(config.baseURL, config.url);
|
|
1353
|
+
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
1354
|
+
};
|
|
1355
|
+
utils.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
1356
|
+
Axios.prototype[method] = function(url, config) {
|
|
1357
|
+
return this.request(mergeConfig(config || {}, {
|
|
1358
|
+
method,
|
|
1359
|
+
url,
|
|
1360
|
+
data: (config || {}).data
|
|
1361
|
+
}));
|
|
1362
|
+
};
|
|
1363
|
+
});
|
|
1364
|
+
utils.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
1365
|
+
function generateHTTPMethod(isForm) {
|
|
1366
|
+
return function httpMethod(url, data, config) {
|
|
1367
|
+
return this.request(mergeConfig(config || {}, {
|
|
1368
|
+
method,
|
|
1369
|
+
headers: isForm ? {
|
|
1370
|
+
"Content-Type": "multipart/form-data"
|
|
1371
|
+
} : {},
|
|
1372
|
+
url,
|
|
1373
|
+
data
|
|
1374
|
+
}));
|
|
1375
|
+
};
|
|
1376
|
+
}
|
|
1377
|
+
Axios.prototype[method] = generateHTTPMethod();
|
|
1378
|
+
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
1379
|
+
});
|
|
1380
|
+
module.exports = Axios;
|
|
1381
|
+
}
|
|
1382
|
+
});
|
|
1383
|
+
|
|
1384
|
+
// node_modules/axios/lib/cancel/CancelToken.js
|
|
1385
|
+
var require_CancelToken = __commonJS({
|
|
1386
|
+
"node_modules/axios/lib/cancel/CancelToken.js"(exports, module) {
|
|
1387
|
+
"use strict";
|
|
1388
|
+
var CanceledError = require_CanceledError();
|
|
1389
|
+
function CancelToken(executor) {
|
|
1390
|
+
if (typeof executor !== "function") {
|
|
1391
|
+
throw new TypeError("executor must be a function.");
|
|
1392
|
+
}
|
|
1393
|
+
var resolvePromise;
|
|
1394
|
+
this.promise = new Promise(function promiseExecutor(resolve) {
|
|
1395
|
+
resolvePromise = resolve;
|
|
1396
|
+
});
|
|
1397
|
+
var token = this;
|
|
1398
|
+
this.promise.then(function(cancel) {
|
|
1399
|
+
if (!token._listeners)
|
|
1400
|
+
return;
|
|
1401
|
+
var i;
|
|
1402
|
+
var l = token._listeners.length;
|
|
1403
|
+
for (i = 0; i < l; i++) {
|
|
1404
|
+
token._listeners[i](cancel);
|
|
1405
|
+
}
|
|
1406
|
+
token._listeners = null;
|
|
1407
|
+
});
|
|
1408
|
+
this.promise.then = function(onfulfilled) {
|
|
1409
|
+
var _resolve;
|
|
1410
|
+
var promise = new Promise(function(resolve) {
|
|
1411
|
+
token.subscribe(resolve);
|
|
1412
|
+
_resolve = resolve;
|
|
1413
|
+
}).then(onfulfilled);
|
|
1414
|
+
promise.cancel = function reject() {
|
|
1415
|
+
token.unsubscribe(_resolve);
|
|
1416
|
+
};
|
|
1417
|
+
return promise;
|
|
1418
|
+
};
|
|
1419
|
+
executor(function cancel(message) {
|
|
1420
|
+
if (token.reason) {
|
|
1421
|
+
return;
|
|
1422
|
+
}
|
|
1423
|
+
token.reason = new CanceledError(message);
|
|
1424
|
+
resolvePromise(token.reason);
|
|
1425
|
+
});
|
|
1426
|
+
}
|
|
1427
|
+
CancelToken.prototype.throwIfRequested = function throwIfRequested() {
|
|
1428
|
+
if (this.reason) {
|
|
1429
|
+
throw this.reason;
|
|
1430
|
+
}
|
|
1431
|
+
};
|
|
1432
|
+
CancelToken.prototype.subscribe = function subscribe(listener) {
|
|
1433
|
+
if (this.reason) {
|
|
1434
|
+
listener(this.reason);
|
|
1435
|
+
return;
|
|
1436
|
+
}
|
|
1437
|
+
if (this._listeners) {
|
|
1438
|
+
this._listeners.push(listener);
|
|
1439
|
+
} else {
|
|
1440
|
+
this._listeners = [listener];
|
|
1441
|
+
}
|
|
1442
|
+
};
|
|
1443
|
+
CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
|
|
1444
|
+
if (!this._listeners) {
|
|
1445
|
+
return;
|
|
1446
|
+
}
|
|
1447
|
+
var index = this._listeners.indexOf(listener);
|
|
1448
|
+
if (index !== -1) {
|
|
1449
|
+
this._listeners.splice(index, 1);
|
|
1450
|
+
}
|
|
1451
|
+
};
|
|
1452
|
+
CancelToken.source = function source() {
|
|
1453
|
+
var cancel;
|
|
1454
|
+
var token = new CancelToken(function executor(c) {
|
|
1455
|
+
cancel = c;
|
|
1456
|
+
});
|
|
1457
|
+
return {
|
|
1458
|
+
token,
|
|
1459
|
+
cancel
|
|
1460
|
+
};
|
|
1461
|
+
};
|
|
1462
|
+
module.exports = CancelToken;
|
|
1463
|
+
}
|
|
1464
|
+
});
|
|
1465
|
+
|
|
1466
|
+
// node_modules/axios/lib/helpers/spread.js
|
|
1467
|
+
var require_spread = __commonJS({
|
|
1468
|
+
"node_modules/axios/lib/helpers/spread.js"(exports, module) {
|
|
1469
|
+
"use strict";
|
|
1470
|
+
module.exports = function spread(callback) {
|
|
1471
|
+
return function wrap(arr) {
|
|
1472
|
+
return callback.apply(null, arr);
|
|
1473
|
+
};
|
|
1474
|
+
};
|
|
1475
|
+
}
|
|
1476
|
+
});
|
|
1477
|
+
|
|
1478
|
+
// node_modules/axios/lib/helpers/isAxiosError.js
|
|
1479
|
+
var require_isAxiosError = __commonJS({
|
|
1480
|
+
"node_modules/axios/lib/helpers/isAxiosError.js"(exports, module) {
|
|
1481
|
+
"use strict";
|
|
1482
|
+
var utils = require_utils();
|
|
1483
|
+
module.exports = function isAxiosError(payload) {
|
|
1484
|
+
return utils.isObject(payload) && payload.isAxiosError === true;
|
|
1485
|
+
};
|
|
1486
|
+
}
|
|
1487
|
+
});
|
|
1488
|
+
|
|
1489
|
+
// node_modules/axios/lib/axios.js
|
|
1490
|
+
var require_axios = __commonJS({
|
|
1491
|
+
"node_modules/axios/lib/axios.js"(exports, module) {
|
|
1492
|
+
"use strict";
|
|
1493
|
+
var utils = require_utils();
|
|
1494
|
+
var bind = require_bind();
|
|
1495
|
+
var Axios = require_Axios();
|
|
1496
|
+
var mergeConfig = require_mergeConfig();
|
|
1497
|
+
var defaults = require_defaults();
|
|
1498
|
+
function createInstance(defaultConfig2) {
|
|
1499
|
+
var context = new Axios(defaultConfig2);
|
|
1500
|
+
var instance = bind(Axios.prototype.request, context);
|
|
1501
|
+
utils.extend(instance, Axios.prototype, context);
|
|
1502
|
+
utils.extend(instance, context);
|
|
1503
|
+
instance.create = function create(instanceConfig) {
|
|
1504
|
+
return createInstance(mergeConfig(defaultConfig2, instanceConfig));
|
|
1505
|
+
};
|
|
1506
|
+
return instance;
|
|
1507
|
+
}
|
|
1508
|
+
var axios2 = createInstance(defaults);
|
|
1509
|
+
axios2.Axios = Axios;
|
|
1510
|
+
axios2.CanceledError = require_CanceledError();
|
|
1511
|
+
axios2.CancelToken = require_CancelToken();
|
|
1512
|
+
axios2.isCancel = require_isCancel();
|
|
1513
|
+
axios2.VERSION = require_data().version;
|
|
1514
|
+
axios2.toFormData = require_toFormData();
|
|
1515
|
+
axios2.AxiosError = require_AxiosError();
|
|
1516
|
+
axios2.Cancel = axios2.CanceledError;
|
|
1517
|
+
axios2.all = function all(promises) {
|
|
1518
|
+
return Promise.all(promises);
|
|
1519
|
+
};
|
|
1520
|
+
axios2.spread = require_spread();
|
|
1521
|
+
axios2.isAxiosError = require_isAxiosError();
|
|
1522
|
+
module.exports = axios2;
|
|
1523
|
+
module.exports.default = axios2;
|
|
1524
|
+
}
|
|
1525
|
+
});
|
|
1526
|
+
|
|
1527
|
+
// node_modules/axios/index.js
|
|
1528
|
+
var require_axios2 = __commonJS({
|
|
1529
|
+
"node_modules/axios/index.js"(exports, module) {
|
|
1530
|
+
module.exports = require_axios();
|
|
1531
|
+
}
|
|
1532
|
+
});
|
|
1533
|
+
|
|
1534
|
+
// src/api-client.ts
|
|
1535
|
+
var import_axios = __toESM(require_axios2());
|
|
1536
|
+
|
|
1537
|
+
// src/utils.ts
|
|
1538
|
+
function logError(consoleMessage) {
|
|
1539
|
+
console.error("\x1B[41m%s\x1B[0m", consoleMessage);
|
|
1540
|
+
}
|
|
1541
|
+
function logDebug(consoleMessage) {
|
|
1542
|
+
console.log("\x1B[33m%s\x1B[0m", consoleMessage);
|
|
1543
|
+
}
|
|
1544
|
+
function buildRequestUrlPath(config, locale) {
|
|
1545
|
+
let apiFetchOrPreview = "";
|
|
1546
|
+
if (config.isPreview === true || config.isPreview === "true") {
|
|
1547
|
+
apiFetchOrPreview = "preview";
|
|
1548
|
+
} else {
|
|
1549
|
+
apiFetchOrPreview = "fetch";
|
|
1550
|
+
}
|
|
1551
|
+
let urlPath = `${config.baseUrl}/${apiFetchOrPreview}/${locale}`;
|
|
1552
|
+
return urlPath;
|
|
1553
|
+
}
|
|
1554
|
+
function buildPathUrl(contentType, referenceName, skip, take, sort, direction, filters, filtersLogicOperator, contentLinkDepth, expandAllContentLinks) {
|
|
1555
|
+
let url = `/${contentType}/${referenceName}?contentLinkDepth=${contentLinkDepth}&`;
|
|
1556
|
+
filtersLogicOperator = filtersLogicOperator ? ` ${filtersLogicOperator} ` : " AND ";
|
|
1557
|
+
if (sort) {
|
|
1558
|
+
url += `sort=${sort}&`;
|
|
1559
|
+
if (direction) {
|
|
1560
|
+
url += `direction=${direction}&`;
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
if (skip) {
|
|
1564
|
+
url += `skip=${skip}&`;
|
|
1565
|
+
}
|
|
1566
|
+
if (take) {
|
|
1567
|
+
url += `take=${take}&`;
|
|
1568
|
+
}
|
|
1569
|
+
if (filters && filters.length > 0) {
|
|
1570
|
+
url += "filter=";
|
|
1571
|
+
for (let i = 0; i < filters.length; i++) {
|
|
1572
|
+
let filter = filters[i];
|
|
1573
|
+
url += `${filter.property}[${filter.operator}]${filter.value}` + (i < filters.length - 1 ? filtersLogicOperator : "");
|
|
1574
|
+
}
|
|
1575
|
+
url += "&";
|
|
1576
|
+
}
|
|
1577
|
+
if (expandAllContentLinks) {
|
|
1578
|
+
url += `expandAllContentLinks=${expandAllContentLinks}&`;
|
|
1579
|
+
}
|
|
1580
|
+
return url;
|
|
1581
|
+
}
|
|
1582
|
+
function buildAuthHeader(config) {
|
|
1583
|
+
let defaultAuthHeaders = {
|
|
1584
|
+
APIKey: config.apiKey,
|
|
1585
|
+
Guid: ""
|
|
1586
|
+
};
|
|
1587
|
+
if (config.requiresGuidInHeaders) {
|
|
1588
|
+
defaultAuthHeaders.Guid = config.guid;
|
|
1589
|
+
}
|
|
1590
|
+
return {
|
|
1591
|
+
...defaultAuthHeaders,
|
|
1592
|
+
...config.headers
|
|
1593
|
+
};
|
|
1594
|
+
}
|
|
1595
|
+
function isHttps(url) {
|
|
1596
|
+
if (!url.toLowerCase().startsWith("https://")) {
|
|
1597
|
+
return false;
|
|
1598
|
+
}
|
|
1599
|
+
return true;
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
// src/methods/getSitemapFlat.ts
|
|
1603
|
+
function getSitemapFlat(requestParams) {
|
|
1604
|
+
validateRequestParams(requestParams);
|
|
1605
|
+
const req = {
|
|
1606
|
+
url: `/sitemap/flat/${requestParams.channelName}`,
|
|
1607
|
+
method: "get",
|
|
1608
|
+
baseURL: buildRequestUrlPath(this.config, requestParams.locale || requestParams.languageCode),
|
|
1609
|
+
headers: buildAuthHeader(this.config),
|
|
1610
|
+
params: {}
|
|
1611
|
+
};
|
|
1612
|
+
return this.makeRequest(req);
|
|
1613
|
+
}
|
|
1614
|
+
function validateRequestParams(requestParams) {
|
|
1615
|
+
if (!requestParams.languageCode && !requestParams.locale) {
|
|
1616
|
+
throw new TypeError("You must include a locale in your request params.");
|
|
1617
|
+
} else if (!requestParams.channelName) {
|
|
1618
|
+
throw new TypeError("You must include a channelName in your request params.");
|
|
1619
|
+
} else {
|
|
1620
|
+
return;
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
var getSitemapFlat_default = getSitemapFlat;
|
|
1624
|
+
|
|
1625
|
+
// src/methods/getSitemapNested.ts
|
|
1626
|
+
function getSitemapNested(requestParams) {
|
|
1627
|
+
validateRequestParams2(requestParams);
|
|
1628
|
+
const req = {
|
|
1629
|
+
url: `/sitemap/nested/${requestParams.channelName}`,
|
|
1630
|
+
method: "get",
|
|
1631
|
+
baseURL: buildRequestUrlPath(this.config, requestParams.locale || requestParams.languageCode),
|
|
1632
|
+
headers: buildAuthHeader(this.config),
|
|
1633
|
+
params: {}
|
|
1634
|
+
};
|
|
1635
|
+
return this.makeRequest(req);
|
|
1636
|
+
}
|
|
1637
|
+
function validateRequestParams2(requestParams) {
|
|
1638
|
+
if (!requestParams.languageCode && !requestParams.locale) {
|
|
1639
|
+
throw new TypeError("You must include a locale in your request params.");
|
|
1640
|
+
} else if (!requestParams.channelName) {
|
|
1641
|
+
throw new TypeError("You must include a channelName in your request params.");
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
var getSitemapNested_default = getSitemapNested;
|
|
1645
|
+
|
|
1646
|
+
// src/methods/getContentItem.ts
|
|
1647
|
+
var defaultParams = {
|
|
1648
|
+
contentLinkDepth: 1,
|
|
1649
|
+
expandAllContentLinks: false
|
|
1650
|
+
};
|
|
1651
|
+
function getContentItem(requestParams) {
|
|
1652
|
+
validateRequestParams3(requestParams);
|
|
1653
|
+
requestParams = { ...defaultParams, ...requestParams };
|
|
1654
|
+
const req = {
|
|
1655
|
+
url: `/item/${requestParams.contentID}?contentLinkDepth=${requestParams.contentLinkDepth}&expandAllContentLinks=${requestParams.expandAllContentLinks}`,
|
|
1656
|
+
method: "get",
|
|
1657
|
+
baseURL: buildRequestUrlPath(this.config, requestParams.locale ? requestParams.locale : requestParams.languageCode),
|
|
1658
|
+
headers: buildAuthHeader(this.config),
|
|
1659
|
+
params: {}
|
|
1660
|
+
};
|
|
1661
|
+
return this.makeRequest(req);
|
|
1662
|
+
}
|
|
1663
|
+
function validateRequestParams3(requestParams) {
|
|
1664
|
+
if (!requestParams.languageCode && !requestParams.locale) {
|
|
1665
|
+
throw new TypeError("You must include a locale in your request params.");
|
|
1666
|
+
} else if (!requestParams.contentID) {
|
|
1667
|
+
throw new TypeError("You must include a contentID number in your request params.");
|
|
1668
|
+
} else if (requestParams.contentLinkDepth && (isNaN(requestParams.contentLinkDepth) || requestParams.contentLinkDepth < 0)) {
|
|
1669
|
+
throw new TypeError("When specifying contentLinkDepth, it must be a number greater than 0.");
|
|
1670
|
+
} else if (requestParams.expandAllContentLinks && typeof requestParams.expandAllContentLinks !== "boolean") {
|
|
1671
|
+
throw new TypeError("ExpandAllContentLinks parameter must be a value of true or false");
|
|
1672
|
+
} else {
|
|
1673
|
+
return;
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
var getContentItem_default = getContentItem;
|
|
1677
|
+
|
|
1678
|
+
// src/methods/getContentList.ts
|
|
1679
|
+
function getContentList(requestParams) {
|
|
1680
|
+
validateRequestParams4(requestParams);
|
|
1681
|
+
requestParams.referenceName = sanitizeReferenceName(requestParams.referenceName);
|
|
1682
|
+
requestParams = { ...defaultParams2, ...requestParams };
|
|
1683
|
+
const req = {
|
|
1684
|
+
url: buildPathUrl("list", requestParams.referenceName, requestParams.skip, requestParams.take, requestParams.sort, requestParams.direction, requestParams.filters, requestParams.filtersLogicOperator, requestParams.contentLinkDepth, requestParams.expandAllContentLinks),
|
|
1685
|
+
method: "get",
|
|
1686
|
+
baseURL: buildRequestUrlPath(this.config, requestParams.locale ? requestParams.locale : requestParams.languageCode),
|
|
1687
|
+
headers: buildAuthHeader(this.config),
|
|
1688
|
+
params: {}
|
|
1689
|
+
};
|
|
1690
|
+
return this.makeRequest(req);
|
|
1691
|
+
}
|
|
1692
|
+
function sanitizeReferenceName(referenceName) {
|
|
1693
|
+
return referenceName.toLowerCase();
|
|
1694
|
+
}
|
|
1695
|
+
function validateRequestParams4(requestParams) {
|
|
1696
|
+
if (!requestParams.languageCode && !requestParams.locale) {
|
|
1697
|
+
throw new TypeError("You must include a locale in your request params.");
|
|
1698
|
+
} else if (!requestParams.referenceName) {
|
|
1699
|
+
throw new TypeError("You must include a content referenceName in your request params.");
|
|
1700
|
+
} else if (requestParams.take && isNaN(requestParams.take)) {
|
|
1701
|
+
throw new TypeError("Take parameter must be a number.");
|
|
1702
|
+
} else if ((requestParams.take || requestParams.take == 0) && !isNaN(requestParams.take) && requestParams.take < 1) {
|
|
1703
|
+
throw new TypeError("Take parameter must be greater than 0.");
|
|
1704
|
+
} else if (requestParams.take && !isNaN(requestParams.take) && requestParams.take > 250) {
|
|
1705
|
+
throw new TypeError("Take parameter must be 250 or less.");
|
|
1706
|
+
} else if (requestParams.skip && isNaN(requestParams.skip)) {
|
|
1707
|
+
throw new TypeError("Skip parameter must be a number.");
|
|
1708
|
+
} else if (requestParams.skip && !isNaN(requestParams.skip) && requestParams.skip < 0) {
|
|
1709
|
+
throw new TypeError("Skip parameter must be 0 or greater");
|
|
1710
|
+
} else if (requestParams.direction && (requestParams.direction !== "desc" && requestParams.direction !== "asc")) {
|
|
1711
|
+
throw new TypeError('Direction parameter must have a value of "asc" or "desc"');
|
|
1712
|
+
} else if (requestParams.filters && requestParams.filters.length > 0) {
|
|
1713
|
+
for (let i = 0; i < requestParams.filters.length; i++) {
|
|
1714
|
+
let filter = requestParams.filters[i];
|
|
1715
|
+
if (!filter.hasOwnProperty("property")) {
|
|
1716
|
+
throw new TypeError(JSON.stringify(filter) + " does not contain 'property'.");
|
|
1717
|
+
} else if (!filter.hasOwnProperty("operator")) {
|
|
1718
|
+
throw new TypeError(JSON.stringify(filter) + " does not contain 'operator'.");
|
|
1719
|
+
} else if (!filter.hasOwnProperty("value")) {
|
|
1720
|
+
throw new TypeError(JSON.stringify(filter) + " does not contain 'value'.");
|
|
1721
|
+
}
|
|
1722
|
+
if (["eq", "ne", "gt", "gte", "lt", "lte", "like"].indexOf(filter.operator.toLowerCase()) < 0) {
|
|
1723
|
+
throw new TypeError(JSON.stringify(filter) + "Operator must be one of ['eq','ne','gt','gte','lt','lte','like'].");
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
} else if (requestParams.filtersLogicOperator && requestParams.filtersLogicOperator.toLowerCase() !== "and" && requestParams.filtersLogicOperator.toLowerCase() !== "or") {
|
|
1727
|
+
throw new TypeError('FiltersLogicOperator parameter must have a value of "AND" or "OR"');
|
|
1728
|
+
} else if (requestParams.expandAllContentLinks && typeof requestParams.expandAllContentLinks !== "boolean") {
|
|
1729
|
+
throw new TypeError("ExpandAllContentLinks parameter must be a value of true or false");
|
|
1730
|
+
}
|
|
1731
|
+
return true;
|
|
1732
|
+
}
|
|
1733
|
+
var defaultParams2 = {
|
|
1734
|
+
contentLinkDepth: 1,
|
|
1735
|
+
expandAllContentLinks: false
|
|
1736
|
+
};
|
|
1737
|
+
var getContentList_default = getContentList;
|
|
1738
|
+
|
|
1739
|
+
// src/methods/getPage.ts
|
|
1740
|
+
function getPage(requestParams) {
|
|
1741
|
+
validateRequestParams5(requestParams);
|
|
1742
|
+
requestParams = { ...defaultParams3, ...requestParams };
|
|
1743
|
+
const req = {
|
|
1744
|
+
url: `/page/${requestParams.pageID}?contentLinkDepth=${requestParams.contentLinkDepth}&expandAllContentLinks=${requestParams.expandAllContentLinks}`,
|
|
1745
|
+
method: "get",
|
|
1746
|
+
baseURL: buildRequestUrlPath(this.config, requestParams.locale || requestParams.languageCode),
|
|
1747
|
+
headers: buildAuthHeader(this.config),
|
|
1748
|
+
params: {}
|
|
1749
|
+
};
|
|
1750
|
+
console.log(req, "hellooo");
|
|
1751
|
+
return this.makeRequest(req);
|
|
1752
|
+
}
|
|
1753
|
+
function validateRequestParams5(requestParams) {
|
|
1754
|
+
if (!requestParams.languageCode && !requestParams.locale) {
|
|
1755
|
+
throw new TypeError("You must include a locale in your request params.");
|
|
1756
|
+
} else if (!requestParams.pageID) {
|
|
1757
|
+
throw new TypeError("You must include a pageID in your request params.");
|
|
1758
|
+
} else if (requestParams.expandAllContentLinks && typeof requestParams.expandAllContentLinks !== "boolean") {
|
|
1759
|
+
throw new TypeError("ExpandAllContentLinks parameter must be a value of true or false");
|
|
1760
|
+
} else {
|
|
1761
|
+
return;
|
|
1762
|
+
}
|
|
1763
|
+
}
|
|
1764
|
+
var defaultParams3 = {
|
|
1765
|
+
contentLinkDepth: 2,
|
|
1766
|
+
expandAllContentLinks: true
|
|
1767
|
+
};
|
|
1768
|
+
var getPage_default = getPage;
|
|
1769
|
+
|
|
1770
|
+
// src/methods/getGallery.ts
|
|
1771
|
+
function getGallery(requestParams) {
|
|
1772
|
+
validateRequestParams6(requestParams);
|
|
1773
|
+
requestParams = { ...defaultParams4, ...requestParams };
|
|
1774
|
+
const req = {
|
|
1775
|
+
url: `/${requestParams.galleryID}`,
|
|
1776
|
+
method: "get",
|
|
1777
|
+
baseURL: buildRequestUrlPath(this.config, "gallery"),
|
|
1778
|
+
headers: buildAuthHeader(this.config),
|
|
1779
|
+
params: {}
|
|
1780
|
+
};
|
|
1781
|
+
return this.makeRequest(req);
|
|
1782
|
+
}
|
|
1783
|
+
function validateRequestParams6(requestParams) {
|
|
1784
|
+
if (!requestParams.galleryID) {
|
|
1785
|
+
throw new TypeError("You must include a galleryID number in your request params.");
|
|
1786
|
+
} else {
|
|
1787
|
+
return;
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
var defaultParams4 = {
|
|
1791
|
+
contentLinkDepth: 1
|
|
1792
|
+
};
|
|
1793
|
+
var getGallery_default = getGallery;
|
|
1794
|
+
|
|
1795
|
+
// src/methods/getUrlRedirections.ts
|
|
1796
|
+
function getUrlRedirections(requestParams) {
|
|
1797
|
+
validateRequestParams7(requestParams);
|
|
1798
|
+
let url = "";
|
|
1799
|
+
if (requestParams.lastAccessDate) {
|
|
1800
|
+
if (!requestParams.lastAccessDate.toISOString) {
|
|
1801
|
+
requestParams.lastAccessDate = new Date(requestParams.lastAccessDate);
|
|
1802
|
+
}
|
|
1803
|
+
url = `/?lastAccessDate=${requestParams.lastAccessDate.toISOString()}`;
|
|
1804
|
+
}
|
|
1805
|
+
const req = {
|
|
1806
|
+
url,
|
|
1807
|
+
method: "get",
|
|
1808
|
+
baseURL: buildRequestUrlPath(this.config, "urlredirection"),
|
|
1809
|
+
headers: buildAuthHeader(this.config),
|
|
1810
|
+
params: {}
|
|
1811
|
+
};
|
|
1812
|
+
const self = this;
|
|
1813
|
+
let promise = new Promise(function(resolve, reject) {
|
|
1814
|
+
self.makeRequest(req).then((data) => {
|
|
1815
|
+
if (data == void 0 || !data) {
|
|
1816
|
+
reject(new Error("The URL redirections could not be retrieved."));
|
|
1817
|
+
} else {
|
|
1818
|
+
resolve(data);
|
|
1819
|
+
}
|
|
1820
|
+
}).catch(
|
|
1821
|
+
(error) => {
|
|
1822
|
+
reject(error);
|
|
1823
|
+
}
|
|
1824
|
+
);
|
|
1825
|
+
});
|
|
1826
|
+
return promise;
|
|
1827
|
+
}
|
|
1828
|
+
function validateRequestParams7(requestParams) {
|
|
1829
|
+
if (requestParams.lastAccessDate) {
|
|
1830
|
+
if (!requestParams.lastAccessDate.toISOString) {
|
|
1831
|
+
let dt = new Date(requestParams.lastAccessDate);
|
|
1832
|
+
if (isNaN(dt.getTime())) {
|
|
1833
|
+
throw new TypeError("You must include a valid Datetime for the lastAccessDate.");
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
} else {
|
|
1837
|
+
return;
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
var getUrlRedirections_default = getUrlRedirections;
|
|
1841
|
+
|
|
1842
|
+
// src/methods/getSyncContent.ts
|
|
1843
|
+
function getSyncContent(requestParams) {
|
|
1844
|
+
validateRequestParams8(requestParams);
|
|
1845
|
+
const req = {
|
|
1846
|
+
url: `/sync/items?pageSize=${requestParams.pageSize}&syncToken=${requestParams.syncToken}`,
|
|
1847
|
+
method: "get",
|
|
1848
|
+
baseURL: buildRequestUrlPath(this.config, requestParams.locale || requestParams.languageCode),
|
|
1849
|
+
headers: buildAuthHeader(this.config),
|
|
1850
|
+
params: {}
|
|
1851
|
+
};
|
|
1852
|
+
return this.makeRequest(req);
|
|
1853
|
+
}
|
|
1854
|
+
function validateRequestParams8(requestParams) {
|
|
1855
|
+
if (!requestParams.languageCode && !requestParams.locale) {
|
|
1856
|
+
throw new TypeError("You must include a locale in your request params.");
|
|
1857
|
+
} else if (requestParams.syncToken == void 0 || requestParams.syncToken == null) {
|
|
1858
|
+
throw new TypeError("You must include a syncToken value your request params. Use zero (0) to start a new sync.");
|
|
1859
|
+
} else {
|
|
1860
|
+
return;
|
|
1861
|
+
}
|
|
1862
|
+
}
|
|
1863
|
+
var getSyncContent_default = getSyncContent;
|
|
1864
|
+
|
|
1865
|
+
// src/methods/getSyncPages.ts
|
|
1866
|
+
function getSyncPages(requestParams) {
|
|
1867
|
+
validateRequestParams9(requestParams);
|
|
1868
|
+
const req = {
|
|
1869
|
+
url: `/sync/pages?pageSize=${requestParams.pageSize}&syncToken=${requestParams.syncToken}`,
|
|
1870
|
+
method: "get",
|
|
1871
|
+
baseURL: buildRequestUrlPath(this.config, requestParams.locale || requestParams.languageCode),
|
|
1872
|
+
headers: buildAuthHeader(this.config),
|
|
1873
|
+
params: {}
|
|
1874
|
+
};
|
|
1875
|
+
return this.makeRequest(req);
|
|
1876
|
+
}
|
|
1877
|
+
function validateRequestParams9(requestParams) {
|
|
1878
|
+
if (!requestParams.languageCode && !requestParams.locale) {
|
|
1879
|
+
throw new TypeError("You must include a locale in your request params.");
|
|
1880
|
+
} else if (requestParams.syncToken == void 0 || requestParams.syncToken == null) {
|
|
1881
|
+
throw new TypeError("You must include a syncToken value your request params. Use zero (0) to start a new sync.");
|
|
1882
|
+
} else {
|
|
1883
|
+
return;
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
var getSyncPages_default = getSyncPages;
|
|
1887
|
+
|
|
1888
|
+
// src/types/index.ts
|
|
1889
|
+
var types_exports = {};
|
|
1890
|
+
__export(types_exports, {
|
|
1891
|
+
FilterLogicOperators: () => FilterLogicOperators,
|
|
1892
|
+
FilterOperators: () => FilterOperator_default
|
|
1893
|
+
});
|
|
1894
|
+
|
|
1895
|
+
// src/types/FilterOperator.ts
|
|
1896
|
+
var FilterOperators = {
|
|
1897
|
+
/** Equal To */
|
|
1898
|
+
EQUAL_TO: "eq",
|
|
1899
|
+
/** Not Equal To */
|
|
1900
|
+
NOT_EQUAL_TO: "ne",
|
|
1901
|
+
/** Less Than */
|
|
1902
|
+
LESS_THAN: "lt",
|
|
1903
|
+
/** Less Than or Equal To */
|
|
1904
|
+
LESS_THAN_OR_EQUAL_TO: "lte",
|
|
1905
|
+
/** Greater Than */
|
|
1906
|
+
GREATER_THAN: "gt",
|
|
1907
|
+
/** Greater Than or Equal To */
|
|
1908
|
+
GREATER_THAN_OR_EQUAL_TO: "gte",
|
|
1909
|
+
/** Like (string only) */
|
|
1910
|
+
LIKE: "like"
|
|
1911
|
+
};
|
|
1912
|
+
var FilterOperator_default = FilterOperators;
|
|
1913
|
+
|
|
1914
|
+
// src/types/FilterLogicOperator.ts
|
|
1915
|
+
var FilterLogicOperators = /* @__PURE__ */ ((FilterLogicOperators2) => {
|
|
1916
|
+
FilterLogicOperators2["AND"] = "AND";
|
|
1917
|
+
FilterLogicOperators2["OR"] = "OR";
|
|
1918
|
+
return FilterLogicOperators2;
|
|
1919
|
+
})(FilterLogicOperators || {});
|
|
1920
|
+
|
|
1921
|
+
// src/api-client.ts
|
|
1922
|
+
var defaultConfig = {
|
|
1923
|
+
baseUrl: null,
|
|
1924
|
+
isPreview: false,
|
|
1925
|
+
guid: null,
|
|
1926
|
+
apiKey: null,
|
|
1927
|
+
locale: null,
|
|
1928
|
+
headers: {},
|
|
1929
|
+
requiresGuidInHeaders: false,
|
|
1930
|
+
debug: false,
|
|
1931
|
+
caching: {
|
|
1932
|
+
maxAge: 0
|
|
1933
|
+
//caching disabled by default
|
|
1934
|
+
}
|
|
1935
|
+
};
|
|
1936
|
+
function buildEnvConfig() {
|
|
1937
|
+
const envConfig = {
|
|
1938
|
+
baseUrl: null,
|
|
1939
|
+
isPreview: false,
|
|
1940
|
+
guid: null,
|
|
1941
|
+
apiKey: null
|
|
1942
|
+
};
|
|
1943
|
+
if (process && process.env) {
|
|
1944
|
+
let env = process.env;
|
|
1945
|
+
if (env.AGILITY_BASEURL) {
|
|
1946
|
+
envConfig.baseUrl = env.AGILITY_BASEURL;
|
|
1947
|
+
}
|
|
1948
|
+
if (env.AGILITY_GUID) {
|
|
1949
|
+
envConfig.guid = env.AGILITY_GUID;
|
|
1950
|
+
}
|
|
1951
|
+
if (env.AGILITY_APIKEY) {
|
|
1952
|
+
envConfig.apiKey = env.AGILITY_APIKEY;
|
|
1953
|
+
}
|
|
1954
|
+
envConfig.isPreview = env.AGILITY_ISPREVIEW === "true";
|
|
1955
|
+
}
|
|
1956
|
+
return envConfig;
|
|
1957
|
+
}
|
|
1958
|
+
function buildBaseUrl(guid) {
|
|
1959
|
+
let baseUrlSuffixes = {
|
|
1960
|
+
u: "",
|
|
1961
|
+
c: "-ca",
|
|
1962
|
+
e: "-eu",
|
|
1963
|
+
a: "-aus",
|
|
1964
|
+
d: "-dev"
|
|
1965
|
+
};
|
|
1966
|
+
let suffix = guid.substr(guid.length - 2, 2);
|
|
1967
|
+
let env = suffix.substr(1);
|
|
1968
|
+
if (suffix.startsWith("-") && baseUrlSuffixes.hasOwnProperty(env)) {
|
|
1969
|
+
return `https://api${baseUrlSuffixes[env]}.aglty.io/${guid}`;
|
|
1970
|
+
} else {
|
|
1971
|
+
return `https://${guid}-api.agilitycms.cloud`;
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
function validateConfigParams(configParams) {
|
|
1975
|
+
if (!configParams.guid || configParams.guid.length == 0) {
|
|
1976
|
+
throw new TypeError("You must provide an guid.");
|
|
1977
|
+
} else if (!configParams.apiKey || configParams.apiKey.length == 0) {
|
|
1978
|
+
throw new TypeError("You must provide an access token.");
|
|
1979
|
+
} else if (configParams.caching && isNaN(configParams.caching.maxAge)) {
|
|
1980
|
+
throw new TypeError("When specifying a cache maxAge, you must set a number value in miliseconds, i.e. 180000 (3 mins).");
|
|
1981
|
+
} else if (configParams.baseUrl && !isHttps(configParams.baseUrl)) {
|
|
1982
|
+
throw new TypeError(`When specifying a baseUrl (${configParams.baseUrl}), it must be over HTTPs.`);
|
|
1983
|
+
} else {
|
|
1984
|
+
return;
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
var ApiClient = class {
|
|
1988
|
+
constructor(userConfig) {
|
|
1989
|
+
this.types = types_exports;
|
|
1990
|
+
const envConfig = buildEnvConfig();
|
|
1991
|
+
let config = {
|
|
1992
|
+
...defaultConfig,
|
|
1993
|
+
...envConfig,
|
|
1994
|
+
...userConfig
|
|
1995
|
+
};
|
|
1996
|
+
if (!config.baseUrl) {
|
|
1997
|
+
config.baseUrl = buildBaseUrl(config?.guid || "");
|
|
1998
|
+
} else {
|
|
1999
|
+
config.requiresGuidInHeaders = true;
|
|
2000
|
+
}
|
|
2001
|
+
this.config = config;
|
|
2002
|
+
let adapter = void 0;
|
|
2003
|
+
this._api = import_axios.default.create();
|
|
2004
|
+
}
|
|
2005
|
+
async getContentItem(params) {
|
|
2006
|
+
return getContentItem_default.call(this, params);
|
|
2007
|
+
}
|
|
2008
|
+
async getContentList(params) {
|
|
2009
|
+
return getContentList_default.call(this, params);
|
|
2010
|
+
}
|
|
2011
|
+
async getGallery(params) {
|
|
2012
|
+
return getGallery_default.call(this, params);
|
|
2013
|
+
}
|
|
2014
|
+
async getPage(params) {
|
|
2015
|
+
return getPage_default.call(this, params);
|
|
2016
|
+
}
|
|
2017
|
+
async getSitemapFlat(params) {
|
|
2018
|
+
return getSitemapFlat_default.call(this, params);
|
|
2019
|
+
}
|
|
2020
|
+
async getSitemapNested(params) {
|
|
2021
|
+
return getSitemapNested_default.call(this, params);
|
|
2022
|
+
}
|
|
2023
|
+
async getUrlRedirections(params) {
|
|
2024
|
+
return getUrlRedirections_default.call(this, params);
|
|
2025
|
+
}
|
|
2026
|
+
async getSyncContent(params) {
|
|
2027
|
+
return getSyncContent_default.call(this, params);
|
|
2028
|
+
}
|
|
2029
|
+
async getSyncPages(params) {
|
|
2030
|
+
return getSyncPages_default.call(this, params);
|
|
2031
|
+
}
|
|
2032
|
+
//the function that actually makes ALL our requests
|
|
2033
|
+
async makeRequest(reqConfig) {
|
|
2034
|
+
if (this.config.debug) {
|
|
2035
|
+
logDebug(`AgilityCMS Fetch API LOG: ${reqConfig.baseURL}${reqConfig.url}`);
|
|
2036
|
+
}
|
|
2037
|
+
try {
|
|
2038
|
+
const response = await this._api(reqConfig);
|
|
2039
|
+
let data = response.data;
|
|
2040
|
+
if (response.request.fromCache) {
|
|
2041
|
+
data["fromCache"] = true;
|
|
2042
|
+
}
|
|
2043
|
+
if (this.config.debug) {
|
|
2044
|
+
data["agilityResponseHeaders"] = response.headers;
|
|
2045
|
+
}
|
|
2046
|
+
return await data;
|
|
2047
|
+
} catch (error) {
|
|
2048
|
+
logError(`AgilityCMS Fetch API ERROR: Request failed for ${reqConfig.baseURL}${reqConfig.url} ... ${error} ... Does the item exist?`);
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
};
|
|
2052
|
+
function getApi(config) {
|
|
2053
|
+
validateConfigParams(config);
|
|
2054
|
+
return new ApiClient(config);
|
|
2055
|
+
}
|
|
2056
|
+
var api_client_default = getApi;
|
|
2057
|
+
})();
|