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

multimix

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multimix - npm Package Compare versions

Comparing version 4.1.0 to 5.0.0

39

lib/cataloguing.js
(function() {
'use strict';
var CND, alert, assign, badge, debug, help, info, inspect, jr, rpr, urge, warn, whisper;
//###########################################################################################################
CND = require('cnd');
rpr = CND.rpr;
badge = 'MULTIMIX/CATALOGUING';
debug = CND.get_logger('debug', badge);
alert = CND.get_logger('alert', badge);
whisper = CND.get_logger('whisper', badge);
warn = CND.get_logger('warn', badge);
help = CND.get_logger('help', badge);
urge = CND.get_logger('urge', badge);
info = CND.get_logger('info', badge);
({assign, jr} = CND);
//...........................................................................................................
({inspect} = require('util'));
// _xrpr = ( x ) -> inspect x, { colors: yes, breakLength: Infinity, maxArrayLength: Infinity, depth: Infinity, }
// xrpr = ( x ) -> ( _xrpr x )[ .. 500 ]
//===========================================================================================================

@@ -70,3 +39,3 @@ // OBJECT PROPERTY CATALOGUING

};
settings = settings != null ? assign({}, settings, defaults) : defaults;
settings = {...defaults, ...settings};
results = [];

@@ -168,5 +137,9 @@ for (k in x) {

keys = (this.values_of(this.keys_of(x))).sort();
return CND.equals(probes, keys);
return probes.length = keys.length && probes.every(function(x, idx) {
return x === keys[idx];
});
};
}).call(this);
//# sourceMappingURL=cataloguing.js.map
(function() {
'use strict';
var CND, Multimix, alert, badge, debug, help, info, module_keywords, rpr, urge, warn, whisper,
var Multimix, module_keywords,
indexOf = [].indexOf;
//###########################################################################################################
CND = require('cnd');
rpr = CND.rpr;
badge = 'MULTIMIX/main';
debug = CND.get_logger('debug', badge);
alert = CND.get_logger('alert', badge);
whisper = CND.get_logger('whisper', badge);
warn = CND.get_logger('warn', badge);
help = CND.get_logger('help', badge);
urge = CND.get_logger('urge', badge);
info = CND.get_logger('info', badge);
//===========================================================================================================

@@ -50,3 +29,3 @@ // MODULE METACLASS provides static methods `@extend()`, `@include()`

if ((!settings.overwrite) && ((this.prototype[key] != null) || (this[key] != null))) {
throw new Error(`^multimix/include@5684 overwrite set to false but name already set: ${rpr(key)}`);
throw new Error(`^multimix/include@5684 overwrite set to false but name already set: ${JSON.stringify(key)}`);
}

@@ -73,3 +52,3 @@ this[key] = value;

if ((!settings.overwrite) && ((this.prototype[key] != null) || (this[key] != null))) {
throw new Error(`^multimix/include@5683 overwrite set to false but name already set: ${rpr(key)}`);
throw new Error(`^multimix/include@5683 overwrite set to false but name already set: ${JSON.stringify(key)}`);
}

@@ -76,0 +55,0 @@ // Assign properties to the prototype

7

package.json
{
"name": "multimix",
"version": "4.1.0",
"version": "5.0.0",
"description": "flexible object copying",

@@ -25,6 +25,3 @@ "main": "lib/main.js",

"author": "loveencounterflow",
"license": "MIT",
"dependencies": {
"cnd": "^9.0.0"
}
"license": "MIT"
}

@@ -159,5 +159,6 @@ <!-- START doctoc generated TOC please keep comment here to allow auto update -->

defined in a mixin object)
* [ ] can we use fat-arrow defs as in `method: ( x ) => ...` to produce bound methods? Should this become
standard, to be validated (at instantiation time)?

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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