@tb-dev/vue 4.0.2 → 4.0.3

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.
@@ -8,6 +8,6 @@ export declare function asyncRef<T>(initial: T, fn: () => Promise<T>, options?:
8
8
  state: ShallowRef<T>;
9
9
  loading: Readonly<Ref<boolean>>;
10
10
  isReady: Readonly<Ref<boolean>>;
11
- execute: () => Promise<void>;
11
+ load: () => Promise<void>;
12
12
  };
13
13
  export {};
package/dist/index.js CHANGED
@@ -145,14 +145,14 @@ function asyncRef(initial, fn, options = {}) {
145
145
  throwError: false,
146
146
  ...options
147
147
  });
148
- const execute = async () => {
148
+ const load = async () => {
149
149
  await value.execute();
150
150
  };
151
151
  return {
152
152
  state: value.state,
153
153
  loading: value.isLoading,
154
154
  isReady: value.isReady,
155
- execute
155
+ load
156
156
  };
157
157
  }
158
158
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-dev/vue",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Vue utilities",
5
5
  "license": "MIT",
6
6
  "type": "module",