@dotenvx/dotenvx 1.55.0 → 1.55.1

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,13 @@
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.55.0...main)
5
+ [Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.55.1...main)
6
+
7
+ ## [1.55.1](https://github.com/dotenvx/dotenvx/compare/v1.55.0...v1.55.1) (2026-03-13)
8
+
9
+ ### Added
10
+
11
+ * Respect `dotenvx-ops status (on|off)` ([#749](https://github.com/dotenvx/dotenvx/pull/749))
6
12
 
7
13
  ## [1.55.0](https://github.com/dotenvx/dotenvx/compare/v1.54.1...v1.55.0) (2026-03-13)
8
14
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.55.0",
2
+ "version": "1.55.1",
3
3
  "name": "@dotenvx/dotenvx",
4
4
  "description": "a secure dotenv–from the creator of `dotenv`",
5
5
  "author": "@motdotla",
@@ -31,6 +31,10 @@ class Ops {
31
31
  }
32
32
 
33
33
  keypair (publicKey) {
34
+ if (this._status() === 'off') {
35
+ return null
36
+ }
37
+
34
38
  const args = ['keypair']
35
39
  if (publicKey) {
36
40
  args.push(publicKey)
@@ -62,6 +66,27 @@ class Ops {
62
66
  return null
63
67
  }
64
68
 
69
+ _status () {
70
+ const fallbackBin = path.resolve(process.cwd(), 'node_modules/.bin/dotenvx-ops')
71
+ const options = { stdio: ['pipe', 'pipe', 'ignore'] }
72
+
73
+ try {
74
+ const status = childProcess.execFileSync(fallbackBin, ['status'], options)
75
+ return status.toString().trim()
76
+ } catch (e) {
77
+ // noop
78
+ }
79
+
80
+ try {
81
+ const status = childProcess.execFileSync('dotenvx-ops', ['status'], options)
82
+ return status.toString().trim()
83
+ } catch (e) {
84
+ // noop
85
+ }
86
+
87
+ return null
88
+ }
89
+
65
90
  encode (payload) {
66
91
  return Buffer.from(JSON.stringify(payload)).toString('base64')
67
92
  }