@toa.io/boot 1.0.2-dev.1 → 1.0.2-dev.10
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 +7 -7
- package/src/contract.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/boot",
|
|
3
|
-
"version": "1.0.2-dev.
|
|
3
|
+
"version": "1.0.2-dev.10",
|
|
4
4
|
"description": "Toa Boot",
|
|
5
5
|
"author": "temich <tema.gurtovoy@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/toa-io/toa#readme",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@toa.io/core": "1.1.0-dev.
|
|
23
|
-
"@toa.io/filesystem": "1.0.2-dev.
|
|
24
|
-
"@toa.io/generic": "0.11.0-dev.
|
|
25
|
-
"@toa.io/norm": "1.0.2-dev.
|
|
26
|
-
"@toa.io/schema": "0.7.6-dev.
|
|
22
|
+
"@toa.io/core": "1.1.0-dev.10",
|
|
23
|
+
"@toa.io/filesystem": "1.0.2-dev.10",
|
|
24
|
+
"@toa.io/generic": "0.11.0-dev.10",
|
|
25
|
+
"@toa.io/norm": "1.0.2-dev.10",
|
|
26
|
+
"@toa.io/schema": "0.7.6-dev.10",
|
|
27
27
|
"clone-deep": "4.0.1",
|
|
28
28
|
"dotenv": "16.0.3"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "df6df35ff3e9f2d9416118a979d3885a8a1cd897"
|
|
31
31
|
}
|
package/src/contract.js
CHANGED
|
@@ -5,14 +5,14 @@ const { Schema } = require('@toa.io/schema')
|
|
|
5
5
|
|
|
6
6
|
const request = (definition) => {
|
|
7
7
|
const request = Request.schema(definition)
|
|
8
|
-
const schema = new Schema(request)
|
|
8
|
+
const schema = new Schema(request, { removeAdditional: true }) // inputs soft
|
|
9
9
|
|
|
10
10
|
return new Request(schema)
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
const reply = (output, error) => {
|
|
14
14
|
const reply = Reply.schema(output, error)
|
|
15
|
-
const schema = new Schema(reply)
|
|
15
|
+
const schema = new Schema(reply) // outputs strict
|
|
16
16
|
|
|
17
17
|
return new Reply(schema)
|
|
18
18
|
}
|