cli-eb-test
Advanced tools
Comparing version 1.9.0 to 2.0.0
@@ -5,6 +5,8 @@ const fetch = require('node-fetch') | ||
const ProgressBar = require('progress') | ||
const UpdateCheck = require('./UpdateCheck') | ||
const url = 'http://raw.githubusercontent.com/eduardoboucas/cli-bin/master/cli-eb-test-macos' | ||
const url = 'http://raw.githubusercontent.com/eduardoboucas/cli-bin/master/core/bin/dadi-macos' | ||
const Installer = function (targetDirectory) { | ||
const Installer = function ({cachePath, targetDirectory}) { | ||
this.cachePath = cachePath | ||
this.targetDirectory = targetDirectory | ||
@@ -27,3 +29,3 @@ this.target = path.join(targetDirectory, 'dadi') | ||
Installer.prototype.install = function (isUpdate) { | ||
Installer.prototype.install = function () { | ||
const verb = isUpdate ? 'updating' : 'installing' | ||
@@ -62,5 +64,9 @@ | ||
if (!isUpdate) { | ||
this.createRunner() | ||
} | ||
this.createRunner() | ||
const updateCheck = new UpdateCheck({ | ||
cachePath: this.cachePath | ||
}) | ||
updateCheck.writeCache('0.0.1') | ||
}) | ||
@@ -67,0 +73,0 @@ } |
{ | ||
"name": "cli-eb-test", | ||
"version": "1.9.0", | ||
"version": "2.0.0", | ||
"description": "A command-line tool for installation and customisation of the DADI platform", | ||
"main": "index.js", | ||
"bin": { | ||
@@ -14,12 +13,7 @@ "dadi": "bin/runner" | ||
"dependencies": { | ||
"latest-version": "^3.1.0", | ||
"node-fetch": "^1.7.3", | ||
"progress": "^2.0.0" | ||
"progress": "^2.0.0", | ||
"semver-compare-range": "0.0.3" | ||
}, | ||
"devDependencies": { | ||
"istanbul-cobertura-badger": "^1.3.0", | ||
"jest": "^20.0.4", | ||
"nock": "^9.0.14", | ||
"pmock": "^0.2.3", | ||
"standard": "^10.0.2" | ||
}, | ||
"repository": { | ||
@@ -34,28 +28,4 @@ "type": "git", | ||
"scripts": { | ||
"test": "standard && jest && node test/utils/coverage.js", | ||
"test-dev": "jest --watch", | ||
"postinstall": "node bin/install.js" | ||
}, | ||
"jest": { | ||
"collectCoverage": true, | ||
"collectCoverageFrom": [ | ||
"bin/**/*.js", | ||
"entryPoints/**/*.js", | ||
"lib/**/*.js" | ||
], | ||
"coverageReporters": [ | ||
"cobertura" | ||
], | ||
"testMatch": [ | ||
"*/**/test/**/*.test.js" | ||
], | ||
"moduleNameMapper": { | ||
"/Users/fakeuser/fakedir/node_modules/@dadi/api": "<rootDir>/test/helpers/MockDadiApi.js" | ||
} | ||
}, | ||
"standard": { | ||
"ignore": [ | ||
"test/**/*" | ||
] | ||
"postinstall": "node install.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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
0
5
45425567
4
7
147
2
0
3
+ Addedlatest-version@^3.1.0
+ Addedsemver-compare-range@0.0.3
+ Addedcapture-stack-trace@1.0.2(transitive)
+ Addedcreate-error-class@3.0.2(transitive)
+ Addeddeep-extend@0.6.0(transitive)
+ Addedduplexer3@0.1.5(transitive)
+ Addedget-stream@3.0.0(transitive)
+ Addedgot@6.7.1(transitive)
+ Addedini@1.3.8(transitive)
+ Addedis-redirect@1.0.0(transitive)
+ Addedis-retry-allowed@1.2.0(transitive)
+ Addedlatest-version@3.1.0(transitive)
+ Addedlowercase-keys@1.0.1(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedpackage-json@4.0.1(transitive)
+ Addedprepend-http@1.0.4(transitive)
+ Addedrc@1.2.8(transitive)
+ Addedregistry-auth-token@3.4.0(transitive)
+ Addedregistry-url@3.1.0(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedsemver-compare-range@0.0.3(transitive)
+ Addedstrip-json-comments@2.0.1(transitive)
+ Addedtimed-out@4.0.1(transitive)
+ Addedunzip-response@2.0.1(transitive)
+ Addedurl-parse-lax@1.0.0(transitive)