vue-act-master 2.3.11 → 2.3.12

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 CHANGED
@@ -4,7 +4,7 @@ A way to separate business logic from application view.
4
4
 
5
5
  The easiest library to create a flexible application architecture.
6
6
 
7
- ## To work with Vue, there are now even fewer dependencies. Just use `act-mater`.
7
+ ## To work with Vue, there are now even fewer dependencies. Just use `act-mater`
8
8
 
9
9
  ```sh
10
10
  npm i act-master
@@ -14,9 +14,9 @@ npm i act-master
14
14
  ![npm version](https://img.shields.io/npm/v/act-master)
15
15
 
16
16
  <div align="center">
17
- <img src="https://raw.githubusercontent.com/avil13/vue-act-master/master/assets/act-master-logo.svg" alt="vue-act-master">
17
+ <img src="https://raw.githubusercontent.com/avil13/act-master/master/assets/act-master-logo.svg" alt="vue-act-master">
18
18
  </div>
19
19
 
20
20
  ---
21
21
 
22
- ## 📗 [Documentation](https://avil13.github.io/vue-act-master/)
22
+ ## 📗 [Documentation](https://avil13.github.io/act-master/)
@@ -1,3 +1,9 @@
1
1
  import { ActEventName } from 'act-master';
2
2
  import { VueDecorator } from './helpers';
3
+ /**
4
+ * Decorator auto binning on the subscription result.
5
+ * Use only in Vue2 - otherwise there will be no auto unsubscribe,
6
+ * that will cause memory leak.
7
+ *
8
+ */
3
9
  export declare function ActInProgress(eventName: ActEventName | ActEventName[]): VueDecorator;
@@ -1,5 +1,11 @@
1
1
  import { ActEventName } from 'act-master';
2
2
  import { VueDecorator } from './helpers';
3
+ /**
4
+ * Decorator auto binning on the subscription result.
5
+ * Use only in Vue2 - otherwise there will be no auto unsubscribe,
6
+ * that will cause memory leak.
7
+ *
8
+ */
3
9
  export declare function ActSubscribe(eventName: ActEventName, pathToData?: PathToData, defaultValue?: unknown): VueDecorator;
4
10
  type GetValueCallback = (value: any) => any;
5
11
  type PathToData = string | null | GetValueCallback;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,10 @@
1
1
  import { type ActMaster, type ActMasterOptions } from 'act-master';
2
2
  export * from 'act-master';
3
3
  export { ActInProgress, ActSubscribe } from './decorators';
4
+ /**
5
+ * Declaration vue2
6
+ *
7
+ */
4
8
  declare module 'vue/types/vue' {
5
9
  interface Vue {
6
10
  $act: ActMaster;
@@ -9,8 +13,15 @@ declare module 'vue/types/vue' {
9
13
  act: ActMaster;
10
14
  }
11
15
  }
16
+ /**
17
+ * Declaration vue3
18
+ *
19
+ */
12
20
  declare module '@vue/runtime-core' {
13
21
  interface ComponentCustomProperties {
22
+ /**
23
+ * Normalized current location. See {@link RouteLocationNormalizedLoaded}.
24
+ */
14
25
  $act: ActMaster;
15
26
  }
16
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-act-master",
3
- "version": "2.3.11",
3
+ "version": "2.3.12",
4
4
  "description": "",
5
5
  "author": "avil13",
6
6
  "main": "dist/vue-act-master.umd.cjs",
@@ -9,9 +9,9 @@
9
9
  "type": "module",
10
10
  "exports": {
11
11
  ".": {
12
+ "types": "./dist/index.d.ts",
12
13
  "require": "./dist/vue-act-master.umd.cjs",
13
- "import": "./dist/vue-act-master.js",
14
- "types": "./dist/index.d.ts"
14
+ "import": "./dist/vue-act-master.js"
15
15
  }
16
16
  },
17
17
  "files": [
@@ -20,7 +20,7 @@
20
20
  "src",
21
21
  "nuxt"
22
22
  ],
23
- "homepage": "https://avil13.github.io/vue-act-master/",
23
+ "homepage": "https://avil13.github.io/act-master/",
24
24
  "keywords": [
25
25
  "actions",
26
26
  "events",