@andrew_l/toolkit 0.3.7 → 0.3.8
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/dist/index.cjs +12 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +12 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4608,10 +4608,18 @@ const env = (() => {
|
|
|
4608
4608
|
})();
|
|
4609
4609
|
function createEnvParser(targetObject) {
|
|
4610
4610
|
return Object.freeze({
|
|
4611
|
-
isDevelopment
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4611
|
+
get isDevelopment() {
|
|
4612
|
+
return targetObject.NODE_ENV === "development";
|
|
4613
|
+
},
|
|
4614
|
+
get isProduction() {
|
|
4615
|
+
return targetObject.NODE_ENV === "production";
|
|
4616
|
+
},
|
|
4617
|
+
get isStage() {
|
|
4618
|
+
return targetObject.NODE_ENV === "state";
|
|
4619
|
+
},
|
|
4620
|
+
get isTest() {
|
|
4621
|
+
return targetObject.NODE_ENV === "test";
|
|
4622
|
+
},
|
|
4615
4623
|
bool(key, defaultValue = false) {
|
|
4616
4624
|
if (!(key in targetObject)) {
|
|
4617
4625
|
return defaultValue;
|