git ssb

1+

Dominic / ssb-config



Commit d1abd3833a457e654255e88fd9a34174a77dbde1

use os-homedir instead of osenv

Dominic Tarr committed on 8/4/2016, 5:13:14 AM
Parent: 7d702f862e80e8534e5162151b6fa09bb09b3fe8

Files changed

inject.jschanged
package.jsonchanged
inject.jsView
@@ -1,6 +1,7 @@
11 var path = require('path')
2-var home = require('osenv').home
2+var home = require('os-homedir')
3+
34 var nonPrivate = require('non-private-ip')
45 var merge = require('deep-extend')
56
67 var RC = require('rc')
@@ -9,9 +10,8 @@
910 var MIN = 60*SEC
1011
1112 module.exports = function (name, override) {
1213 name = name || 'ssb'
13-
1414 var HOME = home() || 'browser' //most probably browser
1515 return RC(name || 'ssb', merge({
1616 //just use an ipv4 address by default.
1717 //there have been some reports of seemingly non-private
@@ -45,4 +45,8 @@
4545 party: true //disable quotas
4646 }, override || {}))
4747 }
4848
49+
50+
51+
52+
package.jsonView
@@ -9,11 +9,12 @@
99 },
1010 "dependencies": {
1111 "deep-extend": "^0.4.0",
1212 "non-private-ip": "^1.2.1",
13- "osenv": "~0.1.0",
13+ "os-homedir": "^1.0.1",
1414 "rc": "^1.1.6"
1515 },
1616 "devDependencies": {},
1717 "author": "Dominic Tarr <dominic.tarr@gmail.com> (http://dominictarr.com)",
1818 "license": "MIT"
1919 }
20+

Built with git-ssb-web