Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
fix: addFromURL case (#415)
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
  • Loading branch information
alanshaw committed Dec 11, 2018
1 parent 80843ce commit f54422d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

### Features

* move regular files api to top level, add addFromFs and addFromUrl ([#378](https://github.com/ipfs/interface-ipfs-core/issues/378)) ([3dc7278](https://github.com/ipfs/interface-ipfs-core/commit/3dc7278))
* move regular files api to top level, add addFromFs and addFromURL ([#378](https://github.com/ipfs/interface-ipfs-core/issues/378)) ([3dc7278](https://github.com/ipfs/interface-ipfs-core/commit/3dc7278))



Expand Down Expand Up @@ -1073,6 +1073,3 @@ Signed-off-by: Alan Shaw <alan@tableflip.io>
### Bug Fixes

* remove superfluous console.logs ([442ea74](https://github.com/ipfs/interface-ipfs-core/commit/442ea74))



4 changes: 2 additions & 2 deletions SPEC/FILES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- [addReadableStream](#addreadablestream)
- [addPullStream](#addpullstream)
- [addFromFs](#addfromfs)
- [addFromUrl](#addfromurl)
- [addFromURL](#addfromurl)
- [addFromStream](#addfromstream)
- [cat](#cat)
- [catReadableStream](#catreadablestream)
Expand Down Expand Up @@ -259,7 +259,7 @@ ipfs.addFromFs('path/to/a/folder', { recursive: true , ignore: ['subfolder/to/ig
]
```

#### `addFromUrl`
#### `addFromURL`

> Add a file from a URL to IPFS
Expand Down
2 changes: 1 addition & 1 deletion js/src/files-regular/add-from-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = (createCommon, options) => {
const it = getIt(options)
const common = createCommon()

describe('.addFromUrl', function () {
describe('.addFromURL', function () {
this.timeout(40 * 1000)

let ipfs
Expand Down
2 changes: 1 addition & 1 deletion js/src/files-regular/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const tests = {
addReadableStream: require('./add-readable-stream'),
addPullStream: require('./add-pull-stream'),
addFromStream: require('./add-from-stream'),
addFromUrl: require('./add-from-url'),
addFromURL: require('./add-from-url'),
addFromFs: require('./add-from-fs'),
cat: require('./cat'),
catReadableStream: require('./cat-readable-stream'),
Expand Down

0 comments on commit f54422d

Please sign in to comment.