@things-factory/integration-base 8.0.38 → 8.0.39
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-server/service/connection/connection-type.js +8 -1
- package/dist-server/service/connection/connection-type.js.map +1 -1
- package/dist-server/service/step/step-type.js +8 -1
- package/dist-server/service/step/step-type.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/server/service/connection/connection-type.ts +7 -1
- package/server/service/step/step-type.ts +7 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/integration-base",
|
3
|
-
"version": "8.0.
|
3
|
+
"version": "8.0.39",
|
4
4
|
"main": "dist-server/index.js",
|
5
5
|
"browser": "client/index.js",
|
6
6
|
"things-factory": true,
|
@@ -44,5 +44,5 @@
|
|
44
44
|
"readline": "^1.3.0",
|
45
45
|
"ses": "^1.5.0"
|
46
46
|
},
|
47
|
-
"gitHead": "
|
47
|
+
"gitHead": "f5e1a4c04bceec2d731a46f1ef88976839d04dac"
|
48
48
|
}
|
@@ -125,7 +125,13 @@ export class Connection {
|
|
125
125
|
DATABASE_TYPE == 'postgres'
|
126
126
|
? {
|
127
127
|
to: (value: any) => JSON.stringify(value),
|
128
|
-
from: (value: string) =>
|
128
|
+
from: (value: string) => {
|
129
|
+
try {
|
130
|
+
return JSON.parse(value)
|
131
|
+
} catch (error) {
|
132
|
+
return null
|
133
|
+
}
|
134
|
+
}
|
129
135
|
}
|
130
136
|
: undefined
|
131
137
|
})
|
@@ -120,7 +120,13 @@ export class Step {
|
|
120
120
|
DATABASE_TYPE == 'postgres'
|
121
121
|
? {
|
122
122
|
to: (value: any) => JSON.stringify(value),
|
123
|
-
from: (value: string) =>
|
123
|
+
from: (value: string) => {
|
124
|
+
try {
|
125
|
+
return JSON.parse(value)
|
126
|
+
} catch (error) {
|
127
|
+
return null
|
128
|
+
}
|
129
|
+
}
|
124
130
|
}
|
125
131
|
: undefined
|
126
132
|
})
|