Comparing version 11.1.1 to 11.1.2
(function() { | ||
'use strict'; | ||
var GUY_props, H, builtins, def, def_oneoff, hide, no_such_value, rpr; | ||
var GUY_props, H, builtins, def, def_oneoff, get, hide, no_such_value, rpr; | ||
@@ -372,3 +372,14 @@ //########################################################################################################### | ||
//----------------------------------------------------------------------------------------------------------- | ||
this.get = (target, key, fallback = this._misfit) => { | ||
get = function(target, key, fallback) { | ||
var arity; | ||
switch (arity = arguments.length) { | ||
case 2: | ||
fallback = this._misfit; | ||
break; | ||
case 3: | ||
null; | ||
break; | ||
default: | ||
throw new Error(`^guy.props.get@1^ expected 2 or 3 arguments, got ${arity}`); | ||
} | ||
if (this.has(target, key)) { | ||
@@ -383,4 +394,6 @@ return target[key]; | ||
this.get = get.bind(this); | ||
//----------------------------------------------------------------------------------------------------------- | ||
this._get_keys_cfg = function(cfg) { | ||
this./* avoiding fat-arrow function so we can use `arguments` */_get_keys_cfg = function(cfg) { | ||
var has_hidden; | ||
@@ -387,0 +400,0 @@ has_hidden = (cfg != null ? cfg : {}).hidden != null; |
{ | ||
"name": "guy", | ||
"version": "11.1.1", | ||
"version": "11.1.2", | ||
"description": "npm dependencies checker", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
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
268853
2690