node-ikev2 0.1.1 → 0.1.2

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.
@@ -1592,6 +1592,9 @@ class PayloadSK extends Payload {
1592
1592
  throw new Error(`Insufficient data for payload header at offset ${offset}`);
1593
1593
  }
1594
1594
  const payload = nextPayloadClass.parse(inClearData.subarray(offset, inClearData.length));
1595
+ // Some extended types set NONE in type from the constructor on parse, when there are multiple types with the same
1596
+ // encoding - e.g. PayloadID with IDi and IDr
1597
+ payload.type = nextPayload;
1595
1598
  payloads.push(payload);
1596
1599
  offset += payload.length;
1597
1600
  nextPayload = payload.nextPayload;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "node-ikev2",
3
3
  "title": "Node-IKEV2",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "description": "IKEv2 parser and serializer for Node.js",
6
6
  "main": "./lib/src/index.js",
7
7
  "types": "./lib/src/index.d.ts",