Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit b86978a

Browse files
daviddiasdryajov
authored andcommitted
feat: add gateway to ipfs daemon
* feat: add HTTP Gateway to the js-ipfs daemon License: MIT Signed-off-by: Yahya <[email protected]> * apply remaining CR * chore: update deps * test: fix failing gateway tests with this one simple trick! (#1006) * fix failing tests with this one simple trick! * adding files to make tests self-contained * changes requested by VictorBjelkholm #968 * chore: fix circle CI chrome build (#1008) (#1009) Thanks to mkg20001
1 parent 025e428 commit b86978a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+738
-23
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const gulp = require('gulp')
44
const parallel = require('async/parallel')
55
const series = require('async/series')
66
const createTempRepo = require('./test/utils/create-repo-nodejs.js')
7-
const HTTPAPI = require('./src/http-api')
7+
const HTTPAPI = require('./src/http')
88
const leftPad = require('left-pad')
99

1010
let nodes = []

package.json

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"test:unit:node": "gulp test:node",
2828
"test:unit:node:core": "TEST=core npm run test:unit:node",
2929
"test:unit:node:http": "TEST=http npm run test:unit:node",
30+
"test:unit:node:gateway": "TEST=gateway npm run test:unit:node",
3031
"test:unit:node:cli": "TEST=cli npm run test:unit:node",
3132
"test:unit:browser": "gulp test:browser",
3233
"test:interop": "npm run test:interop:node",
@@ -92,31 +93,33 @@
9293
"async": "^2.5.0",
9394
"bl": "^1.2.1",
9495
"boom": "^5.2.0",
95-
"cids": "~0.5.1",
9696
"debug": "^3.0.1",
97+
"cids": "^0.5.1",
98+
"file-type": "^6.1.0",
99+
"filesize": "^3.5.10",
97100
"fsm-event": "^2.1.0",
98101
"glob": "^7.1.2",
99102
"hapi": "^16.5.2",
100103
"hapi-set-header": "^1.0.2",
101104
"hoek": "^4.2.0",
102-
"ipfs-api": "^14.3.3",
105+
"ipfs-api": "^14.3.4",
103106
"ipfs-bitswap": "~0.17.2",
104107
"ipfs-block": "~0.6.0",
105108
"ipfs-block-service": "~0.12.0",
106109
"ipfs-multipart": "~0.1.0",
107110
"ipfs-repo": "~0.17.0",
108111
"ipfs-unixfs": "~0.1.13",
109-
"ipfs-unixfs-engine": "~0.22.3",
112+
"ipfs-unixfs-engine": "~0.22.4",
110113
"ipld-resolver": "~0.13.2",
111114
"is-ipfs": "^0.3.0",
112115
"is-stream": "^1.1.0",
113116
"joi": "^10.6.0",
114-
"libp2p": "~0.12.3",
115-
"libp2p-floodsub": "~0.11.0",
116-
"libp2p-kad-dht": "~0.5.0",
117-
"libp2p-mdns": "~0.9.0",
117+
"libp2p": "~0.12.4",
118+
"libp2p-floodsub": "~0.11.1",
119+
"libp2p-kad-dht": "~0.5.1",
120+
"libp2p-mdns": "~0.9.1",
118121
"libp2p-multiplex": "~0.5.0",
119-
"libp2p-railing": "~0.7.0",
122+
"libp2p-railing": "~0.7.1",
120123
"libp2p-secio": "~0.8.1",
121124
"libp2p-tcp": "~0.11.0",
122125
"libp2p-webrtc-star": "~0.13.1",
@@ -126,13 +129,14 @@
126129
"lodash.sortby": "^4.7.0",
127130
"lodash.values": "^4.3.0",
128131
"mafmt": "^3.0.1",
132+
"mime-types": "^2.1.17",
129133
"mkdirp": "~0.5.1",
130134
"multiaddr": "^3.0.1",
131135
"multihashes": "~0.4.9",
132136
"once": "^1.4.0",
133137
"path-exists": "^3.0.0",
134-
"peer-book": "~0.5.0",
135-
"peer-id": "~0.10.0",
138+
"peer-book": "~0.5.1",
139+
"peer-id": "~0.10.1",
136140
"peer-info": "~0.11.0",
137141
"promisify-es6": "^1.0.3",
138142
"pull-file": "^1.0.0",

src/cli/commands/daemon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
const HttpAPI = require('../../http-api')
3+
const HttpAPI = require('../../http')
44
const utils = require('../utils')
55
const print = utils.print
66

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)