Comparing version 2.0.0 to 3.0.0
17
index.js
@@ -0,1 +1,5 @@ | ||
'use strict'; | ||
/*global window, global*/ | ||
var root = typeof window !== 'undefined' ? | ||
@@ -5,15 +9,12 @@ window : typeof global !== 'undefined' ? | ||
module.exports = Individual | ||
module.exports = Individual; | ||
function Individual(key, value) { | ||
if (root[key]) { | ||
return root[key] | ||
if (key in root) { | ||
return root[key]; | ||
} | ||
Object.defineProperty(root, key, { | ||
value: value | ||
, configurable: true | ||
}) | ||
root[key] = value; | ||
return value | ||
return value; | ||
} |
{ | ||
"name": "individual", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "Garantueed individual values", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
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
6011
8
45