diff --git a/package.json b/package.json index 611d4fc3bc1a9381846ef3e567f9d248a05cb66b..e966f7a3c8f7b98a07643689751e56c39e8a2984 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "usp-js", - "version": "0.3.8", + "version": "0.3.9", "description": "Helper library for easy usp communication using mqtt over tcp or ws.", "main": "node/index.js", "browser": "web/index.js", diff --git a/src/commands/common/notifyResp.ts b/src/commands/common/notifyResp.ts index e09f7225f5022776946d8aef0567cb9bf083fb03..f12af646a2dda64357413a2b7a22a11900581f06 100644 --- a/src/commands/common/notifyResp.ts +++ b/src/commands/common/notifyResp.ts @@ -12,12 +12,12 @@ const encode: EncodeFn = ({ subscriptionId }) => ({ }, body: { lookup: "Body", - request: { + response: { lookup: "Request", notifyResp: { subscriptionId }, }, }, -}); +} as any); export default { decode, diff --git a/tests/integration/index.test.ts b/tests/integration/index.test.ts index f78c79044762841a95dc041d27d24d8e5642bebe..ff872749c390d8b0cf91333cc5c72db66e361a21 100644 --- a/tests/integration/index.test.ts +++ b/tests/integration/index.test.ts @@ -11,6 +11,7 @@ describe("Test general API", function () { before(async () => { device = await connect(config.ws as ConnectionOptions); + await device.del("Device.NAT.PortMapping.*."); added = [ await device.add("Device.NAT.PortMapping."), await device.add("Device.NAT.PortMapping."),