node-json-database
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -431,3 +431,3 @@ "use strict"; | ||
function DataType_JSON(value) { | ||
return _super.call(this, JSON.stringify(value, null, 2)) || this; | ||
return _super.call(this, value) || this; | ||
} | ||
@@ -434,0 +434,0 @@ DataType_JSON.prototype.compare = function (_json) { |
@@ -435,5 +435,5 @@ import * as fs from 'fs' | ||
}, | ||
JSON: class DataType_JSON extends DataTypeClass<string> { | ||
constructor(value: string) { | ||
super(JSON.stringify(value, null, 2)) | ||
JSON: class DataType_JSON extends DataTypeClass<Object> { | ||
constructor(value: Object) { | ||
super(value) | ||
} | ||
@@ -440,0 +440,0 @@ |
{ | ||
"name": "node-json-database", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "JS Database Management System using JSON files", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
74257