@xylabs/forget 4.0.2 → 4.0.4

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 const ForgetPromise: {
6
+ readonly active: boolean;
7
+ activeForgets: number;
8
+ awaitInactive(interval?: number, timeout?: number): Promise<number>;
9
+ forget<T>(promise: Promise<T>, config?: 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,eAAO,MAAM,aAAa;;;+CAOsB,MAAM;WAmB7C,CAAC,WAAW,OAAO,CAAC,CAAC,CAAC,WAAW,mBAAmB;CAwC5D,CAAA;AAGD,eAAO,MAAM,MAAM,YAAa,OAAO,CAAC,OAAO,CAAC,YAAY,mBAAmB,SAE9E,CAAA"}
@@ -1,13 +1,2 @@
1
- interface ForgetTimeoutConfig {
2
- cancel: () => void;
3
- delay: number;
4
- }
5
- declare const ForgetPromise: {
6
- readonly active: boolean;
7
- activeForgets: number;
8
- awaitInactive(interval?: number, timeout?: number): Promise<number>;
9
- forget<T>(promise: Promise<T>, config?: ForgetTimeoutConfig): void;
10
- };
11
- declare const forget: (promise: Promise<unknown>, timeout?: ForgetTimeoutConfig) => void;
12
-
13
- export { ForgetPromise, forget };
1
+ export { forget, ForgetPromise } from './forget.ts';
2
+ //# 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,aAAa,CAAA"}
package/package.json CHANGED
@@ -1,16 +1,31 @@
1
1
  {
2
- "license": "LGPL-3.0-only",
3
2
  "name": "@xylabs/forget",
3
+ "version": "4.0.4",
4
+ "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
5
+ "keywords": [
6
+ "forget",
7
+ "xylabs",
8
+ "utility",
9
+ "typescript",
10
+ "esm"
11
+ ],
12
+ "homepage": "https://xylabs.com",
13
+ "bugs": {
14
+ "url": "git+https://github.com/xylabs/sdk-js/issues",
15
+ "email": "support@xylabs.com"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/xylabs/sdk-js.git"
20
+ },
21
+ "license": "LGPL-3.0-only",
4
22
  "author": {
5
- "email": "support@xylabs.com",
6
23
  "name": "XY Labs Development Team",
7
- "url": "https://xylabs.com"
8
- },
9
- "bugs": {
10
24
  "email": "support@xylabs.com",
11
- "url": "git+https://github.com/xylabs/sdk-js/issues"
25
+ "url": "https://xylabs.com"
12
26
  },
13
- "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
27
+ "sideEffects": false,
28
+ "type": "module",
14
29
  "exports": {
15
30
  ".": {
16
31
  "types": "./dist/neutral/index.d.ts",
@@ -18,22 +33,14 @@
18
33
  },
19
34
  "./package.json": "./package.json"
20
35
  },
21
- "types": "./dist/neutral/index.d.ts",
22
36
  "module": "./dist/neutral/index.mjs",
23
- "homepage": "https://xylabs.com",
24
- "keywords": [
25
- "forget",
26
- "xylabs",
27
- "utility",
28
- "typescript",
29
- "esm"
30
- ],
37
+ "types": "./dist/neutral/index.d.ts",
31
38
  "dependencies": {
32
- "@xylabs/delay": "^4.0.2"
39
+ "@xylabs/delay": "^4.0.4"
33
40
  },
34
41
  "devDependencies": {
35
- "@xylabs/ts-scripts-yarn3": "^4.0.0-rc.15",
36
- "@xylabs/tsconfig": "^4.0.0-rc.15",
42
+ "@xylabs/ts-scripts-yarn3": "^4.0.7",
43
+ "@xylabs/tsconfig": "^4.0.7",
37
44
  "typescript": "^5.5.4"
38
45
  },
39
46
  "engines": {
@@ -41,12 +48,5 @@
41
48
  },
42
49
  "publishConfig": {
43
50
  "access": "public"
44
- },
45
- "repository": {
46
- "type": "git",
47
- "url": "git+https://github.com/xylabs/sdk-js.git"
48
- },
49
- "sideEffects": false,
50
- "version": "4.0.2",
51
- "type": "module"
51
+ }
52
52
  }
package/xy.config.ts CHANGED
@@ -2,9 +2,7 @@ import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
2
  const config: XyTsupConfig = {
3
3
  compile: {
4
4
  browser: {},
5
- neutral: {
6
- src: true,
7
- },
5
+ neutral: { src: true },
8
6
  node: {},
9
7
  },
10
8
  }