Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2017-05-27 09:36:39 +0300
committerKat Marchán <kzm@sykosomatic.org>2017-05-27 09:36:39 +0300
commit923fd58d312f40f8c17b232ad1dfc8e2ff622dbd (patch)
treede9d995c5cff300e6bea28931a31a874186556ca /lib
parentebafe48af91f702ccefc8c619d52fed3b8dfd3c7 (diff)
utils: Remove slow assertion from module-name util (#16749)
PR-URL: https://github.com/npm/npm/pull/16749 Credit: @mikesherov Reviewed-By: @zkat Reviewed-By: @iarna
Diffstat (limited to 'lib')
-rw-r--r--lib/utils/module-name.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/utils/module-name.js b/lib/utils/module-name.js
index 649dfac01..43e0f5fb1 100644
--- a/lib/utils/module-name.js
+++ b/lib/utils/module-name.js
@@ -1,6 +1,5 @@
'use strict'
var path = require('path')
-var validate = require('aproba')
module.exports = moduleName
module.exports.test = {}
@@ -22,7 +21,6 @@ function isNotEmpty (str) {
var unknown = 0
function moduleName (tree) {
- validate('O', arguments)
var pkg = tree.package || tree
if (isNotEmpty(pkg.name)) return pkg.name
var pkgName = pathToPackageName(tree.path)