@toa.io/boot 0.24.0-alpha.3 → 0.24.0-alpha.5

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/boot",
3
- "version": "0.24.0-alpha.3",
3
+ "version": "0.24.0-alpha.5",
4
4
  "description": "Toa Boot",
5
5
  "author": "temich <tema.gurtovoy@gmail.com>",
6
6
  "homepage": "https://github.com/toa-io/toa#readme",
@@ -20,13 +20,13 @@
20
20
  "test": "echo \"Error: run tests from root\" && exit 1"
21
21
  },
22
22
  "dependencies": {
23
- "@toa.io/core": "0.24.0-alpha.3",
24
- "@toa.io/filesystem": "0.24.0-alpha.3",
25
- "@toa.io/generic": "0.24.0-alpha.3",
26
- "@toa.io/norm": "0.24.0-alpha.3",
27
- "@toa.io/schema": "0.24.0-alpha.3",
23
+ "@toa.io/core": "0.24.0-alpha.5",
24
+ "@toa.io/filesystem": "0.24.0-alpha.5",
25
+ "@toa.io/generic": "0.24.0-alpha.5",
26
+ "@toa.io/norm": "0.24.0-alpha.5",
27
+ "@toa.io/schema": "0.24.0-alpha.5",
28
28
  "clone-deep": "4.0.1",
29
29
  "dotenv": "16.1.1"
30
30
  },
31
- "gitHead": "3cc48302f33c5594dff99034b809ea2ac49d4b02"
31
+ "gitHead": "3113167ef4b77abab9ac57c3416b2935e07518e8"
32
32
  }
package/src/index.js CHANGED
@@ -7,10 +7,8 @@ const { cascade } = require('./cascade')
7
7
  const { component } = require('./component')
8
8
  const { composition } = require('./composition')
9
9
  const { context } = require('./context')
10
- const { deployment, registry } = require('./deployment')
11
10
  const { emission } = require('./emission')
12
11
  const { exposition } = require('./exposition')
13
- const { images } = require('./images')
14
12
  const { manifest } = require('./manifest')
15
13
  const { operation } = require('./operation')
16
14
  const { receivers, receive } = require('./receivers')
@@ -28,14 +26,11 @@ exports.cascade = cascade
28
26
  exports.component = component
29
27
  exports.composition = composition
30
28
  exports.context = context
31
- exports.deployment = deployment
32
29
  exports.emission = emission
33
30
  exports.exposition = exposition
34
- exports.images = images
35
31
  exports.manifest = manifest
36
32
  exports.operation = operation
37
33
  exports.receivers = receivers
38
34
  exports.receive = receive
39
- exports.registry = registry
40
35
  exports.remote = remote
41
36
  exports.storage = storage
package/src/deployment.js DELETED
@@ -1,34 +0,0 @@
1
- 'use strict'
2
-
3
- const { deployment: { Factory } } = require('@toa.io/operations')
4
- const { context: load } = require('@toa.io/norm')
5
-
6
- /**
7
- * @param {string} path
8
- * @param {string} [environment]
9
- * @returns {Promise<toa.deployment.Operator>}
10
- */
11
- const deployment = async (path, environment) => {
12
- const factory = await getFactory(path, environment)
13
-
14
- return factory.operator()
15
- }
16
-
17
- /**
18
- * @param {string} path
19
- * @returns {Promise<toa.deployment.Registry>}
20
- */
21
- const registry = async (path) => {
22
- const factory = await getFactory(path)
23
-
24
- return factory.registry()
25
- }
26
-
27
- async function getFactory (path, environment) {
28
- const context = await load(path, environment)
29
-
30
- return new Factory(context)
31
- }
32
-
33
- exports.deployment = deployment
34
- exports.registry = registry
package/src/images.js DELETED
@@ -1,12 +0,0 @@
1
- 'use strict'
2
-
3
- const { Images } = require('@toa.io/operations')
4
- const { context: load } = require('@toa.io/norm')
5
-
6
- const images = async (path) => {
7
- const context = await load(path)
8
-
9
- return new Images(context)
10
- }
11
-
12
- exports.images = images