@tanem/react-nprogress
Advanced tools
Comparing version 5.0.51 to 5.0.52
@@ -36,7 +36,7 @@ 'use strict'; | ||
var pending = []; | ||
var next = function next() { | ||
var _next = function next() { | ||
isRunning = true; | ||
var cb = pending.shift(); | ||
if (cb) { | ||
return cb(next); | ||
return cb(_next); | ||
} | ||
@@ -52,3 +52,3 @@ isRunning = false; | ||
if (!isRunning && pending.length === 1) { | ||
next(); | ||
_next(); | ||
} | ||
@@ -72,3 +72,3 @@ }; | ||
var start; | ||
var frame = function frame(time) { | ||
var _frame = function frame(time) { | ||
start = start || time; | ||
@@ -80,5 +80,5 @@ deltaTime = time - start; | ||
} | ||
handle = window.requestAnimationFrame(frame); | ||
handle = window.requestAnimationFrame(_frame); | ||
}; | ||
handle = window.requestAnimationFrame(frame); | ||
handle = window.requestAnimationFrame(_frame); | ||
}; | ||
@@ -125,3 +125,3 @@ return { | ||
}; | ||
var useGetSetState = function useGetSetState( /* istanbul ignore next */ | ||
var useGetSetState = function useGetSetState(/* istanbul ignore next */ | ||
initialState) { | ||
@@ -241,3 +241,3 @@ if (initialState === void 0) { | ||
var start = React.useCallback(function () { | ||
var work = function work() { | ||
var _work = function work() { | ||
var _queue$current5; | ||
@@ -248,3 +248,3 @@ trickle(); | ||
(_timeout$current4 = timeout.current) == null || _timeout$current4.schedule(function () { | ||
work(); | ||
_work(); | ||
next(); | ||
@@ -254,3 +254,3 @@ }, incrementDuration); | ||
}; | ||
work(); | ||
_work(); | ||
}, [incrementDuration, queue, timeout, trickle]); | ||
@@ -257,0 +257,0 @@ var savedTrickle = React.useRef(noop); |
@@ -1,2 +0,2 @@ | ||
"use strict";var _objectWithoutPropertiesLoose=require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),_extends=require("@babel/runtime/helpers/extends"),React=require("react"),hoistNonReactStatics=require("hoist-non-react-statics");function _interopNamespaceDefault(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var React__namespace=_interopNamespaceDefault(React),clamp=function(e,t,n){return e=(e=e<=n?e:n)>=t?e:t},createQueue=function(){var e=!1,t=[],n=function n(){e=!0;var r=t.shift();if(r)return r(n);e=!1};return{clear:function(){e=!1,t=[]},enqueue:function(r){t.push(r),e||1!==t.length||n()}}},createTimeout=function(){var e;return{cancel:function(){e&&window.cancelAnimationFrame(e)},schedule:function(t,n){var r;e=window.requestAnimationFrame((function u(c){c-(r=r||c)>n?t():e=window.requestAnimationFrame(u)}))}}},increment=function(e){var t=0;return e>=0&&e<.2?t=.1:e>=.2&&e<.5?t=.04:e>=.5&&e<.8?t=.02:e>=.8&&e<.99&&(t=.005),clamp(e+t,0,.994)},useEffectOnce=function(e){React.useEffect(e,[])},incrementParameter=function(e){return++e%1e6},useUpdate=function(){var e=React.useState(0)[1];return React.useCallback((function(){return e(incrementParameter)}),[])},useGetSetState=function(e){void 0===e&&(e={});var t=useUpdate(),n=React.useRef(_extends({},e));return[React.useCallback((function(){return n.current}),[]),React.useCallback((function(e){e&&(Object.assign(n.current,e),t())}),[])]},useFirstMountState=function(){var e=React.useRef(!0);return e.current?(e.current=!1,!0):e.current},useUpdateEffect=function(e,t){var n=useFirstMountState();React.useEffect((function(){if(!n)return e()}),t)},noop=function(){},initialState={isFinished:!0,progress:0,sideEffect:noop},useNProgress=function(e){var t=void 0===e?{}:e,n=t.animationDuration,r=void 0===n?200:n,u=t.incrementDuration,c=void 0===u?800:u,i=t.isAnimating,a=void 0!==i&&i,s=t.minimum,o=void 0===s?.08:s,f=useGetSetState(initialState),l=f[0],d=f[1],p=React.useRef(null),v=React.useRef(null);useEffectOnce((function(){p.current=createQueue(),v.current=createTimeout()}));var m=React.useCallback((function(){var e,t;null==(e=v.current)||e.cancel(),null==(t=p.current)||t.clear()}),[]),R=React.useCallback((function(e){var t,n,u;if(1===(e=clamp(e,o,1)))return m(),null==(n=p.current)||n.enqueue((function(t){d({progress:e,sideEffect:function(){var e;return null==(e=v.current)?void 0:e.schedule(t,r)}})})),void(null==(u=p.current)||u.enqueue((function(){d({isFinished:!0,sideEffect:m})})));null==(t=p.current)||t.enqueue((function(t){d({isFinished:!1,progress:e,sideEffect:function(){var e;return null==(e=v.current)?void 0:e.schedule(t,r)}})}))}),[r,m,o,p,d,v]),h=React.useCallback((function(){R(increment(l().progress))}),[l,R]),g=React.useCallback((function(){!function e(){var t;h(),null==(t=p.current)||t.enqueue((function(t){var n;null==(n=v.current)||n.schedule((function(){e(),t()}),c)}))}()}),[c,p,v,h]),b=React.useRef(noop),E=l().sideEffect;return React.useEffect((function(){b.current=h})),useEffectOnce((function(){return a&&g(),m})),useUpdateEffect((function(){l().sideEffect()}),[l,E]),useUpdateEffect((function(){a?d(_extends({},initialState,{sideEffect:g})):R(1)}),[a,R,d,g]),{animationDuration:r,isFinished:l().isFinished,progress:l().progress}},_excluded=["children"],NProgress=function(e){var t=e.children,n=_objectWithoutPropertiesLoose(e,_excluded);return t(useNProgress(n))};function withNProgress(e){var t=function(t){var n=useNProgress(t);return React__namespace.createElement(e,_extends({},t,n))};return hoistNonReactStatics(t,e),t}exports.NProgress=NProgress,exports.useNProgress=useNProgress,exports.withNProgress=withNProgress; | ||
"use strict";var _objectWithoutPropertiesLoose=require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),_extends=require("@babel/runtime/helpers/extends"),React=require("react"),hoistNonReactStatics=require("hoist-non-react-statics");function _interopNamespaceDefault(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var React__namespace=_interopNamespaceDefault(React),clamp=function(e,t,n){return e=(e=e<=n?e:n)>=t?e:t},createQueue=function(){var e=!1,t=[],n=function(){e=!0;var r=t.shift();if(r)return r(n);e=!1};return{clear:function(){e=!1,t=[]},enqueue:function(r){t.push(r),e||1!==t.length||n()}}},createTimeout=function(){var e;return{cancel:function(){e&&window.cancelAnimationFrame(e)},schedule:function(t,n){var r,u=function(c){c-(r=r||c)>n?t():e=window.requestAnimationFrame(u)};e=window.requestAnimationFrame(u)}}},increment=function(e){var t=0;return e>=0&&e<.2?t=.1:e>=.2&&e<.5?t=.04:e>=.5&&e<.8?t=.02:e>=.8&&e<.99&&(t=.005),clamp(e+t,0,.994)},useEffectOnce=function(e){React.useEffect(e,[])},incrementParameter=function(e){return++e%1e6},useUpdate=function(){var e=React.useState(0)[1];return React.useCallback((function(){return e(incrementParameter)}),[])},useGetSetState=function(e){void 0===e&&(e={});var t=useUpdate(),n=React.useRef(_extends({},e));return[React.useCallback((function(){return n.current}),[]),React.useCallback((function(e){e&&(Object.assign(n.current,e),t())}),[])]},useFirstMountState=function(){var e=React.useRef(!0);return e.current?(e.current=!1,!0):e.current},useUpdateEffect=function(e,t){var n=useFirstMountState();React.useEffect((function(){if(!n)return e()}),t)},noop=function(){},initialState={isFinished:!0,progress:0,sideEffect:noop},useNProgress=function(e){var t=void 0===e?{}:e,n=t.animationDuration,r=void 0===n?200:n,u=t.incrementDuration,c=void 0===u?800:u,i=t.isAnimating,a=void 0!==i&&i,s=t.minimum,o=void 0===s?.08:s,f=useGetSetState(initialState),l=f[0],d=f[1],p=React.useRef(null),v=React.useRef(null);useEffectOnce((function(){p.current=createQueue(),v.current=createTimeout()}));var m=React.useCallback((function(){var e,t;null==(e=v.current)||e.cancel(),null==(t=p.current)||t.clear()}),[]),R=React.useCallback((function(e){var t,n,u;if(1===(e=clamp(e,o,1)))return m(),null==(n=p.current)||n.enqueue((function(t){d({progress:e,sideEffect:function(){var e;return null==(e=v.current)?void 0:e.schedule(t,r)}})})),void(null==(u=p.current)||u.enqueue((function(){d({isFinished:!0,sideEffect:m})})));null==(t=p.current)||t.enqueue((function(t){d({isFinished:!1,progress:e,sideEffect:function(){var e;return null==(e=v.current)?void 0:e.schedule(t,r)}})}))}),[r,m,o,p,d,v]),h=React.useCallback((function(){R(increment(l().progress))}),[l,R]),g=React.useCallback((function(){var e=function(){var t;h(),null==(t=p.current)||t.enqueue((function(t){var n;null==(n=v.current)||n.schedule((function(){e(),t()}),c)}))};e()}),[c,p,v,h]),b=React.useRef(noop),E=l().sideEffect;return React.useEffect((function(){b.current=h})),useEffectOnce((function(){return a&&g(),m})),useUpdateEffect((function(){l().sideEffect()}),[l,E]),useUpdateEffect((function(){a?d(_extends({},initialState,{sideEffect:g})):R(1)}),[a,R,d,g]),{animationDuration:r,isFinished:l().isFinished,progress:l().progress}},_excluded=["children"],NProgress=function(e){var t=e.children,n=_objectWithoutPropertiesLoose(e,_excluded);return t(useNProgress(n))};function withNProgress(e){var t=function(t){var n=useNProgress(t);return React__namespace.createElement(e,_extends({},t,n))};return hoistNonReactStatics(t,e),t}exports.NProgress=NProgress,exports.useNProgress=useNProgress,exports.withNProgress=withNProgress; | ||
//# sourceMappingURL=react-nprogress.cjs.production.js.map |
@@ -16,7 +16,7 @@ import _objectWithoutPropertiesLoose from '@babel/runtime/helpers/objectWithoutPropertiesLoose'; | ||
var pending = []; | ||
var next = function next() { | ||
var _next = function next() { | ||
isRunning = true; | ||
var cb = pending.shift(); | ||
if (cb) { | ||
return cb(next); | ||
return cb(_next); | ||
} | ||
@@ -32,3 +32,3 @@ isRunning = false; | ||
if (!isRunning && pending.length === 1) { | ||
next(); | ||
_next(); | ||
} | ||
@@ -52,3 +52,3 @@ }; | ||
var start; | ||
var frame = function frame(time) { | ||
var _frame = function frame(time) { | ||
start = start || time; | ||
@@ -60,5 +60,5 @@ deltaTime = time - start; | ||
} | ||
handle = window.requestAnimationFrame(frame); | ||
handle = window.requestAnimationFrame(_frame); | ||
}; | ||
handle = window.requestAnimationFrame(frame); | ||
handle = window.requestAnimationFrame(_frame); | ||
}; | ||
@@ -105,3 +105,3 @@ return { | ||
}; | ||
var useGetSetState = function useGetSetState( /* istanbul ignore next */ | ||
var useGetSetState = function useGetSetState(/* istanbul ignore next */ | ||
initialState) { | ||
@@ -221,3 +221,3 @@ if (initialState === void 0) { | ||
var start = useCallback(function () { | ||
var work = function work() { | ||
var _work = function work() { | ||
var _queue$current5; | ||
@@ -228,3 +228,3 @@ trickle(); | ||
(_timeout$current4 = timeout.current) == null || _timeout$current4.schedule(function () { | ||
work(); | ||
_work(); | ||
next(); | ||
@@ -234,3 +234,3 @@ }, incrementDuration); | ||
}; | ||
work(); | ||
_work(); | ||
}, [incrementDuration, queue, timeout, trickle]); | ||
@@ -237,0 +237,0 @@ var savedTrickle = useRef(noop); |
@@ -26,28 +26,20 @@ (function (global, factory) { | ||
function _objectWithoutPropertiesLoose(source, excluded) { | ||
if (source == null) return {}; | ||
var target = {}; | ||
var sourceKeys = Object.keys(source); | ||
var key, i; | ||
for (i = 0; i < sourceKeys.length; i++) { | ||
key = sourceKeys[i]; | ||
if (excluded.indexOf(key) >= 0) continue; | ||
target[key] = source[key]; | ||
function _objectWithoutPropertiesLoose(r, e) { | ||
if (null == r) return {}; | ||
var t = {}; | ||
for (var n in r) if ({}.hasOwnProperty.call(r, n)) { | ||
if (e.includes(n)) continue; | ||
t[n] = r[n]; | ||
} | ||
return target; | ||
return t; | ||
} | ||
function _extends() { | ||
_extends = Object.assign ? Object.assign.bind() : function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
return _extends = Object.assign ? Object.assign.bind() : function (n) { | ||
for (var e = 1; e < arguments.length; e++) { | ||
var t = arguments[e]; | ||
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
return n; | ||
}, _extends.apply(null, arguments); | ||
} | ||
@@ -64,7 +56,7 @@ | ||
var pending = []; | ||
var next = function next() { | ||
var _next = function next() { | ||
isRunning = true; | ||
var cb = pending.shift(); | ||
if (cb) { | ||
return cb(next); | ||
return cb(_next); | ||
} | ||
@@ -80,3 +72,3 @@ isRunning = false; | ||
if (!isRunning && pending.length === 1) { | ||
next(); | ||
_next(); | ||
} | ||
@@ -100,3 +92,3 @@ }; | ||
var start; | ||
var frame = function frame(time) { | ||
var _frame = function frame(time) { | ||
start = start || time; | ||
@@ -108,5 +100,5 @@ deltaTime = time - start; | ||
} | ||
handle = window.requestAnimationFrame(frame); | ||
handle = window.requestAnimationFrame(_frame); | ||
}; | ||
handle = window.requestAnimationFrame(frame); | ||
handle = window.requestAnimationFrame(_frame); | ||
}; | ||
@@ -153,3 +145,3 @@ return { | ||
}; | ||
var useGetSetState = function useGetSetState( /* istanbul ignore next */ | ||
var useGetSetState = function useGetSetState(/* istanbul ignore next */ | ||
initialState) { | ||
@@ -269,3 +261,3 @@ if (initialState === void 0) { | ||
var start = React.useCallback(function () { | ||
var work = function work() { | ||
var _work = function work() { | ||
var _queue$current5; | ||
@@ -276,3 +268,3 @@ trickle(); | ||
(_timeout$current4 = timeout.current) == null || _timeout$current4.schedule(function () { | ||
work(); | ||
_work(); | ||
next(); | ||
@@ -282,3 +274,3 @@ }, incrementDuration); | ||
}; | ||
work(); | ||
_work(); | ||
}, [incrementDuration, queue, timeout, trickle]); | ||
@@ -327,3 +319,3 @@ var savedTrickle = React.useRef(noop); | ||
var reactIs$1 = {exports: {}}; | ||
var reactIs = {exports: {}}; | ||
@@ -519,112 +511,128 @@ var reactIs_development = {}; | ||
{ | ||
reactIs$1.exports = requireReactIs_development(); | ||
var hasRequiredReactIs; | ||
function requireReactIs () { | ||
if (hasRequiredReactIs) return reactIs.exports; | ||
hasRequiredReactIs = 1; | ||
{ | ||
reactIs.exports = requireReactIs_development(); | ||
} | ||
return reactIs.exports; | ||
} | ||
var reactIsExports = reactIs$1.exports; | ||
var hoistNonReactStatics_cjs; | ||
var hasRequiredHoistNonReactStatics_cjs; | ||
var reactIs = reactIsExports; | ||
function requireHoistNonReactStatics_cjs () { | ||
if (hasRequiredHoistNonReactStatics_cjs) return hoistNonReactStatics_cjs; | ||
hasRequiredHoistNonReactStatics_cjs = 1; | ||
/** | ||
* Copyright 2015, Yahoo! Inc. | ||
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. | ||
*/ | ||
var REACT_STATICS = { | ||
childContextTypes: true, | ||
contextType: true, | ||
contextTypes: true, | ||
defaultProps: true, | ||
displayName: true, | ||
getDefaultProps: true, | ||
getDerivedStateFromError: true, | ||
getDerivedStateFromProps: true, | ||
mixins: true, | ||
propTypes: true, | ||
type: true | ||
}; | ||
var KNOWN_STATICS = { | ||
name: true, | ||
length: true, | ||
prototype: true, | ||
caller: true, | ||
callee: true, | ||
arguments: true, | ||
arity: true | ||
}; | ||
var FORWARD_REF_STATICS = { | ||
'$$typeof': true, | ||
render: true, | ||
defaultProps: true, | ||
displayName: true, | ||
propTypes: true | ||
}; | ||
var MEMO_STATICS = { | ||
'$$typeof': true, | ||
compare: true, | ||
defaultProps: true, | ||
displayName: true, | ||
propTypes: true, | ||
type: true | ||
}; | ||
var TYPE_STATICS = {}; | ||
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS; | ||
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS; | ||
var reactIs = requireReactIs(); | ||
function getStatics(component) { | ||
// React v16.11 and below | ||
if (reactIs.isMemo(component)) { | ||
return MEMO_STATICS; | ||
} // React v16.12 and above | ||
/** | ||
* Copyright 2015, Yahoo! Inc. | ||
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. | ||
*/ | ||
var REACT_STATICS = { | ||
childContextTypes: true, | ||
contextType: true, | ||
contextTypes: true, | ||
defaultProps: true, | ||
displayName: true, | ||
getDefaultProps: true, | ||
getDerivedStateFromError: true, | ||
getDerivedStateFromProps: true, | ||
mixins: true, | ||
propTypes: true, | ||
type: true | ||
}; | ||
var KNOWN_STATICS = { | ||
name: true, | ||
length: true, | ||
prototype: true, | ||
caller: true, | ||
callee: true, | ||
arguments: true, | ||
arity: true | ||
}; | ||
var FORWARD_REF_STATICS = { | ||
'$$typeof': true, | ||
render: true, | ||
defaultProps: true, | ||
displayName: true, | ||
propTypes: true | ||
}; | ||
var MEMO_STATICS = { | ||
'$$typeof': true, | ||
compare: true, | ||
defaultProps: true, | ||
displayName: true, | ||
propTypes: true, | ||
type: true | ||
}; | ||
var TYPE_STATICS = {}; | ||
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS; | ||
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS; | ||
function getStatics(component) { | ||
// React v16.11 and below | ||
if (reactIs.isMemo(component)) { | ||
return MEMO_STATICS; | ||
} // React v16.12 and above | ||
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS; | ||
} | ||
var defineProperty = Object.defineProperty; | ||
var getOwnPropertyNames = Object.getOwnPropertyNames; | ||
var getOwnPropertySymbols = Object.getOwnPropertySymbols; | ||
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
var getPrototypeOf = Object.getPrototypeOf; | ||
var objectPrototype = Object.prototype; | ||
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { | ||
if (typeof sourceComponent !== 'string') { | ||
// don't hoist over string (html) components | ||
if (objectPrototype) { | ||
var inheritedComponent = getPrototypeOf(sourceComponent); | ||
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS; | ||
} | ||
if (inheritedComponent && inheritedComponent !== objectPrototype) { | ||
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); | ||
} | ||
} | ||
var defineProperty = Object.defineProperty; | ||
var getOwnPropertyNames = Object.getOwnPropertyNames; | ||
var getOwnPropertySymbols = Object.getOwnPropertySymbols; | ||
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
var getPrototypeOf = Object.getPrototypeOf; | ||
var objectPrototype = Object.prototype; | ||
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { | ||
if (typeof sourceComponent !== 'string') { | ||
// don't hoist over string (html) components | ||
if (objectPrototype) { | ||
var inheritedComponent = getPrototypeOf(sourceComponent); | ||
var keys = getOwnPropertyNames(sourceComponent); | ||
if (inheritedComponent && inheritedComponent !== objectPrototype) { | ||
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); | ||
} | ||
} | ||
if (getOwnPropertySymbols) { | ||
keys = keys.concat(getOwnPropertySymbols(sourceComponent)); | ||
} | ||
var keys = getOwnPropertyNames(sourceComponent); | ||
var targetStatics = getStatics(targetComponent); | ||
var sourceStatics = getStatics(sourceComponent); | ||
if (getOwnPropertySymbols) { | ||
keys = keys.concat(getOwnPropertySymbols(sourceComponent)); | ||
} | ||
for (var i = 0; i < keys.length; ++i) { | ||
var key = keys[i]; | ||
var targetStatics = getStatics(targetComponent); | ||
var sourceStatics = getStatics(sourceComponent); | ||
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) { | ||
var descriptor = getOwnPropertyDescriptor(sourceComponent, key); | ||
for (var i = 0; i < keys.length; ++i) { | ||
var key = keys[i]; | ||
try { | ||
// Avoid failures from read-only properties | ||
defineProperty(targetComponent, key, descriptor); | ||
} catch (e) {} | ||
} | ||
} | ||
} | ||
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) { | ||
var descriptor = getOwnPropertyDescriptor(sourceComponent, key); | ||
return targetComponent; | ||
try { | ||
// Avoid failures from read-only properties | ||
defineProperty(targetComponent, key, descriptor); | ||
} catch (e) {} | ||
} | ||
} | ||
} | ||
return targetComponent; | ||
} | ||
hoistNonReactStatics_cjs = hoistNonReactStatics; | ||
return hoistNonReactStatics_cjs; | ||
} | ||
var hoistNonReactStatics_cjs = hoistNonReactStatics; | ||
var hoistNonReactStatics_cjsExports = requireHoistNonReactStatics_cjs(); | ||
var hoistNonReactStatics = /*@__PURE__*/getDefaultExportFromCjs(hoistNonReactStatics_cjsExports); | ||
var hoistNonReactStatics$1 = /*@__PURE__*/getDefaultExportFromCjs(hoistNonReactStatics_cjs); | ||
function withNProgress(BaseComponent) { | ||
@@ -635,3 +643,3 @@ var WithNProgress = function WithNProgress(props) { | ||
}; | ||
hoistNonReactStatics$1(WithNProgress, BaseComponent); | ||
hoistNonReactStatics(WithNProgress, BaseComponent); | ||
return WithNProgress; | ||
@@ -638,0 +646,0 @@ } |
@@ -1,2 +0,2 @@ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).NProgress={},e.React)}(this,(function(e,r){"use strict";function t(e){var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var n=t(r);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},o.apply(this,arguments)}var u=function(e,r,t){return e=(e=e<=t?e:t)>=r?e:r},c=function(){var e=!1,r=[],t=function t(){e=!0;var n=r.shift();if(n)return n(t);e=!1};return{clear:function(){e=!1,r=[]},enqueue:function(n){r.push(n),e||1!==r.length||t()}}},i=function(e){r.useEffect(e,[])},f=function(e){return++e%1e6},a=function(e){void 0===e&&(e={});var t,n=(t=r.useState(0)[1],r.useCallback((function(){return t(f)}),[])),u=r.useRef(o({},e));return[r.useCallback((function(){return u.current}),[]),r.useCallback((function(e){e&&(Object.assign(u.current,e),n())}),[])]},s=function(e,t){var n,o=(n=r.useRef(!0)).current?(n.current=!1,!0):n.current;r.useEffect((function(){if(!o)return e()}),t)},l=function(){},p={isFinished:!0,progress:0,sideEffect:l},y=function(e){var t=void 0===e?{}:e,n=t.animationDuration,f=void 0===n?200:n,y=t.incrementDuration,d=void 0===y?800:y,m=t.isAnimating,b=void 0!==m&&m,v=t.minimum,g=void 0===v?.08:v,h=a(p),$=h[0],S=h[1],O=r.useRef(null),P=r.useRef(null);i((function(){var e;O.current=c(),P.current={cancel:function(){e&&window.cancelAnimationFrame(e)},schedule:function(r,t){var n;e=window.requestAnimationFrame((function o(u){u-(n=n||u)>t?r():e=window.requestAnimationFrame(o)}))}}}));var j=r.useCallback((function(){var e,r;null==(e=P.current)||e.cancel(),null==(r=O.current)||r.clear()}),[]),w=r.useCallback((function(e){var r,t,n;if(1===(e=u(e,g,1)))return j(),null==(t=O.current)||t.enqueue((function(r){S({progress:e,sideEffect:function(){var e;return null==(e=P.current)?void 0:e.schedule(r,f)}})})),void(null==(n=O.current)||n.enqueue((function(){S({isFinished:!0,sideEffect:j})})));null==(r=O.current)||r.enqueue((function(r){S({isFinished:!1,progress:e,sideEffect:function(){var e;return null==(e=P.current)?void 0:e.schedule(r,f)}})}))}),[f,j,g,O,S,P]),x=r.useCallback((function(){var e,r;w((e=$().progress,r=0,e>=0&&e<.2?r=.1:e>=.2&&e<.5?r=.04:e>=.5&&e<.8?r=.02:e>=.8&&e<.99&&(r=.005),u(e+r,0,.994)))}),[$,w]),C=r.useCallback((function(){!function e(){var r;x(),null==(r=O.current)||r.enqueue((function(r){var t;null==(t=P.current)||t.schedule((function(){e(),r()}),d)}))}()}),[d,O,P,x]),E=r.useRef(l),F=$().sideEffect;return r.useEffect((function(){E.current=x})),i((function(){return b&&C(),j})),s((function(){$().sideEffect()}),[$,F]),s((function(){b?S(o({},p,{sideEffect:C})):w(1)}),[b,w,S,C]),{animationDuration:f,isFinished:$().isFinished,progress:$().progress}},d=["children"];function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var b,v={exports:{}},g={};v.exports=function(){if(b)return g;b=1;var e="function"==typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,a=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,d=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,$=e?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case r:switch(e=e.type){case f:case a:case n:case u:case o:case l:return e;default:switch(e=e&&e.$$typeof){case i:case s:case d:case y:case c:return e;default:return p}}case t:return p}}}function O(e){return S(e)===a}return g.AsyncMode=f,g.ConcurrentMode=a,g.ContextConsumer=i,g.ContextProvider=c,g.Element=r,g.ForwardRef=s,g.Fragment=n,g.Lazy=d,g.Memo=y,g.Portal=t,g.Profiler=u,g.StrictMode=o,g.Suspense=l,g.isAsyncMode=function(e){return O(e)||S(e)===f},g.isConcurrentMode=O,g.isContextConsumer=function(e){return S(e)===i},g.isContextProvider=function(e){return S(e)===c},g.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},g.isForwardRef=function(e){return S(e)===s},g.isFragment=function(e){return S(e)===n},g.isLazy=function(e){return S(e)===d},g.isMemo=function(e){return S(e)===y},g.isPortal=function(e){return S(e)===t},g.isProfiler=function(e){return S(e)===u},g.isStrictMode=function(e){return S(e)===o},g.isSuspense=function(e){return S(e)===l},g.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===a||e===u||e===o||e===l||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===y||e.$$typeof===c||e.$$typeof===i||e.$$typeof===s||e.$$typeof===v||e.$$typeof===h||e.$$typeof===$||e.$$typeof===m)},g.typeOf=S,g}();var h=v.exports,$={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},S={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},O={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},P={};function j(e){return h.isMemo(e)?O:P[e.$$typeof]||$}P[h.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},P[h.Memo]=O;var w=Object.defineProperty,x=Object.getOwnPropertyNames,C=Object.getOwnPropertySymbols,E=Object.getOwnPropertyDescriptor,F=Object.getPrototypeOf,M=Object.prototype;var k=function e(r,t,n){if("string"!=typeof t){if(M){var o=F(t);o&&o!==M&&e(r,o,n)}var u=x(t);C&&(u=u.concat(C(t)));for(var c=j(r),i=j(t),f=0;f<u.length;++f){var a=u[f];if(!(S[a]||n&&n[a]||i&&i[a]||c&&c[a])){var s=E(t,a);try{w(r,a,s)}catch(e){}}}}return r},R=m(k);e.NProgress=function(e){var r=e.children,t=function(e,r){if(null==e)return{};var t,n,o={},u=Object.keys(e);for(n=0;n<u.length;n++)r.indexOf(t=u[n])>=0||(o[t]=e[t]);return o}(e,d);return r(y(t))},e.useNProgress=y,e.withNProgress=function(e){var r=function(r){var t=y(r);return n.createElement(e,o({},r,t))};return R(r,e),r}})); | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).NProgress={},e.React)}(this,(function(e,r){"use strict";function t(e){var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var n=t(r);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},o.apply(null,arguments)}var u=function(e,r,t){return e=(e=e<=t?e:t)>=r?e:r},c=function(e){r.useEffect(e,[])},i=function(e){return++e%1e6},f=function(e){void 0===e&&(e={});var t,n=(t=r.useState(0)[1],r.useCallback((function(){return t(i)}),[])),u=r.useRef(o({},e));return[r.useCallback((function(){return u.current}),[]),r.useCallback((function(e){e&&(Object.assign(u.current,e),n())}),[])]},a=function(e,t){var n,o=(n=r.useRef(!0)).current?(n.current=!1,!0):n.current;r.useEffect((function(){if(!o)return e()}),t)},s=function(){},l={isFinished:!0,progress:0,sideEffect:s},p=function(e){var t=void 0===e?{}:e,n=t.animationDuration,i=void 0===n?200:n,p=t.incrementDuration,y=void 0===p?800:p,d=t.isAnimating,m=void 0!==d&&d,b=t.minimum,v=void 0===b?.08:b,g=f(l),h=g[0],$=g[1],S=r.useRef(null),P=r.useRef(null);c((function(){var e,r,t,n;S.current=(e=!1,r=[],t=function(){e=!0;var n=r.shift();if(n)return n(t);e=!1},{clear:function(){e=!1,r=[]},enqueue:function(n){r.push(n),e||1!==r.length||t()}}),P.current={cancel:function(){n&&window.cancelAnimationFrame(n)},schedule:function(e,r){var t,o=function(u){u-(t=t||u)>r?e():n=window.requestAnimationFrame(o)};n=window.requestAnimationFrame(o)}}}));var O=r.useCallback((function(){var e,r;null==(e=P.current)||e.cancel(),null==(r=S.current)||r.clear()}),[]),w=r.useCallback((function(e){var r,t,n;if(1===(e=u(e,v,1)))return O(),null==(t=S.current)||t.enqueue((function(r){$({progress:e,sideEffect:function(){var e;return null==(e=P.current)?void 0:e.schedule(r,i)}})})),void(null==(n=S.current)||n.enqueue((function(){$({isFinished:!0,sideEffect:O})})));null==(r=S.current)||r.enqueue((function(r){$({isFinished:!1,progress:e,sideEffect:function(){var e;return null==(e=P.current)?void 0:e.schedule(r,i)}})}))}),[i,O,v,S,$,P]),j=r.useCallback((function(){var e,r;w((e=h().progress,r=0,e>=0&&e<.2?r=.1:e>=.2&&e<.5?r=.04:e>=.5&&e<.8?r=.02:e>=.8&&e<.99&&(r=.005),u(e+r,0,.994)))}),[h,w]),C=r.useCallback((function(){var e=function(){var r;j(),null==(r=S.current)||r.enqueue((function(r){var t;null==(t=P.current)||t.schedule((function(){e(),r()}),y)}))};e()}),[y,S,P,j]),E=r.useRef(s),x=h().sideEffect;return r.useEffect((function(){E.current=j})),c((function(){return m&&C(),O})),a((function(){h().sideEffect()}),[h,x]),a((function(){m?$(o({},l,{sideEffect:C})):w(1)}),[m,w,$,C]),{animationDuration:i,isFinished:h().isFinished,progress:h().progress}},y=["children"];function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m,b,v,g,h={exports:{}},$={};function S(){return b||(b=1,h.exports=function(){if(m)return $;m=1;var e="function"==typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,a=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,d=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,h=e?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case r:switch(e=e.type){case f:case a:case n:case u:case o:case l:return e;default:switch(e=e&&e.$$typeof){case i:case s:case d:case y:case c:return e;default:return p}}case t:return p}}}function P(e){return S(e)===a}return $.AsyncMode=f,$.ConcurrentMode=a,$.ContextConsumer=i,$.ContextProvider=c,$.Element=r,$.ForwardRef=s,$.Fragment=n,$.Lazy=d,$.Memo=y,$.Portal=t,$.Profiler=u,$.StrictMode=o,$.Suspense=l,$.isAsyncMode=function(e){return P(e)||S(e)===f},$.isConcurrentMode=P,$.isContextConsumer=function(e){return S(e)===i},$.isContextProvider=function(e){return S(e)===c},$.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},$.isForwardRef=function(e){return S(e)===s},$.isFragment=function(e){return S(e)===n},$.isLazy=function(e){return S(e)===d},$.isMemo=function(e){return S(e)===y},$.isPortal=function(e){return S(e)===t},$.isProfiler=function(e){return S(e)===u},$.isStrictMode=function(e){return S(e)===o},$.isSuspense=function(e){return S(e)===l},$.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===a||e===u||e===o||e===l||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===y||e.$$typeof===c||e.$$typeof===i||e.$$typeof===s||e.$$typeof===v||e.$$typeof===g||e.$$typeof===h||e.$$typeof===b)},$.typeOf=S,$}()),h.exports}var P=function(){if(g)return v;g=1;var e=S(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function u(t){return e.isMemo(t)?n:o[t.$$typeof]||r}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=n;var c=Object.defineProperty,i=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,a=Object.getOwnPropertyDescriptor,s=Object.getPrototypeOf,l=Object.prototype;return v=function e(r,n,o){if("string"!=typeof n){if(l){var p=s(n);p&&p!==l&&e(r,p,o)}var y=i(n);f&&(y=y.concat(f(n)));for(var d=u(r),m=u(n),b=0;b<y.length;++b){var v=y[b];if(!(t[v]||o&&o[v]||m&&m[v]||d&&d[v])){var g=a(n,v);try{c(r,v,g)}catch(e){}}}}return r},v}(),O=d(P);e.NProgress=function(e){var r=e.children,t=function(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.includes(n))continue;t[n]=e[n]}return t}(e,y);return r(p(t))},e.useNProgress=p,e.withNProgress=function(e){var r=function(r){var t=p(r);return n.createElement(e,o({},r,t))};return O(r,e),r}})); | ||
//# sourceMappingURL=react-nprogress.umd.production.js.map |
{ | ||
"name": "@tanem/react-nprogress", | ||
"version": "5.0.51", | ||
"version": "5.0.52", | ||
"description": "A React primitive for building slim progress bars.", | ||
@@ -26,3 +26,3 @@ "main": "dist/index.js", | ||
"format": "npm run lint -- --fix && prettier --write \"**/*.{js,ts,tsx}\"", | ||
"lint": "eslint --ext js,ts,tsx .", | ||
"lint": "eslint .", | ||
"postbundle": "npm run clean:compiled && shx cp ./index.js ./dist/index.js", | ||
@@ -41,3 +41,3 @@ "release": "tanem-scripts release", | ||
"type": "git", | ||
"url": "github:tanem/react-nprogress" | ||
"url": "git+https://github.com/tanem/react-nprogress.git" | ||
}, | ||
@@ -71,47 +71,50 @@ "keywords": [ | ||
"dependencies": { | ||
"@babel/runtime": "^7.22.15", | ||
"@babel/runtime": "^7.25.7", | ||
"hoist-non-react-statics": "^3.3.2" | ||
}, | ||
"devDependencies": { | ||
"@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.4", | ||
"@rollup/plugin-node-resolve": "15.2.1", | ||
"@rollup/plugin-replace": "5.0.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.4", | ||
"@types/mock-raf": "1.0.3", | ||
"@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": "7.25.8", | ||
"@babel/plugin-transform-runtime": "7.25.7", | ||
"@babel/preset-env": "7.25.8", | ||
"@babel/preset-react": "7.25.7", | ||
"@babel/preset-typescript": "7.25.7", | ||
"@eslint/compat": "1.2.0", | ||
"@eslint/eslintrc": "3.1.0", | ||
"@eslint/js": "9.12.0", | ||
"@rollup/plugin-babel": "6.0.4", | ||
"@rollup/plugin-commonjs": "28.0.0", | ||
"@rollup/plugin-node-resolve": "15.3.0", | ||
"@rollup/plugin-replace": "6.0.1", | ||
"@rollup/plugin-terser": "0.4.4", | ||
"@testing-library/react": "16.0.1", | ||
"@types/hoist-non-react-statics": "3.3.5", | ||
"@types/jest": "29.5.13", | ||
"@types/mock-raf": "1.0.6", | ||
"@types/node": "20.16.11", | ||
"@types/react": "18.3.11", | ||
"@types/react-dom": "18.3.1", | ||
"@typescript-eslint/eslint-plugin": "8.8.1", | ||
"@typescript-eslint/parser": "8.8.1", | ||
"babel-core": "6.26.3", | ||
"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", | ||
"eslint": "9.12.0", | ||
"eslint-config-prettier": "9.1.0", | ||
"eslint-plugin-react": "7.37.1", | ||
"eslint-plugin-react-hooks": "5.0.0", | ||
"eslint-plugin-simple-import-sort": "12.1.1", | ||
"jest": "29.7.0", | ||
"jest-environment-jsdom": "29.7.0", | ||
"mock-raf": "1.0.1", | ||
"npm-run-all": "4.1.5", | ||
"prettier": "3.0.3", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0", | ||
"react-test-renderer": "18.2.0", | ||
"regenerator-runtime": "0.14.0", | ||
"rollup": "3.29.1", | ||
"npm-run-all2": "6.2.3", | ||
"prettier": "3.3.3", | ||
"react": "18.3.1", | ||
"react-dom": "18.3.1", | ||
"react-test-renderer": "18.3.1", | ||
"regenerator-runtime": "0.14.1", | ||
"rollup": "4.24.0", | ||
"rollup-plugin-sourcemaps": "0.6.3", | ||
"shx": "0.3.4", | ||
"tanem-scripts": "7.0.17", | ||
"ts-jest": "29.1.1", | ||
"typescript": "5.2.2" | ||
"tanem-scripts": "7.0.27", | ||
"ts-jest": "29.2.5", | ||
"typescript": "5.6.3" | ||
} | ||
} |
@@ -100,3 +100,3 @@ # react-nprogress | ||
- Multiple Instances: [Source](https://github.com/tanem/react-nprogress/tree/master/examples/multiple-instances) | [Sandbox](https://codesandbox.io/s/github/tanem/react-nprogress/tree/master/examples/multiple-instances) | ||
- Next Router: [Source](https://github.com/tanem/react-nprogress/tree/master/examples/next-router) | [Sandbox](https://codesandbox.io/s/github/tanem/react-nprogress/tree/master/examples/next-router) | ||
- Next Pages Router: [Source](https://github.com/tanem/react-nprogress/tree/master/examples/next-pages-router) | [Sandbox](https://codesandbox.io/s/github/tanem/react-nprogress/tree/master/examples/next-pages-router) | ||
- Original Design: [Source](https://github.com/tanem/react-nprogress/tree/master/examples/original-design) | [Sandbox](https://codesandbox.io/s/github/tanem/react-nprogress/tree/master/examples/original-design) | ||
@@ -103,0 +103,0 @@ - Plain JS: [Source](https://github.com/tanem/react-nprogress/tree/master/examples/plain-js) | [Sandbox](https://codesandbox.io/s/github/tanem/react-nprogress/tree/master/examples/plain-js) |
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
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
1229
178541
43
Updated@babel/runtime@^7.25.7