Commit d1abd3833a457e654255e88fd9a34174a77dbde1
use os-homedir instead of osenv
Dominic Tarr committed on 8/4/2016, 5:13:14 AMParent: 7d702f862e80e8534e5162151b6fa09bb09b3fe8
Files changed
inject.js | changed |
package.json | changed |
inject.js | ||
---|---|---|
@@ -1,6 +1,7 @@ | ||
1 | 1 | var path = require('path') |
2 | -var home = require('osenv').home | |
2 | +var home = require('os-homedir') | |
3 | + | |
3 | 4 | var nonPrivate = require('non-private-ip') |
4 | 5 | var merge = require('deep-extend') |
5 | 6 | |
6 | 7 | var RC = require('rc') |
@@ -9,9 +10,8 @@ | ||
9 | 10 | var MIN = 60*SEC |
10 | 11 | |
11 | 12 | module.exports = function (name, override) { |
12 | 13 | name = name || 'ssb' |
13 | - | |
14 | 14 | var HOME = home() || 'browser' //most probably browser |
15 | 15 | return RC(name || 'ssb', merge({ |
16 | 16 | //just use an ipv4 address by default. |
17 | 17 | //there have been some reports of seemingly non-private |
@@ -45,4 +45,8 @@ | ||
45 | 45 | party: true //disable quotas |
46 | 46 | }, override || {})) |
47 | 47 | } |
48 | 48 | |
49 | + | |
50 | + | |
51 | + | |
52 | + |
package.json | ||
---|---|---|
@@ -9,11 +9,12 @@ | ||
9 | 9 | }, |
10 | 10 | "dependencies": { |
11 | 11 | "deep-extend": "^0.4.0", |
12 | 12 | "non-private-ip": "^1.2.1", |
13 | - "osenv": "~0.1.0", | |
13 | + "os-homedir": "^1.0.1", | |
14 | 14 | "rc": "^1.1.6" |
15 | 15 | }, |
16 | 16 | "devDependencies": {}, |
17 | 17 | "author": "Dominic Tarr <dominic.tarr@gmail.com> (http://dominictarr.com)", |
18 | 18 | "license": "MIT" |
19 | 19 | } |
20 | + |
Built with git-ssb-web