@finema/core 1.0.0 → 1.1.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.
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CookieOptions, CookieRef } from 'nuxt/app';
|
|
2
|
+
export declare const useStatefulCookie: <T = string>(name: string, opts?: CookieOptions<T> | undefined) => CookieRef<T | null>;
|
|
3
|
+
export declare const useCookie6Hours: <T = string>(name: string, opts?: CookieOptions<T> | undefined) => CookieRef<T | null>;
|
|
4
|
+
export declare const useCookie7Days: <T = string | null>(name: string, opts?: CookieOptions<T> | undefined) => CookieRef<T | null>;
|
|
5
|
+
export declare const useCookie365Days: <T = string | null>(name: string, opts?: CookieOptions<T> | undefined) => CookieRef<T | null>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const useWatchTrue: (source: () => boolean, cb: (v: boolean, o: boolean) => any) => void;
|
|
2
|
+
export declare const useWatchFalse: (source: () => boolean, cb: (v: boolean, o: boolean) => any) => void;
|
|
3
|
+
export declare const useWatchChange: (source: () => any, cb: (v: any, o: any) => any) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finema/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -32,6 +32,10 @@
|
|
|
32
32
|
"vitest": "^0.33.0",
|
|
33
33
|
"vue-tsc": "^1.8.3"
|
|
34
34
|
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"nuxt": "^3.7.4",
|
|
37
|
+
"pinia": "^2.1.6"
|
|
38
|
+
},
|
|
35
39
|
"scripts": {
|
|
36
40
|
"test": "vitest run",
|
|
37
41
|
"dev": "vite",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|