next-page-transitions
Advanced tools
Comparing version 1.0.0-alpha.5 to 1.0.0-alpha.6
@@ -336,3 +336,3 @@ "use strict"; | ||
classNames: _propTypes.default.string.isRequired, | ||
timeout: _PropTypes.timeoutsShape.isRequired, | ||
timeout: process.env.NODE_ENV !== "production" ? _PropTypes.timeoutsShape.isRequired : null, | ||
loadingComponent: _propTypes.default.element, | ||
@@ -345,9 +345,12 @@ loadingDelay: _propTypes.default.number, | ||
var pt = _PropTypes.timeoutsShape; | ||
if (props.loadingComponent) pt = pt.isRequired; | ||
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { | ||
args[_key2 - 1] = arguments[_key2]; | ||
if (props.loadingComponent && process.env.NODE_ENV !== "production") { | ||
pt = pt.isRequired; | ||
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { | ||
args[_key2 - 1] = arguments[_key2]; | ||
} | ||
return pt.apply(void 0, [props].concat(args)); | ||
} | ||
return pt.apply(void 0, [props].concat(args)); | ||
}, | ||
@@ -354,0 +357,0 @@ loadingClassNames: function loadingClassNames(props) { |
{ | ||
"name": "next-page-transitions", | ||
"version": "1.0.0-alpha.5", | ||
"version": "1.0.0-alpha.6", | ||
"description": "Simple and customizable page transitions for Next.js apps", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
27636
329
2