Comparing version 4.1.0 to 5.0.0
(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 |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
0
164
38187
243
- Removedcnd@^9.0.0
- Removedacorn@8.14.0(transitive)
- Removedacorn-loose@8.4.0(transitive)
- Removedacorn-walk@8.3.4(transitive)
- Removedanymatch@3.1.3(transitive)
- Removedastring@1.9.0(transitive)
- Removedbinary-extensions@2.3.0(transitive)
- Removedbraces@3.0.3(transitive)
- Removedchokidar@3.6.0(transitive)
- Removedcnd@9.3.0(transitive)
- Removeddayjs@1.11.13(transitive)
- Removederror-callsites@2.0.4(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedfsevents@2.3.3(transitive)
- Removedglob-parent@5.1.2(transitive)
- Removedguy@13.7.2(transitive)
- Removedintertype-legacy@7.7.1(transitive)
- Removedis-binary-path@2.1.0(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-glob@4.0.3(transitive)
- Removedis-number@7.0.0(transitive)
- Removedjsx-number-format@0.1.5(transitive)
- Removedletsfreezethat@3.1.0(transitive)
- Removedload-source-map@3.0.1(transitive)
- Removedlodash.sortby@4.7.0(transitive)
- Removedmultimix@5.0.0(transitive)
- Removednodexh@2.2.2(transitive)
- Removednormalize-path@3.0.0(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedreaddirp@3.6.0(transitive)
- Removedsource-map@0.8.0-beta.0(transitive)
- Removedtmp@0.2.3(transitive)
- Removedto-regex-range@5.0.1(transitive)
- Removedtr46@1.0.1(transitive)
- Removedwebidl-conversions@4.0.2(transitive)
- Removedwhatwg-url@7.1.0(transitive)