@xylabs/forget 2.10.17 → 2.11.0

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.
@@ -0,0 +1,12 @@
1
+ export interface ForgetTimeoutConfig {
2
+ cancel: () => void;
3
+ delay: number;
4
+ }
5
+ export declare class ForgetPromise {
6
+ static activeForgets: number;
7
+ static get active(): boolean;
8
+ static awaitInactive(interval?: number, timeout?: number): Promise<number>;
9
+ static forget(promise: Promise<unknown>, timeout?: ForgetTimeoutConfig): void;
10
+ }
11
+ export declare const forget: (promise: Promise<unknown>, timeout?: ForgetTimeoutConfig) => void;
12
+ //# sourceMappingURL=forget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forget.d.ts","sourceRoot":"","sources":["../src/forget.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,qBAAa,aAAa;IACxB,MAAM,CAAC,aAAa,SAAI;IAExB,MAAM,KAAK,MAAM,YAEhB;WAEY,aAAa,CAAC,QAAQ,SAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IAe3D,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,EAAE,mBAAmB;CAwCvE;AAGD,eAAO,MAAM,MAAM,YAAa,QAAQ,OAAO,CAAC,YAAY,mBAAmB,SAE9E,CAAA"}
package/dist/index.d.mts CHANGED
@@ -1,13 +1,3 @@
1
- interface ForgetTimeoutConfig {
2
- cancel: () => void;
3
- delay: number;
4
- }
5
- declare class ForgetPromise {
6
- static activeForgets: number;
7
- static get active(): boolean;
8
- static awaitInactive(interval?: number, timeout?: number): Promise<number>;
9
- static forget(promise: Promise<unknown>, timeout?: ForgetTimeoutConfig): void;
10
- }
11
- declare const forget: (promise: Promise<unknown>, timeout?: ForgetTimeoutConfig) => void;
12
-
13
- export { ForgetPromise, forget as default, forget };
1
+ import { forget, ForgetPromise } from './forget';
2
+ export { forget, ForgetPromise };
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAEhD,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,13 +1,3 @@
1
- interface ForgetTimeoutConfig {
2
- cancel: () => void;
3
- delay: number;
4
- }
5
- declare class ForgetPromise {
6
- static activeForgets: number;
7
- static get active(): boolean;
8
- static awaitInactive(interval?: number, timeout?: number): Promise<number>;
9
- static forget(promise: Promise<unknown>, timeout?: ForgetTimeoutConfig): void;
10
- }
11
- declare const forget: (promise: Promise<unknown>, timeout?: ForgetTimeoutConfig) => void;
12
-
13
- export { ForgetPromise, forget as default, forget };
1
+ import { forget, ForgetPromise } from './forget';
2
+ export { forget, ForgetPromise };
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAEhD,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,CAAA"}
package/dist/index.js CHANGED
@@ -1,92 +1,67 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ 'use strict';
19
2
 
20
- // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
23
- ForgetPromise: () => ForgetPromise,
24
- default: () => src_default,
25
- forget: () => forget
26
- });
27
- module.exports = __toCommonJS(src_exports);
3
+ var delay = require('@xylabs/delay');
28
4
 
29
- // src/forget.ts
30
- var import_delay = require("@xylabs/delay");
31
- var ForgetPromise = class {
32
- static activeForgets = 0;
33
- static get active() {
34
- return this.activeForgets > 0;
35
- }
36
- static async awaitInactive(interval = 100, timeout) {
37
- let timeoutRemaining = timeout;
38
- while (this.active) {
39
- await (0, import_delay.delay)(interval);
40
- if (timeoutRemaining !== void 0) {
41
- timeoutRemaining -= interval;
42
- if (timeoutRemaining <= 0) {
43
- return this.activeForgets;
5
+ class ForgetPromise {
6
+ static activeForgets = 0;
7
+ static get active() {
8
+ return this.activeForgets > 0;
9
+ }
10
+ static async awaitInactive(interval = 100, timeout) {
11
+ let timeoutRemaining = timeout;
12
+ while (this.active) {
13
+ await delay.delay(interval);
14
+ if (timeoutRemaining !== undefined) {
15
+ timeoutRemaining -= interval;
16
+ if (timeoutRemaining <= 0) {
17
+ return this.activeForgets;
18
+ }
19
+ }
44
20
  }
45
- }
21
+ return 0;
46
22
  }
47
- return 0;
48
- }
49
- //used to explicitly launch an async function (or Promise) with awaiting it
50
- static forget(promise, timeout) {
51
- let completed = false;
52
- this.activeForgets++;
53
- const promiseWrapper = async () => {
54
- await promise.then(() => {
55
- this.activeForgets--;
56
- completed = true;
57
- }).catch(() => {
58
- this.activeForgets--;
59
- completed = true;
60
- });
61
- };
62
- const promises = [promiseWrapper()];
63
- if (timeout) {
64
- const timeoutFunc = async () => {
65
- await (0, import_delay.delay)(timeout.delay);
66
- if (!completed) {
67
- console.log(`forget promise timeout out after ${timeout.delay}ms [Cancelling]`);
68
- timeout.cancel?.();
23
+ //used to explicitly launch an async function (or Promise) with awaiting it
24
+ static forget(promise, timeout) {
25
+ let completed = false;
26
+ this.activeForgets++;
27
+ const promiseWrapper = async () => {
28
+ await promise
29
+ .then(() => {
30
+ this.activeForgets--;
31
+ completed = true;
32
+ })
33
+ .catch(() => {
34
+ this.activeForgets--;
35
+ completed = true;
36
+ });
37
+ };
38
+ const promises = [promiseWrapper()];
39
+ //if there is a timeout, add it to the race
40
+ if (timeout) {
41
+ const timeoutFunc = async () => {
42
+ await delay.delay(timeout.delay);
43
+ if (!completed) {
44
+ console.log(`forget promise timeout out after ${timeout.delay}ms [Cancelling]`);
45
+ timeout.cancel?.();
46
+ }
47
+ };
48
+ promises.push(timeoutFunc());
69
49
  }
70
- };
71
- promises.push(timeoutFunc());
50
+ const all = Promise.race(promises);
51
+ all
52
+ .then(() => {
53
+ return;
54
+ })
55
+ .catch(() => {
56
+ return;
57
+ });
72
58
  }
73
- const all = Promise.race(promises);
74
- all.then(() => {
75
- return;
76
- }).catch(() => {
77
- return;
78
- });
79
- }
80
- };
81
- var forget = (promise, timeout) => {
82
- ForgetPromise.forget(promise, timeout);
59
+ }
60
+ //used to explicitly launch an async function (or Promise) with awaiting it
61
+ const forget = (promise, timeout) => {
62
+ ForgetPromise.forget(promise, timeout);
83
63
  };
84
64
 
85
- // src/index.ts
86
- var src_default = forget;
87
- // Annotate the CommonJS export names for ESM import in node:
88
- 0 && (module.exports = {
89
- ForgetPromise,
90
- forget
91
- });
92
- //# sourceMappingURL=index.js.map
65
+ exports.ForgetPromise = ForgetPromise;
66
+ exports.forget = forget;
67
+ //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/forget.ts"],"sourcesContent":["import { forget, ForgetPromise } from './forget'\n\nexport { forget, ForgetPromise }\n\n// eslint-disable-next-line import/no-default-export\nexport default forget\n","import { delay } from '@xylabs/delay'\n\nexport interface ForgetTimeoutConfig {\n cancel: () => void\n delay: number\n}\n\nexport class ForgetPromise {\n static activeForgets = 0\n\n static get active() {\n return this.activeForgets > 0\n }\n\n static async awaitInactive(interval = 100, timeout?: number) {\n let timeoutRemaining = timeout\n while (this.active) {\n await delay(interval)\n if (timeoutRemaining !== undefined) {\n timeoutRemaining -= interval\n if (timeoutRemaining <= 0) {\n return this.activeForgets\n }\n }\n }\n return 0\n }\n\n //used to explicitly launch an async function (or Promise) with awaiting it\n static forget(promise: Promise<unknown>, timeout?: ForgetTimeoutConfig) {\n let completed = false\n this.activeForgets++\n\n const promiseWrapper = async () => {\n await promise\n .then(() => {\n this.activeForgets--\n completed = true\n })\n .catch(() => {\n this.activeForgets--\n completed = true\n })\n }\n\n const promises = [promiseWrapper()]\n\n //if there is a timeout, add it to the race\n if (timeout) {\n const timeoutFunc = async () => {\n await delay(timeout.delay)\n if (!completed) {\n console.log(`forget promise timeout out after ${timeout.delay}ms [Cancelling]`)\n timeout.cancel?.()\n }\n }\n promises.push(timeoutFunc())\n }\n\n const all = Promise.race(promises)\n\n all\n .then(() => {\n return\n })\n .catch(() => {\n return\n })\n }\n}\n\n//used to explicitly launch an async function (or Promise) with awaiting it\nexport const forget = (promise: Promise<unknown>, timeout?: ForgetTimeoutConfig) => {\n ForgetPromise.forget(promise, timeout)\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAAsB;AAOf,IAAM,gBAAN,MAAoB;AAAA,EACzB,OAAO,gBAAgB;AAAA,EAEvB,WAAW,SAAS;AAClB,WAAO,KAAK,gBAAgB;AAAA,EAC9B;AAAA,EAEA,aAAa,cAAc,WAAW,KAAK,SAAkB;AAC3D,QAAI,mBAAmB;AACvB,WAAO,KAAK,QAAQ;AAClB,gBAAM,oBAAM,QAAQ;AACpB,UAAI,qBAAqB,QAAW;AAClC,4BAAoB;AACpB,YAAI,oBAAoB,GAAG;AACzB,iBAAO,KAAK;AAAA,QACd;AAAA,MACF;AAAA,IACF;AACA,WAAO;AAAA,EACT;AAAA;AAAA,EAGA,OAAO,OAAO,SAA2B,SAA+B;AACtE,QAAI,YAAY;AAChB,SAAK;AAEL,UAAM,iBAAiB,YAAY;AACjC,YAAM,QACH,KAAK,MAAM;AACV,aAAK;AACL,oBAAY;AAAA,MACd,CAAC,EACA,MAAM,MAAM;AACX,aAAK;AACL,oBAAY;AAAA,MACd,CAAC;AAAA,IACL;AAEA,UAAM,WAAW,CAAC,eAAe,CAAC;AAGlC,QAAI,SAAS;AACX,YAAM,cAAc,YAAY;AAC9B,kBAAM,oBAAM,QAAQ,KAAK;AACzB,YAAI,CAAC,WAAW;AACd,kBAAQ,IAAI,oCAAoC,QAAQ,KAAK,iBAAiB;AAC9E,kBAAQ,SAAS;AAAA,QACnB;AAAA,MACF;AACA,eAAS,KAAK,YAAY,CAAC;AAAA,IAC7B;AAEA,UAAM,MAAM,QAAQ,KAAK,QAAQ;AAEjC,QACG,KAAK,MAAM;AACV;AAAA,IACF,CAAC,EACA,MAAM,MAAM;AACX;AAAA,IACF,CAAC;AAAA,EACL;AACF;AAGO,IAAM,SAAS,CAAC,SAA2B,YAAkC;AAClF,gBAAc,OAAO,SAAS,OAAO;AACvC;;;ADrEA,IAAO,cAAQ;","names":[]}
1
+ {"version":3,"file":"index.js","sources":["../src/forget.ts"],"sourcesContent":[null],"names":["delay"],"mappings":";;;;AAGQ,MAAQ,aAAI,CAAA;IAClB,OAAO,aAAM,GAAA,CAAA,CAAA;AACd,IAAA,WAAA,MAAA,GAAA;AAED,QAAA,OAAA,IAAA,CAAA,aAA0B,GAAA,CAAA,CAAA;KAClB;IAEN,0BAEC,CAAA,QAAA,GAAA,GAAA,EAAA,OAAA,EAAA;AAEY,QAAA,IAAA,gBAAsB,GAAA,OAAA,CAAA;AAenC,QAAA,OAAO,IAAO,CAAA,MAAS,EAAA;AAwCxB,YAAA,MAAAA,WAAA,CAAA,QAAA,CAAA,CAAA;AAGD,YAAO,IAAA,gBAAyB,KAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.mjs CHANGED
@@ -1,64 +1,64 @@
1
- // src/forget.ts
2
- import { delay } from "@xylabs/delay";
3
- var ForgetPromise = class {
4
- static activeForgets = 0;
5
- static get active() {
6
- return this.activeForgets > 0;
7
- }
8
- static async awaitInactive(interval = 100, timeout) {
9
- let timeoutRemaining = timeout;
10
- while (this.active) {
11
- await delay(interval);
12
- if (timeoutRemaining !== void 0) {
13
- timeoutRemaining -= interval;
14
- if (timeoutRemaining <= 0) {
15
- return this.activeForgets;
1
+ import { delay } from '@xylabs/delay';
2
+
3
+ class ForgetPromise {
4
+ static activeForgets = 0;
5
+ static get active() {
6
+ return this.activeForgets > 0;
7
+ }
8
+ static async awaitInactive(interval = 100, timeout) {
9
+ let timeoutRemaining = timeout;
10
+ while (this.active) {
11
+ await delay(interval);
12
+ if (timeoutRemaining !== undefined) {
13
+ timeoutRemaining -= interval;
14
+ if (timeoutRemaining <= 0) {
15
+ return this.activeForgets;
16
+ }
17
+ }
16
18
  }
17
- }
19
+ return 0;
18
20
  }
19
- return 0;
20
- }
21
- //used to explicitly launch an async function (or Promise) with awaiting it
22
- static forget(promise, timeout) {
23
- let completed = false;
24
- this.activeForgets++;
25
- const promiseWrapper = async () => {
26
- await promise.then(() => {
27
- this.activeForgets--;
28
- completed = true;
29
- }).catch(() => {
30
- this.activeForgets--;
31
- completed = true;
32
- });
33
- };
34
- const promises = [promiseWrapper()];
35
- if (timeout) {
36
- const timeoutFunc = async () => {
37
- await delay(timeout.delay);
38
- if (!completed) {
39
- console.log(`forget promise timeout out after ${timeout.delay}ms [Cancelling]`);
40
- timeout.cancel?.();
21
+ //used to explicitly launch an async function (or Promise) with awaiting it
22
+ static forget(promise, timeout) {
23
+ let completed = false;
24
+ this.activeForgets++;
25
+ const promiseWrapper = async () => {
26
+ await promise
27
+ .then(() => {
28
+ this.activeForgets--;
29
+ completed = true;
30
+ })
31
+ .catch(() => {
32
+ this.activeForgets--;
33
+ completed = true;
34
+ });
35
+ };
36
+ const promises = [promiseWrapper()];
37
+ //if there is a timeout, add it to the race
38
+ if (timeout) {
39
+ const timeoutFunc = async () => {
40
+ await delay(timeout.delay);
41
+ if (!completed) {
42
+ console.log(`forget promise timeout out after ${timeout.delay}ms [Cancelling]`);
43
+ timeout.cancel?.();
44
+ }
45
+ };
46
+ promises.push(timeoutFunc());
41
47
  }
42
- };
43
- promises.push(timeoutFunc());
48
+ const all = Promise.race(promises);
49
+ all
50
+ .then(() => {
51
+ return;
52
+ })
53
+ .catch(() => {
54
+ return;
55
+ });
44
56
  }
45
- const all = Promise.race(promises);
46
- all.then(() => {
47
- return;
48
- }).catch(() => {
49
- return;
50
- });
51
- }
52
- };
53
- var forget = (promise, timeout) => {
54
- ForgetPromise.forget(promise, timeout);
57
+ }
58
+ //used to explicitly launch an async function (or Promise) with awaiting it
59
+ const forget = (promise, timeout) => {
60
+ ForgetPromise.forget(promise, timeout);
55
61
  };
56
62
 
57
- // src/index.ts
58
- var src_default = forget;
59
- export {
60
- ForgetPromise,
61
- src_default as default,
62
- forget
63
- };
64
- //# sourceMappingURL=index.mjs.map
63
+ export { ForgetPromise, forget };
64
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/forget.ts","../src/index.ts"],"sourcesContent":["import { delay } from '@xylabs/delay'\n\nexport interface ForgetTimeoutConfig {\n cancel: () => void\n delay: number\n}\n\nexport class ForgetPromise {\n static activeForgets = 0\n\n static get active() {\n return this.activeForgets > 0\n }\n\n static async awaitInactive(interval = 100, timeout?: number) {\n let timeoutRemaining = timeout\n while (this.active) {\n await delay(interval)\n if (timeoutRemaining !== undefined) {\n timeoutRemaining -= interval\n if (timeoutRemaining <= 0) {\n return this.activeForgets\n }\n }\n }\n return 0\n }\n\n //used to explicitly launch an async function (or Promise) with awaiting it\n static forget(promise: Promise<unknown>, timeout?: ForgetTimeoutConfig) {\n let completed = false\n this.activeForgets++\n\n const promiseWrapper = async () => {\n await promise\n .then(() => {\n this.activeForgets--\n completed = true\n })\n .catch(() => {\n this.activeForgets--\n completed = true\n })\n }\n\n const promises = [promiseWrapper()]\n\n //if there is a timeout, add it to the race\n if (timeout) {\n const timeoutFunc = async () => {\n await delay(timeout.delay)\n if (!completed) {\n console.log(`forget promise timeout out after ${timeout.delay}ms [Cancelling]`)\n timeout.cancel?.()\n }\n }\n promises.push(timeoutFunc())\n }\n\n const all = Promise.race(promises)\n\n all\n .then(() => {\n return\n })\n .catch(() => {\n return\n })\n }\n}\n\n//used to explicitly launch an async function (or Promise) with awaiting it\nexport const forget = (promise: Promise<unknown>, timeout?: ForgetTimeoutConfig) => {\n ForgetPromise.forget(promise, timeout)\n}\n","import { forget, ForgetPromise } from './forget'\n\nexport { forget, ForgetPromise }\n\n// eslint-disable-next-line import/no-default-export\nexport default forget\n"],"mappings":";AAAA,SAAS,aAAa;AAOf,IAAM,gBAAN,MAAoB;AAAA,EACzB,OAAO,gBAAgB;AAAA,EAEvB,WAAW,SAAS;AAClB,WAAO,KAAK,gBAAgB;AAAA,EAC9B;AAAA,EAEA,aAAa,cAAc,WAAW,KAAK,SAAkB;AAC3D,QAAI,mBAAmB;AACvB,WAAO,KAAK,QAAQ;AAClB,YAAM,MAAM,QAAQ;AACpB,UAAI,qBAAqB,QAAW;AAClC,4BAAoB;AACpB,YAAI,oBAAoB,GAAG;AACzB,iBAAO,KAAK;AAAA,QACd;AAAA,MACF;AAAA,IACF;AACA,WAAO;AAAA,EACT;AAAA;AAAA,EAGA,OAAO,OAAO,SAA2B,SAA+B;AACtE,QAAI,YAAY;AAChB,SAAK;AAEL,UAAM,iBAAiB,YAAY;AACjC,YAAM,QACH,KAAK,MAAM;AACV,aAAK;AACL,oBAAY;AAAA,MACd,CAAC,EACA,MAAM,MAAM;AACX,aAAK;AACL,oBAAY;AAAA,MACd,CAAC;AAAA,IACL;AAEA,UAAM,WAAW,CAAC,eAAe,CAAC;AAGlC,QAAI,SAAS;AACX,YAAM,cAAc,YAAY;AAC9B,cAAM,MAAM,QAAQ,KAAK;AACzB,YAAI,CAAC,WAAW;AACd,kBAAQ,IAAI,oCAAoC,QAAQ,KAAK,iBAAiB;AAC9E,kBAAQ,SAAS;AAAA,QACnB;AAAA,MACF;AACA,eAAS,KAAK,YAAY,CAAC;AAAA,IAC7B;AAEA,UAAM,MAAM,QAAQ,KAAK,QAAQ;AAEjC,QACG,KAAK,MAAM;AACV;AAAA,IACF,CAAC,EACA,MAAM,MAAM;AACX;AAAA,IACF,CAAC;AAAA,EACL;AACF;AAGO,IAAM,SAAS,CAAC,SAA2B,YAAkC;AAClF,gBAAc,OAAO,SAAS,OAAO;AACvC;;;ACrEA,IAAO,cAAQ;","names":[]}
1
+ {"version":3,"file":"index.mjs","sources":["../src/forget.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAGQ,MAAQ,aAAI,CAAA;IAClB,OAAO,aAAM,GAAA,CAAA,CAAA;AACd,IAAA,WAAA,MAAA,GAAA;AAED,QAAA,OAAA,IAAA,CAAA,aAA0B,GAAA,CAAA,CAAA;KAClB;IAEN,0BAEC,CAAA,QAAA,GAAA,GAAA,EAAA,OAAA,EAAA;AAEY,QAAA,IAAA,gBAAsB,GAAA,OAAA,CAAA;AAenC,QAAA,OAAO,IAAO,CAAA,MAAS,EAAA;AAwCxB,YAAA,MAAA,KAAA,CAAA,QAAA,CAAA,CAAA;AAGD,YAAO,IAAA,gBAAyB,KAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -40,10 +40,6 @@
40
40
  },
41
41
  "main": "dist/index.js",
42
42
  "module": "dist/index.mjs",
43
- "scripts": {
44
- "package-compile": "tsup && publint",
45
- "package-recompile": "tsup && publint"
46
- },
47
43
  "homepage": "https://xylabs.com",
48
44
  "keywords": [
49
45
  "xylabs",
@@ -52,13 +48,11 @@
52
48
  "esm"
53
49
  ],
54
50
  "dependencies": {
55
- "@xylabs/delay": "~2.10.17"
51
+ "@xylabs/delay": "~2.11.0"
56
52
  },
57
53
  "devDependencies": {
58
- "@xylabs/ts-scripts-yarn3": "^2.19.12",
59
- "@xylabs/tsconfig": "^2.19.12",
60
- "publint": "^0.2.2",
61
- "tsup": "^7.2.0"
54
+ "@xylabs/ts-scripts-yarn3": "^3.0.0-rc.15",
55
+ "@xylabs/tsconfig": "^3.0.0-rc.15"
62
56
  },
63
57
  "publishConfig": {
64
58
  "access": "public"
@@ -68,5 +62,5 @@
68
62
  "url": "https://github.com/xylabs/sdk-js.git"
69
63
  },
70
64
  "sideEffects": false,
71
- "version": "2.10.17"
65
+ "version": "2.11.0"
72
66
  }
package/src/index.ts CHANGED
@@ -1,6 +1,3 @@
1
1
  import { forget, ForgetPromise } from './forget'
2
2
 
3
3
  export { forget, ForgetPromise }
4
-
5
- // eslint-disable-next-line import/no-default-export
6
- export default forget
package/tsup.config.ts DELETED
@@ -1,16 +0,0 @@
1
- import { defineConfig } from 'tsup'
2
-
3
- // eslint-disable-next-line import/no-default-export
4
- export default defineConfig({
5
- bundle: true,
6
- cjsInterop: true,
7
- clean: false,
8
- dts: {
9
- entry: ['src/index.ts'],
10
- },
11
- entry: ['src/index.ts'],
12
- format: ['cjs', 'esm'],
13
- sourcemap: true,
14
- splitting: false,
15
- tsconfig: 'tsconfig.build.json',
16
- })