Comparing version 0.11.4 to 0.11.5
@@ -77,3 +77,8 @@ 'use strict'; | ||
options.format && Object.assign(db, options.format); | ||
if (options.format) { | ||
var format = options.format; | ||
db.serialize = format.serialize; | ||
db.deserialize = format.deserialize; | ||
} | ||
} | ||
@@ -80,0 +85,0 @@ |
{ | ||
"name": "lowdb", | ||
"version": "0.11.4", | ||
"version": "0.11.5", | ||
"description": "JSON database for Node and the browser powered by lodash", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -10,3 +10,2 @@ # lowdb [![NPM version](https://badge.fury.io/js/lowdb.svg)](http://badge.fury.io/js/lowdb) [![Build Status](https://travis-ci.org/typicode/lowdb.svg?branch=master)](https://travis-ci.org/typicode/lowdb) | ||
const storage = require('lowdb/file-sync') | ||
const db = low('db.json', { storage }) | ||
@@ -13,0 +12,0 @@ |
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
17206
174
383