@tramvai/module-environment 4.9.0 → 4.9.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.
|
@@ -25,12 +25,20 @@ class EnvironmentManagerServer extends EnvironmentManager {
|
|
|
25
25
|
* @deprecated use CLIENT_ENV_MANAGER_TOKEN
|
|
26
26
|
*/
|
|
27
27
|
clientUsed() {
|
|
28
|
+
if (process.env.NODE_ENV === 'development') {
|
|
29
|
+
// eslint-disable-next-line no-console
|
|
30
|
+
console.warn('Method ENV_MANAGER_TOKEN.clientUsed is deprecated, use CLIENT_ENV_MANAGER_TOKEN.getAll instead');
|
|
31
|
+
}
|
|
28
32
|
return this.clientEnvRepository.getAll();
|
|
29
33
|
}
|
|
30
34
|
/**
|
|
31
35
|
* @deprecated use CLIENT_ENV_MANAGER_TOKEN
|
|
32
36
|
*/
|
|
33
37
|
updateClientUsed(result) {
|
|
38
|
+
if (process.env.NODE_ENV === 'development') {
|
|
39
|
+
// eslint-disable-next-line no-console
|
|
40
|
+
console.warn('Method ENV_MANAGER_TOKEN.updateClientUsed is deprecated, use CLIENT_ENV_MANAGER_TOKEN.update instead');
|
|
41
|
+
}
|
|
34
42
|
this.clientEnvRepository.update(result);
|
|
35
43
|
}
|
|
36
44
|
// eslint-disable-next-line class-methods-use-this
|
|
@@ -33,12 +33,20 @@ class EnvironmentManagerServer extends EnvironmentManager.EnvironmentManager {
|
|
|
33
33
|
* @deprecated use CLIENT_ENV_MANAGER_TOKEN
|
|
34
34
|
*/
|
|
35
35
|
clientUsed() {
|
|
36
|
+
if (process.env.NODE_ENV === 'development') {
|
|
37
|
+
// eslint-disable-next-line no-console
|
|
38
|
+
console.warn('Method ENV_MANAGER_TOKEN.clientUsed is deprecated, use CLIENT_ENV_MANAGER_TOKEN.getAll instead');
|
|
39
|
+
}
|
|
36
40
|
return this.clientEnvRepository.getAll();
|
|
37
41
|
}
|
|
38
42
|
/**
|
|
39
43
|
* @deprecated use CLIENT_ENV_MANAGER_TOKEN
|
|
40
44
|
*/
|
|
41
45
|
updateClientUsed(result) {
|
|
46
|
+
if (process.env.NODE_ENV === 'development') {
|
|
47
|
+
// eslint-disable-next-line no-console
|
|
48
|
+
console.warn('Method ENV_MANAGER_TOKEN.updateClientUsed is deprecated, use CLIENT_ENV_MANAGER_TOKEN.update instead');
|
|
49
|
+
}
|
|
42
50
|
this.clientEnvRepository.update(result);
|
|
43
51
|
}
|
|
44
52
|
// eslint-disable-next-line class-methods-use-this
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-environment",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.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": "4.9.
|
|
23
|
-
"@tramvai/papi": "4.9.
|
|
24
|
-
"@tramvai/state": "4.9.
|
|
25
|
-
"@tramvai/tokens-common": "4.9.
|
|
26
|
-
"@tramvai/tokens-server": "4.9.
|
|
22
|
+
"@tramvai/core": "4.9.1",
|
|
23
|
+
"@tramvai/papi": "4.9.1",
|
|
24
|
+
"@tramvai/state": "4.9.1",
|
|
25
|
+
"@tramvai/tokens-common": "4.9.1",
|
|
26
|
+
"@tramvai/tokens-server": "4.9.1",
|
|
27
27
|
"@tinkoff/dippy": "0.10.2",
|
|
28
28
|
"react": ">=16.14.0",
|
|
29
29
|
"react-dom": ">=16.14.0",
|