@thi.ng/expose 1.1.14 → 1.1.16

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-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,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
@@ -54,6 +61,6 @@ and/or version bumps of transitive dependencies.
54
61
 
55
62
  #### 🚀 Features
56
63
 
57
- - add snowpack env var support ([bdd68e1](https://github.com/thi-ng/umbrella/commit/bdd68e1))
58
64
  - extract as new pkg ([323995f](https://github.com/thi-ng/umbrella/commit/323995f))
59
65
  - migrate exposeGlobal() from [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api) to new pkg
66
+ - add snowpack env var support ([bdd68e1](https://github.com/thi-ng/umbrella/commit/bdd68e1))
package/README.md CHANGED
@@ -60,7 +60,7 @@ node --experimental-repl-await
60
60
  > const expose = await import("@thi.ng/expose");
61
61
  ```
62
62
 
63
- Package sizes (gzipped, pre-treeshake): ESM: 207 bytes
63
+ Package sizes (gzipped, pre-treeshake): ESM: 216 bytes
64
64
 
65
65
  ## Dependencies
66
66
 
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.16",
4
4
  "description": "Conditional global variable exposition",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,11 +35,11 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@microsoft/api-extractor": "^7.33.5",
38
- "@thi.ng/testament": "^0.3.4",
39
- "@types/node": "^18.11.7",
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.23.18",
42
+ "typedoc": "^0.23.20",
43
43
  "typescript": "^4.8.4"
44
44
  },
45
45
  "keywords": [
@@ -59,8 +59,8 @@
59
59
  "node": ">=12.7"
60
60
  },
61
61
  "files": [
62
- "*.js",
63
- "*.d.ts"
62
+ "./*.js",
63
+ "./*.d.ts"
64
64
  ],
65
65
  "exports": {
66
66
  ".": {
@@ -68,5 +68,5 @@
68
68
  }
69
69
  },
70
70
  "thi.ng": {},
71
- "gitHead": "41e59c7ad9bf24bb0230a5f60d05715e0fc1c1e6\n"
71
+ "gitHead": "044ee6a3895720fc78e115032d4d831b63510929\n"
72
72
  }