npm-artifactory
Advanced tools
Comparing version 0.5.2 to 0.5.3
{ | ||
"name": "npm-artifactory", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "A proxy server that uses Artifactory to store npm modules for seamless integration with java/maven-based workflows", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -39,6 +39,4 @@ var http = require('http'); | ||
module.exports.artifact = function(req, res){ | ||
// infer the packagename and packageversion from the params | ||
// ignore the revision? | ||
var filename = req.params.filename; | ||
var version = filename.substring(filename.lastIndexOf('-') + 1).replace('.tgz',''); | ||
var version = filename.replace(req.params.packagename, '').replace('.tgz', '').substr(1); | ||
request.get({uri: util.artMetaPath(req.params.packagename), json: true}, function(err, artRes, body){ | ||
@@ -45,0 +43,0 @@ if (artRes.statusCode !== 200){ |
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
22572
296