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

esq

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esq - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

8

lib/esq.js

@@ -25,3 +25,9 @@ (function() {

for (var i=0; i<names.length; i++) {
base = base[names[i]] = base[names[i]] || { };
if(names[i] instanceof Array) {
names[i] = names[i][0];
base[names[i]] = base[names[i]] || [];
base = base[names[i]][base[names[i]].length] = {};
} else {
base = base[names[i]] = base[names[i]] || { };
}
}

@@ -28,0 +34,0 @@

2

package.json
{
"name": "esq",
"version": "0.0.7",
"version": "0.0.8",
"description": "Easily build elasticsearch queries",

@@ -5,0 +5,0 @@ "keywords": [

@@ -63,2 +63,8 @@ var assert = require('assert');

it('with array type name parameters', function() {
esq._createNestedObject(base, [['a'], 'b'], 'c');
esq._createNestedObject(base, [['a'], 'd'], 'e');
assert.deepEqual(base, { a: [ { b: 'c' }, { d: 'e' } ] });
});
it('with array type value parameters', function() {

@@ -65,0 +71,0 @@ esq._createNestedObject(base, ['a'], [{ b: 'c' }]);

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