Commit Graph

8 Commits

Author SHA1 Message Date
emizzle ced4d82c2d Refactor to class and add `putDirectory`
Refactored the module to export a class, which can now be invoked using `new SwarmGW()`

Added a `putDirectory` function that walks a directory, finds all files recursively, and uploads them to swarm expecting a manifest hash in return.
2018-08-16 20:16:39 +10:00
Alex Beregszaszi b5c6ad4e83 Fix blatant typo 2018-08-09 12:13:40 +01:00
Alex Beregszaszi 9a428a241c Better API
Allow changing gateway and transport protocol
2018-08-09 12:08:24 +01:00
yann300 e22632c1f4 Use https with swarm-gateways.net 2018-08-09 12:00:02 +01:00
yann300 8613824b5c Use bzz-raw: instead of bzzr: 2018-08-09 11:54:08 +01:00
Alex Beregszaszi fd29963102 Proper error detection based on HTTP responses 2017-02-23 00:53:48 +00:00
Alex Beregszaszi 83dc72ec83 Support all three Swarm URIs 2017-02-23 00:53:29 +00:00
Alex Beregszaszi 8ba9bcf35d Initial version 2016-12-04 22:47:15 +00:00