Skip to content

Commit ba3389e

Browse files
authored
docs: update http client examples (#3172)
Moves http client examples to the examples folder and adds tests to prevent regressions.
1 parent c4a787b commit ba3389e

Some content is hidden

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

58 files changed

+3
-1115
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,11 @@ const list = await bitswap.wantlist()
290290

291291
Same as in Node.js, you just have to [browserify](http://browserify.org) the code before serving it. See the browserify repo for how to do that.
292292

293-
See the example in the [examples folder](/examples/browser-browserify) to get a boilerplate.
293+
See the example in the [examples folder](/examples/http-client-browser-browserify) to get a boilerplate.
294294

295295
**through webpack**
296296

297-
See the example in the [examples folder](examples/bundle-webpack) to get an idea on how to use `js-ipfs-http-client` with webpack.
297+
See the example in the [examples folder](/examples/http-client-bundle-webpack) to get an idea on how to use `js-ipfs-http-client` with webpack.
298298

299299
**from CDN**
300300

examples/browser-pubsub/README.md

Lines changed: 0 additions & 94 deletions
This file was deleted.

examples/browser-pubsub/index.html

Lines changed: 0 additions & 42 deletions
This file was deleted.

examples/browser-pubsub/index.js

Lines changed: 0 additions & 135 deletions
This file was deleted.

examples/browser-pubsub/package.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

examples/browser-pubsub/util.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

examples/bundle-webpack/.eslintrc

Lines changed: 0 additions & 11 deletions
This file was deleted.

examples/bundle-webpack/1.png

-109 KB
Binary file not shown.

examples/bundle-webpack/README.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)