@tramvai/core 5.15.3 → 5.16.2

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,5 +1,4 @@
1
1
  import { ACTION_PARAMETERS } from '@tramvai/types-actions-state-context';
2
- import { AbortController } from 'node-abort-controller';
3
2
 
4
3
  function declareAction(action) {
5
4
  if (process.env.NODE_ENV !== 'production') {
@@ -30,6 +29,7 @@ function declareAction(action) {
30
29
  // { ...action, tramvaiActionVersion: 2 }
31
30
  return Object.assign(fn, {
32
31
  ...action,
32
+ name: action.name,
33
33
  tramvaiActionVersion: 2,
34
34
  // fallback to support compatibility with createAction
35
35
  // @ts-ignore
@@ -3,7 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var typesActionsStateContext = require('@tramvai/types-actions-state-context');
6
- var nodeAbortController = require('node-abort-controller');
7
6
 
8
7
  function declareAction(action) {
9
8
  if (process.env.NODE_ENV !== 'production') {
@@ -13,7 +12,7 @@ function declareAction(action) {
13
12
  }
14
13
  // fallback to support compatibility with createAction
15
14
  const fn = (context, payload, deps) => {
16
- const abortController = new nodeAbortController.AbortController();
15
+ const abortController = new AbortController();
17
16
  return action.fn.apply({
18
17
  executeAction: context.executeAction,
19
18
  dispatch: context.dispatch,
@@ -34,6 +33,7 @@ function declareAction(action) {
34
33
  // { ...action, tramvaiActionVersion: 2 }
35
34
  return Object.assign(fn, {
36
35
  ...action,
36
+ name: action.name,
37
37
  tramvaiActionVersion: 2,
38
38
  // fallback to support compatibility with createAction
39
39
  // @ts-ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/core",
3
- "version": "5.15.3",
3
+ "version": "5.16.2",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -19,11 +19,10 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@tinkoff/utils": "^2.1.2",
22
- "@tramvai/tokens-common": "5.15.3",
23
- "@tramvai/tokens-core": "5.15.3",
24
- "@tramvai/types-actions-state-context": "5.15.3",
22
+ "@tramvai/tokens-common": "5.16.2",
23
+ "@tramvai/tokens-core": "5.16.2",
24
+ "@tramvai/types-actions-state-context": "5.16.2",
25
25
  "@tinkoff/dippy": "0.11.3",
26
- "node-abort-controller": "^3.0.1",
27
26
  "tslib": "^2.4.0"
28
27
  },
29
28
  "peerDependencies": {