Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

constant-mirror

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

constant-mirror - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

index.js

@@ -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 @@ }, {});

5

package.json
{
"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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc