@aicore/cocodb-ws-client 1.0.10 → 1.0.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aicore/cocodb-ws-client",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Websocket client for cocoDb",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -47,20 +47,20 @@
47
47
  },
48
48
  "homepage": "https://github.com/aicore/cocoDbWsClient#readme",
49
49
  "devDependencies": {
50
- "@commitlint/cli": "17.4.2",
51
- "@commitlint/config-conventional": "17.4.2",
52
- "c8": "7.12.0",
50
+ "@commitlint/cli": "17.4.3",
51
+ "@commitlint/config-conventional": "17.4.3",
52
+ "c8": "7.13.0",
53
53
  "chai": "4.3.7",
54
54
  "cli-color": "2.0.3",
55
55
  "documentation": "14.0.1",
56
- "eslint": "8.33.0",
56
+ "eslint": "8.34.0",
57
57
  "glob": "8.1.0",
58
58
  "husky": "8.0.3",
59
59
  "mocha": "10.2.0"
60
60
  },
61
61
  "dependencies": {
62
62
  "@aicore/libcommonutils": "1.0.19",
63
- "ws": "8.12.0"
63
+ "ws": "8.12.1"
64
64
  },
65
65
  "optionalDependencies": {
66
66
  "bufferutil": "4.0.7",
@@ -283,6 +283,8 @@ function _sendPendingMessages() {
283
283
  * @returns {Promise} A function that returns a promise.
284
284
  */
285
285
  export function sendMessage(message) {
286
+ // make a copy as the user may start modifying the object while we are sending it.
287
+ message = structuredClone(message);
286
288
  return new Promise(function (resolve, reject) {
287
289
  if(bufferRequests){
288
290
  if(pendingSendMessages.length > MAX_PENDING_SEND_BUFFER_SIZE){