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.4 to 0.1.5

8

build/cjs/src/__tests__/callFuncTest.js
"use strict";
var _interopRequireWildcard = require("reshow-runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("reshow-runtime/helpers/interopRequireDefault");
var _typeof = require("reshow-runtime/helpers/typeof");
var _classCallCheck2 = _interopRequireDefault(require("reshow-runtime/helpers/classCallCheck"));

@@ -15,6 +15,2 @@

function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
describe("Test call func", function () {

@@ -21,0 +17,0 @@ it("test call", function () {

"use strict";
var _interopRequireWildcard = require("reshow-runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("reshow-runtime/helpers/interopRequireDefault");
var _typeof = require("reshow-runtime/helpers/typeof");
var _chai = require("chai");

@@ -17,6 +17,2 @@

function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
var keys = Object.keys;

@@ -23,0 +19,0 @@ describe("Test Register", function () {

"use strict";
var _interopRequireWildcard = require("reshow-runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("reshow-runtime/helpers/interopRequireDefault");
var _typeof = require("reshow-runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "register", {
Object.defineProperty(exports, "cleanAllRegister", {
enumerable: true,
get: function get() {
return _register["default"];
return _register.cleanAllRegister;
}
});
Object.defineProperty(exports, "cleanAllRegister", {
exports.isRequired = exports.defaultCall = exports["default"] = exports.debounce = void 0;
Object.defineProperty(exports, "register", {
enumerable: true,
get: function get() {
return _register.cleanAllRegister;
return _register["default"];
}
});
exports.throttle = exports.debounce = exports.isRequired = exports.defaultCall = exports["default"] = void 0;
exports.throttle = void 0;

@@ -28,6 +29,2 @@ var _callfunc = _interopRequireDefault(require("./callfunc"));

function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
var defaultCall = function defaultCall(defaultFunc, func, scope) {

@@ -34,0 +31,0 @@ return function () {

@@ -8,3 +8,3 @@ "use strict";

});
exports.cleanAllRegister = exports["default"] = void 0;
exports["default"] = exports.cleanAllRegister = void 0;

@@ -11,0 +11,0 @@ var _classCallCheck2 = _interopRequireDefault(require("reshow-runtime/helpers/classCallCheck"));

{
"name": "call-func",
"version": "0.1.4",
"version": "0.1.5",
"description": "call function",

@@ -12,3 +12,4 @@ "repository": "react-atomic/react-atomic-organism",

"dependencies": {
"reshow-constant": "*"
"reshow-constant": "*",
"get-object-value": "*"
},

@@ -21,5 +22,5 @@ "devDependencies": {

"clean": "find ./build -name '*.*' | xargs rm -rf",
"build": "npm run clean && npm run build:cjs && npm run build:es",
"build:cjs": "BABEL_ENV=cjs babel src -d build/cjs/src --root-mode upward",
"build:es": "BABEL_ENV=es babel src -d build/es/src --root-mode upward",
"build": "npm run clean && npm run build:cjs && npm run build:es",
"mochaFor": "mocha -r jsdom-global/register",

@@ -30,7 +31,3 @@ "mocha": "npm run mochaFor -- 'build/cjs/**/__tests__/*.js'",

},
"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