Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

maven-deploy

Package Overview
Dependencies
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

maven-deploy - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

3

CHANGELOG.md

@@ -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

4

index.js

@@ -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 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc