Socket
Socket
Sign inDemoInstall

caminte

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caminte - npm Package Compare versions

Comparing version 0.0.39 to 0.0.40

6

lib/adapters/mongodb.js

@@ -78,3 +78,3 @@ /**

if (s.username && s.password) {
t = this;
var t = this;
client.authenticate(s.username, s.password, function (err, result) {

@@ -246,3 +246,3 @@ t.client = client;

var args = {};
for (index in keys) {
for (var index in keys) {
var m = keys[index].match(/\s+(A|DE)SC$/);

@@ -343,2 +343,2 @@ var key = keys[index];

return query;
}
}

@@ -38,19 +38,23 @@ /**

SQLite3.prototype.query = function (sql, callback) {
schema.client.run(sql, callback);
};
SQLite3.prototype.command = function () {
this.query('run', [].slice.call(arguments));
this.run('run', [].slice.call(arguments));
};
SQLite3.prototype.execSql = function () {
this.query('exec', [].slice.call(arguments));
this.run('exec', [].slice.call(arguments));
};
SQLite3.prototype.queryAll = function () {
this.query('all', [].slice.call(arguments));
this.run('all', [].slice.call(arguments));
};
SQLite3.prototype.queryOne = function () {
this.query('get', [].slice.call(arguments));
this.run('get', [].slice.call(arguments));
};
SQLite3.prototype.query = function (method, args) {
SQLite3.prototype.run = function (method, args) {
var time = Date.now();

@@ -235,3 +239,3 @@ var log = this.log;

if (props[key]) {
if(props[key].type.name=='JSON' && typeof val == "string") data[key] = JSON.parse(val);
if (props[key].type.name == 'JSON' && typeof val == "string") data[key] = JSON.parse(val);
else data[key] = val;

@@ -775,7 +779,7 @@ }

});
/* This automatically creates a REGEXP for a string that starts with "/". This is a bad idea when dealing with URL request paths !!
} else if (/^\//gi.test(conds[key])) {
/* This automatically creates a REGEXP for a string that starts with "/". This is a bad idea when dealing with URL request paths !!
} else if (/^\//gi.test(conds[key])) {
var reg = val.toString().split('/');
cs.push(keyEscaped + ' REGEXP "' + reg[1] + '"');
*/
*/
} else {

@@ -782,0 +786,0 @@ cs.push(keyEscaped + ' = ' + val);

{
"name": "caminte",
"description": "ORM for every database: redis, mysql, neo4j, mongodb, rethinkdb, postgres, sqlite, tingodb",
"version": "0.0.39",
"version": "0.0.40",
"author": {

@@ -6,0 +6,0 @@ "name": "Aleksej Gordejev",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc