Comparing version 1.0.2 to 1.0.3
@@ -16,18 +16,7 @@ /* ================================================================ | ||
var os = require('os'); | ||
var childProcess = require('child_process'); | ||
const xutil = require('xutil'); | ||
const childProcess = require('child_process'); | ||
var _ = {}; | ||
var _ = xutil.merge({}, xutil); | ||
// get system platform | ||
_.platform = (function() { | ||
var platform = os.platform(); | ||
return { | ||
isWindows: platform.indexOf('win') === 0 || platform === 'cygwin', | ||
isLinux: platform === 'linux' || platform === 'freebsd', | ||
isOSX: platform === 'darwin' | ||
}; | ||
})(); | ||
_.exec = function(cmd, opts) { | ||
@@ -34,0 +23,0 @@ return new Promise((resolve, reject) => { |
{ | ||
"name": "java-home", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "java-home", | ||
@@ -17,9 +17,11 @@ "keywords": [ | ||
"dependencies": { | ||
"xutil": "^1.0.2" | ||
}, | ||
"devDependencies": { | ||
"co-mocha": "^1.1.2", | ||
"istanbul": "*", | ||
"jshint": "*", | ||
"mocha": "*", | ||
"should": "*", | ||
"jshint": "*", | ||
"istanbul": "*", | ||
"pre-commit": "1.1.1" | ||
"pre-commit": "1.1.1", | ||
"should": "*" | ||
}, | ||
@@ -26,0 +28,0 @@ "scripts": { |
@@ -22,3 +22,3 @@ java-home | ||
```bash | ||
```shell | ||
$ npm i java-home --save | ||
@@ -29,3 +29,3 @@ ``` | ||
```js | ||
```javascript | ||
var co = require('co'); | ||
@@ -32,0 +32,0 @@ var JAVA_HOME = require('../lib/java-home'); |
@@ -16,3 +16,3 @@ /* ================================================================ | ||
var javaHome = require('../'); | ||
var javaHome = require('..'); | ||
@@ -19,0 +19,0 @@ describe('test', function(){ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8260
1
6
158
+ Addedxutil@^1.0.2
+ Addedaddress@1.2.2(transitive)
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.13.2.1(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedchalk@1.1.32.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedcopy-paste@1.5.3(transitive)
+ Addeddebug@4.4.0(transitive)
+ Addeddetect-port@1.6.1(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedinterpret@1.4.0(transitive)
+ Addedipv4@1.0.4(transitive)
+ Addedis-core-module@2.16.1(transitive)
+ Addedis-wsl@1.1.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedmoment@2.24.0(transitive)
+ Addedms@2.1.3(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedopn@5.5.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedrechoir@0.6.2(transitive)
+ Addedresolve@1.22.10(transitive)
+ Addedrimraf@2.7.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedshelljs@0.8.5(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.05.5.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addeduuid@3.4.0(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedxutil@1.0.12(transitive)