Socket
Socket
Sign inDemoInstall

smart-mixin

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smart-mixin - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

17

index.js

@@ -32,2 +32,15 @@ var objToStr = function(x){ return Object.prototype.toString.call(x); };

function setNonEnumerable(target, key, value){
if (key in target){
target[key] = value;
}
else {
Object.defineProperty(target, key, {
value: value,
writable: true,
configurable: true
});
}
}
return function applyMixin(source, mixin){

@@ -52,3 +65,3 @@ Object.keys(mixin).forEach(function(key){

var fn = rule(left, right, key);
source[key] = wrapIfFunction(fn);
setNonEnumerable(source, key, wrapIfFunction(fn));
return;

@@ -67,3 +80,3 @@ }

// the default is to throw
source[key] = wrapIfFunction(opts.unknownFunction(left, right, key));
setNonEnumerable(source, key, wrapIfFunction(opts.unknownFunction(left, right, key)));
return;

@@ -70,0 +83,0 @@ }

2

package.json
{
"name": "smart-mixin",
"version": "1.0.3",
"version": "1.1.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.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