netkitty 0.0.20 → 0.0.22

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 (75) hide show
  1. package/.eslintrc.json +2 -2
  2. package/.idea/inspectionProfiles/Project_Default.xml +2 -1
  3. package/.idea/netkitty.iml +0 -1
  4. package/cpp/nodepcap/deps/include/Packet32.h +429 -429
  5. package/cpp/nodepcap/deps/include/pcap/bluetooth.h +56 -56
  6. package/cpp/nodepcap/deps/include/pcap/bpf.h +292 -292
  7. package/cpp/nodepcap/deps/include/pcap/can_socketcan.h +56 -56
  8. package/cpp/nodepcap/deps/include/pcap/compiler-tests.h +163 -163
  9. package/cpp/nodepcap/deps/include/pcap/dlt.h +1514 -1514
  10. package/cpp/nodepcap/deps/include/pcap/funcattrs.h +325 -325
  11. package/cpp/nodepcap/deps/include/pcap/ipnet.h +43 -43
  12. package/cpp/nodepcap/deps/include/pcap/namedb.h +84 -84
  13. package/cpp/nodepcap/deps/include/pcap/nflog.h +94 -94
  14. package/cpp/nodepcap/deps/include/pcap/pcap-inttypes.h +101 -101
  15. package/cpp/nodepcap/deps/include/pcap/pcap.h +1219 -1219
  16. package/cpp/nodepcap/deps/include/pcap/sll.h +149 -149
  17. package/cpp/nodepcap/deps/include/pcap/socket.h +84 -84
  18. package/cpp/nodepcap/deps/include/pcap/usb.h +143 -143
  19. package/cpp/nodepcap/deps/include/pcap/vlan.h +46 -46
  20. package/cpp/nodepcap/deps/include/pcap-bpf.h +45 -45
  21. package/cpp/nodepcap/deps/include/pcap-namedb.h +40 -40
  22. package/cpp/nodepcap/deps/include/pcap.h +43 -43
  23. package/dist/PcapExports.d.ts +13 -0
  24. package/dist/PcapExports.d.ts.map +1 -1
  25. package/dist/PcapExports.js +16 -1
  26. package/dist/lib/codec/Codec.js +1 -1
  27. package/dist/lib/codec/PacketHeaders.d.ts +5 -0
  28. package/dist/lib/codec/PacketHeaders.d.ts.map +1 -1
  29. package/dist/lib/codec/PacketHeaders.js +13 -1
  30. package/dist/lib/codec/abstracts/BaseHeader.d.ts +2 -2
  31. package/dist/lib/codec/abstracts/BaseHeader.d.ts.map +1 -1
  32. package/dist/lib/codec/abstracts/BaseHeader.js +4 -4
  33. package/dist/lib/codec/headers/EthernetII.js +1 -1
  34. package/dist/lib/codec/headers/Goose.js +5 -5
  35. package/dist/lib/codec/headers/IEC61850SampledValues.js +1 -1
  36. package/dist/lib/codec/headers/IPv4.js +2 -2
  37. package/dist/lib/codec/headers/TLS_Alert.d.ts +10 -0
  38. package/dist/lib/codec/headers/TLS_Alert.d.ts.map +1 -0
  39. package/dist/lib/codec/headers/TLS_Alert.js +624 -0
  40. package/dist/lib/codec/headers/TLS_ApplicationData.d.ts +10 -0
  41. package/dist/lib/codec/headers/TLS_ApplicationData.d.ts.map +1 -0
  42. package/dist/lib/codec/headers/TLS_ApplicationData.js +155 -0
  43. package/dist/lib/codec/headers/TLS_ChangeCipherSpec.d.ts +10 -0
  44. package/dist/lib/codec/headers/TLS_ChangeCipherSpec.d.ts.map +1 -0
  45. package/dist/lib/codec/headers/TLS_ChangeCipherSpec.js +154 -0
  46. package/dist/lib/codec/headers/TLS_Handshake.d.ts +10 -0
  47. package/dist/lib/codec/headers/TLS_Handshake.d.ts.map +1 -0
  48. package/dist/lib/codec/headers/TLS_Handshake.js +339 -0
  49. package/dist/lib/codec/headers/TLS_Heartbeat.d.ts +10 -0
  50. package/dist/lib/codec/headers/TLS_Heartbeat.d.ts.map +1 -0
  51. package/dist/lib/codec/headers/TLS_Heartbeat.js +206 -0
  52. package/dist/lib/codec/headers/VLAN_802dot1Q.js +1 -1
  53. package/dist/lib/pcap/PCAPGenerator.d.ts +2 -2
  54. package/dist/lib/pcap/PCAPGenerator.d.ts.map +1 -1
  55. package/dist/lib/pcap/PCAPGenerator.js +7 -1
  56. package/package.json +1 -1
  57. package/src/PcapExports.ts +16 -0
  58. package/src/lib/codec/Codec.ts +1 -1
  59. package/src/lib/codec/PacketHeaders.ts +7 -0
  60. package/src/lib/codec/abstracts/BaseHeader.ts +4 -4
  61. package/src/lib/codec/headers/EthernetII.ts +1 -1
  62. package/src/lib/codec/headers/Goose.ts +5 -5
  63. package/src/lib/codec/headers/IEC61850SampledValues.ts +1 -1
  64. package/src/lib/codec/headers/IPv4.ts +2 -2
  65. package/src/lib/codec/headers/TLS_Alert.ts +539 -0
  66. package/src/lib/codec/headers/TLS_ApplicationData.ts +145 -0
  67. package/src/lib/codec/headers/TLS_ChangeCipherSpec.ts +146 -0
  68. package/src/lib/codec/headers/TLS_Handshake.ts +313 -0
  69. package/src/lib/codec/headers/TLS_Heartbeat.ts +188 -0
  70. package/src/lib/codec/headers/VLAN_802dot1Q.ts +1 -1
  71. package/src/lib/pcap/PCAPGenerator.ts +8 -3
  72. package/dist/NetKitty.d.ts +0 -1
  73. package/dist/NetKitty.d.ts.map +0 -1
  74. package/dist/NetKitty.js +0 -90
  75. package/src/NetKitty.ts +0 -91
@@ -1 +0,0 @@
1
- //# sourceMappingURL=NetKitty.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NetKitty.d.ts","sourceRoot":"","sources":["../src/NetKitty.ts"],"names":[],"mappings":""}
package/dist/NetKitty.js DELETED
@@ -1,90 +0,0 @@
1
- "use strict";
2
- // export {BufferToHex} from './lib/helper/BufferToHex'
3
- // export {BufferToIPv4, BufferToIPv6} from './lib/helper/BufferToIP'
4
- // export {
5
- // BufferToFloat32,
6
- // BufferToInt16,
7
- // BufferToInt32,
8
- // BufferToInt64,
9
- // BufferToInt8,
10
- // BufferToUInt16, BufferToUInt32, BufferToUInt64,
11
- // BufferToUInt8
12
- // } from './lib/helper/BufferToNumber'
13
- // export {FlexibleObject} from './lib/codec/lib/FlexibleObject'
14
- // export {
15
- // HexToFloat32,
16
- // HexToInt16,
17
- // HexToInt32,
18
- // HexToInt64,
19
- // HexToInt8,
20
- // HexToUInt16,
21
- // HexToUInt32, HexToUInt64,
22
- // HexToUInt8
23
- // } from './lib/helper/HexToNumber'
24
- // export {IPv4ToBuffer, IPv6ToBuffer} from './lib/helper/IPToBuffer'
25
- // export {
26
- // Int16ToBERBuffer,
27
- // Int32ToBERBuffer,
28
- // Int64ToBERBuffer,
29
- // Int8ToBERBuffer, UInt16ToBERBuffer, UInt32ToBERBuffer, UInt64ToBERBuffer,
30
- // UInt8ToBERBuffer
31
- // } from './lib/helper/NumberToBERBuffer'
32
- // export {
33
- // Int16ToBERHex,
34
- // Int32ToBERHex,
35
- // Int64ToBERHex,
36
- // Int8ToBERHex,
37
- // UInt16ToBERHex, UInt32ToBERHex, UInt64ToBERHex,
38
- // UInt8ToBERHex
39
- // } from './lib/helper/NumberToBERHex'
40
- // export {
41
- // Float32ToBuffer,
42
- // Int16ToBuffer,
43
- // Int32ToBuffer,
44
- // Int64ToBuffer,
45
- // Int8ToBuffer,
46
- // UInt16ToBuffer, UInt32ToBuffer, UInt64ToBuffer,
47
- // UInt8ToBuffer
48
- // } from './lib/helper/NumberToBuffer'
49
- // export {
50
- // Float32ToHex,
51
- // Int16ToHex,
52
- // Int32ToHex,
53
- // Int64ToHex,
54
- // Int8ToHex,
55
- // UInt16ToHex,
56
- // UInt32ToHex, UInt64ToHex,
57
- // UInt8ToHex
58
- // } from './lib/helper/NumberToHex'
59
- // export {StringContentEncodingEnum} from './lib/codec/lib/StringContentEncodingEnum'
60
- // export {type INetworkInterface} from './lib/nodepcap/interfaces/INetworkInterface'
61
- // export {type CodecEncodeResult} from './lib/codec/types/CodecEncodeResult'
62
- // export {type CodecEncodeInput} from './lib/codec/types/CodecEncodeInput'
63
- // export {type CodecDecodeResult} from './lib/codec/types/CodecDecodeResult'
64
- // export {type CodecSchema} from './lib/codec/types/CodecSchema'
65
- // export {type HeaderTreeNode} from './lib/codec/types/HeaderTreeNode'
66
- // export {type IPcapPacketInfo} from './lib/pcap/interfaces/IPcapPacketInfo'
67
- // /**
68
- // * PCAP reader
69
- // */
70
- // export {PcapReader} from './lib/pcap/PcapReader'
71
- // /**
72
- // * PCAP writer
73
- // */
74
- // export {PcapWriter} from './lib/pcap/PcapWriter'
75
- // /**
76
- // * PCAP parser
77
- // */
78
- // export {PcapParser} from './lib/pcap/PcapParser'
79
- // /**
80
- // * Fetch network interface
81
- // */
82
- // export {GetNetworkInterfaces} from './lib/nodepcap/GetNetworkInterfaces'
83
- // /**
84
- // * Network packet capture
85
- // */
86
- // export {Capture} from './lib/nodepcap/Capture'
87
- // /**
88
- // * Network packet codec
89
- // */
90
- // export {Codec, Headers} from './lib/codec/Codec'
package/src/NetKitty.ts DELETED
@@ -1,91 +0,0 @@
1
- // export {BufferToHex} from './lib/helper/BufferToHex'
2
- // export {BufferToIPv4, BufferToIPv6} from './lib/helper/BufferToIP'
3
- // export {
4
- // BufferToFloat32,
5
- // BufferToInt16,
6
- // BufferToInt32,
7
- // BufferToInt64,
8
- // BufferToInt8,
9
- // BufferToUInt16, BufferToUInt32, BufferToUInt64,
10
- // BufferToUInt8
11
- // } from './lib/helper/BufferToNumber'
12
- // export {FlexibleObject} from './lib/codec/lib/FlexibleObject'
13
- // export {
14
- // HexToFloat32,
15
- // HexToInt16,
16
- // HexToInt32,
17
- // HexToInt64,
18
- // HexToInt8,
19
- // HexToUInt16,
20
- // HexToUInt32, HexToUInt64,
21
- // HexToUInt8
22
- // } from './lib/helper/HexToNumber'
23
- // export {IPv4ToBuffer, IPv6ToBuffer} from './lib/helper/IPToBuffer'
24
- // export {
25
- // Int16ToBERBuffer,
26
- // Int32ToBERBuffer,
27
- // Int64ToBERBuffer,
28
- // Int8ToBERBuffer, UInt16ToBERBuffer, UInt32ToBERBuffer, UInt64ToBERBuffer,
29
- // UInt8ToBERBuffer
30
- // } from './lib/helper/NumberToBERBuffer'
31
- // export {
32
- // Int16ToBERHex,
33
- // Int32ToBERHex,
34
- // Int64ToBERHex,
35
- // Int8ToBERHex,
36
- // UInt16ToBERHex, UInt32ToBERHex, UInt64ToBERHex,
37
- // UInt8ToBERHex
38
- // } from './lib/helper/NumberToBERHex'
39
- // export {
40
- // Float32ToBuffer,
41
- // Int16ToBuffer,
42
- // Int32ToBuffer,
43
- // Int64ToBuffer,
44
- // Int8ToBuffer,
45
- // UInt16ToBuffer, UInt32ToBuffer, UInt64ToBuffer,
46
- // UInt8ToBuffer
47
- // } from './lib/helper/NumberToBuffer'
48
- // export {
49
- // Float32ToHex,
50
- // Int16ToHex,
51
- // Int32ToHex,
52
- // Int64ToHex,
53
- // Int8ToHex,
54
- // UInt16ToHex,
55
- // UInt32ToHex, UInt64ToHex,
56
- // UInt8ToHex
57
- // } from './lib/helper/NumberToHex'
58
- // export {StringContentEncodingEnum} from './lib/codec/lib/StringContentEncodingEnum'
59
-
60
- // export {type INetworkInterface} from './lib/nodepcap/interfaces/INetworkInterface'
61
- // export {type CodecEncodeResult} from './lib/codec/types/CodecEncodeResult'
62
- // export {type CodecEncodeInput} from './lib/codec/types/CodecEncodeInput'
63
- // export {type CodecDecodeResult} from './lib/codec/types/CodecDecodeResult'
64
- // export {type CodecSchema} from './lib/codec/types/CodecSchema'
65
- // export {type HeaderTreeNode} from './lib/codec/types/HeaderTreeNode'
66
- // export {type IPcapPacketInfo} from './lib/pcap/interfaces/IPcapPacketInfo'
67
- // /**
68
- // * PCAP reader
69
- // */
70
- // export {PcapReader} from './lib/pcap/PcapReader'
71
- // /**
72
- // * PCAP writer
73
- // */
74
- // export {PcapWriter} from './lib/pcap/PcapWriter'
75
- // /**
76
- // * PCAP parser
77
- // */
78
- // export {PcapParser} from './lib/pcap/PcapParser'
79
- // /**
80
- // * Fetch network interface
81
- // */
82
- // export {GetNetworkInterfaces} from './lib/nodepcap/GetNetworkInterfaces'
83
- // /**
84
- // * Network packet capture
85
- // */
86
- // export {Capture} from './lib/nodepcap/Capture'
87
- // /**
88
- // * Network packet codec
89
- // */
90
- // export {Codec, Headers} from './lib/codec/Codec'
91
-