opendht 0.0.0-stage → 4.4.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/README.md +254 -2
  2. package/crypto.js +56 -0
  3. package/examples/dhtnode.js +176 -0
  4. package/examples/dhtnode.ts +171 -0
  5. package/index.d.ts +104 -0
  6. package/index.js +87 -0
  7. package/package.json +57 -5
  8. package/prebuilds/darwin-arm64/libargon2.1.dylib +0 -0
  9. package/prebuilds/darwin-arm64/libfmt.12.2.0.dylib +0 -0
  10. package/prebuilds/darwin-arm64/libgmp.10.dylib +0 -0
  11. package/prebuilds/darwin-arm64/libgnutls.30.dylib +0 -0
  12. package/prebuilds/darwin-arm64/libhogweed.7.0.dylib +0 -0
  13. package/prebuilds/darwin-arm64/libidn2.0.dylib +0 -0
  14. package/prebuilds/darwin-arm64/libintl.8.dylib +0 -0
  15. package/prebuilds/darwin-arm64/libjsoncpp.27.dylib +0 -0
  16. package/prebuilds/darwin-arm64/libnettle.9.0.dylib +0 -0
  17. package/prebuilds/darwin-arm64/libopendht.4.4.99.dylib +0 -0
  18. package/prebuilds/darwin-arm64/libp11-kit.0.dylib +0 -0
  19. package/prebuilds/darwin-arm64/libsimdutf.35.0.0.dylib +0 -0
  20. package/prebuilds/darwin-arm64/libtasn1.6.dylib +0 -0
  21. package/prebuilds/darwin-arm64/libunistring.5.dylib +0 -0
  22. package/prebuilds/darwin-arm64/licenses/OpenDHT-LICENSE.txt +7 -0
  23. package/prebuilds/darwin-arm64/licenses/argon2-LICENSE.txt +314 -0
  24. package/prebuilds/darwin-arm64/licenses/fmt-LICENSE.txt +20 -0
  25. package/prebuilds/darwin-arm64/licenses/gettext-COPYING.txt +674 -0
  26. package/prebuilds/darwin-arm64/licenses/gmp-COPYING.LESSERv3.txt +165 -0
  27. package/prebuilds/darwin-arm64/licenses/gmp-COPYING.txt +674 -0
  28. package/prebuilds/darwin-arm64/licenses/gnutls-COPYING.LESSERv2.txt +501 -0
  29. package/prebuilds/darwin-arm64/licenses/gnutls-COPYING.txt +674 -0
  30. package/prebuilds/darwin-arm64/licenses/jsoncpp-LICENSE.txt +55 -0
  31. package/prebuilds/darwin-arm64/licenses/libidn2-COPYING.LESSERv3.txt +165 -0
  32. package/prebuilds/darwin-arm64/licenses/libidn2-COPYING.txt +674 -0
  33. package/prebuilds/darwin-arm64/licenses/libidn2-COPYING.unicode.txt +91 -0
  34. package/prebuilds/darwin-arm64/licenses/libtasn1-COPYING.LESSERv2.txt +501 -0
  35. package/prebuilds/darwin-arm64/licenses/libtasn1-COPYING.txt +674 -0
  36. package/prebuilds/darwin-arm64/licenses/libunistring-COPYING.LIB.txt +165 -0
  37. package/prebuilds/darwin-arm64/licenses/libunistring-COPYING.txt +674 -0
  38. package/prebuilds/darwin-arm64/licenses/nettle-COPYING.LESSERv3.txt +165 -0
  39. package/prebuilds/darwin-arm64/licenses/p11-kit-COPYING.txt +27 -0
  40. package/prebuilds/darwin-arm64/licenses/simdutf-LICENSE-APACHE.txt +201 -0
  41. package/prebuilds/darwin-arm64/licenses/simdutf-LICENSE-MIT.txt +18 -0
  42. package/prebuilds/darwin-arm64/manifest.json +22 -0
  43. package/prebuilds/darwin-arm64/node.napi.node +0 -0
  44. package/prebuilds/darwin-x64/libargon2.1.dylib +0 -0
  45. package/prebuilds/darwin-x64/libfmt.12.2.0.dylib +0 -0
  46. package/prebuilds/darwin-x64/libgmp.10.dylib +0 -0
  47. package/prebuilds/darwin-x64/libgnutls.30.dylib +0 -0
  48. package/prebuilds/darwin-x64/libhogweed.7.0.dylib +0 -0
  49. package/prebuilds/darwin-x64/libidn2.0.dylib +0 -0
  50. package/prebuilds/darwin-x64/libintl.8.dylib +0 -0
  51. package/prebuilds/darwin-x64/libjsoncpp.27.dylib +0 -0
  52. package/prebuilds/darwin-x64/libnettle.9.0.dylib +0 -0
  53. package/prebuilds/darwin-x64/libopendht.4.4.99.dylib +0 -0
  54. package/prebuilds/darwin-x64/libp11-kit.0.dylib +0 -0
  55. package/prebuilds/darwin-x64/libsimdutf.35.0.0.dylib +0 -0
  56. package/prebuilds/darwin-x64/libtasn1.6.dylib +0 -0
  57. package/prebuilds/darwin-x64/libunistring.5.dylib +0 -0
  58. package/prebuilds/darwin-x64/licenses/OpenDHT-LICENSE.txt +7 -0
  59. package/prebuilds/darwin-x64/licenses/argon2-LICENSE.txt +314 -0
  60. package/prebuilds/darwin-x64/licenses/fmt-LICENSE.txt +20 -0
  61. package/prebuilds/darwin-x64/licenses/gettext-COPYING.txt +674 -0
  62. package/prebuilds/darwin-x64/licenses/gmp-COPYING.LESSERv3.txt +165 -0
  63. package/prebuilds/darwin-x64/licenses/gmp-COPYING.txt +674 -0
  64. package/prebuilds/darwin-x64/licenses/gnutls-COPYING.LESSERv2.txt +501 -0
  65. package/prebuilds/darwin-x64/licenses/gnutls-COPYING.txt +674 -0
  66. package/prebuilds/darwin-x64/licenses/jsoncpp-LICENSE.txt +55 -0
  67. package/prebuilds/darwin-x64/licenses/libidn2-COPYING.LESSERv3.txt +165 -0
  68. package/prebuilds/darwin-x64/licenses/libidn2-COPYING.txt +674 -0
  69. package/prebuilds/darwin-x64/licenses/libidn2-COPYING.unicode.txt +91 -0
  70. package/prebuilds/darwin-x64/licenses/libtasn1-COPYING.LESSERv2.txt +501 -0
  71. package/prebuilds/darwin-x64/licenses/libtasn1-COPYING.txt +674 -0
  72. package/prebuilds/darwin-x64/licenses/libunistring-COPYING.LIB.txt +165 -0
  73. package/prebuilds/darwin-x64/licenses/libunistring-COPYING.txt +674 -0
  74. package/prebuilds/darwin-x64/licenses/nettle-COPYING.LESSERv3.txt +165 -0
  75. package/prebuilds/darwin-x64/licenses/p11-kit-COPYING.txt +27 -0
  76. package/prebuilds/darwin-x64/licenses/simdutf-LICENSE-APACHE.txt +201 -0
  77. package/prebuilds/darwin-x64/licenses/simdutf-LICENSE-MIT.txt +18 -0
  78. package/prebuilds/darwin-x64/manifest.json +22 -0
  79. package/prebuilds/darwin-x64/node.napi.node +0 -0
  80. package/prebuilds/linux-x64/libargon2.so.1 +0 -0
  81. package/prebuilds/linux-x64/libffi.so.8 +0 -0
  82. package/prebuilds/linux-x64/libfmt.so.9 +0 -0
  83. package/prebuilds/linux-x64/libgmp.so.10 +0 -0
  84. package/prebuilds/linux-x64/libgnutls.so.30 +0 -0
  85. package/prebuilds/linux-x64/libhogweed.so.6 +0 -0
  86. package/prebuilds/linux-x64/libidn2.so.0 +0 -0
  87. package/prebuilds/linux-x64/libjsoncpp.so.25 +0 -0
  88. package/prebuilds/linux-x64/libnettle.so.8 +0 -0
  89. package/prebuilds/linux-x64/libopendht.so.4 +0 -0
  90. package/prebuilds/linux-x64/libp11-kit.so.0 +0 -0
  91. package/prebuilds/linux-x64/libtasn1.so.6 +0 -0
  92. package/prebuilds/linux-x64/libunistring.so.5 +0 -0
  93. package/prebuilds/linux-x64/licenses/OpenDHT-LICENSE.txt +7 -0
  94. package/prebuilds/linux-x64/licenses/libargon2-1-copyright.txt +167 -0
  95. package/prebuilds/linux-x64/licenses/libffi8-copyright.txt +225 -0
  96. package/prebuilds/linux-x64/licenses/libfmt9-copyright.txt +411 -0
  97. package/prebuilds/linux-x64/licenses/libgmp10-copyright.txt +94 -0
  98. package/prebuilds/linux-x64/licenses/libgnutls30t64-copyright.txt +1248 -0
  99. package/prebuilds/linux-x64/licenses/libhogweed6t64-copyright.txt +723 -0
  100. package/prebuilds/linux-x64/licenses/libidn2-0-copyright.txt +113 -0
  101. package/prebuilds/linux-x64/licenses/libjsoncpp25-copyright.txt +84 -0
  102. package/prebuilds/linux-x64/licenses/libnettle8t64-copyright.txt +723 -0
  103. package/prebuilds/linux-x64/licenses/libp11-kit0-copyright.txt +493 -0
  104. package/prebuilds/linux-x64/licenses/libtasn1-6-copyright.txt +83 -0
  105. package/prebuilds/linux-x64/licenses/libunistring5-copyright.txt +152 -0
  106. package/prebuilds/linux-x64/licenses/simdutf/LICENSE-APACHE +201 -0
  107. package/prebuilds/linux-x64/licenses/simdutf/LICENSE-MIT +18 -0
  108. package/prebuilds/linux-x64/manifest.json +21 -0
  109. package/prebuilds/linux-x64/node.napi.glibc.node +0 -0
  110. package/prebuilds/win32-x64/argon2.dll +0 -0
  111. package/prebuilds/win32-x64/fmt.dll +0 -0
  112. package/prebuilds/win32-x64/gmp-10.dll +0 -0
  113. package/prebuilds/win32-x64/gnutls.dll +0 -0
  114. package/prebuilds/win32-x64/hogweed-7.dll +0 -0
  115. package/prebuilds/win32-x64/jsoncpp.dll +0 -0
  116. package/prebuilds/win32-x64/licenses/OpenDHT-LICENSE.txt +7 -0
  117. package/prebuilds/win32-x64/manifest.json +18 -0
  118. package/prebuilds/win32-x64/nettle-9.dll +0 -0
  119. package/prebuilds/win32-x64/node.napi.node +0 -0
  120. package/prebuilds/win32-x64/opendht.dll +0 -0
  121. package/prebuilds/win32-x64/simdutf.dll +0 -0
  122. package/prebuilds/win32-x64/tasn1-6.dll +0 -0
@@ -0,0 +1,113 @@
1
+ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2
+ Upstream-Name: Libidn2
3
+ Upstream-Contact: Simon Josefsson <simon@josefsson.org>
4
+ Source: https://www.gnu.org/software/libidn/#libidn2
5
+
6
+ Files: *
7
+ Copyright: Copyright (C) 2011-2014 Simon Josefsson
8
+ License: GPL-3+
9
+
10
+ Files: *.c *.h
11
+ Copyright: Copyright (C) 2011-2014 Simon Josefsson
12
+ License: LGPL-3+ or GPL-2+
13
+
14
+ Files: build-aux/* lib/* GNUmakefile maint.mk
15
+ Copyright: Copyright (C) 2001-2011 Free Software Foundation, Inc.
16
+ License: GPL-3+
17
+
18
+ Files: doc/gdoc
19
+ Copyright: Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Simon Josefsson
20
+ Copyright (c) 2001, 2002 Nikos Mavrogiannopoulos
21
+ Copyright (c) 1998 Michael Zucchi
22
+ License: GPL-3+
23
+
24
+ Files: lib/IdnaMappingTable.txt lib/DerivedNormalizationProps.txt tests/IdnaTest.txt
25
+ Copyright: Copyright (c) 1991-2010 Unicode, Inc.
26
+ License: Unicode
27
+
28
+ License: GPL-3+
29
+ This program is free software: you can redistribute it and/or modify
30
+ it under the terms of the GNU General Public License as published by
31
+ the Free Software Foundation, either version 3 of the License, or
32
+ (at your option) any later version.
33
+ .
34
+ This program is distributed in the hope that it will be useful,
35
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
36
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37
+ GNU General Public License for more details.
38
+ .
39
+ You should have received a copy of the GNU General Public License
40
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
41
+ .
42
+ On Debian GNU/Linux systems, the complete text of the GNU General Public
43
+ License version 3 can be found in /usr/share/common-licenses/GPL-3.
44
+
45
+ License: GPL-2+
46
+ This program is free software; you can redistribute it and/or modify
47
+ it under the terms of the GNU General Public License as published by
48
+ the Free Software Foundation; either version 2 of the License, or
49
+ (at your option) any later version.
50
+ .
51
+ This program is distributed in the hope that it will be useful,
52
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
53
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
54
+ GNU General Public License for more details.
55
+ .
56
+ You should have received a copy of the GNU General Public License
57
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
58
+ .
59
+ On Debian GNU/Linux systems, the complete text of the GNU General Public
60
+ License version 2 can be found in /usr/share/common-licenses/GPL-2.
61
+
62
+ License: LGPL-3+
63
+ This program is free software: you can redistribute it and/or modify
64
+ it under the terms of the GNU Lesser General Public License as published
65
+ by the Free Software Foundation, either version 3 of the License, or
66
+ (at your option) any later version.
67
+ .
68
+ This program is distributed in the hope that it will be useful,
69
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
70
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
71
+ GNU General Public License for more details.
72
+ .
73
+ You should have received a copy of the GNU Lesser General Public License
74
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
75
+ .
76
+ On Debian GNU/Linux systems, the complete text of the GNU Lesser General
77
+ Public License version 3 can be found in /usr/share/common-licenses/LGPL-3.
78
+
79
+ License: Unicode
80
+ For terms of use, see http://www.unicode.org/terms_of_use.html
81
+ Copyright © 1991-2011 Unicode, Inc. All rights reserved. Distributed
82
+ under the Terms of Use in http://www.unicode.org/copyright.html.
83
+ .
84
+ Permission is hereby granted, free of charge, to any person obtaining
85
+ a copy of the Unicode data files and any associated documentation
86
+ (the "Data Files") or Unicode software and any associated
87
+ documentation (the "Software") to deal in the Data Files or Software
88
+ without restriction, including without limitation the rights to use,
89
+ copy, modify, merge, publish, distribute, and/or sell copies of the
90
+ Data Files or Software, and to permit persons to whom the Data Files
91
+ or Software are furnished to do so, provided that (a) the above
92
+ copyright notice(s) and this permission notice appear with all copies
93
+ of the Data Files or Software, (b) both the above copyright notice(s)
94
+ and this permission notice appear in associated documentation, and
95
+ (c) there is clear notice in each modified Data File or in the
96
+ Software as well as in the documentation associated with the Data
97
+ File(s) or Software that the data or software has been modified.
98
+ .
99
+ THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF
100
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
101
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
102
+ NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE
103
+ COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY
104
+ CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY
105
+ DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
106
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
107
+ ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
108
+ OF THE DATA FILES OR SOFTWARE.
109
+ .
110
+ Except as contained in this notice, the name of a copyright holder
111
+ shall not be used in advertising or otherwise to promote the sale,
112
+ use or other dealings in these Data Files or Software without prior
113
+ written authorization of the copyright holder.
@@ -0,0 +1,84 @@
1
+ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2
+ Upstream-Name: jsoncpp
3
+ Upstream-Contact: Christopher Dunn <cdunn2001@gmail.com>
4
+ Source: https://github.com/open-source-parsers/jsoncpp
5
+
6
+ Files: *
7
+ Copyright: 2007-2010 Baptiste Lapilleur
8
+ 2010-2015 Christopher Dunn
9
+ License: Expat_or_PublicDomain_or_DualExpatPD
10
+ The JsonCpp library's source code, including accompanying documentation,
11
+ tests and demonstration applications, are licensed under the following
12
+ conditions...
13
+ .
14
+ The author (Baptiste Lepilleur) explicitly disclaims copyright in all
15
+ jurisdictions which recognize such a disclaimer. In such jurisdictions,
16
+ this software is released into the Public Domain.
17
+ .
18
+ In jurisdictions which do not recognize Public Domain property (e.g. Germany as of
19
+ 2010), this software is Copyright (c) 2007-2010 by Baptiste Lepilleur, and is
20
+ released under the terms of the MIT License (see below).
21
+ .
22
+ In jurisdictions which recognize Public Domain property, the user of this
23
+ software may choose to accept it either as 1) Public Domain, 2) under the
24
+ conditions of the MIT License (see below), or 3) under the terms of dual
25
+ Public Domain/MIT License conditions described here, as they choose.
26
+ .
27
+ The MIT License is about as close to Public Domain as a license can get, and is
28
+ described in clear, concise terms at:
29
+ .
30
+ http://en.wikipedia.org/wiki/MIT_License
31
+ .
32
+ The full text of the MIT License follows:
33
+ .
34
+ ========================================================================
35
+ Copyright (c) 2007-2010 Baptiste Lepilleur
36
+ .
37
+ Permission is hereby granted, free of charge, to any person
38
+ obtaining a copy of this software and associated documentation
39
+ files (the "Software"), to deal in the Software without
40
+ restriction, including without limitation the rights to use, copy,
41
+ modify, merge, publish, distribute, sublicense, and/or sell copies
42
+ of the Software, and to permit persons to whom the Software is
43
+ furnished to do so, subject to the following conditions:
44
+ .
45
+ The above copyright notice and this permission notice shall be
46
+ included in all copies or substantial portions of the Software.
47
+ .
48
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
49
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
50
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
51
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
52
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
53
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
54
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
55
+ SOFTWARE.
56
+ ========================================================================
57
+ (END LICENSE TEXT)
58
+ .
59
+ The MIT license is compatible with both the GPL and commercial
60
+ software, affording one all of the rights of Public Domain with the
61
+ minor nuisance of being required to keep the above copyright notice
62
+ and license text in the source code. Note also that by accepting the
63
+ Public Domain "license" you can re-license your copy using whatever
64
+ license you like.
65
+
66
+ Files: debian/*
67
+ Copyright: 2011,2012 José Luis Segura Lucas <josel.segura@gmx.es>
68
+ 2015 Peter Spiess-Knafl <psk@autistici.org>
69
+ License: GPL-3+
70
+ This library is free software; you can redistribute it and/or modify
71
+ it under the terms of the GNU General Public License as published by
72
+ the Free Software Foundation; either version 3 of the License, or
73
+ (at your option) any later version.
74
+ .
75
+ This package is distributed in the hope that it will be useful,
76
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
77
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
78
+ GNU General Public License for more details.
79
+ .
80
+ You should have received a copy of the GNU General Public License
81
+ along with this program. If not, see <http://www.gnu.org/licenses/>
82
+ .
83
+ On Debian systems, the complete text of the GNU General
84
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-3".