@thi.ng/errors 2.5.42 → 2.5.45
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/package.json +101 -102
- package/CHANGELOG.md +0 -61
package/package.json
CHANGED
|
@@ -1,103 +1,102 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
2
|
+
"name": "@thi.ng/errors",
|
|
3
|
+
"version": "2.5.45",
|
|
4
|
+
"description": "Custom error types and error factory functions",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "./index.js",
|
|
7
|
+
"typings": "./index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/thi-ng/umbrella.git"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://thi.ng/errors",
|
|
14
|
+
"funding": [
|
|
15
|
+
{
|
|
16
|
+
"type": "github",
|
|
17
|
+
"url": "https://github.com/sponsors/postspectacular"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "patreon",
|
|
21
|
+
"url": "https://patreon.com/thing_umbrella"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "liberapay",
|
|
25
|
+
"url": "https://liberapay.com/thi.ng"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
29
|
+
"license": "Apache-2.0",
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "yarn build:esbuild && yarn build:decl",
|
|
32
|
+
"build:decl": "tsc --declaration --emitDeclarationOnly",
|
|
33
|
+
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
|
|
34
|
+
"clean": "bun ../../tools/src/clean-package.ts",
|
|
35
|
+
"doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
|
|
36
|
+
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
37
|
+
"pub": "yarn npm publish --access public --dry-run",
|
|
38
|
+
"test": "bun test",
|
|
39
|
+
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@types/node": "^24.9.1",
|
|
43
|
+
"esbuild": "^0.25.11",
|
|
44
|
+
"typedoc": "^0.28.14",
|
|
45
|
+
"typescript": "^5.9.3"
|
|
46
|
+
},
|
|
47
|
+
"keywords": [
|
|
48
|
+
"assert",
|
|
49
|
+
"errors",
|
|
50
|
+
"typescript"
|
|
51
|
+
],
|
|
52
|
+
"publishConfig": {
|
|
53
|
+
"access": "public"
|
|
54
|
+
},
|
|
55
|
+
"browser": {
|
|
56
|
+
"process": false,
|
|
57
|
+
"setTimeout": false
|
|
58
|
+
},
|
|
59
|
+
"engines": {
|
|
60
|
+
"node": ">=18"
|
|
61
|
+
},
|
|
62
|
+
"files": [
|
|
63
|
+
"./*.js",
|
|
64
|
+
"./*.d.ts"
|
|
65
|
+
],
|
|
66
|
+
"exports": {
|
|
67
|
+
".": {
|
|
68
|
+
"default": "./index.js"
|
|
69
|
+
},
|
|
70
|
+
"./assert": {
|
|
71
|
+
"default": "./assert.js"
|
|
72
|
+
},
|
|
73
|
+
"./deferror": {
|
|
74
|
+
"default": "./deferror.js"
|
|
75
|
+
},
|
|
76
|
+
"./ensure": {
|
|
77
|
+
"default": "./ensure.js"
|
|
78
|
+
},
|
|
79
|
+
"./illegal-arguments": {
|
|
80
|
+
"default": "./illegal-arguments.js"
|
|
81
|
+
},
|
|
82
|
+
"./illegal-arity": {
|
|
83
|
+
"default": "./illegal-arity.js"
|
|
84
|
+
},
|
|
85
|
+
"./illegal-state": {
|
|
86
|
+
"default": "./illegal-state.js"
|
|
87
|
+
},
|
|
88
|
+
"./io": {
|
|
89
|
+
"default": "./io.js"
|
|
90
|
+
},
|
|
91
|
+
"./out-of-bounds": {
|
|
92
|
+
"default": "./out-of-bounds.js"
|
|
93
|
+
},
|
|
94
|
+
"./unsupported": {
|
|
95
|
+
"default": "./unsupported.js"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"thi.ng": {
|
|
99
|
+
"alias": "err",
|
|
100
|
+
"year": 2018
|
|
101
|
+
}
|
|
102
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
- **Last updated**: 2025-09-01T16:38:35Z
|
|
4
|
-
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
|
-
|
|
6
|
-
All notable changes to this project will be documented in this file.
|
|
7
|
-
Only versions published since **2022-01-01** are listed here.
|
|
8
|
-
Please consult the Git history for older version information.
|
|
9
|
-
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
10
|
-
|
|
11
|
-
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
12
|
-
and/or version bumps of transitive dependencies.
|
|
13
|
-
|
|
14
|
-
## [2.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@2.5.0) (2024-03-13)
|
|
15
|
-
|
|
16
|
-
#### 🚀 Features
|
|
17
|
-
|
|
18
|
-
- add CustomError interface, update docs, add tests ([d2ea8b2](https://github.com/thi-ng/umbrella/commit/d2ea8b2))
|
|
19
|
-
|
|
20
|
-
### [2.4.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@2.4.1) (2023-11-09)
|
|
21
|
-
|
|
22
|
-
#### ♻️ Refactoring
|
|
23
|
-
|
|
24
|
-
- update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
|
|
25
|
-
|
|
26
|
-
## [2.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@2.4.0) (2023-10-24)
|
|
27
|
-
|
|
28
|
-
#### 🚀 Features
|
|
29
|
-
|
|
30
|
-
- update assert() import.meta.env check ([#425](https://github.com/thi-ng/umbrella/issues/425)) ([d30d000](https://github.com/thi-ng/umbrella/commit/d30d000))
|
|
31
|
-
- also check for `import.meta.env.UMBRELLA_ASSERTS` for non-ViteJS tooling
|
|
32
|
-
- btw. this is **not** a fix for the esbuild issue in [#425](https://github.com/thi-ng/umbrella/issues/425)
|
|
33
|
-
(but part of its solution posted in comments)
|
|
34
|
-
|
|
35
|
-
## [2.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@2.3.0) (2023-08-04)
|
|
36
|
-
|
|
37
|
-
#### 🚀 Features
|
|
38
|
-
|
|
39
|
-
- add ensureXXX() functions ([be70868](https://github.com/thi-ng/umbrella/commit/be70868))
|
|
40
|
-
|
|
41
|
-
### [2.2.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@2.2.3) (2022-10-28)
|
|
42
|
-
|
|
43
|
-
#### 🩹 Bug fixes
|
|
44
|
-
|
|
45
|
-
- potential fix regression of env var check ([#361](https://github.com/thi-ng/umbrella/issues/361)) ([1d3a805](https://github.com/thi-ng/umbrella/commit/1d3a805))
|
|
46
|
-
|
|
47
|
-
### [2.2.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@2.2.2) (2022-10-04)
|
|
48
|
-
|
|
49
|
-
#### 🩹 Bug fixes
|
|
50
|
-
|
|
51
|
-
- update assertion switch logic ([781470d](https://github.com/thi-ng/umbrella/commit/781470d))
|
|
52
|
-
- remove support for obsolete (& broken) snowpack setup
|
|
53
|
-
- add support for Vite's env var handling
|
|
54
|
-
|
|
55
|
-
## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@2.2.0) (2022-09-21)
|
|
56
|
-
|
|
57
|
-
#### 🚀 Features
|
|
58
|
-
|
|
59
|
-
- add I/O error types & factories ([898584b](https://github.com/thi-ng/umbrella/commit/898584b))
|
|
60
|
-
- add IOError
|
|
61
|
-
- add FileNotFoundError
|