netkitty 1.0.0 → 1.2.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 CHANGED
@@ -1,3 +1,32 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ # [1.2.0](https://github.com/myq1991/netkitty/compare/netkitty@1.1.0...netkitty@1.2.0) (2026-07-23)
7
+
8
+
9
+ ### Features
10
+
11
+ * **errors:** add @netkitty/errors — shared NetKittyError base + ErrorCode ([d5a3405](https://github.com/myq1991/netkitty/commit/d5a3405ee1f812ac92ed3d32478c1bece9bdbd89))
12
+
13
+
14
+
15
+
16
+
17
+ # 1.1.0 (2026-07-22)
18
+
19
+
20
+ ### Features
21
+
22
+ * **iface:** 新增 @netkitty/iface —— 只读网卡枚举/地址/tx-rx 统计(原生) ([d556876](https://github.com/myq1991/netkitty/commit/d556876b4350083770481d253ff0a9c9a4134550))
23
+ * **monorepo:** 阶段3 聚合 netkitty 包 + subpath 兼容 + 根转 workspace root ([6eca06c](https://github.com/myq1991/netkitty/commit/6eca06c8d49148d3494abca74721d3ea65843e0b))
24
+ * **replay:** 新增 @netkitty/replay —— 数据包重放与流量生成(原生) ([9032279](https://github.com/myq1991/netkitty/commit/9032279e192afbc908992acfc8f9ab9c739a0467))
25
+
26
+
27
+
28
+
29
+
1
30
  # Changelog
2
31
 
3
32
  All notable changes to this package are documented here, following
package/README.md CHANGED
@@ -2,6 +2,12 @@
2
2
  <img src="https://raw.githubusercontent.com/myq1991/netkitty/main/assets/NetKittyLogo.webp" alt="NetKitty" width="180">
3
3
  </p>
4
4
 
5
+ <p align="center">
6
+ <a href="https://www.npmjs.com/package/netkitty"><img src="https://img.shields.io/npm/v/netkitty?style=flat-square&labelColor=162032&color=2979ff&logo=npm&logoColor=white" alt="npm version"></a>
7
+ <a href="https://www.npmjs.com/package/netkitty"><img src="https://img.shields.io/npm/dm/netkitty?style=flat-square&labelColor=162032&color=22c55e&logo=npm&logoColor=white" alt="npm downloads"></a>
8
+ <a href="https://github.com/myq1991/netkitty/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/netkitty?style=flat-square&labelColor=162032&color=2979ff" alt="license"></a>
9
+ </p>
10
+
5
11
  # netkitty
6
12
 
7
13
  The aggregate network toolkit — one package that re-exports the whole netkitty family through stable
package/README.zh-CN.md CHANGED
@@ -2,6 +2,12 @@
2
2
  <img src="https://raw.githubusercontent.com/myq1991/netkitty/main/assets/NetKittyLogo.webp" alt="NetKitty" width="180">
3
3
  </p>
4
4
 
5
+ <p align="center">
6
+ <a href="https://www.npmjs.com/package/netkitty"><img src="https://img.shields.io/npm/v/netkitty?style=flat-square&labelColor=162032&color=2979ff&logo=npm&logoColor=white" alt="npm version"></a>
7
+ <a href="https://www.npmjs.com/package/netkitty"><img src="https://img.shields.io/npm/dm/netkitty?style=flat-square&labelColor=162032&color=22c55e&logo=npm&logoColor=white" alt="npm downloads"></a>
8
+ <a href="https://github.com/myq1991/netkitty/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/netkitty?style=flat-square&labelColor=162032&color=2979ff" alt="license"></a>
9
+ </p>
10
+
5
11
  # netkitty
6
12
 
7
13
  网络工具集的聚合包——一个包就把整个 netkitty 家族通过稳定的子路径重新导出:schema 驱动的协议
@@ -0,0 +1,5 @@
1
+ /**
2
+ * netkitty/errors — shared error primitives (the NetKittyError base class every package's errors extend,
3
+ * plus the ErrorCode registry).
4
+ */
5
+ export * from '@netkitty/errors';
package/dist/errors.js ADDED
@@ -0,0 +1,21 @@
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
+ /**
18
+ * netkitty/errors — shared error primitives (the NetKittyError base class every package's errors extend,
19
+ * plus the ErrorCode registry).
20
+ */
21
+ __exportStar(require("@netkitty/errors"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "netkitty",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "Network toolkit for Node.js — packet encode/decode (180+ protocols incl. industrial/OT), pcap/pcapng read-write, cross-packet analysis, live capture and replay.",
5
5
  "main": "dist/codec.js",
6
6
  "types": "dist/codec.d.ts",
@@ -28,6 +28,10 @@
28
28
  "./replay": {
29
29
  "types": "./dist/replay.d.ts",
30
30
  "require": "./dist/replay.js"
31
+ },
32
+ "./errors": {
33
+ "types": "./dist/errors.d.ts",
34
+ "require": "./dist/errors.js"
31
35
  }
32
36
  },
33
37
  "files": [
@@ -72,13 +76,14 @@
72
76
  "registry": "https://registry.npmjs.org/"
73
77
  },
74
78
  "dependencies": {
75
- "@netkitty/analysis": "^1.0.0",
76
- "@netkitty/capture": "^1.0.0",
77
- "@netkitty/codec": "^1.0.0",
78
- "@netkitty/iface": "^1.0.0",
79
- "@netkitty/pcap": "^1.0.0",
80
- "@netkitty/pcap-core": "^1.0.0",
81
- "@netkitty/replay": "^1.0.0"
79
+ "@netkitty/analysis": "^1.2.0",
80
+ "@netkitty/capture": "^1.2.0",
81
+ "@netkitty/codec": "^1.2.0",
82
+ "@netkitty/errors": "^1.2.0",
83
+ "@netkitty/iface": "^1.1.1",
84
+ "@netkitty/pcap": "^1.2.0",
85
+ "@netkitty/pcap-core": "^1.2.0",
86
+ "@netkitty/replay": "^1.2.0"
82
87
  },
83
88
  "devDependencies": {
84
89
  "@types/node": "^22.13.10",
@@ -92,5 +97,5 @@
92
97
  },
93
98
  "homepage": "https://github.com/myq1991/netkitty/tree/main/packages/netkitty#readme",
94
99
  "bugs": "https://github.com/myq1991/netkitty/issues",
95
- "gitHead": "d71e793d2017c0f207f7b829adfcce11b56fe7ee"
100
+ "gitHead": "52958b705354ac379a1a6d90a3955773c190d65a"
96
101
  }