Comparing version 11.7.0 to 11.8.0
@@ -583,2 +583,8 @@ (function() { | ||
//----------------------------------------------------------------------------------------------------------- | ||
/* thx to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptors#creating_a_shallow_copy */ | ||
this._shallow_copy = function(d) { | ||
return Object.create(Object.getPrototypeOf(d), Object.getOwnPropertyDescriptors(d)); | ||
}; | ||
//=========================================================================================================== | ||
@@ -585,0 +591,0 @@ // TREE |
{ | ||
"name": "guy", | ||
"version": "11.7.0", | ||
"version": "11.8.0", | ||
"description": "npm dependencies checker", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -109,2 +109,9 @@ | ||
* **`GUY.props._shallow_copy = ( d ) ->`**—Given object `d`, return a shallow copy of it using the technique | ||
demonstrated in the [MDN documentation for | ||
`Object.getOwnPropertyDescriptors()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptors#creating_a_shallow_copy): | ||
`( d ) -> Object.create ( Object.getPrototypeOf d ), ( Object.getOwnPropertyDescriptors d )`. This method | ||
is not yet official part of the API because it may get an extension to work transparently with primitive | ||
values. | ||
#### `GUY.props.keys()` | ||
@@ -111,0 +118,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
284515
2803
676