@appartmint/tsm-mint 0.1.7 → 0.1.9

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(e){return new Promise(t=>setTimeout(t,e))}exports.wait=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(t){return new Promise(e=>setTimeout(e,t))}async function n(t,e){const[a]=await Promise.all([e,i(t)]);return a}exports.wait=i;exports.waitAtLeast=n;
@@ -1 +1,2 @@
1
1
  export declare function wait(ms: number): Promise<void>;
2
+ export declare function waitAtLeast<T>(ms: number, promise: Promise<T>): Promise<T>;
@@ -1,6 +1,11 @@
1
- function i(e) {
2
- return new Promise((t) => setTimeout(t, e));
1
+ function i(t) {
2
+ return new Promise((e) => setTimeout(e, t));
3
+ }
4
+ async function r(t, e) {
5
+ const [n] = await Promise.all([e, i(t)]);
6
+ return n;
3
7
  }
4
8
  export {
5
- i as wait
9
+ i as wait,
10
+ r as waitAtLeast
6
11
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(t){const e=new Date(t);return e.setTime(e.getTime()-e.getTimezoneOffset()*60*1e3),e.toISOString().slice(0,-1)}exports.toDatetimeLocal=o;
@@ -0,0 +1 @@
1
+ export declare function toDatetimeLocal(utcDate: string): string;
@@ -0,0 +1,7 @@
1
+ function i(t) {
2
+ const e = new Date(t);
3
+ return e.setTime(e.getTime() - e.getTimezoneOffset() * 60 * 1e3), e.toISOString().slice(0, -1);
4
+ }
5
+ export {
6
+ i as toDatetimeLocal
7
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appartmint/tsm-mint",
3
3
  "author": "App Art Mint LLC",
4
- "version": "0.1.7",
4
+ "version": "0.1.9",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "description": "TypeScript Modules from App Art Mint LLC",