@react-pakistan/util-functions 1.24.9 → 1.24.11

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.
@@ -42,6 +42,7 @@ export * from './resolve-grid';
42
42
  export * from './resolve-initials';
43
43
  export * from './slugify';
44
44
  export * from './text-to-enum';
45
+ export * from './time-out';
45
46
  export * from './truncate-text';
46
47
  export * from './type';
47
48
  export * from './upload-blob-to-private-supabase';
package/general/index.js CHANGED
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- // export * from './time-out';
18
17
  __exportStar(require("./basic-get"), exports);
19
18
  __exportStar(require("./basic-post"), exports);
20
19
  __exportStar(require("./calculate-pages"), exports);
@@ -59,6 +58,7 @@ __exportStar(require("./resolve-grid"), exports);
59
58
  __exportStar(require("./resolve-initials"), exports);
60
59
  __exportStar(require("./slugify"), exports);
61
60
  __exportStar(require("./text-to-enum"), exports);
61
+ __exportStar(require("./time-out"), exports);
62
62
  __exportStar(require("./truncate-text"), exports);
63
63
  __exportStar(require("./type"), exports);
64
64
  __exportStar(require("./upload-blob-to-private-supabase"), exports);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Returns a promisified setTimeout that can be awaited
3
+ * await timeout(500);
4
+ *
5
+ * @returns Promise
6
+ * @author
7
+ * @remarks
8
+ */
9
+ /** End file docs */
10
+ export declare const timeout: (ms: number) => Promise<void>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.timeout = void 0;
5
+ /**
6
+ * Returns a promisified setTimeout that can be awaited
7
+ * await timeout(500);
8
+ *
9
+ * @returns Promise
10
+ * @author
11
+ * @remarks
12
+ */
13
+ /** End file docs */
14
+ var timeout = function (ms) { return new Promise(function (resolve) { return setTimeout(resolve, ms); }); };
15
+ exports.timeout = timeout;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pakistan/util-functions",
3
- "version": "1.24.9",
3
+ "version": "1.24.11",
4
4
  "description": "A library of all util functions",
5
5
  "main": "index.js",
6
6
  "scripts": {