Commit Graph

20 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 7740f06df6 0.3.1 2018-08-09 12:13:50 +01:00
Alex Beregszaszi b5c6ad4e83 Fix blatant typo 2018-08-09 12:13:40 +01:00
Alex Beregszaszi f2af486a28 0.3.0 2018-08-09 12:09:41 +01:00
Alex Beregszaszi 9c5fd6f9cf
Merge pull request #3 from axic/better-api
Better API
2018-08-09 12:09:12 +01:00
Alex Beregszaszi 9a428a241c Better API
Allow changing gateway and transport protocol
2018-08-09 12:08:24 +01:00
Alex Beregszaszi cc57e156a7
Merge pull request #2 from axic/update-dependencies
Update dependencies
2018-08-09 12:01:44 +01:00
Alex Beregszaszi 7b664f402d Update dependencies 2018-08-09 12:00:42 +01:00
Alex Beregszaszi d5867730fc
Merge pull request #1 from yann300/patch-1
Use https and bzz-raw
2018-08-09 12:00:30 +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 052e456946 0.2.0 2017-02-23 00:57:43 +00:00
Alex Beregszaszi 52c248ed99 Change get to require a URL and not a hash 2017-02-23 00:56:26 +00:00
Alex Beregszaszi 74e48a405e Update API in README 2017-02-23 00:56:06 +00: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 b707c9ae53 Include .gitignore 2016-12-04 23:11:09 +00:00
Alex Beregszaszi d4f28e497e 0.1.0 2016-12-04 22:49:02 +00:00
Alex Beregszaszi 20b9c04d08 Add calculate option 2016-12-04 22:47:25 +00:00
Alex Beregszaszi 8ba9bcf35d Initial version 2016-12-04 22:47:15 +00:00