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/README.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#
|
|
1
|
+
# NetKitty
|
|
2
2
|
miaowu~
|
|
Binary file
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base header abstract class
|
|
3
|
+
*/
|
|
4
|
+
export { BaseHeader } from './lib/codec/abstracts/BaseHeader';
|
|
5
|
+
/**
|
|
6
|
+
* Network packet codec
|
|
7
|
+
*/
|
|
8
|
+
export { Codec } from './lib/codec/Codec';
|
|
9
|
+
/**
|
|
10
|
+
* Flexible Object for codec data instance
|
|
11
|
+
*/
|
|
12
|
+
export { FlexibleObject } from './lib/codec/lib/FlexibleObject';
|
|
13
|
+
/**
|
|
14
|
+
* Types
|
|
15
|
+
*/
|
|
16
|
+
export { type CodecEncodeResult } from './lib/codec/types/CodecEncodeResult';
|
|
17
|
+
export { type CodecEncodeInput } from './lib/codec/types/CodecEncodeInput';
|
|
18
|
+
export { type CodecDecodeResult } from './lib/codec/types/CodecDecodeResult';
|
|
19
|
+
export { type CodecSchema } from './lib/codec/types/CodecSchema';
|
|
20
|
+
export { type HeaderTreeNode } from './lib/codec/types/HeaderTreeNode';
|
|
21
|
+
export { type CodecModuleConstructor } from './lib/codec/types/CodecModuleConstructor';
|
|
22
|
+
export { type CodecModule } from './lib/codec/types/CodecModule';
|
|
23
|
+
/**
|
|
24
|
+
* Schemas
|
|
25
|
+
*/
|
|
26
|
+
export { type ProtocolFieldJSONSchema } from './lib/schema/ProtocolFieldJSONSchema';
|
|
27
|
+
export { type ProtocolFieldJSONSchemaDefinition } from './lib/schema/ProtocolFieldJSONSchemaDefinition';
|
|
28
|
+
export { type ProtocolJSONSchema } from './lib/schema/ProtocolJSONSchema';
|
|
29
|
+
/**
|
|
30
|
+
* Enums
|
|
31
|
+
*/
|
|
32
|
+
export { StringContentEncodingEnum } from './lib/codec/lib/StringContentEncodingEnum';
|
|
33
|
+
//# sourceMappingURL=CodecExports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodecExports.d.ts","sourceRoot":"","sources":["../src/CodecExports.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAC,UAAU,EAAC,MAAM,kCAAkC,CAAA;AAC3D;;GAEG;AACH,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAA;AACvC;;GAEG;AACH,OAAO,EAAC,cAAc,EAAC,MAAM,gCAAgC,CAAA;AAC7D;;GAEG;AACH,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,sBAAsB,EAAC,MAAM,0CAA0C,CAAA;AACpF,OAAO,EAAC,KAAK,WAAW,EAAC,MAAM,+BAA+B,CAAA;AAC9D;;GAEG;AACH,OAAO,EAAC,KAAK,uBAAuB,EAAC,MAAM,sCAAsC,CAAA;AACjF,OAAO,EAAC,KAAK,iCAAiC,EAAC,MAAM,gDAAgD,CAAA;AACrG,OAAO,EAAC,KAAK,kBAAkB,EAAC,MAAM,iCAAiC,CAAA;AACvE;;GAEG;AACH,OAAO,EAAC,yBAAyB,EAAC,MAAM,2CAA2C,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StringContentEncodingEnum = exports.FlexibleObject = exports.Codec = exports.BaseHeader = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Base header abstract class
|
|
6
|
+
*/
|
|
7
|
+
var BaseHeader_1 = require("./lib/codec/abstracts/BaseHeader");
|
|
8
|
+
Object.defineProperty(exports, "BaseHeader", { enumerable: true, get: function () { return BaseHeader_1.BaseHeader; } });
|
|
9
|
+
/**
|
|
10
|
+
* Network packet codec
|
|
11
|
+
*/
|
|
12
|
+
var Codec_1 = require("./lib/codec/Codec");
|
|
13
|
+
Object.defineProperty(exports, "Codec", { enumerable: true, get: function () { return Codec_1.Codec; } });
|
|
14
|
+
/**
|
|
15
|
+
* Flexible Object for codec data instance
|
|
16
|
+
*/
|
|
17
|
+
var FlexibleObject_1 = require("./lib/codec/lib/FlexibleObject");
|
|
18
|
+
Object.defineProperty(exports, "FlexibleObject", { enumerable: true, get: function () { return FlexibleObject_1.FlexibleObject; } });
|
|
19
|
+
/**
|
|
20
|
+
* Enums
|
|
21
|
+
*/
|
|
22
|
+
var StringContentEncodingEnum_1 = require("./lib/codec/lib/StringContentEncodingEnum");
|
|
23
|
+
Object.defineProperty(exports, "StringContentEncodingEnum", { enumerable: true, get: function () { return StringContentEncodingEnum_1.StringContentEncodingEnum; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodecHeaderExports.d.ts","sourceRoot":"","sources":["../src/CodecHeaderExports.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./lib/codec/PacketHeaders"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { BufferToHex } from './lib/helper/BufferToHex';
|
|
2
|
+
export { HexToBuffer } from './lib/helper/HexToBuffer';
|
|
3
|
+
export { BufferToIPv4, BufferToIPv6 } from './lib/helper/BufferToIP';
|
|
4
|
+
export { IPv4ToBuffer, IPv6ToBuffer } from './lib/helper/IPToBuffer';
|
|
5
|
+
export { BufferToFloat32, BufferToInt16, BufferToInt32, BufferToInt64, BufferToInt8, BufferToUInt16, BufferToUInt32, BufferToUInt64, BufferToUInt8 } from './lib/helper/BufferToNumber';
|
|
6
|
+
export { HexToFloat32, HexToInt16, HexToInt32, HexToInt64, HexToInt8, HexToUInt16, HexToUInt32, HexToUInt64, HexToUInt8 } from './lib/helper/HexToNumber';
|
|
7
|
+
export { Int16ToBERBuffer, Int32ToBERBuffer, Int64ToBERBuffer, Int8ToBERBuffer, UInt16ToBERBuffer, UInt32ToBERBuffer, UInt64ToBERBuffer, UInt8ToBERBuffer } from './lib/helper/NumberToBERBuffer';
|
|
8
|
+
export { Int16ToBERHex, Int32ToBERHex, Int64ToBERHex, Int8ToBERHex, UInt16ToBERHex, UInt32ToBERHex, UInt64ToBERHex, UInt8ToBERHex } from './lib/helper/NumberToBERHex';
|
|
9
|
+
export { Float32ToBuffer, Int16ToBuffer, Int32ToBuffer, Int64ToBuffer, Int8ToBuffer, UInt16ToBuffer, UInt32ToBuffer, UInt64ToBuffer, UInt8ToBuffer } from './lib/helper/NumberToBuffer';
|
|
10
|
+
export { Float32ToHex, Int16ToHex, Int32ToHex, Int64ToHex, Int8ToHex, UInt16ToHex, UInt32ToHex, UInt64ToHex, UInt8ToHex } from './lib/helper/NumberToHex';
|
|
11
|
+
//# sourceMappingURL=HelperExports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HelperExports.d.ts","sourceRoot":"","sources":["../src/HelperExports.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EACd,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACH,WAAW,EACd,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACH,YAAY,EACZ,YAAY,EACf,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACH,YAAY,EACZ,YAAY,EACf,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACH,eAAe,EACf,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,EAChB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACH,YAAY,EACZ,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,WAAW,EACX,WAAW,EACX,WAAW,EACX,UAAU,EACb,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACH,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EACnB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACH,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,EAChB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACH,eAAe,EACf,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,EAChB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACH,YAAY,EACZ,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,WAAW,EACX,WAAW,EACX,WAAW,EACX,UAAU,EACb,MAAM,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Float32ToHex = exports.UInt8ToBuffer = exports.UInt64ToBuffer = exports.UInt32ToBuffer = exports.UInt16ToBuffer = exports.Int8ToBuffer = exports.Int64ToBuffer = exports.Int32ToBuffer = exports.Int16ToBuffer = exports.Float32ToBuffer = exports.UInt8ToBERHex = exports.UInt64ToBERHex = exports.UInt32ToBERHex = exports.UInt16ToBERHex = exports.Int8ToBERHex = exports.Int64ToBERHex = exports.Int32ToBERHex = exports.Int16ToBERHex = exports.UInt8ToBERBuffer = exports.UInt64ToBERBuffer = exports.UInt32ToBERBuffer = exports.UInt16ToBERBuffer = exports.Int8ToBERBuffer = exports.Int64ToBERBuffer = exports.Int32ToBERBuffer = exports.Int16ToBERBuffer = exports.HexToUInt8 = exports.HexToUInt64 = exports.HexToUInt32 = exports.HexToUInt16 = exports.HexToInt8 = exports.HexToInt64 = exports.HexToInt32 = exports.HexToInt16 = exports.HexToFloat32 = exports.BufferToUInt8 = exports.BufferToUInt64 = exports.BufferToUInt32 = exports.BufferToUInt16 = exports.BufferToInt8 = exports.BufferToInt64 = exports.BufferToInt32 = exports.BufferToInt16 = exports.BufferToFloat32 = exports.IPv6ToBuffer = exports.IPv4ToBuffer = exports.BufferToIPv6 = exports.BufferToIPv4 = exports.HexToBuffer = exports.BufferToHex = void 0;
|
|
4
|
+
exports.UInt8ToHex = exports.UInt64ToHex = exports.UInt32ToHex = exports.UInt16ToHex = exports.Int8ToHex = exports.Int64ToHex = exports.Int32ToHex = exports.Int16ToHex = void 0;
|
|
5
|
+
var BufferToHex_1 = require("./lib/helper/BufferToHex");
|
|
6
|
+
Object.defineProperty(exports, "BufferToHex", { enumerable: true, get: function () { return BufferToHex_1.BufferToHex; } });
|
|
7
|
+
var HexToBuffer_1 = require("./lib/helper/HexToBuffer");
|
|
8
|
+
Object.defineProperty(exports, "HexToBuffer", { enumerable: true, get: function () { return HexToBuffer_1.HexToBuffer; } });
|
|
9
|
+
var BufferToIP_1 = require("./lib/helper/BufferToIP");
|
|
10
|
+
Object.defineProperty(exports, "BufferToIPv4", { enumerable: true, get: function () { return BufferToIP_1.BufferToIPv4; } });
|
|
11
|
+
Object.defineProperty(exports, "BufferToIPv6", { enumerable: true, get: function () { return BufferToIP_1.BufferToIPv6; } });
|
|
12
|
+
var IPToBuffer_1 = require("./lib/helper/IPToBuffer");
|
|
13
|
+
Object.defineProperty(exports, "IPv4ToBuffer", { enumerable: true, get: function () { return IPToBuffer_1.IPv4ToBuffer; } });
|
|
14
|
+
Object.defineProperty(exports, "IPv6ToBuffer", { enumerable: true, get: function () { return IPToBuffer_1.IPv6ToBuffer; } });
|
|
15
|
+
var BufferToNumber_1 = require("./lib/helper/BufferToNumber");
|
|
16
|
+
Object.defineProperty(exports, "BufferToFloat32", { enumerable: true, get: function () { return BufferToNumber_1.BufferToFloat32; } });
|
|
17
|
+
Object.defineProperty(exports, "BufferToInt16", { enumerable: true, get: function () { return BufferToNumber_1.BufferToInt16; } });
|
|
18
|
+
Object.defineProperty(exports, "BufferToInt32", { enumerable: true, get: function () { return BufferToNumber_1.BufferToInt32; } });
|
|
19
|
+
Object.defineProperty(exports, "BufferToInt64", { enumerable: true, get: function () { return BufferToNumber_1.BufferToInt64; } });
|
|
20
|
+
Object.defineProperty(exports, "BufferToInt8", { enumerable: true, get: function () { return BufferToNumber_1.BufferToInt8; } });
|
|
21
|
+
Object.defineProperty(exports, "BufferToUInt16", { enumerable: true, get: function () { return BufferToNumber_1.BufferToUInt16; } });
|
|
22
|
+
Object.defineProperty(exports, "BufferToUInt32", { enumerable: true, get: function () { return BufferToNumber_1.BufferToUInt32; } });
|
|
23
|
+
Object.defineProperty(exports, "BufferToUInt64", { enumerable: true, get: function () { return BufferToNumber_1.BufferToUInt64; } });
|
|
24
|
+
Object.defineProperty(exports, "BufferToUInt8", { enumerable: true, get: function () { return BufferToNumber_1.BufferToUInt8; } });
|
|
25
|
+
var HexToNumber_1 = require("./lib/helper/HexToNumber");
|
|
26
|
+
Object.defineProperty(exports, "HexToFloat32", { enumerable: true, get: function () { return HexToNumber_1.HexToFloat32; } });
|
|
27
|
+
Object.defineProperty(exports, "HexToInt16", { enumerable: true, get: function () { return HexToNumber_1.HexToInt16; } });
|
|
28
|
+
Object.defineProperty(exports, "HexToInt32", { enumerable: true, get: function () { return HexToNumber_1.HexToInt32; } });
|
|
29
|
+
Object.defineProperty(exports, "HexToInt64", { enumerable: true, get: function () { return HexToNumber_1.HexToInt64; } });
|
|
30
|
+
Object.defineProperty(exports, "HexToInt8", { enumerable: true, get: function () { return HexToNumber_1.HexToInt8; } });
|
|
31
|
+
Object.defineProperty(exports, "HexToUInt16", { enumerable: true, get: function () { return HexToNumber_1.HexToUInt16; } });
|
|
32
|
+
Object.defineProperty(exports, "HexToUInt32", { enumerable: true, get: function () { return HexToNumber_1.HexToUInt32; } });
|
|
33
|
+
Object.defineProperty(exports, "HexToUInt64", { enumerable: true, get: function () { return HexToNumber_1.HexToUInt64; } });
|
|
34
|
+
Object.defineProperty(exports, "HexToUInt8", { enumerable: true, get: function () { return HexToNumber_1.HexToUInt8; } });
|
|
35
|
+
var NumberToBERBuffer_1 = require("./lib/helper/NumberToBERBuffer");
|
|
36
|
+
Object.defineProperty(exports, "Int16ToBERBuffer", { enumerable: true, get: function () { return NumberToBERBuffer_1.Int16ToBERBuffer; } });
|
|
37
|
+
Object.defineProperty(exports, "Int32ToBERBuffer", { enumerable: true, get: function () { return NumberToBERBuffer_1.Int32ToBERBuffer; } });
|
|
38
|
+
Object.defineProperty(exports, "Int64ToBERBuffer", { enumerable: true, get: function () { return NumberToBERBuffer_1.Int64ToBERBuffer; } });
|
|
39
|
+
Object.defineProperty(exports, "Int8ToBERBuffer", { enumerable: true, get: function () { return NumberToBERBuffer_1.Int8ToBERBuffer; } });
|
|
40
|
+
Object.defineProperty(exports, "UInt16ToBERBuffer", { enumerable: true, get: function () { return NumberToBERBuffer_1.UInt16ToBERBuffer; } });
|
|
41
|
+
Object.defineProperty(exports, "UInt32ToBERBuffer", { enumerable: true, get: function () { return NumberToBERBuffer_1.UInt32ToBERBuffer; } });
|
|
42
|
+
Object.defineProperty(exports, "UInt64ToBERBuffer", { enumerable: true, get: function () { return NumberToBERBuffer_1.UInt64ToBERBuffer; } });
|
|
43
|
+
Object.defineProperty(exports, "UInt8ToBERBuffer", { enumerable: true, get: function () { return NumberToBERBuffer_1.UInt8ToBERBuffer; } });
|
|
44
|
+
var NumberToBERHex_1 = require("./lib/helper/NumberToBERHex");
|
|
45
|
+
Object.defineProperty(exports, "Int16ToBERHex", { enumerable: true, get: function () { return NumberToBERHex_1.Int16ToBERHex; } });
|
|
46
|
+
Object.defineProperty(exports, "Int32ToBERHex", { enumerable: true, get: function () { return NumberToBERHex_1.Int32ToBERHex; } });
|
|
47
|
+
Object.defineProperty(exports, "Int64ToBERHex", { enumerable: true, get: function () { return NumberToBERHex_1.Int64ToBERHex; } });
|
|
48
|
+
Object.defineProperty(exports, "Int8ToBERHex", { enumerable: true, get: function () { return NumberToBERHex_1.Int8ToBERHex; } });
|
|
49
|
+
Object.defineProperty(exports, "UInt16ToBERHex", { enumerable: true, get: function () { return NumberToBERHex_1.UInt16ToBERHex; } });
|
|
50
|
+
Object.defineProperty(exports, "UInt32ToBERHex", { enumerable: true, get: function () { return NumberToBERHex_1.UInt32ToBERHex; } });
|
|
51
|
+
Object.defineProperty(exports, "UInt64ToBERHex", { enumerable: true, get: function () { return NumberToBERHex_1.UInt64ToBERHex; } });
|
|
52
|
+
Object.defineProperty(exports, "UInt8ToBERHex", { enumerable: true, get: function () { return NumberToBERHex_1.UInt8ToBERHex; } });
|
|
53
|
+
var NumberToBuffer_1 = require("./lib/helper/NumberToBuffer");
|
|
54
|
+
Object.defineProperty(exports, "Float32ToBuffer", { enumerable: true, get: function () { return NumberToBuffer_1.Float32ToBuffer; } });
|
|
55
|
+
Object.defineProperty(exports, "Int16ToBuffer", { enumerable: true, get: function () { return NumberToBuffer_1.Int16ToBuffer; } });
|
|
56
|
+
Object.defineProperty(exports, "Int32ToBuffer", { enumerable: true, get: function () { return NumberToBuffer_1.Int32ToBuffer; } });
|
|
57
|
+
Object.defineProperty(exports, "Int64ToBuffer", { enumerable: true, get: function () { return NumberToBuffer_1.Int64ToBuffer; } });
|
|
58
|
+
Object.defineProperty(exports, "Int8ToBuffer", { enumerable: true, get: function () { return NumberToBuffer_1.Int8ToBuffer; } });
|
|
59
|
+
Object.defineProperty(exports, "UInt16ToBuffer", { enumerable: true, get: function () { return NumberToBuffer_1.UInt16ToBuffer; } });
|
|
60
|
+
Object.defineProperty(exports, "UInt32ToBuffer", { enumerable: true, get: function () { return NumberToBuffer_1.UInt32ToBuffer; } });
|
|
61
|
+
Object.defineProperty(exports, "UInt64ToBuffer", { enumerable: true, get: function () { return NumberToBuffer_1.UInt64ToBuffer; } });
|
|
62
|
+
Object.defineProperty(exports, "UInt8ToBuffer", { enumerable: true, get: function () { return NumberToBuffer_1.UInt8ToBuffer; } });
|
|
63
|
+
var NumberToHex_1 = require("./lib/helper/NumberToHex");
|
|
64
|
+
Object.defineProperty(exports, "Float32ToHex", { enumerable: true, get: function () { return NumberToHex_1.Float32ToHex; } });
|
|
65
|
+
Object.defineProperty(exports, "Int16ToHex", { enumerable: true, get: function () { return NumberToHex_1.Int16ToHex; } });
|
|
66
|
+
Object.defineProperty(exports, "Int32ToHex", { enumerable: true, get: function () { return NumberToHex_1.Int32ToHex; } });
|
|
67
|
+
Object.defineProperty(exports, "Int64ToHex", { enumerable: true, get: function () { return NumberToHex_1.Int64ToHex; } });
|
|
68
|
+
Object.defineProperty(exports, "Int8ToHex", { enumerable: true, get: function () { return NumberToHex_1.Int8ToHex; } });
|
|
69
|
+
Object.defineProperty(exports, "UInt16ToHex", { enumerable: true, get: function () { return NumberToHex_1.UInt16ToHex; } });
|
|
70
|
+
Object.defineProperty(exports, "UInt32ToHex", { enumerable: true, get: function () { return NumberToHex_1.UInt32ToHex; } });
|
|
71
|
+
Object.defineProperty(exports, "UInt64ToHex", { enumerable: true, get: function () { return NumberToHex_1.UInt64ToHex; } });
|
|
72
|
+
Object.defineProperty(exports, "UInt8ToHex", { enumerable: true, get: function () { return NumberToHex_1.UInt8ToHex; } });
|
package/dist/NetKitty.d.ts
CHANGED
|
@@ -1,44 +1 @@
|
|
|
1
|
-
export { BufferToHex } from './lib/codec/lib/BufferToHex';
|
|
2
|
-
export { BufferToIPv4, BufferToIPv6 } from './lib/codec/lib/BufferToIP';
|
|
3
|
-
export { BufferToFloat32, BufferToInt16, BufferToInt32, BufferToInt64, BufferToInt8, BufferToUInt16, BufferToUInt32, BufferToUInt64, BufferToUInt8 } from './lib/codec/lib/BufferToNumber';
|
|
4
|
-
export { FixHexString } from './lib/codec/lib/FixHexString';
|
|
5
|
-
export { FlexibleObject } from './lib/codec/lib/FlexibleObject';
|
|
6
|
-
export { HexToFloat32, HexToInt16, HexToInt32, HexToInt64, HexToInt8, HexToUInt16, HexToUInt32, HexToUInt64, HexToUInt8 } from './lib/codec/lib/HexToNumber';
|
|
7
|
-
export { IPv4ToBuffer, IPv6ToBuffer } from './lib/codec/lib/IPToBuffer';
|
|
8
|
-
export { Int16ToBERBuffer, Int32ToBERBuffer, Int64ToBERBuffer, Int8ToBERBuffer, UInt16ToBERBuffer, UInt32ToBERBuffer, UInt64ToBERBuffer, UInt8ToBERBuffer } from './lib/codec/lib/NumberToBERBuffer';
|
|
9
|
-
export { Int16ToBERHex, Int32ToBERHex, Int64ToBERHex, Int8ToBERHex, UInt16ToBERHex, UInt32ToBERHex, UInt64ToBERHex, UInt8ToBERHex } from './lib/codec/lib/NumberToBERHex';
|
|
10
|
-
export { Float32ToBuffer, Int16ToBuffer, Int32ToBuffer, Int64ToBuffer, Int8ToBuffer, UInt16ToBuffer, UInt32ToBuffer, UInt64ToBuffer, UInt8ToBuffer } from './lib/codec/lib/NumberToBuffer';
|
|
11
|
-
export { Float32ToHex, Int16ToHex, Int32ToHex, Int64ToHex, Int8ToHex, UInt16ToHex, UInt32ToHex, UInt64ToHex, UInt8ToHex } from './lib/codec/lib/NumberToHex';
|
|
12
|
-
export { StringContentEncodingEnum } from './lib/codec/lib/StringContentEncodingEnum';
|
|
13
|
-
export { type INetworkInterface } from './lib/nodepcap/interfaces/INetworkInterface';
|
|
14
|
-
export { type CodecEncodeResult } from './lib/codec/types/CodecEncodeResult';
|
|
15
|
-
export { type CodecEncodeInput } from './lib/codec/types/CodecEncodeInput';
|
|
16
|
-
export { type CodecDecodeResult } from './lib/codec/types/CodecDecodeResult';
|
|
17
|
-
export { type CodecSchema } from './lib/codec/types/CodecSchema';
|
|
18
|
-
export { type HeaderTreeNode } from './lib/codec/types/HeaderTreeNode';
|
|
19
|
-
export { type IPcapPacketInfo } from './lib/pcap/interfaces/IPcapPacketInfo';
|
|
20
|
-
/**
|
|
21
|
-
* PCAP reader
|
|
22
|
-
*/
|
|
23
|
-
export { PcapReader } from './lib/pcap/PcapReader';
|
|
24
|
-
/**
|
|
25
|
-
* PCAP writer
|
|
26
|
-
*/
|
|
27
|
-
export { PcapWriter } from './lib/pcap/PcapWriter';
|
|
28
|
-
/**
|
|
29
|
-
* PCAP parser
|
|
30
|
-
*/
|
|
31
|
-
export { PcapParser } from './lib/pcap/PcapParser';
|
|
32
|
-
/**
|
|
33
|
-
* Fetch network interface
|
|
34
|
-
*/
|
|
35
|
-
export { GetNetworkInterfaces } from './lib/nodepcap/GetNetworkInterfaces';
|
|
36
|
-
/**
|
|
37
|
-
* Network packet capture
|
|
38
|
-
*/
|
|
39
|
-
export { Capture } from './lib/nodepcap/Capture';
|
|
40
|
-
/**
|
|
41
|
-
* Network packet codec
|
|
42
|
-
*/
|
|
43
|
-
export { Codec, Headers } from './lib/codec/Codec';
|
|
44
1
|
//# sourceMappingURL=NetKitty.d.ts.map
|
package/dist/NetKitty.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NetKitty.d.ts","sourceRoot":"","sources":["../src/NetKitty.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NetKitty.d.ts","sourceRoot":"","sources":["../src/NetKitty.ts"],"names":[],"mappings":""}
|
package/dist/NetKitty.js
CHANGED
|
@@ -1,107 +1,90 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
Object.defineProperty(exports, "PcapParser", { enumerable: true, get: function () { return PcapParser_1.PcapParser; } });
|
|
92
|
-
/**
|
|
93
|
-
* Fetch network interface
|
|
94
|
-
*/
|
|
95
|
-
var GetNetworkInterfaces_1 = require("./lib/nodepcap/GetNetworkInterfaces");
|
|
96
|
-
Object.defineProperty(exports, "GetNetworkInterfaces", { enumerable: true, get: function () { return GetNetworkInterfaces_1.GetNetworkInterfaces; } });
|
|
97
|
-
/**
|
|
98
|
-
* Network packet capture
|
|
99
|
-
*/
|
|
100
|
-
var Capture_1 = require("./lib/nodepcap/Capture");
|
|
101
|
-
Object.defineProperty(exports, "Capture", { enumerable: true, get: function () { return Capture_1.Capture; } });
|
|
102
|
-
/**
|
|
103
|
-
* Network packet codec
|
|
104
|
-
*/
|
|
105
|
-
var Codec_1 = require("./lib/codec/Codec");
|
|
106
|
-
Object.defineProperty(exports, "Codec", { enumerable: true, get: function () { return Codec_1.Codec; } });
|
|
107
|
-
Object.defineProperty(exports, "Headers", { enumerable: true, get: function () { return Codec_1.Headers; } });
|
|
2
|
+
// export {BufferToHex} from './lib/helper/BufferToHex'
|
|
3
|
+
// export {BufferToIPv4, BufferToIPv6} from './lib/helper/BufferToIP'
|
|
4
|
+
// export {
|
|
5
|
+
// BufferToFloat32,
|
|
6
|
+
// BufferToInt16,
|
|
7
|
+
// BufferToInt32,
|
|
8
|
+
// BufferToInt64,
|
|
9
|
+
// BufferToInt8,
|
|
10
|
+
// BufferToUInt16, BufferToUInt32, BufferToUInt64,
|
|
11
|
+
// BufferToUInt8
|
|
12
|
+
// } from './lib/helper/BufferToNumber'
|
|
13
|
+
// export {FlexibleObject} from './lib/codec/lib/FlexibleObject'
|
|
14
|
+
// export {
|
|
15
|
+
// HexToFloat32,
|
|
16
|
+
// HexToInt16,
|
|
17
|
+
// HexToInt32,
|
|
18
|
+
// HexToInt64,
|
|
19
|
+
// HexToInt8,
|
|
20
|
+
// HexToUInt16,
|
|
21
|
+
// HexToUInt32, HexToUInt64,
|
|
22
|
+
// HexToUInt8
|
|
23
|
+
// } from './lib/helper/HexToNumber'
|
|
24
|
+
// export {IPv4ToBuffer, IPv6ToBuffer} from './lib/helper/IPToBuffer'
|
|
25
|
+
// export {
|
|
26
|
+
// Int16ToBERBuffer,
|
|
27
|
+
// Int32ToBERBuffer,
|
|
28
|
+
// Int64ToBERBuffer,
|
|
29
|
+
// Int8ToBERBuffer, UInt16ToBERBuffer, UInt32ToBERBuffer, UInt64ToBERBuffer,
|
|
30
|
+
// UInt8ToBERBuffer
|
|
31
|
+
// } from './lib/helper/NumberToBERBuffer'
|
|
32
|
+
// export {
|
|
33
|
+
// Int16ToBERHex,
|
|
34
|
+
// Int32ToBERHex,
|
|
35
|
+
// Int64ToBERHex,
|
|
36
|
+
// Int8ToBERHex,
|
|
37
|
+
// UInt16ToBERHex, UInt32ToBERHex, UInt64ToBERHex,
|
|
38
|
+
// UInt8ToBERHex
|
|
39
|
+
// } from './lib/helper/NumberToBERHex'
|
|
40
|
+
// export {
|
|
41
|
+
// Float32ToBuffer,
|
|
42
|
+
// Int16ToBuffer,
|
|
43
|
+
// Int32ToBuffer,
|
|
44
|
+
// Int64ToBuffer,
|
|
45
|
+
// Int8ToBuffer,
|
|
46
|
+
// UInt16ToBuffer, UInt32ToBuffer, UInt64ToBuffer,
|
|
47
|
+
// UInt8ToBuffer
|
|
48
|
+
// } from './lib/helper/NumberToBuffer'
|
|
49
|
+
// export {
|
|
50
|
+
// Float32ToHex,
|
|
51
|
+
// Int16ToHex,
|
|
52
|
+
// Int32ToHex,
|
|
53
|
+
// Int64ToHex,
|
|
54
|
+
// Int8ToHex,
|
|
55
|
+
// UInt16ToHex,
|
|
56
|
+
// UInt32ToHex, UInt64ToHex,
|
|
57
|
+
// UInt8ToHex
|
|
58
|
+
// } from './lib/helper/NumberToHex'
|
|
59
|
+
// export {StringContentEncodingEnum} from './lib/codec/lib/StringContentEncodingEnum'
|
|
60
|
+
// export {type INetworkInterface} from './lib/nodepcap/interfaces/INetworkInterface'
|
|
61
|
+
// export {type CodecEncodeResult} from './lib/codec/types/CodecEncodeResult'
|
|
62
|
+
// export {type CodecEncodeInput} from './lib/codec/types/CodecEncodeInput'
|
|
63
|
+
// export {type CodecDecodeResult} from './lib/codec/types/CodecDecodeResult'
|
|
64
|
+
// export {type CodecSchema} from './lib/codec/types/CodecSchema'
|
|
65
|
+
// export {type HeaderTreeNode} from './lib/codec/types/HeaderTreeNode'
|
|
66
|
+
// export {type IPcapPacketInfo} from './lib/pcap/interfaces/IPcapPacketInfo'
|
|
67
|
+
// /**
|
|
68
|
+
// * PCAP reader
|
|
69
|
+
// */
|
|
70
|
+
// export {PcapReader} from './lib/pcap/PcapReader'
|
|
71
|
+
// /**
|
|
72
|
+
// * PCAP writer
|
|
73
|
+
// */
|
|
74
|
+
// export {PcapWriter} from './lib/pcap/PcapWriter'
|
|
75
|
+
// /**
|
|
76
|
+
// * PCAP parser
|
|
77
|
+
// */
|
|
78
|
+
// export {PcapParser} from './lib/pcap/PcapParser'
|
|
79
|
+
// /**
|
|
80
|
+
// * Fetch network interface
|
|
81
|
+
// */
|
|
82
|
+
// export {GetNetworkInterfaces} from './lib/nodepcap/GetNetworkInterfaces'
|
|
83
|
+
// /**
|
|
84
|
+
// * Network packet capture
|
|
85
|
+
// */
|
|
86
|
+
// export {Capture} from './lib/nodepcap/Capture'
|
|
87
|
+
// /**
|
|
88
|
+
// * Network packet codec
|
|
89
|
+
// */
|
|
90
|
+
// export {Codec, Headers} from './lib/codec/Codec'
|
|
@@ -0,0 +1,13 @@
|
|
|
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';
|
|
13
|
+
//# sourceMappingURL=NetworkExports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NetworkExports.d.ts","sourceRoot":"","sources":["../src/NetworkExports.ts"],"names":[],"mappings":"AAAA;;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,iBAAiB,EAAC,MAAM,6CAA6C,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Capture = exports.GetNetworkInterfaces = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Fetch network interface
|
|
6
|
+
*/
|
|
7
|
+
var GetNetworkInterfaces_1 = require("./lib/nodepcap/GetNetworkInterfaces");
|
|
8
|
+
Object.defineProperty(exports, "GetNetworkInterfaces", { enumerable: true, get: function () { return GetNetworkInterfaces_1.GetNetworkInterfaces; } });
|
|
9
|
+
/**
|
|
10
|
+
* Network packet capture
|
|
11
|
+
*/
|
|
12
|
+
var Capture_1 = require("./lib/nodepcap/Capture");
|
|
13
|
+
Object.defineProperty(exports, "Capture", { enumerable: true, get: function () { return Capture_1.Capture; } });
|
|
@@ -0,0 +1,17 @@
|
|
|
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';
|
|
17
|
+
//# sourceMappingURL=PcapExports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PcapExports.d.ts","sourceRoot":"","sources":["../src/PcapExports.ts"],"names":[],"mappings":"AAAA;;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,KAAK,eAAe,EAAC,MAAM,uCAAuC,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PcapParser = exports.PcapWriter = exports.PcapReader = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* PCAP reader
|
|
6
|
+
*/
|
|
7
|
+
var PcapReader_1 = require("./lib/pcap/PcapReader");
|
|
8
|
+
Object.defineProperty(exports, "PcapReader", { enumerable: true, get: function () { return PcapReader_1.PcapReader; } });
|
|
9
|
+
/**
|
|
10
|
+
* PCAP writer
|
|
11
|
+
*/
|
|
12
|
+
var PcapWriter_1 = require("./lib/pcap/PcapWriter");
|
|
13
|
+
Object.defineProperty(exports, "PcapWriter", { enumerable: true, get: function () { return PcapWriter_1.PcapWriter; } });
|
|
14
|
+
/**
|
|
15
|
+
* PCAP parser
|
|
16
|
+
*/
|
|
17
|
+
var PcapParser_1 = require("./lib/pcap/PcapParser");
|
|
18
|
+
Object.defineProperty(exports, "PcapParser", { enumerable: true, get: function () { return PcapParser_1.PcapParser; } });
|
|
@@ -3,7 +3,6 @@ import { CodecDecodeResult } from './types/CodecDecodeResult';
|
|
|
3
3
|
import { CodecEncodeInput } from './types/CodecEncodeInput';
|
|
4
4
|
import { CodecSchema } from './types/CodecSchema';
|
|
5
5
|
import { CodecEncodeResult } from './types/CodecEncodeResult';
|
|
6
|
-
export declare const Headers: CodecModuleConstructor[];
|
|
7
6
|
export declare class Codec {
|
|
8
7
|
#private;
|
|
9
8
|
protected get HEADER_CODECS(): CodecModuleConstructor[];
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAI3D,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;IAwBjE;;;OAGG;IACU,MAAM,CAAC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAc9E"}
|