libshv-js 3.1.0 → 3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libshv-js",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "description": "Typescript implementation of libshv",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/src/rpcmessage.ts CHANGED
@@ -166,7 +166,7 @@ class RpcMessage {
166
166
  return new ErrorType(this.value.value[KeyError] as ErrorMap);
167
167
  }
168
168
 
169
- if (this.value.value[KeyResult] !== undefined) {
169
+ if (Object.hasOwn(this.value.value, KeyResult)) {
170
170
  return this.value.value[KeyResult];
171
171
  }
172
172