macos-version
Advanced tools
Comparing version 2.1.1 to 3.0.0
10
index.js
'use strict'; | ||
var execFile = require('child_process').execFile; | ||
var pify = require('pify'); | ||
var Promise = require('pinkie-promise'); | ||
const execa = require('execa'); | ||
module.exports = function () { | ||
return pify(execFile, Promise)('sw_vers', ['-productVersion']).then(function (stdout) { | ||
return stdout.trim(); | ||
}); | ||
}; | ||
module.exports = () => execa.stdout('sw_vers', ['-productVersion']); |
{ | ||
"name": "macos-version", | ||
"version": "2.1.1", | ||
"version": "3.0.0", | ||
"description": "Get the macOS version of the current system", | ||
@@ -13,3 +13,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">=0.10.0" | ||
"node": ">=4" | ||
}, | ||
@@ -32,4 +32,3 @@ "scripts": { | ||
"dependencies": { | ||
"pify": "^2.2.0", | ||
"pinkie-promise": "^2.0.0" | ||
"execa": "^0.4.0" | ||
}, | ||
@@ -39,3 +38,6 @@ "devDependencies": { | ||
"xo": "*" | ||
}, | ||
"xo": { | ||
"esnext": true | ||
} | ||
} |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
1
1
2627
3
+ Addedexeca@^0.4.0
+ Addedcross-spawn-async@2.2.5(transitive)
+ Addedexeca@0.4.0(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addednpm-run-path@1.0.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedpath-key@1.0.0(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addedstrip-eof@1.0.0(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedyallist@2.1.2(transitive)
- Removedpify@^2.2.0
- Removedpinkie-promise@^2.0.0
- Removedpify@2.3.0(transitive)
- Removedpinkie@2.0.4(transitive)
- Removedpinkie-promise@2.0.1(transitive)