@toa.io/core 1.0.0-alpha.205 → 1.0.0-alpha.207

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 +4 -4
  2. package/src/context.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/core",
3
- "version": "1.0.0-alpha.205",
3
+ "version": "1.0.0-alpha.207",
4
4
  "description": "Toa Core",
5
5
  "author": "temich <tema.gurtovoy@gmail.com>",
6
6
  "homepage": "https://github.com/toa-io/toa#readme",
@@ -21,10 +21,10 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@rsql/parser": "1.2.4",
24
- "@toa.io/generic": "1.0.0-alpha.173",
25
- "@toa.io/yaml": "1.0.0-alpha.182",
24
+ "@toa.io/generic": "1.0.0-alpha.207",
25
+ "@toa.io/yaml": "1.0.0-alpha.207",
26
26
  "error-value": "0.3.0",
27
27
  "openspan": "1.0.0-alpha.173"
28
28
  },
29
- "gitHead": "2e75e7e218a7ea46213bf8f17ca64dcdd7efdf55"
29
+ "gitHead": "4d21725f243b4565507e644dbc9a8452f8e111ec"
30
30
  }
package/src/context.js CHANGED
@@ -6,6 +6,8 @@ const { Connector } = require('./connector')
6
6
  * @implements {toa.core.Context}
7
7
  */
8
8
  class Context extends Connector {
9
+ env
10
+ name
9
11
  aspects
10
12
 
11
13
  #local
@@ -15,6 +17,8 @@ class Context extends Connector {
15
17
  constructor (local, discover, aspects = []) {
16
18
  super()
17
19
 
20
+ this.env = process.env.TOA_ENV
21
+ this.name = process.env.TOA_CONTEXT
18
22
  this.aspects = aspects
19
23
 
20
24
  this.#local = local