diff --git a/docs/index.js b/docs/index.js index 0ede331..e5e5343 100644 --- a/docs/index.js +++ b/docs/index.js @@ -60,7 +60,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ App)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! styled-components */ \"./node_modules/styled-components/dist/styled-components.browser.esm.js\");\n/* harmony import */ var _components_UseTimerDemo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/UseTimerDemo */ \"./demo/components/UseTimerDemo.js\");\n/* harmony import */ var _components_UseStopwatchDemo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/UseStopwatchDemo */ \"./demo/components/UseStopwatchDemo.js\");\n/* harmony import */ var _components_UseTimeDemo__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/UseTimeDemo */ \"./demo/components/UseTimeDemo.js\");\n\n\n\n\n\nconst GlobalStyle = styled_components__WEBPACK_IMPORTED_MODULE_4__.createGlobalStyle`\n html, body {\n margin: 0;\n font-family: Arial;\n text-align: left;\n color: #404549;\n }\n h2 {\n margin-top: 20px;\n }\n`;\nconst Container = styled_components__WEBPACK_IMPORTED_MODULE_4__[\"default\"].div`\n width: 1170px;\n margin-left: auto;\n margin-right: auto;\n`;\nconst HeaderBG = styled_components__WEBPACK_IMPORTED_MODULE_4__[\"default\"].div`\n background-color: #404549;\n`;\nconst Header = styled_components__WEBPACK_IMPORTED_MODULE_4__[\"default\"].div`\n display: flex;\n justify-content: space-between;\n align-items: center;\n & h1 {\n margin: 20px 0;\n }\n`;\nconst H1 = styled_components__WEBPACK_IMPORTED_MODULE_4__[\"default\"].h1`\n color: white;\n`;\nconst Separator = styled_components__WEBPACK_IMPORTED_MODULE_4__[\"default\"].div`\n height: 0px;\n margin-top: 30px;\n border: dashed 2px #404549;\n`;\nfunction App() {\n const time = new Date();\n time.setSeconds(time.getSeconds() + 60); // 10 minutes timer\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(GlobalStyle, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(HeaderBG, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Container, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(H1, null, \"react-timer-hook\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"iframe\", {\n src: \"https://ghbtns.com/github-btn.html?user=amrlabib&repo=react-timer-hook&type=star&count=true&size=large\",\n frameborder: \"0\",\n scrolling: \"0\",\n width: \"160\",\n height: \"30\",\n title: \"GitHub\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"iframe\", {\n src: \"https://ghbtns.com/github-btn.html?user=amrlabib&repo=react-timer-hook&type=fork&count=true&size=large\",\n frameborder: \"0\",\n scrolling: \"0\",\n width: \"126\",\n height: \"30\",\n title: \"GitHub\"\n }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Container, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"p\", null, \"React timer hook is a custom \", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"a\", {\n href: \"https://reactjs.org/docs/hooks-intro.html\",\n target: \"_blank\"\n }, \"react hook\"), \" built to handle timer, stopwatch, and time logic/state in your react component.\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_UseTimerDemo__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n expiryTimestamp: time\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Separator, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_UseStopwatchDemo__WEBPACK_IMPORTED_MODULE_2__[\"default\"], null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Separator, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_UseTimeDemo__WEBPACK_IMPORTED_MODULE_3__[\"default\"], null)));\n}\n\n//# sourceURL=webpack://react-timer-hook/./demo/App.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ App)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! styled-components */ \"./node_modules/styled-components/dist/styled-components.browser.esm.js\");\n/* harmony import */ var _components_UseTimerDemo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/UseTimerDemo */ \"./demo/components/UseTimerDemo.js\");\n/* harmony import */ var _components_UseStopwatchDemo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/UseStopwatchDemo */ \"./demo/components/UseStopwatchDemo.js\");\n/* harmony import */ var _components_UseTimeDemo__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/UseTimeDemo */ \"./demo/components/UseTimeDemo.js\");\n\n\n\n\n\nconst GlobalStyle = styled_components__WEBPACK_IMPORTED_MODULE_4__.createGlobalStyle`\n html, body {\n margin: 0;\n font-family: Arial;\n text-align: left;\n color: #404549;\n }\n h2 {\n margin-top: 20px;\n }\n`;\nconst Container = styled_components__WEBPACK_IMPORTED_MODULE_4__[\"default\"].div`\n width: 1170px;\n margin-left: auto;\n margin-right: auto;\n`;\nconst HeaderBG = styled_components__WEBPACK_IMPORTED_MODULE_4__[\"default\"].div`\n background-color: #404549;\n`;\nconst Header = styled_components__WEBPACK_IMPORTED_MODULE_4__[\"default\"].div`\n display: flex;\n justify-content: space-between;\n align-items: center;\n & h1 {\n margin: 20px 0;\n }\n`;\nconst H1 = styled_components__WEBPACK_IMPORTED_MODULE_4__[\"default\"].h1`\n color: white;\n`;\nconst Separator = styled_components__WEBPACK_IMPORTED_MODULE_4__[\"default\"].div`\n height: 0px;\n margin-top: 30px;\n border: dashed 2px #404549;\n`;\nfunction App() {\n const time = new Date();\n time.setSeconds(time.getSeconds() + 600); // 10 minutes timer\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(GlobalStyle, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(HeaderBG, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Container, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(H1, null, \"react-timer-hook\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"iframe\", {\n src: \"https://ghbtns.com/github-btn.html?user=amrlabib&repo=react-timer-hook&type=star&count=true&size=large\",\n frameborder: \"0\",\n scrolling: \"0\",\n width: \"160\",\n height: \"30\",\n title: \"GitHub\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"iframe\", {\n src: \"https://ghbtns.com/github-btn.html?user=amrlabib&repo=react-timer-hook&type=fork&count=true&size=large\",\n frameborder: \"0\",\n scrolling: \"0\",\n width: \"126\",\n height: \"30\",\n title: \"GitHub\"\n }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Container, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"p\", null, \"React timer hook is a custom \", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"a\", {\n href: \"https://reactjs.org/docs/hooks-intro.html\",\n target: \"_blank\"\n }, \"react hook\"), \" built to handle timer, stopwatch, and time logic/state in your react component.\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_UseTimerDemo__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n expiryTimestamp: time\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Separator, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_UseStopwatchDemo__WEBPACK_IMPORTED_MODULE_2__[\"default\"], null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Separator, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_UseTimeDemo__WEBPACK_IMPORTED_MODULE_3__[\"default\"], null)));\n}\n\n//# sourceURL=webpack://react-timer-hook/./demo/App.js?"); /***/ }), @@ -126,7 +126,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ UseTimerDemo)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var _src_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../src/index */ \"./src/index.js\");\n/* harmony import */ var _TimerStyled__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TimerStyled */ \"./demo/components/TimerStyled.js\");\n/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Button */ \"./demo/components/Button.js\");\n\n\n\n\nfunction UseTimerDemo(_ref) {\n let {\n expiryTimestamp\n } = _ref;\n const {\n seconds,\n minutes,\n hours,\n days,\n start,\n pause,\n resume,\n restart\n } = (0,_src_index__WEBPACK_IMPORTED_MODULE_1__.useTimer)({\n expiryTimestamp,\n onExpire: () => console.warn('onExpire called')\n });\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"h2\", null, \"UseTimer Demo\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TimerStyled__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n seconds: seconds,\n minutes: minutes,\n hours: hours,\n days: days\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n type: \"button\",\n onClick: start\n }, \"Start\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n type: \"button\",\n onClick: pause\n }, \"Pause\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n type: \"button\",\n onClick: resume\n }, \"Resume\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n type: \"button\",\n onClick: () => {\n // Restarts to 10 minutes timer\n const time = new Date();\n time.setSeconds(time.getSeconds() + 60);\n restart(time);\n }\n }, \"Restart\"));\n}\n\n//# sourceURL=webpack://react-timer-hook/./demo/components/UseTimerDemo.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ UseTimerDemo)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var _src_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../src/index */ \"./src/index.js\");\n/* harmony import */ var _TimerStyled__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TimerStyled */ \"./demo/components/TimerStyled.js\");\n/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Button */ \"./demo/components/Button.js\");\n\n\n\n\nfunction UseTimerDemo(_ref) {\n let {\n expiryTimestamp\n } = _ref;\n const {\n seconds,\n minutes,\n hours,\n days,\n start,\n pause,\n resume,\n restart\n } = (0,_src_index__WEBPACK_IMPORTED_MODULE_1__.useTimer)({\n expiryTimestamp,\n onExpire: () => console.warn('onExpire called')\n });\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"h2\", null, \"UseTimer Demo\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TimerStyled__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n seconds: seconds,\n minutes: minutes,\n hours: hours,\n days: days\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n type: \"button\",\n onClick: start\n }, \"Start\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n type: \"button\",\n onClick: pause\n }, \"Pause\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n type: \"button\",\n onClick: resume\n }, \"Resume\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n type: \"button\",\n onClick: () => {\n // Restarts to 10 minutes timer\n const time = new Date();\n time.setSeconds(time.getSeconds() + 600);\n restart(time);\n }\n }, \"Restart\"));\n}\n\n//# sourceURL=webpack://react-timer-hook/./demo/components/UseTimerDemo.js?"); /***/ }), @@ -159,7 +159,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ useInterval)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n\nfunction useInterval(callback, delay) {\n const callbacRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();\n\n // update callback function with current render callback that has access to latest props and state\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {\n callbacRef.current = callback;\n });\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {\n if (!delay) {\n return () => {};\n }\n const interval = setInterval(() => {\n callbacRef.current && callbacRef.current();\n }, delay);\n return () => clearInterval(interval);\n }, [delay]);\n}\n\n//# sourceURL=webpack://react-timer-hook/./src/hooks/useInterval.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ useInterval)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n\nfunction useInterval(callback, delay) {\n const callbackRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();\n\n // update callback function with current render callback that has access to latest props and state\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {\n callbackRef.current = callback;\n });\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {\n if (!delay) {\n return () => {};\n }\n const interval = setInterval(() => {\n callbackRef.current && callbackRef.current();\n }, delay);\n return () => clearInterval(interval);\n }, [delay]);\n}\n\n//# sourceURL=webpack://react-timer-hook/./src/hooks/useInterval.js?"); /***/ }), diff --git a/package-lock.json b/package-lock.json index be63449..1f9e9c4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "react-timer-hook", - "version": "3.0.7", + "version": "3.0.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "react-timer-hook", - "version": "3.0.7", + "version": "3.0.8", "license": "ISC", "devDependencies": { "@babel/cli": "^7.0.0-beta.40", diff --git a/package.json b/package.json index 1f74569..b66dd04 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-timer-hook", - "version": "3.0.7", + "version": "3.0.8", "description": "React timer hook is a custom react hook built to handle timers(countdown), stopwatch and time logic/state in your react component.", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/yarn.lock b/yarn.lock index eb8a176..d8da536 100644 --- a/yarn.lock +++ b/yarn.lock @@ -26,16 +26,9 @@ "@nicolo-ribaudo/chokidar-2" "2.1.8-no-fsevents.3" chokidar "^3.4.0" -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.18.6", "@babel/code-frame@^7.21.4": - version "7.21.4" - resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.21.4.tgz" - integrity sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g== - dependencies: - "@babel/highlight" "^7.18.6" - -"@babel/code-frame@^7.22.13": +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.21.4", "@babel/code-frame@^7.22.13": version "7.22.13" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.22.13.tgz#e3c1c099402598483b7a8c46a721d1038803755e" + resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz" integrity sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w== dependencies: "@babel/highlight" "^7.22.13" @@ -76,19 +69,9 @@ eslint-visitor-keys "^2.1.0" semver "^6.3.0" -"@babel/generator@^7.21.4": - version "7.21.5" - resolved "https://registry.npmjs.org/@babel/generator/-/generator-7.21.5.tgz" - integrity sha512-SrKK/sRv8GesIW1bDagf9cCG38IOMYZusoe1dfg0D8aiUe3Amvoj1QtjTPAWcfrZFvIwlleLb0gxzQidL9w14w== - dependencies: - "@babel/types" "^7.21.5" - "@jridgewell/gen-mapping" "^0.3.2" - "@jridgewell/trace-mapping" "^0.3.17" - jsesc "^2.5.1" - -"@babel/generator@^7.23.0": +"@babel/generator@^7.21.4", "@babel/generator@^7.23.0": version "7.23.0" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.23.0.tgz#df5c386e2218be505b34837acbcb874d7a983420" + resolved "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz" integrity sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g== dependencies: "@babel/types" "^7.23.0" @@ -156,14 +139,9 @@ resolve "^1.14.2" semver "^6.1.2" -"@babel/helper-environment-visitor@^7.18.9", "@babel/helper-environment-visitor@^7.21.5": - version "7.21.5" - resolved "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.21.5.tgz" - integrity sha512-IYl4gZ3ETsWocUWgsFZLM5i1BYx9SoemminVEXadgLBa9TdeorzgLKm8wWLA6J1N/kT3Kch8XIk1laNzYoHKvQ== - -"@babel/helper-environment-visitor@^7.22.20": +"@babel/helper-environment-visitor@^7.18.9", "@babel/helper-environment-visitor@^7.21.5", "@babel/helper-environment-visitor@^7.22.20": version "7.22.20" - resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz#96159db61d34a29dba454c959f5ae4a649ba9167" + resolved "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz" integrity sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA== "@babel/helper-explode-assignable-expression@^7.18.6": @@ -173,32 +151,17 @@ dependencies: "@babel/types" "^7.18.6" -"@babel/helper-function-name@^7.18.9", "@babel/helper-function-name@^7.19.0", "@babel/helper-function-name@^7.21.0": - version "7.21.0" - resolved "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz" - integrity sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg== - dependencies: - "@babel/template" "^7.20.7" - "@babel/types" "^7.21.0" - -"@babel/helper-function-name@^7.23.0": +"@babel/helper-function-name@^7.18.9", "@babel/helper-function-name@^7.19.0", "@babel/helper-function-name@^7.21.0", "@babel/helper-function-name@^7.23.0": version "7.23.0" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz#1f9a3cdbd5b2698a670c30d2735f9af95ed52759" + resolved "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz" integrity sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw== dependencies: "@babel/template" "^7.22.15" "@babel/types" "^7.23.0" -"@babel/helper-hoist-variables@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz" - integrity sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q== - dependencies: - "@babel/types" "^7.18.6" - -"@babel/helper-hoist-variables@^7.22.5": +"@babel/helper-hoist-variables@^7.18.6", "@babel/helper-hoist-variables@^7.22.5": version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz#c01a007dac05c085914e8fb652b339db50d823bb" + resolved "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz" integrity sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw== dependencies: "@babel/types" "^7.22.5" @@ -279,38 +242,21 @@ dependencies: "@babel/types" "^7.20.0" -"@babel/helper-split-export-declaration@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz" - integrity sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA== - dependencies: - "@babel/types" "^7.18.6" - -"@babel/helper-split-export-declaration@^7.22.6": +"@babel/helper-split-export-declaration@^7.18.6", "@babel/helper-split-export-declaration@^7.22.6": version "7.22.6" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz#322c61b7310c0997fe4c323955667f18fcefb91c" + resolved "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz" integrity sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g== dependencies: "@babel/types" "^7.22.5" -"@babel/helper-string-parser@^7.21.5": - version "7.21.5" - resolved "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.21.5.tgz" - integrity sha512-5pTUx3hAJaZIdW99sJ6ZUUgWq/Y+Hja7TowEnLNMm1VivRgZQL3vpBY3qUACVsvw+yQU6+YgfBVmcbLaZtrA1w== - "@babel/helper-string-parser@^7.22.5": version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz#533f36457a25814cf1df6488523ad547d784a99f" + resolved "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz" integrity sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw== -"@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.19.1": - version "7.19.1" - resolved "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz" - integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w== - -"@babel/helper-validator-identifier@^7.22.20": +"@babel/helper-validator-identifier@^7.19.1", "@babel/helper-validator-identifier@^7.22.20": version "7.22.20" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz#c4ae002c61d2879e724581d96665583dbc1dc0e0" + resolved "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz" integrity sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A== "@babel/helper-validator-option@^7.18.6", "@babel/helper-validator-option@^7.21.0": @@ -337,32 +283,18 @@ "@babel/traverse" "^7.21.0" "@babel/types" "^7.21.0" -"@babel/highlight@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz" - integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g== - dependencies: - "@babel/helper-validator-identifier" "^7.18.6" - chalk "^2.0.0" - js-tokens "^4.0.0" - "@babel/highlight@^7.22.13": version "7.22.20" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.22.20.tgz#4ca92b71d80554b01427815e06f2df965b9c1f54" + resolved "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz" integrity sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg== dependencies: "@babel/helper-validator-identifier" "^7.22.20" chalk "^2.4.2" js-tokens "^4.0.0" -"@babel/parser@^7.20.7", "@babel/parser@^7.21.4": - version "7.21.5" - resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.21.5.tgz" - integrity sha512-J+IxH2IsxV4HbnTrSWgMAQj0UEo61hDA4Ny8h8PCX0MLXiibqHbqIOVneqdocemSBc22VpBKxt4J6FQzy9HarQ== - -"@babel/parser@^7.22.15", "@babel/parser@^7.23.0": +"@babel/parser@^7.21.4", "@babel/parser@^7.22.15", "@babel/parser@^7.23.0": version "7.23.0" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.23.0.tgz#da950e622420bf96ca0d0f2909cdddac3acd8719" + resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.23.0.tgz" integrity sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw== "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.18.6": @@ -1050,18 +982,9 @@ dependencies: regenerator-runtime "^0.13.11" -"@babel/template@^7.18.10", "@babel/template@^7.20.7": - version "7.20.7" - resolved "https://registry.npmjs.org/@babel/template/-/template-7.20.7.tgz" - integrity sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw== - dependencies: - "@babel/code-frame" "^7.18.6" - "@babel/parser" "^7.20.7" - "@babel/types" "^7.20.7" - -"@babel/template@^7.22.15": +"@babel/template@^7.18.10", "@babel/template@^7.20.7", "@babel/template@^7.22.15": version "7.22.15" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.22.15.tgz#09576efc3830f0430f4548ef971dde1350ef2f38" + resolved "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz" integrity sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w== dependencies: "@babel/code-frame" "^7.22.13" @@ -1070,7 +993,7 @@ "@babel/traverse@^7.20.5", "@babel/traverse@^7.20.7", "@babel/traverse@^7.21.0", "@babel/traverse@^7.21.4", "@babel/traverse@^7.21.5", "@babel/traverse@^7.4.5": version "7.23.2" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.23.2.tgz#329c7a06735e144a506bdb2cad0268b7f46f4ad8" + resolved "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz" integrity sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw== dependencies: "@babel/code-frame" "^7.22.13" @@ -1084,18 +1007,9 @@ debug "^4.1.0" globals "^11.1.0" -"@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.20.0", "@babel/types@^7.20.5", "@babel/types@^7.20.7", "@babel/types@^7.21.0", "@babel/types@^7.21.4", "@babel/types@^7.21.5", "@babel/types@^7.4.4": - version "7.21.5" - resolved "https://registry.npmjs.org/@babel/types/-/types-7.21.5.tgz" - integrity sha512-m4AfNvVF2mVC/F7fDEdH2El3HzUg9It/XsCxZiOTTA3m3qYfcSVSbTfM6Q9xG+hYDniZssYhlXKKUMD5m8tF4Q== - dependencies: - "@babel/helper-string-parser" "^7.21.5" - "@babel/helper-validator-identifier" "^7.19.1" - to-fast-properties "^2.0.0" - -"@babel/types@^7.22.15", "@babel/types@^7.22.5", "@babel/types@^7.23.0": +"@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.20.0", "@babel/types@^7.20.5", "@babel/types@^7.20.7", "@babel/types@^7.21.0", "@babel/types@^7.21.4", "@babel/types@^7.21.5", "@babel/types@^7.22.15", "@babel/types@^7.22.5", "@babel/types@^7.23.0", "@babel/types@^7.4.4": version "7.23.0" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.23.0.tgz#8c1f020c9df0e737e4e247c0619f58c68458aaeb" + resolved "https://registry.npmjs.org/@babel/types/-/types-7.23.0.tgz" integrity sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg== dependencies: "@babel/helper-string-parser" "^7.22.5" @@ -1897,7 +1811,7 @@ caniuse-lite@^1.0.30001449: resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001481.tgz" integrity sha512-KCqHwRnaa1InZBtqXzP98LPg0ajCVujMKjqKDhZEthIpAsJl/YEIa3YvXjGXPVqzZVguccuu7ga9KOE1J9rKPQ== -chalk@^2.0.0, chalk@^2.4.2: +chalk@^2.4.2: version "2.4.2" resolved "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz" integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== @@ -2794,7 +2708,7 @@ flatted@^3.1.0: follow-redirects@^1.0.0: version "1.15.4" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.4.tgz#cdc7d308bf6493126b17ea2191ea0ccf3e535adf" + resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.4.tgz" integrity sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw== for-each@^0.3.3: @@ -4292,12 +4206,12 @@ semver-regex@^3.1.2: semver@^5.6.0: version "5.7.2" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8" + resolved "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz" integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.3.0: version "6.3.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" + resolved "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== send@0.18.0: @@ -4946,7 +4860,7 @@ wildcard@^2.0.0: word-wrap@^1.2.3: version "1.2.4" - resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.4.tgz#cb4b50ec9aca570abd1f52f33cd45b6c61739a9f" + resolved "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.4.tgz" integrity sha512-2V81OA4ugVo5pRo46hAoD2ivUJx8jXmWXfUkY4KFNw0hEptvN0QfH3K4nHiwzGeKl5rFKedV48QVoqYavy4YpA== wrappy@1: