Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

call-func

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

call-func - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

12

build/cjs/src/index.js

@@ -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"
]
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc