netkitty 0.0.16 → 0.0.18
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.
- package/README.md +1 -1
- package/assets/NetKitty.png +0 -0
- package/dist/CodecExports.d.ts +33 -0
- package/dist/CodecExports.d.ts.map +1 -0
- package/dist/CodecExports.js +23 -0
- package/dist/CodecHeaderExports.d.ts +2 -0
- package/dist/CodecHeaderExports.d.ts.map +1 -0
- package/dist/CodecHeaderExports.js +17 -0
- package/dist/HelperExports.d.ts +11 -0
- package/dist/HelperExports.d.ts.map +1 -0
- package/dist/HelperExports.js +72 -0
- package/dist/NetKitty.d.ts +0 -43
- package/dist/NetKitty.d.ts.map +1 -1
- package/dist/NetKitty.js +89 -106
- package/dist/NetworkExports.d.ts +13 -0
- package/dist/NetworkExports.d.ts.map +1 -0
- package/dist/NetworkExports.js +13 -0
- package/dist/PcapExports.d.ts +17 -0
- package/dist/PcapExports.d.ts.map +1 -0
- package/dist/PcapExports.js +18 -0
- package/dist/lib/codec/Codec.d.ts +0 -1
- package/dist/lib/codec/Codec.d.ts.map +1 -1
- package/dist/lib/codec/Codec.js +36 -29
- package/dist/lib/codec/PacketHeaders.d.ts +14 -0
- package/dist/lib/codec/PacketHeaders.d.ts.map +1 -0
- package/dist/lib/codec/PacketHeaders.js +29 -0
- package/dist/lib/codec/headers/ARP.js +7 -7
- package/dist/lib/codec/headers/EthernetII.js +1 -1
- package/dist/lib/codec/headers/Goose.js +6 -6
- package/dist/lib/codec/headers/ICMP.js +3 -3
- package/dist/lib/codec/headers/ICMPv6.js +4 -4
- package/dist/lib/codec/headers/IEC61850SampledValues.js +5 -5
- package/dist/lib/codec/headers/IPv4.js +8 -8
- package/dist/lib/codec/headers/IPv6.js +5 -5
- package/dist/lib/codec/headers/IPv6HopByHopOptions.js +3 -3
- package/dist/lib/codec/headers/RawData.js +1 -1
- package/dist/lib/codec/headers/TCP.js +5 -5
- package/dist/lib/codec/headers/UDP.js +3 -3
- package/dist/lib/codec/headers/VLAN_802dot1Q.js +2 -2
- package/dist/lib/helper/BufferToHex.d.ts.map +1 -0
- package/dist/lib/helper/BufferToIP.d.ts.map +1 -0
- package/dist/lib/helper/BufferToNumber.d.ts.map +1 -0
- package/dist/lib/helper/HexToBuffer.d.ts +8 -0
- package/dist/lib/helper/HexToBuffer.d.ts.map +1 -0
- package/dist/lib/helper/HexToBuffer.js +27 -0
- package/dist/lib/helper/HexToNumber.d.ts.map +1 -0
- package/dist/lib/helper/IPToBuffer.d.ts.map +1 -0
- package/dist/lib/helper/NumberToBERBuffer.d.ts.map +1 -0
- package/dist/lib/helper/NumberToBERHex.d.ts.map +1 -0
- package/dist/lib/helper/NumberToBuffer.d.ts.map +1 -0
- package/dist/lib/helper/NumberToHex.d.ts.map +1 -0
- package/package.json +28 -4
- package/src/CodecExports.ts +33 -0
- package/src/CodecHeaderExports.ts +1 -0
- package/src/HelperExports.ts +78 -0
- package/src/NetKitty.ts +89 -90
- package/src/NetworkExports.ts +12 -0
- package/src/PcapExports.ts +16 -0
- package/src/lib/codec/Codec.ts +2 -29
- package/src/lib/codec/PacketHeaders.ts +13 -0
- package/src/lib/codec/headers/ARP.ts +7 -7
- package/src/lib/codec/headers/EthernetII.ts +1 -1
- package/src/lib/codec/headers/Goose.ts +6 -6
- package/src/lib/codec/headers/ICMP.ts +3 -3
- package/src/lib/codec/headers/ICMPv6.ts +4 -4
- package/src/lib/codec/headers/IEC61850SampledValues.ts +5 -5
- package/src/lib/codec/headers/IPv4.ts +8 -8
- package/src/lib/codec/headers/IPv6.ts +5 -5
- package/src/lib/codec/headers/IPv6HopByHopOptions.ts +3 -3
- package/src/lib/codec/headers/RawData.ts +1 -1
- package/src/lib/codec/headers/TCP.ts +5 -5
- package/src/lib/codec/headers/UDP.ts +3 -3
- package/src/lib/codec/headers/VLAN_802dot1Q.ts +2 -2
- package/src/lib/helper/HexToBuffer.ts +22 -0
- package/src/tests/units/Codec.spec.ts +1 -1
- package/dist/lib/codec/lib/BufferToHex.d.ts.map +0 -1
- package/dist/lib/codec/lib/BufferToIP.d.ts.map +0 -1
- package/dist/lib/codec/lib/BufferToNumber.d.ts.map +0 -1
- package/dist/lib/codec/lib/FixHexString.d.ts +0 -7
- package/dist/lib/codec/lib/FixHexString.d.ts.map +0 -1
- package/dist/lib/codec/lib/FixHexString.js +0 -11
- package/dist/lib/codec/lib/HexToNumber.d.ts.map +0 -1
- package/dist/lib/codec/lib/IPToBuffer.d.ts.map +0 -1
- package/dist/lib/codec/lib/NumberToBERBuffer.d.ts.map +0 -1
- package/dist/lib/codec/lib/NumberToBERHex.d.ts.map +0 -1
- package/dist/lib/codec/lib/NumberToBuffer.d.ts.map +0 -1
- package/dist/lib/codec/lib/NumberToHex.d.ts.map +0 -1
- package/src/lib/codec/lib/FixHexString.ts +0 -8
- /package/dist/lib/{codec/lib → helper}/BufferToHex.d.ts +0 -0
- /package/dist/lib/{codec/lib → helper}/BufferToHex.js +0 -0
- /package/dist/lib/{codec/lib → helper}/BufferToIP.d.ts +0 -0
- /package/dist/lib/{codec/lib → helper}/BufferToIP.js +0 -0
- /package/dist/lib/{codec/lib → helper}/BufferToNumber.d.ts +0 -0
- /package/dist/lib/{codec/lib → helper}/BufferToNumber.js +0 -0
- /package/dist/lib/{codec/lib → helper}/HexToNumber.d.ts +0 -0
- /package/dist/lib/{codec/lib → helper}/HexToNumber.js +0 -0
- /package/dist/lib/{codec/lib → helper}/IPToBuffer.d.ts +0 -0
- /package/dist/lib/{codec/lib → helper}/IPToBuffer.js +0 -0
- /package/dist/lib/{codec/lib → helper}/NumberToBERBuffer.d.ts +0 -0
- /package/dist/lib/{codec/lib → helper}/NumberToBERBuffer.js +0 -0
- /package/dist/lib/{codec/lib → helper}/NumberToBERHex.d.ts +0 -0
- /package/dist/lib/{codec/lib → helper}/NumberToBERHex.js +0 -0
- /package/dist/lib/{codec/lib → helper}/NumberToBuffer.d.ts +0 -0
- /package/dist/lib/{codec/lib → helper}/NumberToBuffer.js +0 -0
- /package/dist/lib/{codec/lib → helper}/NumberToHex.d.ts +0 -0
- /package/dist/lib/{codec/lib → helper}/NumberToHex.js +0 -0
- /package/src/lib/{codec/lib → helper}/BufferToHex.ts +0 -0
- /package/src/lib/{codec/lib → helper}/BufferToIP.ts +0 -0
- /package/src/lib/{codec/lib → helper}/BufferToNumber.ts +0 -0
- /package/src/lib/{codec/lib → helper}/HexToNumber.ts +0 -0
- /package/src/lib/{codec/lib → helper}/IPToBuffer.ts +0 -0
- /package/src/lib/{codec/lib → helper}/NumberToBERBuffer.ts +0 -0
- /package/src/lib/{codec/lib → helper}/NumberToBERHex.ts +0 -0
- /package/src/lib/{codec/lib → helper}/NumberToBuffer.ts +0 -0
- /package/src/lib/{codec/lib → helper}/NumberToHex.ts +0 -0
package/src/NetKitty.ts
CHANGED
|
@@ -1,92 +1,91 @@
|
|
|
1
|
-
export {BufferToHex} from './lib/
|
|
2
|
-
export {BufferToIPv4, BufferToIPv6} from './lib/
|
|
3
|
-
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from './lib/
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from './lib/
|
|
24
|
-
export {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
} from './lib/codec/lib/
|
|
59
|
-
export {StringContentEncodingEnum} from './lib/codec/lib/StringContentEncodingEnum'
|
|
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'
|
|
60
59
|
|
|
61
|
-
export {type INetworkInterface} from './lib/nodepcap/interfaces/INetworkInterface'
|
|
62
|
-
export {type CodecEncodeResult} from './lib/codec/types/CodecEncodeResult'
|
|
63
|
-
export {type CodecEncodeInput} from './lib/codec/types/CodecEncodeInput'
|
|
64
|
-
export {type CodecDecodeResult} from './lib/codec/types/CodecDecodeResult'
|
|
65
|
-
export {type CodecSchema} from './lib/codec/types/CodecSchema'
|
|
66
|
-
export {type HeaderTreeNode} from './lib/codec/types/HeaderTreeNode'
|
|
67
|
-
export {type IPcapPacketInfo} from './lib/pcap/interfaces/IPcapPacketInfo'
|
|
68
|
-
/**
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
export {PcapReader} from './lib/pcap/PcapReader'
|
|
72
|
-
/**
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
export {PcapWriter} from './lib/pcap/PcapWriter'
|
|
76
|
-
/**
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
export {PcapParser} from './lib/pcap/PcapParser'
|
|
80
|
-
/**
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
export {GetNetworkInterfaces} from './lib/nodepcap/GetNetworkInterfaces'
|
|
84
|
-
/**
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
export {Capture} from './lib/nodepcap/Capture'
|
|
88
|
-
/**
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
export {Codec, Headers} from './lib/codec/Codec'
|
|
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'
|
|
92
91
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fetch network interface
|
|
3
|
+
*/
|
|
4
|
+
export {GetNetworkInterfaces} from './lib/nodepcap/GetNetworkInterfaces'
|
|
5
|
+
/**
|
|
6
|
+
* Network packet capture
|
|
7
|
+
*/
|
|
8
|
+
export {Capture} from './lib/nodepcap/Capture'
|
|
9
|
+
/**
|
|
10
|
+
* Types
|
|
11
|
+
*/
|
|
12
|
+
export {type INetworkInterface} from './lib/nodepcap/interfaces/INetworkInterface'
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PCAP reader
|
|
3
|
+
*/
|
|
4
|
+
export {PcapReader} from './lib/pcap/PcapReader'
|
|
5
|
+
/**
|
|
6
|
+
* PCAP writer
|
|
7
|
+
*/
|
|
8
|
+
export {PcapWriter} from './lib/pcap/PcapWriter'
|
|
9
|
+
/**
|
|
10
|
+
* PCAP parser
|
|
11
|
+
*/
|
|
12
|
+
export {PcapParser} from './lib/pcap/PcapParser'
|
|
13
|
+
/**
|
|
14
|
+
* Types
|
|
15
|
+
*/
|
|
16
|
+
export {type IPcapPacketInfo} from './lib/pcap/interfaces/IPcapPacketInfo'
|
package/src/lib/codec/Codec.ts
CHANGED
|
@@ -10,35 +10,8 @@ import {FlexibleObject} from './lib/FlexibleObject'
|
|
|
10
10
|
import {CodecSchema} from './types/CodecSchema'
|
|
11
11
|
import {ProcessPacketDecodePostHandlers, ProcessPacketEncodePostHandlers} from './lib/ProcessPacketPostHandlers'
|
|
12
12
|
import {CodecEncodeResult} from './types/CodecEncodeResult'
|
|
13
|
-
import {ARP} from './headers/ARP'
|
|
14
|
-
import {EthernetII} from './headers/EthernetII'
|
|
15
|
-
import {Goose} from './headers/Goose'
|
|
16
|
-
import {IEC61850SampledValues} from './headers/IEC61850SampledValues'
|
|
17
|
-
import {IPv4} from './headers/IPv4'
|
|
18
13
|
import {RawData} from './headers/RawData'
|
|
19
|
-
import
|
|
20
|
-
import {UDP} from './headers/UDP'
|
|
21
|
-
import {VLAN_802dot1Q} from './headers/VLAN_802dot1Q'
|
|
22
|
-
import {IPv6} from './headers/IPv6'
|
|
23
|
-
import {IPv6HopByHopOptions} from './headers/IPv6HopByHopOptions'
|
|
24
|
-
import {ICMPv6} from './headers/ICMPv6'
|
|
25
|
-
import {ICMP} from './headers/ICMP'
|
|
26
|
-
|
|
27
|
-
export const Headers: CodecModuleConstructor[] = [
|
|
28
|
-
ARP,
|
|
29
|
-
EthernetII,
|
|
30
|
-
Goose,
|
|
31
|
-
IEC61850SampledValues,
|
|
32
|
-
ICMP,
|
|
33
|
-
IPv4,
|
|
34
|
-
IPv6,
|
|
35
|
-
IPv6HopByHopOptions,
|
|
36
|
-
ICMPv6,
|
|
37
|
-
RawData,
|
|
38
|
-
TCP,
|
|
39
|
-
UDP,
|
|
40
|
-
VLAN_802dot1Q
|
|
41
|
-
]
|
|
14
|
+
import * as packetHeaders from './PacketHeaders'
|
|
42
15
|
|
|
43
16
|
export class Codec {
|
|
44
17
|
|
|
@@ -91,7 +64,7 @@ export class Codec {
|
|
|
91
64
|
* @protected
|
|
92
65
|
*/
|
|
93
66
|
protected loadHeaderCodecs(): CodecModuleConstructor[] {
|
|
94
|
-
let headerCodecs: CodecModuleConstructor[] =
|
|
67
|
+
let headerCodecs: CodecModuleConstructor[] = [...Object.values(packetHeaders)]
|
|
95
68
|
headerCodecs = headerCodecs.filter((codec: CodecModuleConstructor): boolean => codec.PROTOCOL_ID !== RawData.PROTOCOL_ID)
|
|
96
69
|
//Ensure RawData codec is in the end of header codecs
|
|
97
70
|
headerCodecs.push(RawData)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export {ARP} from './headers/ARP'
|
|
2
|
+
export {EthernetII} from './headers/EthernetII'
|
|
3
|
+
export {Goose} from './headers/Goose'
|
|
4
|
+
export {IEC61850SampledValues} from './headers/IEC61850SampledValues'
|
|
5
|
+
export {ICMP} from './headers/ICMP'
|
|
6
|
+
export {IPv4} from './headers/IPv4'
|
|
7
|
+
export {IPv6} from './headers/IPv6'
|
|
8
|
+
export {IPv6HopByHopOptions} from './headers/IPv6HopByHopOptions'
|
|
9
|
+
export {ICMPv6} from './headers/ICMPv6'
|
|
10
|
+
export {RawData} from './headers/RawData'
|
|
11
|
+
export {TCP} from './headers/TCP'
|
|
12
|
+
export {UDP} from './headers/UDP'
|
|
13
|
+
export {VLAN_802dot1Q} from './headers/VLAN_802dot1Q'
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {ProtocolJSONSchema} from '../../schema/ProtocolJSONSchema'
|
|
2
2
|
import {BaseHeader} from '../abstracts/BaseHeader'
|
|
3
|
-
import {UInt16ToHex, UInt8ToHex} from '
|
|
3
|
+
import {UInt16ToHex, UInt8ToHex} from '../../helper/NumberToHex'
|
|
4
4
|
import {StringContentEncodingEnum} from '../lib/StringContentEncodingEnum'
|
|
5
|
-
import {HexToUInt16} from '
|
|
6
|
-
import {BufferToInt16, BufferToUInt16, BufferToUInt8} from '
|
|
7
|
-
import {BufferToHex} from '
|
|
8
|
-
import {UInt16ToBuffer, UInt8ToBuffer} from '
|
|
9
|
-
import {BufferToIPv4} from '
|
|
10
|
-
import {IPv4ToBuffer} from '
|
|
5
|
+
import {HexToUInt16} from '../../helper/HexToNumber'
|
|
6
|
+
import {BufferToInt16, BufferToUInt16, BufferToUInt8} from '../../helper/BufferToNumber'
|
|
7
|
+
import {BufferToHex} from '../../helper/BufferToHex'
|
|
8
|
+
import {UInt16ToBuffer, UInt8ToBuffer} from '../../helper/NumberToBuffer'
|
|
9
|
+
import {BufferToIPv4} from '../../helper/BufferToIP'
|
|
10
|
+
import {IPv4ToBuffer} from '../../helper/IPToBuffer'
|
|
11
11
|
|
|
12
12
|
export class ARP extends BaseHeader {
|
|
13
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {BaseHeader} from '../abstracts/BaseHeader'
|
|
2
2
|
import {ProtocolJSONSchema} from '../../schema/ProtocolJSONSchema'
|
|
3
|
-
import {UInt16ToHex} from '
|
|
3
|
+
import {UInt16ToHex} from '../../helper/NumberToHex'
|
|
4
4
|
import {StringContentEncodingEnum} from '../lib/StringContentEncodingEnum'
|
|
5
5
|
|
|
6
6
|
export class EthernetII extends BaseHeader {
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
HexToUInt16,
|
|
11
11
|
HexToUInt32,
|
|
12
12
|
HexToUInt8
|
|
13
|
-
} from '
|
|
13
|
+
} from '../../helper/HexToNumber'
|
|
14
14
|
import {
|
|
15
15
|
Int16ToBERHex,
|
|
16
16
|
Int32ToBERHex,
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
UInt16ToBERHex,
|
|
20
20
|
UInt32ToBERHex,
|
|
21
21
|
UInt8ToBERHex
|
|
22
|
-
} from '
|
|
23
|
-
import {Float32ToHex, UInt16ToHex} from '
|
|
22
|
+
} from '../../helper/NumberToBERHex'
|
|
23
|
+
import {Float32ToHex, UInt16ToHex} from '../../helper/NumberToHex'
|
|
24
24
|
import {StringContentEncodingEnum} from '../lib/StringContentEncodingEnum'
|
|
25
|
-
import {UInt32ToBERBuffer} from '
|
|
26
|
-
import {BufferToUInt16} from '
|
|
27
|
-
import {UInt16ToBuffer} from '
|
|
25
|
+
import {UInt32ToBERBuffer} from '../../helper/NumberToBERBuffer'
|
|
26
|
+
import {BufferToUInt16} from '../../helper/BufferToNumber'
|
|
27
|
+
import {UInt16ToBuffer} from '../../helper/NumberToBuffer'
|
|
28
28
|
|
|
29
29
|
type AllDataItem = {
|
|
30
30
|
dataType: string
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {ProtocolJSONSchema} from '../../schema/ProtocolJSONSchema'
|
|
2
2
|
import {BaseHeader} from '../abstracts/BaseHeader'
|
|
3
|
-
import {BufferToUInt16, BufferToUInt8} from '
|
|
4
|
-
import {UInt16ToBuffer, UInt8ToBuffer} from '
|
|
3
|
+
import {BufferToUInt16, BufferToUInt8} from '../../helper/BufferToNumber'
|
|
4
|
+
import {UInt16ToBuffer, UInt8ToBuffer} from '../../helper/NumberToBuffer'
|
|
5
5
|
import {StringContentEncodingEnum} from '../lib/StringContentEncodingEnum'
|
|
6
|
-
import {BufferToHex} from '
|
|
6
|
+
import {BufferToHex} from '../../helper/BufferToHex'
|
|
7
7
|
|
|
8
8
|
export class ICMP extends BaseHeader {
|
|
9
9
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {ProtocolJSONSchema} from '../../schema/ProtocolJSONSchema'
|
|
2
2
|
import {BaseHeader} from '../abstracts/BaseHeader'
|
|
3
3
|
import {StringContentEncodingEnum} from '../lib/StringContentEncodingEnum'
|
|
4
|
-
import {BufferToUInt16, BufferToUInt8} from '
|
|
5
|
-
import {UInt16ToBuffer, UInt32ToBuffer, UInt8ToBuffer} from '
|
|
6
|
-
import {BufferToHex} from '
|
|
4
|
+
import {BufferToUInt16, BufferToUInt8} from '../../helper/BufferToNumber'
|
|
5
|
+
import {UInt16ToBuffer, UInt32ToBuffer, UInt8ToBuffer} from '../../helper/NumberToBuffer'
|
|
6
|
+
import {BufferToHex} from '../../helper/BufferToHex'
|
|
7
7
|
import {CodecModule} from '../types/CodecModule'
|
|
8
|
-
import {IPv6ToBuffer} from '
|
|
8
|
+
import {IPv6ToBuffer} from '../../helper/IPToBuffer'
|
|
9
9
|
|
|
10
10
|
export class ICMPv6 extends BaseHeader {
|
|
11
11
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {ProtocolJSONSchema} from '../../schema/ProtocolJSONSchema'
|
|
2
2
|
import {BaseHeader} from '../abstracts/BaseHeader'
|
|
3
3
|
import TLV from 'node-tlv'
|
|
4
|
-
import {HexToUInt16} from '
|
|
5
|
-
import {UInt16ToBERHex} from '
|
|
6
|
-
import {UInt16ToHex, UInt32ToHex, UInt8ToHex} from '
|
|
4
|
+
import {HexToUInt16} from '../../helper/HexToNumber'
|
|
5
|
+
import {UInt16ToBERHex} from '../../helper/NumberToBERHex'
|
|
6
|
+
import {UInt16ToHex, UInt32ToHex, UInt8ToHex} from '../../helper/NumberToHex'
|
|
7
7
|
import {StringContentEncodingEnum} from '../lib/StringContentEncodingEnum'
|
|
8
|
-
import {BufferToUInt16, BufferToUInt32, BufferToUInt64, BufferToUInt8} from '
|
|
9
|
-
import {UInt16ToBuffer} from '
|
|
8
|
+
import {BufferToUInt16, BufferToUInt32, BufferToUInt64, BufferToUInt8} from '../../helper/BufferToNumber'
|
|
9
|
+
import {UInt16ToBuffer} from '../../helper/NumberToBuffer'
|
|
10
10
|
|
|
11
11
|
type ASDUItem = {
|
|
12
12
|
svID: string
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {ProtocolJSONSchema} from '../../schema/ProtocolJSONSchema'
|
|
2
2
|
import {BaseHeader} from '../abstracts/BaseHeader'
|
|
3
|
-
import {UInt16ToHex} from '
|
|
3
|
+
import {UInt16ToHex} from '../../helper/NumberToHex'
|
|
4
4
|
import {CodecModule} from '../types/CodecModule'
|
|
5
5
|
import {StringContentEncodingEnum} from '../lib/StringContentEncodingEnum'
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
6
|
+
import {BufferToUInt16, BufferToUInt8} from '../../helper/BufferToNumber'
|
|
7
|
+
import {UInt16ToBuffer, UInt8ToBuffer} from '../../helper/NumberToBuffer'
|
|
8
|
+
import {BufferToHex} from '../../helper/BufferToHex'
|
|
9
|
+
import {IPv4ToBuffer} from '../../helper/IPToBuffer'
|
|
10
|
+
import {BufferToIPv4} from '../../helper/BufferToIP'
|
|
11
|
+
import {HexToBuffer} from '../../helper/HexToBuffer'
|
|
12
12
|
|
|
13
13
|
export class IPv4 extends BaseHeader {
|
|
14
14
|
|
|
@@ -301,7 +301,7 @@ export class IPv4 extends BaseHeader {
|
|
|
301
301
|
},
|
|
302
302
|
encode: (): void => {
|
|
303
303
|
if (!this.instance.options.isUndefined()) {
|
|
304
|
-
let optionsBuffer: Buffer =
|
|
304
|
+
let optionsBuffer: Buffer = HexToBuffer(this.instance.options.getValue(''))
|
|
305
305
|
if (optionsBuffer.length > 40) optionsBuffer = optionsBuffer.subarray(0, 40)
|
|
306
306
|
const estimateHdrLen: number = this.length + optionsBuffer.length
|
|
307
307
|
if (estimateHdrLen % 4) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {ProtocolJSONSchema} from '../../schema/ProtocolJSONSchema'
|
|
2
2
|
import {BaseHeader} from '../abstracts/BaseHeader'
|
|
3
|
-
import {UInt16ToHex} from '
|
|
3
|
+
import {UInt16ToHex} from '../../helper/NumberToHex'
|
|
4
4
|
import {StringContentEncodingEnum} from '../lib/StringContentEncodingEnum'
|
|
5
|
-
import {BufferToUInt16, BufferToUInt8} from '
|
|
6
|
-
import {UInt16ToBuffer, UInt8ToBuffer} from '
|
|
7
|
-
import {BufferToIPv6} from '
|
|
8
|
-
import {IPv6ToBuffer} from '
|
|
5
|
+
import {BufferToUInt16, BufferToUInt8} from '../../helper/BufferToNumber'
|
|
6
|
+
import {UInt16ToBuffer, UInt8ToBuffer} from '../../helper/NumberToBuffer'
|
|
7
|
+
import {BufferToIPv6} from '../../helper/BufferToIP'
|
|
8
|
+
import {IPv6ToBuffer} from '../../helper/IPToBuffer'
|
|
9
9
|
import {CodecModule} from '../types/CodecModule'
|
|
10
10
|
|
|
11
11
|
export class IPv6 extends BaseHeader {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {ProtocolJSONSchema} from '../../schema/ProtocolJSONSchema'
|
|
2
2
|
import {BaseHeader} from '../abstracts/BaseHeader'
|
|
3
|
-
import {BufferToUInt8} from '
|
|
4
|
-
import {UInt16ToBuffer, UInt32ToBuffer, UInt64ToBuffer, UInt8ToBuffer} from '
|
|
3
|
+
import {BufferToUInt8} from '../../helper/BufferToNumber'
|
|
4
|
+
import {UInt16ToBuffer, UInt32ToBuffer, UInt64ToBuffer, UInt8ToBuffer} from '../../helper/NumberToBuffer'
|
|
5
5
|
import {StringContentEncodingEnum} from '../lib/StringContentEncodingEnum'
|
|
6
6
|
import TLV from 'node-tlv'
|
|
7
|
-
import {HexToUInt16, HexToUInt32, HexToUInt64, HexToUInt8} from '
|
|
7
|
+
import {HexToUInt16, HexToUInt32, HexToUInt64, HexToUInt8} from '../../helper/HexToNumber'
|
|
8
8
|
|
|
9
9
|
//Type=1 PadN
|
|
10
10
|
//Type=4 Tunnel Encapsulation Limit
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {ProtocolJSONSchema} from '../../schema/ProtocolJSONSchema'
|
|
2
2
|
import {BaseHeader} from '../abstracts/BaseHeader'
|
|
3
3
|
import {StringContentEncodingEnum} from '../lib/StringContentEncodingEnum'
|
|
4
|
-
import {BufferToHex} from '
|
|
4
|
+
import {BufferToHex} from '../../helper/BufferToHex'
|
|
5
5
|
|
|
6
6
|
export class RawData extends BaseHeader {
|
|
7
7
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {ProtocolJSONSchema} from '../../schema/ProtocolJSONSchema'
|
|
2
2
|
import {BaseHeader} from '../abstracts/BaseHeader'
|
|
3
|
-
import {BufferToUInt16, BufferToUInt32, BufferToUInt64, BufferToUInt8} from '
|
|
4
|
-
import {UInt16ToBuffer, UInt32ToBuffer, UInt64ToBuffer, UInt8ToBuffer} from '
|
|
5
|
-
import {IPv6ToBuffer} from '
|
|
3
|
+
import {BufferToUInt16, BufferToUInt32, BufferToUInt64, BufferToUInt8} from '../../helper/BufferToNumber'
|
|
4
|
+
import {UInt16ToBuffer, UInt32ToBuffer, UInt64ToBuffer, UInt8ToBuffer} from '../../helper/NumberToBuffer'
|
|
5
|
+
import {IPv6ToBuffer} from '../../helper/IPToBuffer'
|
|
6
6
|
import {CodecModule} from '../types/CodecModule'
|
|
7
7
|
import {StringContentEncodingEnum} from '../lib/StringContentEncodingEnum'
|
|
8
|
-
import {UInt64ToHex} from '
|
|
9
|
-
import {HexToUInt64} from '
|
|
8
|
+
import {UInt64ToHex} from '../../helper/NumberToHex'
|
|
9
|
+
import {HexToUInt64} from '../../helper/HexToNumber'
|
|
10
10
|
|
|
11
11
|
enum TCPOption {
|
|
12
12
|
End_of_Option_List = 'EOL',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {ProtocolJSONSchema} from '../../schema/ProtocolJSONSchema'
|
|
2
2
|
import {BaseHeader} from '../abstracts/BaseHeader'
|
|
3
|
-
import {BufferToUInt16} from '
|
|
4
|
-
import {UInt16ToBuffer, UInt8ToBuffer} from '
|
|
5
|
-
import {IPv6ToBuffer} from '
|
|
3
|
+
import {BufferToUInt16} from '../../helper/BufferToNumber'
|
|
4
|
+
import {UInt16ToBuffer, UInt8ToBuffer} from '../../helper/NumberToBuffer'
|
|
5
|
+
import {IPv6ToBuffer} from '../../helper/IPToBuffer'
|
|
6
6
|
import {CodecModule} from '../types/CodecModule'
|
|
7
7
|
|
|
8
8
|
export class UDP extends BaseHeader {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {ProtocolJSONSchema} from '../../schema/ProtocolJSONSchema'
|
|
2
2
|
import {BaseHeader} from '../abstracts/BaseHeader'
|
|
3
|
-
import {UInt16ToHex} from '
|
|
4
|
-
import {BufferToHex} from '
|
|
3
|
+
import {UInt16ToHex} from '../../helper/NumberToHex'
|
|
4
|
+
import {BufferToHex} from '../../helper/BufferToHex'
|
|
5
5
|
|
|
6
6
|
export class VLAN_802dot1Q extends BaseHeader {
|
|
7
7
|
public SCHEMA: ProtocolJSONSchema = {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convert hex to buffer
|
|
3
|
+
* @param hex
|
|
4
|
+
* @param bufferLength
|
|
5
|
+
* @constructor
|
|
6
|
+
*/
|
|
7
|
+
export function HexToBuffer(hex: string, bufferLength?: number): Buffer {
|
|
8
|
+
if (!hex) return Buffer.alloc(0)
|
|
9
|
+
const inputHex: string = hex.length % 2 ? hex.padStart(hex.length + 1, '0') : hex
|
|
10
|
+
const outputBufferLength: number = bufferLength ? bufferLength : inputHex.length / 2
|
|
11
|
+
let buffer: Buffer = Buffer.from(inputHex, 'hex')
|
|
12
|
+
if (buffer.length > outputBufferLength) {
|
|
13
|
+
buffer.subarray(0, outputBufferLength)
|
|
14
|
+
} else if (buffer.length < outputBufferLength) {
|
|
15
|
+
const paddingLength: number = outputBufferLength - buffer.length
|
|
16
|
+
buffer = Buffer.concat([
|
|
17
|
+
Buffer.alloc(paddingLength, 0x00),
|
|
18
|
+
buffer
|
|
19
|
+
])
|
|
20
|
+
}
|
|
21
|
+
return buffer
|
|
22
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {Codec} from '../../lib/codec/Codec'
|
|
2
2
|
import {FlexibleObject} from '../../lib/codec/lib/FlexibleObject'
|
|
3
|
-
import {UInt8ToHex} from '../../lib/
|
|
3
|
+
import {UInt8ToHex} from '../../lib/helper/NumberToHex'
|
|
4
4
|
|
|
5
5
|
async function DecodeAndEncode(packet: string): Promise<void> {
|
|
6
6
|
const packetBuffer: Buffer = Buffer.from(packet, 'base64')
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BufferToHex.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/lib/BufferToHex.ts"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAElD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BufferToIP.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/lib/BufferToIP.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEnD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BufferToNumber.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/lib/BufferToNumber.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAsE,CAAA;AACrH,eAAO,MAAM,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAuE,CAAA;AACvH,eAAO,MAAM,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAuE,CAAA;AACvH,eAAO,MAAM,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAuE,CAAA;AACvH,eAAO,MAAM,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAuE,CAAA;AACvH,eAAO,MAAM,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAwE,CAAA;AACzH,eAAO,MAAM,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAwE,CAAA;AACzH,eAAO,MAAM,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAwE,CAAA;AACzH,eAAO,MAAM,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAyE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FixHexString.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/lib/FixHexString.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,UAE1C"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FixHexString = FixHexString;
|
|
4
|
-
/**
|
|
5
|
-
* Fix Hex string length
|
|
6
|
-
* @param rawHex
|
|
7
|
-
* @constructor
|
|
8
|
-
*/
|
|
9
|
-
function FixHexString(rawHex) {
|
|
10
|
-
return rawHex.length % 2 ? `0${rawHex}` : rawHex;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HexToNumber.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/lib/HexToNumber.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAwE,CAAA;AACjH,eAAO,MAAM,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAyE,CAAA;AACnH,eAAO,MAAM,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAyE,CAAA;AACnH,eAAO,MAAM,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAMzC,CAAA;AACD,eAAO,MAAM,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAyE,CAAA;AACnH,eAAO,MAAM,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAA0E,CAAA;AACrH,eAAO,MAAM,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAA0E,CAAA;AACrH,eAAO,MAAM,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAK1C,CAAA;AACD,eAAO,MAAM,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAK3C,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IPToBuffer.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/lib/IPToBuffer.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGjD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMjD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NumberToBERBuffer.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/lib/NumberToBERBuffer.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAA2E,CAAA;AAC5H,eAAO,MAAM,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAA4E,CAAA;AAC9H,eAAO,MAAM,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAA4E,CAAA;AAC9H,eAAO,MAAM,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAA4E,CAAA;AAC9H,eAAO,MAAM,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAA4E,CAAA;AAC9H,eAAO,MAAM,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAA6E,CAAA;AAChI,eAAO,MAAM,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAA6E,CAAA;AAChI,eAAO,MAAM,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAA6E,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NumberToBERHex.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/lib/NumberToBERHex.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAA4G,CAAA;AAC1J,eAAO,MAAM,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAA8G,CAAA;AAC7J,eAAO,MAAM,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAA8G,CAAA;AAC7J,eAAO,MAAM,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAwE,CAAA;AACvH,eAAO,MAAM,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAgE,CAAA;AAC/G,eAAO,MAAM,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAgE,CAAA;AAChH,eAAO,MAAM,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAgE,CAAA;AAChH,eAAO,MAAM,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAwE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NumberToBuffer.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/lib/NumberToBuffer.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAwE,CAAA;AACtH,eAAO,MAAM,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAyE,CAAA;AACxH,eAAO,MAAM,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAyE,CAAA;AACxH,eAAO,MAAM,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAyE,CAAA;AACxH,eAAO,MAAM,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAyE,CAAA;AACxH,eAAO,MAAM,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAA0E,CAAA;AAC1H,eAAO,MAAM,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAA0E,CAAA;AAC1H,eAAO,MAAM,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAA0E,CAAA;AAC1H,eAAO,MAAM,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAA2E,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NumberToHex.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/lib/NumberToHex.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAmH,CAAA;AAC9J,eAAO,MAAM,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAqH,CAAA;AACjK,eAAO,MAAM,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAqH,CAAA;AACjK,eAAO,MAAM,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAgF,CAAA;AAC5H,eAAO,MAAM,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAuE,CAAA;AACnH,eAAO,MAAM,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAuE,CAAA;AACpH,eAAO,MAAM,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAuE,CAAA;AACpH,eAAO,MAAM,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAgF,CAAA;AAE7H,eAAO,MAAM,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAK7C,CAAA"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|