netkitty 0.0.4 → 0.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "netkitty",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Network tools kit",
5
5
  "main": "dist/NetKitty.js",
6
6
  "types": "dist/NetKitty.d.ts",
@@ -155,6 +155,7 @@ export class Codec {
155
155
  return codecModules.map((codecModule: CodecModule): CodecDecodeResult => ({
156
156
  id: codecModule.id,
157
157
  name: codecModule.name,
158
+ nickname: codecModule.nickname,
158
159
  errors: codecModule.errors,
159
160
  data: codecModule.instance.getValue()
160
161
  }))
@@ -4,6 +4,7 @@ import {CodecErrorInfo} from './CodecErrorInfo'
4
4
  export type CodecDecodeResult = {
5
5
  id: string
6
6
  name: string
7
+ nickname: string
7
8
  errors: CodecErrorInfo[]
8
9
  data: HeaderTreeNode
9
10
  }
@@ -1,5 +1,8 @@
1
1
  import {CodecDecodeResult} from './CodecDecodeResult'
2
+ import {CodecErrorInfo} from './CodecErrorInfo'
2
3
 
3
4
  export type CodecEncodeInput = {
4
5
  name?: string
6
+ nickname?: string
7
+ errors?: CodecErrorInfo[]
5
8
  } & CodecDecodeResult