@agnostack/env 2.0.0-canary.3 → 2.0.0-canary.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 +7 -0
- package/dist/env.js +3 -1
- package/dist/esm/env.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [2.0.0-canary.4](https://github.com/[secure]/env/compare/v2.0.0-canary.3...v2.0.0-canary.4) (2026-08-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* anchor the flag-marker strip so only a leading -- is removed ([ad48341](https://github.com/[secure]/env/commit/ad4834116a15eafec33414f9b16acd669c212d64))
|
|
7
|
+
|
|
1
8
|
# [2.0.0-canary.3](https://github.com/[secure]/env/compare/v2.0.0-canary.2...v2.0.0-canary.3) (2026-08-28)
|
|
2
9
|
|
|
3
10
|
|
package/dist/env.js
CHANGED
|
@@ -118,7 +118,9 @@ const parseEnvData = (_env = process.env) => {
|
|
|
118
118
|
const [__param, _value] = (separatorIndex === -1)
|
|
119
119
|
? [arg, undefined]
|
|
120
120
|
: [arg.slice(0, separatorIndex), arg.slice(separatorIndex + 1)];
|
|
121
|
-
|
|
121
|
+
// NOTE: anchored. A bare `.replace('--', '')` strips the first `--` ANYWHERE, so
|
|
122
|
+
// `my--param=x` arrived as `myparam`. Only a leading `--` is a flag marker.
|
|
123
|
+
const _param = (_c = __param === null || __param === void 0 ? void 0 : __param.replace) === null || _c === void 0 ? void 0 : _c.call(__param, /^--/, '');
|
|
122
124
|
if ((0, display_js_1.stringEmptyOnly)(_param)) {
|
|
123
125
|
return {
|
|
124
126
|
args: _args,
|
package/dist/esm/env.js
CHANGED
|
@@ -110,7 +110,9 @@ export const parseEnvData = (_env = process.env) => {
|
|
|
110
110
|
const [__param, _value] = (separatorIndex === -1)
|
|
111
111
|
? [arg, undefined]
|
|
112
112
|
: [arg.slice(0, separatorIndex), arg.slice(separatorIndex + 1)];
|
|
113
|
-
|
|
113
|
+
// NOTE: anchored. A bare `.replace('--', '')` strips the first `--` ANYWHERE, so
|
|
114
|
+
// `my--param=x` arrived as `myparam`. Only a leading `--` is a flag marker.
|
|
115
|
+
const _param = (_c = __param === null || __param === void 0 ? void 0 : __param.replace) === null || _c === void 0 ? void 0 : _c.call(__param, /^--/, '');
|
|
114
116
|
if (stringEmptyOnly(_param)) {
|
|
115
117
|
return {
|
|
116
118
|
args: _args,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agnostack/env",
|
|
3
|
-
"version": "2.0.0-canary.
|
|
3
|
+
"version": "2.0.0-canary.4",
|
|
4
4
|
"author": "agnoStack Dev <developers@agnostack.com> (https://agnostack.com)",
|
|
5
5
|
"owner": "agnoStack",
|
|
6
6
|
"description": "Please contact agnoStack via info@agnostack.com for any questions",
|