dotenv-diff 2.7.2 → 2.7.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
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.7.4
4
+
5
+ ### Patch Changes
6
+
7
+ - bb633f2: Added support for lint-staged
8
+
9
+ ## 2.7.3
10
+
11
+ ### Patch Changes
12
+
13
+ - b448130: Fixed readme links
14
+
3
15
  ## 2.7.2
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -12,11 +12,11 @@ First-class support for SvelteKit and Next.js. Also works well in modern JavaScr
12
12
 
13
13
  ### Warnings & errors detection
14
14
 
15
- ![Demo](../../docs/assets/demo.gif)
15
+ ![Demo](https://raw.githubusercontent.com/Chrilleweb/dotenv-diff/main/docs/assets/demo.gif)
16
16
 
17
17
  ### Clean / successful scan
18
18
 
19
- ![Successful Scan](../../docs/assets/success.png)
19
+ ![Successful Scan](https://raw.githubusercontent.com/Chrilleweb/dotenv-diff/main/docs/assets/success.png)
20
20
 
21
21
  ---
22
22
 
@@ -32,7 +32,7 @@ First-class support for SvelteKit and Next.js. Also works well in modern JavaScr
32
32
 
33
33
  ## How It Works
34
34
 
35
- → See [Capabilities Documentation](../../docs/capabilities.md) for details on what the scanner checks for and how it works.
35
+ → See [Capabilities Documentation](https://github.com/Chrilleweb/dotenv-diff/blob/main/docs/capabilities.md) for details on what the scanner checks for and how it works.
36
36
 
37
37
  ---
38
38
 
@@ -44,7 +44,7 @@ Generate a default configuration file:
44
44
  dotenv-diff --init
45
45
  ```
46
46
 
47
- → See [Configuration Documentation](../../docs/configuration_and_flags.md#configuration-file) for more details.
47
+ → See [Configuration Documentation](https://github.com/Chrilleweb/dotenv-diff/blob/main/docs/configuration_and_flags.md#configuration-file) for more details.
48
48
 
49
49
  ---
50
50
 
@@ -52,7 +52,7 @@ dotenv-diff --init
52
52
 
53
53
  Easily integrate dotenv-diff into your Git hooks or CI/CD pipelines to enforce environment variable consistency.
54
54
 
55
- → See [Git Hooks Documentation](../../docs/git_hooks_ci.md) for more details.
55
+ → See [Git Hooks Documentation](https://github.com/Chrilleweb/dotenv-diff/blob/main/docs/git_hooks_ci.md) for more details.
56
56
 
57
57
  ## Framework-Specific Warnings
58
58
 
@@ -67,7 +67,7 @@ Framework issues (Sveltekit):
67
67
  → Variables accessed through import.meta.env must start with "VITE_"
68
68
  ```
69
69
 
70
- → See [Framework Documentation](../../docs/frameworks/index.md) for more details.
70
+ → See [Framework Documentation](https://github.com/Chrilleweb/dotenv-diff/blob/main/docs/frameworks/index.md) for more details.
71
71
 
72
72
  ## Ignore Comments
73
73
 
@@ -79,7 +79,7 @@ const apiKey = process.env.API_KEY; // dotenv-diff-ignore
79
79
 
80
80
  This is helpful when you know a specific warning is safe in your source code.
81
81
 
82
- → See [Ignore Comments Documentation](../../docs/ignore_comments.md) for more details.
82
+ → See [Ignore Comments Documentation](https://github.com/Chrilleweb/dotenv-diff/blob/main/docs/ignore_comments.md) for more details.
83
83
 
84
84
  ---
85
85
 
@@ -92,7 +92,7 @@ Add expiration metadata to your environment variables to get warnings when they
92
92
  API_TOKEN=
93
93
  ```
94
94
 
95
- → See [Expiration Documentation](../../docs/expiration_warnings.md) for more details.
95
+ → See [Expiration Documentation](https://github.com/Chrilleweb/dotenv-diff/blob/main/docs/expiration_warnings.md) for more details.
96
96
 
97
97
  ---
98
98
 
@@ -108,7 +108,7 @@ In monorepos with multiple apps and packages, you can include shared folders:
108
108
  }
109
109
  ```
110
110
 
111
- → See [Monorepo Documentation](../../docs/monorepo_support.md) for more details.
111
+ → See [Monorepo Documentation](https://github.com/Chrilleweb/dotenv-diff/blob/main/docs/monorepo_support.md) for more details.
112
112
 
113
113
  This will:
114
114
 
@@ -127,14 +127,14 @@ This will:
127
127
 
128
128
  ## Documentation
129
129
 
130
- → See [dotenv-diff Documentation](../../docs/index.md) for full documentation
130
+ → See [dotenv-diff Documentation](https://github.com/Chrilleweb/dotenv-diff/blob/main/docs/index.md) for full documentation
131
131
 
132
132
  ---
133
133
 
134
134
  ## Contributing
135
135
 
136
136
  Issues and pull requests are welcome.
137
- → See [CONTRIBUTING](../../CONTRIBUTING.md) for details.
137
+ → See [CONTRIBUTING](https://github.com/Chrilleweb/dotenv-diff/blob/main/CONTRIBUTING.md) for details.
138
138
 
139
139
  Thanks to these amazing people for contributing to this project:
140
140
 
@@ -146,6 +146,6 @@ Thanks to these amazing people for contributing to this project:
146
146
 
147
147
  ## License
148
148
 
149
- Licensed under the [MIT](LICENSE) license.
149
+ Licensed under the [MIT](https://github.com/Chrilleweb/dotenv-diff/blob/main/LICENSE) license.
150
150
 
151
151
  Created by [chrilleweb](https://github.com/chrilleweb)
@@ -1 +1 @@
1
- {"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../../../src/cli/program.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;;GAGG;AACH,wBAAgB,aAAa,YAkF5B"}
1
+ {"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../../../src/cli/program.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;;GAGG;AACH,wBAAgB,aAAa,YAyF5B"}
@@ -4,9 +4,11 @@ import { Command } from 'commander';
4
4
  * @returns The configured commander program instance
5
5
  */
6
6
  export function createProgram() {
7
- return new Command()
7
+ return (new Command()
8
8
  .name('dotenv-diff')
9
9
  .description('Compare .env and .env.example files')
10
+ // Ignore extra positional args
11
+ .allowExcessArguments(true)
10
12
  .option('--check-values', 'Compare actual values if example has values')
11
13
  .option('--ci', 'Run non-interactively and never create files')
12
14
  .option('-y, --yes', 'Run non-interactively and answer Yes to prompts')
@@ -39,6 +41,6 @@ export function createProgram() {
39
41
  .option('--no-expire-warnings', 'Disable expiration date warnings')
40
42
  .option('--inconsistent-naming-warnings', 'Enable inconsistent naming pattern warnings (enabled by default)')
41
43
  .option('--no-inconsistent-naming-warnings', 'Disable inconsistent naming pattern warnings')
42
- .option('--init', 'Create a sample dotenv-diff.config.json file');
44
+ .option('--init', 'Create a sample dotenv-diff.config.json file'));
43
45
  }
44
46
  //# sourceMappingURL=program.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"program.js","sourceRoot":"","sources":["../../../src/cli/program.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;;GAGG;AACH,MAAM,UAAU,aAAa;IAC3B,OAAO,IAAI,OAAO,EAAE;SACjB,IAAI,CAAC,aAAa,CAAC;SACnB,WAAW,CAAC,qCAAqC,CAAC;SAClD,MAAM,CAAC,gBAAgB,EAAE,6CAA6C,CAAC;SACvE,MAAM,CAAC,MAAM,EAAE,8CAA8C,CAAC;SAC9D,MAAM,CAAC,WAAW,EAAE,iDAAiD,CAAC;SACtE,MAAM,CAAC,cAAc,EAAE,8BAA8B,CAAC;SACtD,MAAM,CAAC,kBAAkB,EAAE,sCAAsC,CAAC;SAClE,MAAM,CACL,oBAAoB,EACpB,iDAAiD,CAClD;SACA,MAAM,CAAC,iBAAiB,EAAE,wCAAwC,CAAC;SACnE,MAAM,CAAC,0BAA0B,EAAE,uCAAuC,CAAC;SAC3E,MAAM,CACL,OAAO,EACP,sEAAsE,CACvE;SACA,MAAM,CAAC,QAAQ,EAAE,+BAA+B,CAAC;SACjD,MAAM,CAAC,SAAS,EAAE,uBAAuB,CAAC;SAC1C,MAAM,CAAC,YAAY,EAAE,wBAAwB,CAAC;SAC9C,MAAM,CACL,eAAe,EACf,kFAAkF,CACnF;SACA,MAAM,CAAC,cAAc,EAAE,8CAA8C,CAAC;SACtE,MAAM,CAAC,WAAW,EAAE,qCAAqC,CAAC;SAC1D,MAAM,CACL,4BAA4B,EAC5B,iFAAiF,CAClF;SACA,MAAM,CACL,oBAAoB,EACpB,8EAA8E,CAC/E;SACA,MAAM,CACL,4BAA4B,EAC5B,oDAAoD,CACrD;SACA,MAAM,CACL,eAAe,EACf,8DAA8D,CAC/D;SACA,MAAM,CACL,kBAAkB,EAClB,qEAAqE,CACtE;SACA,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC;SACzC,MAAM,CAAC,iBAAiB,EAAE,wBAAwB,CAAC;SACnD,MAAM,CAAC,UAAU,EAAE,yBAAyB,CAAC;SAC7C,MAAM,CACL,WAAW,EACX,0DAA0D,CAC3D;SACA,MAAM,CACL,cAAc,EACd,2DAA2D,CAC5D;SACA,MAAM,CACL,sBAAsB,EACtB,+CAA+C,CAChD;SACA,MAAM,CACL,kBAAkB,EAClB,sDAAsD,CACvD;SACA,MAAM,CAAC,qBAAqB,EAAE,kCAAkC,CAAC;SACjE,MAAM,CACL,mBAAmB,EACnB,gFAAgF,CACjF;SACA,MAAM,CAAC,sBAAsB,EAAE,kCAAkC,CAAC;SAClE,MAAM,CACL,gCAAgC,EAChC,kEAAkE,CACnE;SACA,MAAM,CACL,mCAAmC,EACnC,8CAA8C,CAC/C;SACA,MAAM,CAAC,QAAQ,EAAE,8CAA8C,CAAC,CAAC;AACtE,CAAC"}
1
+ {"version":3,"file":"program.js","sourceRoot":"","sources":["../../../src/cli/program.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;;GAGG;AACH,MAAM,UAAU,aAAa;IAC3B,OAAO,CACL,IAAI,OAAO,EAAE;SACV,IAAI,CAAC,aAAa,CAAC;SACnB,WAAW,CAAC,qCAAqC,CAAC;QACnD,+BAA+B;SAC9B,oBAAoB,CAAC,IAAI,CAAC;SAC1B,MAAM,CAAC,gBAAgB,EAAE,6CAA6C,CAAC;SACvE,MAAM,CAAC,MAAM,EAAE,8CAA8C,CAAC;SAC9D,MAAM,CAAC,WAAW,EAAE,iDAAiD,CAAC;SACtE,MAAM,CAAC,cAAc,EAAE,8BAA8B,CAAC;SACtD,MAAM,CAAC,kBAAkB,EAAE,sCAAsC,CAAC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Q,EAAE,8CAA8C,CAAC,CACpE,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dotenv-diff",
3
- "version": "2.7.2",
3
+ "version": "2.7.4",
4
4
  "type": "module",
5
5
  "description": "Detects environment variable issues, usage, and potential security risks.",
6
6
  "bin": {
@@ -70,8 +70,8 @@
70
70
  "turbo": "^2.8.16",
71
71
  "typescript": "^5.9.3",
72
72
  "vitest": "^4.1.0",
73
- "@repo/tsconfig": "2.7.2",
74
- "@repo/eslint-config": "2.7.2"
73
+ "@repo/tsconfig": "2.7.4",
74
+ "@repo/eslint-config": "2.7.4"
75
75
  },
76
76
  "scripts": {
77
77
  "build": "tsc",