npm-registry-couchapp
Advanced tools
Comparing version 2.3.1 to 2.3.2
{ | ||
"name": "npm-registry-couchapp", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "The CouchApp implementation of an npm registry", | ||
@@ -20,3 +20,4 @@ "scripts": { | ||
"rimraf": "~2.2.6", | ||
"tap": "*" | ||
"tap": "*", | ||
"which": "^1.0.5" | ||
}, | ||
@@ -23,0 +24,0 @@ "repository": { |
@@ -0,1 +1,2 @@ | ||
var common = require('./common.js') | ||
var test = require('tap').test | ||
@@ -30,3 +31,3 @@ var reg = 'http://127.0.0.1:15986/' | ||
function fn(conf, u, t) { | ||
var c = spawn('npm', [ | ||
var c = common.npm([ | ||
'--registry=' + reg, | ||
@@ -33,0 +34,0 @@ '--userconf=' + conf, |
@@ -0,1 +1,2 @@ | ||
var common = require('./common.js') | ||
var test = require('tap').test | ||
@@ -100,3 +101,3 @@ var reg = 'http://127.0.0.1:15986/' | ||
test('get npm version', function(t) { | ||
var c = spawn('npm', [ '--version' ], { env: env }) | ||
var c = common.npm([ '--version' ], { env: env }) | ||
var v = '' | ||
@@ -118,3 +119,3 @@ c.stdout.on('data', function(d) { | ||
test('first publish', function(t) { | ||
var c = spawn('npm', [ | ||
var c = common.npm([ | ||
'--registry=' + reg, | ||
@@ -199,3 +200,3 @@ '--userconf=' + conf, | ||
test('fail to clobber', function(t) { | ||
var c = spawn('npm', [ | ||
var c = common.npm([ | ||
'--registry=' + reg, | ||
@@ -212,3 +213,3 @@ '--userconf=' + conf, | ||
test('fail to publish as other user', function(t) { | ||
var c = spawn('npm', [ | ||
var c = common.npm([ | ||
'--registry=' + reg, | ||
@@ -225,3 +226,3 @@ '--userconf=' + conf2, | ||
test('publish update as non-latest', function(t) { | ||
var c = spawn('npm', [ | ||
var c = common.npm([ | ||
'--registry=' + reg, | ||
@@ -296,3 +297,3 @@ '--userconf=' + conf, | ||
test('add second publisher', function(t) { | ||
var c = spawn('npm', [ | ||
var c = common.npm([ | ||
'--registry=' + reg, | ||
@@ -337,3 +338,3 @@ '--userconf=' + conf, | ||
test('other owner publish', function(t) { | ||
var c = spawn('npm', [ | ||
var c = common.npm([ | ||
'--registry=' + reg, | ||
@@ -399,3 +400,3 @@ '--userconf=' + conf2, | ||
rimraf.sync(path.resolve(inst, 'node_modules')) | ||
var c = spawn('npm', [ | ||
var c = common.npm([ | ||
'--registry=' + reg, | ||
@@ -402,0 +403,0 @@ 'install' |
@@ -0,1 +1,2 @@ | ||
var common = require('./common.js') | ||
var test = require('tap').test | ||
@@ -15,3 +16,3 @@ var reg = 'http://127.0.0.1:15986/' | ||
test('non-owner can star package', function(t) { | ||
var c = spawn('npm', [ | ||
var c = common.npm([ | ||
'--registry=' + reg, | ||
@@ -35,3 +36,3 @@ '--userconf=' + conf3, | ||
test('non-owner can unstar package', function(t) { | ||
var c = spawn('npm', [ | ||
var c = common.npm([ | ||
'--registry=' + reg, | ||
@@ -81,3 +82,3 @@ '--userconf=' + conf3, | ||
test('non-owner can star package', function(t) { | ||
var c = spawn('npm', [ | ||
var c = common.npm([ | ||
'--registry=' + reg, | ||
@@ -101,3 +102,3 @@ '--userconf=' + conf3, | ||
test('non-owner can unstar package', function(t) { | ||
var c = spawn('npm', [ | ||
var c = common.npm([ | ||
'--registry=' + reg, | ||
@@ -104,0 +105,0 @@ '--userconf=' + conf3, |
@@ -0,1 +1,2 @@ | ||
var common = require('./common.js') | ||
var test = require('tap').test | ||
@@ -16,3 +17,3 @@ var reg = 'http://127.0.0.1:15986/' | ||
test('deprecate', function (t) { | ||
var c = spawn('npm', [ | ||
var c = common.npm([ | ||
'--color=always', | ||
@@ -19,0 +20,0 @@ '--registry=' + reg, |
@@ -7,2 +7,3 @@ // npm --userconfig=test/fixtures/npmrc unpublish -f package | ||
var common = require('./common.js') | ||
var test = require('tap').test | ||
@@ -23,3 +24,3 @@ var reg = 'http://127.0.0.1:15986/' | ||
test('unpublish', function(t) { | ||
var c = spawn('npm', [ | ||
var c = common.npm([ | ||
'--registry=' + reg, | ||
@@ -82,3 +83,3 @@ '--userconf=' + conf, | ||
test('fail to clobber', function(t) { | ||
var c = spawn('npm', [ | ||
var c = common.npm([ | ||
'--registry=' + reg, | ||
@@ -96,3 +97,3 @@ '--userconf=' + conf3, | ||
test('publish new version as new user', function(t) { | ||
var c = spawn('npm', [ | ||
var c = common.npm([ | ||
'--registry=' + reg, | ||
@@ -117,3 +118,3 @@ '--userconf=' + conf3, | ||
test('now unpublish the new version', function(t) { | ||
var c = spawn('npm', [ | ||
var c = common.npm([ | ||
'--registry=' + reg, | ||
@@ -120,0 +121,0 @@ '--userconf=' + conf3, |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
1027272
81
22293
6
26
20