viewmodel
Advanced tools
Comparing version 1.7.1 to 1.7.2
@@ -9,3 +9,3 @@ 'use strict'; | ||
uuid = require('uuid').v4, | ||
aws = require('aws-sdk'), | ||
aws = Repository.use('aws-sdk'), | ||
_ = require('lodash'), | ||
@@ -53,3 +53,3 @@ collections = []; | ||
get: function(id, callback) { | ||
var self = this, | ||
var self = this, | ||
options = {}; | ||
@@ -60,3 +60,3 @@ | ||
id = null; | ||
} | ||
} | ||
@@ -106,3 +106,3 @@ if (!id) { | ||
queryOptions = {}; | ||
} | ||
} | ||
@@ -197,3 +197,3 @@ self.checkConnection(function(err) { | ||
var currentHash = _.get(obj, 'hash_'); | ||
entity = currentHash ? | ||
entity = currentHash ? | ||
updateEntityParams(self.collectionName, obj, objDescriptor, currentHash) : | ||
@@ -220,7 +220,7 @@ createEntityParams(self.collectionName, obj, objDescriptor); | ||
createTableIfNotExists( | ||
self.client, | ||
CollectionTableDefinition(self.collectionName, self.options), | ||
self.client, | ||
CollectionTableDefinition(self.collectionName, self.options), | ||
function(err){ | ||
if (err) { | ||
// ignore ResourceInUseException | ||
// ignore ResourceInUseException | ||
// as there could be multiple requests attempt to create table concurrently | ||
@@ -232,3 +232,3 @@ if (err.code === 'ResourceInUseException') { | ||
if (callback) callback(err); | ||
return; | ||
return; | ||
} | ||
@@ -235,0 +235,0 @@ if (collections.indexOf(self.collectionName) < 0) { |
{ | ||
"author": "adrai", | ||
"name": "viewmodel", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -0,1 +1,4 @@ | ||
## [v1.7.2](https://github.com/adrai/node-viewmodel/compare/v1.7.1...v1.7.2) | ||
- correct require statement | ||
## [v1.7.1](https://github.com/adrai/node-viewmodel/compare/v1.7.0...v1.7.1) | ||
@@ -2,0 +5,0 @@ - fix the Viewmodel toJSON method deserialize date ISO string to a date [#53](https://github.com/adrai/node-viewmodel/pull/53) thanks to [emmkong](https://github.com/emmkong) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
132698