@mevbg/nuxt-kit 0.5.11 → 0.5.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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mevbg/nuxt-kit",
3
3
  "configKey": "mevKit",
4
- "version": "0.5.11",
4
+ "version": "0.5.12",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.0"
@@ -2,5 +2,8 @@ type Manifest = {
2
2
  rel: string;
3
3
  href: string;
4
4
  };
5
- export declare function useHeadLinks(path?: string, hash?: string): Manifest[];
5
+ export declare function useHeadLinks({ path, hash }?: {
6
+ path?: string;
7
+ hash?: string;
8
+ }): Manifest[];
6
9
  export {};
@@ -1,7 +1,4 @@
1
- const today = /* @__PURE__ */ new Date();
2
- today.setHours(0, 0, 0, 0);
3
- const DEFAULT_HASH = today.getTime().toString();
4
- export function useHeadLinks(path = "/assets", hash = DEFAULT_HASH) {
1
+ export function useHeadLinks({ path = "/assets", hash = Date.now().toString() } = {}) {
5
2
  const manifests = [
6
3
  { rel: "manifest", href: `${path}/manifest.webmanifest` },
7
4
  { rel: "yandex-tableau-widget", href: `${path}/yandex-browser-manifest.json` }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mevbg/nuxt-kit",
3
3
  "title": "Mev’s Nuxt Kit",
4
- "version": "0.5.11",
4
+ "version": "0.5.12",
5
5
  "description": "Mev’s personal Nuxt kit module.",
6
6
  "keywords": [
7
7
  "nuxt kit",