@inzombieland/nuxt-common 1.16.9 → 1.16.10

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@inzombieland/nuxt-common",
3
- "version": "1.16.9",
3
+ "version": "1.16.10",
4
4
  "configKey": "nuxt-common",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.6.0",
package/dist/module.mjs CHANGED
@@ -2,7 +2,7 @@ import { fileURLToPath } from 'node:url';
2
2
  import { defineNuxtModule, createResolver, addServerHandler, addImportsDir, addPlugin, addComponent } from '@nuxt/kit';
3
3
 
4
4
  const name = "@inzombieland/nuxt-common";
5
- const version = "1.16.9";
5
+ const version = "1.16.10";
6
6
 
7
7
  const module = defineNuxtModule({
8
8
  meta: {
@@ -1,3 +1,3 @@
1
- export declare const useDevice: () => import("src/runtime/packages/api/helpers/device-helper").Device & {
2
- getInfo: () => string;
1
+ export declare const useDevice: () => import("src/runtime/packages/api/helpers").Device & {
2
+ getInfo: () => Promise<string> | string;
3
3
  };
@@ -1,4 +1,4 @@
1
1
  export { apiHelper } from "./api-helper";
2
2
  export { dateHelper } from "./date-helper";
3
- export { deviceHelper } from "./device-helper";
3
+ export { deviceHelper, type Device } from "./device-helper";
4
4
  export declare function once<T extends (...args: any[]) => any>(fn: T): T;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inzombieland/api",
3
- "version": "1.16.9",
3
+ "version": "1.16.10",
4
4
  "type": "module",
5
5
  "license": "ISC",
6
6
  "main": "./index.mjs",
@@ -33,7 +33,7 @@ export type FetchConfig = {
33
33
  isDesktopApp: boolean;
34
34
  appName: string;
35
35
  getHostname: () => string;
36
- getDevice: () => Promise<string>;
36
+ getDevice: () => Promise<string> | string;
37
37
  useRequestHeaders?: (include: string[]) => {};
38
38
  };
39
39
  export type ActiveSession = {
@@ -86,7 +86,7 @@ export default _default;
86
86
  declare module "#app" {
87
87
  interface NuxtApp {
88
88
  $device: ReturnType<typeof deviceHelper> & {
89
- getInfo: () => string;
89
+ getInfo: () => Promise<string> | string;
90
90
  };
91
91
  $mobileApp: {
92
92
  getInfo?: () => Promise<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inzombieland/nuxt-common",
3
- "version": "1.16.9",
3
+ "version": "1.16.10",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "exports": {