Comparing version 2.3.0 to 2.3.1
{ | ||
"name": "ipfs-api", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "A client library for the IPFS API", | ||
@@ -35,3 +35,3 @@ "main": "src/index.js", | ||
"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" | ||
"build": "./node_modules/.bin/browserify -t brfs -s ipfsAPI -e ./src/index.js | tee dist/ipfsapi.js | ./node_modules/.bin/uglifyjs -m > dist/ipfsapi.min.js" | ||
}, | ||
@@ -38,0 +38,0 @@ "pre-commit": [ |
@@ -37,2 +37,14 @@ IPFS API wrapper library for Node.js and the browser | ||
If you omit the host and port, the api will parse window.host, and use this information. I.e, this also works: | ||
``` | ||
var ipfs = window.ipfsAPI() | ||
``` | ||
This can be useful if you want to write apps that can be run from multiple different gateways. | ||
#### Gotchas | ||
When using the api from script tag for things that require buffers (ipfs.add, for example), you will have to use either the exposed ipfs.Buffer, that works just like a node buffer, or use this [browser buffer](https://github.com/feross/buffer) | ||
## CORS | ||
@@ -39,0 +51,0 @@ |
@@ -200,2 +200,4 @@ var multiaddr = require('multiaddr') | ||
self.Buffer = Buffer | ||
self.refs = argCommand('refs') | ||
@@ -202,0 +204,0 @@ self.refs.local = command('refs/local') |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
325203
1884
218
4