netkitty 0.0.2 → 0.0.4
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/{build → dist}/NetKitty.d.ts +2 -1
- package/dist/NetKitty.d.ts.map +1 -0
- package/{build → dist}/NetKitty.js +2 -1
- package/{build → dist}/lib/codec/Codec.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/lib/codec/abstracts/BaseHeader.ts +5 -0
- package/src/lib/codec/headers/ARP.ts +4 -2
- package/src/lib/codec/headers/EthernetII.ts +6 -4
- package/src/lib/codec/headers/Goose.ts +4 -2
- package/src/lib/codec/headers/IEC61850SampledValues.ts +4 -2
- package/src/lib/codec/headers/IPv4.ts +4 -2
- package/src/lib/codec/headers/RawData.ts +2 -0
- package/src/lib/codec/headers/TCP.ts +4 -2
- package/src/lib/codec/headers/UDP.ts +4 -2
- package/src/lib/codec/headers/VLAN_802dot1Q.ts +4 -2
- package/tsconfig.json +2 -1
- package/build/NetKitty.d.ts.map +0 -1
- /package/{build → dist}/errors/ActionNotFoundError.d.ts +0 -0
- /package/{build → dist}/errors/ActionNotFoundError.d.ts.map +0 -0
- /package/{build → dist}/errors/ActionNotFoundError.js +0 -0
- /package/{build → dist}/errors/CodecSchemaValidateError.d.ts +0 -0
- /package/{build → dist}/errors/CodecSchemaValidateError.d.ts.map +0 -0
- /package/{build → dist}/errors/CodecSchemaValidateError.js +0 -0
- /package/{build → dist}/errors/DeviceNotFoundError.d.ts +0 -0
- /package/{build → dist}/errors/DeviceNotFoundError.d.ts.map +0 -0
- /package/{build → dist}/errors/DeviceNotFoundError.js +0 -0
- /package/{build → dist}/errors/NoAvailableCodecError.d.ts +0 -0
- /package/{build → dist}/errors/NoAvailableCodecError.d.ts.map +0 -0
- /package/{build → dist}/errors/NoAvailableCodecError.js +0 -0
- /package/{build → dist}/errors/NpcapLoadError.d.ts +0 -0
- /package/{build → dist}/errors/NpcapLoadError.d.ts.map +0 -0
- /package/{build → dist}/errors/NpcapLoadError.js +0 -0
- /package/{build → dist}/errors/SocketDownError.d.ts +0 -0
- /package/{build → dist}/errors/SocketDownError.d.ts.map +0 -0
- /package/{build → dist}/errors/SocketDownError.js +0 -0
- /package/{build → dist}/errors/UnknownPipeMessageTypeError.d.ts +0 -0
- /package/{build → dist}/errors/UnknownPipeMessageTypeError.d.ts.map +0 -0
- /package/{build → dist}/errors/UnknownPipeMessageTypeError.js +0 -0
- /package/{build → dist}/errors/common/ErrorCode.d.ts +0 -0
- /package/{build → dist}/errors/common/ErrorCode.d.ts.map +0 -0
- /package/{build → dist}/errors/common/ErrorCode.js +0 -0
- /package/{build → dist}/lib/GeneratePipeAddress.d.ts +0 -0
- /package/{build → dist}/lib/GeneratePipeAddress.d.ts.map +0 -0
- /package/{build → dist}/lib/GeneratePipeAddress.js +0 -0
- /package/{build → dist}/lib/GetBinding.d.ts +0 -0
- /package/{build → dist}/lib/GetBinding.d.ts.map +0 -0
- /package/{build → dist}/lib/GetBinding.js +0 -0
- /package/{build → dist}/lib/GetCaptureTemporaryDirectory.d.ts +0 -0
- /package/{build → dist}/lib/GetCaptureTemporaryDirectory.d.ts.map +0 -0
- /package/{build → dist}/lib/GetCaptureTemporaryDirectory.js +0 -0
- /package/{build → dist}/lib/GetDeviceCaptureTemporaryFilename.d.ts +0 -0
- /package/{build → dist}/lib/GetDeviceCaptureTemporaryFilename.d.ts.map +0 -0
- /package/{build → dist}/lib/GetDeviceCaptureTemporaryFilename.js +0 -0
- /package/{build → dist}/lib/codec/Codec.d.ts +0 -0
- /package/{build → dist}/lib/codec/Codec.js +0 -0
- /package/{build → dist}/lib/codec/abstracts/BaseHeader.d.ts +0 -0
- /package/{build → dist}/lib/codec/abstracts/BaseHeader.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/abstracts/BaseHeader.js +0 -0
- /package/{build → dist}/lib/codec/headers/ARP.d.ts +0 -0
- /package/{build → dist}/lib/codec/headers/ARP.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/headers/ARP.js +0 -0
- /package/{build → dist}/lib/codec/headers/EthernetII.d.ts +0 -0
- /package/{build → dist}/lib/codec/headers/EthernetII.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/headers/EthernetII.js +0 -0
- /package/{build → dist}/lib/codec/headers/Goose.d.ts +0 -0
- /package/{build → dist}/lib/codec/headers/Goose.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/headers/Goose.js +0 -0
- /package/{build → dist}/lib/codec/headers/IEC61850SampledValues.d.ts +0 -0
- /package/{build → dist}/lib/codec/headers/IEC61850SampledValues.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/headers/IEC61850SampledValues.js +0 -0
- /package/{build → dist}/lib/codec/headers/IPv4.d.ts +0 -0
- /package/{build → dist}/lib/codec/headers/IPv4.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/headers/IPv4.js +0 -0
- /package/{build → dist}/lib/codec/headers/RawData.d.ts +0 -0
- /package/{build → dist}/lib/codec/headers/RawData.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/headers/RawData.js +0 -0
- /package/{build → dist}/lib/codec/headers/TCP.d.ts +0 -0
- /package/{build → dist}/lib/codec/headers/TCP.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/headers/TCP.js +0 -0
- /package/{build → dist}/lib/codec/headers/UDP.d.ts +0 -0
- /package/{build → dist}/lib/codec/headers/UDP.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/headers/UDP.js +0 -0
- /package/{build → dist}/lib/codec/headers/VLAN_802dot1Q.d.ts +0 -0
- /package/{build → dist}/lib/codec/headers/VLAN_802dot1Q.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/headers/VLAN_802dot1Q.js +0 -0
- /package/{build → dist}/lib/codec/lib/BufferToHex.d.ts +0 -0
- /package/{build → dist}/lib/codec/lib/BufferToHex.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/lib/BufferToHex.js +0 -0
- /package/{build → dist}/lib/codec/lib/BufferToIP.d.ts +0 -0
- /package/{build → dist}/lib/codec/lib/BufferToIP.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/lib/BufferToIP.js +0 -0
- /package/{build → dist}/lib/codec/lib/BufferToNumber.d.ts +0 -0
- /package/{build → dist}/lib/codec/lib/BufferToNumber.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/lib/BufferToNumber.js +0 -0
- /package/{build → dist}/lib/codec/lib/FixHexString.d.ts +0 -0
- /package/{build → dist}/lib/codec/lib/FixHexString.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/lib/FixHexString.js +0 -0
- /package/{build → dist}/lib/codec/lib/FlexibleObject.d.ts +0 -0
- /package/{build → dist}/lib/codec/lib/FlexibleObject.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/lib/FlexibleObject.js +0 -0
- /package/{build → dist}/lib/codec/lib/HexToNumber.d.ts +0 -0
- /package/{build → dist}/lib/codec/lib/HexToNumber.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/lib/HexToNumber.js +0 -0
- /package/{build → dist}/lib/codec/lib/IPToBuffer.d.ts +0 -0
- /package/{build → dist}/lib/codec/lib/IPToBuffer.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/lib/IPToBuffer.js +0 -0
- /package/{build → dist}/lib/codec/lib/NumberToBERBuffer.d.ts +0 -0
- /package/{build → dist}/lib/codec/lib/NumberToBERBuffer.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/lib/NumberToBERBuffer.js +0 -0
- /package/{build → dist}/lib/codec/lib/NumberToBERHex.d.ts +0 -0
- /package/{build → dist}/lib/codec/lib/NumberToBERHex.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/lib/NumberToBERHex.js +0 -0
- /package/{build → dist}/lib/codec/lib/NumberToBuffer.d.ts +0 -0
- /package/{build → dist}/lib/codec/lib/NumberToBuffer.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/lib/NumberToBuffer.js +0 -0
- /package/{build → dist}/lib/codec/lib/NumberToHex.d.ts +0 -0
- /package/{build → dist}/lib/codec/lib/NumberToHex.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/lib/NumberToHex.js +0 -0
- /package/{build → dist}/lib/codec/lib/ProcessPacketPostHandlers.d.ts +0 -0
- /package/{build → dist}/lib/codec/lib/ProcessPacketPostHandlers.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/lib/ProcessPacketPostHandlers.js +0 -0
- /package/{build → dist}/lib/codec/lib/SortPostHandlers.d.ts +0 -0
- /package/{build → dist}/lib/codec/lib/SortPostHandlers.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/lib/SortPostHandlers.js +0 -0
- /package/{build → dist}/lib/codec/lib/StringContentEncodingEnum.d.ts +0 -0
- /package/{build → dist}/lib/codec/lib/StringContentEncodingEnum.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/lib/StringContentEncodingEnum.js +0 -0
- /package/{build → dist}/lib/codec/types/CodecData.d.ts +0 -0
- /package/{build → dist}/lib/codec/types/CodecData.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/types/CodecData.js +0 -0
- /package/{build → dist}/lib/codec/types/CodecDecodeResult.d.ts +0 -0
- /package/{build → dist}/lib/codec/types/CodecDecodeResult.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/types/CodecDecodeResult.js +0 -0
- /package/{build → dist}/lib/codec/types/CodecEncodeInput.d.ts +0 -0
- /package/{build → dist}/lib/codec/types/CodecEncodeInput.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/types/CodecEncodeInput.js +0 -0
- /package/{build → dist}/lib/codec/types/CodecEncodeResult.d.ts +0 -0
- /package/{build → dist}/lib/codec/types/CodecEncodeResult.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/types/CodecEncodeResult.js +0 -0
- /package/{build → dist}/lib/codec/types/CodecErrorInfo.d.ts +0 -0
- /package/{build → dist}/lib/codec/types/CodecErrorInfo.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/types/CodecErrorInfo.js +0 -0
- /package/{build → dist}/lib/codec/types/CodecModule.d.ts +0 -0
- /package/{build → dist}/lib/codec/types/CodecModule.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/types/CodecModule.js +0 -0
- /package/{build → dist}/lib/codec/types/CodecModuleConstructor.d.ts +0 -0
- /package/{build → dist}/lib/codec/types/CodecModuleConstructor.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/types/CodecModuleConstructor.js +0 -0
- /package/{build → dist}/lib/codec/types/CodecSchema.d.ts +0 -0
- /package/{build → dist}/lib/codec/types/CodecSchema.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/types/CodecSchema.js +0 -0
- /package/{build → dist}/lib/codec/types/HeaderTreeNode.d.ts +0 -0
- /package/{build → dist}/lib/codec/types/HeaderTreeNode.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/types/HeaderTreeNode.js +0 -0
- /package/{build → dist}/lib/codec/types/PostHandlerItem.d.ts +0 -0
- /package/{build → dist}/lib/codec/types/PostHandlerItem.d.ts.map +0 -0
- /package/{build → dist}/lib/codec/types/PostHandlerItem.js +0 -0
- /package/{build → dist}/lib/nodepcap/Capture.d.ts +0 -0
- /package/{build → dist}/lib/nodepcap/Capture.d.ts.map +0 -0
- /package/{build → dist}/lib/nodepcap/Capture.js +0 -0
- /package/{build → dist}/lib/nodepcap/GetNetworkInterfaces.d.ts +0 -0
- /package/{build → dist}/lib/nodepcap/GetNetworkInterfaces.d.ts.map +0 -0
- /package/{build → dist}/lib/nodepcap/GetNetworkInterfaces.js +0 -0
- /package/{build → dist}/lib/nodepcap/interfaces/IBindingCapture.d.ts +0 -0
- /package/{build → dist}/lib/nodepcap/interfaces/IBindingCapture.d.ts.map +0 -0
- /package/{build → dist}/lib/nodepcap/interfaces/IBindingCapture.js +0 -0
- /package/{build → dist}/lib/nodepcap/interfaces/IBindingCaptureOptions.d.ts +0 -0
- /package/{build → dist}/lib/nodepcap/interfaces/IBindingCaptureOptions.d.ts.map +0 -0
- /package/{build → dist}/lib/nodepcap/interfaces/IBindingCaptureOptions.js +0 -0
- /package/{build → dist}/lib/nodepcap/interfaces/ICaptureOptions.d.ts +0 -0
- /package/{build → dist}/lib/nodepcap/interfaces/ICaptureOptions.d.ts.map +0 -0
- /package/{build → dist}/lib/nodepcap/interfaces/ICaptureOptions.js +0 -0
- /package/{build → dist}/lib/nodepcap/interfaces/INetworkInterface.d.ts +0 -0
- /package/{build → dist}/lib/nodepcap/interfaces/INetworkInterface.d.ts.map +0 -0
- /package/{build → dist}/lib/nodepcap/interfaces/INetworkInterface.js +0 -0
- /package/{build → dist}/lib/nodepcap/lib/BindingCapture.d.ts +0 -0
- /package/{build → dist}/lib/nodepcap/lib/BindingCapture.d.ts.map +0 -0
- /package/{build → dist}/lib/nodepcap/lib/BindingCapture.js +0 -0
- /package/{build → dist}/lib/nodepcap/lib/GetNodePcapBinding.d.ts +0 -0
- /package/{build → dist}/lib/nodepcap/lib/GetNodePcapBinding.d.ts.map +0 -0
- /package/{build → dist}/lib/nodepcap/lib/GetNodePcapBinding.js +0 -0
- /package/{build → dist}/lib/nodepcap/lib/GetNodePcapBindingCapture.d.ts +0 -0
- /package/{build → dist}/lib/nodepcap/lib/GetNodePcapBindingCapture.d.ts.map +0 -0
- /package/{build → dist}/lib/nodepcap/lib/GetNodePcapBindingCapture.js +0 -0
- /package/{build → dist}/lib/nodepcap/workers/CaptureWorker.d.ts +0 -0
- /package/{build → dist}/lib/nodepcap/workers/CaptureWorker.d.ts.map +0 -0
- /package/{build → dist}/lib/nodepcap/workers/CaptureWorker.js +0 -0
- /package/{build → dist}/lib/pcap/PCAPGenerator.d.ts +0 -0
- /package/{build → dist}/lib/pcap/PCAPGenerator.d.ts.map +0 -0
- /package/{build → dist}/lib/pcap/PCAPGenerator.js +0 -0
- /package/{build → dist}/lib/pcap/PcapParser.d.ts +0 -0
- /package/{build → dist}/lib/pcap/PcapParser.d.ts.map +0 -0
- /package/{build → dist}/lib/pcap/PcapParser.js +0 -0
- /package/{build → dist}/lib/pcap/PcapReader.d.ts +0 -0
- /package/{build → dist}/lib/pcap/PcapReader.d.ts.map +0 -0
- /package/{build → dist}/lib/pcap/PcapReader.js +0 -0
- /package/{build → dist}/lib/pcap/PcapWriter.d.ts +0 -0
- /package/{build → dist}/lib/pcap/PcapWriter.d.ts.map +0 -0
- /package/{build → dist}/lib/pcap/PcapWriter.js +0 -0
- /package/{build → dist}/lib/pcap/interfaces/IPcapPacketInfo.d.ts +0 -0
- /package/{build → dist}/lib/pcap/interfaces/IPcapPacketInfo.d.ts.map +0 -0
- /package/{build → dist}/lib/pcap/interfaces/IPcapPacketInfo.js +0 -0
- /package/{build → dist}/lib/pipe/PipeClient.d.ts +0 -0
- /package/{build → dist}/lib/pipe/PipeClient.d.ts.map +0 -0
- /package/{build → dist}/lib/pipe/PipeClient.js +0 -0
- /package/{build → dist}/lib/pipe/PipeClientSocket.d.ts +0 -0
- /package/{build → dist}/lib/pipe/PipeClientSocket.d.ts.map +0 -0
- /package/{build → dist}/lib/pipe/PipeClientSocket.js +0 -0
- /package/{build → dist}/lib/pipe/PipeMessage.d.ts +0 -0
- /package/{build → dist}/lib/pipe/PipeMessage.d.ts.map +0 -0
- /package/{build → dist}/lib/pipe/PipeMessage.js +0 -0
- /package/{build → dist}/lib/pipe/PipeMessageHandler.d.ts +0 -0
- /package/{build → dist}/lib/pipe/PipeMessageHandler.d.ts.map +0 -0
- /package/{build → dist}/lib/pipe/PipeMessageHandler.js +0 -0
- /package/{build → dist}/lib/pipe/PipeServer.d.ts +0 -0
- /package/{build → dist}/lib/pipe/PipeServer.d.ts.map +0 -0
- /package/{build → dist}/lib/pipe/PipeServer.js +0 -0
- /package/{build → dist}/lib/schema/ProtocolFieldJSONSchema.d.ts +0 -0
- /package/{build → dist}/lib/schema/ProtocolFieldJSONSchema.d.ts.map +0 -0
- /package/{build → dist}/lib/schema/ProtocolFieldJSONSchema.js +0 -0
- /package/{build → dist}/lib/schema/ProtocolFieldJSONSchemaDefinition.d.ts +0 -0
- /package/{build → dist}/lib/schema/ProtocolFieldJSONSchemaDefinition.d.ts.map +0 -0
- /package/{build → dist}/lib/schema/ProtocolFieldJSONSchemaDefinition.js +0 -0
- /package/{build → dist}/lib/schema/ProtocolJSONSchema.d.ts +0 -0
- /package/{build → dist}/lib/schema/ProtocolJSONSchema.d.ts.map +0 -0
- /package/{build → dist}/lib/schema/ProtocolJSONSchema.js +0 -0
- /package/{build → dist}/tests/Test.spec.d.ts +0 -0
- /package/{build → dist}/tests/Test.spec.d.ts.map +0 -0
- /package/{build → dist}/tests/Test.spec.js +0 -0
- /package/{build → dist}/tests/units/CaptureTest.spec.d.ts +0 -0
- /package/{build → dist}/tests/units/CaptureTest.spec.d.ts.map +0 -0
- /package/{build → dist}/tests/units/CaptureTest.spec.js +0 -0
- /package/{build → dist}/tests/units/Codec.spec.d.ts +0 -0
- /package/{build → dist}/tests/units/Codec.spec.d.ts.map +0 -0
- /package/{build → dist}/tests/units/Codec.spec.js +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { type INetworkInterface } from './lib/nodepcap/interfaces/INetworkInterface';
|
|
1
2
|
export { type CodecEncodeResult } from './lib/codec/types/CodecEncodeResult';
|
|
2
3
|
export { type CodecEncodeInput } from './lib/codec/types/CodecEncodeInput';
|
|
3
4
|
export { type CodecDecodeResult } from './lib/codec/types/CodecDecodeResult';
|
|
@@ -27,5 +28,5 @@ export { Capture } from './lib/nodepcap/Capture';
|
|
|
27
28
|
/**
|
|
28
29
|
* Network packet codec
|
|
29
30
|
*/
|
|
30
|
-
export { Codec } from './lib/codec/Codec';
|
|
31
|
+
export { Codec, Headers } from './lib/codec/Codec';
|
|
31
32
|
//# sourceMappingURL=NetKitty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NetKitty.d.ts","sourceRoot":"","sources":["../src/NetKitty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,6CAA6C,CAAA;AAClF,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,qCAAqC,CAAA;AAC1E,OAAO,EAAC,KAAK,gBAAgB,EAAC,MAAM,oCAAoC,CAAA;AACxE,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,qCAAqC,CAAA;AAC1E,OAAO,EAAC,KAAK,WAAW,EAAC,MAAM,+BAA+B,CAAA;AAC9D,OAAO,EAAC,KAAK,cAAc,EAAC,MAAM,kCAAkC,CAAA;AACpE,OAAO,EAAC,KAAK,eAAe,EAAC,MAAM,uCAAuC,CAAA;AAC1E;;GAEG;AACH,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAA;AAChD;;GAEG;AACH,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAA;AAChD;;GAEG;AACH,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAA;AAChD;;GAEG;AACH,OAAO,EAAC,oBAAoB,EAAC,MAAM,qCAAqC,CAAA;AACxE;;GAEG;AACH,OAAO,EAAC,OAAO,EAAC,MAAM,wBAAwB,CAAA;AAC9C;;GAEG;AACH,OAAO,EAAC,KAAK,EAAE,OAAO,EAAC,MAAM,mBAAmB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Codec = exports.Capture = exports.GetNetworkInterfaces = exports.PcapParser = exports.PcapWriter = exports.PcapReader = void 0;
|
|
3
|
+
exports.Headers = exports.Codec = exports.Capture = exports.GetNetworkInterfaces = exports.PcapParser = exports.PcapWriter = exports.PcapReader = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* PCAP reader
|
|
6
6
|
*/
|
|
@@ -31,3 +31,4 @@ Object.defineProperty(exports, "Capture", { enumerable: true, get: function () {
|
|
|
31
31
|
*/
|
|
32
32
|
var Codec_1 = require("./lib/codec/Codec");
|
|
33
33
|
Object.defineProperty(exports, "Codec", { enumerable: true, get: function () { return Codec_1.Codec; } });
|
|
34
|
+
Object.defineProperty(exports, "Headers", { enumerable: true, get: function () { return Codec_1.Headers; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Codec.d.ts","sourceRoot":"","sources":["../../../src/lib/codec/Codec.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Codec.d.ts","sourceRoot":"","sources":["../../../src/lib/codec/Codec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,gCAAgC,CAAA;AAErE,OAAO,EAAC,iBAAiB,EAAC,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAA;AAMzD,OAAO,EAAC,WAAW,EAAC,MAAM,qBAAqB,CAAA;AAE/C,OAAO,EAAC,iBAAiB,EAAC,MAAM,2BAA2B,CAAA;AAW3D,eAAO,MAAM,OAAO,EAAE,sBAAsB,EAU3C,CAAA;AAED,qBAAa,KAAK;;IAMd,SAAS,KAAK,aAAa,IAAI,sBAAsB,EAAE,CAEtD;IAED,IAAW,aAAa,IAAI,WAAW,EAAE,CAExC;gBAEW,uBAAuB,GAAE,sBAAsB,EAAO;IAoBlE;;;OAGG;IACH,SAAS,CAAC,gBAAgB,IAAI,WAAW,EAAE;IAQ3C;;;OAGG;IACH,SAAS,CAAC,gBAAgB,IAAI,sBAAsB,EAAE;IAoDtD;;;OAGG;IACU,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAsBjE;;;OAGG;IACU,MAAM,CAAC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAc9E"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netkitty",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Network tools kit",
|
|
5
|
-
"main": "
|
|
6
|
-
"types": "
|
|
5
|
+
"main": "dist/NetKitty.js",
|
|
6
|
+
"types": "dist/NetKitty.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"clean": "npm run clean:js && npm run clean:cpp",
|
|
9
|
-
"clean:js": "shx rm -rf ./build",
|
|
9
|
+
"clean:js": "shx rm -rf ./build && shx rm -rf ./dist",
|
|
10
10
|
"clean:cpp": "shx rm -rf ./bindings",
|
|
11
11
|
"build:js": "npm run clean:js && tsc",
|
|
12
12
|
"build:cpp": "npm run clean:cpp && node-gyp-build",
|
|
@@ -206,9 +206,11 @@ export class ARP extends BaseHeader {
|
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
public id: string = 'arp'
|
|
209
|
+
public readonly id: string = 'arp'
|
|
210
210
|
|
|
211
|
-
public name: string = 'Address Resolution Protocol'
|
|
211
|
+
public readonly name: string = 'Address Resolution Protocol'
|
|
212
|
+
|
|
213
|
+
public readonly nickname: string = 'ARP'
|
|
212
214
|
|
|
213
215
|
public match(): boolean {
|
|
214
216
|
if (!this.prevCodecModule) return false
|
|
@@ -5,10 +5,6 @@ import {StringContentEncodingEnum} from '../lib/StringContentEncodingEnum'
|
|
|
5
5
|
|
|
6
6
|
export class EthernetII extends BaseHeader {
|
|
7
7
|
|
|
8
|
-
public readonly id: string = 'eth'
|
|
9
|
-
|
|
10
|
-
public readonly name: string = 'Ethernet II'
|
|
11
|
-
|
|
12
8
|
public readonly SCHEMA: ProtocolJSONSchema = {
|
|
13
9
|
type: 'object',
|
|
14
10
|
properties: {
|
|
@@ -69,6 +65,12 @@ export class EthernetII extends BaseHeader {
|
|
|
69
65
|
}
|
|
70
66
|
}
|
|
71
67
|
|
|
68
|
+
public readonly id: string = 'eth'
|
|
69
|
+
|
|
70
|
+
public readonly name: string = 'Ethernet II'
|
|
71
|
+
|
|
72
|
+
public readonly nickname: string = 'ETH'
|
|
73
|
+
|
|
72
74
|
public match(): boolean {
|
|
73
75
|
const specialScenes: string[] = ['trill', 'vxlan', 'nvgre', 'mpls', 'qinq', 'gre', 'geneve']
|
|
74
76
|
if (this.prevCodecModule && !specialScenes.includes(this.prevCodecModule.id)) return false
|
|
@@ -647,9 +647,11 @@ export class Goose extends BaseHeader {
|
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
|
|
650
|
-
public id: string = 'goose'
|
|
650
|
+
public readonly id: string = 'goose'
|
|
651
651
|
|
|
652
|
-
public name: string = 'GOOSE'
|
|
652
|
+
public readonly name: string = 'GOOSE'
|
|
653
|
+
|
|
654
|
+
public readonly nickname: string = 'IEC 61850/GOOSE'
|
|
653
655
|
|
|
654
656
|
public match(): boolean {
|
|
655
657
|
if (!this.prevCodecModule) return false
|
|
@@ -348,9 +348,11 @@ export class IEC61850SampledValues extends BaseHeader {
|
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
|
|
351
|
-
public id: string = 'sv'
|
|
351
|
+
public readonly id: string = 'sv'
|
|
352
352
|
|
|
353
|
-
public name: string = 'IEC61850 Sampled Values'
|
|
353
|
+
public readonly name: string = 'IEC61850 Sampled Values'
|
|
354
|
+
|
|
355
|
+
public readonly nickname: string = 'IEC 61850/SV'
|
|
354
356
|
|
|
355
357
|
public match(): boolean {
|
|
356
358
|
if (!this.prevCodecModule) return false
|
|
@@ -318,9 +318,11 @@ export class IPv4 extends BaseHeader {
|
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
-
public id: string = 'ipv4'
|
|
321
|
+
public readonly id: string = 'ipv4'
|
|
322
322
|
|
|
323
|
-
public name: string = 'Internet Protocol Version 4'
|
|
323
|
+
public readonly name: string = 'Internet Protocol Version 4'
|
|
324
|
+
|
|
325
|
+
public readonly nickname: string = ''
|
|
324
326
|
|
|
325
327
|
public match(): boolean {
|
|
326
328
|
if (!this.prevCodecModule) return false
|
|
@@ -918,9 +918,11 @@ export class TCP extends BaseHeader {
|
|
|
918
918
|
}
|
|
919
919
|
}
|
|
920
920
|
|
|
921
|
-
public id: string = 'tcp'
|
|
921
|
+
public readonly id: string = 'tcp'
|
|
922
922
|
|
|
923
|
-
public name: string = 'Transmission Control Protocol'
|
|
923
|
+
public readonly name: string = 'Transmission Control Protocol'
|
|
924
|
+
|
|
925
|
+
public readonly nickname: string = 'TCP'
|
|
924
926
|
|
|
925
927
|
public match(): boolean {
|
|
926
928
|
if (!this.prevCodecModule) return false
|
|
@@ -167,9 +167,11 @@ export class UDP extends BaseHeader {
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
public id: string = 'udp'
|
|
170
|
+
public readonly id: string = 'udp'
|
|
171
171
|
|
|
172
|
-
public name: string = 'User Datagram Protocol'
|
|
172
|
+
public readonly name: string = 'User Datagram Protocol'
|
|
173
|
+
|
|
174
|
+
public readonly nickname: string = 'UDP'
|
|
173
175
|
|
|
174
176
|
public match(): boolean {
|
|
175
177
|
if (!this.prevCodecModule) return false
|
|
@@ -63,9 +63,11 @@ export class VLAN_802dot1Q extends BaseHeader {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
public id: string = 'vlan'
|
|
66
|
+
public readonly id: string = 'vlan'
|
|
67
67
|
|
|
68
|
-
public name: string = '802.1Q Virtual LAN'
|
|
68
|
+
public readonly name: string = '802.1Q Virtual LAN'
|
|
69
|
+
|
|
70
|
+
public readonly nickname: string = 'VLAN'
|
|
69
71
|
|
|
70
72
|
public match(): boolean {
|
|
71
73
|
if (!this.prevCodecModule) return false
|
package/tsconfig.json
CHANGED
package/build/NetKitty.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NetKitty.d.ts","sourceRoot":"","sources":["../src/NetKitty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,qCAAqC,CAAA;AAC1E,OAAO,EAAC,KAAK,gBAAgB,EAAC,MAAM,oCAAoC,CAAA;AACxE,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,qCAAqC,CAAA;AAC1E,OAAO,EAAC,KAAK,WAAW,EAAC,MAAM,+BAA+B,CAAA;AAC9D,OAAO,EAAC,KAAK,cAAc,EAAC,MAAM,kCAAkC,CAAA;AACpE,OAAO,EAAC,KAAK,eAAe,EAAC,MAAM,uCAAuC,CAAA;AAC1E;;GAEG;AACH,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAA;AAChD;;GAEG;AACH,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAA;AAChD;;GAEG;AACH,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAA;AAChD;;GAEG;AACH,OAAO,EAAC,oBAAoB,EAAC,MAAM,qCAAqC,CAAA;AACxE;;GAEG;AACH,OAAO,EAAC,OAAO,EAAC,MAAM,wBAAwB,CAAA;AAC9C;;GAEG;AACH,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAA"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|