comprodls-sdk 2.81.0 → 2.83.0-alpha
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/dist/comprodls-sdk.js
CHANGED
|
@@ -6856,12 +6856,7 @@ function deleteAssignedPath(options) {
|
|
|
6856
6856
|
item_type: 'string', //mandatory, ['dls-internal','external']
|
|
6857
6857
|
dls_product_code: 'string' //mandatory only if item_type is 'dls-internal'
|
|
6858
6858
|
}
|
|
6859
|
-
]
|
|
6860
|
-
"rules": {}, // Optional
|
|
6861
|
-
"context": { // Optional (Needed for system event only)
|
|
6862
|
-
"bundle-code": "string",
|
|
6863
|
-
"space_key": "string"
|
|
6864
|
-
}
|
|
6859
|
+
]
|
|
6865
6860
|
}
|
|
6866
6861
|
}
|
|
6867
6862
|
*/
|
|
@@ -13333,6 +13328,13 @@ module.exports = function () {
|
|
|
13333
13328
|
starttime: _startTimestampForPolling,
|
|
13334
13329
|
endtime: Date.now()
|
|
13335
13330
|
};
|
|
13331
|
+
|
|
13332
|
+
// Safe check to avoid poll for events if the channel name or start time is not set
|
|
13333
|
+
// This handles an edge condition where the clearTimeout doesn't work as expected
|
|
13334
|
+
if (!params.channelname || !params.starttime) {
|
|
13335
|
+
return;
|
|
13336
|
+
}
|
|
13337
|
+
|
|
13336
13338
|
var requestAPI = request.get(_userOptions.pollingEndpoint).query(params);
|
|
13337
13339
|
|
|
13338
13340
|
requestAPI
|
|
@@ -13389,7 +13391,9 @@ module.exports = function () {
|
|
|
13389
13391
|
}
|
|
13390
13392
|
|
|
13391
13393
|
// Set timeout for next poll
|
|
13392
|
-
|
|
13394
|
+
if (timeoutDelay) {
|
|
13395
|
+
_setTimeoutIDForPolling = setTimeout(_pollForEvents, timeoutDelay);
|
|
13396
|
+
}
|
|
13393
13397
|
}
|
|
13394
13398
|
});
|
|
13395
13399
|
};
|