@thi.ng/errors 2.5.7 → 2.5.8

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-05-08T18:24:31Z
3
+ - **Last updated**: 2024-06-21T19:34:38Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 192 standalone projects, maintained as part
10
+ > This is one of 193 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
package/assert.d.ts CHANGED
@@ -1,13 +1,12 @@
1
- /// <reference types="node" />
2
1
  export declare const AssertionError: {
3
2
  new (msg?: any): {
4
3
  origMessage: string;
5
4
  name: string;
6
5
  message: string;
7
- stack?: string | undefined;
6
+ stack?: string;
8
7
  cause?: unknown;
9
8
  };
10
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
9
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
11
10
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
12
11
  stackTraceLimit: number;
13
12
  };
package/deferror.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  export interface CustomError extends Error {
3
2
  /**
4
3
  * The original message given to the error ctor (prior to applying
@@ -21,10 +20,10 @@ export declare const defError: <T = string>(prefix: (msg?: T) => string, suffix?
21
20
  origMessage: string;
22
21
  name: string;
23
22
  message: string;
24
- stack?: string | undefined;
23
+ stack?: string;
25
24
  cause?: unknown;
26
25
  };
27
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
26
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
28
27
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
29
28
  stackTraceLimit: number;
30
29
  };
@@ -1,13 +1,12 @@
1
- /// <reference types="node" />
2
1
  export declare const IllegalArgumentError: {
3
2
  new (msg?: any): {
4
3
  origMessage: string;
5
4
  name: string;
6
5
  message: string;
7
- stack?: string | undefined;
6
+ stack?: string;
8
7
  cause?: unknown;
9
8
  };
10
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
9
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
11
10
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
12
11
  stackTraceLimit: number;
13
12
  };
@@ -1,13 +1,12 @@
1
- /// <reference types="node" />
2
1
  export declare const IllegalArityError: {
3
2
  new (msg?: number | undefined): {
4
3
  origMessage: string;
5
4
  name: string;
6
5
  message: string;
7
- stack?: string | undefined;
6
+ stack?: string;
8
7
  cause?: unknown;
9
8
  };
10
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
9
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
11
10
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
12
11
  stackTraceLimit: number;
13
12
  };
@@ -1,13 +1,12 @@
1
- /// <reference types="node" />
2
1
  export declare const IllegalStateError: {
3
2
  new (msg?: any): {
4
3
  origMessage: string;
5
4
  name: string;
6
5
  message: string;
7
- stack?: string | undefined;
6
+ stack?: string;
8
7
  cause?: unknown;
9
8
  };
10
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
9
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
11
10
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
12
11
  stackTraceLimit: number;
13
12
  };
package/io.d.ts CHANGED
@@ -1,13 +1,12 @@
1
- /// <reference types="node" />
2
1
  export declare const IOError: {
3
2
  new (msg?: any): {
4
3
  origMessage: string;
5
4
  name: string;
6
5
  message: string;
7
- stack?: string | undefined;
6
+ stack?: string;
8
7
  cause?: unknown;
9
8
  };
10
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
9
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
11
10
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
12
11
  stackTraceLimit: number;
13
12
  };
@@ -17,10 +16,10 @@ export declare const FileNotFoundError: {
17
16
  origMessage: string;
18
17
  name: string;
19
18
  message: string;
20
- stack?: string | undefined;
19
+ stack?: string;
21
20
  cause?: unknown;
22
21
  };
23
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
22
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
24
23
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
25
24
  stackTraceLimit: number;
26
25
  };
@@ -1,13 +1,12 @@
1
- /// <reference types="node" />
2
1
  export declare const OutOfBoundsError: {
3
2
  new (msg?: any): {
4
3
  origMessage: string;
5
4
  name: string;
6
5
  message: string;
7
- stack?: string | undefined;
6
+ stack?: string;
8
7
  cause?: unknown;
9
8
  };
10
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
9
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
11
10
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
12
11
  stackTraceLimit: number;
13
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/errors",
3
- "version": "2.5.7",
3
+ "version": "2.5.8",
4
4
  "description": "Custom error types and error factory functions",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -10,7 +10,7 @@
10
10
  "type": "git",
11
11
  "url": "https://github.com/thi-ng/umbrella.git"
12
12
  },
13
- "homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/errors#readme",
13
+ "homepage": "https://thi.ng/errors",
14
14
  "funding": [
15
15
  {
16
16
  "type": "github",
@@ -36,11 +36,11 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "devDependencies": {
39
- "@microsoft/api-extractor": "^7.43.2",
40
- "@types/node": "^20.12.11",
41
- "esbuild": "^0.21.1",
39
+ "@microsoft/api-extractor": "^7.47.0",
40
+ "@types/node": "^20.14.6",
41
+ "esbuild": "^0.21.5",
42
42
  "typedoc": "^0.25.13",
43
- "typescript": "^5.4.5"
43
+ "typescript": "^5.5.2"
44
44
  },
45
45
  "keywords": [
46
46
  "assert",
@@ -97,5 +97,5 @@
97
97
  "alias": "err",
98
98
  "year": 2018
99
99
  },
100
- "gitHead": "df34b4a9e650cc7323575356de207d78933bdcf3\n"
100
+ "gitHead": "154c95cf9d6bab32174498ec3b5b5d87e42be7f9\n"
101
101
  }
package/unsupported.d.ts CHANGED
@@ -1,13 +1,12 @@
1
- /// <reference types="node" />
2
1
  export declare const UnsupportedOperationError: {
3
2
  new (msg?: any): {
4
3
  origMessage: string;
5
4
  name: string;
6
5
  message: string;
7
- stack?: string | undefined;
6
+ stack?: string;
8
7
  cause?: unknown;
9
8
  };
10
- captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
9
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
11
10
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
12
11
  stackTraceLimit: number;
13
12
  };