@dbmx/confy 0.0.68 → 0.0.71
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/esm/_virtual/browser.js +4 -0
- package/esm/_virtual/browser.js.map +1 -0
- package/esm/_virtual/index10.js +2 -2
- package/esm/_virtual/index11.js +2 -2
- package/esm/_virtual/index12.js +2 -2
- package/esm/_virtual/index13.js +2 -2
- package/esm/_virtual/index14.js +2 -2
- package/esm/_virtual/index15.js +4 -0
- package/esm/_virtual/index15.js.map +1 -0
- package/esm/_virtual/index16.js +4 -0
- package/esm/_virtual/index16.js.map +1 -0
- package/esm/_virtual/index17.js +4 -0
- package/esm/_virtual/index17.js.map +1 -0
- package/esm/_virtual/index18.js +4 -0
- package/esm/_virtual/index18.js.map +1 -0
- package/esm/_virtual/index8.js +2 -2
- package/esm/_virtual/index9.js +2 -2
- package/esm/_virtual/node.js +4 -0
- package/esm/_virtual/node.js.map +1 -0
- package/esm/_virtual/serialOrdered.js +4 -0
- package/esm/_virtual/serialOrdered.js.map +1 -0
- package/esm/components/Confy/index.js +1 -1
- package/esm/lib/api/auth.js +2 -1
- package/esm/lib/api/auth.js.map +1 -1
- package/esm/lib/api/config.js +2 -1
- package/esm/lib/api/config.js.map +1 -1
- package/esm/lib/api/index.js +2 -1
- package/esm/lib/api/index.js.map +1 -1
- package/esm/node_modules/@testing-library/dom/node_modules/ansi-styles/index.js +1 -1
- package/esm/node_modules/@testing-library/dom/node_modules/react-is/index.js +1 -1
- package/esm/node_modules/@testing-library/react-hooks/lib/core/index.js +7 -7
- package/esm/node_modules/@testing-library/react-hooks/lib/core/index.js.map +1 -1
- package/esm/node_modules/@testing-library/react-hooks/lib/dom/index.js +4 -4
- package/esm/node_modules/@testing-library/react-hooks/lib/dom/index.js.map +1 -1
- package/esm/node_modules/@testing-library/react-hooks/lib/dom/pure.js +11 -11
- package/esm/node_modules/@testing-library/react-hooks/lib/dom/pure.js.map +1 -1
- package/esm/node_modules/@testing-library/react-hooks/lib/types/react.js +4 -4
- package/esm/node_modules/@testing-library/react-hooks/lib/types/react.js.map +1 -1
- package/esm/node_modules/aria-query/lib/index.js +1 -1
- package/esm/node_modules/asynckit/index.js +13 -0
- package/esm/node_modules/asynckit/index.js.map +1 -0
- package/esm/node_modules/asynckit/lib/abort.js +32 -0
- package/esm/node_modules/asynckit/lib/abort.js.map +1 -0
- package/esm/node_modules/asynckit/lib/async.js +39 -0
- package/esm/node_modules/asynckit/lib/async.js.map +1 -0
- package/esm/node_modules/asynckit/lib/defer.js +29 -0
- package/esm/node_modules/asynckit/lib/defer.js.map +1 -0
- package/esm/node_modules/asynckit/lib/iterate.js +81 -0
- package/esm/node_modules/asynckit/lib/iterate.js.map +1 -0
- package/esm/node_modules/asynckit/lib/state.js +40 -0
- package/esm/node_modules/asynckit/lib/state.js.map +1 -0
- package/esm/node_modules/asynckit/lib/terminator.js +35 -0
- package/esm/node_modules/asynckit/lib/terminator.js.map +1 -0
- package/esm/node_modules/asynckit/parallel.js +50 -0
- package/esm/node_modules/asynckit/parallel.js.map +1 -0
- package/esm/node_modules/asynckit/serial.js +22 -0
- package/esm/node_modules/asynckit/serial.js.map +1 -0
- package/esm/node_modules/asynckit/serialOrdered.js +85 -0
- package/esm/node_modules/asynckit/serialOrdered.js.map +1 -0
- package/esm/node_modules/axios/index.js +26 -0
- package/esm/node_modules/axios/index.js.map +1 -0
- package/esm/node_modules/axios/lib/adapters/adapters.js +133 -0
- package/esm/node_modules/axios/lib/adapters/adapters.js.map +1 -0
- package/esm/node_modules/axios/lib/adapters/fetch.js +331 -0
- package/esm/node_modules/axios/lib/adapters/fetch.js.map +1 -0
- package/esm/node_modules/axios/lib/adapters/http.js +945 -0
- package/esm/node_modules/axios/lib/adapters/http.js.map +1 -0
- package/esm/node_modules/axios/lib/adapters/xhr.js +225 -0
- package/esm/node_modules/axios/lib/adapters/xhr.js.map +1 -0
- package/esm/node_modules/axios/lib/axios.js +87 -0
- package/esm/node_modules/axios/lib/axios.js.map +1 -0
- package/esm/node_modules/axios/lib/cancel/CancelToken.js +134 -0
- package/esm/node_modules/axios/lib/cancel/CancelToken.js.map +1 -0
- package/esm/node_modules/axios/lib/cancel/CanceledError.js +21 -0
- package/esm/node_modules/axios/lib/cancel/CanceledError.js.map +1 -0
- package/esm/node_modules/axios/lib/cancel/isCancel.js +6 -0
- package/esm/node_modules/axios/lib/cancel/isCancel.js.map +1 -0
- package/esm/node_modules/axios/lib/core/Axios.js +260 -0
- package/esm/node_modules/axios/lib/core/Axios.js.map +1 -0
- package/esm/node_modules/axios/lib/core/AxiosError.js +89 -0
- package/esm/node_modules/axios/lib/core/AxiosError.js.map +1 -0
- package/esm/node_modules/axios/lib/core/AxiosHeaders.js +343 -0
- package/esm/node_modules/axios/lib/core/AxiosHeaders.js.map +1 -0
- package/esm/node_modules/axios/lib/core/InterceptorManager.js +71 -0
- package/esm/node_modules/axios/lib/core/InterceptorManager.js.map +1 -0
- package/esm/node_modules/axios/lib/core/buildFullPath.js +23 -0
- package/esm/node_modules/axios/lib/core/buildFullPath.js.map +1 -0
- package/esm/node_modules/axios/lib/core/dispatchRequest.js +78 -0
- package/esm/node_modules/axios/lib/core/dispatchRequest.js.map +1 -0
- package/esm/node_modules/axios/lib/core/mergeConfig.js +108 -0
- package/esm/node_modules/axios/lib/core/mergeConfig.js.map +1 -0
- package/esm/node_modules/axios/lib/core/settle.js +32 -0
- package/esm/node_modules/axios/lib/core/settle.js.map +1 -0
- package/esm/node_modules/axios/lib/core/transformData.js +29 -0
- package/esm/node_modules/axios/lib/core/transformData.js.map +1 -0
- package/esm/node_modules/axios/lib/defaults/index.js +171 -0
- package/esm/node_modules/axios/lib/defaults/index.js.map +1 -0
- package/esm/node_modules/axios/lib/defaults/transitional.js +9 -0
- package/esm/node_modules/axios/lib/defaults/transitional.js.map +1 -0
- package/esm/node_modules/axios/lib/env/data.js +4 -0
- package/esm/node_modules/axios/lib/env/data.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/AxiosTransformStream.js +155 -0
- package/esm/node_modules/axios/lib/helpers/AxiosTransformStream.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +61 -0
- package/esm/node_modules/axios/lib/helpers/AxiosURLSearchParams.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/HttpStatusCode.js +78 -0
- package/esm/node_modules/axios/lib/helpers/HttpStatusCode.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +28 -0
- package/esm/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/bind.js +15 -0
- package/esm/node_modules/axios/lib/helpers/bind.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/buildURL.js +67 -0
- package/esm/node_modules/axios/lib/helpers/buildURL.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/callbackify.js +19 -0
- package/esm/node_modules/axios/lib/helpers/callbackify.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/combineURLs.js +16 -0
- package/esm/node_modules/axios/lib/helpers/combineURLs.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/composeSignals.js +57 -0
- package/esm/node_modules/axios/lib/helpers/composeSignals.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/cookies.js +51 -0
- package/esm/node_modules/axios/lib/helpers/cookies.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +76 -0
- package/esm/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/formDataToJSON.js +94 -0
- package/esm/node_modules/axios/lib/helpers/formDataToJSON.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/formDataToStream.js +119 -0
- package/esm/node_modules/axios/lib/helpers/formDataToStream.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/fromDataURI.js +54 -0
- package/esm/node_modules/axios/lib/helpers/fromDataURI.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/isAbsoluteURL.js +20 -0
- package/esm/node_modules/axios/lib/helpers/isAbsoluteURL.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/isAxiosError.js +15 -0
- package/esm/node_modules/axios/lib/helpers/isAxiosError.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/isURLSameOrigin.js +19 -0
- package/esm/node_modules/axios/lib/helpers/isURLSameOrigin.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/parseHeaders.js +70 -0
- package/esm/node_modules/axios/lib/helpers/parseHeaders.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
- package/esm/node_modules/axios/lib/helpers/parseProtocol.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/progressEventReducer.js +54 -0
- package/esm/node_modules/axios/lib/helpers/progressEventReducer.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/readBlob.js +16 -0
- package/esm/node_modules/axios/lib/helpers/readBlob.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/resolveConfig.js +73 -0
- package/esm/node_modules/axios/lib/helpers/resolveConfig.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/speedometer.js +54 -0
- package/esm/node_modules/axios/lib/helpers/speedometer.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/spread.js +29 -0
- package/esm/node_modules/axios/lib/helpers/spread.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/throttle.js +45 -0
- package/esm/node_modules/axios/lib/helpers/throttle.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/toFormData.js +239 -0
- package/esm/node_modules/axios/lib/helpers/toFormData.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/toURLEncodedForm.js +20 -0
- package/esm/node_modules/axios/lib/helpers/toURLEncodedForm.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/trackStream.js +92 -0
- package/esm/node_modules/axios/lib/helpers/trackStream.js.map +1 -0
- package/esm/node_modules/axios/lib/helpers/validator.js +111 -0
- package/esm/node_modules/axios/lib/helpers/validator.js.map +1 -0
- package/esm/node_modules/axios/lib/platform/common/utils.js +47 -0
- package/esm/node_modules/axios/lib/platform/common/utils.js.map +1 -0
- package/esm/node_modules/axios/lib/platform/index.js +10 -0
- package/esm/node_modules/axios/lib/platform/index.js.map +1 -0
- package/esm/node_modules/axios/lib/platform/node/classes/FormData.js +6 -0
- package/esm/node_modules/axios/lib/platform/node/classes/FormData.js.map +1 -0
- package/esm/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +6 -0
- package/esm/node_modules/axios/lib/platform/node/classes/URLSearchParams.js.map +1 -0
- package/esm/node_modules/axios/lib/platform/node/index.js +40 -0
- package/esm/node_modules/axios/lib/platform/node/index.js.map +1 -0
- package/esm/node_modules/axios/lib/utils.js +920 -0
- package/esm/node_modules/axios/lib/utils.js.map +1 -0
- package/esm/node_modules/call-bind/index.js +1 -1
- package/esm/node_modules/call-bind-apply-helpers/actualApply.js +2 -2
- package/esm/node_modules/call-bind-apply-helpers/actualApply.js.map +1 -1
- package/esm/node_modules/call-bind-apply-helpers/applyBind.js +2 -2
- package/esm/node_modules/call-bind-apply-helpers/applyBind.js.map +1 -1
- package/esm/node_modules/call-bind-apply-helpers/index.js +4 -4
- package/esm/node_modules/call-bind-apply-helpers/index.js.map +1 -1
- package/esm/node_modules/call-bind-apply-helpers/node_modules/function-bind/implementation.js +66 -0
- package/esm/node_modules/call-bind-apply-helpers/node_modules/function-bind/implementation.js.map +1 -0
- package/esm/node_modules/call-bind-apply-helpers/node_modules/function-bind/index.js +7 -0
- package/esm/node_modules/call-bind-apply-helpers/node_modules/function-bind/index.js.map +1 -0
- package/esm/node_modules/combined-stream/lib/combined_stream.js +215 -0
- package/esm/node_modules/combined-stream/lib/combined_stream.js.map +1 -0
- package/esm/node_modules/debug/src/browser.js +287 -0
- package/esm/node_modules/debug/src/browser.js.map +1 -0
- package/esm/node_modules/debug/src/common.js +304 -0
- package/esm/node_modules/debug/src/common.js.map +1 -0
- package/esm/node_modules/debug/src/index.js +24 -0
- package/esm/node_modules/debug/src/index.js.map +1 -0
- package/esm/node_modules/debug/src/node.js +281 -0
- package/esm/node_modules/debug/src/node.js.map +1 -0
- package/esm/node_modules/deep-equal/node_modules/has-symbols/index.js +22 -0
- package/esm/node_modules/deep-equal/node_modules/has-symbols/index.js.map +1 -0
- package/esm/node_modules/deep-equal/node_modules/has-symbols/shams.js +58 -0
- package/esm/node_modules/deep-equal/node_modules/has-symbols/shams.js.map +1 -0
- package/esm/node_modules/deep-equal/node_modules/has-tostringtag/shams.js +9 -0
- package/esm/node_modules/deep-equal/node_modules/has-tostringtag/shams.js.map +1 -0
- package/esm/node_modules/deep-equal/node_modules/is-regex/index.js +53 -0
- package/esm/node_modules/deep-equal/node_modules/is-regex/index.js.map +1 -0
- package/esm/node_modules/deep-equal/node_modules/is-regex/node_modules/call-bind/callBound.js +16 -0
- package/esm/node_modules/deep-equal/node_modules/is-regex/node_modules/call-bind/callBound.js.map +1 -0
- package/esm/node_modules/deep-equal/node_modules/is-regex/node_modules/call-bind/index.js +53 -0
- package/esm/node_modules/deep-equal/node_modules/is-regex/node_modules/call-bind/index.js.map +1 -0
- package/esm/node_modules/deep-equal/node_modules/is-regex/node_modules/get-intrinsic/index.js +307 -0
- package/esm/node_modules/deep-equal/node_modules/is-regex/node_modules/get-intrinsic/index.js.map +1 -0
- package/esm/node_modules/define-data-property/index.js +2 -2
- package/esm/node_modules/define-data-property/index.js.map +1 -1
- package/esm/node_modules/delayed-stream/lib/delayed_stream.js +113 -0
- package/esm/node_modules/delayed-stream/lib/delayed_stream.js.map +1 -0
- package/esm/node_modules/es-errors/type.js +12 -3
- package/esm/node_modules/es-errors/type.js.map +1 -1
- package/esm/node_modules/es-set-tostringtag/index.js +41 -0
- package/esm/node_modules/es-set-tostringtag/index.js.map +1 -0
- package/esm/node_modules/follow-redirects/debug.js +20 -0
- package/esm/node_modules/follow-redirects/debug.js.map +1 -0
- package/esm/node_modules/follow-redirects/index.js +701 -0
- package/esm/node_modules/follow-redirects/index.js.map +1 -0
- package/esm/node_modules/form-data/lib/form_data.js +514 -0
- package/esm/node_modules/form-data/lib/form_data.js.map +1 -0
- package/esm/node_modules/form-data/lib/populate.js +11 -0
- package/esm/node_modules/form-data/lib/populate.js.map +1 -0
- package/esm/node_modules/function-bind/implementation.js +84 -93
- package/esm/node_modules/function-bind/implementation.js.map +1 -1
- package/esm/node_modules/function-bind/index.js +4 -13
- package/esm/node_modules/function-bind/index.js.map +1 -1
- package/esm/node_modules/get-intrinsic/index.js +4 -4
- package/esm/node_modules/get-intrinsic/index.js.map +1 -1
- package/esm/node_modules/get-intrinsic/node_modules/function-bind/implementation.js +75 -0
- package/esm/node_modules/get-intrinsic/node_modules/function-bind/implementation.js.map +1 -0
- package/esm/node_modules/get-intrinsic/node_modules/function-bind/index.js +16 -0
- package/esm/node_modules/get-intrinsic/node_modules/function-bind/index.js.map +1 -0
- package/esm/node_modules/has/src/index.js +7 -0
- package/esm/node_modules/has/src/index.js.map +1 -0
- package/esm/node_modules/has-flag/index.js +18 -0
- package/esm/node_modules/has-flag/index.js.map +1 -0
- package/esm/node_modules/has-symbols/index.js +2 -2
- package/esm/node_modules/has-symbols/index.js.map +1 -1
- package/esm/node_modules/has-symbols/shams.js +43 -34
- package/esm/node_modules/has-symbols/shams.js.map +1 -1
- package/esm/node_modules/has-tostringtag/shams.js +16 -7
- package/esm/node_modules/has-tostringtag/shams.js.map +1 -1
- package/esm/node_modules/hasown/index.js +2 -2
- package/esm/node_modules/hasown/index.js.map +1 -1
- package/esm/node_modules/hasown/node_modules/function-bind/implementation.js +75 -0
- package/esm/node_modules/hasown/node_modules/function-bind/implementation.js.map +1 -0
- package/esm/node_modules/hasown/node_modules/function-bind/index.js +16 -0
- package/esm/node_modules/hasown/node_modules/function-bind/index.js.map +1 -0
- package/esm/node_modules/is-arguments/index.js +2 -2
- package/esm/node_modules/is-arguments/index.js.map +1 -1
- package/esm/node_modules/is-bigint/index.js +1 -1
- package/esm/node_modules/is-boolean-object/index.js +2 -2
- package/esm/node_modules/is-boolean-object/index.js.map +1 -1
- package/esm/node_modules/is-boolean-object/node_modules/call-bind/callBound.js +16 -0
- package/esm/node_modules/is-boolean-object/node_modules/call-bind/callBound.js.map +1 -0
- package/esm/node_modules/is-boolean-object/node_modules/call-bind/index.js +53 -0
- package/esm/node_modules/is-boolean-object/node_modules/call-bind/index.js.map +1 -0
- package/esm/node_modules/is-boolean-object/node_modules/get-intrinsic/index.js +307 -0
- package/esm/node_modules/is-boolean-object/node_modules/get-intrinsic/index.js.map +1 -0
- package/esm/node_modules/is-boolean-object/node_modules/has-symbols/index.js +22 -0
- package/esm/node_modules/is-boolean-object/node_modules/has-symbols/index.js.map +1 -0
- package/esm/node_modules/is-boolean-object/node_modules/has-symbols/shams.js +67 -0
- package/esm/node_modules/is-boolean-object/node_modules/has-symbols/shams.js.map +1 -0
- package/esm/node_modules/is-boolean-object/node_modules/has-tostringtag/shams.js +18 -0
- package/esm/node_modules/is-boolean-object/node_modules/has-tostringtag/shams.js.map +1 -0
- package/esm/node_modules/is-date-object/index.js +2 -2
- package/esm/node_modules/is-date-object/index.js.map +1 -1
- package/esm/node_modules/is-number-object/index.js +2 -2
- package/esm/node_modules/is-number-object/index.js.map +1 -1
- package/esm/node_modules/is-number-object/node_modules/has-symbols/shams.js +58 -0
- package/esm/node_modules/is-number-object/node_modules/has-symbols/shams.js.map +1 -0
- package/esm/node_modules/is-number-object/node_modules/has-tostringtag/shams.js +9 -0
- package/esm/node_modules/is-number-object/node_modules/has-tostringtag/shams.js.map +1 -0
- package/esm/node_modules/is-regex/index.js +2 -2
- package/esm/node_modules/is-regex/index.js.map +1 -1
- package/esm/node_modules/is-string/index.js +2 -2
- package/esm/node_modules/is-string/index.js.map +1 -1
- package/esm/node_modules/is-string/node_modules/has-symbols/shams.js +58 -0
- package/esm/node_modules/is-string/node_modules/has-symbols/shams.js.map +1 -0
- package/esm/node_modules/is-string/node_modules/has-tostringtag/shams.js +9 -0
- package/esm/node_modules/is-string/node_modules/has-tostringtag/shams.js.map +1 -0
- package/esm/node_modules/is-symbol/index.js +1 -1
- package/esm/node_modules/is-symbol/node_modules/has-symbols/index.js +22 -0
- package/esm/node_modules/is-symbol/node_modules/has-symbols/index.js.map +1 -0
- package/esm/node_modules/is-symbol/node_modules/has-symbols/shams.js +58 -0
- package/esm/node_modules/is-symbol/node_modules/has-symbols/shams.js.map +1 -0
- package/esm/node_modules/is-weakset/index.js +1 -1
- package/esm/node_modules/mime-db/db.json.js +10705 -0
- package/esm/node_modules/mime-db/db.json.js.map +1 -0
- package/esm/node_modules/mime-db/index.js +17 -0
- package/esm/node_modules/mime-db/index.js.map +1 -0
- package/esm/node_modules/mime-types/index.js +194 -0
- package/esm/node_modules/mime-types/index.js.map +1 -0
- package/esm/node_modules/ms/index.js +173 -0
- package/esm/node_modules/ms/index.js.map +1 -0
- package/esm/node_modules/object-inspect/util.inspect.js +2 -2
- package/esm/node_modules/object-inspect/util.inspect.js.map +1 -1
- package/esm/node_modules/object.assign/implementation.js +2 -2
- package/esm/node_modules/object.assign/implementation.js.map +1 -1
- package/esm/node_modules/proxy-from-env/index.js +112 -0
- package/esm/node_modules/proxy-from-env/index.js.map +1 -0
- package/esm/node_modules/regexp.prototype.flags/implementation.js +2 -2
- package/esm/node_modules/regexp.prototype.flags/implementation.js.map +1 -1
- package/esm/node_modules/safe-regex-test/index.js +2 -2
- package/esm/node_modules/safe-regex-test/index.js.map +1 -1
- package/esm/node_modules/set-function-length/index.js +2 -2
- package/esm/node_modules/set-function-length/index.js.map +1 -1
- package/esm/node_modules/set-function-name/index.js +2 -2
- package/esm/node_modules/set-function-name/index.js.map +1 -1
- package/esm/node_modules/side-channel/index.js +2 -2
- package/esm/node_modules/side-channel/index.js.map +1 -1
- package/esm/node_modules/side-channel/node_modules/call-bind/callBound.js +16 -0
- package/esm/node_modules/side-channel/node_modules/call-bind/callBound.js.map +1 -0
- package/esm/node_modules/side-channel/node_modules/call-bind/index.js +53 -0
- package/esm/node_modules/side-channel/node_modules/call-bind/index.js.map +1 -0
- package/esm/node_modules/side-channel/node_modules/get-intrinsic/index.js +307 -0
- package/esm/node_modules/side-channel/node_modules/get-intrinsic/index.js.map +1 -0
- package/esm/node_modules/side-channel/node_modules/has-symbols/index.js +22 -0
- package/esm/node_modules/side-channel/node_modules/has-symbols/index.js.map +1 -0
- package/esm/node_modules/side-channel/node_modules/has-symbols/shams.js +58 -0
- package/esm/node_modules/side-channel/node_modules/has-symbols/shams.js.map +1 -0
- package/esm/node_modules/side-channel/node_modules/object-inspect/index.js +469 -0
- package/esm/node_modules/side-channel/node_modules/object-inspect/index.js.map +1 -0
- package/esm/node_modules/side-channel/node_modules/object-inspect/util.inspect.js +6 -0
- package/esm/node_modules/side-channel/node_modules/object-inspect/util.inspect.js.map +1 -0
- package/esm/node_modules/side-channel-list/index.js +2 -2
- package/esm/node_modules/side-channel-list/index.js.map +1 -1
- package/esm/node_modules/side-channel-map/index.js +2 -2
- package/esm/node_modules/side-channel-map/index.js.map +1 -1
- package/esm/node_modules/side-channel-weakmap/index.js +2 -2
- package/esm/node_modules/side-channel-weakmap/index.js.map +1 -1
- package/esm/node_modules/supports-color/index.js +149 -0
- package/esm/node_modules/supports-color/index.js.map +1 -0
- package/esm/node_modules/which-typed-array/index.js +2 -2
- package/esm/node_modules/which-typed-array/index.js.map +1 -1
- package/package.json +57 -61
- package/esm/lib/api/apiKeys.js +0 -51
- package/esm/lib/api/apiKeys.js.map +0 -1
- package/esm/lib/api/dataBuckets.js +0 -18
- package/esm/lib/api/dataBuckets.js.map +0 -1
- package/esm/lib/api/jobs.js +0 -56
- package/esm/lib/api/jobs.js.map +0 -1
- package/esm/lib/api/members.js +0 -33
- package/esm/lib/api/members.js.map +0 -1
- package/esm/lib/api/people.js +0 -50
- package/esm/lib/api/people.js.map +0 -1
- package/esm/lib/api/roles.js +0 -17
- package/esm/lib/api/roles.js.map +0 -1
- package/esm/lib/api/routes.js +0 -43
- package/esm/lib/api/routes.js.map +0 -1
- package/esm/lib/api/servicesMap.js +0 -17
- package/esm/lib/api/servicesMap.js.map +0 -1
- package/esm/lib/api/spaces.js +0 -32
- package/esm/lib/api/spaces.js.map +0 -1
- package/esm/lib/api/storage.js +0 -94
- package/esm/lib/api/storage.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/esm/_virtual/index10.js
CHANGED
package/esm/_virtual/index11.js
CHANGED
package/esm/_virtual/index12.js
CHANGED
package/esm/_virtual/index13.js
CHANGED
package/esm/_virtual/index14.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index15.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index16.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index17.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index18.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/esm/_virtual/index8.js
CHANGED
package/esm/_virtual/index9.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serialOrdered.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { slicedToArray as _slicedToArray,
|
|
1
|
+
import { slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2, asyncToGenerator as _asyncToGenerator, regenerator as _regenerator } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React__default, { useState, useEffect } from 'react';
|
|
3
3
|
import PropTypes from '../../node_modules/prop-types/index.js';
|
|
4
4
|
import { Provider } from 'react-redux';
|
package/esm/lib/api/auth.js
CHANGED
package/esm/lib/api/auth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sources":["../../../src/lib/api/auth.js"],"sourcesContent":["import axios from 'axios'\nimport { prop } from 'ramda'\n\nexport default ({ endPoint }) => ({\n createOTP: ({ email, redirectUri }) =>\n axios.post(endPoint(`/api/authOTP/createOTP`), { email, redirectUri }).then(prop('data')),\n getOTPTokens: ({ email, code }) =>\n axios.post(endPoint(`/api/authOTP/getOTPTokens`), { email, code }).then(prop('data')),\n getOTPLinkJWTTokens: ({ jwt }) =>\n axios.post(endPoint(`/api/authOTP/getOTPLinkJWTTokens`), { jwt }).then(prop('data')),\n getOTPSSOJWTTokens: ({ jwt }) => axios.post(endPoint(`/api/authOTP/getOTPSSOJWTTokens`), { jwt }).then(prop('data')),\n})\n"],"names":["_ref","endPoint","createOTP","_ref2","email","redirectUri","axios","post","then","prop","getOTPTokens","_ref3","code","getOTPLinkJWTTokens","_ref4","jwt","getOTPSSOJWTTokens","_ref5"],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth.js","sources":["../../../src/lib/api/auth.js"],"sourcesContent":["import axios from 'axios'\nimport { prop } from 'ramda'\n\nexport default ({ endPoint }) => ({\n createOTP: ({ email, redirectUri }) =>\n axios.post(endPoint(`/api/authOTP/createOTP`), { email, redirectUri }).then(prop('data')),\n getOTPTokens: ({ email, code }) =>\n axios.post(endPoint(`/api/authOTP/getOTPTokens`), { email, code }).then(prop('data')),\n getOTPLinkJWTTokens: ({ jwt }) =>\n axios.post(endPoint(`/api/authOTP/getOTPLinkJWTTokens`), { jwt }).then(prop('data')),\n getOTPSSOJWTTokens: ({ jwt }) => axios.post(endPoint(`/api/authOTP/getOTPSSOJWTTokens`), { jwt }).then(prop('data')),\n})\n"],"names":["_ref","endPoint","createOTP","_ref2","email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AA,CAAA;AACtFO,IAAAA,kBAAkB,EAAE,SAApBA,kBAAkBA,CAAAC,KAAA,EAAA;AAAA,MAAA,IAAKF,GAAG,GAAAE,KAAA,CAAHF,GAAG;AAAA,MAAA,OAAOT,KAAK,CAACC,IAAI,CAACN,QAAQ,CAAA,iCAAkC,CAAC,EAAE;AAAEc,QAAAA,GAAG,EAAHA;OAAK,CAAC,CAACP,IAAI,CAACC,IAAI,CAAC,MAAM,CAAC,CAAC;AAAA,IAAA;GACrH;AAAA,CAAC;;;;"}
|
package/esm/lib/api/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sources":["../../../src/lib/api/config.js"],"sourcesContent":["import axios from 'axios'\nimport { prop } from 'ramda'\n\nexport default ({ endPoint }) => ({\n load: () => axios.get(endPoint(`/api/config/load`)).then(prop('data')),\n})\n"],"names":["_ref","endPoint","load","axios","get","then","prop"],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.js","sources":["../../../src/lib/api/config.js"],"sourcesContent":["import axios from 'axios'\nimport { prop } from 'ramda'\n\nexport default ({ endPoint }) => ({\n load: () => axios.get(endPoint(`/api/config/load`)).then(prop('data')),\n})\n"],"names":["_ref","endPoint","load","axios","get","then","prop"],"mappings":";;;;AAGA,aAAA,CAAe,UAAAA,IAAA,EAAA;AAAA,EAAA,IAAGC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;EAAA,OAAQ;IAChCC,IAAI,EAAE,SAANA,IAAIA,GAAA;AAAA,MAAA,OAAQC,KAAK,CAACC,GAAG,CAACH,QAAQ,CAAA,kBAAmB,CAAC,CAAC,CAACI,IAAI,CAACC,IAAI,CAAC,MAAM,CAAC,CAAC;AAAA,IAAA;GACvE;AAAA,CAAC;;;;"}
|
package/esm/lib/api/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2, slicedToArray as _slicedToArray } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
2
|
+
import '../../node_modules/axios/index.js';
|
|
3
3
|
import urljoin from '../../node_modules/url-join/lib/url-join.js';
|
|
4
4
|
import config from './config.js';
|
|
5
5
|
import auth from './auth.js';
|
|
6
6
|
import path from '../../node_modules/ramda/es/path.js';
|
|
7
7
|
import split from '../../node_modules/ramda/es/split.js';
|
|
8
|
+
import axios from '../../node_modules/axios/lib/axios.js';
|
|
8
9
|
import prop from '../../node_modules/ramda/es/prop.js';
|
|
9
10
|
import compose from '../../node_modules/ramda/es/compose.js';
|
|
10
11
|
import forEach from '../../node_modules/ramda/es/forEach.js';
|
package/esm/lib/api/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/lib/api/index.js"],"sourcesContent":["import { prop, path, split, compose, toPairs, forEach } from 'ramda'\nimport axios from 'axios'\nimport urljoin from 'url-join'\n\nimport config from './config'\nimport auth from './auth'\n\nlet globalConfig = { debug: true, getBearer: () => {} }\nconst endPoint = (path, config = globalConfig) => (config.endpoint ? urljoin(config.endpoint, path) : path)\nconst authEndPoint = (path, config = globalConfig) => (config.authUrl ? urljoin(config.authUrl, path) : path)\nconst bearer = token => ({ Authorization: `Bearer ${token || globalConfig.getBearer()}` })\n\n/* eslint-disable-line no-shadow */\nconst setConfig = config => (globalConfig = { ...globalConfig, ...config })\n\nconst generic = ctx => {\n if (globalConfig.getToken) {\n return globalConfig\n .getToken()\n .then(token => axios.post(endPoint(`/api/gen/exec`), ctx, { headers: bearer(token) }).then(prop('data')))\n }\n return axios.post(endPoint(`/api/gen/exec`), ctx, { headers: bearer() }).then(prop('data'))\n}\n\nconst localMethods = {\n config,\n auth,\n}\n\nconst getFn = (main, name) => path(split(':', name), main)\n\nconst main = ({ method, ...rest }) => {\n const fn = getFn(main, method)\n if (fn) return fn(rest)\n const others = Object.hasOwn(rest, 'payload') ? rest : { payload: rest }\n return generic({ method, ...others })\n}\n\nconst init = methods => {\n compose(\n forEach(([name, fn]) => (main[name] = fn({ bearer, endPoint, authEndPoint }))),\n toPairs,\n )({ ...localMethods, ...methods })\n}\n\nmain.setOptions = setConfig\nmain.init = init\n\nexport default main\n"],"names":["globalConfig","debug","getBearer","endPoint","path","config","arguments","length","undefined","endpoint","urljoin","authEndPoint","authUrl","bearer","token","Authorization","concat","setConfig","_objectSpread","generic","ctx","getToken","then","axios","post","headers","prop","localMethods","auth","getFn","main","name","split","_ref","method","rest","_objectWithoutProperties","_excluded","fn","others","Object","hasOwn","payload","init","methods","compose","forEach","_ref2","_ref3","_slicedToArray","toPairs","setOptions"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/lib/api/index.js"],"sourcesContent":["import { prop, path, split, compose, toPairs, forEach } from 'ramda'\nimport axios from 'axios'\nimport urljoin from 'url-join'\n\nimport config from './config'\nimport auth from './auth'\n\nlet globalConfig = { debug: true, getBearer: () => {} }\nconst endPoint = (path, config = globalConfig) => (config.endpoint ? urljoin(config.endpoint, path) : path)\nconst authEndPoint = (path, config = globalConfig) => (config.authUrl ? urljoin(config.authUrl, path) : path)\nconst bearer = token => ({ Authorization: `Bearer ${token || globalConfig.getBearer()}` })\n\n/* eslint-disable-line no-shadow */\nconst setConfig = config => (globalConfig = { ...globalConfig, ...config })\n\nconst generic = ctx => {\n if (globalConfig.getToken) {\n return globalConfig\n .getToken()\n .then(token => axios.post(endPoint(`/api/gen/exec`), ctx, { headers: bearer(token) }).then(prop('data')))\n }\n return axios.post(endPoint(`/api/gen/exec`), ctx, { headers: bearer() }).then(prop('data'))\n}\n\nconst localMethods = {\n config,\n auth,\n}\n\nconst getFn = (main, name) => path(split(':', name), main)\n\nconst main = ({ method, ...rest }) => {\n const fn = getFn(main, method)\n if (fn) return fn(rest)\n const others = Object.hasOwn(rest, 'payload') ? rest : { payload: rest }\n return generic({ method, ...others })\n}\n\nconst init = methods => {\n compose(\n forEach(([name, fn]) => (main[name] = fn({ bearer, endPoint, authEndPoint }))),\n toPairs,\n )({ ...localMethods, ...methods })\n}\n\nmain.setOptions = setConfig\nmain.init = init\n\nexport default main\n"],"names":["globalConfig","debug","getBearer","endPoint","path","config","arguments","length","undefined","endpoint","urljoin","authEndPoint","authUrl","bearer","token","Authorization","concat","setConfig","_objectSpread","generic","ctx","getToken","then","axios","post","headers","prop","localMethods","auth","getFn","main","name","split","_ref","method","rest","_objectWithoutProperties","_excluded","fn","others","Object","hasOwn","payload","init","methods","compose","forEach","_ref2","_ref3","_slicedToArray","toPairs","setOptions"],"mappings":";;;;;;;;;;;;;;AAOA,IAAIA,YAAY,GAAG;AAAEC,EAAAA,KAAK,EAAE,IAAI;AAAEC,EAAAA,SAAS,EAAE,SAAXA,SAASA,GAAQ,CAAC;AAAE,CAAC;AACvD,IAAMC,QAAQ,GAAG,SAAXA,QAAQA,CAAIC,IAAI,EAAA;AAAA,EAAA,IAAEC,MAAM,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAGN,YAAY;AAAA,EAAA,OAAMK,MAAM,CAACI,QAAQ,GAAGC,OAAO,CAACL,MAAM,CAACI,QAAQ,EAAEL,IAAI,CAAC,GAAGA,IAAI;AAAA,CAAC;AAC3G,IAAMO,YAAY,GAAG,SAAfA,YAAYA,CAAIP,IAAI,EAAA;AAAA,EAAA,IAAEC,MAAM,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAGN,YAAY;AAAA,EAAA,OAAMK,MAAM,CAACO,OAAO,GAAGF,OAAO,CAACL,MAAM,CAACO,OAAO,EAAER,IAAI,CAAC,GAAGA,IAAI;AAAA,CAAC;AAC7G,IAAMS,MAAM,GAAG,SAATA,MAAMA,CAAGC,KAAK,EAAA;EAAA,OAAK;IAAEC,aAAa,E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A,IAAI,GAAAC,wBAAA,CAAAH,IAAA,EAAAI,SAAA,CAAA;AAC7B,EAAA,IAAMC,EAAE,GAAGT,KAAK,CAACC,KAAI,EAAEI,MAAM,CAAC;AAC9B,EAAA,IAAII,EAAE,EAAE,OAAOA,EAAE,CAACH,IAAI,CAAC;AACvB,EAAA,IAAMI,MAAM,GAAGC,MAAM,CAACC,MAAM,CAACN,IAAI,EAAE,SAAS,CAAC,GAAGA,IAAI,GAAG;AAAEO,IAAAA,OAAO,EAAEP;GAAM;EACxE,OAAOhB,OAAO,CAAAD,cAAA,CAAA;AAAGgB,IAAAA,MAAM,EAANA;GAAM,EAAKK,MAAM,CAAE,CAAC;AACvC;AAEA,IAAMI,IAAI,GAAG,SAAPA,IAAIA,CAAGC,OAAO,EAAI;AACtBC,EAAAA,OAAO,CACLC,OAAO,CAAC,UAAAC,KAAA,EAAA;AAAA,IAAA,IAAAC,KAAA,GAAAC,cAAA,CAAAF,KAAA,EAAA,CAAA,CAAA;AAAEhB,MAAAA,IAAI,GAAAiB,KAAA,CAAA,CAAA,CAAA;AAAEV,MAAAA,EAAE,GAAAU,KAAA,CAAA,CAAA,CAAA;AAAA,IAAA,OAAOlB,KAAI,CAACC,IAAI,CAAC,GAAGO,EAAE,CAAC;AAAEzB,MAAAA,MAAM,EAANA,MAAM;AAAEV,MAAAA,QAAQ,EAARA,QAAQ;AAAEQ,MAAAA,YAAY,EAAZA;AAAa,KAAC,CAAC;AAAA,EAAA,CAAC,CAAC,EAC9EuC,OACF,CAAC,CAAAhC,cAAA,CAAAA,cAAA,CAAA,EAAA,EAAMS,YAAY,CAAA,EAAKiB,OAAO,CAAE,CAAC;AACpC,CAAC;AAEDd,KAAI,CAACqB,UAAU,GAAGlC,SAAS;AAC3Ba,KAAI,CAACa,IAAI,GAAGA,IAAI;;;;"}
|
|
@@ -6,31 +6,31 @@ import { __exports as cleanup } from '../../../../../_virtual/cleanup.js';
|
|
|
6
6
|
import { __exports as console } from '../../../../../_virtual/console.js';
|
|
7
7
|
import { __exports as asyncUtils } from '../../../../../_virtual/asyncUtils.js';
|
|
8
8
|
|
|
9
|
-
(function (exports) {
|
|
9
|
+
(function (exports$1) {
|
|
10
10
|
|
|
11
|
-
Object.defineProperty(exports, "__esModule", {
|
|
11
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
12
12
|
value: true
|
|
13
13
|
});
|
|
14
|
-
Object.defineProperty(exports, "addCleanup", {
|
|
14
|
+
Object.defineProperty(exports$1, "addCleanup", {
|
|
15
15
|
enumerable: true,
|
|
16
16
|
get: function () {
|
|
17
17
|
return _cleanup.addCleanup;
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
Object.defineProperty(exports, "cleanup", {
|
|
20
|
+
Object.defineProperty(exports$1, "cleanup", {
|
|
21
21
|
enumerable: true,
|
|
22
22
|
get: function () {
|
|
23
23
|
return _cleanup.cleanup;
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
exports.createRenderHook = createRenderHook;
|
|
27
|
-
Object.defineProperty(exports, "removeCleanup", {
|
|
26
|
+
exports$1.createRenderHook = createRenderHook;
|
|
27
|
+
Object.defineProperty(exports$1, "removeCleanup", {
|
|
28
28
|
enumerable: true,
|
|
29
29
|
get: function () {
|
|
30
30
|
return _cleanup.removeCleanup;
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
|
-
Object.defineProperty(exports, "suppressErrorOutput", {
|
|
33
|
+
Object.defineProperty(exports$1, "suppressErrorOutput", {
|
|
34
34
|
enumerable: true,
|
|
35
35
|
get: function () {
|
|
36
36
|
return _console.suppressErrorOutput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@testing-library/react-hooks/lib/core/index.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"addCleanup\", {\n enumerable: true,\n get: function () {\n return _cleanup.addCleanup;\n }\n});\nObject.defineProperty(exports, \"cleanup\", {\n enumerable: true,\n get: function () {\n return _cleanup.cleanup;\n }\n});\nexports.createRenderHook = createRenderHook;\nObject.defineProperty(exports, \"removeCleanup\", {\n enumerable: true,\n get: function () {\n return _cleanup.removeCleanup;\n }\n});\nObject.defineProperty(exports, \"suppressErrorOutput\", {\n enumerable: true,\n get: function () {\n return _console.suppressErrorOutput;\n }\n});\n\nvar _asyncUtils = require(\"./asyncUtils\");\n\nvar _cleanup = require(\"./cleanup\");\n\nvar _console = require(\"./console\");\n\nfunction resultContainer() {\n const results = [];\n const resolvers = [];\n const result = {\n get all() {\n return results.map(({\n value,\n error\n }) => error != null ? error : value);\n },\n\n get current() {\n var _results;\n\n const {\n value,\n error\n } = (_results = results[results.length - 1]) != null ? _results : {};\n\n if (error) {\n throw error;\n }\n\n return value;\n },\n\n get error() {\n var _results2;\n\n const {\n error\n } = (_results2 = results[results.length - 1]) != null ? _results2 : {};\n return error;\n }\n\n };\n\n const updateResult = (value, error) => {\n results.push({\n value,\n error\n });\n resolvers.splice(0, resolvers.length).forEach(resolve => resolve());\n };\n\n return {\n result,\n addResolver: resolver => {\n resolvers.push(resolver);\n },\n setValue: value => updateResult(value),\n setError: error => updateResult(undefined, error)\n };\n}\n\nfunction createRenderHook(createRenderer) {\n const renderHook = (callback, options = {}) => {\n const {\n result,\n setValue,\n setError,\n addResolver\n } = resultContainer();\n const renderProps = {\n callback,\n setValue,\n setError\n };\n let hookProps = options.initialProps;\n const {\n render,\n rerender,\n unmount,\n act,\n ...renderUtils\n } = createRenderer(renderProps, options);\n render(hookProps);\n\n const rerenderHook = (newProps = hookProps) => {\n hookProps = newProps;\n rerender(hookProps);\n };\n\n const unmountHook = () => {\n (0, _cleanup.removeCleanup)(unmountHook);\n unmount();\n };\n\n (0, _cleanup.addCleanup)(unmountHook);\n return {\n result,\n rerender: rerenderHook,\n unmount: unmountHook,\n ...(0, _asyncUtils.asyncUtils)(act, addResolver),\n ...renderUtils\n };\n };\n\n return renderHook;\n}"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;AAEA,CAAA,MAAM,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@testing-library/react-hooks/lib/core/index.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"addCleanup\", {\n enumerable: true,\n get: function () {\n return _cleanup.addCleanup;\n }\n});\nObject.defineProperty(exports, \"cleanup\", {\n enumerable: true,\n get: function () {\n return _cleanup.cleanup;\n }\n});\nexports.createRenderHook = createRenderHook;\nObject.defineProperty(exports, \"removeCleanup\", {\n enumerable: true,\n get: function () {\n return _cleanup.removeCleanup;\n }\n});\nObject.defineProperty(exports, \"suppressErrorOutput\", {\n enumerable: true,\n get: function () {\n return _console.suppressErrorOutput;\n }\n});\n\nvar _asyncUtils = require(\"./asyncUtils\");\n\nvar _cleanup = require(\"./cleanup\");\n\nvar _console = require(\"./console\");\n\nfunction resultContainer() {\n const results = [];\n const resolvers = [];\n const result = {\n get all() {\n return results.map(({\n value,\n error\n }) => error != null ? error : value);\n },\n\n get current() {\n var _results;\n\n const {\n value,\n error\n } = (_results = results[results.length - 1]) != null ? _results : {};\n\n if (error) {\n throw error;\n }\n\n return value;\n },\n\n get error() {\n var _results2;\n\n const {\n error\n } = (_results2 = results[results.length - 1]) != null ? _results2 : {};\n return error;\n }\n\n };\n\n const updateResult = (value, error) => {\n results.push({\n value,\n error\n });\n resolvers.splice(0, resolvers.length).forEach(resolve => resolve());\n };\n\n return {\n result,\n addResolver: resolver => {\n resolvers.push(resolver);\n },\n setValue: value => updateResult(value),\n setError: error => updateResult(undefined, error)\n };\n}\n\nfunction createRenderHook(createRenderer) {\n const renderHook = (callback, options = {}) => {\n const {\n result,\n setValue,\n setError,\n addResolver\n } = resultContainer();\n const renderProps = {\n callback,\n setValue,\n setError\n };\n let hookProps = options.initialProps;\n const {\n render,\n rerender,\n unmount,\n act,\n ...renderUtils\n } = createRenderer(renderProps, options);\n render(hookProps);\n\n const rerenderHook = (newProps = hookProps) => {\n hookProps = newProps;\n rerender(hookProps);\n };\n\n const unmountHook = () => {\n (0, _cleanup.removeCleanup)(unmountHook);\n unmount();\n };\n\n (0, _cleanup.addCleanup)(unmountHook);\n return {\n result,\n rerender: rerenderHook,\n unmount: unmountHook,\n ...(0, _asyncUtils.asyncUtils)(act, addResolver),\n ...renderUtils\n };\n };\n\n return renderHook;\n}"],"names":["exports","require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;AAEA,CAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,GAAE,KAAK,EAAE;AACT,EAAC,CAAC;AACF,CAAA,MAAM,CAAC,cAAc,CAACA,SAAO,EAAE,YAAY,EAAE;GAC3C,UAAU,EAAE,IAAI;GAChB,GAAG,EAAE,YAAY;KACf,OAAO,QAAQ,CAAC,UAAU;AAC9B,GAAA;AACA,EAAC,CAAC;AACF,CAAA,MAAM,CAAC,cAAc,CAACA,SAAO,EAAE,SAAS,EAAE;GACxC,UAAU,EAAE,IAAI;GAChB,GAAG,EAAE,YAAY;KACf,OAAO,QAAQ,CAAC,OAAO;AAC3B,GAAA;AACA,EAAC,CAAC;AACF,CAAAA,SAAA,CAAA,gBAAA,GAA2B,gBAAgB;AAC3C,CAAA,MAAM,CAAC,cAAc,CAACA,SAAO,EAAE,eAAe,EAAE;GAC9C,UAAU,EAAE,IAAI;GAChB,GAAG,EAAE,YAAY;KACf,OAAO,QAAQ,CAAC,aAAa;AACjC,GAAA;AACA,EAAC,CAAC;AACF,CAAA,MAAM,CAAC,cAAc,CAACA,SAAO,EAAE,qBAAqB,EAAE;GACpD,UAAU,EAAE,IAAI;GAChB,GAAG,EAAE,YAAY;KACf,OAAO,QAAQ,CAAC,mBAAmB;AACvC,GAAA;AACA,EAAC,CAAC;;CAEF,IAAI,WAAW,GAAGC,UAAuB;;CAEzC,IAAI,QAAQ,GAAGC,OAAoB;;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@@ -6,9 +6,9 @@ import { __exports as pure } from '../../../../../_virtual/pure.js';
|
|
|
6
6
|
import { __exports as cleanup } from '../../../../../_virtual/cleanup.js';
|
|
7
7
|
import { __exports as console } from '../../../../../_virtual/console.js';
|
|
8
8
|
|
|
9
|
-
(function (exports) {
|
|
9
|
+
(function (exports$1) {
|
|
10
10
|
|
|
11
|
-
Object.defineProperty(exports, "__esModule", {
|
|
11
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
12
12
|
value: true
|
|
13
13
|
});
|
|
14
14
|
|
|
@@ -20,8 +20,8 @@ import { __exports as console } from '../../../../../_virtual/console.js';
|
|
|
20
20
|
|
|
21
21
|
Object.keys(_pure).forEach(function (key) {
|
|
22
22
|
if (key === "default" || key === "__esModule") return;
|
|
23
|
-
if (key in exports && exports[key] === _pure[key]) return;
|
|
24
|
-
Object.defineProperty(exports, key, {
|
|
23
|
+
if (key in exports$1 && exports$1[key] === _pure[key]) return;
|
|
24
|
+
Object.defineProperty(exports$1, key, {
|
|
25
25
|
enumerable: true,
|
|
26
26
|
get: function () {
|
|
27
27
|
return _pure[key];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@testing-library/react-hooks/lib/dom/index.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _cleanup = require(\"../core/cleanup\");\n\nvar _console = require(\"../core/console\");\n\nvar _pure = require(\"./pure\");\n\nObject.keys(_pure).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _pure[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _pure[key];\n }\n });\n});\n(0, _cleanup.autoRegisterCleanup)();\n(0, _console.enableErrorOutputSuppression)();"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;AAEA,CAAA,MAAM,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@testing-library/react-hooks/lib/dom/index.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _cleanup = require(\"../core/cleanup\");\n\nvar _console = require(\"../core/console\");\n\nvar _pure = require(\"./pure\");\n\nObject.keys(_pure).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _pure[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _pure[key];\n }\n });\n});\n(0, _cleanup.autoRegisterCleanup)();\n(0, _console.enableErrorOutputSuppression)();"],"names":["exports","require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;AAEA,CAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,GAAE,KAAK,EAAE;AACT,EAAC,CAAC;;CAEF,IAAI,QAAQ,GAAGC,OAA0B;;CAEzC,IAAI,QAAQ,GAAGC,OAA0B;;CAEzC,IAAI,KAAK,GAAGC,IAAiB;;CAE7B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,UAAU,GAAG,EAAE;GACxC,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,YAAY,EAAE;AACjD,GAAE,IAAI,GAAG,IAAIH,SAAO,IAAIA,SAAO,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,GAAG,CAAC,EAAE;AACrD,GAAE,MAAM,CAAC,cAAc,CAACA,SAAO,EAAE,GAAG,EAAE;KAClC,UAAU,EAAE,IAAI;KAChB,GAAG,EAAE,YAAY;AACrB,OAAM,OAAO,KAAK,CAAC,GAAG,CAAC;AACvB,KAAA;AACA,IAAG,CAAC;AACJ,CAAA,CAAC,CAAC;AACF,CAAA,IAAI,QAAQ,CAAC,mBAAmB,GAAG;AACnC,CAAA,IAAI,QAAQ,CAAC,4BAA4B,GAAG,CAAA;","x_google_ignoreList":[0]}
|
|
@@ -8,9 +8,9 @@ import { __exports as core } from '../../../../../_virtual/index5.js';
|
|
|
8
8
|
import { __exports as react } from '../../../../../_virtual/react.js';
|
|
9
9
|
import { __exports as createTestHarness } from '../../../../../_virtual/createTestHarness.js';
|
|
10
10
|
|
|
11
|
-
(function (exports) {
|
|
11
|
+
(function (exports$1) {
|
|
12
12
|
|
|
13
|
-
Object.defineProperty(exports, "__esModule", {
|
|
13
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
14
14
|
value: true
|
|
15
15
|
});
|
|
16
16
|
var _exportNames = {
|
|
@@ -21,32 +21,32 @@ import { __exports as createTestHarness } from '../../../../../_virtual/createTe
|
|
|
21
21
|
removeCleanup: true,
|
|
22
22
|
suppressErrorOutput: true
|
|
23
23
|
};
|
|
24
|
-
Object.defineProperty(exports, "act", {
|
|
24
|
+
Object.defineProperty(exports$1, "act", {
|
|
25
25
|
enumerable: true,
|
|
26
26
|
get: function () {
|
|
27
27
|
return _testUtils.act;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
Object.defineProperty(exports, "addCleanup", {
|
|
30
|
+
Object.defineProperty(exports$1, "addCleanup", {
|
|
31
31
|
enumerable: true,
|
|
32
32
|
get: function () {
|
|
33
33
|
return _core.addCleanup;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
Object.defineProperty(exports, "cleanup", {
|
|
36
|
+
Object.defineProperty(exports$1, "cleanup", {
|
|
37
37
|
enumerable: true,
|
|
38
38
|
get: function () {
|
|
39
39
|
return _core.cleanup;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
Object.defineProperty(exports, "removeCleanup", {
|
|
42
|
+
Object.defineProperty(exports$1, "removeCleanup", {
|
|
43
43
|
enumerable: true,
|
|
44
44
|
get: function () {
|
|
45
45
|
return _core.removeCleanup;
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
exports.renderHook = void 0;
|
|
49
|
-
Object.defineProperty(exports, "suppressErrorOutput", {
|
|
48
|
+
exports$1.renderHook = void 0;
|
|
49
|
+
Object.defineProperty(exports$1, "suppressErrorOutput", {
|
|
50
50
|
enumerable: true,
|
|
51
51
|
get: function () {
|
|
52
52
|
return _core.suppressErrorOutput;
|
|
@@ -66,8 +66,8 @@ import { __exports as createTestHarness } from '../../../../../_virtual/createTe
|
|
|
66
66
|
Object.keys(_react).forEach(function (key) {
|
|
67
67
|
if (key === "default" || key === "__esModule") return;
|
|
68
68
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
69
|
-
if (key in exports && exports[key] === _react[key]) return;
|
|
70
|
-
Object.defineProperty(exports, key, {
|
|
69
|
+
if (key in exports$1 && exports$1[key] === _react[key]) return;
|
|
70
|
+
Object.defineProperty(exports$1, key, {
|
|
71
71
|
enumerable: true,
|
|
72
72
|
get: function () {
|
|
73
73
|
return _react[key];
|
|
@@ -108,6 +108,6 @@ import { __exports as createTestHarness } from '../../../../../_virtual/createTe
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
const renderHook = (0, _core.createRenderHook)(createDomRenderer);
|
|
111
|
-
exports.renderHook = renderHook;
|
|
111
|
+
exports$1.renderHook = renderHook;
|
|
112
112
|
} (pure));
|
|
113
113
|
//# sourceMappingURL=pure.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pure.js","sources":["../../../../../../node_modules/@testing-library/react-hooks/lib/dom/pure.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {\n renderHook: true,\n act: true,\n cleanup: true,\n addCleanup: true,\n removeCleanup: true,\n suppressErrorOutput: true\n};\nObject.defineProperty(exports, \"act\", {\n enumerable: true,\n get: function () {\n return _testUtils.act;\n }\n});\nObject.defineProperty(exports, \"addCleanup\", {\n enumerable: true,\n get: function () {\n return _core.addCleanup;\n }\n});\nObject.defineProperty(exports, \"cleanup\", {\n enumerable: true,\n get: function () {\n return _core.cleanup;\n }\n});\nObject.defineProperty(exports, \"removeCleanup\", {\n enumerable: true,\n get: function () {\n return _core.removeCleanup;\n }\n});\nexports.renderHook = void 0;\nObject.defineProperty(exports, \"suppressErrorOutput\", {\n enumerable: true,\n get: function () {\n return _core.suppressErrorOutput;\n }\n});\n\nvar ReactDOM = _interopRequireWildcard(require(\"react-dom\"));\n\nvar _testUtils = require(\"react-dom/test-utils\");\n\nvar _core = require(\"../core\");\n\nvar _createTestHarness = require(\"../helpers/createTestHarness\");\n\nvar _react = require(\"../types/react\");\n\nObject.keys(_react).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _react[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _react[key];\n }\n });\n});\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction createDomRenderer(rendererProps, {\n wrapper\n}) {\n const container = document.createElement('div');\n const testHarness = (0, _createTestHarness.createTestHarness)(rendererProps, wrapper);\n return {\n render(props) {\n (0, _testUtils.act)(() => {\n ReactDOM.render(testHarness(props), container);\n });\n },\n\n rerender(props) {\n (0, _testUtils.act)(() => {\n ReactDOM.render(testHarness(props), container);\n });\n },\n\n unmount() {\n (0, _testUtils.act)(() => {\n ReactDOM.unmountComponentAtNode(container);\n });\n },\n\n act: _testUtils.act\n };\n}\n\nconst renderHook = (0, _core.createRenderHook)(createDomRenderer);\nexports.renderHook = renderHook;"],"names":["ReactDOM","require$$0","require$$1","require$$2","require$$3","require$$4"],"mappings":";;;;;;;;;;;;AAEA,CAAA,MAAM,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"pure.js","sources":["../../../../../../node_modules/@testing-library/react-hooks/lib/dom/pure.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {\n renderHook: true,\n act: true,\n cleanup: true,\n addCleanup: true,\n removeCleanup: true,\n suppressErrorOutput: true\n};\nObject.defineProperty(exports, \"act\", {\n enumerable: true,\n get: function () {\n return _testUtils.act;\n }\n});\nObject.defineProperty(exports, \"addCleanup\", {\n enumerable: true,\n get: function () {\n return _core.addCleanup;\n }\n});\nObject.defineProperty(exports, \"cleanup\", {\n enumerable: true,\n get: function () {\n return _core.cleanup;\n }\n});\nObject.defineProperty(exports, \"removeCleanup\", {\n enumerable: true,\n get: function () {\n return _core.removeCleanup;\n }\n});\nexports.renderHook = void 0;\nObject.defineProperty(exports, \"suppressErrorOutput\", {\n enumerable: true,\n get: function () {\n return _core.suppressErrorOutput;\n }\n});\n\nvar ReactDOM = _interopRequireWildcard(require(\"react-dom\"));\n\nvar _testUtils = require(\"react-dom/test-utils\");\n\nvar _core = require(\"../core\");\n\nvar _createTestHarness = require(\"../helpers/createTestHarness\");\n\nvar _react = require(\"../types/react\");\n\nObject.keys(_react).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _react[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _react[key];\n }\n });\n});\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction createDomRenderer(rendererProps, {\n wrapper\n}) {\n const container = document.createElement('div');\n const testHarness = (0, _createTestHarness.createTestHarness)(rendererProps, wrapper);\n return {\n render(props) {\n (0, _testUtils.act)(() => {\n ReactDOM.render(testHarness(props), container);\n });\n },\n\n rerender(props) {\n (0, _testUtils.act)(() => {\n ReactDOM.render(testHarness(props), container);\n });\n },\n\n unmount() {\n (0, _testUtils.act)(() => {\n ReactDOM.unmountComponentAtNode(container);\n });\n },\n\n act: _testUtils.act\n };\n}\n\nconst renderHook = (0, _core.createRenderHook)(createDomRenderer);\nexports.renderHook = renderHook;"],"names":["exports","ReactDOM","require$$0","require$$1","require$$2","require$$3","require$$4"],"mappings":";;;;;;;;;;;;AAEA,CAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,GAAE,KAAK,EAAE;AACT,EAAC,CAAC;AACF,CAAA,IAAI,YAAY,GAAG;GACjB,U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U,CAAC,GAAG,EAAE,MAAM;SACxBC,UAAQ,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;AACtD,OAAA,CAAO,CAAC;KACR,CAAK;;KAED,QAAQ,CAAC,KAAK,EAAE;AACpB,OAAM,IAAI,UAAU,CAAC,GAAG,EAAE,MAAM;SACxBA,UAAQ,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;AACtD,OAAA,CAAO,CAAC;KACR,CAAK;;AAEL,KAAI,OAAO,GAAG;AACd,OAAM,IAAI,UAAU,CAAC,GAAG,EAAE,MAAM;AAChC,SAAQA,UAAQ,CAAC,sBAAsB,CAAC,SAAS,CAAC;AAClD,OAAA,CAAO,CAAC;KACR,CAAK;;KAED,GAAG,EAAE,UAAU,CAAC;IACjB;AACH,CAAA;;CAEA,MAAM,UAAU,GAAG,IAAI,KAAK,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;AACjE,CAAAD,SAAA,CAAA,UAAA,GAAqB,UAAU,CAAA;","x_google_ignoreList":[0]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __exports as react } from '../../../../../_virtual/react.js';
|
|
2
2
|
import { __exports as types } from '../../../../../_virtual/index6.js';
|
|
3
3
|
|
|
4
|
-
(function (exports) {
|
|
4
|
+
(function (exports$1) {
|
|
5
5
|
|
|
6
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
9
|
|
|
@@ -11,8 +11,8 @@ import { __exports as types } from '../../../../../_virtual/index6.js';
|
|
|
11
11
|
|
|
12
12
|
Object.keys(_).forEach(function (key) {
|
|
13
13
|
if (key === "default" || key === "__esModule") return;
|
|
14
|
-
if (key in exports && exports[key] === _[key]) return;
|
|
15
|
-
Object.defineProperty(exports, key, {
|
|
14
|
+
if (key in exports$1 && exports$1[key] === _[key]) return;
|
|
15
|
+
Object.defineProperty(exports$1, key, {
|
|
16
16
|
enumerable: true,
|
|
17
17
|
get: function () {
|
|
18
18
|
return _[key];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.js","sources":["../../../../../../node_modules/@testing-library/react-hooks/lib/types/react.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _ = require(\".\");\n\nObject.keys(_).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _[key];\n }\n });\n});"],"names":["require$$0"],"mappings":";;;;;AAEA,CAAA,MAAM,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"react.js","sources":["../../../../../../node_modules/@testing-library/react-hooks/lib/types/react.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _ = require(\".\");\n\nObject.keys(_).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _[key];\n }\n });\n});"],"names":["exports","require$$0"],"mappings":";;;;;AAEA,CAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,GAAE,KAAK,EAAE;AACT,EAAC,CAAC;;CAEF,IAAI,CAAC,GAAGC,KAAY;;CAEpB,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,GAAG,EAAE;GACpC,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,YAAY,EAAE;AACjD,GAAE,IAAI,GAAG,IAAID,SAAO,IAAIA,SAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE;AACjD,GAAE,MAAM,CAAC,cAAc,CAACA,SAAO,EAAE,GAAG,EAAE;KAClC,UAAU,EAAE,IAAI;KAChB,GAAG,EAAE,YAAY;AACrB,OAAM,OAAO,CAAC,CAAC,GAAG,CAAC;AACnB,KAAA;AACA,IAAG,CAAC;AACJ,CAAA,CAAC,CAAC,CAAA;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { p as parallel_1 } from './parallel.js';
|
|
2
|
+
import { s as serial_1 } from './serial.js';
|
|
3
|
+
import { s as serialOrderedExports } from './serialOrdered.js';
|
|
4
|
+
|
|
5
|
+
var asynckit =
|
|
6
|
+
{
|
|
7
|
+
parallel : parallel_1,
|
|
8
|
+
serial : serial_1,
|
|
9
|
+
serialOrdered : serialOrderedExports
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { asynckit as a };
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../node_modules/asynckit/index.js"],"sourcesContent":["module.exports =\n{\n parallel : require('./parallel.js'),\n serial : require('./serial.js'),\n serialOrdered : require('./serialOrdered.js')\n};\n"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;IAAA,QAAc;AACd;AACA,EAAE,QAAQ,QAAQA,UAAwB;AAC1C,EAAE,MAAM,UAAUC,QAAsB;AACxC,EAAE,aAAa,GAAGC;AAClB;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// API
|
|
2
|
+
var abort_1 = abort;
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Aborts leftover active jobs
|
|
6
|
+
*
|
|
7
|
+
* @param {object} state - current state object
|
|
8
|
+
*/
|
|
9
|
+
function abort(state)
|
|
10
|
+
{
|
|
11
|
+
Object.keys(state.jobs).forEach(clean.bind(state));
|
|
12
|
+
|
|
13
|
+
// reset leftover jobs
|
|
14
|
+
state.jobs = {};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Cleans up leftover job by invoking abort function for the provided job id
|
|
19
|
+
*
|
|
20
|
+
* @this state
|
|
21
|
+
* @param {string|number} key - job id to abort
|
|
22
|
+
*/
|
|
23
|
+
function clean(key)
|
|
24
|
+
{
|
|
25
|
+
if (typeof this.jobs[key] == 'function')
|
|
26
|
+
{
|
|
27
|
+
this.jobs[key]();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { abort_1 as a };
|
|
32
|
+
//# sourceMappingURL=abort.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"abort.js","sources":["../../../../node_modules/asynckit/lib/abort.js"],"sourcesContent":["// API\nmodule.exports = abort;\n\n/**\n * Aborts leftover active jobs\n *\n * @param {object} state - current state object\n */\nfunction abort(state)\n{\n Object.keys(state.jobs).forEach(clean.bind(state));\n\n // reset leftover jobs\n state.jobs = {};\n}\n\n/**\n * Cleans up leftover job by invoking abort function for the provided job id\n *\n * @this state\n * @param {string|number} key - job id to abort\n */\nfunction clean(key)\n{\n if (typeof this.jobs[key] == 'function')\n {\n this.jobs[key]();\n }\n}\n"],"names":[],"mappings":"AAAA;AACA,IAAA,OAAc,GAAG;;AAEjB;AACA;AACA;AACA;AACA;AACA,SAAS,KAAK,CAAC,KAAK;AACpB;AACA,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;;AAEpD;AACA,EAAE,KAAK,CAAC,IAAI,GAAG,EAAE;AACjB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,KAAK,CAAC,GAAG;AAClB;AACA,EAAE,IAAI,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,UAAU;AACzC,EAAE;AACF,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;AACpB,EAAA;AACA;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { d as defer_1 } from './defer.js';
|
|
2
|
+
|
|
3
|
+
var defer = defer_1;
|
|
4
|
+
|
|
5
|
+
// API
|
|
6
|
+
var async_1 = async;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Runs provided callback asynchronously
|
|
10
|
+
* even if callback itself is not
|
|
11
|
+
*
|
|
12
|
+
* @param {function} callback - callback to invoke
|
|
13
|
+
* @returns {function} - augmented callback
|
|
14
|
+
*/
|
|
15
|
+
function async(callback)
|
|
16
|
+
{
|
|
17
|
+
var isAsync = false;
|
|
18
|
+
|
|
19
|
+
// check if async happened
|
|
20
|
+
defer(function() { isAsync = true; });
|
|
21
|
+
|
|
22
|
+
return function async_callback(err, result)
|
|
23
|
+
{
|
|
24
|
+
if (isAsync)
|
|
25
|
+
{
|
|
26
|
+
callback(err, result);
|
|
27
|
+
}
|
|
28
|
+
else
|
|
29
|
+
{
|
|
30
|
+
defer(function nextTick_callback()
|
|
31
|
+
{
|
|
32
|
+
callback(err, result);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { async_1 as a };
|
|
39
|
+
//# sourceMappingURL=async.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async.js","sources":["../../../../node_modules/asynckit/lib/async.js"],"sourcesContent":["var defer = require('./defer.js');\n\n// API\nmodule.exports = async;\n\n/**\n * Runs provided callback asynchronously\n * even if callback itself is not\n *\n * @param {function} callback - callback to invoke\n * @returns {function} - augmented callback\n */\nfunction async(callback)\n{\n var isAsync = false;\n\n // check if async happened\n defer(function() { isAsync = true; });\n\n return function async_callback(err, result)\n {\n if (isAsync)\n {\n callback(err, result);\n }\n else\n {\n defer(function nextTick_callback()\n {\n callback(err, result);\n });\n }\n };\n}\n"],"names":["require$$0"],"mappings":";;AAAA,IAAI,KAAK,GAAGA,OAAqB;;AAEjC;AACA,IAAA,OAAc,GAAG;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,KAAK,CAAC,QAAQ;AACvB;AACA,EAAE,IAAI,OAAO,GAAG,KAAK;;AAErB;AACA,EAAE,KAAK,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAAC,CAAA,CAAE,CAAC;;AAEvC,EAAE,OAAO,SAAS,cAAc,CAAC,GAAG,EAAE,MAAM;AAC5C,EAAE;AACF,IAAI,IAAI,OAAO;AACf,IAAI;AACJ,MAAM,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;AAC3B,IAAA;AACA;AACA,IAAI;AACJ,MAAM,KAAK,CAAC,SAAS,iBAAiB;AACtC,MAAM;AACN,QAAQ,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;AAC7B,MAAA,CAAO,CAAC;AACR,IAAA;AACA,EAAA,CAAG;AACH;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var defer_1 = defer;
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Runs provided function on next iteration of the event loop
|
|
5
|
+
*
|
|
6
|
+
* @param {function} fn - function to run
|
|
7
|
+
*/
|
|
8
|
+
function defer(fn)
|
|
9
|
+
{
|
|
10
|
+
var nextTick = typeof setImmediate == 'function'
|
|
11
|
+
? setImmediate
|
|
12
|
+
: (
|
|
13
|
+
typeof process == 'object' && typeof process.nextTick == 'function'
|
|
14
|
+
? process.nextTick
|
|
15
|
+
: null
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
if (nextTick)
|
|
19
|
+
{
|
|
20
|
+
nextTick(fn);
|
|
21
|
+
}
|
|
22
|
+
else
|
|
23
|
+
{
|
|
24
|
+
setTimeout(fn, 0);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { defer_1 as d };
|
|
29
|
+
//# sourceMappingURL=defer.js.map
|