@ciwergrp/nuxid 1.4.0 → 1.4.2

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": "@ciwergrp/nuxid",
3
3
  "configKey": "nuxid",
4
- "version": "1.4.0",
4
+ "version": "1.4.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -2,8 +2,6 @@ import type { NitroFetchOptions, NitroFetchRequest } from 'nitropack';
2
2
  export interface APIResponseCursor<T> {
3
3
  data: T[];
4
4
  meta: {
5
- afterCursor?: string | null;
6
- hasMore?: boolean;
7
5
  [key: string]: any;
8
6
  };
9
7
  }
@@ -181,8 +181,12 @@ export async function useCursorHttp(url, options) {
181
181
  clearInterval(pollTimer);
182
182
  }
183
183
  });
184
- if (!lazy && immediate) {
185
- await init();
184
+ if (immediate) {
185
+ if (lazy) {
186
+ void init();
187
+ } else {
188
+ await init();
189
+ }
186
190
  }
187
191
  return {
188
192
  data,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ciwergrp/nuxid",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "All-in-one essential modules for Nuxt",
5
5
  "repository": {
6
6
  "type": "git",