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