Skip to content
Snippets Groups Projects
Commit 624e9810 authored by Vivek Dutta's avatar Vivek Dutta
Browse files

Use true as AllowPartial default in Set command

parent 33e41cd2
No related branches found
No related tags found
1 merge request!12Use true as AllowPartial default in Set command
Pipeline #194967 passed
{ {
"name": "usp-js", "name": "usp-js",
"version": "0.4.9", "version": "0.4.10",
"description": "Library for easy usp(TR-369) communication using mqtt or ws.", "description": "Library for easy usp(TR-369) communication using mqtt or ws.",
"main": "node/index.js", "main": "node/index.js",
"browser": "web/index.js", "browser": "web/index.js",
......
...@@ -28,7 +28,7 @@ const makePairs = (path: string, value): [string, any, boolean][] => ...@@ -28,7 +28,7 @@ const makePairs = (path: string, value): [string, any, boolean][] =>
const encode: EncodeFn = ({ value, path: initialPath }) => { const encode: EncodeFn = ({ value, path: initialPath }) => {
const [paths, values] = parseSetArgs(value, initialPath); const [paths, values] = parseSetArgs(value, initialPath);
const allowPartial = const allowPartial =
(values && values.some((it) => it.allowPartial)) || false; (values && values.some((it) => it.allowPartial)) || true;
const updateObjs = paths.map((path, i) => ({ const updateObjs = paths.map((path, i) => ({
lookup: "Set.UpdateObject" as SetLookupUpdateObject, lookup: "Set.UpdateObject" as SetLookupUpdateObject,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment