constant-mirror
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -19,2 +19,4 @@ "use strict"; | ||
return constants.reduce(function (obj, constant) { | ||
if (!constant) return obj; | ||
return _extends({}, obj, _defineProperty({}, constant, constant)); | ||
@@ -21,0 +23,0 @@ }, {}); |
{ | ||
"name": "constant-mirror", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A simple tool for creating objects with keys mirrored as values. Inspired by React's keyMirror.", | ||
@@ -19,6 +19,7 @@ "keywords": [ | ||
"prepublish": "babel --stage=0 src/index.js -o index.js", | ||
"pretest": "babel --stage=0 src/index.js -o index.js", | ||
"test": "mocha --compilers js:babel/register" | ||
}, | ||
"devDependencies": { | ||
"babel": "5.x", | ||
"babel": "^5.8.21", | ||
"expect.js": "*", | ||
@@ -25,0 +26,0 @@ "mocha": "*" |
@@ -21,2 +21,2 @@ # constant-mirror [![npm](https://img.shields.io/npm/v/constant-mirror.svg)](https://www.npmjs.com/package/constant-mirror) [![npm](https://img.shields.io/npm/dm/constant-mirror.svg)](https://www.npmjs.com/package/constant-mirror) | ||
## License | ||
MIT ©️ [Griffin Yourick](https://github.com/tough-griff) | ||
MIT © [Griffin Yourick](https://github.com/tough-griff) |
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
3406
17