viewmodel
Advanced tools
Comparing version 1.7.0 to 1.7.1
@@ -159,3 +159,3 @@ 'use strict'; | ||
case 'delete': | ||
obj = vm.toJSON(); | ||
obj = vm.attributes; | ||
if(!_.has(obj, 'hash_')){ | ||
@@ -178,3 +178,3 @@ if (callback) callback(null, vm); | ||
case 'create': | ||
obj = vm.toJSON(); | ||
obj = vm.attributes; | ||
entity = createEntityParams(self.collectionName, obj, objDescriptor); | ||
@@ -193,3 +193,3 @@ self.documentClient.put(entity, function(err, data) { | ||
case 'update': | ||
obj = vm.toJSON(); | ||
obj = vm.attributes; | ||
var currentHash = _.get(obj, 'hash_'); | ||
@@ -196,0 +196,0 @@ entity = currentHash ? |
{ | ||
"author": "adrai", | ||
"name": "viewmodel", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -297,2 +297,3 @@ # Introduction | ||
9. elasticsearch6 ([elasticsearch] (https://github.com/elastic/elasticsearch-js)) - for Elasticsearch 5.x and 6.x | ||
10. dynamodb ([aws-sdk] (https://github.com/aws/aws-sdk-js)) | ||
@@ -299,0 +300,0 @@ ## own db implementation |
@@ -0,1 +1,4 @@ | ||
## [v1.7.1](https://github.com/adrai/node-viewmodel/compare/v1.7.0...v1.7.1) | ||
- 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) | ||
## [v1.7.0](https://github.com/adrai/node-viewmodel/compare/v1.6.0...v1.7.0) | ||
@@ -2,0 +5,0 @@ - AWS DynamoDb implementation [#52](https://github.com/adrai/node-viewmodel/pull/52) 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
132593
342