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

expand-object

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expand-object - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

15

index.js

@@ -30,2 +30,17 @@ 'use strict';

var i = str.indexOf(':');
var key = str.slice(0, i);
var val = str.slice(i + 1);
if (/\w+,\w+,/.test(val)) {
var obj = {};
obj[key] = toArray(val).map(function (ele) {
if (~ele.indexOf(':')) {
return expandObject({}, ele);
}
return ele;
});
return obj;
}
return toArray(str).map(function (ele) {

@@ -32,0 +47,0 @@ return expandObject({}, ele);

2

package.json
{
"name": "expand-object",
"description": "Expand a string into a JavaScript object using a simple notation. Use the CLI or as a node.js lib.",
"version": "0.3.1",
"version": "0.3.2",
"homepage": "https://github.com/jonschlinkert/expand-object",

@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

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