Chris Dickinson
|
7fc8829334
|
6.0.0
|
4 years ago |
Chris Dickinson
|
323cb66c38
|
Revert "Revert "fix: ensure MAX_SAFE_INTEGER exists""
This reverts commit 79d2daa0cc .
|
4 years ago |
Chris Dickinson
|
4234244a96
|
Revert "Revert "add bounds checking to encode and decode""
This reverts commit 614645bb03 .
|
4 years ago |
Chris Dickinson
|
fbcfa76d76
|
5.0.2
|
4 years ago |
Chris Dickinson
|
614645bb03
|
Revert "add bounds checking to encode and decode"
This reverts commit fcebf3acdc .
|
4 years ago |
Chris Dickinson
|
79d2daa0cc
|
Revert "fix: ensure MAX_SAFE_INTEGER exists"
This reverts commit da118c9a22 .
|
4 years ago |
Chris Dickinson
|
1198bb8223
|
5.0.1
|
4 years ago |
Chris Dickinson
|
da118c9a22
|
fix: ensure MAX_SAFE_INTEGER exists
|
4 years ago |
Chris Dickinson
|
572ae582e7
|
Merge pull request #20 from ChainSafe/bounds-checking
add minimal bounds checking to encode and decode
|
4 years ago |
Cayman
|
fcebf3acdc
|
add bounds checking to encode and decode
|
4 years ago |
Chris Dickinson
|
30e24d424c
|
5.0.0
|
8 years ago |
Chris Dickinson
|
15598cb409
|
BREAKING: throw RangeError when decoding bad buf
|
8 years ago |
Chris Dickinson
|
f78634a6c3
|
Merge pull request #15 from mafintosh/patch-2
throw instead of returning undefined on error
|
8 years ago |
Mathias Buus
|
2dbd6efe61
|
throw instead of returning undefined
|
8 years ago |
Chris Dickinson
|
a260948535
|
4.0.1
|
9 years ago |
Chris Dickinson
|
f04024540c
|
Merge pull request #13 from justmoon/fix/bytesRead-to-bytes
Fix typo bytesRead -> bytes
|
9 years ago |
Stefan Thomas
|
204feb930d
|
update tests and maintain old behavior for backwards compatibility
|
9 years ago |
Stefan Thomas
|
8d15a90f10
|
fix typo bytesRead -> bytes
|
9 years ago |
Chris Dickinson
|
455eca54c6
|
4.0.0
|
10 years ago |
Mathias Buus
|
f072407cb6
|
support higher numbers
|
10 years ago |
Chris Dickinson
|
32abc1e765
|
3.0.1
|
11 years ago |
Chris Dickinson
|
f6eddb4be6
|
Merge pull request #11 from dominictarr/master
clarify varint.encode documentation
|
11 years ago |
Dominic Tarr
|
4ea6dfce7a
|
clarify varint.encode documentation
|
11 years ago |
Chris Dickinson
|
8840b12da6
|
3.0.0
|
11 years ago |
Chris Dickinson
|
f48d840c95
|
Merge pull request #10 from mafintosh/bytes
bytesRead, bytesWritten -> bytes
|
11 years ago |
Mathias Buus
|
11bf118d96
|
fix docs
|
11 years ago |
Chris Dickinson
|
8a1a81de3a
|
2.0.0
|
11 years ago |
Chris Dickinson
|
770ae8d530
|
Merge pull request #9 from dominictarr/incomplete
on incomplete buffers, return undefined, and set decode.bytesRead = 0
|
11 years ago |
Mathias Buus
|
d2f7af4ff9
|
fixed tests
|
11 years ago |
Mathias Buus
|
5759d8a705
|
bytesRead,bytesWritten -> bytes
|
11 years ago |
Dominic Tarr
|
490e48499d
|
do not read outside the bounds of the buffer
|
11 years ago |
Dominic Tarr
|
76ce046de9
|
make a quick benchmark script
|
11 years ago |
Dominic Tarr
|
9af95d37bc
|
correct usage notes
|
11 years ago |
Dominic Tarr
|
5a00978b1b
|
instead of throwing, return undefined in invalid (too short) buffers
|
11 years ago |
Dominic Tarr
|
6639d2d256
|
test invalid buffers, set bytesRead = 0, and return undefined
|
11 years ago |
Chris Dickinson
|
d1288330fc
|
1.2.0
|
11 years ago |
Chris Dickinson
|
c6a6a844c5
|
Merge pull request #7 from dominictarr/encoding-length
Encoding length
|
11 years ago |
Chris Dickinson
|
a9742853ae
|
Merge pull request #6 from dominictarr/master
support for numbers up to 9 QUADRILLION!
|
11 years ago |
Dominic Tarr
|
d51a128ab2
|
remove console.log
|
11 years ago |
Dominic Tarr
|
76bbd6ee4b
|
document encodingLength
|
11 years ago |
Dominic Tarr
|
bb93a5a51b
|
export encodingLength
|
11 years ago |
Dominic Tarr
|
03189c9ca9
|
test for encoding length
|
11 years ago |
Dominic Tarr
|
10da3a6d33
|
test the largest numbers
|
11 years ago |
Dominic Tarr
|
51da5f39f6
|
use bitwise check instead of >= when number is small
|
11 years ago |
Dominic Tarr
|
5855143da8
|
use divide when number is too large for bitwise operations
|
11 years ago |
Dominic Tarr
|
e55b25d840
|
add tests for large numbers - up to 2^51, max integer that a js number can represent
|
11 years ago |
Dominic Tarr
|
a8b188fbb2
|
update tape
|
11 years ago |
Chris Dickinson
|
566d0f030f
|
1.1.0
|
11 years ago |
Chris Dickinson
|
f0e5547f69
|
Merge pull request #4 from mafintosh/patch-1
Add encode.bytesWritten
|
11 years ago |
Mathias Buus
|
f5fc9ab1d7
|
docs for bytesWritten
|
11 years ago |