Comparing version 0.12.1 to 0.12.2
@@ -23,3 +23,3 @@ 'use strict'; | ||
if (arg) { | ||
v = arg.value ? arg.value() : arg; | ||
v = _.isFunction(arg.value) ? arg.value() : arg; | ||
} | ||
@@ -26,0 +26,0 @@ |
{ | ||
"name": "lowdb", | ||
"version": "0.12.1", | ||
"version": "0.12.2", | ||
"description": "JSON database for Node and the browser powered by lodash", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
"babel-preset-stage-3": "^6.3.13", | ||
"husky": "^0.9.0", | ||
"husky": "^0.10.2", | ||
"sinon": "^1.17.2", | ||
@@ -51,0 +51,0 @@ "standard": "^4.0.1", |
@@ -150,3 +150,3 @@ # 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) | ||
// set only storage.read or storage.write | ||
const fileSync = require('lowdb/fileSync') | ||
const fileSync = require('lowdb/file-sync') | ||
@@ -335,5 +335,5 @@ // write-only | ||
low('db.bson', { storage, format: { | ||
serialize: BSON.serialize | ||
serialize: BSON.serialize, | ||
deserialize: BSON.deserialize | ||
}) | ||
}}) | ||
@@ -340,0 +340,0 @@ // Alternative ES2015 short syntax |
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
17299