atlassian-soy-cli
Advanced tools
Comparing version 1.3.0 to 1.5.0
@@ -1,16 +0,16 @@ | ||
var _ = require('lodash'); | ||
var exec = require('child-process-promise').exec; | ||
var findJavaHome = require('find-java-home'); | ||
var fs = require('fs-extra'); | ||
var https = require('https'); | ||
var interpolate = require('interpolate'); | ||
var path = require('path'); | ||
var Q = require('q'); | ||
var winston = require('winston'); | ||
const _ = require('lodash'); | ||
const exec = require('child-process-promise').exec; | ||
const findJavaHome = require('find-java-home'); | ||
const fs = require('fs-extra'); | ||
const createOutputStream = require('create-output-stream'); | ||
const https = require('follow-redirects').https; | ||
const interpolate = require('interpolate'); | ||
const path = require('path'); | ||
const Q = require('q'); | ||
const winston = require('winston'); | ||
/** {string} template URL whence the Soy CLI is downloaded (instances of {version} will be interpolated)*/ | ||
var OLD_MAVEN_URL_TEMPLATE = 'https://maven.atlassian.com/service/local/repositories/atlassian-public/content/com/atlassian/soy/atlassian-soy-cli-support/{version}/atlassian-soy-cli-support-{version}-jar-with-dependencies.jar'; | ||
var ARTIFACTORY_URL_TEMPLATE = 'https://packages.atlassian.com/maven/repository/public/com/atlassian/soy/atlassian-soy-cli-support/{version}/atlassian-soy-cli-support-{version}-jar-with-dependencies.jar'; | ||
const ARTIFACTORY_URL_TEMPLATE = 'https://packages.atlassian.com/maven/repository/public/com/atlassian/soy/atlassian-soy-cli-support/{version}/atlassian-soy-cli-support-{version}-jar-with-dependencies.jar'; | ||
var DEFAULTS = { | ||
const DEFAULTS = { | ||
/** {string} version of the Soy CLI to download */ | ||
@@ -120,3 +120,3 @@ version: '4.1.2', | ||
var deferred = Q.defer(); | ||
var file = fs.createOutputStream(localPath); | ||
var file = createOutputStream(localPath); | ||
winston.info("Downloading %s...", url); | ||
@@ -144,3 +144,3 @@ https.get(url, function(response) { | ||
}, function(err) { | ||
if (err.code == 'ENOENT') { | ||
if (err.code === 'ENOENT') { | ||
return streamFromMavenRepo(); | ||
@@ -147,0 +147,0 @@ } else { |
{ | ||
"name": "atlassian-soy-cli", | ||
"version": "1.3.0", | ||
"version": "1.5.0", | ||
"description": "Node wrapper for the Atlassian Soy CLI", | ||
@@ -26,11 +26,14 @@ "main": "app/cli.js", | ||
"devDependencies": { | ||
"chai": "^3.3.0", | ||
"chai-as-promised": "^5.1.0", | ||
"mocha": "^2.3.3", | ||
"process": "^0.11.2" | ||
"chai": "^4.1.2", | ||
"chai-as-promised": "^7.1.1", | ||
"mocha": "^5.2.0", | ||
"process": "^0.11.2", | ||
"rimraf": "^2.6.3" | ||
}, | ||
"dependencies": { | ||
"child-process-promise": "^1.1.0", | ||
"find-java-home": "^0.1.2", | ||
"fs-extra": "^0.26.7", | ||
"child-process-promise": "^2.2.1", | ||
"create-output-stream": "^0.0.1", | ||
"find-java-home": "^0.2.0", | ||
"follow-redirects": "^1.7.0", | ||
"fs-extra": "^7.0.0", | ||
"interpolate": "^0.1.0", | ||
@@ -40,3 +43,6 @@ "lodash": "^4.6.1", | ||
"winston": "^2.2.0" | ||
}, | ||
"engines": { | ||
"node": ">=6.4" | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9568
1
9
5
+ Addedcreate-output-stream@^0.0.1
+ Addedfollow-redirects@^1.7.0
+ Addedchild-process-promise@2.2.1(transitive)
+ Addedcreate-output-stream@0.0.1(transitive)
+ Addedcross-spawn@4.0.2(transitive)
+ Addedfind-java-home@0.2.0(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
+ Addedfs-extra@7.0.1(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addednode-version@1.2.0(transitive)
+ Addedpromise-polyfill@6.1.0(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addeduniversalify@0.1.2(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedyallist@2.1.2(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedchild-process-promise@1.1.0(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfind-java-home@0.1.4(transitive)
- Removedfs-extra@0.26.7(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedjsonfile@2.4.0(transitive)
- Removedklaw@1.3.1(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedchild-process-promise@^2.2.1
Updatedfind-java-home@^0.2.0
Updatedfs-extra@^7.0.0