From 585703fc5549abcae6d6886c9f4c2b7e15370f7e Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Mon, 2 Jul 2018 23:15:24 +0200 Subject: [PATCH] fix(core): switch to @pushrocks/smartpromise --- package-lock.json | 8 ++++++++ package.json | 2 +- ts/npmci.bash.ts | 4 ++-- ts/npmci.plugins.ts | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index e8b7553..ae49f45 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,6 +28,14 @@ "yargs": "^11.0.0" } }, + "@pushrocks/smartpromise": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@pushrocks/smartpromise/-/smartpromise-2.0.2.tgz", + "integrity": "sha512-Rr4aLO2spAQ58TB9l3UwVs+keQu7gPXcYSO/5zLYNimEP7H237tFApX/qk80nwvHh2ATTBTgu0IcWKhHb5uVow==", + "requires": { + "util.promisify": "^1.0.0" + } + }, "@types/chai": { "version": "4.1.4", "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.1.4.tgz", diff --git a/package.json b/package.json index 6a9185d..337df07 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ }, "dependencies": { "@pushrocks/smartcli": "^3.0.2", + "@pushrocks/smartpromise": "^2.0.2", "@types/lodash": "^4.14.110", "@types/shelljs": "^0.8.0", "@types/through2": "^2.0.33", @@ -42,7 +43,6 @@ "smartdelay": "^1.0.4", "smartfile": "^4.2.20", "smartparam": "^1.0.2", - "smartq": "^1.1.6", "smartshell": "^1.0.19", "smartsocket": "^1.1.19", "smartssh": "^1.2.2", diff --git a/ts/npmci.bash.ts b/ts/npmci.bash.ts index a2f031b..94bde27 100644 --- a/ts/npmci.bash.ts +++ b/ts/npmci.bash.ts @@ -1,12 +1,12 @@ import * as plugins from './npmci.plugins'; import * as paths from './npmci.paths'; -import * as smartq from 'smartq'; +import * as smartpromise from '@pushrocks/smartpromise'; /** * wether nvm is available or not */ -export let nvmAvailable = smartq.defer(); +export let nvmAvailable = smartpromise.defer(); /** * the smartshell instance for npmci */ diff --git a/ts/npmci.plugins.ts b/ts/npmci.plugins.ts index dc40db2..4b6eafa 100644 --- a/ts/npmci.plugins.ts +++ b/ts/npmci.plugins.ts @@ -10,7 +10,7 @@ export import smartdelay = require('smartdelay'); export import smartfile = require('smartfile'); export import shelljs = require('shelljs'); export import smartparam = require('smartparam'); -export import smartq = require('smartq'); +export import smartpromise = require('@pushrocks/smartpromise'); export import smartshell = require('smartshell'); export import smartsocket = require('smartsocket'); export import smartsystem = require('smartsystem');