@gradin/vue-utils 1.0.4 → 1.0.5
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradin/vue-utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Useful utilities for Vue projects.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "tsc",
|
|
10
10
|
"lint": "eslint . --fix",
|
|
11
|
-
"
|
|
11
|
+
"preversion": "npm run build",
|
|
12
|
+
"publish": "np"
|
|
12
13
|
},
|
|
13
14
|
"files": [
|
|
14
15
|
"dist"
|
|
@@ -47,4 +48,4 @@
|
|
|
47
48
|
"peerDependencies": {
|
|
48
49
|
"vue-router": "^4.6.3 || ^5.2.0"
|
|
49
50
|
}
|
|
50
|
-
}
|
|
51
|
+
}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { resetableReactive } from "./resetable-reactive.js";
|
|
2
|
-
export declare const gReactive: <T extends object>(data: T) => T & {
|
|
3
|
-
reset: () => void;
|
|
4
|
-
set: (newValue: Partial<T>) => void;
|
|
5
|
-
};
|
|
6
|
-
export { currentYear, footerYear, releaseYear, yearsSinceRelease } from "./footer-year.js";
|
|
7
|
-
export { whenRouteChange } from "./when-route-change.js";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Watch the route full path, and trigger callback when query / params change
|
|
3
|
-
* but don't trigger when route name change (move away to other page).
|
|
4
|
-
* Optional watchSource to watch just specific part of the route (not fullPath).
|
|
5
|
-
*/
|
|
6
|
-
export declare const whenRouteChange: (callback: () => void, watchSource?: () => unknown) => void;
|