Skip to content
Snippets Groups Projects
Commit a4be8f6d 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
1 merge request!13Updated allowPartial default to true for Add/Del operations
Pipeline #195140 passed
image: node:14.15.3
image: node:20.17.0
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",
......@@ -37,11 +37,11 @@
"async-mqtt": "^2.6.1",
"buffer": "^6.0.3",
"protobufjs": "^6.10.1",
"shx": "^0.3.3",
"typescript": "4.2.4",
"url": "^0.11.0",
"webpack": "4",
"websocket": "^1.0.34",
"shx": "^0.3.3",
"ws": "^8.5.0"
},
"devDependencies": {
......
......@@ -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
},
},
},
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment