verdaccio-htpasswd
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -40,2 +40,3 @@ 'use strict'; | ||
} | ||
return cb(null, res); | ||
@@ -89,3 +90,5 @@ }); | ||
var err = Error('username should not contain non-uri-safe characters'); | ||
// err.status = 409; | ||
// $FlowFixMe | ||
err.status = 409; | ||
throw err; | ||
@@ -100,4 +103,4 @@ } | ||
var comment = 'autocreated ' + new Date().toJSON(); | ||
var newline = `${user}:${passwd}:${comment}\n`; | ||
var newline = `${user}:${passwd}:${comment}\n`; | ||
if (body.length && body[body.length - 1] !== '\n') { | ||
@@ -123,6 +126,8 @@ newline = '\n' + newline; | ||
} | ||
if (err) { | ||
// err.status = 403; | ||
// $FlowFixMe | ||
err.status = 403; | ||
} | ||
return err; | ||
} |
{ | ||
"name": "verdaccio-htpasswd", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "verdaccio htpasswd auth plugin", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15006
327
0