@thi.ng/errors 2.2.2 → 2.2.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.
- package/CHANGELOG.md +12 -6
- package/README.md +1 -1
- package/assert.js +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2022-
|
|
3
|
+
- **Last updated**: 2022-11-23T22:46:54Z
|
|
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.
|
|
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [2.2.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@2.2.3) (2022-10-28)
|
|
13
|
+
|
|
14
|
+
#### 🩹 Bug fixes
|
|
15
|
+
|
|
16
|
+
- 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))
|
|
17
|
+
|
|
12
18
|
### [2.2.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@2.2.2) (2022-10-04)
|
|
13
19
|
|
|
14
20
|
#### 🩹 Bug fixes
|
|
@@ -56,9 +62,9 @@ and/or version bumps of transitive dependencies.
|
|
|
56
62
|
|
|
57
63
|
#### ♻️ Refactoring
|
|
58
64
|
|
|
59
|
-
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
60
65
|
- update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
|
|
61
66
|
- add .js suffix for all relative imports
|
|
67
|
+
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
62
68
|
|
|
63
69
|
# [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@2.0.0) (2021-10-12)
|
|
64
70
|
|
|
@@ -79,25 +85,25 @@ and/or version bumps of transitive dependencies.
|
|
|
79
85
|
|
|
80
86
|
#### 🚀 Features
|
|
81
87
|
|
|
82
|
-
- add snowpack env var support for assert ([52822b1](https://github.com/thi-ng/umbrella/commit/52822b1))
|
|
83
88
|
- migrate assert() from [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api) ([7030a6a](https://github.com/thi-ng/umbrella/commit/7030a6a))
|
|
84
89
|
- add existing assert() fn from api pkg
|
|
85
90
|
- add AssertionError class
|
|
86
91
|
- update pkg
|
|
92
|
+
- add snowpack env var support for assert ([52822b1](https://github.com/thi-ng/umbrella/commit/52822b1))
|
|
87
93
|
|
|
88
94
|
#### ♻️ Refactoring
|
|
89
95
|
|
|
90
|
-
- set string as default generic ([936a9d7](https://github.com/thi-ng/umbrella/commit/936a9d7))
|
|
91
|
-
- update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
|
|
92
96
|
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
93
97
|
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
98
|
+
- update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
|
|
99
|
+
- set string as default generic ([936a9d7](https://github.com/thi-ng/umbrella/commit/936a9d7))
|
|
94
100
|
|
|
95
101
|
## [1.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@1.3.0) (2021-03-17)
|
|
96
102
|
|
|
97
103
|
#### 🚀 Features
|
|
98
104
|
|
|
99
|
-
- add ensureIndex2(), update outOfBounds() arg type ([ab007d6](https://github.com/thi-ng/umbrella/commit/ab007d6))
|
|
100
105
|
- add outOfBounds(), ensureIndex() ([fb5ca0a](https://github.com/thi-ng/umbrella/commit/fb5ca0a))
|
|
106
|
+
- add ensureIndex2(), update outOfBounds() arg type ([ab007d6](https://github.com/thi-ng/umbrella/commit/ab007d6))
|
|
101
107
|
|
|
102
108
|
## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@1.2.0) (2019-08-21)
|
|
103
109
|
|
package/README.md
CHANGED
package/assert.js
CHANGED
|
@@ -8,7 +8,7 @@ export const AssertionError = defError(() => "Assertion failed");
|
|
|
8
8
|
* The function is only enabled if `process.env.NODE_ENV != "production"` or if
|
|
9
9
|
* the `UMBRELLA_ASSERTS` or `VITE_UMBRELLA_ASSERTS` env var is set to 1.
|
|
10
10
|
*/
|
|
11
|
-
export const assert = (typeof process !== "undefined"
|
|
11
|
+
export const assert = (typeof process !== "undefined" && process.env !== undefined
|
|
12
12
|
? process.env.NODE_ENV !== "production" ||
|
|
13
13
|
!!process.env.UMBRELLA_ASSERTS
|
|
14
14
|
: import.meta.env
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/errors",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
4
4
|
"description": "Custom error types and error factory functions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@microsoft/api-extractor": "^7.
|
|
38
|
-
"@thi.ng/testament": "^0.3.
|
|
39
|
-
"@types/node": "^18.
|
|
37
|
+
"@microsoft/api-extractor": "^7.33.5",
|
|
38
|
+
"@thi.ng/testament": "^0.3.5",
|
|
39
|
+
"@types/node": "^18.11.9",
|
|
40
40
|
"rimraf": "^3.0.2",
|
|
41
41
|
"tools": "^0.0.1",
|
|
42
|
-
"typedoc": "^0.
|
|
43
|
-
"typescript": "^4.8.
|
|
42
|
+
"typedoc": "^0.23.20",
|
|
43
|
+
"typescript": "^4.8.4"
|
|
44
44
|
},
|
|
45
45
|
"keywords": [
|
|
46
46
|
"assert",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"node": ">=12.7"
|
|
59
59
|
},
|
|
60
60
|
"files": [
|
|
61
|
-
"
|
|
62
|
-
"
|
|
61
|
+
"./*.js",
|
|
62
|
+
"./*.d.ts"
|
|
63
63
|
],
|
|
64
64
|
"exports": {
|
|
65
65
|
".": {
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"thi.ng": {
|
|
94
94
|
"year": 2018
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "044ee6a3895720fc78e115032d4d831b63510929\n"
|
|
97
97
|
}
|