Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 1.0.3 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",

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