level-packager
Advanced tools
Comparing version 0.19.0 to 0.19.1
@@ -0,1 +1,2 @@ | ||
const util = require('util') | ||
const levelup = require('levelup') | ||
@@ -5,5 +6,5 @@ | ||
function Level (location, options, callback) { | ||
if (typeof options == 'function') | ||
if (util.isFunction(options) | ||
callback = options | ||
if (typeof options != 'object') | ||
if (!util.isObject(options)) | ||
options = {} | ||
@@ -17,3 +18,3 @@ | ||
[ 'destroy', 'repair' ].forEach(function (m) { | ||
if (typeof leveldown[m] == 'function') { | ||
if (util.isFunction(leveldown[m]) { | ||
Level[m] = function (location, callback) { | ||
@@ -20,0 +21,0 @@ leveldown[m](location, callback || function () {}) |
{ | ||
"name": "level-packager", | ||
"description": "LevelUP package helper for distributing with a LevelDOWN-compatible back-end", | ||
"version": "0.19.0", | ||
"version": "0.19.1", | ||
"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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
11482
106