diff --git a/lib/child-writer/writer-proxy.js b/lib/child-writer/writer-proxy.js index b30da743..7ab3e4a0 100644 --- a/lib/child-writer/writer-proxy.js +++ b/lib/child-writer/writer-proxy.js @@ -19,7 +19,7 @@ const Bluebird = require('bluebird'); const childProcess = require('child_process'); const commandJoin = require('command-join'); -const isElevated = Bluebird.promisify(require('is-elevated')); +const isElevated = require('is-elevated'); const ipc = require('node-ipc'); const _ = require('lodash'); const os = require('os'); diff --git a/lib/cli/etcher.js b/lib/cli/etcher.js index faa9c08e..a860a6e0 100644 --- a/lib/cli/etcher.js +++ b/lib/cli/etcher.js @@ -18,7 +18,7 @@ const _ = require('lodash'); const Bluebird = require('bluebird'); -const isElevated = Bluebird.promisify(require('is-elevated')); +const isElevated = require('is-elevated'); const visuals = require('resin-cli-visuals'); const form = require('resin-cli-form'); const drivelist = Bluebird.promisifyAll(require('drivelist')); diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index e5d4beb3..ac1e9360 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -2770,6 +2770,11 @@ "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", "dev": true }, + "get-stream": { + "version": "3.0.0", + "from": "get-stream@>=3.0.0 <4.0.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz" + }, "get-uri": { "version": "0.1.4", "from": "get-uri@>=0.1.0 <0.2.0", @@ -3367,9 +3372,31 @@ "dev": true }, "is-admin": { - "version": "1.0.2", - "from": "is-admin@>=1.0.2 <2.0.0", - "resolved": "https://registry.npmjs.org/is-admin/-/is-admin-1.0.2.tgz" + "version": "2.1.0", + "from": "is-admin@>=2.1.0 <3.0.0", + "resolved": "https://registry.npmjs.org/is-admin/-/is-admin-2.1.0.tgz", + "dependencies": { + "cross-spawn": { + "version": "5.1.0", + "from": "cross-spawn@>=5.0.1 <6.0.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz" + }, + "execa": { + "version": "0.6.2", + "from": "execa@>=0.6.1 <0.7.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-0.6.2.tgz" + }, + "npm-run-path": { + "version": "2.0.2", + "from": "npm-run-path@>=2.0.0 <3.0.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz" + }, + "path-key": { + "version": "2.0.1", + "from": "path-key@>=2.0.0 <3.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz" + } + } }, "is-arrayish": { "version": "0.2.1", @@ -3419,9 +3446,9 @@ "dev": true }, "is-elevated": { - "version": "1.0.0", - "from": "is-elevated@>=1.0.0 <2.0.0", - "resolved": "https://registry.npmjs.org/is-elevated/-/is-elevated-1.0.0.tgz" + "version": "2.0.1", + "from": "is-elevated@2.0.1", + "resolved": "https://registry.npmjs.org/is-elevated/-/is-elevated-2.0.1.tgz" }, "is-equal-shallow": { "version": "0.1.3", @@ -5240,6 +5267,11 @@ "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.4.tgz", "dev": true }, + "p-finally": { + "version": "1.0.0", + "from": "p-finally@>=1.0.0 <2.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz" + }, "pac-proxy-agent": { "version": "0.2.0", "from": "pac-proxy-agent@>=0.0.0 <1.0.0", @@ -6108,6 +6140,16 @@ "resolved": "https://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz", "dev": true }, + "shebang-command": { + "version": "1.2.0", + "from": "shebang-command@>=1.2.0 <2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz" + }, + "shebang-regex": { + "version": "1.0.0", + "from": "shebang-regex@>=1.0.0 <2.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz" + }, "shell-quote": { "version": "1.6.1", "from": "shell-quote@>=1.6.1 <2.0.0", @@ -6129,8 +6171,7 @@ "signal-exit": { "version": "3.0.2", "from": "signal-exit@>=3.0.0 <4.0.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "dev": true + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz" }, "signcode-tf": { "version": "0.7.5", diff --git a/package.json b/package.json index 352ef9e8..bdee468d 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "flexboxgrid": "^6.3.0", "gzip-uncompressed-size": "^1.0.0", "immutable": "^3.8.1", - "is-elevated": "^1.0.0", + "is-elevated": "^2.0.1", "isstream": "^0.1.2", "lodash": "^4.5.1", "lodash-deep": "^2.0.0",