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

Updated allowPartial default to true for Add/Del operations

parent 624e9810
No related branches found
No related tags found
No related merge requests found
Pipeline #195131 failed
image: node:14.15.3
image: node:18.20.4
cache:
untracked: true
key: "$CI_BUILD_REF_NAME"
......
{
"name": "usp-js",
"version": "0.4.10",
"version": "0.4.11",
"description": "Library for easy usp(TR-369) communication using mqtt or ws.",
"main": "node/index.js",
"browser": "web/index.js",
......
......@@ -27,7 +27,7 @@ const makePair = (value): [string, any, boolean][] =>
const encode: EncodeFn = ({ value, path }) => {
const [paths, values] = parseSetArgs(value, path);
const allowPartial =
(values && values.some((it) => it.allowPartial)) || false;
(values && values.some((it) => it.allowPartial)) || true;
const createObjs = paths.map((path, i) => ({
lookup: "Add.CreateObject" as AddLookupCreateObject,
......
......@@ -19,7 +19,7 @@ const encode: EncodeFn = ({ paths, allowPartial }) => ({
lookup: "Request",
delete: {
objPaths: Array.isArray(paths) ? paths : [paths],
allowPartial: allowPartial || false
allowPartial: allowPartial || true
},
},
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment