@thi.ng/errors 2.2.2 → 2.2.3

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**: 2022-10-04T17:35:45Z
3
+ - **Last updated**: 2022-10-28T19:08:39Z
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
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.2",
3
+ "version": "2.2.3",
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.31.1",
38
- "@thi.ng/testament": "^0.3.2",
39
- "@types/node": "^18.7.18",
37
+ "@microsoft/api-extractor": "^7.33.5",
38
+ "@thi.ng/testament": "^0.3.4",
39
+ "@types/node": "^18.11.7",
40
40
  "rimraf": "^3.0.2",
41
41
  "tools": "^0.0.1",
42
- "typedoc": "^0.22.17",
43
- "typescript": "^4.8.3"
42
+ "typedoc": "^0.23.18",
43
+ "typescript": "^4.8.4"
44
44
  },
45
45
  "keywords": [
46
46
  "assert",
@@ -93,5 +93,5 @@
93
93
  "thi.ng": {
94
94
  "year": 2018
95
95
  },
96
- "gitHead": "c3f7d6598c7d7d0c61ba87150a56deac12649d7b\n"
96
+ "gitHead": "41e59c7ad9bf24bb0230a5f60d05715e0fc1c1e6\n"
97
97
  }