From 624e9810355fe313655fdaf278668622bf7fc53e Mon Sep 17 00:00:00 2001
From: Vivek Kumar Dutta <vivek.dutta@iopsys.eu>
Date: Tue, 18 Feb 2025 14:43:45 +0530
Subject: [PATCH] Use true as AllowPartial default in Set command

---
 package.json               | 2 +-
 src/commands/common/set.ts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package.json b/package.json
index ea8eed0..095a4c7 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "usp-js",
-  "version": "0.4.9",
+  "version": "0.4.10",
   "description": "Library for easy usp(TR-369) communication using mqtt or ws.",
   "main": "node/index.js",
   "browser": "web/index.js",
diff --git a/src/commands/common/set.ts b/src/commands/common/set.ts
index dd63b3e..e6b7bff 100644
--- a/src/commands/common/set.ts
+++ b/src/commands/common/set.ts
@@ -28,7 +28,7 @@ const makePairs = (path: string, value): [string, any, boolean][] =>
 const encode: EncodeFn = ({ value, path: initialPath }) => {
   const [paths, values] = parseSetArgs(value, initialPath);
   const allowPartial =
-    (values && values.some((it) => it.allowPartial)) || false;
+    (values && values.some((it) => it.allowPartial)) || true;
 
   const updateObjs = paths.map((path, i) => ({
     lookup: "Set.UpdateObject" as SetLookupUpdateObject,
-- 
GitLab