maven-deploy
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -7,2 +7,5 @@ # Changelog | ||
## 1.4.1 | ||
* Fix bug for deploy (Issue #31) | ||
## 1.4.0 | ||
@@ -9,0 +12,0 @@ * Add optional file argument to pass an archive instead of generating one |
@@ -194,6 +194,4 @@ var fs = require('fs'); | ||
var conf = getConfig(); | ||
//if (isSnapshot && typeof isSnapshot != 'boolean') { done = file, file = isSnapshot, isSnapshot = false; } | ||
if (file && typeof file != 'string') { done = isSnapshot, isSnapshot = file, file = undefined; } | ||
if (isSnapshot && isSnapshot != 'boolean') { done = isSnapshot, isSnapshot = false; } | ||
//if (file && typeof file == 'function') { done = file, file = undefined; } | ||
if (isSnapshot && typeof isSnapshot != 'boolean') { done = isSnapshot, isSnapshot = false; } | ||
@@ -200,0 +198,0 @@ validateRepos(conf); |
{ | ||
"name": "maven-deploy", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "A simple Node.js module to create a war-/jar-package and install/deploy to a local/remote Maven repository", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -327,8 +327,9 @@ /* globals describe, it, beforeEach, afterEach */ | ||
maven.deploy(DUMMY_REPO_RELEASE.id, false, spy); | ||
maven.deploy(DUMMY_REPO_RELEASE.id, true, spy); | ||
maven.deploy(DUMMY_REPO_RELEASE.id, 'package.json', spy); | ||
maven.deploy(DUMMY_REPO_RELEASE.id, 'package.json', false, spy); | ||
assert.equal(execSpy.callCount, 4); | ||
assert.equal(execSpy.callCount, 5); | ||
for (var i=0; i<4; i++) { | ||
for (var i=0; i<5; i++) { | ||
// fake successful exec | ||
@@ -338,3 +339,3 @@ execSpy.args[i][1](null, 'stdout', null); | ||
assert.equal(spy.callCount, 4); | ||
assert.equal(spy.callCount, 5); | ||
assert.equal(spy.args[0][1], 'stdout'); | ||
@@ -341,0 +342,0 @@ }); |
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
30357
473