netkitty 0.0.35 → 1.1.0
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/CHANGELOG.md +31 -0
- package/README.md +91 -2
- package/README.zh-CN.md +89 -0
- package/dist/analysis.d.ts +4 -0
- package/dist/{CodecHeaderExports.js → analysis.js} +4 -1
- package/dist/capture.d.ts +5 -0
- package/dist/capture.js +21 -0
- package/dist/codec.d.ts +5 -0
- package/dist/codec.js +21 -0
- package/dist/iface.d.ts +4 -0
- package/dist/iface.js +20 -0
- package/dist/pcap.d.ts +10 -0
- package/dist/pcap.js +27 -0
- package/dist/replay.d.ts +5 -0
- package/dist/replay.js +21 -0
- package/package.json +65 -59
- package/.eslintrc.json +0 -53
- package/.idea/codeStyles/Project.xml +0 -18
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/inspectionProfiles/Project_Default.xml +0 -11
- package/.idea/modules.xml +0 -8
- package/.idea/netkitty.iml +0 -12
- package/.idea/vcs.xml +0 -6
- package/assets/NetKitty.png +0 -0
- package/binding.gyp +0 -5
- package/cpp/nodepcap/deps/include/Packet32.h +0 -429
- package/cpp/nodepcap/deps/include/pcap/bluetooth.h +0 -56
- package/cpp/nodepcap/deps/include/pcap/bpf.h +0 -292
- package/cpp/nodepcap/deps/include/pcap/can_socketcan.h +0 -56
- package/cpp/nodepcap/deps/include/pcap/compiler-tests.h +0 -163
- package/cpp/nodepcap/deps/include/pcap/dlt.h +0 -1514
- package/cpp/nodepcap/deps/include/pcap/funcattrs.h +0 -325
- package/cpp/nodepcap/deps/include/pcap/ipnet.h +0 -43
- package/cpp/nodepcap/deps/include/pcap/namedb.h +0 -84
- package/cpp/nodepcap/deps/include/pcap/nflog.h +0 -94
- package/cpp/nodepcap/deps/include/pcap/pcap-inttypes.h +0 -101
- package/cpp/nodepcap/deps/include/pcap/pcap.h +0 -1219
- package/cpp/nodepcap/deps/include/pcap/sll.h +0 -149
- package/cpp/nodepcap/deps/include/pcap/socket.h +0 -84
- package/cpp/nodepcap/deps/include/pcap/usb.h +0 -143
- package/cpp/nodepcap/deps/include/pcap/vlan.h +0 -46
- package/cpp/nodepcap/deps/include/pcap-bpf.h +0 -45
- package/cpp/nodepcap/deps/include/pcap-namedb.h +0 -40
- package/cpp/nodepcap/deps/include/pcap.h +0 -43
- package/cpp/nodepcap/deps/lib/ARM64/Packet.lib +0 -0
- package/cpp/nodepcap/deps/lib/Packet.lib +0 -0
- package/cpp/nodepcap/deps/lib/wpcap.lib +0 -0
- package/cpp/nodepcap/deps/lib/x64/Packet.lib +0 -0
- package/cpp/nodepcap/deps/lib/x64/wpcap.lib +0 -0
- package/cpp/nodepcap/nodepcap.gypi +0 -104
- package/cpp/nodepcap/src/binding.cc +0 -14
- package/cpp/nodepcap/src/capture.cc +0 -400
- package/cpp/nodepcap/src/capture.h +0 -53
- package/cpp/nodepcap/src/utils.cc +0 -218
- package/cpp/nodepcap/src/utils.h +0 -13
- package/dist/CodecExports.d.ts +0 -34
- package/dist/CodecExports.d.ts.map +0 -1
- package/dist/CodecExports.js +0 -23
- package/dist/CodecHeaderExports.d.ts +0 -2
- package/dist/CodecHeaderExports.d.ts.map +0 -1
- package/dist/HelperExports.d.ts +0 -11
- package/dist/HelperExports.d.ts.map +0 -1
- package/dist/HelperExports.js +0 -72
- package/dist/NetworkExports.d.ts +0 -13
- package/dist/NetworkExports.d.ts.map +0 -1
- package/dist/NetworkExports.js +0 -13
- package/dist/PcapExports.d.ts +0 -30
- package/dist/PcapExports.d.ts.map +0 -1
- package/dist/PcapExports.js +0 -33
- package/dist/errors/ActionNotFoundError.d.ts +0 -5
- package/dist/errors/ActionNotFoundError.d.ts.map +0 -1
- package/dist/errors/ActionNotFoundError.js +0 -12
- package/dist/errors/CodecSchemaValidateError.d.ts +0 -5
- package/dist/errors/CodecSchemaValidateError.d.ts.map +0 -1
- package/dist/errors/CodecSchemaValidateError.js +0 -12
- package/dist/errors/DeviceNotFoundError.d.ts +0 -5
- package/dist/errors/DeviceNotFoundError.d.ts.map +0 -1
- package/dist/errors/DeviceNotFoundError.js +0 -12
- package/dist/errors/NoAvailableCodecError.d.ts +0 -5
- package/dist/errors/NoAvailableCodecError.d.ts.map +0 -1
- package/dist/errors/NoAvailableCodecError.js +0 -12
- package/dist/errors/NpcapLoadError.d.ts +0 -5
- package/dist/errors/NpcapLoadError.d.ts.map +0 -1
- package/dist/errors/NpcapLoadError.js +0 -12
- package/dist/errors/SocketDownError.d.ts +0 -5
- package/dist/errors/SocketDownError.d.ts.map +0 -1
- package/dist/errors/SocketDownError.js +0 -12
- package/dist/errors/UnknownPipeMessageTypeError.d.ts +0 -5
- package/dist/errors/UnknownPipeMessageTypeError.d.ts.map +0 -1
- package/dist/errors/UnknownPipeMessageTypeError.js +0 -12
- package/dist/errors/common/ErrorCode.d.ts +0 -31
- package/dist/errors/common/ErrorCode.d.ts.map +0 -1
- package/dist/errors/common/ErrorCode.js +0 -33
- package/dist/lib/GeneratePipeAddress.d.ts +0 -7
- package/dist/lib/GeneratePipeAddress.d.ts.map +0 -1
- package/dist/lib/GeneratePipeAddress.js +0 -23
- package/dist/lib/GetBinding.d.ts +0 -2
- package/dist/lib/GetBinding.d.ts.map +0 -1
- package/dist/lib/GetBinding.js +0 -6
- package/dist/lib/GetCaptureTemporaryDirectory.d.ts +0 -7
- package/dist/lib/GetCaptureTemporaryDirectory.d.ts.map +0 -1
- package/dist/lib/GetCaptureTemporaryDirectory.js +0 -15
- package/dist/lib/GetDeviceCaptureTemporaryFilename.d.ts +0 -8
- package/dist/lib/GetDeviceCaptureTemporaryFilename.d.ts.map +0 -1
- package/dist/lib/GetDeviceCaptureTemporaryFilename.js +0 -18
- package/dist/lib/codec/Codec.d.ts +0 -32
- package/dist/lib/codec/Codec.d.ts.map +0 -1
- package/dist/lib/codec/Codec.js +0 -183
- package/dist/lib/codec/PacketHeaders.d.ts +0 -22
- package/dist/lib/codec/PacketHeaders.d.ts.map +0 -1
- package/dist/lib/codec/PacketHeaders.js +0 -47
- package/dist/lib/codec/abstracts/BaseHeader.d.ts +0 -217
- package/dist/lib/codec/abstracts/BaseHeader.d.ts.map +0 -1
- package/dist/lib/codec/abstracts/BaseHeader.js +0 -356
- package/dist/lib/codec/headers/ARP.d.ts +0 -10
- package/dist/lib/codec/headers/ARP.d.ts.map +0 -1
- package/dist/lib/codec/headers/ARP.js +0 -224
- package/dist/lib/codec/headers/EthernetII.d.ts +0 -10
- package/dist/lib/codec/headers/EthernetII.d.ts.map +0 -1
- package/dist/lib/codec/headers/EthernetII.js +0 -81
- package/dist/lib/codec/headers/Goose.d.ts +0 -104
- package/dist/lib/codec/headers/Goose.d.ts.map +0 -1
- package/dist/lib/codec/headers/Goose.js +0 -1005
- package/dist/lib/codec/headers/ICMP.d.ts +0 -15
- package/dist/lib/codec/headers/ICMP.d.ts.map +0 -1
- package/dist/lib/codec/headers/ICMP.js +0 -147
- package/dist/lib/codec/headers/ICMPv6.d.ts +0 -15
- package/dist/lib/codec/headers/ICMPv6.d.ts.map +0 -1
- package/dist/lib/codec/headers/ICMPv6.js +0 -128
- package/dist/lib/codec/headers/IEC104_I_Frame.d.ts +0 -10
- package/dist/lib/codec/headers/IEC104_I_Frame.d.ts.map +0 -1
- package/dist/lib/codec/headers/IEC104_I_Frame.js +0 -6411
- package/dist/lib/codec/headers/IEC104_S_Frame.d.ts +0 -10
- package/dist/lib/codec/headers/IEC104_S_Frame.d.ts.map +0 -1
- package/dist/lib/codec/headers/IEC104_S_Frame.js +0 -105
- package/dist/lib/codec/headers/IEC104_U_Frame.d.ts +0 -10
- package/dist/lib/codec/headers/IEC104_U_Frame.d.ts.map +0 -1
- package/dist/lib/codec/headers/IEC104_U_Frame.js +0 -155
- package/dist/lib/codec/headers/IEC61850SampledValues.d.ts +0 -13
- package/dist/lib/codec/headers/IEC61850SampledValues.d.ts.map +0 -1
- package/dist/lib/codec/headers/IEC61850SampledValues.js +0 -370
- package/dist/lib/codec/headers/IPv4.d.ts +0 -16
- package/dist/lib/codec/headers/IPv4.d.ts.map +0 -1
- package/dist/lib/codec/headers/IPv4.js +0 -339
- package/dist/lib/codec/headers/IPv6.d.ts +0 -10
- package/dist/lib/codec/headers/IPv6.d.ts.map +0 -1
- package/dist/lib/codec/headers/IPv6.js +0 -177
- package/dist/lib/codec/headers/IPv6HopByHopOptions.d.ts +0 -71
- package/dist/lib/codec/headers/IPv6HopByHopOptions.d.ts.map +0 -1
- package/dist/lib/codec/headers/IPv6HopByHopOptions.js +0 -517
- package/dist/lib/codec/headers/RawData.d.ts +0 -11
- package/dist/lib/codec/headers/RawData.d.ts.map +0 -1
- package/dist/lib/codec/headers/RawData.js +0 -36
- package/dist/lib/codec/headers/TCP.d.ts +0 -16
- package/dist/lib/codec/headers/TCP.d.ts.map +0 -1
- package/dist/lib/codec/headers/TCP.js +0 -917
- package/dist/lib/codec/headers/TLS_Alert.d.ts +0 -10
- package/dist/lib/codec/headers/TLS_Alert.d.ts.map +0 -1
- package/dist/lib/codec/headers/TLS_Alert.js +0 -624
- package/dist/lib/codec/headers/TLS_ApplicationData.d.ts +0 -10
- package/dist/lib/codec/headers/TLS_ApplicationData.d.ts.map +0 -1
- package/dist/lib/codec/headers/TLS_ApplicationData.js +0 -155
- package/dist/lib/codec/headers/TLS_ChangeCipherSpec.d.ts +0 -10
- package/dist/lib/codec/headers/TLS_ChangeCipherSpec.d.ts.map +0 -1
- package/dist/lib/codec/headers/TLS_ChangeCipherSpec.js +0 -154
- package/dist/lib/codec/headers/TLS_Handshake.d.ts +0 -10
- package/dist/lib/codec/headers/TLS_Handshake.d.ts.map +0 -1
- package/dist/lib/codec/headers/TLS_Handshake.js +0 -339
- package/dist/lib/codec/headers/TLS_Heartbeat.d.ts +0 -10
- package/dist/lib/codec/headers/TLS_Heartbeat.d.ts.map +0 -1
- package/dist/lib/codec/headers/TLS_Heartbeat.js +0 -206
- package/dist/lib/codec/headers/UDP.d.ts +0 -16
- package/dist/lib/codec/headers/UDP.d.ts.map +0 -1
- package/dist/lib/codec/headers/UDP.js +0 -192
- package/dist/lib/codec/headers/VLAN_802dot1Q.d.ts +0 -10
- package/dist/lib/codec/headers/VLAN_802dot1Q.d.ts.map +0 -1
- package/dist/lib/codec/headers/VLAN_802dot1Q.js +0 -82
- package/dist/lib/codec/lib/FlexibleObject.d.ts +0 -28
- package/dist/lib/codec/lib/FlexibleObject.d.ts.map +0 -1
- package/dist/lib/codec/lib/FlexibleObject.js +0 -102
- package/dist/lib/codec/lib/GetBERIntegerLengthFromBuffer.d.ts +0 -7
- package/dist/lib/codec/lib/GetBERIntegerLengthFromBuffer.d.ts.map +0 -1
- package/dist/lib/codec/lib/GetBERIntegerLengthFromBuffer.js +0 -16
- package/dist/lib/codec/lib/ProcessPacketPostHandlers.d.ts +0 -14
- package/dist/lib/codec/lib/ProcessPacketPostHandlers.d.ts.map +0 -1
- package/dist/lib/codec/lib/ProcessPacketPostHandlers.js +0 -53
- package/dist/lib/codec/lib/SortPostHandlers.d.ts +0 -8
- package/dist/lib/codec/lib/SortPostHandlers.d.ts.map +0 -1
- package/dist/lib/codec/lib/SortPostHandlers.js +0 -11
- package/dist/lib/codec/lib/StringContentEncodingEnum.d.ts +0 -11
- package/dist/lib/codec/lib/StringContentEncodingEnum.d.ts.map +0 -1
- package/dist/lib/codec/lib/StringContentEncodingEnum.js +0 -14
- package/dist/lib/codec/types/CodecData.d.ts +0 -7
- package/dist/lib/codec/types/CodecData.d.ts.map +0 -1
- package/dist/lib/codec/types/CodecData.js +0 -2
- package/dist/lib/codec/types/CodecDecodeResult.d.ts +0 -11
- package/dist/lib/codec/types/CodecDecodeResult.d.ts.map +0 -1
- package/dist/lib/codec/types/CodecDecodeResult.js +0 -2
- package/dist/lib/codec/types/CodecEncodeInput.d.ts +0 -9
- package/dist/lib/codec/types/CodecEncodeInput.d.ts.map +0 -1
- package/dist/lib/codec/types/CodecEncodeInput.js +0 -2
- package/dist/lib/codec/types/CodecEncodeResult.d.ts +0 -6
- package/dist/lib/codec/types/CodecEncodeResult.d.ts.map +0 -1
- package/dist/lib/codec/types/CodecEncodeResult.js +0 -2
- package/dist/lib/codec/types/CodecErrorInfo.d.ts +0 -6
- package/dist/lib/codec/types/CodecErrorInfo.d.ts.map +0 -1
- package/dist/lib/codec/types/CodecErrorInfo.js +0 -2
- package/dist/lib/codec/types/CodecModule.d.ts +0 -3
- package/dist/lib/codec/types/CodecModule.d.ts.map +0 -1
- package/dist/lib/codec/types/CodecModule.js +0 -2
- package/dist/lib/codec/types/CodecModuleConstructor.d.ts +0 -3
- package/dist/lib/codec/types/CodecModuleConstructor.d.ts.map +0 -1
- package/dist/lib/codec/types/CodecModuleConstructor.js +0 -2
- package/dist/lib/codec/types/CodecSchema.d.ts +0 -7
- package/dist/lib/codec/types/CodecSchema.d.ts.map +0 -1
- package/dist/lib/codec/types/CodecSchema.js +0 -2
- package/dist/lib/codec/types/HeaderTreeNode.d.ts +0 -5
- package/dist/lib/codec/types/HeaderTreeNode.d.ts.map +0 -1
- package/dist/lib/codec/types/HeaderTreeNode.js +0 -2
- package/dist/lib/codec/types/PostHandlerItem.d.ts +0 -5
- package/dist/lib/codec/types/PostHandlerItem.d.ts.map +0 -1
- package/dist/lib/codec/types/PostHandlerItem.js +0 -2
- package/dist/lib/helper/BufferToHex.d.ts +0 -2
- package/dist/lib/helper/BufferToHex.d.ts.map +0 -1
- package/dist/lib/helper/BufferToHex.js +0 -6
- package/dist/lib/helper/BufferToIP.d.ts +0 -13
- package/dist/lib/helper/BufferToIP.d.ts.map +0 -1
- package/dist/lib/helper/BufferToIP.js +0 -21
- package/dist/lib/helper/BufferToNumber.d.ts +0 -10
- package/dist/lib/helper/BufferToNumber.d.ts.map +0 -1
- package/dist/lib/helper/BufferToNumber.js +0 -22
- package/dist/lib/helper/HexToBuffer.d.ts +0 -8
- package/dist/lib/helper/HexToBuffer.d.ts.map +0 -1
- package/dist/lib/helper/HexToBuffer.js +0 -27
- package/dist/lib/helper/HexToNumber.d.ts +0 -10
- package/dist/lib/helper/HexToNumber.d.ts.map +0 -1
- package/dist/lib/helper/HexToNumber.js +0 -39
- package/dist/lib/helper/IPToBuffer.d.ts +0 -13
- package/dist/lib/helper/IPToBuffer.d.ts.map +0 -1
- package/dist/lib/helper/IPToBuffer.js +0 -28
- package/dist/lib/helper/NumberToBERBuffer.d.ts +0 -10
- package/dist/lib/helper/NumberToBERBuffer.d.ts.map +0 -1
- package/dist/lib/helper/NumberToBERBuffer.js +0 -22
- package/dist/lib/helper/NumberToBERHex.d.ts +0 -10
- package/dist/lib/helper/NumberToBERHex.d.ts.map +0 -1
- package/dist/lib/helper/NumberToBERHex.js +0 -27
- package/dist/lib/helper/NumberToBuffer.d.ts +0 -10
- package/dist/lib/helper/NumberToBuffer.d.ts.map +0 -1
- package/dist/lib/helper/NumberToBuffer.js +0 -22
- package/dist/lib/helper/NumberToHex.d.ts +0 -10
- package/dist/lib/helper/NumberToHex.d.ts.map +0 -1
- package/dist/lib/helper/NumberToHex.js +0 -26
- package/dist/lib/nodepcap/Capture.d.ts +0 -81
- package/dist/lib/nodepcap/Capture.d.ts.map +0 -1
- package/dist/lib/nodepcap/Capture.js +0 -323
- package/dist/lib/nodepcap/GetNetworkInterfaces.d.ts +0 -7
- package/dist/lib/nodepcap/GetNetworkInterfaces.d.ts.map +0 -1
- package/dist/lib/nodepcap/GetNetworkInterfaces.js +0 -22
- package/dist/lib/nodepcap/interfaces/IBindingCapture.d.ts +0 -16
- package/dist/lib/nodepcap/interfaces/IBindingCapture.d.ts.map +0 -1
- package/dist/lib/nodepcap/interfaces/IBindingCapture.js +0 -2
- package/dist/lib/nodepcap/interfaces/IBindingCaptureOptions.d.ts +0 -5
- package/dist/lib/nodepcap/interfaces/IBindingCaptureOptions.d.ts.map +0 -1
- package/dist/lib/nodepcap/interfaces/IBindingCaptureOptions.js +0 -2
- package/dist/lib/nodepcap/interfaces/ICaptureOptions.d.ts +0 -23
- package/dist/lib/nodepcap/interfaces/ICaptureOptions.d.ts.map +0 -1
- package/dist/lib/nodepcap/interfaces/ICaptureOptions.js +0 -2
- package/dist/lib/nodepcap/interfaces/INetworkInterface.d.ts +0 -5
- package/dist/lib/nodepcap/interfaces/INetworkInterface.d.ts.map +0 -1
- package/dist/lib/nodepcap/interfaces/INetworkInterface.js +0 -2
- package/dist/lib/nodepcap/lib/BindingCapture.d.ts +0 -15
- package/dist/lib/nodepcap/lib/BindingCapture.d.ts.map +0 -1
- package/dist/lib/nodepcap/lib/BindingCapture.js +0 -35
- package/dist/lib/nodepcap/lib/GetNodePcapBinding.d.ts +0 -2
- package/dist/lib/nodepcap/lib/GetNodePcapBinding.d.ts.map +0 -1
- package/dist/lib/nodepcap/lib/GetNodePcapBinding.js +0 -55
- package/dist/lib/nodepcap/lib/GetNodePcapBindingCapture.d.ts +0 -3
- package/dist/lib/nodepcap/lib/GetNodePcapBindingCapture.d.ts.map +0 -1
- package/dist/lib/nodepcap/lib/GetNodePcapBindingCapture.js +0 -18
- package/dist/lib/nodepcap/workers/CaptureWorker.d.ts +0 -2
- package/dist/lib/nodepcap/workers/CaptureWorker.d.ts.map +0 -1
- package/dist/lib/nodepcap/workers/CaptureWorker.js +0 -25
- package/dist/lib/pcap/PCAPGenerator.d.ts +0 -34
- package/dist/lib/pcap/PCAPGenerator.d.ts.map +0 -1
- package/dist/lib/pcap/PCAPGenerator.js +0 -101
- package/dist/lib/pcap/PcapParser.d.ts +0 -27
- package/dist/lib/pcap/PcapParser.d.ts.map +0 -1
- package/dist/lib/pcap/PcapParser.js +0 -149
- package/dist/lib/pcap/PcapReader.d.ts +0 -112
- package/dist/lib/pcap/PcapReader.d.ts.map +0 -1
- package/dist/lib/pcap/PcapReader.js +0 -263
- package/dist/lib/pcap/PcapWriter.d.ts +0 -29
- package/dist/lib/pcap/PcapWriter.d.ts.map +0 -1
- package/dist/lib/pcap/PcapWriter.js +0 -86
- package/dist/lib/pcap/interfaces/IPcapPacketInfo.d.ts +0 -13
- package/dist/lib/pcap/interfaces/IPcapPacketInfo.d.ts.map +0 -1
- package/dist/lib/pcap/interfaces/IPcapPacketInfo.js +0 -2
- package/dist/lib/pipe/PipeClient.d.ts +0 -35
- package/dist/lib/pipe/PipeClient.d.ts.map +0 -1
- package/dist/lib/pipe/PipeClient.js +0 -71
- package/dist/lib/pipe/PipeClientSocket.d.ts +0 -39
- package/dist/lib/pipe/PipeClientSocket.d.ts.map +0 -1
- package/dist/lib/pipe/PipeClientSocket.js +0 -82
- package/dist/lib/pipe/PipeMessage.d.ts +0 -27
- package/dist/lib/pipe/PipeMessage.d.ts.map +0 -1
- package/dist/lib/pipe/PipeMessage.js +0 -61
- package/dist/lib/pipe/PipeMessageHandler.d.ts +0 -16
- package/dist/lib/pipe/PipeMessageHandler.d.ts.map +0 -1
- package/dist/lib/pipe/PipeMessageHandler.js +0 -95
- package/dist/lib/pipe/PipeServer.d.ts +0 -25
- package/dist/lib/pipe/PipeServer.d.ts.map +0 -1
- package/dist/lib/pipe/PipeServer.js +0 -59
- package/dist/lib/schema/ProtocolFieldJSONSchema.d.ts +0 -36
- package/dist/lib/schema/ProtocolFieldJSONSchema.d.ts.map +0 -1
- package/dist/lib/schema/ProtocolFieldJSONSchema.js +0 -2
- package/dist/lib/schema/ProtocolFieldJSONSchemaDefinition.d.ts +0 -3
- package/dist/lib/schema/ProtocolFieldJSONSchemaDefinition.d.ts.map +0 -1
- package/dist/lib/schema/ProtocolFieldJSONSchemaDefinition.js +0 -2
- package/dist/lib/schema/ProtocolJSONSchema.d.ts +0 -32
- package/dist/lib/schema/ProtocolJSONSchema.d.ts.map +0 -1
- package/dist/lib/schema/ProtocolJSONSchema.js +0 -2
- package/dist/tests/Test.spec.d.ts +0 -2
- package/dist/tests/Test.spec.d.ts.map +0 -1
- package/dist/tests/Test.spec.js +0 -25
- package/dist/tests/units/CaptureTest.spec.d.ts +0 -2
- package/dist/tests/units/CaptureTest.spec.d.ts.map +0 -1
- package/dist/tests/units/CaptureTest.spec.js +0 -32
- package/dist/tests/units/Codec.spec.d.ts +0 -2
- package/dist/tests/units/Codec.spec.d.ts.map +0 -1
- package/dist/tests/units/Codec.spec.js +0 -86
- package/dist/tests/units/ReadPCAP.spec.d.ts +0 -2
- package/dist/tests/units/ReadPCAP.spec.d.ts.map +0 -1
- package/dist/tests/units/ReadPCAP.spec.js +0 -14
- package/src/CodecExports.ts +0 -33
- package/src/CodecHeaderExports.ts +0 -1
- package/src/HelperExports.ts +0 -78
- package/src/NetworkExports.ts +0 -12
- package/src/PcapExports.ts +0 -32
- package/src/errors/ActionNotFoundError.ts +0 -6
- package/src/errors/CodecSchemaValidateError.ts +0 -6
- package/src/errors/DeviceNotFoundError.ts +0 -6
- package/src/errors/NoAvailableCodecError.ts +0 -6
- package/src/errors/NpcapLoadError.ts +0 -6
- package/src/errors/SocketDownError.ts +0 -6
- package/src/errors/UnknownPipeMessageTypeError.ts +0 -6
- package/src/errors/common/ErrorCode.ts +0 -30
- package/src/lib/GeneratePipeAddress.ts +0 -17
- package/src/lib/GetBinding.ts +0 -3
- package/src/lib/GetCaptureTemporaryDirectory.ts +0 -12
- package/src/lib/GetDeviceCaptureTemporaryFilename.ts +0 -13
- package/src/lib/codec/Codec.ts +0 -164
- package/src/lib/codec/PacketHeaders.ts +0 -23
- package/src/lib/codec/abstracts/BaseHeader.ts +0 -435
- package/src/lib/codec/headers/ARP.ts +0 -220
- package/src/lib/codec/headers/EthernetII.ts +0 -79
- package/src/lib/codec/headers/Goose.ts +0 -1033
- package/src/lib/codec/headers/ICMP.ts +0 -151
- package/src/lib/codec/headers/ICMPv6.ts +0 -128
- package/src/lib/codec/headers/IEC104_I_Frame.ts +0 -7373
- package/src/lib/codec/headers/IEC104_S_Frame.ts +0 -97
- package/src/lib/codec/headers/IEC104_U_Frame.ts +0 -139
- package/src/lib/codec/headers/IEC61850SampledValues.ts +0 -361
- package/src/lib/codec/headers/IPv4.ts +0 -331
- package/src/lib/codec/headers/IPv6.ts +0 -176
- package/src/lib/codec/headers/IPv6HopByHopOptions.ts +0 -552
- package/src/lib/codec/headers/RawData.ts +0 -38
- package/src/lib/codec/headers/TCP.ts +0 -952
- package/src/lib/codec/headers/TLS_Alert.ts +0 -539
- package/src/lib/codec/headers/TLS_ApplicationData.ts +0 -145
- package/src/lib/codec/headers/TLS_ChangeCipherSpec.ts +0 -146
- package/src/lib/codec/headers/TLS_Handshake.ts +0 -313
- package/src/lib/codec/headers/TLS_Heartbeat.ts +0 -188
- package/src/lib/codec/headers/UDP.ts +0 -182
- package/src/lib/codec/headers/VLAN_802dot1Q.ts +0 -79
- package/src/lib/codec/lib/FlexibleObject.ts +0 -100
- package/src/lib/codec/lib/GetBERIntegerLengthFromBuffer.ts +0 -12
- package/src/lib/codec/lib/ProcessPacketPostHandlers.ts +0 -53
- package/src/lib/codec/lib/SortPostHandlers.ts +0 -10
- package/src/lib/codec/lib/StringContentEncodingEnum.ts +0 -10
- package/src/lib/codec/types/CodecData.ts +0 -7
- package/src/lib/codec/types/CodecDecodeResult.ts +0 -11
- package/src/lib/codec/types/CodecEncodeInput.ts +0 -9
- package/src/lib/codec/types/CodecEncodeResult.ts +0 -6
- package/src/lib/codec/types/CodecErrorInfo.ts +0 -5
- package/src/lib/codec/types/CodecModule.ts +0 -3
- package/src/lib/codec/types/CodecModuleConstructor.ts +0 -3
- package/src/lib/codec/types/CodecSchema.ts +0 -7
- package/src/lib/codec/types/HeaderTreeNode.ts +0 -5
- package/src/lib/codec/types/PostHandlerItem.ts +0 -4
- package/src/lib/helper/BufferToHex.ts +0 -3
- package/src/lib/helper/BufferToIP.ts +0 -19
- package/src/lib/helper/BufferToNumber.ts +0 -31
- package/src/lib/helper/HexToBuffer.ts +0 -22
- package/src/lib/helper/HexToNumber.ts +0 -25
- package/src/lib/helper/IPToBuffer.ts +0 -25
- package/src/lib/helper/NumberToBERBuffer.ts +0 -21
- package/src/lib/helper/NumberToBERHex.ts +0 -17
- package/src/lib/helper/NumberToBuffer.ts +0 -21
- package/src/lib/helper/NumberToHex.ts +0 -15
- package/src/lib/nodepcap/Capture.ts +0 -304
- package/src/lib/nodepcap/GetNetworkInterfaces.ts +0 -18
- package/src/lib/nodepcap/interfaces/IBindingCapture.ts +0 -27
- package/src/lib/nodepcap/interfaces/IBindingCaptureOptions.ts +0 -4
- package/src/lib/nodepcap/interfaces/ICaptureOptions.ts +0 -24
- package/src/lib/nodepcap/interfaces/INetworkInterface.ts +0 -4
- package/src/lib/nodepcap/lib/BindingCapture.ts +0 -46
- package/src/lib/nodepcap/lib/GetNodePcapBinding.ts +0 -17
- package/src/lib/nodepcap/lib/GetNodePcapBindingCapture.ts +0 -15
- package/src/lib/nodepcap/workers/CaptureWorker.ts +0 -30
- package/src/lib/pcap/PCAPGenerator.ts +0 -123
- package/src/lib/pcap/PcapParser.ts +0 -170
- package/src/lib/pcap/PcapReader.ts +0 -306
- package/src/lib/pcap/PcapWriter.ts +0 -98
- package/src/lib/pcap/interfaces/IPcapPacketInfo.ts +0 -12
- package/src/lib/pipe/PipeClient.ts +0 -91
- package/src/lib/pipe/PipeClientSocket.ts +0 -99
- package/src/lib/pipe/PipeMessage.ts +0 -74
- package/src/lib/pipe/PipeMessageHandler.ts +0 -91
- package/src/lib/pipe/PipeServer.ts +0 -74
- package/src/lib/schema/ProtocolFieldJSONSchema.ts +0 -47
- package/src/lib/schema/ProtocolFieldJSONSchemaDefinition.ts +0 -3
- package/src/lib/schema/ProtocolJSONSchema.ts +0 -37
- package/src/tests/Test.spec.ts +0 -22
- package/src/tests/units/CaptureTest.spec.ts +0 -31
- package/src/tests/units/Codec.spec.ts +0 -102
- package/src/tests/units/ReadPCAP.spec.ts +0 -13
- package/test.pcap +0 -0
- package/tsconfig.json +0 -42
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetBERIntegerLengthFromBuffer.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/lib/GetBERIntegerLengthFromBuffer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAMpE"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetBERIntegerLengthFromBuffer = GetBERIntegerLengthFromBuffer;
|
|
4
|
-
/**
|
|
5
|
-
* Get BER encoded integer real length from buffer
|
|
6
|
-
* @param buffer
|
|
7
|
-
* @constructor
|
|
8
|
-
*/
|
|
9
|
-
function GetBERIntegerLengthFromBuffer(buffer) {
|
|
10
|
-
if (buffer[0] === 0) {
|
|
11
|
-
return buffer.length - 1;
|
|
12
|
-
}
|
|
13
|
-
else {
|
|
14
|
-
return buffer.length;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PostHandlerItem } from '../types/PostHandlerItem';
|
|
2
|
-
/**
|
|
3
|
-
* Process packet post encode handlers
|
|
4
|
-
* @param handlerItemsArray
|
|
5
|
-
* @constructor
|
|
6
|
-
*/
|
|
7
|
-
export declare function ProcessPacketEncodePostHandlers(handlerItemsArray: PostHandlerItem[][]): PostHandlerItem[];
|
|
8
|
-
/**
|
|
9
|
-
* Process packet post decode handlers
|
|
10
|
-
* @param handlerItemsArray
|
|
11
|
-
* @constructor
|
|
12
|
-
*/
|
|
13
|
-
export declare function ProcessPacketDecodePostHandlers(handlerItemsArray: PostHandlerItem[][]): PostHandlerItem[];
|
|
14
|
-
//# sourceMappingURL=ProcessPacketPostHandlers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProcessPacketPostHandlers.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/lib/ProcessPacketPostHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAA;AAoCxD;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,iBAAiB,EAAE,eAAe,EAAE,EAAE,GAAG,eAAe,EAAE,CAEzG;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,iBAAiB,EAAE,eAAe,EAAE,EAAE,GAAG,eAAe,EAAE,CAEzG"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProcessPacketEncodePostHandlers = ProcessPacketEncodePostHandlers;
|
|
4
|
-
exports.ProcessPacketDecodePostHandlers = ProcessPacketDecodePostHandlers;
|
|
5
|
-
const SortPostHandlers_1 = require("./SortPostHandlers");
|
|
6
|
-
/**
|
|
7
|
-
* Process packet post handlers
|
|
8
|
-
* @param handlerItemsArray
|
|
9
|
-
* @param asc
|
|
10
|
-
*/
|
|
11
|
-
function processPacketPostHandlers(handlerItemsArray, asc) {
|
|
12
|
-
let indexFactor = 10;
|
|
13
|
-
return handlerItemsArray
|
|
14
|
-
.map((handlerItems) => {
|
|
15
|
-
return (0, SortPostHandlers_1.SortPostHandlers)(handlerItems).map((handlerItem, index) => {
|
|
16
|
-
handlerItem.priority = index + 1;
|
|
17
|
-
let factor = 10;
|
|
18
|
-
let priority = handlerItem.priority;
|
|
19
|
-
while (priority > 1) {
|
|
20
|
-
priority /= 10;
|
|
21
|
-
factor *= 10;
|
|
22
|
-
}
|
|
23
|
-
indexFactor = indexFactor < factor ? factor : indexFactor;
|
|
24
|
-
return handlerItem;
|
|
25
|
-
});
|
|
26
|
-
})
|
|
27
|
-
.map((handlerItems, headerIndex) => {
|
|
28
|
-
const basePriority = (headerIndex + 1) * indexFactor;
|
|
29
|
-
const unsortedItems = handlerItems.map((handlerItem) => {
|
|
30
|
-
handlerItem.priority = basePriority + handlerItem.priority;
|
|
31
|
-
return handlerItem;
|
|
32
|
-
});
|
|
33
|
-
return asc ?
|
|
34
|
-
unsortedItems.sort((a, b) => a.priority - b.priority) :
|
|
35
|
-
unsortedItems.sort((a, b) => b.priority - a.priority);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Process packet post encode handlers
|
|
40
|
-
* @param handlerItemsArray
|
|
41
|
-
* @constructor
|
|
42
|
-
*/
|
|
43
|
-
function ProcessPacketEncodePostHandlers(handlerItemsArray) {
|
|
44
|
-
return processPacketPostHandlers(handlerItemsArray, true).reverse().flat();
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Process packet post decode handlers
|
|
48
|
-
* @param handlerItemsArray
|
|
49
|
-
* @constructor
|
|
50
|
-
*/
|
|
51
|
-
function ProcessPacketDecodePostHandlers(handlerItemsArray) {
|
|
52
|
-
return processPacketPostHandlers(handlerItemsArray, true).flat();
|
|
53
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PostHandlerItem } from '../types/PostHandlerItem';
|
|
2
|
-
/**
|
|
3
|
-
* Sort post handlers
|
|
4
|
-
* @param handlers
|
|
5
|
-
* @constructor
|
|
6
|
-
*/
|
|
7
|
-
export declare function SortPostHandlers(handlers: PostHandlerItem[]): PostHandlerItem[];
|
|
8
|
-
//# sourceMappingURL=SortPostHandlers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SortPostHandlers.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/lib/SortPostHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAA;AAExD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,eAAe,EAAE,GAAG,eAAe,EAAE,CAE/E"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SortPostHandlers = SortPostHandlers;
|
|
4
|
-
/**
|
|
5
|
-
* Sort post handlers
|
|
6
|
-
* @param handlers
|
|
7
|
-
* @constructor
|
|
8
|
-
*/
|
|
9
|
-
function SortPostHandlers(handlers) {
|
|
10
|
-
return handlers.sort((a, b) => a.priority - b.priority);
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StringContentEncodingEnum.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/lib/StringContentEncodingEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,yBAAyB;IACjC,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,IAAI,SAAS;IACb,MAAM,WAAW;CACpB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StringContentEncodingEnum = void 0;
|
|
4
|
-
var StringContentEncodingEnum;
|
|
5
|
-
(function (StringContentEncodingEnum) {
|
|
6
|
-
StringContentEncodingEnum["BINARY"] = "binary";
|
|
7
|
-
StringContentEncodingEnum["HEX"] = "hex";
|
|
8
|
-
StringContentEncodingEnum["IPv4"] = "ipv4";
|
|
9
|
-
StringContentEncodingEnum["IPv6"] = "ipv6";
|
|
10
|
-
StringContentEncodingEnum["MAC"] = "mac";
|
|
11
|
-
StringContentEncodingEnum["ASCII"] = "ascii";
|
|
12
|
-
StringContentEncodingEnum["UTF8"] = "utf8";
|
|
13
|
-
StringContentEncodingEnum["BIGINT"] = "bigint";
|
|
14
|
-
})(StringContentEncodingEnum || (exports.StringContentEncodingEnum = StringContentEncodingEnum = {}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodecData.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/types/CodecData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAA;AAEjD,MAAM,MAAM,SAAS,GAAG;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,eAAe,EAAE,EAAE,CAAA;CACpC,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { HeaderTreeNode } from './HeaderTreeNode';
|
|
2
|
-
import { CodecErrorInfo } from './CodecErrorInfo';
|
|
3
|
-
export type CodecDecodeResult = {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
nickname: string;
|
|
7
|
-
protocol: boolean;
|
|
8
|
-
errors: CodecErrorInfo[];
|
|
9
|
-
data: HeaderTreeNode;
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=CodecDecodeResult.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodecDecodeResult.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/types/CodecDecodeResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAE/C,MAAM,MAAM,iBAAiB,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;IACjB,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,IAAI,EAAE,cAAc,CAAA;CACvB,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CodecDecodeResult } from './CodecDecodeResult';
|
|
2
|
-
import { CodecErrorInfo } from './CodecErrorInfo';
|
|
3
|
-
export type CodecEncodeInput = {
|
|
4
|
-
name?: string;
|
|
5
|
-
nickname?: string;
|
|
6
|
-
protocol?: boolean;
|
|
7
|
-
errors?: CodecErrorInfo[];
|
|
8
|
-
} & CodecDecodeResult;
|
|
9
|
-
//# sourceMappingURL=CodecEncodeInput.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodecEncodeInput.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/types/CodecEncodeInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAE/C,MAAM,MAAM,gBAAgB,GAAG;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,cAAc,EAAE,CAAA;CAC5B,GAAG,iBAAiB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodecEncodeResult.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/types/CodecEncodeResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAE/C,MAAM,MAAM,iBAAiB,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,cAAc,EAAE,CAAA;CAC3B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodecErrorInfo.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/types/CodecErrorInfo.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CAClB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodecModule.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/types/CodecModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAA;AAElD,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,IAAI,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodecModuleConstructor.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/types/CodecModuleConstructor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAA;AAElD,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,OAAO,UAAU,GAAG,OAAO,UAAU,IAAI,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodecSchema.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/types/CodecSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,iCAAiC,CAAA;AAElE,MAAM,MAAM,WAAW,GAAG;IACtB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAA;CACtC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderTreeNode.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/types/HeaderTreeNode.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc,CAAA;AAE5E,MAAM,MAAM,cAAc,GAAG;IACzB,CAAC,KAAK,EAAE,MAAM,GAAG,mBAAmB,GAAG,mBAAmB,EAAE,CAAA;CAC/D,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PostHandlerItem.d.ts","sourceRoot":"","sources":["../../../../src/lib/codec/types/PostHandlerItem.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACtC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BufferToHex.d.ts","sourceRoot":"","sources":["../../../src/lib/helper/BufferToHex.ts"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAElD"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Convert Buffer to IPv4 string
|
|
3
|
-
* @param buffer
|
|
4
|
-
* @constructor
|
|
5
|
-
*/
|
|
6
|
-
export declare function BufferToIPv4(buffer: Buffer): string;
|
|
7
|
-
/**
|
|
8
|
-
* Convert Buffer to IPv6 string
|
|
9
|
-
* @param buffer
|
|
10
|
-
* @constructor
|
|
11
|
-
*/
|
|
12
|
-
export declare function BufferToIPv6(buffer: Buffer): string;
|
|
13
|
-
//# sourceMappingURL=BufferToIP.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BufferToIP.d.ts","sourceRoot":"","sources":["../../../src/lib/helper/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,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BufferToIPv4 = BufferToIPv4;
|
|
4
|
-
exports.BufferToIPv6 = BufferToIPv6;
|
|
5
|
-
const ip_address_1 = require("ip-address");
|
|
6
|
-
/**
|
|
7
|
-
* Convert Buffer to IPv4 string
|
|
8
|
-
* @param buffer
|
|
9
|
-
* @constructor
|
|
10
|
-
*/
|
|
11
|
-
function BufferToIPv4(buffer) {
|
|
12
|
-
return ip_address_1.Address4.fromBigInt(BigInt(`0x${Buffer.alloc(4, buffer).toString('hex').padStart(8, '0')}`)).address;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Convert Buffer to IPv6 string
|
|
16
|
-
* @param buffer
|
|
17
|
-
* @constructor
|
|
18
|
-
*/
|
|
19
|
-
function BufferToIPv6(buffer) {
|
|
20
|
-
return ip_address_1.Address6.fromBigInt(BigInt(`0x${Buffer.alloc(16, buffer).toString('hex').padStart(32, '0')}`)).address;
|
|
21
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const BufferToInt8: (buffer: Buffer) => number;
|
|
2
|
-
export declare const BufferToInt16: (buffer: Buffer) => number;
|
|
3
|
-
export declare const BufferToInt32: (buffer: Buffer) => number;
|
|
4
|
-
export declare const BufferToInt64: (buffer: Buffer) => bigint;
|
|
5
|
-
export declare const BufferToUInt8: (buffer: Buffer) => number;
|
|
6
|
-
export declare const BufferToUInt16: (buffer: Buffer) => number;
|
|
7
|
-
export declare const BufferToUInt32: (buffer: Buffer) => number;
|
|
8
|
-
export declare const BufferToUInt64: (buffer: Buffer) => bigint;
|
|
9
|
-
export declare const BufferToFloat32: (buffer: Buffer) => number;
|
|
10
|
-
//# sourceMappingURL=BufferToNumber.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BufferToNumber.d.ts","sourceRoot":"","sources":["../../../src/lib/helper/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,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BufferToFloat32 = exports.BufferToUInt64 = exports.BufferToUInt32 = exports.BufferToUInt16 = exports.BufferToUInt8 = exports.BufferToInt64 = exports.BufferToInt32 = exports.BufferToInt16 = exports.BufferToInt8 = void 0;
|
|
4
|
-
const HexToNumber_1 = require("./HexToNumber");
|
|
5
|
-
const BufferToInt8 = (buffer) => (0, HexToNumber_1.HexToInt8)(buffer.toString('hex'));
|
|
6
|
-
exports.BufferToInt8 = BufferToInt8;
|
|
7
|
-
const BufferToInt16 = (buffer) => (0, HexToNumber_1.HexToInt16)(buffer.toString('hex'));
|
|
8
|
-
exports.BufferToInt16 = BufferToInt16;
|
|
9
|
-
const BufferToInt32 = (buffer) => (0, HexToNumber_1.HexToInt32)(buffer.toString('hex'));
|
|
10
|
-
exports.BufferToInt32 = BufferToInt32;
|
|
11
|
-
const BufferToInt64 = (buffer) => (0, HexToNumber_1.HexToInt64)(buffer.toString('hex'));
|
|
12
|
-
exports.BufferToInt64 = BufferToInt64;
|
|
13
|
-
const BufferToUInt8 = (buffer) => (0, HexToNumber_1.HexToUInt8)(buffer.toString('hex'));
|
|
14
|
-
exports.BufferToUInt8 = BufferToUInt8;
|
|
15
|
-
const BufferToUInt16 = (buffer) => (0, HexToNumber_1.HexToUInt16)(buffer.toString('hex'));
|
|
16
|
-
exports.BufferToUInt16 = BufferToUInt16;
|
|
17
|
-
const BufferToUInt32 = (buffer) => (0, HexToNumber_1.HexToUInt32)(buffer.toString('hex'));
|
|
18
|
-
exports.BufferToUInt32 = BufferToUInt32;
|
|
19
|
-
const BufferToUInt64 = (buffer) => (0, HexToNumber_1.HexToUInt64)(buffer.toString('hex'));
|
|
20
|
-
exports.BufferToUInt64 = BufferToUInt64;
|
|
21
|
-
const BufferToFloat32 = (buffer) => (0, HexToNumber_1.HexToFloat32)(buffer.toString('hex'));
|
|
22
|
-
exports.BufferToFloat32 = BufferToFloat32;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HexToBuffer.d.ts","sourceRoot":"","sources":["../../../src/lib/helper/HexToBuffer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAetE"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HexToBuffer = HexToBuffer;
|
|
4
|
-
/**
|
|
5
|
-
* Convert hex to buffer
|
|
6
|
-
* @param hex
|
|
7
|
-
* @param bufferLength
|
|
8
|
-
* @constructor
|
|
9
|
-
*/
|
|
10
|
-
function HexToBuffer(hex, bufferLength) {
|
|
11
|
-
if (!hex)
|
|
12
|
-
return Buffer.alloc(0);
|
|
13
|
-
const inputHex = hex.length % 2 ? hex.padStart(hex.length + 1, '0') : hex;
|
|
14
|
-
const outputBufferLength = bufferLength ? bufferLength : inputHex.length / 2;
|
|
15
|
-
let buffer = Buffer.from(inputHex, 'hex');
|
|
16
|
-
if (buffer.length > outputBufferLength) {
|
|
17
|
-
buffer.subarray(0, outputBufferLength);
|
|
18
|
-
}
|
|
19
|
-
else if (buffer.length < outputBufferLength) {
|
|
20
|
-
const paddingLength = outputBufferLength - buffer.length;
|
|
21
|
-
buffer = Buffer.concat([
|
|
22
|
-
Buffer.alloc(paddingLength, 0x00),
|
|
23
|
-
buffer
|
|
24
|
-
]);
|
|
25
|
-
}
|
|
26
|
-
return buffer;
|
|
27
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const HexToInt8: (hex: string) => number;
|
|
2
|
-
export declare const HexToInt16: (hex: string) => number;
|
|
3
|
-
export declare const HexToInt32: (hex: string) => number;
|
|
4
|
-
export declare const HexToInt64: (hex: string) => bigint;
|
|
5
|
-
export declare const HexToUInt8: (hex: string) => number;
|
|
6
|
-
export declare const HexToUInt16: (hex: string) => number;
|
|
7
|
-
export declare const HexToUInt32: (hex: string) => number;
|
|
8
|
-
export declare const HexToUInt64: (hex: string) => bigint;
|
|
9
|
-
export declare const HexToFloat32: (hex: string) => number;
|
|
10
|
-
//# sourceMappingURL=HexToNumber.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HexToNumber.d.ts","sourceRoot":"","sources":["../../../src/lib/helper/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,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HexToFloat32 = exports.HexToUInt64 = exports.HexToUInt32 = exports.HexToUInt16 = exports.HexToUInt8 = exports.HexToInt64 = exports.HexToInt32 = exports.HexToInt16 = exports.HexToInt8 = void 0;
|
|
4
|
-
const HexToInt8 = (hex) => Int8Array.from([parseInt(hex, 16)])[0];
|
|
5
|
-
exports.HexToInt8 = HexToInt8;
|
|
6
|
-
const HexToInt16 = (hex) => Int16Array.from([parseInt(hex, 16)])[0];
|
|
7
|
-
exports.HexToInt16 = HexToInt16;
|
|
8
|
-
const HexToInt32 = (hex) => Int32Array.from([parseInt(hex, 16)])[0];
|
|
9
|
-
exports.HexToInt32 = HexToInt32;
|
|
10
|
-
const HexToInt64 = (hex) => {
|
|
11
|
-
const INT64_MAX = BigInt('9223372036854775807');
|
|
12
|
-
const INT64_MIN = BigInt('-9223372036854775808');
|
|
13
|
-
const bigIntValue = BigInt(`0x${hex}`);
|
|
14
|
-
if (bigIntValue < INT64_MIN || bigIntValue > INT64_MAX)
|
|
15
|
-
return INT64_MAX;
|
|
16
|
-
return bigIntValue;
|
|
17
|
-
};
|
|
18
|
-
exports.HexToInt64 = HexToInt64;
|
|
19
|
-
const HexToUInt8 = (hex) => Uint8Array.from([parseInt(hex, 16)])[0];
|
|
20
|
-
exports.HexToUInt8 = HexToUInt8;
|
|
21
|
-
const HexToUInt16 = (hex) => Uint16Array.from([parseInt(hex, 16)])[0];
|
|
22
|
-
exports.HexToUInt16 = HexToUInt16;
|
|
23
|
-
const HexToUInt32 = (hex) => Uint32Array.from([parseInt(hex, 16)])[0];
|
|
24
|
-
exports.HexToUInt32 = HexToUInt32;
|
|
25
|
-
const HexToUInt64 = (hex) => {
|
|
26
|
-
const INT64_MAX = BigInt('18446744073709551615');
|
|
27
|
-
const bigIntValue = BigInt(`0x${hex}`);
|
|
28
|
-
if (bigIntValue < 0n || bigIntValue > INT64_MAX)
|
|
29
|
-
return INT64_MAX;
|
|
30
|
-
return bigIntValue;
|
|
31
|
-
};
|
|
32
|
-
exports.HexToUInt64 = HexToUInt64;
|
|
33
|
-
const HexToFloat32 = (hex) => {
|
|
34
|
-
const buffer = new ArrayBuffer(4);
|
|
35
|
-
const dataView = new DataView(buffer);
|
|
36
|
-
dataView.setUint32(0, parseInt(hex, 16), false);
|
|
37
|
-
return dataView.getFloat32(0, false);
|
|
38
|
-
};
|
|
39
|
-
exports.HexToFloat32 = HexToFloat32;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Convert IPv4 string to Buffer
|
|
3
|
-
* @param ipv4
|
|
4
|
-
* @constructor
|
|
5
|
-
*/
|
|
6
|
-
export declare function IPv4ToBuffer(ipv4: string): Buffer;
|
|
7
|
-
/**
|
|
8
|
-
* Convert IPv6 string to Buffer
|
|
9
|
-
* @param ipv6
|
|
10
|
-
* @constructor
|
|
11
|
-
*/
|
|
12
|
-
export declare function IPv6ToBuffer(ipv6: string): Buffer;
|
|
13
|
-
//# sourceMappingURL=IPToBuffer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IPToBuffer.d.ts","sourceRoot":"","sources":["../../../src/lib/helper/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,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IPv4ToBuffer = IPv4ToBuffer;
|
|
4
|
-
exports.IPv6ToBuffer = IPv6ToBuffer;
|
|
5
|
-
const ip_address_1 = require("ip-address");
|
|
6
|
-
const NumberToBuffer_1 = require("./NumberToBuffer");
|
|
7
|
-
/**
|
|
8
|
-
* Convert IPv4 string to Buffer
|
|
9
|
-
* @param ipv4
|
|
10
|
-
* @constructor
|
|
11
|
-
*/
|
|
12
|
-
function IPv4ToBuffer(ipv4) {
|
|
13
|
-
const numArr = ipv4.split('.').map((value) => parseInt(value)).map((value) => value ? value : 0);
|
|
14
|
-
return (0, NumberToBuffer_1.UInt32ToBuffer)(parseInt(Buffer.from(numArr).toString('hex'), 16));
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Convert IPv6 string to Buffer
|
|
18
|
-
* @param ipv6
|
|
19
|
-
* @constructor
|
|
20
|
-
*/
|
|
21
|
-
function IPv6ToBuffer(ipv6) {
|
|
22
|
-
try {
|
|
23
|
-
return Buffer.from(new ip_address_1.Address6(ipv6).toByteArray());
|
|
24
|
-
}
|
|
25
|
-
catch (e) {
|
|
26
|
-
return Buffer.alloc(16, 0);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const Int8ToBERBuffer: (value: number) => Buffer;
|
|
2
|
-
export declare const Int16ToBERBuffer: (value: number) => Buffer;
|
|
3
|
-
export declare const Int32ToBERBuffer: (value: number) => Buffer;
|
|
4
|
-
export declare const Int64ToBERBuffer: (value: bigint) => Buffer;
|
|
5
|
-
export declare const UInt8ToBERBuffer: (value: number) => Buffer;
|
|
6
|
-
export declare const UInt16ToBERBuffer: (value: number) => Buffer;
|
|
7
|
-
export declare const UInt32ToBERBuffer: (value: number) => Buffer;
|
|
8
|
-
export declare const UInt64ToBERBuffer: (value: bigint) => Buffer;
|
|
9
|
-
export declare const Float32ToBERBuffer: (value: number) => Buffer;
|
|
10
|
-
//# sourceMappingURL=NumberToBERBuffer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NumberToBERBuffer.d.ts","sourceRoot":"","sources":["../../../src/lib/helper/NumberToBERBuffer.ts"],"names":[],"mappings":"AAYA,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;AAChI,eAAO,MAAM,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAA8E,CAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Float32ToBERBuffer = exports.UInt64ToBERBuffer = exports.UInt32ToBERBuffer = exports.UInt16ToBERBuffer = exports.UInt8ToBERBuffer = exports.Int64ToBERBuffer = exports.Int32ToBERBuffer = exports.Int16ToBERBuffer = exports.Int8ToBERBuffer = void 0;
|
|
4
|
-
const NumberToBERHex_1 = require("./NumberToBERHex");
|
|
5
|
-
const Int8ToBERBuffer = (value) => Buffer.from((0, NumberToBERHex_1.Int8ToBERHex)(value), 'hex');
|
|
6
|
-
exports.Int8ToBERBuffer = Int8ToBERBuffer;
|
|
7
|
-
const Int16ToBERBuffer = (value) => Buffer.from((0, NumberToBERHex_1.Int16ToBERHex)(value), 'hex');
|
|
8
|
-
exports.Int16ToBERBuffer = Int16ToBERBuffer;
|
|
9
|
-
const Int32ToBERBuffer = (value) => Buffer.from((0, NumberToBERHex_1.Int32ToBERHex)(value), 'hex');
|
|
10
|
-
exports.Int32ToBERBuffer = Int32ToBERBuffer;
|
|
11
|
-
const Int64ToBERBuffer = (value) => Buffer.from((0, NumberToBERHex_1.Int64ToBERHex)(value), 'hex');
|
|
12
|
-
exports.Int64ToBERBuffer = Int64ToBERBuffer;
|
|
13
|
-
const UInt8ToBERBuffer = (value) => Buffer.from((0, NumberToBERHex_1.UInt8ToBERHex)(value), 'hex');
|
|
14
|
-
exports.UInt8ToBERBuffer = UInt8ToBERBuffer;
|
|
15
|
-
const UInt16ToBERBuffer = (value) => Buffer.from((0, NumberToBERHex_1.UInt16ToBERHex)(value), 'hex');
|
|
16
|
-
exports.UInt16ToBERBuffer = UInt16ToBERBuffer;
|
|
17
|
-
const UInt32ToBERBuffer = (value) => Buffer.from((0, NumberToBERHex_1.UInt32ToBERHex)(value), 'hex');
|
|
18
|
-
exports.UInt32ToBERBuffer = UInt32ToBERBuffer;
|
|
19
|
-
const UInt64ToBERBuffer = (value) => Buffer.from((0, NumberToBERHex_1.UInt64ToBERHex)(value), 'hex');
|
|
20
|
-
exports.UInt64ToBERBuffer = UInt64ToBERBuffer;
|
|
21
|
-
const Float32ToBERBuffer = (value) => Buffer.from((0, NumberToBERHex_1.Float32ToBERHex)(value), 'hex');
|
|
22
|
-
exports.Float32ToBERBuffer = Float32ToBERBuffer;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const Int8ToBERHex: (value: number) => string;
|
|
2
|
-
export declare const Int16ToBERHex: (value: number) => string;
|
|
3
|
-
export declare const Int32ToBERHex: (value: number) => string;
|
|
4
|
-
export declare const Int64ToBERHex: (value: bigint) => string;
|
|
5
|
-
export declare const UInt8ToBERHex: (value: number) => string;
|
|
6
|
-
export declare const UInt16ToBERHex: (value: number) => string;
|
|
7
|
-
export declare const UInt32ToBERHex: (value: number) => string;
|
|
8
|
-
export declare const UInt64ToBERHex: (value: bigint) => string;
|
|
9
|
-
export declare const Float32ToBERHex: (value: number) => string;
|
|
10
|
-
//# sourceMappingURL=NumberToBERHex.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NumberToBERHex.d.ts","sourceRoot":"","sources":["../../../src/lib/helper/NumberToBERHex.ts"],"names":[],"mappings":"AAOA,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;AAExH,eAAO,MAAM,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAA8D,CAAA"}
|