We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0edbedf + 876f492 commit 2e7c0dcCopy full SHA for 2e7c0dc
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@pipelinedb/stride",
3
- "version": "1.2.0",
+ "version": "1.2.1",
4
"description": "Stride.io JavaScript API client",
5
"main": "index.js",
6
"scripts": {
src/stride.js
@@ -115,7 +115,11 @@ function SubscribeObjectTransform() {
115
let objects = chunk.toString('utf8').trim().split('\r\n')
116
for (let obj of objects) {
117
if (obj = obj.trim()) {
118
- obj = JSON.parse(obj)
+ try {
119
+ obj = JSON.parse(obj)
120
+ } catch(e) {
121
+ return console.error(e)
122
+ }
123
if (obj && typeof obj === 'object') this.push(obj)
124
}
125
0 commit comments