@toa.io/core 1.0.0-alpha.58 → 1.0.0-alpha.59

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": "@toa.io/core",
3
- "version": "1.0.0-alpha.58",
3
+ "version": "1.0.0-alpha.59",
4
4
  "description": "Toa Core",
5
5
  "author": "temich <tema.gurtovoy@gmail.com>",
6
6
  "homepage": "https://github.com/toa-io/toa#readme",
@@ -21,13 +21,13 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@rsql/parser": "1.2.4",
24
- "@toa.io/console": "1.0.0-alpha.56",
25
- "@toa.io/generic": "1.0.0-alpha.56",
26
- "@toa.io/yaml": "1.0.0-alpha.56",
24
+ "@toa.io/console": "1.0.0-alpha.59",
25
+ "@toa.io/generic": "1.0.0-alpha.59",
26
+ "@toa.io/yaml": "1.0.0-alpha.59",
27
27
  "error-value": "0.3.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "clone-deep": "4.0.1"
31
31
  },
32
- "gitHead": "f8ec99fc117db7ac763375249b11f74f84a5db48"
32
+ "gitHead": "157e7fa2e26f4612bbb7848c420f4c21746e5bfd"
33
33
  }
@@ -1,5 +1,6 @@
1
1
  'use strict'
2
2
 
3
+ const { Readable } = require('node:stream')
3
4
  const { SystemException } = require('../exceptions')
4
5
 
5
6
  class Contract {
package/src/operation.js CHANGED
@@ -73,7 +73,7 @@ class Operation extends Connector {
73
73
  const reply = await this.#cascade.run(request.input, state)
74
74
 
75
75
  // validate reply only on local environments
76
- if (process.env.TOA_ENV === 'local')
76
+ if (process.env.TOA_ENV === 'local' && !(reply instanceof Readable))
77
77
  this.#contracts.reply.fit(reply)
78
78
 
79
79
  store.reply = reply