From b2460866822491e13e8195f710d8aeaf62336630 Mon Sep 17 00:00:00 2001 From: Alan Shaw <alan.shaw@protocol.ai> Date: Mon, 10 Dec 2018 20:55:21 +0000 Subject: [PATCH] fix: addFromURL case License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai> --- CHANGELOG.md | 5 +---- SPEC/FILES.md | 4 ++-- js/src/files-regular/add-from-url.js | 2 +- js/src/files-regular/index.js | 2 +- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f8216f9..e650c3fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,7 +43,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)) @@ -1063,6 +1063,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)) - - - diff --git a/SPEC/FILES.md b/SPEC/FILES.md index 7b45780f..e44d8d65 100644 --- a/SPEC/FILES.md +++ b/SPEC/FILES.md @@ -7,7 +7,7 @@ - [addReadableStream](#addreadablestream) - [addPullStream](#addpullstream) - [addFromFs](#addfromfs) - - [addFromUrl](#addfromurl) + - [addFromURL](#addfromurl) - [addFromStream](#addfromstream) - [cat](#cat) - [catReadableStream](#catreadablestream) @@ -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 diff --git a/js/src/files-regular/add-from-url.js b/js/src/files-regular/add-from-url.js index dcee3bb2..47b5b62f 100644 --- a/js/src/files-regular/add-from-url.js +++ b/js/src/files-regular/add-from-url.js @@ -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 diff --git a/js/src/files-regular/index.js b/js/src/files-regular/index.js index acac2f82..656fe371 100644 --- a/js/src/files-regular/index.js +++ b/js/src/files-regular/index.js @@ -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'),