@tramvai/core 4.34.4 → 4.36.0

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.
@@ -3,6 +3,11 @@ import { AbortController } from 'node-abort-controller';
3
3
 
4
4
  function declareAction(action) {
5
5
  var _a;
6
+ if (process.env.NODE_ENV !== 'production') {
7
+ if (!action.name) {
8
+ throw new Error('"name" attribute must be provided. Provide name manually or use babel plugin for autogeneration (enable "experiments.enableFillDeclareActionNamePlugin" option in tramvai.json configuration file).');
9
+ }
10
+ }
6
11
  // fallback to support compatibility with createAction
7
12
  const fn = (context, payload, deps) => {
8
13
  const abortController = new AbortController();
@@ -7,6 +7,11 @@ var nodeAbortController = require('node-abort-controller');
7
7
 
8
8
  function declareAction(action) {
9
9
  var _a;
10
+ if (process.env.NODE_ENV !== 'production') {
11
+ if (!action.name) {
12
+ throw new Error('"name" attribute must be provided. Provide name manually or use babel plugin for autogeneration (enable "experiments.enableFillDeclareActionNamePlugin" option in tramvai.json configuration file).');
13
+ }
14
+ }
10
15
  // fallback to support compatibility with createAction
11
16
  const fn = (context, payload, deps) => {
12
17
  const abortController = new nodeAbortController.AbortController();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/core",
3
- "version": "4.34.4",
3
+ "version": "4.36.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -19,9 +19,9 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@tinkoff/utils": "^2.1.2",
22
- "@tramvai/tokens-common": "4.34.4",
23
- "@tramvai/tokens-core": "4.34.4",
24
- "@tramvai/types-actions-state-context": "4.34.4",
22
+ "@tramvai/tokens-common": "4.36.0",
23
+ "@tramvai/tokens-core": "4.36.0",
24
+ "@tramvai/types-actions-state-context": "4.36.0",
25
25
  "@tinkoff/dippy": "0.10.8",
26
26
  "node-abort-controller": "^3.0.1",
27
27
  "tslib": "^2.4.0"