Comparing version 1.3.0 to 1.3.1
@@ -55,3 +55,3 @@ 'use strict'; | ||
validateDocument(original_document) { | ||
let _document = flatten(original_document); | ||
let _document = Object.assign({}, flatten(original_document), original_document); | ||
_document = Object.keys(_document).reduce((result, key) => { | ||
@@ -73,3 +73,3 @@ if (_document[key]) { | ||
} | ||
} else if (typeof original_document[key] === 'object' && typeof this.flattenedScheme[key] === 'function' && this.flattenedScheme[key] === Object) { //schema type mixed | ||
} else if (typeof original_document[ key ] === 'object' && typeof this.flattenedScheme[ key ] === 'function' && this.flattenedScheme[ key ] === Object) { //schema type mixed | ||
result[key] = original_document[key]; | ||
@@ -79,2 +79,3 @@ } | ||
}, { _id: _document._id }); | ||
this.default_defs.forEach(key => { | ||
@@ -81,0 +82,0 @@ let documentKey = key.substring(0, key.indexOf('.default')); |
{ | ||
"name": "lowkie", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"license": "MIT", | ||
"main": "index.js", | ||
"maintainers": [{ | ||
"maintainers": [ | ||
{ | ||
"name": "janbialostok", | ||
@@ -34,7 +35,9 @@ "email": "janbialostok@gmail.com" | ||
}, | ||
"contributors": [{ | ||
"name": "Jan Bialostok", | ||
"email": "janbialostok@gmail.com", | ||
"url": "https://github.com/janbialostok" | ||
}], | ||
"contributors": [ | ||
{ | ||
"name": "Jan Bialostok", | ||
"email": "janbialostok@gmail.com", | ||
"url": "https://github.com/janbialostok" | ||
} | ||
], | ||
"dependencies": { | ||
@@ -101,2 +104,2 @@ "babel-polyfill": "^6.23.0", | ||
] | ||
} | ||
} |
@@ -1,1 +0,1 @@ | ||
{"filename":"/home/janbialostok/Developer/github/modules/lowkie/test/mock/sampledb.json","collections":[],"databaseVersion":1.1,"engineVersion":1.1,"autosave":false,"autosaveInterval":5000,"autosaveHandle":null,"throttledSaves":true,"options":{"serializationMethod":"normal","destructureDelimiter":"$<\n"},"persistenceMethod":"fs","persistenceAdapter":null,"verbose":false,"events":{"init":[null],"loaded":[],"flushChanges":[],"close":[],"changes":[],"warning":[]},"ENV":"NODEJS"} | ||
{"filename":"/Users/yawjosephetse/Developer/github/typesettin/lowkie/test/mock/sampledb.json","collections":[],"databaseVersion":1.1,"engineVersion":1.1,"autosave":false,"autosaveInterval":5000,"autosaveHandle":null,"throttledSaves":true,"options":{"serializationMethod":"normal","destructureDelimiter":"$<\n"},"persistenceMethod":"fs","persistenceAdapter":null,"verbose":false,"events":{"init":[null],"loaded":[],"flushChanges":[],"close":[],"changes":[],"warning":[]},"ENV":"NODEJS"} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
6199898