125 Commits

Author SHA1 Message Date
silverwind
a5ee7897e2
test node 18 2022-06-14 23:03:44 +02:00
Matt Simerson
bd33c5f690
switch to GitHub Actions (#83)
* Switch to GitHub Actions

* chore(ci): switch to GitHub Actions
* chore(ci): switch reporter from nyc to c8
* chore(nyc): remove dependency
* move .eslintrc to .eslintrc.yaml (be explicit)

* noop: ws

Co-authored-by: silverwind <me@silverwind.io>
2022-06-14 23:01:00 +02:00
Mathias Buus
dbfe59b623 5.3.1 2021-12-23 11:46:38 +01:00
Joachim Viide
1d42aadae7
Make name.decode stricter (#79)
* Add tests for name decoding corner cases

* Modify name.decode to throw an error in the following cases:
 * Not enough data for reading the full label
 * The label is too long (over 253 characters when dots are included)
  * A label must be either <= 63 bytes or a pointer
  * Pointers can only point to prior data (see RFC 1035, section 4.1.4)

In addition pointer jumps don't add extra dots in the names anymore.

* Make name_decoding tests more specific

* Make name.decode non-recursive

* Ensure name.decode can read the label header

* Fix name.decode error messages
2021-12-23 11:46:21 +01:00
Amith Mohanan
8e6d91c078
fix: Remove duplicate named export txt (#71) 2021-11-02 18:24:20 +01:00
Mathias Buus
5aebb85c32 5.3.0 2021-07-05 12:13:12 +02:00
Martin Heidegger
007a7c0634
fix: explicit Buffer reference for webpack (#68) 2021-07-05 12:12:40 +02:00
Martin Heidegger
30e54ea616
replacing ip with @leichtgewicht/ip-codec (#67) 2021-07-05 12:12:15 +02:00
Mathias Buus
5fbc94b38d 5.2.4 2021-05-26 11:26:40 +02:00
Mathias Buus
fbaa906476 move all allocUnsafes to allocs for easier maintenance 2021-05-26 11:26:35 +02:00
Mathias Buus
e81b4020c0 only master travis 2021-05-25 13:33:28 +02:00
Mathias Buus
066919e4df 5.2.3 2021-05-25 13:30:41 +02:00
Mathias Buus
bd84615252 check for .. also in encodingLength 2021-05-25 13:30:37 +02:00
Mathias Buus
bb04450fe4 5.2.2 2021-05-19 19:59:50 +02:00
Mathias Buus
25f15dd0fe do trim on encodingLength as well 2021-05-19 19:59:39 +02:00
Tom Pusateri
c11116822a
Update DoH example from internet-draft to RFC 8484. (#58) 2020-04-17 15:21:31 +02:00
Mathias Buus
cbe05219b4 5.2.1 2019-03-26 13:26:32 +01:00
Martin Kolárik
c61dd19846 Fix udpPayloadSize encoding 2019-03-26 13:25:30 +01:00
Joe Hildebrand
77eadae3c3 Add coverage using nyc, badge to readme, and ignore the coverage outputs. (#50)
* First pass at mafintosh/dns-packet#48. No auto-refresh yet, because that's a more invasive change.

* Add a quick note to README to kick off a round of tests.

* remove sudo:false
2019-02-27 23:31:44 +01:00
silverwind
e7c072072d
5.2.0 changelog 2019-02-21 23:41:12 +01:00
silverwind
58801f83bc
5.2.0 2019-02-21 23:34:19 +01:00
silverwind
799de23dca
update devDependencies 2019-02-21 23:33:53 +01:00
silverwind
c8fd22c8a1
tweaks 2019-02-21 23:33:07 +01:00
Joe Hildebrand
4932026f66 Add EDNS OPT de/encoding
* Add ECS processing.  See #46

* Add support for Padding.  Simplify ECS to not do CIDR parsing.

* Done implementing the EDNS0 options that make sense

* Default to string values from IANA for EDNSO option codes.  Add tests for mappings.

* Add a few more aliases for option codes

* Update README for EDNS0 options

* I think this is what is desired.  Happy to change it more if you want.

* Address code review comments from @silverwind
2019-02-21 23:25:17 +01:00
silverwind
afa238119f
5.1.2 2019-01-23 00:16:51 +01:00
silverwind
985adc20b1
fix rp encode bytes 2019-01-23 00:16:23 +01:00
silverwind
e8c299d64d
update changelog for 5.1.0 2019-01-22 22:58:38 +01:00
silverwind
b72cefd4c9
5.1.1 2019-01-22 22:52:11 +01:00
silverwind
1eafa35beb
bring readme example in line with other examples 2019-01-22 22:51:27 +01:00
silverwind
75e8f4b0b9
alphabetically sort record types in readme 2019-01-22 22:49:54 +01:00
silverwind
2764de3e02
add fallback for RP mbox, add a few more tests 2019-01-22 22:48:57 +01:00
silverwind
0d8791efad
5.1.0 2019-01-22 22:41:29 +01:00
silverwind
57b595e1b0
update devDependencies 2019-01-22 22:41:08 +01:00
silverwind
b5c0ab3161
fix RP handling 2019-01-22 22:37:53 +01:00
Floyd Pink
4e25954bb4
add support for encoding RP records 2019-01-22 22:37:53 +01:00
Hari Menon
003cbeca51 fix a minor typo (#44) 2019-01-18 14:46:32 +01:00
silverwind
85a4aaebd1
5.0.4 2018-10-16 18:15:07 +02:00
silverwind
6da540b5b7
update devDependencies 2018-10-16 18:14:31 +02:00
silverwind
955477c4ce
document issuerCritical on CAA 2018-10-16 18:13:44 +02:00
silverwind
1abf994962
5.0.3 2018-09-05 19:02:26 +02:00
silverwind
f7fef43ce0
update devDependencies, fix lint 2018-09-05 18:57:04 +02:00
Nick Johnson
8a6764b2b3 Remove accidental or in typebitmap.encodingLength (#41) 2018-09-05 18:52:59 +02:00
silverwind
f4c95d6dda
5.0.2 2018-07-24 19:54:42 +02:00
silverwind
fcae400b9a
update dependencies 2018-07-24 19:54:22 +02:00
silverwind
f3fc8927fa
modernize readme example code 2018-07-24 19:53:42 +02:00
silverwind
9446241c41
unify variable name in examples 2018-07-04 17:46:44 +02:00
silverwind
93b8c3c03b
5.0.1 2018-07-02 21:52:03 +02:00
silverwind
18b8203f1a
update dependencies 2018-07-02 21:51:37 +02:00
silverwind
db4e271a59
fix encoding of empty string in TXT data - fixes #39 2018-07-02 21:50:31 +02:00
silverwind
e29a832aa8
add 5.0.0 changelog 2018-07-02 21:21:14 +02:00