@nxtedition/deepstream.io-client-js 31.0.18 → 31.0.21

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": "@nxtedition/deepstream.io-client-js",
3
- "version": "31.0.18",
3
+ "version": "31.0.21",
4
4
  "description": "the javascript client for deepstream.io",
5
5
  "homepage": "http://deepstream.io",
6
6
  "type": "module",
@@ -407,7 +407,18 @@ class Record {
407
407
  ? this._version !== version
408
408
  : utils.compareRev(version, this._version) > 0
409
409
  ) {
410
- this._data = jsonPath.set(this._data, null, jsonPath.parse(data), true)
410
+ let parsedData
411
+ try {
412
+ parsedData = jsonPath.parse(data)
413
+ } catch (err) {
414
+ throw Object.assign(new Error('invalid data'), {
415
+ key: this.name,
416
+ version,
417
+ data,
418
+ cause: err,
419
+ })
420
+ }
421
+ this._data = jsonPath.set(this._data, null, parsedData, true)
411
422
  this._version = version
412
423
  }
413
424
 
@@ -1,9 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(npm run test:types:*)"
5
- ],
6
- "deny": [],
7
- "ask": []
8
- }
9
- }