Comparing version 11.1.2 to 11.2.0
@@ -408,3 +408,3 @@ (function() { | ||
//----------------------------------------------------------------------------------------------------------- | ||
this.keys = function(owner, cfg) { | ||
this.keys = (owner, cfg) => { | ||
return [...(this._walk_keys(owner, this._get_keys_cfg(cfg)))]; | ||
@@ -414,3 +414,3 @@ }; | ||
//----------------------------------------------------------------------------------------------------------- | ||
this.has_any_keys = function(owner, cfg) { | ||
this.has_any_keys = (owner, cfg) => { | ||
var key, ref; | ||
@@ -425,3 +425,3 @@ ref = this._walk_keys(owner, this._get_keys_cfg(cfg)); | ||
//----------------------------------------------------------------------------------------------------------- | ||
this.walk_keys = function(owner, cfg) { | ||
this.walk_keys = (owner, cfg) => { | ||
return this._walk_keys(owner, this._get_keys_cfg(cfg)); | ||
@@ -483,2 +483,16 @@ }; | ||
//----------------------------------------------------------------------------------------------------------- | ||
this.xray = (owner, base = {}) => { | ||
var k, ref; | ||
ref = this._walk_keys(owner, { | ||
hidden: true, | ||
symbols: true, | ||
builtins: false | ||
}); | ||
for (k of ref) { | ||
base[k] = owner[k]; | ||
} | ||
return base; | ||
}; | ||
//=========================================================================================================== | ||
@@ -485,0 +499,0 @@ // TREE |
{ | ||
"name": "guy", | ||
"version": "11.1.2", | ||
"version": "11.2.0", | ||
"description": "npm dependencies checker", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -47,2 +47,8 @@ | ||
* **`GUY.props.xray: ( owner, host ) ->`**—A little bit the inverse to `GUY.props.hide()`, it will return an | ||
object with all key/value pairs set that were found on `owner` after applying `GUY.props.keys owner, { | ||
hidden: true, symbols: true, builtins: false, }`. When `host` is set, that value will be used to store the | ||
key/value pairs in, possibly overwriting existing keys. This method is useful for printing and debugging | ||
objects with non-enumerable and/or symbol keys. | ||
* **`GUY.props.def_oneoff: ()`** | ||
@@ -49,0 +55,0 @@ |
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
270381
2703
649