refactor: switch from `simple-debounce` to `@wincent/debounce`
authorGreg Hurrell <greg@hurrell.net>
Tue, 1 Mar 2022 20:17:15 +0000 (21:17 +0100)
committerGreg Hurrell <greg@hurrell.net>
Tue, 1 Mar 2022 20:17:15 +0000 (21:17 +0100)
package.json
src/App.js
yarn.lock

index 5c8f2961ff7820bb524cbbc8bfc7dabc573cbca0..73ceac1ad9721aef32693c683e4ed3beac0172f0 100644 (file)
@@ -3,11 +3,11 @@
   "version": "0.1.0",
   "private": true,
   "dependencies": {
+    "@wincent/debounce": "0.0.1",
     "classnames": "2.3.1",
     "prop-types": "15.7.2",
     "react": "17.0.2",
-    "react-dom": "17.0.2",
-    "simple-debounce": "0.0.4"
+    "react-dom": "17.0.2"
   },
   "devDependencies": {
     "react-scripts": "4.0.3"
index 018be604eba0dcc6cb96f1861ba4786e9d633812..163052498db110d806d63c2bf2efd63ac6c37730 100644 (file)
@@ -13,7 +13,7 @@ import React from 'react';
 import Size from './Size.react';
 import type Value from './Field.react';
 import convert from './convert';
-import debounce from 'simple-debounce';
+import debounce from '@wincent/debounce';
 
 import './App.css';
 
index 9f346c8c8e7fc43f2b50cfc650a29cc4b4ffd56e..c75dbac5ca504036c54c876e73861b8d0fab570d 100644 (file)
--- a/yarn.lock
+++ b/yarn.lock
     "@webassemblyjs/wast-parser" "1.9.0"
     "@xtuc/long" "4.2.2"
 
+"@wincent/debounce@0.0.1":
+  version "0.0.1"
+  resolved "https://registry.yarnpkg.com/@wincent/debounce/-/debounce-0.0.1.tgz#76b1fbf71c892cf4a128809a84c09dd0134282b0"
+  integrity sha512-3L89l9MUnYcEZanW9iiwpQJGl5ujB9ntxpGmzVfpDW7FqBkIJRHjO9KpwotX+Vha3H15uGtgxKP5uYRkdCF5qQ==
+
 "@xtuc/ieee754@^1.2.0":
   version "1.2.0"
   resolved "https://registry.yarnpkg.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz#eef014a3145ae477a1cbc00cd1e552336dceb790"
@@ -9652,11 +9657,6 @@ signal-exit@^3.0.0, signal-exit@^3.0.2:
   resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c"
   integrity sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==
 
-simple-debounce@0.0.4:
-  version "0.0.4"
-  resolved "https://registry.yarnpkg.com/simple-debounce/-/simple-debounce-0.0.4.tgz#1a01ffd381aca8bb87ca965c1be7e74c3ce3cf55"
-  integrity sha512-xjoy5KrIEvL/uCMKHeXF3tf2X3qc+CoDNnta7lqt8vYWpn+5uJblf4avD5gJc4WdFrEn7CW4u+HhWQ38vJOkng==
-
 simple-swizzle@^0.2.2:
   version "0.2.2"
   resolved "https://registry.yarnpkg.com/simple-swizzle/-/simple-swizzle-0.2.2.tgz#a4da6b635ffcccca33f70d17cb92592de95e557a"