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

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.4",
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.4",
24
+ "@toa.io/filesystem": "0.24.0-alpha.4",
25
+ "@toa.io/generic": "0.24.0-alpha.4",
26
+ "@toa.io/norm": "0.24.0-alpha.4",
27
+ "@toa.io/schema": "0.24.0-alpha.4",
28
28
  "clone-deep": "4.0.1",
29
29
  "dotenv": "16.1.1"
30
30
  },
31
- "gitHead": "3cc48302f33c5594dff99034b809ea2ac49d4b02"
31
+ "gitHead": "41f549ae652b625d65f4ba12ea1025f0214fdb0f"
32
32
  }
package/src/index.js CHANGED
@@ -7,7 +7,6 @@ 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
12
  const { images } = require('./images')
@@ -28,7 +27,6 @@ exports.cascade = cascade
28
27
  exports.component = component
29
28
  exports.composition = composition
30
29
  exports.context = context
31
- exports.deployment = deployment
32
30
  exports.emission = emission
33
31
  exports.exposition = exposition
34
32
  exports.images = images
@@ -36,6 +34,5 @@ exports.manifest = manifest
36
34
  exports.operation = operation
37
35
  exports.receivers = receivers
38
36
  exports.receive = receive
39
- exports.registry = registry
40
37
  exports.remote = remote
41
38
  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