summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/info/assert_options.js.map
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/info/assert_options.js.map')
-rw-r--r--node_modules/locutus/php/info/assert_options.js.map1
1 files changed, 1 insertions, 0 deletions
diff --git a/node_modules/locutus/php/info/assert_options.js.map b/node_modules/locutus/php/info/assert_options.js.map
new file mode 100644
index 0000000..d72f948
--- /dev/null
+++ b/node_modules/locutus/php/info/assert_options.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["../../../src/php/info/assert_options.js"],"names":["module","exports","assert_options","what","value","iniKey","defaultVal","msg","Error","iniVal","require","undefined"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,cAAT,CAAyBC,IAAzB,EAA+BC,KAA/B,EAAsC;AAAE;AACvD;AACA;AACA;AACA;;AAEA,MAAIC,MAAJ,EAAYC,UAAZ;AACA,UAAQH,IAAR;AACE,SAAK,eAAL;AACEE,eAAS,eAAT;AACAC,mBAAa,CAAb;AACA;AACF,SAAK,gBAAL;AACED,eAAS,gBAAT;AACAC,mBAAa,CAAb;AACA,UAAIC,MAAM,uDAAV;AACAA,aAAO,kCAAP;AACA,YAAM,IAAIC,KAAJ,CAAUD,GAAV,CAAN;AACF,SAAK,aAAL;AACEF,eAAS,aAAT;AACAC,mBAAa,CAAb;AACA;AACF,SAAK,mBAAL;AACED,eAAS,mBAAT;AACAC,mBAAa,CAAb;AACA;AACF,SAAK,iBAAL;AACED,eAAS,iBAAT;AACAC,mBAAa,IAAb;AACA;AACF;AACE,YAAM,IAAIE,KAAJ,CAAU,oCAAV,CAAN;AAxBJ;;AA2BA;AACA,MAAIC,SAAS,CAAC,OAAOC,OAAP,KAAmB,WAAnB,GAAiCA,QAAQ,iBAAR,EAA2BL,MAA3B,CAAjC,GAAsEM,SAAvE,KAAqFL,UAAlG;;AAEA,SAAOG,MAAP;AACD,CAtCD","file":"assert_options.js","sourcesContent":["module.exports = function assert_options (what, value) { // eslint-disable-line camelcase\n // discuss at: http://locutus.io/php/assert_options/\n // original by: Brett Zamir (http://brett-zamir.me)\n // example 1: assert_options('ASSERT_CALLBACK')\n // returns 1: null\n\n var iniKey, defaultVal\n switch (what) {\n case 'ASSERT_ACTIVE':\n iniKey = 'assert.active'\n defaultVal = 1\n break\n case 'ASSERT_WARNING':\n iniKey = 'assert.warning'\n defaultVal = 1\n var msg = 'We have not yet implemented warnings for us to throw '\n msg += 'in JavaScript (assert_options())'\n throw new Error(msg)\n case 'ASSERT_BAIL':\n iniKey = 'assert.bail'\n defaultVal = 0\n break\n case 'ASSERT_QUIET_EVAL':\n iniKey = 'assert.quiet_eval'\n defaultVal = 0\n break\n case 'ASSERT_CALLBACK':\n iniKey = 'assert.callback'\n defaultVal = null\n break\n default:\n throw new Error('Improper type for assert_options()')\n }\n\n // I presume this is to be the most recent value, instead of the default value\n var iniVal = (typeof require !== 'undefined' ? require('../info/ini_get')(iniKey) : undefined) || defaultVal\n\n return iniVal\n}\n"]} \ No newline at end of file