@thi.ng/expose 1.1.14 → 1.1.15

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-28T19:08:39Z
3
+ - **Last updated**: 2022-10-29T20:34:04Z
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,13 @@ 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
+ ### [1.1.15](https://github.com/thi-ng/umbrella/tree/@thi.ng/expose@1.1.15) (2022-10-29)
13
+
14
+ #### 🩹 Bug fixes
15
+
16
+ - fix env var check ([#361](https://github.com/thi-ng/umbrella/issues/361)) ([ac45723](https://github.com/thi-ng/umbrella/commit/ac45723))
17
+ - apply same fix as in [1d3a805f8](https://github.com/thi-ng/umbrella/commit/1d3a805f8)
18
+
12
19
  ### [1.1.13](https://github.com/thi-ng/umbrella/tree/@thi.ng/expose@1.1.13) (2022-10-04)
13
20
 
14
21
  #### 🩹 Bug fixes
package/index.js CHANGED
@@ -15,7 +15,7 @@ export const exposeGlobal = (id, value, always = false) => {
15
15
  : undefined;
16
16
  if (glob &&
17
17
  (always ||
18
- (typeof process !== "undefined"
18
+ (typeof process !== "undefined" && process.env !== undefined
19
19
  ? process.env.NODE_ENV !== "production" ||
20
20
  !!process.env.UMBRELLA_GLOBALS
21
21
  : import.meta.env
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/expose",
3
- "version": "1.1.14",
3
+ "version": "1.1.15",
4
4
  "description": "Conditional global variable exposition",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -68,5 +68,5 @@
68
68
  }
69
69
  },
70
70
  "thi.ng": {},
71
- "gitHead": "41e59c7ad9bf24bb0230a5f60d05715e0fc1c1e6\n"
71
+ "gitHead": "0402675247b1c312e4dd3d9bc6c01af5cc837c5d\n"
72
72
  }