@tramvai/module-environment 2.72.5 → 2.73.1
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/README.md +6 -2
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -23,8 +23,8 @@ import { provide } from '@tramvai/core';
|
|
|
23
23
|
provide({
|
|
24
24
|
provide: ENV_USED_TOKEN,
|
|
25
25
|
useValue: [
|
|
26
|
-
{ key: 'DEBUG_MODULE'
|
|
27
|
-
{ key: 'DEBUG_MODULE_URL'
|
|
26
|
+
{ key: 'DEBUG_MODULE' },
|
|
27
|
+
{ key: 'DEBUG_MODULE_URL' },
|
|
28
28
|
],
|
|
29
29
|
multi: true,
|
|
30
30
|
}),
|
|
@@ -140,3 +140,7 @@ To do this, pass env parameters when starting the application. For example in Do
|
|
|
140
140
|
To get a list of variables, there is a `/papi/apiList` method
|
|
141
141
|
|
|
142
142
|
Request example: `http://localhost:3000/${appName}/papi/apiList`
|
|
143
|
+
|
|
144
|
+
### How to make an ENV variable optional?
|
|
145
|
+
|
|
146
|
+
To do this, pass `optional: true` parameter. For example { key: 'DEBUG_MODULE', optional: true }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-environment",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.73.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"browser": "lib/browser.js",
|
|
6
6
|
"main": "lib/server.js",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"@tinkoff/utils": "^2.1.2",
|
|
22
|
-
"@tramvai/core": "2.
|
|
23
|
-
"@tramvai/papi": "2.
|
|
24
|
-
"@tramvai/state": "2.
|
|
25
|
-
"@tramvai/tokens-common": "2.
|
|
26
|
-
"@tramvai/tokens-server": "2.
|
|
22
|
+
"@tramvai/core": "2.73.1",
|
|
23
|
+
"@tramvai/papi": "2.73.1",
|
|
24
|
+
"@tramvai/state": "2.73.1",
|
|
25
|
+
"@tramvai/tokens-common": "2.73.1",
|
|
26
|
+
"@tramvai/tokens-server": "2.73.1",
|
|
27
27
|
"@tinkoff/dippy": "0.8.13",
|
|
28
28
|
"react": ">=16.14.0",
|
|
29
29
|
"react-dom": ">=16.14.0",
|