From 3bca70343884c79b3e4144a496275b8c7c13142a Mon Sep 17 00:00:00 2001 From: Tobias Priesching Date: Sun, 3 Jan 2021 22:38:42 +0100 Subject: [PATCH] update dependencies --- package.json | 22 +++++------ src/main/utils/debounce.ts | 2 +- yarn.lock | 76 +++++++++++++++++++------------------- 3 files changed, 50 insertions(+), 50 deletions(-) diff --git a/package.json b/package.json index 7247fb47e..7d1aada7d 100644 --- a/package.json +++ b/package.json @@ -25,9 +25,9 @@ "prepare": "rm -rf lib && tsc -p .", "prettier:check": "prettier --check 'src/{main,tests}/**/*.{json,ts,tsx,js,jsx,css,scss,html}'", "prettier:write": "prettier --write 'src/{main,tests}/**/*.{json,ts,tsx,js,jsx,css,scss,html}'", - "test": "jest", - "test:coverage": "jest --collectCoverage", - "test:watch": "jest --watch", + "test": "jest -w=4", + "test:coverage": "jest --collectCoverage -w=4", + "test:watch": "jest --watch -w=4", "update": "yarn upgrade-interactive --latest", "publish:patch": "yarn prepare && yarn test && yarn copyAPIToDoc && npm version patch && npm publish", "publish:minor": "yarn prepare && yarn test && yarn copyAPIToDoc && npm version minor && npm publish", @@ -56,15 +56,15 @@ "uuid": "8.3.1" }, "devDependencies": { - "@testing-library/jest-dom": "5.11.6", + "@testing-library/jest-dom": "5.11.8", "@testing-library/react": "11.2.2", "@types/chai": "4.2.14", - "@types/jest": "26.0.15", + "@types/jest": "26.0.19", "@types/react": "17.0.0", "@types/react-dom": "17.0.0", - "@types/react-redux": "7.1.11", + "@types/react-redux": "7.1.15", "@types/redux-mock-store": "1.0.2", - "@types/styled-components": "5.1.4", + "@types/styled-components": "5.1.7", "@types/uuid": "8.3.0", "chai": "4.2.0", "circular-dependency-plugin": "5.2.2", @@ -72,8 +72,8 @@ "css-loader": "5.0.1", "ejs-loader": "0.5.0", "fork-ts-checker-notifier-webpack-plugin": "3.0.0", - "fork-ts-checker-webpack-plugin": "6.0.4", - "html-webpack-plugin": "4.5.0", + "fork-ts-checker-webpack-plugin": "6.0.8", + "html-webpack-plugin": "4.5.1", "husky": "4.3.6", "jest": "26.6.3", "jest-styled-components": "7.0.3", @@ -87,12 +87,12 @@ "stylelint-custom-processor-loader": "0.6.0", "stylelint-processor-styled-components": "1.10.0", "ts-jest": "26.4.4", - "ts-loader": "8.0.11", + "ts-loader": "8.0.13", "tslint": "6.1.3", "tslint-config-prettier": "1.18.0", "tslint-loader": "3.5.4", "tslint-react": "5.0.0", - "typescript": "4.1.2", + "typescript": "4.1.3", "webpack": "4.44.2", "webpack-cli": "3.3.12", "webpack-dev-server": "3.11.0", diff --git a/src/main/utils/debounce.ts b/src/main/utils/debounce.ts index 18d010c7e..208dbb0b6 100644 --- a/src/main/utils/debounce.ts +++ b/src/main/utils/debounce.ts @@ -5,6 +5,6 @@ export function debounce(func: Function, wait: number = 0) { // @ts-ignore const context = this; clearTimeout(timeout); - timeout = setTimeout(() => func.apply(context, args), wait > 0 ? wait : 300); + timeout = window.setTimeout(() => func.apply(context, args), wait > 0 ? wait : 300); }; } diff --git a/yarn.lock b/yarn.lock index 8c34dfc25..c18a89eb7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -643,10 +643,10 @@ lz-string "^1.4.4" pretty-format "^26.6.2" -"@testing-library/jest-dom@5.11.6": - version "5.11.6" - resolved "https://registry.yarnpkg.com/@testing-library/jest-dom/-/jest-dom-5.11.6.tgz#782940e82e5cd17bc0a36f15156ba16f3570ac81" - integrity sha512-cVZyUNRWwUKI0++yepYpYX7uhrP398I+tGz4zOlLVlUYnZS+Svuxv4fwLeCIy7TnBYKXUaOlQr3vopxL8ZfEnA== +"@testing-library/jest-dom@5.11.8": + version "5.11.8" + resolved "https://registry.yarnpkg.com/@testing-library/jest-dom/-/jest-dom-5.11.8.tgz#433a84d6f9a089485101b9e112ef03e5c30bcbfc" + integrity sha512-ScyKrWQM5xNcr79PkSewnA79CLaoxVskE+f7knTOhDD9ftZSA1Jw8mj+pneqhEu3x37ncNfW84NUr7lqK+mXjA== dependencies: "@babel/runtime" "^7.9.2" "@types/testing-library__jest-dom" "^5.9.1" @@ -760,7 +760,7 @@ dependencies: "@types/istanbul-lib-report" "*" -"@types/jest@*", "@types/jest@26.0.15", "@types/jest@26.x": +"@types/jest@*", "@types/jest@26.x": version "26.0.15" resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.15.tgz#12e02c0372ad0548e07b9f4e19132b834cb1effe" integrity sha512-s2VMReFXRg9XXxV+CW9e5Nz8fH2K1aEhwgjUqPPbQd7g95T0laAcvLv032EhFHIa5GHsZ8W7iJEQVaJq6k3Gog== @@ -768,6 +768,14 @@ jest-diff "^26.0.0" pretty-format "^26.0.0" +"@types/jest@26.0.19": + version "26.0.19" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.19.tgz#e6fa1e3def5842ec85045bd5210e9bb8289de790" + integrity sha512-jqHoirTG61fee6v6rwbnEuKhpSKih0tuhqeFbCmMmErhtu3BYlOZaXWjffgOstMM4S/3iQD31lI5bGLTrs97yQ== + dependencies: + jest-diff "^26.0.0" + pretty-format "^26.0.0" + "@types/json-schema@^7.0.4", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.6": version "7.0.6" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.6.tgz#f4c7ec43e81b319a9815115031709f26987891f0" @@ -822,17 +830,10 @@ dependencies: "@types/react" "*" -"@types/react-native@*": - version "0.63.30" - resolved "https://registry.yarnpkg.com/@types/react-native/-/react-native-0.63.30.tgz#a0bd61e61b7a020a538ea22901be2f5d178fe02f" - integrity sha512-8/PrOjuUaPTCfMeW12ubseZPUGdbRhxYDa/aT+0D0KWVTe60b4H/gJrcfJmBXC6EcCFcimuTzQCv8/S03slYqA== - dependencies: - "@types/react" "*" - -"@types/react-redux@7.1.11": - version "7.1.11" - resolved "https://registry.yarnpkg.com/@types/react-redux/-/react-redux-7.1.11.tgz#a18e8ab3651e8e8cc94798934927937c66021217" - integrity sha512-OjaFlmqy0CRbYKBoaWF84dub3impqnLJUrz4u8PRjDzaa4n1A2cVmjMV81shwXyAD5x767efhA8STFGJz/r1Zg== +"@types/react-redux@7.1.15": + version "7.1.15" + resolved "https://registry.yarnpkg.com/@types/react-redux/-/react-redux-7.1.15.tgz#19075884db94101be762accef924d266a603fb1b" + integrity sha512-+piY42tUflPfI7y9Vy3UkG6MEMuJlrxfdtgeUcWmd5Z0qB57NXAPG6smkqu1DNXluo/KDyXPeRYhcFzMwt1BEA== dependencies: "@types/hoist-non-react-statics" "^3.3.0" "@types/react" "*" @@ -872,14 +873,13 @@ resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.0.tgz#7036640b4e21cc2f259ae826ce843d277dad8cff" integrity sha512-RJJrrySY7A8havqpGObOB4W92QXKJo63/jFLLgpvOtsGUqbQZ9Sbgl35KMm1DjC6j7AvmmU2bIno+3IyEaemaw== -"@types/styled-components@5.1.4": - version "5.1.4" - resolved "https://registry.yarnpkg.com/@types/styled-components/-/styled-components-5.1.4.tgz#11f167dbde268635c66adc89b5a5db2e69d75384" - integrity sha512-78f5Zuy0v/LTQNOYfpH+CINHpchzMMmAt9amY2YNtSgsk1TmlKm8L2Wijss/mtTrsUAVTm2CdGB8VOM65vA8xg== +"@types/styled-components@5.1.7": + version "5.1.7" + resolved "https://registry.yarnpkg.com/@types/styled-components/-/styled-components-5.1.7.tgz#3cd10b088c1cb1acde2e4b166b3e8275a3083710" + integrity sha512-BJzPhFygYspyefAGFZTZ/8lCEY4Tk+Iqktvnko3xmJf9LrLqs3+grxPeU3O0zLl6yjbYBopD0/VikbHgXDbJtA== dependencies: "@types/hoist-non-react-statics" "*" "@types/react" "*" - "@types/react-native" "*" csstype "^3.0.2" "@types/tapable@*", "@types/tapable@^1.0.5": @@ -3447,10 +3447,10 @@ fork-ts-checker-notifier-webpack-plugin@3.0.0: dependencies: node-notifier "^6.0.0" -fork-ts-checker-webpack-plugin@6.0.4: - version "6.0.4" - resolved "https://registry.yarnpkg.com/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.0.4.tgz#6c221e4613946d5458d5735e4eb3c67da7c9f60d" - integrity sha512-8/Q0svTnhyF6msFnW2qOOjn2wVsrMq5C6II6lyN3VkPzqsWS3InHjDr5P8Gk6w7ByhE7U+1CGGAXTVkPf5uHcQ== +fork-ts-checker-webpack-plugin@6.0.8: + version "6.0.8" + resolved "https://registry.yarnpkg.com/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.0.8.tgz#437bcc0e4e1f9f56e08e61defa5df92648eef27d" + integrity sha512-2K6Ozamm6TSL5heFIwPhX5+VsOBiiKf9PzaPFS7kwzrILKX+jlN3DBQc5v/6YYZ2oKJyImg3bY0/uZc7cDbDYQ== dependencies: "@babel/code-frame" "^7.8.3" "@types/json-schema" "^7.0.5" @@ -3901,17 +3901,17 @@ html-tags@^3.1.0: resolved "https://registry.yarnpkg.com/html-tags/-/html-tags-3.1.0.tgz#7b5e6f7e665e9fb41f30007ed9e0d41e97fb2140" integrity sha512-1qYz89hW3lFDEazhjW0yVAV87lw8lVkrJocr72XmBkMKsoSVJCQx3W8BXsC7hO2qAt8BoVjYjtAcZ9perqGnNg== -html-webpack-plugin@4.5.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/html-webpack-plugin/-/html-webpack-plugin-4.5.0.tgz#625097650886b97ea5dae331c320e3238f6c121c" - integrity sha512-MouoXEYSjTzCrjIxWwg8gxL5fE2X2WZJLmBYXlaJhQUH5K/b5OrqmV7T4dB7iu0xkmJ6JlUuV6fFVtnqbPopZw== +html-webpack-plugin@4.5.1: + version "4.5.1" + resolved "https://registry.yarnpkg.com/html-webpack-plugin/-/html-webpack-plugin-4.5.1.tgz#40aaf1b5cb78f2f23a83333999625c20929cda65" + integrity sha512-yzK7RQZwv9xB+pcdHNTjcqbaaDZ+5L0zJHXfi89iWIZmb/FtzxhLk0635rmJihcQbs3ZUF27Xp4oWGx6EK56zg== dependencies: "@types/html-minifier-terser" "^5.0.0" "@types/tapable" "^1.0.5" "@types/webpack" "^4.41.8" html-minifier-terser "^5.0.1" loader-utils "^1.2.3" - lodash "^4.17.15" + lodash "^4.17.20" pretty-error "^2.1.1" tapable "^1.1.3" util.promisify "1.0.0" @@ -8032,10 +8032,10 @@ ts-jest@26.4.4: semver "7.x" yargs-parser "20.x" -ts-loader@8.0.11: - version "8.0.11" - resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-8.0.11.tgz#35d58a65932caacb120426eea59eca841786c899" - integrity sha512-06X+mWA2JXoXJHYAesUUL4mHFYhnmyoCdQVMXofXF552Lzd4wNwSGg7unJpttqUP7ziaruM8d7u8LUB6I1sgzA== +ts-loader@8.0.13: + version "8.0.13" + resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-8.0.13.tgz#2bebeb833570ca46bb9338322a9a29900e988535" + integrity sha512-1o1nO6aqouA23d2nlcMSEyPMAWRhnYUU0EQUJSc60E0TUyBNX792RHFYUN1ZM29vhMUNayrsbj2UVdZwKhXCDA== dependencies: chalk "^2.3.0" enhanced-resolve "^4.0.0" @@ -8197,10 +8197,10 @@ typescript-tuple@^2.2.1: dependencies: typescript-compare "^0.0.2" -typescript@4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.2.tgz#6369ef22516fe5e10304aae5a5c4862db55380e9" - integrity sha512-thGloWsGH3SOxv1SoY7QojKi0tc+8FnOmiarEGMbd/lar7QOEd3hvlx3Fp5y6FlDUGl9L+pd4n2e+oToGMmhRQ== +typescript@4.1.3: + version "4.1.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.3.tgz#519d582bd94cba0cf8934c7d8e8467e473f53bb7" + integrity sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg== unified@^9.1.0: version "9.2.0"