@recats/cdeebee 2.2.4 → 2.3.0
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/.editorconfig +0 -2
- package/.travis.yml +4 -4
- package/eslint.config.mjs +26 -0
- package/{src → lib}/actions.ts +1 -3
- package/{src → lib}/definition.ts +8 -4
- package/{src → lib}/helpers.ts +5 -5
- package/{src → lib}/index.ts +3 -3
- package/{src → lib}/reducer.ts +1 -1
- package/{src → lib}/request.ts +22 -27
- package/package.json +24 -35
- package/tsconfig.json +5 -4
- package/vite.config.mjs +20 -0
- package/.babelrc +0 -19
- package/.eslintrc +0 -36
- package/.yarn/cache/@babel-code-frame-npm-7.16.0-13dafb7fe1-8961d0302e.zip +0 -0
- package/.yarn/cache/@babel-compat-data-npm-7.16.4-9128f11195-4949ce54ea.zip +0 -0
- package/.yarn/cache/@babel-core-npm-7.16.5-f5f395bced-e5b76c6be9.zip +0 -0
- package/.yarn/cache/@babel-generator-npm-7.16.5-139000d4b9-621fa2da21.zip +0 -0
- package/.yarn/cache/@babel-helper-annotate-as-pure-npm-7.16.0-7d5d6eb28a-0db7610698.zip +0 -0
- package/.yarn/cache/@babel-helper-builder-binary-assignment-operator-visitor-npm-7.16.5-55a0dfdd03-c351f53420.zip +0 -0
- package/.yarn/cache/@babel-helper-compilation-targets-npm-7.16.3-200287cc80-038bcd43ac.zip +0 -0
- package/.yarn/cache/@babel-helper-create-class-features-plugin-npm-7.16.5-76e02a320a-f558098f82.zip +0 -0
- package/.yarn/cache/@babel-helper-create-regexp-features-plugin-npm-7.16.0-9afb84be3e-d6230477e1.zip +0 -0
- package/.yarn/cache/@babel-helper-define-polyfill-provider-npm-0.3.0-c19f133e9a-372378ac42.zip +0 -0
- package/.yarn/cache/@babel-helper-environment-visitor-npm-7.16.5-c3c9841dcc-f57da613f2.zip +0 -0
- package/.yarn/cache/@babel-helper-explode-assignable-expression-npm-7.16.0-c7497452bc-563352b5e9.zip +0 -0
- package/.yarn/cache/@babel-helper-function-name-npm-7.16.0-c205b29083-8c02371d28.zip +0 -0
- package/.yarn/cache/@babel-helper-get-function-arity-npm-7.16.0-f1df8e3e32-1a68322c7b.zip +0 -0
- package/.yarn/cache/@babel-helper-hoist-variables-npm-7.16.0-9526445efc-2ee5b400c2.zip +0 -0
- package/.yarn/cache/@babel-helper-member-expression-to-functions-npm-7.16.5-dc22727957-54d061e0f7.zip +0 -0
- package/.yarn/cache/@babel-helper-module-imports-npm-7.16.0-ae62b2ede7-8e1eb9ac39.zip +0 -0
- package/.yarn/cache/@babel-helper-module-transforms-npm-7.16.5-e3eb961f45-0463e7198e.zip +0 -0
- package/.yarn/cache/@babel-helper-optimise-call-expression-npm-7.16.0-fd091f8fdf-121ae6054f.zip +0 -0
- package/.yarn/cache/@babel-helper-plugin-utils-npm-7.16.5-d827384470-3ff605f879.zip +0 -0
- package/.yarn/cache/@babel-helper-remap-async-to-generator-npm-7.16.5-6584052007-8519570746.zip +0 -0
- package/.yarn/cache/@babel-helper-replace-supers-npm-7.16.5-b105e6db7a-7eb2cba87a.zip +0 -0
- package/.yarn/cache/@babel-helper-simple-access-npm-7.16.0-d2675c6f1c-2d7155f318.zip +0 -0
- package/.yarn/cache/@babel-helper-skip-transparent-expression-wrappers-npm-7.16.0-caad6e8361-b9ed2896eb.zip +0 -0
- package/.yarn/cache/@babel-helper-split-export-declaration-npm-7.16.0-cdfc1fe50b-8bd87b5ea2.zip +0 -0
- package/.yarn/cache/@babel-helper-validator-identifier-npm-7.15.7-a8f354e738-f041c28c53.zip +0 -0
- package/.yarn/cache/@babel-helper-validator-option-npm-7.14.5-fd38dcf0bc-1b25c34a5c.zip +0 -0
- package/.yarn/cache/@babel-helper-wrap-function-npm-7.16.5-cce4563c8d-fd53491bb2.zip +0 -0
- package/.yarn/cache/@babel-helpers-npm-7.16.5-54133cf8d3-960d938a43.zip +0 -0
- package/.yarn/cache/@babel-highlight-npm-7.16.0-61272efee6-abf244c48f.zip +0 -0
- package/.yarn/cache/@babel-parser-npm-7.16.6-460e215b6e-5cbb01a7b2.zip +0 -0
- package/.yarn/cache/@babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression-npm-7.16.2-1aa5b1f875-6ed9dbbf18.zip +0 -0
- package/.yarn/cache/@babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining-npm-7.16.0-f3fb88813d-bb11547929.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-async-generator-functions-npm-7.16.5-83e33d2a14-b57649dd33.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-class-properties-npm-7.16.5-9462b33d65-2a58b1a43e.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-class-static-block-npm-7.16.5-ee69b10913-461dbd90c2.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-dynamic-import-npm-7.16.5-c165aa66a1-e08d1e2dac.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-export-namespace-from-npm-7.16.5-7cbb9f848d-9f52177482.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-json-strings-npm-7.16.5-ff9b5ec9f2-31c8d80d59.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-logical-assignment-operators-npm-7.16.5-01cf458ee6-453f8b89c7.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-nullish-coalescing-operator-npm-7.16.5-0d69fdf9cc-035a5a8f4d.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-numeric-separator-npm-7.16.5-27b81fdc9a-38dfbca1a3.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-object-rest-spread-npm-7.16.5-fcba7d9ccb-8632cf389c.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-optional-catch-binding-npm-7.16.5-06bf70ed0f-38a2c0c677.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-optional-chaining-npm-7.16.5-7e32514adc-4eaf5d4bd1.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-private-methods-npm-7.16.5-851144eeb0-93326582f8.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-private-property-in-object-npm-7.16.5-83ac0e29bc-649d5e799e.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-unicode-property-regex-npm-7.16.5-e7d2a74ca7-884109813d.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-class-properties-npm-7.12.13-002ee9d930-24f34b196d.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-class-static-block-npm-7.14.5-7bdd0ff1b3-3e80814b5b.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-dynamic-import-npm-7.8.3-fb9ff5634a-ce307af83c.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-export-namespace-from-npm-7.8.3-1747201aa9-85740478be.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-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-private-property-in-object-npm-7.14.5-ee837fdbb2-b317174783.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-transform-arrow-functions-npm-7.16.5-75bc6d5aba-5e84ff27f0.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-async-to-generator-npm-7.16.5-3a5425977b-e50fcf1fc7.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-block-scoped-functions-npm-7.16.5-68e1099823-c4c13997a5.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-block-scoping-npm-7.16.5-445fe2cc14-1aa74a77cd.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-classes-npm-7.16.5-502b4fd655-a142a4c2c4.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-computed-properties-npm-7.16.5-83c4b76cd6-57b829e737.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-destructuring-npm-7.16.5-33995865b4-bdc5c4b528.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-dotall-regex-npm-7.16.5-d87498acf5-f14e5ec1e7.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-duplicate-keys-npm-7.16.5-d6e50b5110-c897998b8d.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-exponentiation-operator-npm-7.16.5-3604924339-8eb96d043a.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-for-of-npm-7.16.5-50ba9238cf-203fbbf910.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-function-name-npm-7.16.5-aba02f20b7-3b933eb065.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-literals-npm-7.16.5-588d17917b-81066d35cb.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-member-expression-literals-npm-7.16.5-65285706b5-ce491530a4.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-modules-amd-npm-7.16.5-c56de8cf2a-5587a9efd8.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-modules-commonjs-npm-7.16.5-511e07247a-5b5c23e492.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-modules-systemjs-npm-7.16.5-6f0efe4809-fc7937fa41.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-modules-umd-npm-7.16.5-be45f36b49-ce9ec8e928.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-named-capturing-groups-regex-npm-7.16.5-67234123f0-b34e89fa86.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-new-target-npm-7.16.5-b2fb30494b-bbb3769cc4.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-object-super-npm-7.16.5-cbcfb6c1ac-003a065b99.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-parameters-npm-7.16.5-175ea713bf-d9057796dd.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-property-literals-npm-7.16.5-4248f6f3d3-fab2c628e4.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-regenerator-npm-7.16.5-0c3ade8e8a-db6f0278bb.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-reserved-words-npm-7.16.5-f2ffac3498-96a24ee8e4.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-runtime-npm-7.16.5-5496d336c6-f46443fd79.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-shorthand-properties-npm-7.16.5-ec6609c730-5af07bf0ed.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-spread-npm-7.16.5-a3accec049-06b22ca770.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-sticky-regex-npm-7.16.5-146fe9f827-184b6c0823.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-template-literals-npm-7.16.5-b205192e84-4297a7615b.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-typeof-symbol-npm-7.16.5-54575227ee-f5cee6f93e.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-unicode-escapes-npm-7.16.5-0b60a55650-7c42417fb8.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-unicode-regex-npm-7.16.5-1a3540c1fb-61ce385633.zip +0 -0
- package/.yarn/cache/@babel-preset-env-npm-7.16.5-b3c5499ebd-b3887f8167.zip +0 -0
- package/.yarn/cache/@babel-preset-modules-npm-0.1.5-15ffcd64c2-8430e0e9e9.zip +0 -0
- package/.yarn/cache/@babel-runtime-npm-7.16.5-324a158d8a-b96e67280e.zip +0 -0
- package/.yarn/cache/@babel-template-npm-7.16.0-a52c3c2401-940f105cc6.zip +0 -0
- package/.yarn/cache/@babel-traverse-npm-7.16.5-b63257bb08-6bc31311b6.zip +0 -0
- package/.yarn/cache/@babel-types-npm-7.16.0-e111c97393-5b483da5c6.zip +0 -0
- package/.yarn/cache/@gar-promisify-npm-1.1.2-2343f94380-d05081e088.zip +0 -0
- package/.yarn/cache/@npmcli-fs-npm-1.1.0-fa0ae1b053-e435b883b4.zip +0 -0
- package/.yarn/cache/@npmcli-move-file-npm-1.1.2-4f6c7b3354-c96381d4a3.zip +0 -0
- package/.yarn/cache/@rollup-pluginutils-npm-4.1.2-10299b48a2-498d67e7b4.zip +0 -0
- package/.yarn/cache/@tootallnate-once-npm-1.1.2-0517220057-e1fb1bbbc1.zip +0 -0
- package/.yarn/cache/@ts-type-package-dts-npm-1.0.56-b4c3164f6b-674f7d895b.zip +0 -0
- package/.yarn/cache/@types-estree-npm-0.0.50-b9bc3b8409-9a2b6a4a8c.zip +0 -0
- package/.yarn/cache/@types-lodash-npm-4.14.178-5433b9ed68-a69a04a60b.zip +0 -0
- package/.yarn/cache/@types-node-fetch-npm-2.5.12-e9530d4758-ad63c85ba6.zip +0 -0
- package/.yarn/cache/@types-node-npm-17.0.5-78c23cecdc-105535e787.zip +0 -0
- package/.yarn/cache/@types-ramda-npm-0.27.62-cc07a2ce9d-fb42398bec.zip +0 -0
- package/.yarn/cache/@types-semver-npm-7.3.9-eb0d8b7243-60bfcfdfa7.zip +0 -0
- package/.yarn/cache/@types-whatwg-fetch-npm-0.0.33-6130610c0a-59dae90e3e.zip +0 -0
- package/.yarn/cache/@types-whatwg-streams-npm-0.0.7-dbc55a36b5-324b535e0d.zip +0 -0
- package/.yarn/cache/@yarn-tool-resolve-package-npm-1.0.40-295e98dc66-79a8718986.zip +0 -0
- package/.yarn/cache/abbrev-npm-1.1.1-3659247eab-a4a97ec07d.zip +0 -0
- package/.yarn/cache/abortcontroller-polyfill-npm-1.7.3-3b01198b7a-55739d7f0c.zip +0 -0
- package/.yarn/cache/agent-base-npm-6.0.2-428f325a93-f52b6872cc.zip +0 -0
- package/.yarn/cache/agentkeepalive-npm-4.1.4-4d5b41b4c1-d49c24d4b3.zip +0 -0
- package/.yarn/cache/aggregate-error-npm-3.1.0-415a406f4e-1101a33f21.zip +0 -0
- package/.yarn/cache/ansi-regex-npm-5.0.1-c963a48615-2aa4bb54ca.zip +0 -0
- package/.yarn/cache/ansi-styles-npm-3.2.1-8cb8107983-d85ade01c1.zip +0 -0
- package/.yarn/cache/aproba-npm-2.0.0-8716bcfde6-5615cadcfb.zip +0 -0
- package/.yarn/cache/are-we-there-yet-npm-2.0.0-7d2f5201ce-6c80b4fd04.zip +0 -0
- package/.yarn/cache/argparse-npm-1.0.10-528934e59d-7ca6e45583.zip +0 -0
- package/.yarn/cache/asynckit-npm-0.4.0-c718858525-7b78c451df.zip +0 -0
- package/.yarn/cache/babel-eslint-npm-10.1.0-6a6d2b1533-bdc1f62b6b.zip +0 -0
- package/.yarn/cache/babel-plugin-dynamic-import-node-npm-2.3.3-be081936a9-c9d24415bc.zip +0 -0
- package/.yarn/cache/babel-plugin-lodash-npm-3.3.4-c7161075b6-044a4261e6.zip +0 -0
- package/.yarn/cache/babel-plugin-polyfill-corejs2-npm-0.3.0-4e58d302d2-ffede59798.zip +0 -0
- package/.yarn/cache/babel-plugin-polyfill-corejs3-npm-0.4.0-0b821f8a09-18dce9a09a.zip +0 -0
- package/.yarn/cache/babel-plugin-polyfill-regenerator-npm-0.3.0-3228238f85-ecca4389fd.zip +0 -0
- package/.yarn/cache/babel-plugin-ramda-npm-2.0.0-c6a5b350c5-9715530ee0.zip +0 -0
- package/.yarn/cache/babel-plugin-rewire-exports-npm-2.3.0-e4a25d5593-2a0fa1a11e.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/browserslist-npm-4.19.1-e9de2a4009-c0777fd483.zip +0 -0
- package/.yarn/cache/buffer-from-npm-1.1.2-03d2f20d7e-0448524a56.zip +0 -0
- package/.yarn/cache/builtin-modules-npm-1.1.1-209bbd4692-0fbf69ffe7.zip +0 -0
- package/.yarn/cache/cacache-npm-15.3.0-a7e5239c6a-a07327c27a.zip +0 -0
- package/.yarn/cache/call-bind-npm-1.0.2-c957124861-f8e31de9d1.zip +0 -0
- package/.yarn/cache/caniuse-lite-npm-1.0.30001292-b1bbf4eae9-930d025147.zip +0 -0
- package/.yarn/cache/chalk-npm-2.4.2-3ea16dd91e-ec3661d38f.zip +0 -0
- package/.yarn/cache/chownr-npm-2.0.0-638f1c9c61-c57cf9dd07.zip +0 -0
- package/.yarn/cache/clean-stack-npm-2.2.0-a8ce435a5c-2ac8cd2b2f.zip +0 -0
- package/.yarn/cache/color-convert-npm-1.9.3-1fe690075e-fd7a64a17c.zip +0 -0
- package/.yarn/cache/color-name-npm-1.1.3-728b7b5d39-09c5d3e33d.zip +0 -0
- package/.yarn/cache/color-support-npm-1.1.3-3be5c53455-9b73568176.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/commondir-npm-1.0.1-291b790340-59715f2fc4.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.8.0-037f671dde-985d974a2d.zip +0 -0
- package/.yarn/cache/core-js-compat-npm-3.20.1-edbded6e70-6f7101fe7d.zip +0 -0
- package/.yarn/cache/debug-npm-4.3.3-710fd4cc7f-14472d56fe.zip +0 -0
- package/.yarn/cache/define-properties-npm-1.1.3-0f3115e2b9-da80dba55d.zip +0 -0
- package/.yarn/cache/delayed-stream-npm-1.0.0-c5a4c4cc02-46fe6e83e2.zip +0 -0
- package/.yarn/cache/delegates-npm-1.0.0-9b1942d75f-a51744d9b5.zip +0 -0
- package/.yarn/cache/depd-npm-1.1.2-b0c8414da7-6b406620d2.zip +0 -0
- package/.yarn/cache/diff-npm-4.0.2-73133c7102-f2c09b0ce4.zip +0 -0
- package/.yarn/cache/electron-to-chromium-npm-1.4.28-37738ddb1c-ac3dcd1de0.zip +0 -0
- package/.yarn/cache/emoji-regex-npm-8.0.0-213764015c-d4c5c39d5a.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/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/eslint-visitor-keys-npm-1.3.0-c07780a0fb-37a19b712f.zip +0 -0
- package/.yarn/cache/esprima-npm-4.0.1-1084e98778-b45bc805a6.zip +0 -0
- package/.yarn/cache/estree-walker-npm-0.6.1-fe92d0e1f6-9d6f82a492.zip +0 -0
- package/.yarn/cache/estree-walker-npm-2.0.2-dfab42f65c-6151e6f982.zip +0 -0
- package/.yarn/cache/esutils-npm-2.0.3-f865beafd5-22b5b08f74.zip +0 -0
- package/.yarn/cache/find-cache-dir-npm-3.3.2-836e68dd83-1e61c2e64f.zip +0 -0
- package/.yarn/cache/find-up-npm-4.1.0-c3ccf8d855-4c172680e8.zip +0 -0
- package/.yarn/cache/find-up-npm-5.0.0-e03e9b796d-07955e3573.zip +0 -0
- package/.yarn/cache/form-data-npm-3.0.1-d080d436e0-b019e8d35c.zip +0 -0
- package/.yarn/cache/fs-extra-npm-8.1.0-197473387f-bf44f0e6ce.zip +0 -0
- package/.yarn/cache/fs-minipass-npm-2.1.0-501ef87306-1b8d128dae.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.0-962bc1259b-637b34c84f.zip +0 -0
- package/.yarn/cache/gensync-npm-1.0.0-beta.2-224666d72f-a7437e58c6.zip +0 -0
- package/.yarn/cache/get-intrinsic-npm-1.1.1-7e868745da-a9fe2ca8fa.zip +0 -0
- package/.yarn/cache/glob-npm-7.2.0-bb4644d239-78a8ea9423.zip +0 -0
- package/.yarn/cache/globals-npm-11.12.0-1fa7f41a6c-67051a45ec.zip +0 -0
- package/.yarn/cache/graceful-fs-npm-4.2.8-37c16fc3d3-5d224c8969.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-symbols-npm-1.0.2-50e53af115-2309c42607.zip +0 -0
- package/.yarn/cache/has-unicode-npm-2.0.1-893adb4747-1eab07a743.zip +0 -0
- package/.yarn/cache/http-cache-semantics-npm-4.1.0-860520a31f-974de94a81.zip +0 -0
- package/.yarn/cache/http-proxy-agent-npm-4.0.1-ce9ef61788-c6a5da5a19.zip +0 -0
- package/.yarn/cache/https-proxy-agent-npm-5.0.0-bb777903c3-165bfb090b.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/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/infer-owner-npm-1.0.4-685ac3d2af-181e732764.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/ip-npm-1.1.5-af36318aa6-30133981f0.zip +0 -0
- package/.yarn/cache/is-core-module-npm-2.8.0-acc8c42f1b-f8b5271489.zip +0 -0
- package/.yarn/cache/is-fullwidth-code-point-npm-3.0.0-1ecf4ebee5-44a30c2945.zip +0 -0
- package/.yarn/cache/is-lambda-npm-1.0.1-7ab55bc8a8-93a32f0194.zip +0 -0
- package/.yarn/cache/is-reference-npm-1.2.1-87ca1743c8-e7b48149f8.zip +0 -0
- package/.yarn/cache/isexe-npm-2.0.0-b58870bd2e-26bf6c5480.zip +0 -0
- package/.yarn/cache/jest-worker-npm-26.6.2-46cbcd449f-f9afa3b88e.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-0.5.0-6827074492-b8b44cbfc9.zip +0 -0
- package/.yarn/cache/jsesc-npm-2.5.2-c5acb78804-4dc1907711.zip +0 -0
- package/.yarn/cache/json5-npm-2.2.0-da49dc7cb5-e88fc5274b.zip +0 -0
- package/.yarn/cache/jsonfile-npm-4.0.0-10ce3aea15-6447d6224f.zip +0 -0
- package/.yarn/cache/locate-path-npm-5.0.0-46580c43e4-83e51725e6.zip +0 -0
- package/.yarn/cache/locate-path-npm-6.0.0-06a1e4c528-72eb661788.zip +0 -0
- package/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip +0 -0
- package/.yarn/cache/lodash.debounce-npm-4.0.8-f1d6e09799-a3f527d22c.zip +0 -0
- package/.yarn/cache/lru-cache-npm-6.0.0-b4c8668fe1-f97f499f89.zip +0 -0
- package/.yarn/cache/magic-string-npm-0.25.7-0a0bd9c864-727a1fb70f.zip +0 -0
- package/.yarn/cache/make-dir-npm-3.1.0-d1d7505142-484200020a.zip +0 -0
- package/.yarn/cache/make-fetch-happen-npm-9.1.0-23184ad7f6-0eb371c85f.zip +0 -0
- package/.yarn/cache/merge-stream-npm-2.0.0-2ac83efea5-6fa4dcc8d8.zip +0 -0
- package/.yarn/cache/mime-db-npm-1.51.0-d5e42b45ad-613b1ac9d6.zip +0 -0
- package/.yarn/cache/mime-types-npm-2.1.34-3cd0bb907c-67013de9e9.zip +0 -0
- package/.yarn/cache/minimatch-npm-3.0.4-6e76f51c23-66ac295f8a.zip +0 -0
- package/.yarn/cache/minimist-npm-1.2.5-ced0e1f617-86706ce5b3.zip +0 -0
- package/.yarn/cache/minipass-collect-npm-1.0.2-3b4676eab5-14df761028.zip +0 -0
- package/.yarn/cache/minipass-fetch-npm-1.4.1-2d67357feb-ec93697bdb.zip +0 -0
- package/.yarn/cache/minipass-flush-npm-1.0.5-efe79d9826-56269a0b22.zip +0 -0
- package/.yarn/cache/minipass-npm-3.1.6-f032df1661-57a0404141.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-0.5.5-6bc76534fc-3bce20ea52.zip +0 -0
- package/.yarn/cache/mkdirp-npm-1.0.4-37f6ef56b9-a96865108c.zip +0 -0
- package/.yarn/cache/ms-npm-2.1.2-ec0c1512ff-673cdb2c31.zip +0 -0
- package/.yarn/cache/ms-npm-2.1.3-81ff3cfac1-aa92de6080.zip +0 -0
- package/.yarn/cache/negotiator-npm-0.6.2-ba538e167a-dfddaff6c0.zip +0 -0
- package/.yarn/cache/node-fetch-npm-2.6.6-056db6b778-ee8290626b.zip +0 -0
- package/.yarn/cache/node-gyp-npm-8.4.1-13c90a9c9b-341710b5da.zip +0 -0
- package/.yarn/cache/node-releases-npm-2.0.1-77b8e327f7-b20dd8d4bc.zip +0 -0
- package/.yarn/cache/nopt-npm-5.0.0-304b40fbfe-d35fdec187.zip +0 -0
- package/.yarn/cache/npmlog-npm-6.0.0-94a534434f-33d8a7fe3d.zip +0 -0
- package/.yarn/cache/object-keys-npm-1.1.1-1bf2f1be93-b363c5e764.zip +0 -0
- package/.yarn/cache/object.assign-npm-4.1.2-d52edada1c-d621d832ed.zip +0 -0
- package/.yarn/cache/once-npm-1.4.0-ccf03ef07a-cd0a885013.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-locate-npm-5.0.0-92cc7c7a3e-1623088f36.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/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-is-network-drive-npm-1.0.10-0f6750871e-9cacfac14e.zip +0 -0
- package/.yarn/cache/path-parse-npm-1.0.7-09564527b7-49abf3d811.zip +0 -0
- package/.yarn/cache/path-strip-sep-npm-1.0.7-8801d45b3b-77dff6e60c.zip +0 -0
- package/.yarn/cache/picocolors-npm-1.0.0-d81e0b1927-a2e8092dd8.zip +0 -0
- package/.yarn/cache/picomatch-npm-2.3.0-5e60e6c82d-16818720ea.zip +0 -0
- package/.yarn/cache/pkg-dir-npm-4.2.0-2b5d0a8d32-9863e3f351.zip +0 -0
- package/.yarn/cache/pkg-dir-npm-5.0.0-3ba6768b42-b167bb8dac.zip +0 -0
- package/.yarn/cache/promise-inflight-npm-1.0.1-5bb925afac-2274948309.zip +0 -0
- package/.yarn/cache/promise-retry-npm-2.0.1-871f0b01b7-f96a3f6d90.zip +0 -0
- package/.yarn/cache/ramda-npm-0.27.1-5818f2cb83-31a0c0ef73.zip +0 -0
- package/.yarn/cache/randombytes-npm-2.1.0-e3da76bccf-d779499376.zip +0 -0
- package/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip +0 -0
- package/.yarn/cache/redux-npm-4.1.2-04cdbe7a08-6a839cee5b.zip +0 -0
- package/.yarn/cache/regenerate-npm-1.4.2-b296c5b63a-3317a09b2f.zip +0 -0
- package/.yarn/cache/regenerate-unicode-properties-npm-9.0.0-73b46c97bd-62df21c274.zip +0 -0
- package/.yarn/cache/regenerator-runtime-npm-0.13.9-6d02340eec-65ed455fe5.zip +0 -0
- package/.yarn/cache/regenerator-transform-npm-0.14.5-40045884e9-a467a3b652.zip +0 -0
- package/.yarn/cache/regexpu-core-npm-4.8.0-b5aa95540a-df92e3e648.zip +0 -0
- package/.yarn/cache/regjsgen-npm-0.5.2-4c9c408ab2-87c83d8488.zip +0 -0
- package/.yarn/cache/regjsparser-npm-0.7.0-a4d515e434-fefff9adca.zip +0 -0
- package/.yarn/cache/require-package-name-npm-2.0.1-ac9a206b63-00f4e9e467.zip +0 -0
- package/.yarn/cache/resolve-npm-1.20.0-1bc5878aa9-40cf70b2cd.zip +0 -0
- package/.yarn/cache/resolve-patch-b4a69197d3-a0dd7d16a8.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/rollup-npm-2.62.0-3cc8710992-9dfa089a23.zip +0 -0
- package/.yarn/cache/rollup-plugin-babel-npm-4.4.0-930e240ec3-5b8ed7c0a4.zip +0 -0
- package/.yarn/cache/rollup-plugin-commonjs-npm-10.1.0-6b5ee23ea9-396fc4d536.zip +0 -0
- package/.yarn/cache/rollup-plugin-json-npm-4.0.0-e8ff255b44-7843545a8c.zip +0 -0
- package/.yarn/cache/rollup-plugin-terser-npm-7.0.2-3f55469f5a-af84bb7a7a.zip +0 -0
- package/.yarn/cache/rollup-plugin-typescript2-npm-0.31.1-c783eb30b1-29a809aaf7.zip +0 -0
- package/.yarn/cache/rollup-pluginutils-npm-2.8.2-f554dd6ac5-339fdf866d.zip +0 -0
- package/.yarn/cache/safe-buffer-npm-5.1.2-c27fedf6c4-f2f1f7943c.zip +0 -0
- package/.yarn/cache/safe-buffer-npm-5.2.1-3481c8aa9b-b99c4b41fd.zip +0 -0
- package/.yarn/cache/safer-buffer-npm-2.1.2-8d5c0b705e-cab8f25ae6.zip +0 -0
- package/.yarn/cache/semver-npm-5.7.1-40bcea106b-57fd0acfd0.zip +0 -0
- package/.yarn/cache/semver-npm-6.3.0-b3eace8bfd-1b26ecf6db.zip +0 -0
- package/.yarn/cache/semver-npm-7.0.0-218e8c00ca-272c11bf8d.zip +0 -0
- package/.yarn/cache/semver-npm-7.3.5-618cf5db6a-5eafe6102b.zip +0 -0
- package/.yarn/cache/serialize-javascript-npm-4.0.0-b4aeff413b-3273b3394b.zip +0 -0
- package/.yarn/cache/set-blocking-npm-2.0.0-49e2cffa24-6e65a05f7c.zip +0 -0
- package/.yarn/cache/signal-exit-npm-3.0.6-66fc2466b6-b819ac81ba.zip +0 -0
- package/.yarn/cache/smart-buffer-npm-4.2.0-5ac3f668bb-b5167a7142.zip +0 -0
- package/.yarn/cache/socks-npm-2.6.1-09133d0d22-2ca9d616e4.zip +0 -0
- package/.yarn/cache/socks-proxy-agent-npm-6.1.1-a3843946ba-9a8a4f791b.zip +0 -0
- package/.yarn/cache/source-map-npm-0.5.7-7c3f035429-5dc2043b93.zip +0 -0
- package/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip +0 -0
- package/.yarn/cache/source-map-npm-0.7.3-e3b4f7982a-cd24efb3b8.zip +0 -0
- package/.yarn/cache/source-map-support-npm-0.5.21-09ca99e250-43e98d700d.zip +0 -0
- package/.yarn/cache/sourcemap-codec-npm-1.4.8-3a1a9e60b1-b57981c056.zip +0 -0
- package/.yarn/cache/sprintf-js-npm-1.0.3-73f0a322fa-19d79aec21.zip +0 -0
- package/.yarn/cache/ssri-npm-8.0.1-a369e72ce2-bc447f5af8.zip +0 -0
- package/.yarn/cache/string-width-npm-4.2.3-2c27177bae-e52c10dc3f.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/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/tar-npm-6.1.11-e6ac3cba9c-a04c07bb9e.zip +0 -0
- package/.yarn/cache/terser-npm-5.10.0-1690d2acb8-1080faeb6d.zip +0 -0
- package/.yarn/cache/to-fast-properties-npm-2.0.0-0dc60cc481-be2de62fe5.zip +0 -0
- package/.yarn/cache/tr46-npm-0.0.3-de53018915-726321c5ea.zip +0 -0
- package/.yarn/cache/ts-toolbelt-npm-6.15.5-e42f89942f-24ad00cfd9.zip +0 -0
- package/.yarn/cache/ts-type-npm-2.1.2-f474cedec3-e43d619801.zip +0 -0
- package/.yarn/cache/tslib-npm-1.14.1-102499115e-dbe628ef87.zip +0 -0
- package/.yarn/cache/tslib-npm-2.2.0-e83a07daa5-a48c9639f7.zip +0 -0
- package/.yarn/cache/tslib-npm-2.3.1-0e21e18015-de17a98d46.zip +0 -0
- package/.yarn/cache/tslint-npm-6.1.3-d90825fcd4-7348b7abd6.zip +0 -0
- package/.yarn/cache/tsutils-npm-2.29.0-a46b62a46d-5d681bab79.zip +0 -0
- package/.yarn/cache/typedarray-dts-npm-1.0.0-5464312294-9b378ab52e.zip +0 -0
- package/.yarn/cache/typescript-npm-4.5.4-2da9ac18bd-59f3243f9c.zip +0 -0
- package/.yarn/cache/typescript-patch-0b90225f97-2e488dde7d.zip +0 -0
- package/.yarn/cache/unicode-canonical-property-names-ecmascript-npm-2.0.0-d2d8554a14-39be078afd.zip +0 -0
- package/.yarn/cache/unicode-match-property-ecmascript-npm-2.0.0-97a00fd52c-1f34a7434a.zip +0 -0
- package/.yarn/cache/unicode-match-property-value-ecmascript-npm-2.0.0-b52f4f7ca4-8fe6a09d90.zip +0 -0
- package/.yarn/cache/unicode-property-aliases-ecmascript-npm-2.0.0-1636cb7768-dda4d39128.zip +0 -0
- package/.yarn/cache/unique-filename-npm-1.1.1-c885c5095b-cf4998c922.zip +0 -0
- package/.yarn/cache/unique-slug-npm-2.0.2-f6ba1ddeb7-5b6876a645.zip +0 -0
- package/.yarn/cache/universalify-npm-0.1.2-9b22d31d2d-40cdc60f6e.zip +0 -0
- package/.yarn/cache/upath2-npm-3.1.10-ad6fd06be5-8df7233bac.zip +0 -0
- package/.yarn/cache/util-deprecate-npm-1.0.2-e3fe1a219c-474acf1146.zip +0 -0
- package/.yarn/cache/webidl-conversions-npm-3.0.1-60310f6a2b-c92a0a6ab9.zip +0 -0
- package/.yarn/cache/whatwg-fetch-npm-3.6.2-4bdf324792-ee976b7249.zip +0 -0
- package/.yarn/cache/whatwg-url-npm-5.0.0-374fb45e60-b8daed4ad3.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/wrappy-npm-1.0.2-916de4d4b3-159da4805f.zip +0 -0
- package/.yarn/cache/yallist-npm-4.0.0-b493d9e907-343617202a.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/.yarnrc.yml +0 -1
- package/lib/actions.d.ts +0 -24
- package/lib/definition.d.ts +0 -206
- package/lib/helpers.d.ts +0 -22
- package/lib/index.d.ts +0 -6
- package/lib/index.esm.js +0 -16
- package/lib/index.esm.js.map +0 -1
- package/lib/index.js +0 -16
- package/lib/index.js.map +0 -1
- package/lib/index.umd.js +0 -16
- package/lib/index.umd.js.map +0 -1
- package/lib/reducer.d.ts +0 -8
- package/lib/request.d.ts +0 -9
- package/rollup.config.js +0 -26
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/.yarn/cache/unicode-canonical-property-names-ecmascript-npm-2.0.0-d2d8554a14-39be078afd.zip
DELETED
|
Binary file
|
|
Binary file
|
package/.yarn/cache/unicode-match-property-value-ecmascript-npm-2.0.0-b52f4f7ca4-8fe6a09d90.zip
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/.yarn/install-state.gz
DELETED
|
Binary file
|
package/.yarnrc.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
nodeLinker: node-modules
|
package/lib/actions.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Dispatch } from 'redux';
|
|
2
|
-
import { cdeebeeTypes, cdeebeeValueList, EntityID } from './definition';
|
|
3
|
-
export declare function unsafe_updateStore(entityList: string, entityID: EntityID, value: any): (dispatch: Dispatch) => void;
|
|
4
|
-
export declare function setKeyValue(entityList: string, entityID: EntityID, valueList: cdeebeeValueList[]): (dispatch: Dispatch) => void;
|
|
5
|
-
export declare function commitEntity(entityList: string, entityID: EntityID, entity: object): (dispatch: Dispatch) => void;
|
|
6
|
-
export declare function resetEntity(entityList: string, entityID: string | number): (dispatch: Dispatch) => void;
|
|
7
|
-
export declare function dropCdeebeePath(path: (string | number)[]): (dispatch: Dispatch) => {
|
|
8
|
-
type: cdeebeeTypes;
|
|
9
|
-
payload: {
|
|
10
|
-
path: (string | number)[];
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export declare function dropRequestByApiUrl(api: string): (dispatch: Dispatch) => {
|
|
14
|
-
type: cdeebeeTypes;
|
|
15
|
-
payload: {
|
|
16
|
-
api: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export declare function dropErrorsByApiUrl(api: string): (dispatch: Dispatch) => {
|
|
20
|
-
type: cdeebeeTypes;
|
|
21
|
-
payload: {
|
|
22
|
-
api: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
package/lib/definition.d.ts
DELETED
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import { Dispatch } from 'redux';
|
|
2
|
-
export declare enum cdeebeeTypes {
|
|
3
|
-
CDEEBEE_REQUESTMANAGER_SHIFT = "@@cdeebee/REQUESTMANAGER_SHIFT",
|
|
4
|
-
CDEEBEE_REQUESTMANAGER_SET = "@@cdeebee/REQUESTMANAGER_SET",
|
|
5
|
-
CDEEBEE_ERRORHANDLER_SET = "@@cdeebee/ERRORHANDLER_SET",
|
|
6
|
-
CDEEBEE_ENTITY_CHANGE_FIELD = "@@cdeebee/ENTITY_CHANGE_FIELD",
|
|
7
|
-
CDEEBEE_ENTITY_UNSAFE_UPDATE_STORE = "@@cdeebee/ENTITY_UNSAFE_UPDATE_STORE",
|
|
8
|
-
CDEEBEE_RESET_ENTITY = "@@cdeebee/RESET_ENTITY",
|
|
9
|
-
CDEEBEE_SET_ENTITY = "@@cdeebee/SET_ENTITY",
|
|
10
|
-
CDEEBEEE_UPDATE = "@@cdeebee/UPDATE",
|
|
11
|
-
CDEEBEEE_DROP = "@@cdeebee/DROP",
|
|
12
|
-
CDEEBEEE_DROP_PATH = "@@cdeebee/DROP_PATH",
|
|
13
|
-
CDEEBEE_INTERNAL_ERROR = "@@cdeebee/INTERNAL_ERROR",
|
|
14
|
-
CDEEBEE_REQUEST_ABORTED = "@@cdeebee/REQUEST_ABORTED",
|
|
15
|
-
CDEEBEEE_DROP_REQUEST_BY_API_URL = "@@cdeebee/DROP_REQUEST_BY_API_URL",
|
|
16
|
-
CDEEBEEE_DROP_ERROR_BY_API_URL = "@@cdeebee/DROP_ERROR_BY_API_URL",
|
|
17
|
-
CHANGE_ROUTE = "@@router/LOCATION_CHANGE"
|
|
18
|
-
}
|
|
19
|
-
export declare enum cdeebeeEntityState {
|
|
20
|
-
NEW = "NEW",
|
|
21
|
-
EDITING = "EDITING",
|
|
22
|
-
NORMAL = "NORMAL"
|
|
23
|
-
}
|
|
24
|
-
export declare enum cdeebeeMergeStrategy {
|
|
25
|
-
merge = "merge",
|
|
26
|
-
replace = "replace"
|
|
27
|
-
}
|
|
28
|
-
export declare type IDefaultOption = {
|
|
29
|
-
headers?: object;
|
|
30
|
-
files?: File[];
|
|
31
|
-
fileKey?: string;
|
|
32
|
-
bodyKey?: string;
|
|
33
|
-
primaryKey?: string;
|
|
34
|
-
responseKeyCode?: string;
|
|
35
|
-
requestCancel?: boolean;
|
|
36
|
-
updateStore?: boolean;
|
|
37
|
-
mergeListStrategy?: {
|
|
38
|
-
[key: string]: cdeebeeMergeStrategy;
|
|
39
|
-
};
|
|
40
|
-
normalize?: (t: any) => void;
|
|
41
|
-
preUpdate?: (payload: object) => void;
|
|
42
|
-
postUpdate?: (payload: object) => void;
|
|
43
|
-
preError?: (payload: object) => void;
|
|
44
|
-
postError?: (payload: object) => void;
|
|
45
|
-
method?: 'POST' | 'GET' | 'PUT' | 'DELETE';
|
|
46
|
-
globalErrorHandler?: (error: object, request: object, meta: {
|
|
47
|
-
requestStartTime: Date;
|
|
48
|
-
requestEndTime: Date;
|
|
49
|
-
requestID: string;
|
|
50
|
-
}) => (dispatch: Dispatch, getState: () => object) => void;
|
|
51
|
-
};
|
|
52
|
-
export declare type IResponsePropObject = {
|
|
53
|
-
requestApi: string;
|
|
54
|
-
response: {
|
|
55
|
-
[params: string]: any;
|
|
56
|
-
};
|
|
57
|
-
requestStartTime?: Date;
|
|
58
|
-
mergeListStrategy?: {
|
|
59
|
-
[key: string]: cdeebeeMergeStrategy;
|
|
60
|
-
};
|
|
61
|
-
normalize?: (t: any) => void;
|
|
62
|
-
preUpdate?: (payload: object) => void;
|
|
63
|
-
postUpdate?: (payload: object) => void;
|
|
64
|
-
preError?: (payload: object) => void;
|
|
65
|
-
postError?: (payload: object) => void;
|
|
66
|
-
};
|
|
67
|
-
export interface IRequestOptions extends IDefaultOption {
|
|
68
|
-
api: string;
|
|
69
|
-
data?: object;
|
|
70
|
-
}
|
|
71
|
-
export interface IEntity {
|
|
72
|
-
__entity?: {
|
|
73
|
-
__state: cdeebeeEntityState;
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
export declare type cdeebeeValueList = {
|
|
77
|
-
key: (string | number)[];
|
|
78
|
-
value: any;
|
|
79
|
-
};
|
|
80
|
-
export declare type cdeebeActiveRequest = {
|
|
81
|
-
api: string;
|
|
82
|
-
requestCancel: object;
|
|
83
|
-
controller: {
|
|
84
|
-
abort: () => void;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
export declare type EntityID = string | number;
|
|
88
|
-
export interface cdeebeeIActions {
|
|
89
|
-
dropRequestByApiUrl: (api: string) => void;
|
|
90
|
-
dropErrorsByApiUrl: (api: string) => void;
|
|
91
|
-
dropCdeebeePath: (path: (string | number)[]) => void;
|
|
92
|
-
setKeyValue: (entityList: string, entityID: EntityID, valueList: cdeebeeValueList[]) => void;
|
|
93
|
-
unsafe_updateStore: (entityList: string, entityID: EntityID, value: any) => void;
|
|
94
|
-
commitEntity: (entityList: string, entityID: EntityID, entity: object) => void;
|
|
95
|
-
resetEntity: (entityList: string, entityID: EntityID) => void;
|
|
96
|
-
}
|
|
97
|
-
export declare type ActionCreator<A> = (...args: any[]) => A;
|
|
98
|
-
export declare class CdeebeeRequest {
|
|
99
|
-
requestObject: any;
|
|
100
|
-
constructor(defaultRequest: object, options: {
|
|
101
|
-
fileKey?: string;
|
|
102
|
-
bodyKey?: string;
|
|
103
|
-
method?: string;
|
|
104
|
-
primaryKey?: string;
|
|
105
|
-
normalize?: (data: object) => object;
|
|
106
|
-
mergeListStrategy?: {
|
|
107
|
-
[key: string]: cdeebeeMergeStrategy;
|
|
108
|
-
};
|
|
109
|
-
responseKeyCode?: string;
|
|
110
|
-
header?: object;
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
export interface CDEEBEERequestManager {
|
|
114
|
-
readonly type: cdeebeeTypes.CDEEBEE_REQUESTMANAGER_SET;
|
|
115
|
-
readonly payload: object;
|
|
116
|
-
}
|
|
117
|
-
export interface CDEEBEERequestShift {
|
|
118
|
-
readonly type: cdeebeeTypes.CDEEBEE_REQUESTMANAGER_SHIFT;
|
|
119
|
-
readonly payload?: any;
|
|
120
|
-
}
|
|
121
|
-
export interface CDEEBEEUpdate {
|
|
122
|
-
readonly type: cdeebeeTypes.CDEEBEEE_UPDATE;
|
|
123
|
-
readonly payload: {
|
|
124
|
-
api: string;
|
|
125
|
-
cleanResponse: object;
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
export interface CDEEBEEErrorSet {
|
|
129
|
-
readonly type: cdeebeeTypes.CDEEBEE_ERRORHANDLER_SET;
|
|
130
|
-
readonly payload: {
|
|
131
|
-
api: string;
|
|
132
|
-
cleanResponse: object;
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
export interface CDEEBEEChangeRoute {
|
|
136
|
-
readonly type?: any;
|
|
137
|
-
readonly payload?: any;
|
|
138
|
-
}
|
|
139
|
-
export declare type IRequestAction = CDEEBEERequestManager | CDEEBEERequestShift | CDEEBEEUpdate | CDEEBEEErrorSet | CDEEBEEChangeRoute;
|
|
140
|
-
export interface IRequestState {
|
|
141
|
-
activeRequest: cdeebeActiveRequest[];
|
|
142
|
-
requestByApiUrl: object;
|
|
143
|
-
errorHandler: object;
|
|
144
|
-
}
|
|
145
|
-
export interface CDEEBEEUpadte {
|
|
146
|
-
readonly type: cdeebeeTypes.CDEEBEEE_UPDATE;
|
|
147
|
-
readonly payload: {
|
|
148
|
-
response: object;
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
export interface CDEEBEEChangeField {
|
|
152
|
-
readonly type: cdeebeeTypes.CDEEBEE_ENTITY_CHANGE_FIELD;
|
|
153
|
-
readonly payload: {
|
|
154
|
-
list: {
|
|
155
|
-
key: string;
|
|
156
|
-
value: object;
|
|
157
|
-
}[];
|
|
158
|
-
entityList: string;
|
|
159
|
-
entityID: number | string;
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
export interface CDEEBEESetEntity {
|
|
163
|
-
readonly type: cdeebeeTypes.CDEEBEE_SET_ENTITY;
|
|
164
|
-
readonly payload: {
|
|
165
|
-
entityList: string;
|
|
166
|
-
entityID: number | string;
|
|
167
|
-
entity: any;
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
export interface CDEEBEEUnsafeUpdateStore {
|
|
171
|
-
readonly type: cdeebeeTypes.CDEEBEE_ENTITY_UNSAFE_UPDATE_STORE;
|
|
172
|
-
readonly payload: {
|
|
173
|
-
entityList: string;
|
|
174
|
-
entityID: number | string;
|
|
175
|
-
value: any;
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
export interface CDEEBEEResetEntity {
|
|
179
|
-
readonly type: cdeebeeTypes.CDEEBEE_RESET_ENTITY;
|
|
180
|
-
readonly payload: {
|
|
181
|
-
entityList: string;
|
|
182
|
-
entityID: number | string;
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
export interface CDEEBEEDrop {
|
|
186
|
-
readonly type: cdeebeeTypes.CDEEBEEE_DROP;
|
|
187
|
-
readonly payload?: any;
|
|
188
|
-
}
|
|
189
|
-
export interface CDEEBEEDropPath {
|
|
190
|
-
readonly type: cdeebeeTypes.CDEEBEEE_DROP_PATH;
|
|
191
|
-
readonly payload: {
|
|
192
|
-
path: (string | number)[];
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
export declare type ICdeebee = CDEEBEEUpadte | CDEEBEEChangeField | CDEEBEESetEntity | CDEEBEEResetEntity | CDEEBEEDrop | CDEEBEEDropPath | CDEEBEEUnsafeUpdateStore;
|
|
196
|
-
export interface IDefaultNormalize {
|
|
197
|
-
response: {
|
|
198
|
-
responseStatus: string;
|
|
199
|
-
[params: string]: any;
|
|
200
|
-
};
|
|
201
|
-
cdeebee: object;
|
|
202
|
-
primaryKey: string;
|
|
203
|
-
mergeListStrategy: {
|
|
204
|
-
[key: string]: cdeebeeMergeStrategy;
|
|
205
|
-
};
|
|
206
|
-
}
|
package/lib/helpers.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { cdeebeActiveRequest, cdeebeeEntityState, cdeebeeValueList, IDefaultNormalize, IEntity } from './definition';
|
|
2
|
-
export declare const dropRequestFromArray: (activeRequest: cdeebeActiveRequest[]) => cdeebeActiveRequest[];
|
|
3
|
-
export declare const requestCancel: (request: cdeebeActiveRequest) => void;
|
|
4
|
-
export declare const checkNetworkActivity: (activeRequest: cdeebeActiveRequest[], apiUrl: string | string[]) => boolean;
|
|
5
|
-
export declare const getSubEntity: <T>(entity: T & IEntity) => (T & IEntity) | {
|
|
6
|
-
__state: cdeebeeEntityState;
|
|
7
|
-
};
|
|
8
|
-
export declare const getEntityState: <T>(entity: T & IEntity) => cdeebeeEntityState;
|
|
9
|
-
export declare const insertEntity: (entity: {
|
|
10
|
-
__state: string;
|
|
11
|
-
}) => {
|
|
12
|
-
__state: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const commitEntity: <T>(entity: T & IEntity) => T;
|
|
15
|
-
export declare const resetEntity: <T>(entity: T & IEntity) => T;
|
|
16
|
-
export declare const editEntity: (store: IEntity & {
|
|
17
|
-
[key: string]: any;
|
|
18
|
-
}, list: string, id: number | string) => IEntity & {
|
|
19
|
-
[key: string]: any;
|
|
20
|
-
};
|
|
21
|
-
export declare const batchingUpdate: (state: object, valueList: cdeebeeValueList[], prePath?: (string | number)[] | undefined) => object;
|
|
22
|
-
export declare const defaultNormalize: (d: IDefaultNormalize) => object;
|
package/lib/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { cdeebee, requestManager } from './reducer';
|
|
2
|
-
import CdeebeeRequest from './request';
|
|
3
|
-
import * as cdeebeeHelpers from './helpers';
|
|
4
|
-
import { cdeebeeTypes, cdeebeeMergeStrategy, cdeebeeEntityState, cdeebeeValueList, cdeebeActiveRequest, cdeebeeIActions } from './definition';
|
|
5
|
-
import * as cdeebeeActions from './actions';
|
|
6
|
-
export { cdeebeeValueList, cdeebee, cdeebeeHelpers, requestManager, CdeebeeRequest, cdeebeeTypes, cdeebeeEntityState, cdeebeeMergeStrategy, cdeebeeActions, cdeebeActiveRequest, cdeebeeIActions, };
|
package/lib/index.esm.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{omit as e,assocPath as t,mergeDeepRight as r,dissoc as n,slice as o}from"ramda";import{fetch as i}from"whatwg-fetch";import a from"node-fetch";
|
|
2
|
-
/*! *****************************************************************************
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted.
|
|
7
|
-
|
|
8
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */var s,E,u,c=function(){return c=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)};function l(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{E(n.next(e))}catch(e){i(e)}}function s(e){try{E(n.throw(e))}catch(e){i(e)}}function E(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}E((n=n.apply(e,t||[])).next())}))}function p(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function f(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}!function(e){e.CDEEBEE_REQUESTMANAGER_SHIFT="@@cdeebee/REQUESTMANAGER_SHIFT",e.CDEEBEE_REQUESTMANAGER_SET="@@cdeebee/REQUESTMANAGER_SET",e.CDEEBEE_ERRORHANDLER_SET="@@cdeebee/ERRORHANDLER_SET",e.CDEEBEE_ENTITY_CHANGE_FIELD="@@cdeebee/ENTITY_CHANGE_FIELD",e.CDEEBEE_ENTITY_UNSAFE_UPDATE_STORE="@@cdeebee/ENTITY_UNSAFE_UPDATE_STORE",e.CDEEBEE_RESET_ENTITY="@@cdeebee/RESET_ENTITY",e.CDEEBEE_SET_ENTITY="@@cdeebee/SET_ENTITY",e.CDEEBEEE_UPDATE="@@cdeebee/UPDATE",e.CDEEBEEE_DROP="@@cdeebee/DROP",e.CDEEBEEE_DROP_PATH="@@cdeebee/DROP_PATH",e.CDEEBEE_INTERNAL_ERROR="@@cdeebee/INTERNAL_ERROR",e.CDEEBEE_REQUEST_ABORTED="@@cdeebee/REQUEST_ABORTED",e.CDEEBEEE_DROP_REQUEST_BY_API_URL="@@cdeebee/DROP_REQUEST_BY_API_URL",e.CDEEBEEE_DROP_ERROR_BY_API_URL="@@cdeebee/DROP_ERROR_BY_API_URL",e.CHANGE_ROUTE="@@router/LOCATION_CHANGE"}(s||(s={})),function(e){e.NEW="NEW",e.EDITING="EDITING",e.NORMAL="NORMAL"}(E||(E={})),function(e){e.merge="merge",e.replace="replace"}(u||(u={}));var y,_=function(t){return e(["__entity","__state"],t)},d=function(e){return e.filter((function(e){return!e.requestCancel||(R(e),!1)}))},R=function(e){e.controller&&e.controller.abort instanceof Function&&e.controller.abort()},b=function(e){var t,r=(null===(t=null==e?void 0:e.__entity)||void 0===t?void 0:t.__state)||(null==e?void 0:e.__state);return r||E.NORMAL},v=function(e){return b(e)===E.NORMAL?(console.warn("reset works only in editing and new states"),e):_(e)},T=function(e,r,n){var o=e[r];if(b(o[n])===E.EDITING)return e;var i=t([r,n,"__entity"],o[n],e);return t([r,n,"__entity","__state"],E.EDITING,i)},h=function(e,r,n){for(var o=n||[],i=e,a=0;a<r.length;a++){var s=r[a];i=t(f(f([],o,!0),s.key,!0),s.value,i)}return i},D=function(t){var n=t.response;n.responseStatus;for(var o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(n,["responseStatus"]),i=t.cdeebee,a=t.mergeListStrategy,s=t.primaryKey,E=0,c=Object.keys(o);E<c.length;E++){var l=c[E],p={};if(o[l]instanceof Object&&o[l].hasOwnProperty(s)){for(var f=0,y=o[l].data;f<y.length;f++){var _=y[f];p[_[o[l][s]]]=_}a[l]===u.replace?o[l]=p:o[l]=r(i[l],p)}else null!==o[l]&&void 0!==o[l]&&"string"!=typeof o[l]||(o=e([l],o))}return o},O=Object.freeze({__proto__:null,dropRequestFromArray:d,requestCancel:R,checkNetworkActivity:function(e,t){if(!t||0===e.length)return!1;for(var r=t instanceof Array?t:[t],n=e.map((function(e){return e.api})),o=0;o<r.length;o+=1)if(n.includes(r[o]))return!0;return!1},getSubEntity:function(e){return e.__entity||e},getEntityState:b,insertEntity:function(e){return e.__state=E.NEW,e},commitEntity:function(e){return b(e)===E.NORMAL?(console.warn("commit works only in editing and new states"),e):_(e)},resetEntity:v,editEntity:T,batchingUpdate:h,defaultNormalize:D}),A={},S=function(r,n){void 0===r&&(r=A);var o=n.type,i=n.payload;switch(o){case s.CDEEBEEE_UPDATE:return c(c({},r),i.response);case s.CDEEBEE_ENTITY_CHANGE_FIELD:var a=T(r,i.entityList,i.entityID);return h(a,i.valueList,[i.entityList,i.entityID,"__entity"]);case s.CDEEBEE_ENTITY_UNSAFE_UPDATE_STORE:return t([i.entityList,i.entityID],i.value,r);case s.CDEEBEE_SET_ENTITY:return t([i.entityList,i.entityID],i.entity,r);case s.CDEEBEE_RESET_ENTITY:var E=r[i.entityList];return t([i.entityList,i.entityID],v(E[i.entityID]),r);case s.CDEEBEEE_DROP:return A;case s.CDEEBEEE_DROP_PATH:return e(i.path,r);default:return r}},g={activeRequest:[],requestByApiUrl:{},errorHandler:{}},m=function(e,t){var r,i;void 0===e&&(e=g);var a=t.type,E=t.payload;switch(a){case s.CDEEBEE_REQUESTMANAGER_SET:return c(c({},e),{activeRequest:f(f([],e.activeRequest,!0),[E],!1)});case s.CDEEBEE_REQUESTMANAGER_SHIFT:return c(c({},e),{activeRequest:o(1,1/0,e.activeRequest)});case s.CDEEBEEE_UPDATE:return c(c({},e),{requestByApiUrl:c(c({},e.requestByApiUrl),(r={},r[E.api]=E.cleanResponse,r))});case s.CDEEBEEE_DROP_REQUEST_BY_API_URL:return c(c({},e),{requestByApiUrl:n(E.api,e.requestByApiUrl)});case s.CDEEBEEE_DROP_ERROR_BY_API_URL:return c(c({},e),{errorHandler:n(E.api,e.errorHandler)});case s.CDEEBEE_ERRORHANDLER_SET:return c(c({},e),{errorHandler:c(c({},e.errorHandler),(i={},i[E.api]=E.cleanResponse,i))});case s.CDEEBEE_INTERNAL_ERROR:return c(c({},e),{activeRequest:[],requestByApiUrl:{}});case s.CHANGE_ROUTE:return c(c({},g),{activeRequest:d(e.activeRequest)});default:return e}};y=function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?i(e):t}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=n(e);if(t){var i=n(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return a(this,r)}}function E(e,t,r){return E="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=n(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(r):i.value}},E(e,t,r||e)}var u=function(){function t(){e(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return r(t,[{key:"addEventListener",value:function(e,t,r){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:r})}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var r=this.listeners[e],n=0,o=r.length;n<o;n++)if(r[n].callback===t)return void r.splice(n,1)}},{key:"dispatchEvent",value:function(e){if(e.type in this.listeners){for(var t=this.listeners[e.type].slice(),r=0,n=t.length;r<n;r++){var o=t[r];try{o.callback.call(this,e)}catch(e){Promise.resolve().then((function(){throw e}))}o.options&&o.options.once&&this.removeEventListener(e.type,o.callback)}return!e.defaultPrevented}}}]),t}(),c=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,t);var a=s(c);function c(){var t;return e(this,c),(t=a.call(this)).listeners||u.call(i(t)),Object.defineProperty(i(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(i(t),"onabort",{value:null,writable:!0,configurable:!0}),t}return r(c,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),E(n(c.prototype),"dispatchEvent",this).call(this,e)}}]),c}(u),l=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new c,writable:!0,configurable:!0})}return r(t,[{key:"abort",value:function(){var e;try{e=new Event("abort")}catch(t){"undefined"!=typeof document?document.createEvent?(e=document.createEvent("Event")).initEvent("abort",!1,!1):(e=document.createEventObject()).type="abort":e={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(e)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();"undefined"!=typeof Symbol&&Symbol.toStringTag&&(l.prototype[Symbol.toStringTag]="AbortController",c.prototype[Symbol.toStringTag]="AbortSignal"),function(e){(function(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController})(e)&&(e.AbortController=l,e.AbortSignal=c)}("undefined"!=typeof self?self:global)},"function"==typeof define&&define.amd?define(y):y();var C={},I="undefined"!=typeof window?"signal"in new Request("")?window.fetch:i:a,N=function(e,t){var n=this;this.send=function(e){return function(t,o){return l(n,void 0,void 0,(function(){var n,i,a,E,u,l,f,y,_,d,R,b,v,T,h,D,O,A,S,g,m,N,B,q,L,P,w,U,j,H,Y,k,F,G,M,K,Q,x,z,W,J,V,X;return p(this,(function(p){switch(p.label){case 0:n=r(this.requestObject,e),i=n.api,a=n.preUpdate,E=n.postUpdate,u=n.preError,l=n.postError,f=n.data,y=n.files,_=n.requestCancel,d=void 0===_||_,R=n.updateStore,b=void 0===R||R,v=n.fileKey,T=void 0===v?this.options.fileKey:v,h=n.primaryKey,D=void 0===h?this.options.primaryKey:h,O=n.bodyKey,A=void 0===O?this.options.bodyKey:O,S=n.method,g=void 0===S?this.options.method:S,m=n.normalize,N=void 0===m?this.options.normalize:m,B=n.mergeListStrategy,q=void 0===B?this.options.mergeListStrategy:B,L=n.headers,P=void 0===L?this.options.headers:L,w=n.responseKeyCode,U=void 0===w?this.options.responseKeyCode:w,j=Math.random().toString(36).substr(2),H=new Date,p.label=1;case 1:if(p.trys.push([1,4,,5]),Y=JSON.stringify(c(c({},f),{requestID:j})),k=new AbortController,F=k.signal,t({type:s.CDEEBEE_REQUESTMANAGER_SET,payload:{requestID:j,api:i,controller:k,data:f,requestCancel:d,requestStartTime:H,requestEndTime:void 0}}),y){for(G=new FormData,M=0;M<y.length;M+=1)T&&G.append(T,y[M]);A&&G.append(A,Y),Y=G}return[4,I(i,{method:g,signal:F,headers:c({"ui-request-id":j},P),body:Y})];case 2:return[4,p.sent().json()];case 3:if(K=p.sent())for(C=Object.assign(((J={})[j]={response:K,requestApi:i,requestStartTime:H,preUpdate:a,postUpdate:E,normalize:N,preError:u,postError:l,mergeListStrategy:q},J),C);C[null===(X=null===(V=o().requestManager.activeRequest)||void 0===V?void 0:V[0])||void 0===X?void 0:X.requestID];)Q=o().requestManager.activeRequest[0].requestID,x=C[Q],delete C[Q],U&&0===x.response[U]?(x.preUpdate&&x.preUpdate(x.response),b&&t({type:s.CDEEBEEE_UPDATE,payload:{response:x.normalize instanceof Function&&x.normalize({response:x.response,cdeebee:o().cdeebee,mergeListStrategy:x.mergeListStrategy,primaryKey:D}),cleanResponse:x.response,api:x.requestApi,mergeListStrategy:x.mergeListStrategy}}),x.postUpdate&&x.postUpdate(x.response)):(x.preError&&x.preError(x.response),t({type:s.CDEEBEE_ERRORHANDLER_SET,payload:{api:x.requestApi,cleanResponse:x.response}}),x.postError&&x.postError(K)),t({type:s.CDEEBEE_REQUESTMANAGER_SHIFT,payload:{requestID:j,api:x.requestApi,controller:k,data:f,requestCancel:d,requestStartTime:x.requestStartTime,requestEndTime:new Date}});return[3,5];case 4:return"AbortError"===(z=p.sent()).name?t({type:s.CDEEBEE_REQUEST_ABORTED,payload:{requestID:j,api:i}}):(W=new Date,t({type:s.CDEEBEE_INTERNAL_ERROR,payload:{requestStartTime:H,requestEndTime:W,requestID:j,api:i}}),console.warn("@@makeRequest-error",z),console.warn("@@makeRequest-object",r(this.requestObject,e)),console.warn("@@makeRequest-info",{requestStartTime:H,requestEndTime:W,requestID:j}),this.options.hasOwnProperty("globalErrorHandler")&&this.options.globalErrorHandler instanceof Function&&this.options.globalErrorHandler(z,r(this.requestObject,e),{requestStartTime:H,requestEndTime:W,requestID:j})(t,o)),[3,5];case 5:return[2]}}))}))}},this.requestObject=e,this.options=c({fileKey:"files",bodyKey:"body",method:"POST",primaryKey:"primaryKey",normalize:D,responseKeyCode:"responseStatus",headers:{"content-type":"application/json"}},t)};var B=Object.freeze({__proto__:null,unsafe_updateStore:function(e,t,r){return function(n){n({type:s.CDEEBEE_ENTITY_UNSAFE_UPDATE_STORE,payload:{entityList:e,entityID:t,value:r}})}},setKeyValue:function(e,t,r){return function(n){n({type:s.CDEEBEE_ENTITY_CHANGE_FIELD,payload:{entityList:e,entityID:t,valueList:r}})}},commitEntity:function(e,t,r){return function(n){n({type:s.CDEEBEE_SET_ENTITY,payload:{entityList:e,entityID:t,entity:r}})}},resetEntity:function(e,t){return function(r){r({type:s.CDEEBEE_RESET_ENTITY,payload:{entityList:e,entityID:t}})}},dropCdeebeePath:function(e){return function(t){return t({type:s.CDEEBEEE_DROP_PATH,payload:{path:e}})}},dropRequestByApiUrl:function(e){return function(t){return t({type:s.CDEEBEEE_DROP_REQUEST_BY_API_URL,payload:{api:e}})}},dropErrorsByApiUrl:function(e){return function(t){return t({type:s.CDEEBEEE_DROP_ERROR_BY_API_URL,payload:{api:e}})}}});export{N as CdeebeeRequest,S as cdeebee,B as cdeebeeActions,E as cdeebeeEntityState,O as cdeebeeHelpers,u as cdeebeeMergeStrategy,s as cdeebeeTypes,m as requestManager};
|
|
16
|
-
//# sourceMappingURL=index.esm.js.map
|
package/lib/index.esm.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../node_modules/abortcontroller-polyfill/dist/abortcontroller-polyfill-only.js"],"sourcesContent":["(function (factory) {\n typeof define === 'function' && define.amd ? define(factory) :\n factory();\n}((function () { 'use strict';\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n }\n\n function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n }\n\n function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n }\n\n function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n }\n\n function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n }\n\n function _possibleConstructorReturn(self, call) {\n if (call && (typeof call === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n }\n\n function _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n }\n\n function _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = _getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n }\n\n function _get(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n _get = Reflect.get;\n } else {\n _get = function _get(target, property, receiver) {\n var base = _superPropBase(target, property);\n\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(receiver);\n }\n\n return desc.value;\n };\n }\n\n return _get(target, property, receiver || target);\n }\n\n var Emitter = /*#__PURE__*/function () {\n function Emitter() {\n _classCallCheck(this, Emitter);\n\n Object.defineProperty(this, 'listeners', {\n value: {},\n writable: true,\n configurable: true\n });\n }\n\n _createClass(Emitter, [{\n key: \"addEventListener\",\n value: function addEventListener(type, callback, options) {\n if (!(type in this.listeners)) {\n this.listeners[type] = [];\n }\n\n this.listeners[type].push({\n callback: callback,\n options: options\n });\n }\n }, {\n key: \"removeEventListener\",\n value: function removeEventListener(type, callback) {\n if (!(type in this.listeners)) {\n return;\n }\n\n var stack = this.listeners[type];\n\n for (var i = 0, l = stack.length; i < l; i++) {\n if (stack[i].callback === callback) {\n stack.splice(i, 1);\n return;\n }\n }\n }\n }, {\n key: \"dispatchEvent\",\n value: function dispatchEvent(event) {\n if (!(event.type in this.listeners)) {\n return;\n }\n\n var stack = this.listeners[event.type];\n var stackToCall = stack.slice();\n\n for (var i = 0, l = stackToCall.length; i < l; i++) {\n var listener = stackToCall[i];\n\n try {\n listener.callback.call(this, event);\n } catch (e) {\n Promise.resolve().then(function () {\n throw e;\n });\n }\n\n if (listener.options && listener.options.once) {\n this.removeEventListener(event.type, listener.callback);\n }\n }\n\n return !event.defaultPrevented;\n }\n }]);\n\n return Emitter;\n }();\n\n var AbortSignal = /*#__PURE__*/function (_Emitter) {\n _inherits(AbortSignal, _Emitter);\n\n var _super = _createSuper(AbortSignal);\n\n function AbortSignal() {\n var _this;\n\n _classCallCheck(this, AbortSignal);\n\n _this = _super.call(this); // Some versions of babel does not transpile super() correctly for IE <= 10, if the parent\n // constructor has failed to run, then \"this.listeners\" will still be undefined and then we call\n // the parent constructor directly instead as a workaround. For general details, see babel bug:\n // https://github.com/babel/babel/issues/3041\n // This hack was added as a fix for the issue described here:\n // https://github.com/Financial-Times/polyfill-library/pull/59#issuecomment-477558042\n\n if (!_this.listeners) {\n Emitter.call(_assertThisInitialized(_this));\n } // Compared to assignment, Object.defineProperty makes properties non-enumerable by default and\n // we want Object.keys(new AbortController().signal) to be [] for compat with the native impl\n\n\n Object.defineProperty(_assertThisInitialized(_this), 'aborted', {\n value: false,\n writable: true,\n configurable: true\n });\n Object.defineProperty(_assertThisInitialized(_this), 'onabort', {\n value: null,\n writable: true,\n configurable: true\n });\n return _this;\n }\n\n _createClass(AbortSignal, [{\n key: \"toString\",\n value: function toString() {\n return '[object AbortSignal]';\n }\n }, {\n key: \"dispatchEvent\",\n value: function dispatchEvent(event) {\n if (event.type === 'abort') {\n this.aborted = true;\n\n if (typeof this.onabort === 'function') {\n this.onabort.call(this, event);\n }\n }\n\n _get(_getPrototypeOf(AbortSignal.prototype), \"dispatchEvent\", this).call(this, event);\n }\n }]);\n\n return AbortSignal;\n }(Emitter);\n var AbortController = /*#__PURE__*/function () {\n function AbortController() {\n _classCallCheck(this, AbortController);\n\n // Compared to assignment, Object.defineProperty makes properties non-enumerable by default and\n // we want Object.keys(new AbortController()) to be [] for compat with the native impl\n Object.defineProperty(this, 'signal', {\n value: new AbortSignal(),\n writable: true,\n configurable: true\n });\n }\n\n _createClass(AbortController, [{\n key: \"abort\",\n value: function abort() {\n var event;\n\n try {\n event = new Event('abort');\n } catch (e) {\n if (typeof document !== 'undefined') {\n if (!document.createEvent) {\n // For Internet Explorer 8:\n event = document.createEventObject();\n event.type = 'abort';\n } else {\n // For Internet Explorer 11:\n event = document.createEvent('Event');\n event.initEvent('abort', false, false);\n }\n } else {\n // Fallback where document isn't available:\n event = {\n type: 'abort',\n bubbles: false,\n cancelable: false\n };\n }\n }\n\n this.signal.dispatchEvent(event);\n }\n }, {\n key: \"toString\",\n value: function toString() {\n return '[object AbortController]';\n }\n }]);\n\n return AbortController;\n }();\n\n if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n // These are necessary to make sure that we get correct output for:\n // Object.prototype.toString.call(new AbortController())\n AbortController.prototype[Symbol.toStringTag] = 'AbortController';\n AbortSignal.prototype[Symbol.toStringTag] = 'AbortSignal';\n }\n\n function polyfillNeeded(self) {\n if (self.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL) {\n console.log('__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill');\n return true;\n } // Note that the \"unfetch\" minimal fetch polyfill defines fetch() without\n // defining window.Request, and this polyfill need to work on top of unfetch\n // so the below feature detection needs the !self.AbortController part.\n // The Request.prototype check is also needed because Safari versions 11.1.2\n // up to and including 12.1.x has a window.AbortController present but still\n // does NOT correctly implement abortable fetch:\n // https://bugs.webkit.org/show_bug.cgi?id=174980#c2\n\n\n return typeof self.Request === 'function' && !self.Request.prototype.hasOwnProperty('signal') || !self.AbortController;\n }\n\n (function (self) {\n\n if (!polyfillNeeded(self)) {\n return;\n }\n\n self.AbortController = AbortController;\n self.AbortSignal = AbortSignal;\n })(typeof self !== 'undefined' ? self : global);\n\n})));\n"],"names":["factory","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_createClass","protoProps","staticProps","prototype","_getPrototypeOf","o","setPrototypeOf","getPrototypeOf","__proto__","_setPrototypeOf","p","_assertThisInitialized","self","ReferenceError","_possibleConstructorReturn","call","_createSuper","Derived","hasNativeReflectConstruct","Reflect","construct","sham","Proxy","Boolean","valueOf","e","_isNativeReflectConstruct","result","Super","NewTarget","this","constructor","arguments","apply","_get","property","receiver","get","base","object","hasOwnProperty","_superPropBase","desc","getOwnPropertyDescriptor","value","Emitter","type","callback","options","listeners","push","stack","l","splice","event","stackToCall","slice","listener","Promise","resolve","then","once","removeEventListener","defaultPrevented","AbortSignal","_Emitter","subClass","superClass","create","_inherits","_super","_this","aborted","onabort","AbortController","Event","document","createEvent","initEvent","createEventObject","bubbles","cancelable","signal","dispatchEvent","Symbol","toStringTag","__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL","console","log","Request","polyfillNeeded","global","define","amd"],"mappings":"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"}
|
package/lib/index.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("ramda"),t=require("whatwg-fetch");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n,o,i,s=r(require("node-fetch")),a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};
|
|
2
|
-
/*! *****************************************************************************
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted.
|
|
7
|
-
|
|
8
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */function c(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function E(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function u(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}exports.cdeebeeTypes=void 0,(n=exports.cdeebeeTypes||(exports.cdeebeeTypes={})).CDEEBEE_REQUESTMANAGER_SHIFT="@@cdeebee/REQUESTMANAGER_SHIFT",n.CDEEBEE_REQUESTMANAGER_SET="@@cdeebee/REQUESTMANAGER_SET",n.CDEEBEE_ERRORHANDLER_SET="@@cdeebee/ERRORHANDLER_SET",n.CDEEBEE_ENTITY_CHANGE_FIELD="@@cdeebee/ENTITY_CHANGE_FIELD",n.CDEEBEE_ENTITY_UNSAFE_UPDATE_STORE="@@cdeebee/ENTITY_UNSAFE_UPDATE_STORE",n.CDEEBEE_RESET_ENTITY="@@cdeebee/RESET_ENTITY",n.CDEEBEE_SET_ENTITY="@@cdeebee/SET_ENTITY",n.CDEEBEEE_UPDATE="@@cdeebee/UPDATE",n.CDEEBEEE_DROP="@@cdeebee/DROP",n.CDEEBEEE_DROP_PATH="@@cdeebee/DROP_PATH",n.CDEEBEE_INTERNAL_ERROR="@@cdeebee/INTERNAL_ERROR",n.CDEEBEE_REQUEST_ABORTED="@@cdeebee/REQUEST_ABORTED",n.CDEEBEEE_DROP_REQUEST_BY_API_URL="@@cdeebee/DROP_REQUEST_BY_API_URL",n.CDEEBEEE_DROP_ERROR_BY_API_URL="@@cdeebee/DROP_ERROR_BY_API_URL",n.CHANGE_ROUTE="@@router/LOCATION_CHANGE",exports.cdeebeeEntityState=void 0,(o=exports.cdeebeeEntityState||(exports.cdeebeeEntityState={})).NEW="NEW",o.EDITING="EDITING",o.NORMAL="NORMAL",exports.cdeebeeMergeStrategy=void 0,(i=exports.cdeebeeMergeStrategy||(exports.cdeebeeMergeStrategy={})).merge="merge",i.replace="replace";var p,l=function(t){return e.omit(["__entity","__state"],t)},y=function(e){return e.filter((function(e){return!e.requestCancel||(d(e),!1)}))},d=function(e){e.controller&&e.controller.abort instanceof Function&&e.controller.abort()},f=function(e){var t,r=(null===(t=null==e?void 0:e.__entity)||void 0===t?void 0:t.__state)||(null==e?void 0:e.__state);return r||exports.cdeebeeEntityState.NORMAL},b=function(e){return f(e)===exports.cdeebeeEntityState.NORMAL?(console.warn("reset works only in editing and new states"),e):l(e)},_=function(t,r,n){var o=t[r];if(f(o[n])===exports.cdeebeeEntityState.EDITING)return t;var i=e.assocPath([r,n,"__entity"],o[n],t);return e.assocPath([r,n,"__entity","__state"],exports.cdeebeeEntityState.EDITING,i)},T=function(t,r,n){for(var o=n||[],i=t,s=0;s<r.length;s++){var a=r[s];i=e.assocPath(u(u([],o,!0),a.key,!0),a.value,i)}return i},R=function(t){var r=t.response;r.responseStatus;for(var n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(r,["responseStatus"]),o=t.cdeebee,i=t.mergeListStrategy,s=t.primaryKey,a=0,c=Object.keys(n);a<c.length;a++){var E=c[a],u={};if(n[E]instanceof Object&&n[E].hasOwnProperty(s)){for(var p=0,l=n[E].data;p<l.length;p++){var y=l[p];u[y[n[E][s]]]=y}i[E]===exports.cdeebeeMergeStrategy.replace?n[E]=u:n[E]=e.mergeDeepRight(o[E],u)}else null!==n[E]&&void 0!==n[E]&&"string"!=typeof n[E]||(n=e.omit([E],n))}return n},h=Object.freeze({__proto__:null,dropRequestFromArray:y,requestCancel:d,checkNetworkActivity:function(e,t){if(!t||0===e.length)return!1;for(var r=t instanceof Array?t:[t],n=e.map((function(e){return e.api})),o=0;o<r.length;o+=1)if(n.includes(r[o]))return!0;return!1},getSubEntity:function(e){return e.__entity||e},getEntityState:f,insertEntity:function(e){return e.__state=exports.cdeebeeEntityState.NEW,e},commitEntity:function(e){return f(e)===exports.cdeebeeEntityState.NORMAL?(console.warn("commit works only in editing and new states"),e):l(e)},resetEntity:b,editEntity:_,batchingUpdate:T,defaultNormalize:R}),v={},D={activeRequest:[],requestByApiUrl:{},errorHandler:{}};p=function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?i(e):t}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=n(e);if(t){var i=n(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return s(this,r)}}function c(e,t,r){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=n(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(r):i.value}},c(e,t,r||e)}var E=function(){function t(){e(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return r(t,[{key:"addEventListener",value:function(e,t,r){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:r})}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var r=this.listeners[e],n=0,o=r.length;n<o;n++)if(r[n].callback===t)return void r.splice(n,1)}},{key:"dispatchEvent",value:function(e){if(e.type in this.listeners){for(var t=this.listeners[e.type].slice(),r=0,n=t.length;r<n;r++){var o=t[r];try{o.callback.call(this,e)}catch(e){Promise.resolve().then((function(){throw e}))}o.options&&o.options.once&&this.removeEventListener(e.type,o.callback)}return!e.defaultPrevented}}}]),t}(),u=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(u,t);var s=a(u);function u(){var t;return e(this,u),(t=s.call(this)).listeners||E.call(i(t)),Object.defineProperty(i(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(i(t),"onabort",{value:null,writable:!0,configurable:!0}),t}return r(u,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),c(n(u.prototype),"dispatchEvent",this).call(this,e)}}]),u}(E),p=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new u,writable:!0,configurable:!0})}return r(t,[{key:"abort",value:function(){var e;try{e=new Event("abort")}catch(t){"undefined"!=typeof document?document.createEvent?(e=document.createEvent("Event")).initEvent("abort",!1,!1):(e=document.createEventObject()).type="abort":e={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(e)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();"undefined"!=typeof Symbol&&Symbol.toStringTag&&(p.prototype[Symbol.toStringTag]="AbortController",u.prototype[Symbol.toStringTag]="AbortSignal"),function(e){(function(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController})(e)&&(e.AbortController=p,e.AbortSignal=u)}("undefined"!=typeof self?self:global)},"function"==typeof define&&define.amd?define(p):p();var g={},O="undefined"!=typeof window?"signal"in new Request("")?window.fetch:t.fetch:s.default,S=function(t,r){var n=this;this.send=function(t){return function(r,o){return c(n,void 0,void 0,(function(){var n,i,s,c,u,p,l,y,d,f,b,_,T,R,h,v,D,S,A,m,C,I,P,N,q,B,L,w,x,U,j,H,Y,k,M,F,G,K,Q,z,W,J,V;return E(this,(function(E){switch(E.label){case 0:n=e.mergeDeepRight(this.requestObject,t),i=n.api,s=n.preUpdate,c=n.postUpdate,u=n.preError,p=n.postError,l=n.data,y=n.files,d=n.requestCancel,f=void 0===d||d,b=n.updateStore,_=void 0===b||b,T=n.fileKey,R=void 0===T?this.options.fileKey:T,h=n.primaryKey,v=void 0===h?this.options.primaryKey:h,D=n.bodyKey,S=void 0===D?this.options.bodyKey:D,A=n.method,m=void 0===A?this.options.method:A,C=n.normalize,I=void 0===C?this.options.normalize:C,P=n.mergeListStrategy,N=void 0===P?this.options.mergeListStrategy:P,q=n.headers,B=void 0===q?this.options.headers:q,L=n.responseKeyCode,w=void 0===L?this.options.responseKeyCode:L,x=Math.random().toString(36).substr(2),U=new Date,E.label=1;case 1:if(E.trys.push([1,4,,5]),j=JSON.stringify(a(a({},l),{requestID:x})),H=new AbortController,Y=H.signal,r({type:exports.cdeebeeTypes.CDEEBEE_REQUESTMANAGER_SET,payload:{requestID:x,api:i,controller:H,data:l,requestCancel:f,requestStartTime:U,requestEndTime:void 0}}),y){for(k=new FormData,M=0;M<y.length;M+=1)R&&k.append(R,y[M]);S&&k.append(S,j),j=k}return[4,O(i,{method:m,signal:Y,headers:a({"ui-request-id":x},B),body:j})];case 2:return[4,E.sent().json()];case 3:if(F=E.sent())for(g=Object.assign(((W={})[x]={response:F,requestApi:i,requestStartTime:U,preUpdate:s,postUpdate:c,normalize:I,preError:u,postError:p,mergeListStrategy:N},W),g);g[null===(V=null===(J=o().requestManager.activeRequest)||void 0===J?void 0:J[0])||void 0===V?void 0:V.requestID];)G=o().requestManager.activeRequest[0].requestID,K=g[G],delete g[G],w&&0===K.response[w]?(K.preUpdate&&K.preUpdate(K.response),_&&r({type:exports.cdeebeeTypes.CDEEBEEE_UPDATE,payload:{response:K.normalize instanceof Function&&K.normalize({response:K.response,cdeebee:o().cdeebee,mergeListStrategy:K.mergeListStrategy,primaryKey:v}),cleanResponse:K.response,api:K.requestApi,mergeListStrategy:K.mergeListStrategy}}),K.postUpdate&&K.postUpdate(K.response)):(K.preError&&K.preError(K.response),r({type:exports.cdeebeeTypes.CDEEBEE_ERRORHANDLER_SET,payload:{api:K.requestApi,cleanResponse:K.response}}),K.postError&&K.postError(F)),r({type:exports.cdeebeeTypes.CDEEBEE_REQUESTMANAGER_SHIFT,payload:{requestID:x,api:K.requestApi,controller:H,data:l,requestCancel:f,requestStartTime:K.requestStartTime,requestEndTime:new Date}});return[3,5];case 4:return"AbortError"===(Q=E.sent()).name?r({type:exports.cdeebeeTypes.CDEEBEE_REQUEST_ABORTED,payload:{requestID:x,api:i}}):(z=new Date,r({type:exports.cdeebeeTypes.CDEEBEE_INTERNAL_ERROR,payload:{requestStartTime:U,requestEndTime:z,requestID:x,api:i}}),console.warn("@@makeRequest-error",Q),console.warn("@@makeRequest-object",e.mergeDeepRight(this.requestObject,t)),console.warn("@@makeRequest-info",{requestStartTime:U,requestEndTime:z,requestID:x}),this.options.hasOwnProperty("globalErrorHandler")&&this.options.globalErrorHandler instanceof Function&&this.options.globalErrorHandler(Q,e.mergeDeepRight(this.requestObject,t),{requestStartTime:U,requestEndTime:z,requestID:x})(r,o)),[3,5];case 5:return[2]}}))}))}},this.requestObject=t,this.options=a({fileKey:"files",bodyKey:"body",method:"POST",primaryKey:"primaryKey",normalize:R,responseKeyCode:"responseStatus",headers:{"content-type":"application/json"}},r)};var A=Object.freeze({__proto__:null,unsafe_updateStore:function(e,t,r){return function(n){n({type:exports.cdeebeeTypes.CDEEBEE_ENTITY_UNSAFE_UPDATE_STORE,payload:{entityList:e,entityID:t,value:r}})}},setKeyValue:function(e,t,r){return function(n){n({type:exports.cdeebeeTypes.CDEEBEE_ENTITY_CHANGE_FIELD,payload:{entityList:e,entityID:t,valueList:r}})}},commitEntity:function(e,t,r){return function(n){n({type:exports.cdeebeeTypes.CDEEBEE_SET_ENTITY,payload:{entityList:e,entityID:t,entity:r}})}},resetEntity:function(e,t){return function(r){r({type:exports.cdeebeeTypes.CDEEBEE_RESET_ENTITY,payload:{entityList:e,entityID:t}})}},dropCdeebeePath:function(e){return function(t){return t({type:exports.cdeebeeTypes.CDEEBEEE_DROP_PATH,payload:{path:e}})}},dropRequestByApiUrl:function(e){return function(t){return t({type:exports.cdeebeeTypes.CDEEBEEE_DROP_REQUEST_BY_API_URL,payload:{api:e}})}},dropErrorsByApiUrl:function(e){return function(t){return t({type:exports.cdeebeeTypes.CDEEBEEE_DROP_ERROR_BY_API_URL,payload:{api:e}})}}});exports.CdeebeeRequest=S,exports.cdeebee=function(t,r){void 0===t&&(t=v);var n=r.type,o=r.payload;switch(n){case exports.cdeebeeTypes.CDEEBEEE_UPDATE:return a(a({},t),o.response);case exports.cdeebeeTypes.CDEEBEE_ENTITY_CHANGE_FIELD:var i=_(t,o.entityList,o.entityID);return T(i,o.valueList,[o.entityList,o.entityID,"__entity"]);case exports.cdeebeeTypes.CDEEBEE_ENTITY_UNSAFE_UPDATE_STORE:return e.assocPath([o.entityList,o.entityID],o.value,t);case exports.cdeebeeTypes.CDEEBEE_SET_ENTITY:return e.assocPath([o.entityList,o.entityID],o.entity,t);case exports.cdeebeeTypes.CDEEBEE_RESET_ENTITY:var s=t[o.entityList];return e.assocPath([o.entityList,o.entityID],b(s[o.entityID]),t);case exports.cdeebeeTypes.CDEEBEEE_DROP:return v;case exports.cdeebeeTypes.CDEEBEEE_DROP_PATH:return e.omit(o.path,t);default:return t}},exports.cdeebeeActions=A,exports.cdeebeeHelpers=h,exports.requestManager=function(t,r){var n,o;void 0===t&&(t=D);var i=r.type,s=r.payload;switch(i){case exports.cdeebeeTypes.CDEEBEE_REQUESTMANAGER_SET:return a(a({},t),{activeRequest:u(u([],t.activeRequest,!0),[s],!1)});case exports.cdeebeeTypes.CDEEBEE_REQUESTMANAGER_SHIFT:return a(a({},t),{activeRequest:e.slice(1,1/0,t.activeRequest)});case exports.cdeebeeTypes.CDEEBEEE_UPDATE:return a(a({},t),{requestByApiUrl:a(a({},t.requestByApiUrl),(n={},n[s.api]=s.cleanResponse,n))});case exports.cdeebeeTypes.CDEEBEEE_DROP_REQUEST_BY_API_URL:return a(a({},t),{requestByApiUrl:e.dissoc(s.api,t.requestByApiUrl)});case exports.cdeebeeTypes.CDEEBEEE_DROP_ERROR_BY_API_URL:return a(a({},t),{errorHandler:e.dissoc(s.api,t.errorHandler)});case exports.cdeebeeTypes.CDEEBEE_ERRORHANDLER_SET:return a(a({},t),{errorHandler:a(a({},t.errorHandler),(o={},o[s.api]=s.cleanResponse,o))});case exports.cdeebeeTypes.CDEEBEE_INTERNAL_ERROR:return a(a({},t),{activeRequest:[],requestByApiUrl:{}});case exports.cdeebeeTypes.CHANGE_ROUTE:return a(a({},D),{activeRequest:y(t.activeRequest)});default:return t}};
|
|
16
|
-
//# sourceMappingURL=index.js.map
|