mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 23:37:18 +00:00
upgrade: is-elevated
to v2.0.1 (#1184)
This version contains a fix for correctly checking whether a process is running with administrator right or not, without depending on the "Server" service. Fixes: https://github.com/resin-io/etcher/issues/1180 See: https://github.com/sindresorhus/is-admin/pull/4 Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
parent
254da05964
commit
9f3798978d
@ -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');
|
||||
|
@ -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'));
|
||||
|
57
npm-shrinkwrap.json
generated
57
npm-shrinkwrap.json
generated
@ -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",
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user