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

cli-eb-test

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-eb-test - npm Package Compare versions

Comparing version 1.9.0 to 2.0.0

install.js

18

lib/Installer.js

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