You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Batch of fixes during epic-stack implementation (#203)
* make ENV readonly without making process.env readonly
* use compact json in what gets passed in with varlock/load
* adjust loading logic in browser-like test env
this fixes an issue for vitest runnign jsdom tests and needing to
execute backend logic first
* allow if(condition) resoler to coerce to boolean
* allow @required/@sensitive to accept undefined
* add isEmpty() and not() resolvers
Negates a value and returns a boolean. Falsy values are - `false`, `""`, `0`, `undefined`, and will be negated to `true`. Otherwise will return `false`.
172
+
173
+
```env-spec "not"
174
+
# Negate the result of another function
175
+
SHOULD_DISABLE_FEATURE=not(forEnv(production))
176
+
```
177
+
</div>
178
+
179
+
<div>
180
+
### `isEmpty()`
181
+
182
+
Returns `true` if the value is `undefined` or an empty string, `false` otherwise.
0 commit comments