Commit Graph

16 Commits

Author SHA1 Message Date
Feross Aboukhadijeh 9a1ddf367d add missing requires 2016-05-30 01:42:05 -07:00
Feross Aboukhadijeh 9e9c187bf3 Use safe-buffer
Use the new Buffer APIs from Node v6 for added security. For example,
`Buffer.from()` will throw if passed a number, unlike `Buffer()` which
allocated UNINITIALIZED memory in that case.

Use the `safe-buffer` package for compatibility with previous versions
of Node.js, including v4.x, v0.12, and v0.10.

https://github.com/feross/safe-buffer
2016-05-30 00:56:47 -07:00
Feross Aboukhadijeh 6977f98a40 standard 2016-04-24 01:35:51 -07:00
Feross Aboukhadijeh c91d132b6b use webtorrent-fixtures 2016-03-16 12:33:57 -07:00
Feross Aboukhadijeh 9bf62ed135 standard 6 prep 2016-02-05 14:32:52 -08:00
Feross Aboukhadijeh 9e819ba3fe standard 2015-12-02 18:24:10 -08:00
Feross Aboukhadijeh b1e28a04a5 bncode -> bencode 2014-06-11 17:56:20 -07:00
Feross Aboukhadijeh e894a977f9 add setMetadata test 2014-06-03 21:27:33 -07:00
Feross Aboukhadijeh c998828d72 improve invalid metadata test 2014-05-11 14:32:49 -07:00
fisch0920 1eef75b61e added test case confirming support of multi-block metadata 2014-05-11 01:53:46 -04:00
fisch0920 bc3d1ea668 fixed buggy metadata vs metadata.info 2014-05-09 07:11:14 -04:00
Feross Aboukhadijeh 9a30eb2ca2 get rid of wire.ext() 2014-03-26 02:03:13 -07:00
Feross Aboukhadijeh 0dda562ba9 add metadata verification 2014-03-22 22:15:57 -07:00
Feross Aboukhadijeh 3ab3dd5efd emit more warnings 2014-03-22 21:10:23 -07:00
Feross Aboukhadijeh 289b7c3e06 dont expose gotMetadata 2014-03-22 21:09:55 -07:00
Feross Aboukhadijeh bda3920643 working implementation with tests 2014-03-22 20:34:50 -07:00