Comparing version 2.2.1 to 2.3.0
{ | ||
"name": "ipfs-api", | ||
"version": "2.2.1", | ||
"version": "2.3.0", | ||
"description": "A client library for the IPFS API", | ||
@@ -22,3 +22,3 @@ "main": "src/index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/ipfs/node-ipfs-api.git" | ||
"url": "https://github.com/ipfs/node-ipfs-api" | ||
}, | ||
@@ -34,5 +34,5 @@ "devDependencies": { | ||
"scripts": { | ||
"test": "mocha", | ||
"lint": "standard --format", | ||
"build": "browserify -t brfs -s ipfsAPI -e ./src/index.js | ./node_modules/.bin/uglifyjs -m > ipfsapi.min.js" | ||
"test": "./node_modules/.bin/mocha", | ||
"lint": "./node_modules/.bin/standard --format", | ||
"build": "./node_modules/.bin/browserify -t brfs -s ipfsAPI -e ./src/index.js | ./node_modules/.bin/uglifyjs -m > ipfsapi.min.js" | ||
}, | ||
@@ -54,7 +54,3 @@ "pre-commit": [ | ||
}, | ||
"homepage": "https://github.com/ipfs/node-ipfs-api", | ||
"directories": { | ||
"example": "examples", | ||
"test": "test" | ||
} | ||
"homepage": "https://github.com/ipfs/node-ipfs-api" | ||
} |
@@ -23,2 +23,10 @@ var multiaddr = require('multiaddr') | ||
// autoconfigure in browser | ||
if (!config.host && | ||
window && window.location) { | ||
var split = window.location.host.split(':') | ||
config.host = split[0] | ||
config.port = split[1] | ||
} | ||
// -- Internal | ||
@@ -189,2 +197,3 @@ | ||
self.name = { | ||
publish: argCommand('name/publish'), | ||
resolve: argCommand('name/resolve') | ||
@@ -191,0 +200,0 @@ } |
@@ -291,2 +291,3 @@ var ipfsd = require('ipfsd-ctl') | ||
it('test for error after daemon stops', function (done) { | ||
this.timeout(6000) | ||
var nodeStopped | ||
@@ -293,0 +294,0 @@ ipfsNode.stopDaemon(function () { |
Sorry, the diff of this file is too big to display
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
1883
324648