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

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ipfs-inactive/js-ipfs-http-client
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1ed6a3496d9dcc2ced1fce0c19bbeac9e1decd2c
Choose a base ref
...
head repository: ipfs-inactive/js-ipfs-http-client
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ead35992e9d5c60f85d74f0d80aad1b0e994ea5c
Choose a head ref
Loading
Showing with 5,266 additions and 2,511 deletions.
  1. +14 −5 .aegir.js
  2. +2 −0 .travis.yml
  3. +732 −0 CHANGELOG.md
  4. +8 −9 CONTRIBUTING.md
  5. +236 −168 README.md
  6. +29 −0 appveyor.yml
  7. +2 −0 ci/Jenkinsfile
  8. +2 −1 circle.yml
  9. +2 −3 examples/bundle-browserify/index.js
  10. +3 −4 examples/bundle-browserify/package.json
  11. +2 −2 examples/bundle-webpack/package.json
  12. +1 −1 examples/name-api/package.json
  13. +1 −1 examples/sub-module/package.json
  14. +2 −2 examples/upload-file-via-browser/package.json
  15. +38 −10 examples/upload-file-via-browser/src/App.js
  16. +2 −2 examples/upload-file-via-browser/webpack.config.js
  17. +93 −51 package.json
  18. +17 −2 src/bitswap/stat.js
  19. +10 −2 src/bitswap/unwant.js
  20. +21 −2 src/bitswap/wantlist.js
  21. +7 −0 src/block/get.js
  22. +54 −16 src/block/put.js
  23. +12 −4 src/config/get.js
  24. +3 −5 src/config/replace.js
  25. +1 −3 src/config/set.js
  26. +59 −0 src/dag/get.js
  27. +12 −0 src/dag/index.js
  28. +83 −0 src/dag/put.js
  29. +8 −0 src/dht/provide.js
  30. +25 −0 src/dns.js
  31. +13 −0 src/files/add-pull-stream.js
  32. +12 −0 src/files/add-readable-stream.js
  33. +44 −33 src/files/add.js
  34. +35 −0 src/files/cat-pull-stream.js
  35. +35 −0 src/files/cat-readable-stream.js
  36. +15 −5 src/files/cat.js
  37. +10 −7 src/files/cp.js
  38. +0 −35 src/files/create-add-stream.js
  39. +17 −0 src/files/flush.js
  40. +44 −0 src/files/get-pull-stream.js
  41. +34 −0 src/files/get-readable-stream.js
  42. +20 −8 src/files/get.js
  43. +13 −3 src/files/index.js
  44. +22 −2 src/files/ls.js
  45. +1 −1 src/files/mkdir.js
  46. +10 −8 src/files/mv.js
  47. +26 −0 src/files/read-pull-stream.js
  48. +26 −0 src/files/read-readable-stream.js
  49. +4 −2 src/files/read.js
  50. +1 −1 src/files/rm.js
  51. +20 −2 src/files/stat.js
  52. +25 −9 src/files/write.js
  53. +4 −4 src/index.js
  54. +16 −0 src/key/export.js
  55. +10 −2 src/key/gen.js
  56. +23 −0 src/key/import.js
  57. +5 −1 src/key/index.js
  58. +12 −2 src/key/list.js
  59. +21 −0 src/key/rename.js
  60. +19 −0 src/key/rm.js
  61. +2 −1 src/log/tail.js
  62. +64 −0 src/ls-pull-stream.js
  63. +62 −0 src/ls-readable-stream.js
  64. +43 −1 src/ls.js
  65. +2 −1 src/name/index.js
  66. +10 −2 src/name/publish.js
  67. +24 −0 src/name/pubsub/cancel.js
  68. +7 −0 src/name/pubsub/index.js
  69. +23 −0 src/name/pubsub/state.js
  70. +21 −0 src/name/pubsub/subs.js
  71. +7 −2 src/name/resolve.js
  72. +8 −7 src/object/appendData.js
  73. +6 −1 src/object/get.js
  74. +15 −8 src/object/put.js
  75. +7 −7 src/object/setData.js
  76. +1 −1 src/pin/add.js
  77. +12 −12 src/pin/ls.js
  78. +1 −1 src/pin/rm.js
  79. +34 −0 src/ping-pull-stream.js
  80. +30 −0 src/ping-readable-stream.js
  81. +39 −18 src/ping.js
  82. +56 −13 src/pubsub.js
  83. +2 −1 src/repo/index.js
  84. +14 −2 src/repo/stat.js
  85. +21 −0 src/repo/version.js
  86. +22 −0 src/resolve.js
  87. +32 −0 src/stats/bitswap.js
  88. +30 −0 src/stats/bw-pull-stream.js
  89. +31 −0 src/stats/bw-readable-stream.js
  90. +12 −0 src/stats/bw-util.js
  91. +29 −0 src/stats/bw.js
  92. +15 −0 src/stats/index.js
  93. +28 −0 src/stats/repo.js
  94. +12 −0 src/stop.js
  95. +19 −19 src/swarm/peers.js
  96. +18 −0 src/types.js
  97. +9 −6 src/util/fs-add.js
  98. +8 −0 src/util/get-endpoint-config.js
  99. +25 −15 src/util/url-add.js
  100. +3 −0 src/utils/clean-cid.js
  101. +9 −22 src/utils/{converter.js → file-result-stream-converter.js}
  102. +25 −0 src/utils/find-sources.js
  103. +0 −141 src/utils/get-files-stream.js
  104. +31 −9 src/utils/load-commands.js
  105. +3 −3 src/utils/module-config.js
  106. +128 −0 src/utils/multipart.js
  107. +23 −0 src/utils/ping-message-converter.js
  108. +27 −0 src/utils/ping-message-stream.js
  109. +106 −0 src/utils/prepare-file.js
  110. +9 −8 src/utils/pubsub-message-stream.js
  111. +1 −1 src/utils/pubsub-message-utils.js
  112. +4 −4 src/utils/request.js
  113. +156 −0 src/utils/send-files-stream.js
  114. +18 −0 src/utils/send-one-file-multiple-results.js
  115. +15 −0 src/utils/send-one-file.js
  116. +29 −33 src/utils/{request-api.js → send-request.js}
  117. +0 −40 test/add.spec.js
  118. +0 −90 test/bitswap.spec.js
  119. +0 −201 test/bootstrap.spec.js
  120. +10 −7 test/commands.spec.js
  121. +21 −7 test/constructor.spec.js
  122. +61 −0 test/custom-headers.spec.js
  123. +87 −0 test/dag.spec.js
  124. +15 −6 test/diag.spec.js
  125. +362 −362 test/files.spec.js
  126. +1 −0 test/fixtures/.gitattributes
  127. +20 −0 test/fixtures/ssl/cert.pem
  128. +27 −0 test/fixtures/ssl/privkey.pem
  129. +85 −183 test/get.spec.js
  130. +272 −0 test/interface.spec.js
  131. +0 −20 test/interface/block.spec.js
  132. +0 −20 test/interface/config.spec.js
  133. +0 −19 test/interface/dht.spec.js
  134. +0 −21 test/interface/files.spec.js
  135. +0 −20 test/interface/generic.spec.js
  136. +0 −20 test/interface/object.spec.js
  137. +0 −23 test/interface/pubsub.spec.js
  138. +0 −20 test/interface/swarm.spec.js
  139. +0 −59 test/ipfs-factory/client.js
  140. +0 −90 test/ipfs-factory/daemon-spawner.js
  141. +0 −34 test/ipfs-factory/server-routes.js
  142. +0 −28 test/ipfs-factory/server.js
  143. +0 −22 test/ipfs-factory/tasks.js
  144. +13 −10 test/key.spec.js
  145. +32 −64 test/log.spec.js
  146. +0 −91 test/ls.spec.js
  147. +0 −7 test/mount.spec.js
  148. +61 −71 test/name.spec.js
  149. +0 −20 test/pin.spec.js
  150. +155 −41 test/ping.spec.js
  151. +24 −48 test/pubsub-in-browser.spec.js
  152. +25 −9 test/refs.spec.js
  153. +27 −33 test/repo.spec.js
  154. +9 −6 test/request-api.spec.js
  155. +73 −0 test/stats.spec.js
  156. +18 −1 test/sub-modules.spec.js
  157. +51 −0 test/types.spec.js
  158. +0 −8 test/update.spec.js
  159. +341 −53 test/util.spec.js
  160. +16 −0 test/utils/expect-timeout.js
  161. +5 −0 test/utils/factory.js
  162. +49 −0 test/utils/interface-common-factory.js
19 changes: 14 additions & 5 deletions .aegir.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
'use strict'

const factory = require('./test/ipfs-factory/tasks')
const createServer = require('ipfsd-ctl').createServer

const server = createServer()

module.exports = {
webpack: {
resolve: {
mainFields: ['browser', 'main']
}
},
karma: {
files: [{
pattern: 'node_modules/interface-ipfs-core/test/fixtures/**/*',
pattern: 'node_modules/interface-ipfs-core/js/test/fixtures/**/*',
watched: false,
served: true,
included: false
}]
}],
browserNoActivityTimeout: 210 * 1000,
singleRun: true
},
hooks: {
pre: factory.start,
post: factory.stop
pre: server.start.bind(server),
post: server.stop.bind(server)
}
}
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Warning: This file is automatically synced from https://github.com/ipfs/ci-sync so if you want to change it, please change it there and ask someone to sync all repositories.
sudo: false
language: node_js

@@ -13,6 +14,7 @@ matrix:
script:
- npm run lint
- npm run test
- npm run coverage

before_script:
- export DISPLAY=:99.0
Loading