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

viewmodel

Package Overview
Dependencies
Maintainers
2
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

viewmodel - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

12

lib/databases/azuretable.js

@@ -196,7 +196,13 @@ 'use strict';

qV = defaultQueryValues(qV);
return {key: queryKey + ' ' + qV.operator + ' ?', value: qV.value}
return {
key: queryKey + ' ' + qV.operator + ' ?' + (Date.parse(qV.value) ? 'date?' : ''),
value: Date.parse(qV.value) ? new Date(qV.value) : qV.value
};
});
} else {
queryValue = defaultQueryValues(queryValue);
return {key: queryKey + ' ' + queryValue.operator + ' ?', value: queryValue.value}
return {
key: queryKey + ' ' + queryValue.operator + ' ?' + (Date.parse(queryValue.value) ? 'date?' : ''),
value: Date.parse(queryValue.value) ? new Date(queryValue.value) : queryValue.value
};
}

@@ -374,3 +380,3 @@ })

async.each(entities.entries, function (entity, callback) {
self.client.deleteEntity(col, entity, function (error, response) {
self.client.deleteEntity(self.collectionName, entity, function (error, response) {
if (callback) callback(error);

@@ -377,0 +383,0 @@ });

@@ -8,3 +8,5 @@ 'use strict';

mongo = require('mongodb'),
ObjectID = mongo.BSONPure.ObjectID,
mongoVersion = require('mongodb/package.json').version,
isNew = mongoVersion.indexOf('1.') !== 0,
ObjectID = isNew ? mongo.ObjectID : mongo.BSONPure.ObjectID,
_ = require('lodash'),

@@ -57,3 +59,3 @@ async = require('async'),

server = new mongo.ReplSetServers(servers);
server = new mongo.ReplSet(servers);
} else {

@@ -256,3 +258,3 @@ server = new mongo.Server(options.host, options.port, options.options);

this.collection = new mongo.Collection(this.client, this.collectionName);
this.collection = this.db.collection(this.collectionName);
this.ensureIndexes();

@@ -279,3 +281,3 @@ },

async.each(collections, function (col, callback) {
(new mongo.Collection(self.client, col)).remove({}, { safe: true }, callback);
(self.db.collection(col)).remove({}, { safe: true }, callback);
}, callback);

@@ -282,0 +284,0 @@ }

{
"author": "adrai",
"name": "viewmodel",
"version": "1.3.0",
"version": "1.3.1",
"private": false,

@@ -6,0 +6,0 @@ "main": "index.js",

@@ -0,1 +1,5 @@

## [v1.3.1](https://github.com/adrai/node-viewmodel/compare/v1.3.0...v1.3.1)
- fix errors in azureTable implementation [#12](https://github.com/adrai/node-viewmodel/pull/12) thanks to [rvin100](https://github.com/rvin100)
- added mongodb driver 2.x support
## [v1.3.0](https://github.com/adrai/node-viewmodel/compare/v1.2.8...v1.3.0)

@@ -2,0 +6,0 @@ - added documentdb support [#11](https://github.com/adrai/node-viewmodel/pull/11) thanks to [sbiaudet](https://github.com/sbiaudet)

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