@tanem/react-nprogress
Advanced tools
Comparing version 5.0.39 to 5.0.51
@@ -195,4 +195,4 @@ 'use strict'; | ||
var _timeout$current, _queue$current; | ||
(_timeout$current = timeout.current) == null ? void 0 : _timeout$current.cancel(); | ||
(_queue$current = queue.current) == null ? void 0 : _queue$current.clear(); | ||
(_timeout$current = timeout.current) == null || _timeout$current.cancel(); | ||
(_queue$current = queue.current) == null || _queue$current.clear(); | ||
}, []); | ||
@@ -205,3 +205,3 @@ var set = React.useCallback(function (n) { | ||
cleanup(); | ||
(_queue$current2 = queue.current) == null ? void 0 : _queue$current2.enqueue(function (next) { | ||
(_queue$current2 = queue.current) == null || _queue$current2.enqueue(function (next) { | ||
setState({ | ||
@@ -215,3 +215,3 @@ progress: n, | ||
}); | ||
(_queue$current3 = queue.current) == null ? void 0 : _queue$current3.enqueue(function () { | ||
(_queue$current3 = queue.current) == null || _queue$current3.enqueue(function () { | ||
setState({ | ||
@@ -224,3 +224,3 @@ isFinished: true, | ||
} | ||
(_queue$current4 = queue.current) == null ? void 0 : _queue$current4.enqueue(function (next) { | ||
(_queue$current4 = queue.current) == null || _queue$current4.enqueue(function (next) { | ||
setState({ | ||
@@ -243,5 +243,5 @@ isFinished: false, | ||
trickle(); | ||
(_queue$current5 = queue.current) == null ? void 0 : _queue$current5.enqueue(function (next) { | ||
(_queue$current5 = queue.current) == null || _queue$current5.enqueue(function (next) { | ||
var _timeout$current4; | ||
(_timeout$current4 = timeout.current) == null ? void 0 : _timeout$current4.schedule(function () { | ||
(_timeout$current4 = timeout.current) == null || _timeout$current4.schedule(function () { | ||
work(); | ||
@@ -248,0 +248,0 @@ next(); |
@@ -175,4 +175,4 @@ import _objectWithoutPropertiesLoose from '@babel/runtime/helpers/objectWithoutPropertiesLoose'; | ||
var _timeout$current, _queue$current; | ||
(_timeout$current = timeout.current) == null ? void 0 : _timeout$current.cancel(); | ||
(_queue$current = queue.current) == null ? void 0 : _queue$current.clear(); | ||
(_timeout$current = timeout.current) == null || _timeout$current.cancel(); | ||
(_queue$current = queue.current) == null || _queue$current.clear(); | ||
}, []); | ||
@@ -185,3 +185,3 @@ var set = useCallback(function (n) { | ||
cleanup(); | ||
(_queue$current2 = queue.current) == null ? void 0 : _queue$current2.enqueue(function (next) { | ||
(_queue$current2 = queue.current) == null || _queue$current2.enqueue(function (next) { | ||
setState({ | ||
@@ -195,3 +195,3 @@ progress: n, | ||
}); | ||
(_queue$current3 = queue.current) == null ? void 0 : _queue$current3.enqueue(function () { | ||
(_queue$current3 = queue.current) == null || _queue$current3.enqueue(function () { | ||
setState({ | ||
@@ -204,3 +204,3 @@ isFinished: true, | ||
} | ||
(_queue$current4 = queue.current) == null ? void 0 : _queue$current4.enqueue(function (next) { | ||
(_queue$current4 = queue.current) == null || _queue$current4.enqueue(function (next) { | ||
setState({ | ||
@@ -223,5 +223,5 @@ isFinished: false, | ||
trickle(); | ||
(_queue$current5 = queue.current) == null ? void 0 : _queue$current5.enqueue(function (next) { | ||
(_queue$current5 = queue.current) == null || _queue$current5.enqueue(function (next) { | ||
var _timeout$current4; | ||
(_timeout$current4 = timeout.current) == null ? void 0 : _timeout$current4.schedule(function () { | ||
(_timeout$current4 = timeout.current) == null || _timeout$current4.schedule(function () { | ||
work(); | ||
@@ -228,0 +228,0 @@ next(); |
@@ -222,4 +222,4 @@ (function (global, factory) { | ||
var _timeout$current, _queue$current; | ||
(_timeout$current = timeout.current) == null ? void 0 : _timeout$current.cancel(); | ||
(_queue$current = queue.current) == null ? void 0 : _queue$current.clear(); | ||
(_timeout$current = timeout.current) == null || _timeout$current.cancel(); | ||
(_queue$current = queue.current) == null || _queue$current.clear(); | ||
}, []); | ||
@@ -232,3 +232,3 @@ var set = React.useCallback(function (n) { | ||
cleanup(); | ||
(_queue$current2 = queue.current) == null ? void 0 : _queue$current2.enqueue(function (next) { | ||
(_queue$current2 = queue.current) == null || _queue$current2.enqueue(function (next) { | ||
setState({ | ||
@@ -242,3 +242,3 @@ progress: n, | ||
}); | ||
(_queue$current3 = queue.current) == null ? void 0 : _queue$current3.enqueue(function () { | ||
(_queue$current3 = queue.current) == null || _queue$current3.enqueue(function () { | ||
setState({ | ||
@@ -251,3 +251,3 @@ isFinished: true, | ||
} | ||
(_queue$current4 = queue.current) == null ? void 0 : _queue$current4.enqueue(function (next) { | ||
(_queue$current4 = queue.current) == null || _queue$current4.enqueue(function (next) { | ||
setState({ | ||
@@ -270,5 +270,5 @@ isFinished: false, | ||
trickle(); | ||
(_queue$current5 = queue.current) == null ? void 0 : _queue$current5.enqueue(function (next) { | ||
(_queue$current5 = queue.current) == null || _queue$current5.enqueue(function (next) { | ||
var _timeout$current4; | ||
(_timeout$current4 = timeout.current) == null ? void 0 : _timeout$current4.schedule(function () { | ||
(_timeout$current4 = timeout.current) == null || _timeout$current4.schedule(function () { | ||
work(); | ||
@@ -275,0 +275,0 @@ next(); |
{ | ||
"name": "@tanem/react-nprogress", | ||
"version": "5.0.39", | ||
"version": "5.0.51", | ||
"description": "A React primitive for building slim progress bars.", | ||
@@ -69,47 +69,47 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@babel/runtime": "^7.21.5", | ||
"@babel/runtime": "^7.22.15", | ||
"hoist-non-react-statics": "^3.3.2" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.21.8", | ||
"@babel/plugin-transform-runtime": "7.21.4", | ||
"@babel/preset-env": "7.21.5", | ||
"@babel/preset-react": "7.18.6", | ||
"@babel/preset-typescript": "7.21.5", | ||
"@babel/core": "7.22.17", | ||
"@babel/plugin-transform-runtime": "7.22.15", | ||
"@babel/preset-env": "7.22.15", | ||
"@babel/preset-react": "7.22.15", | ||
"@babel/preset-typescript": "7.22.15", | ||
"@rollup/plugin-babel": "6.0.3", | ||
"@rollup/plugin-commonjs": "25.0.0", | ||
"@rollup/plugin-node-resolve": "15.0.2", | ||
"@rollup/plugin-commonjs": "25.0.4", | ||
"@rollup/plugin-node-resolve": "15.2.1", | ||
"@rollup/plugin-replace": "5.0.2", | ||
"@rollup/plugin-terser": "0.4.2", | ||
"@rollup/plugin-terser": "0.4.3", | ||
"@testing-library/react": "14.0.0", | ||
"@types/hoist-non-react-statics": "3.3.1", | ||
"@types/jest": "29.5.1", | ||
"@types/jest": "29.5.4", | ||
"@types/mock-raf": "1.0.3", | ||
"@types/node": "18.16.10", | ||
"@types/react": "18.2.6", | ||
"@types/react-dom": "18.2.4", | ||
"@typescript-eslint/eslint-plugin": "5.59.6", | ||
"@typescript-eslint/parser": "5.59.6", | ||
"@types/node": "18.17.15", | ||
"@types/react": "18.2.21", | ||
"@types/react-dom": "18.2.7", | ||
"@typescript-eslint/eslint-plugin": "6.7.0", | ||
"@typescript-eslint/parser": "6.7.0", | ||
"babel-core": "6.26.3", | ||
"eslint": "8.40.0", | ||
"eslint-config-prettier": "8.8.0", | ||
"eslint-plugin-react": "7.32.2", | ||
"eslint": "8.49.0", | ||
"eslint-config-prettier": "9.0.0", | ||
"eslint-plugin-react": "7.33.2", | ||
"eslint-plugin-react-hooks": "4.6.0", | ||
"eslint-plugin-simple-import-sort": "10.0.0", | ||
"jest": "29.5.0", | ||
"jest-environment-jsdom": "29.5.0", | ||
"jest": "29.7.0", | ||
"jest-environment-jsdom": "29.7.0", | ||
"mock-raf": "1.0.1", | ||
"npm-run-all": "4.1.5", | ||
"prettier": "2.8.8", | ||
"prettier": "3.0.3", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0", | ||
"react-test-renderer": "18.2.0", | ||
"regenerator-runtime": "0.13.11", | ||
"rollup": "3.21.5", | ||
"regenerator-runtime": "0.14.0", | ||
"rollup": "3.29.1", | ||
"rollup-plugin-sourcemaps": "0.6.3", | ||
"shx": "0.3.4", | ||
"tanem-scripts": "7.0.5", | ||
"ts-jest": "29.1.0", | ||
"typescript": "5.0.4" | ||
"tanem-scripts": "7.0.17", | ||
"ts-jest": "29.1.1", | ||
"typescript": "5.2.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
178774
Updated@babel/runtime@^7.22.15