iosignal 9.12.0 → 9.14.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.
@@ -4,3 +4,12 @@ export function parsePayload(args: any): {
4
4
  buffer: Uint8Array<ArrayBuffer> | import("buffer").Buffer | null | undefined;
5
5
  };
6
6
  export function getPayloadFromSignalPack(signalPack: any): any;
7
+ /**
8
+ * Arguments of a SIGNAL payload, as IO emits them after the tag: EMPTY [], TEXT [string] (the
9
+ * trailing NUL that C/C++ senders add is removed), BINARY [the buffer itself], OBJECT [value],
10
+ * MJSON [...values], MBA [...args]. null for an unknown payload type. Throws on malformed JSON/MBA.
11
+ * @param {number} payloadType
12
+ * @param {Uint8Array} payloadBuffer
13
+ * @returns {any[] | null}
14
+ */
15
+ export function decodeSignalArgs(payloadType: number, payloadBuffer: Uint8Array): any[] | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iosignal",
3
- "version": "9.12.0",
3
+ "version": "9.14.0",
4
4
  "description": "iosignal",
5
5
  "type": "module",
6
6
  "exports": {