@toa.io/boot 1.0.2-dev.0 → 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.
Files changed (2) hide show
  1. package/package.json +7 -7
  2. 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.0",
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.0",
23
- "@toa.io/filesystem": "1.0.2-dev.0",
24
- "@toa.io/generic": "0.11.0-dev.0",
25
- "@toa.io/norm": "1.0.2-dev.0",
26
- "@toa.io/schema": "0.7.6-dev.0",
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": "44a59b3ec335a1be8655b543891767bae799dba1"
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
  }