arui-scripts 15.6.0 → 15.6.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.
@@ -1,4 +1,4 @@
1
- PASS src/configs/app-configs/__tests__/update-with-presets.tests.ts (15.355 s)
1
+ PASS src/configs/app-configs/__tests__/update-with-presets.tests.ts (13.643 s)
2
2
  PASS src/configs/util/__tests__/get-polyfills.tests.ts
3
3
  PASS src/configs/util/__tests__/apply-overrides.tests.ts
4
4
  PASS src/configs/app-configs/__tests__/update-with-env.tests.ts
@@ -7,15 +7,15 @@ PASS src/configs/app-configs/__tests__/update-with-env.tests.ts
7
7
  console.warn
8
8
  Используйте ARUI_SCRIPTS_CONFIG только для отладки
9
9
 
10
- 8 |
11
- 9 | try {
12
- > 10 | console.warn('Используйте ARUI_SCRIPTS_CONFIG только для отладки');
10
+ 9 |
11
+ 10 | try {
12
+ > 11 | console.warn('Используйте ARUI_SCRIPTS_CONFIG только для отладки');
13
13
  | ^
14
- 11 | const envSettings = JSON.parse(process.env.ARUI_SCRIPTS_CONFIG);
15
- 12 | validateSettingsKeys(config, envSettings, 'ENV');
16
- 13 | return {
14
+ 12 | const envSettings = JSON.parse(process.env.ARUI_SCRIPTS_CONFIG);
15
+ 13 | validateSettingsKeys(config, envSettings, 'ENV');
16
+ 14 | return merge(config, envSettings);
17
17
 
18
- at updateWithEnv (src/configs/app-configs/update-with-env.ts:10:17)
18
+ at updateWithEnv (src/configs/app-configs/update-with-env.ts:11:17)
19
19
  at src/configs/app-configs/__tests__/update-with-env.tests.ts:30:26
20
20
  at Object.<anonymous> (../../node_modules/expect/build/toThrowMatchers.js:83:11)
21
21
  at Object.throwingMatcher [as toThrowError] (../../node_modules/expect/build/index.js:342:21)
@@ -24,7 +24,7 @@ PASS src/configs/app-configs/__tests__/update-with-env.tests.ts
24
24
  console.error
25
25
  SyntaxError: Unexpected token o in JSON at position 1
26
26
  at JSON.parse (<anonymous>)
27
- at updateWithEnv (/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/app-configs/update-with-env.ts:11:34)
27
+ at updateWithEnv (/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/app-configs/update-with-env.ts:12:34)
28
28
  at /home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/app-configs/__tests__/update-with-env.tests.ts:30:26
29
29
  at Object.<anonymous> (/home/runner/work/arui-scripts/arui-scripts/node_modules/expect/build/toThrowMatchers.js:83:11)
30
30
  at Object.throwingMatcher [as toThrowError] (/home/runner/work/arui-scripts/arui-scripts/node_modules/expect/build/index.js:342:21)
@@ -34,15 +34,15 @@ PASS src/configs/app-configs/__tests__/update-with-env.tests.ts
34
34
  at callAsyncCircusFn (/home/runner/work/arui-scripts/arui-scripts/node_modules/jest-circus/build/utils.js:259:10)
35
35
  at _callCircusTest (/home/runner/work/arui-scripts/arui-scripts/node_modules/jest-circus/build/run.js:277:40)
36
36
 
37
- 16 | };
38
- 17 | } catch (e) {
39
- > 18 | console.error(e);
37
+ 14 | return merge(config, envSettings);
38
+ 15 | } catch (e) {
39
+ > 16 | console.error(e);
40
40
  | ^
41
- 19 | throw Error('Not valid JSON passed. Correct it. For example: ARUI_SCRIPTS_CONFIG="{\"serverPort\":3333}"');
42
- 20 | }
43
- 21 | }
41
+ 17 | throw Error('Not valid JSON passed. Correct it. For example: ARUI_SCRIPTS_CONFIG="{\"serverPort\":3333}"');
42
+ 18 | }
43
+ 19 | }
44
44
 
45
- at updateWithEnv (src/configs/app-configs/update-with-env.ts:18:17)
45
+ at updateWithEnv (src/configs/app-configs/update-with-env.ts:16:17)
46
46
  at src/configs/app-configs/__tests__/update-with-env.tests.ts:30:26
47
47
  at Object.<anonymous> (../../node_modules/expect/build/toThrowMatchers.js:83:11)
48
48
  at Object.throwingMatcher [as toThrowError] (../../node_modules/expect/build/index.js:342:21)
@@ -51,15 +51,15 @@ PASS src/configs/app-configs/__tests__/update-with-env.tests.ts
51
51
  console.warn
52
52
  Используйте ARUI_SCRIPTS_CONFIG только для отладки
53
53
 
54
- 8 |
55
- 9 | try {
56
- > 10 | console.warn('Используйте ARUI_SCRIPTS_CONFIG только для отладки');
54
+ 9 |
55
+ 10 | try {
56
+ > 11 | console.warn('Используйте ARUI_SCRIPTS_CONFIG только для отладки');
57
57
  | ^
58
- 11 | const envSettings = JSON.parse(process.env.ARUI_SCRIPTS_CONFIG);
59
- 12 | validateSettingsKeys(config, envSettings, 'ENV');
60
- 13 | return {
58
+ 12 | const envSettings = JSON.parse(process.env.ARUI_SCRIPTS_CONFIG);
59
+ 13 | validateSettingsKeys(config, envSettings, 'ENV');
60
+ 14 | return merge(config, envSettings);
61
61
 
62
- at updateWithEnv (src/configs/app-configs/update-with-env.ts:10:17)
62
+ at updateWithEnv (src/configs/app-configs/update-with-env.ts:11:17)
63
63
  at Object.<anonymous> (src/configs/app-configs/__tests__/update-with-env.tests.ts:38:44)
64
64
 
65
65
  PASS src/configs/app-configs/__tests__/update-with-package.tests.ts
@@ -87,5 +87,5 @@ PASS src/configs/app-configs/__tests__/validate-settings-keys.tests.ts
87
87
  Test Suites: 6 passed, 6 total
88
88
  Tests: 17 passed, 17 total
89
89
  Snapshots: 0 total
90
- Time: 16.953 s
90
+ Time: 15.013 s
91
91
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # [15.3.0](https://github.com/core-ds/arui-scripts/compare/v15.2.0...v15.3.0) (2023-06-30)
2
2
 
3
+ ## 15.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#91](https://github.com/core-ds/arui-scripts/pull/91) [`33a1c60`](https://github.com/core-ds/arui-scripts/commit/33a1c60dceae7fa78ede8e073ccb7f57927c07b0) Thanks [@Echzio](https://github.com/Echzio)! - fix docs
8
+
9
+ - [#88](https://github.com/core-ds/arui-scripts/pull/88) [`dcb6fd3`](https://github.com/core-ds/arui-scripts/commit/dcb6fd3a69a5877e43ae08e6330c8bbb0a095bb3) Thanks [@heymdall-legal](https://github.com/heymdall-legal)! - Correctly merge complex settings
10
+
3
11
  ## 15.6.0
4
12
 
5
13
  ### Minor Changes