New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

anydb-sql

Package Overview
Dependencies
Maintainers
3
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anydb-sql - npm Package Compare versions

Comparing version 0.6.12 to 0.6.14

6

lib/grouper.js

@@ -113,3 +113,4 @@

for (var k = 0, l = val.length; k < l; ++k)
val[k] = clean(val[k], cleaner);
if (val[k] instanceof Array || isObject(val[k]))
val[k] = clean(val[k], cleaner);
return val;

@@ -124,3 +125,2 @@ }

if (/{}$/.test(key) && item instanceof Array) {
console.log(key, "is same with", newkey);
item = clean(item[0], cleaner);

@@ -173,3 +173,3 @@ }

function isGroup(val, key) {
return isObject(val);
return /(\{\}|\[\])$/.test(key);
}

@@ -176,0 +176,0 @@

{
"name": "anydb-sql",
"version": "0.6.12",
"version": "0.6.14",
"description": "Minimal ORM for mysql, postgresql and sqlite with complete arbitrary SQL query support (based on brianc's query builder sql)",

@@ -41,5 +41,5 @@ "main": "anydb-sql.js",

"devDependencies": {
"tap": "~0.4.3",
"sqlite3": "~2.1.10"
"sqlite3": "~2.1.10",
"tape": "~2.12.2"
}
}
var util = require('util');
var grouper = require('../lib/grouper');
var t = require('tap');
var t = require('tape');

@@ -53,7 +53,9 @@

{'id##': 1, metadata: [{a: 1}, {a: 2}]},
{'id##': 2, metadata: [{b: 5}, {b: 8}]}
{'id##': 2, metadata: [{b: 5}, {b: 8}]},
{'id##': 3, metadata: [{b: 8}, {b: 7,c:[1,2,3]}]},
];
var nestedOut = [
{'id': 1, metadata: [{a: 1}, {a: 2}]},
{'id': 2, metadata: [{b: 5}, {b: 8}]}
{'id': 2, metadata: [{b: 5}, {b: 8}]},
{'id': 3, metadata: [{b: 8}, {b: 7,c:[1,2,3]}]},
];

@@ -60,0 +62,0 @@

@@ -1,2 +0,2 @@

var test = require('tap').test;
var test = require('tape').test;

@@ -3,0 +3,0 @@ var anydbsql = require('../anydb-sql');

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