@miso.ai/server-sdk 0.6.5-beta.0 → 0.6.5-beta.2

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
@@ -16,11 +16,11 @@
16
16
  "simonpai <simon.pai@askmiso.com>"
17
17
  ],
18
18
  "dependencies": {
19
- "@miso.ai/server-commons": "0.6.5-beta.0",
19
+ "@miso.ai/server-commons": "0.6.5-beta.2",
20
20
  "axios": "^1.6.2",
21
21
  "dotenv": "^16.0.1",
22
22
  "split2": "^4.1.0",
23
23
  "yargs": "^17.5.1"
24
24
  },
25
- "version": "0.6.5-beta.0"
25
+ "version": "0.6.5-beta.2"
26
26
  }
@@ -31,6 +31,7 @@ export default class StandardLogStream extends Writable {
31
31
  }
32
32
  if (!this._debug) {
33
33
  delete record.state;
34
+ delete record.payload;
34
35
  }
35
36
  (log.isError(level) ? this._err : this._out).write(this._formatter(record) + '\n');
36
37
  next();
@@ -66,11 +66,11 @@ export default class UploadStream extends stream.BufferedWriteStream {
66
66
  // if upload fails, emit extracted payload at response event
67
67
  if (message.event === 'response') {
68
68
  const { response, payload } = args;
69
- if (response && response.errors && payload) {
70
- output.payload = JSON.parse(payload); // TODO: call extractUploadPayload
71
- if (response.status === 422) {
72
- output.issues = process422ResponseBody(payload, response);
73
- }
69
+ if (payload) {
70
+ output.payload = JSON.parse(payload);
71
+ }
72
+ if (response && response.status === 422) {
73
+ output.issues = process422ResponseBody(payload, response);
74
74
  }
75
75
  }
76
76
 
package/src/version.js CHANGED
@@ -1 +1 @@
1
- export default '0.6.5-beta.0';
1
+ export default '0.6.5-beta.2';