🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

clone-function

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clone-function - npm Package Compare versions

Comparing version

to
1.0.4

14

browser/tests/clone-function.test.js

@@ -20,2 +20,16 @@ /*

});
it('should throw an error for clones containing functions declared in blocks', function () {
var func = function wee (arg) {
if(true) {
function blah () {
return 10;
}
}
return 'wee';
};
var fn = function () {
cloneFunction(func);
};
expect(fn).toThrow();
});
});

@@ -22,0 +36,0 @@

2

package.json
{
"name": "clone-function",
"version": "1.0.3",
"version": "1.0.4",
"description": "Clones non native JavaScript functions, or references native functions.",

@@ -5,0 +5,0 @@ "main": "./src/clone-function.js",