level-packager
Advanced tools
Comparing version 0.19.3 to 0.19.4
@@ -1,2 +0,1 @@ | ||
const util = require('util') | ||
const levelup = require('levelup') | ||
@@ -6,5 +5,5 @@ | ||
function Level (location, options, callback) { | ||
if (util.isFunction(options)) | ||
if (typeof options === 'function') | ||
callback = options | ||
if (!util.isObject(options)) | ||
if (typeof options === 'object' && options !== null) | ||
options = {} | ||
@@ -18,3 +17,3 @@ | ||
[ 'destroy', 'repair' ].forEach(function (m) { | ||
if (util.isFunction(leveldown[m])) { | ||
if (typeof leveldown[m] === 'function') | ||
Level[m] = function (location, callback) { | ||
@@ -21,0 +20,0 @@ leveldown[m](location, callback || function () {}) |
{ | ||
"name": "level-packager", | ||
"description": "LevelUP package helper for distributing with a LevelDOWN-compatible back-end", | ||
"version": "0.19.3", | ||
"version": "0.19.4", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ "Rod Vagg <r@va.gg> (https://github.com/rvagg)", |
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
105