We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d85c68e commit eb605e2Copy full SHA for eb605e2
lib/getenv.js
@@ -108,4 +108,8 @@ getenv.disableFallbacks = function() {
108
fallbacksDisabled = true;
109
};
110
111
+getenv.enableFallbacks = function() {
112
+ fallbacksDisabled = false;
113
+};
114
+
115
module.exports = getenv;
test/fallbacks.js
@@ -10,6 +10,7 @@ tests['getenv.disableFallbacks() makes relying on fallbacks an error'] = functio
10
assert.throws(function() {
11
getenv.string("url", "http://localhost");
12
});
13
+ getenv.enableFallbacks();
14
15
16
0 commit comments