Comparing version 0.1.5 to 0.1.6
@@ -41,5 +41,4 @@ "use strict"; | ||
var isRequired = function isRequired() { | ||
var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "param"; | ||
throw new Error("".concat(name, " is required")); | ||
var isRequired = function isRequired(name) { | ||
throw new Error("".concat(name || "param", " is required")); | ||
}; | ||
@@ -75,5 +74,6 @@ /** | ||
var throttle = function throttle(func) { | ||
var threshhold = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 250; | ||
var needRunLast = arguments.length > 2 ? arguments[2] : undefined; | ||
var throttle = function throttle(func, threshhold, needRunLast) { | ||
var _threshhold; | ||
threshhold = (_threshhold = threshhold) !== null && _threshhold !== void 0 ? _threshhold : 250; | ||
var waiting = false; | ||
@@ -80,0 +80,0 @@ var lastCall = false; |
@@ -13,5 +13,4 @@ import callfunc from "./callfunc"; | ||
var isRequired = function isRequired() { | ||
var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "param"; | ||
throw new Error("".concat(name, " is required")); | ||
var isRequired = function isRequired(name) { | ||
throw new Error("".concat(name || "param", " is required")); | ||
}; | ||
@@ -43,5 +42,6 @@ /** | ||
var throttle = function throttle(func) { | ||
var threshhold = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 250; | ||
var needRunLast = arguments.length > 2 ? arguments[2] : undefined; | ||
var throttle = function throttle(func, threshhold, needRunLast) { | ||
var _threshhold; | ||
threshhold = (_threshhold = threshhold) !== null && _threshhold !== void 0 ? _threshhold : 250; | ||
var waiting = false; | ||
@@ -48,0 +48,0 @@ var lastCall = false; |
{ | ||
"name": "call-func", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "call function", | ||
@@ -12,4 +12,4 @@ "repository": "react-atomic/react-atomic-organism", | ||
"dependencies": { | ||
"reshow-constant": "*", | ||
"get-object-value": "*" | ||
"get-object-value": "*", | ||
"reshow-constant": "*" | ||
}, | ||
@@ -30,3 +30,7 @@ "devDependencies": { | ||
}, | ||
"files": ["build", "package.json", "README.md"] | ||
"files": [ | ||
"build", | ||
"package.json", | ||
"README.md" | ||
] | ||
} |
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
31088
918