@dotenvx/dotenvx 1.11.2 → 1.11.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 CHANGED
@@ -2,7 +2,17 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- ## [Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.11.2...main)
5
+ ## [Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.11.4...main)
6
+
7
+ ## 1.11.4
8
+
9
+ * bump `tinyexec` and add postrelease-bunx check ([#362](https://github.com/dotenvx/dotenvx/pull/362))
10
+
11
+ ## 1.11.3
12
+
13
+ ### Changed
14
+
15
+ * fallback to `process.env.TERM` for color depth where deno and bun do not support it ([#360](https://github.com/dotenvx/dotenvx/pull/360))
6
16
 
7
17
  ## 1.11.2
8
18
 
package/README.md CHANGED
@@ -149,6 +149,16 @@ More examples
149
149
  Hello World
150
150
  ```
151
151
 
152
+ > [!WARNING]
153
+ > Some of you are attempting to use the npm module directly with `deno run`. Don't, because deno currently has incomplete support for these encryption ciphers.
154
+ >
155
+ > ```
156
+ > $ deno run -A npm:@dotenvx/dotenvx encrypt
157
+ > Unknown cipher
158
+ > ```
159
+ >
160
+ > Instead, use `dotenvx` as designed, by installing the cli as a binary - via curl, brew, etc.
161
+
152
162
  </details>
153
163
  * <details><summary>Bun 🥟</summary><br>
154
164
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.11.2",
2
+ "version": "1.11.4",
3
3
  "name": "@dotenvx/dotenvx",
4
4
  "description": "a better dotenv–from the creator of `dotenv`",
5
5
  "author": "@motdotla",
@@ -43,7 +43,7 @@
43
43
  "ignore": "^5.3.0",
44
44
  "object-treeify": "1.1.33",
45
45
  "picomatch": "^4.0.2",
46
- "tinyexec": "^0.2.0",
46
+ "tinyexec": "^0.3.0",
47
47
  "which": "^4.0.0"
48
48
  },
49
49
  "devDependencies": {
@@ -1,4 +1,17 @@
1
1
  const { WriteStream } = require('tty')
2
- const getColorDepth = () => WriteStream.prototype.getColorDepth()
2
+
3
+ const getColorDepth = () => {
4
+ try {
5
+ return WriteStream.prototype.getColorDepth()
6
+ } catch (error) {
7
+ const term = process.env.TERM
8
+
9
+ if (term && (term.includes('256color') || term.includes('xterm'))) {
10
+ return 8 // 256 colors
11
+ }
12
+
13
+ return 4
14
+ }
15
+ }
3
16
 
4
17
  module.exports = { getColorDepth }