diff options
author | Marvin Borner | 2018-11-07 22:10:16 +0100 |
---|---|---|
committer | Marvin Borner | 2018-11-07 22:10:17 +0100 |
commit | 954583f3d56fbfb60321725f13ad092e536e3737 (patch) | |
tree | a0505a763797582c61fd8c2f90b422456d8874c9 /node_modules/locutus/php/url | |
parent | 1c355e6e956a4e507ed5436d0c814ba9c3a1deb2 (diff) |
Removed node_modules
Diffstat (limited to 'node_modules/locutus/php/url')
18 files changed, 0 insertions, 487 deletions
diff --git a/node_modules/locutus/php/url/base64_decode.js b/node_modules/locutus/php/url/base64_decode.js deleted file mode 100644 index a39a50a..0000000 --- a/node_modules/locutus/php/url/base64_decode.js +++ /dev/null @@ -1,87 +0,0 @@ -'use strict'; - -module.exports = function base64_decode(encodedData) { - // eslint-disable-line camelcase - // discuss at: http://locutus.io/php/base64_decode/ - // original by: Tyler Akins (http://rumkin.com) - // improved by: Thunder.m - // improved by: Kevin van Zonneveld (http://kvz.io) - // improved by: Kevin van Zonneveld (http://kvz.io) - // input by: Aman Gupta - // input by: Brett Zamir (http://brett-zamir.me) - // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman) - // bugfixed by: Pellentesque Malesuada - // bugfixed by: Kevin van Zonneveld (http://kvz.io) - // improved by: Indigo744 - // example 1: base64_decode('S2V2aW4gdmFuIFpvbm5ldmVsZA==') - // returns 1: 'Kevin van Zonneveld' - // example 2: base64_decode('YQ==') - // returns 2: 'a' - // example 3: base64_decode('4pyTIMOgIGxhIG1vZGU=') - // returns 3: '✓ à la mode' - - // decodeUTF8string() - // Internal function to decode properly UTF8 string - // Adapted from Solution #1 at https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding - var decodeUTF8string = function decodeUTF8string(str) { - // Going backwards: from bytestream, to percent-encoding, to original string. - return decodeURIComponent(str.split('').map(function (c) { - return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2); - }).join('')); - }; - - if (typeof window !== 'undefined') { - if (typeof window.atob !== 'undefined') { - return decodeUTF8string(window.atob(encodedData)); - } - } else { - return new Buffer(encodedData, 'base64').toString('utf-8'); - } - - var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; - var o1; - var o2; - var o3; - var h1; - var h2; - var h3; - var h4; - var bits; - var i = 0; - var ac = 0; - var dec = ''; - var tmpArr = []; - - if (!encodedData) { - return encodedData; - } - - encodedData += ''; - - do { - // unpack four hexets into three octets using index points in b64 - h1 = b64.indexOf(encodedData.charAt(i++)); - h2 = b64.indexOf(encodedData.charAt(i++)); - h3 = b64.indexOf(encodedData.charAt(i++)); - h4 = b64.indexOf(encodedData.charAt(i++)); - - bits = h1 << 18 | h2 << 12 | h3 << 6 | h4; - - o1 = bits >> 16 & 0xff; - o2 = bits >> 8 & 0xff; - o3 = bits & 0xff; - - if (h3 === 64) { - tmpArr[ac++] = String.fromCharCode(o1); - } else if (h4 === 64) { - tmpArr[ac++] = String.fromCharCode(o1, o2); - } else { - tmpArr[ac++] = String.fromCharCode(o1, o2, o3); - } - } while (i < encodedData.length); - - dec = tmpArr.join(''); - - return decodeUTF8string(dec.replace(/\0+$/, '')); -}; -//# sourceMappingURL=base64_decode.js.map
\ No newline at end of file diff --git a/node_modules/locutus/php/url/base64_decode.js.map b/node_modules/locutus/php/url/base64_decode.js.map deleted file mode 100644 index a5109e2..0000000 --- a/node_modules/locutus/php/url/base64_decode.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/php/url/base64_decode.js"],"names":["module","exports","base64_decode","encodedData","decodeUTF8string","str","decodeURIComponent","split","map","c","charCodeAt","toString","slice","join","window","atob","Buffer","b64","o1","o2","o3","h1","h2","h3","h4","bits","i","ac","dec","tmpArr","indexOf","charAt","String","fromCharCode","length","replace"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,aAAT,CAAwBC,WAAxB,EAAqC;AAAE;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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N,IAAIa,OAAJ,CAAY3B,YAAY4B,MAAZ,CAAmBL,GAAnB,CAAZ,CAAL;AACAF,SAAKP,IAAIa,OAAJ,CAAY3B,YAAY4B,MAAZ,CAAmBL,GAAnB,CAAZ,CAAL;;AAEAD,WAAOJ,MAAM,EAAN,GAAWC,MAAM,EAAjB,GAAsBC,MAAM,CAA5B,GAAgCC,EAAvC;;AAEAN,SAAKO,QAAQ,EAAR,GAAa,IAAlB;AACAN,SAAKM,QAAQ,CAAR,GAAY,IAAjB;AACAL,SAAKK,OAAO,IAAZ;;AAEA,QAAIF,OAAO,EAAX,EAAe;AACbM,aAAOF,IAAP,IAAeK,OAAOC,YAAP,CAAoBf,EAApB,CAAf;AACD,KAFD,MAEO,IAAIM,OAAO,EAAX,EAAe;AACpBK,aAAOF,IAAP,IAAeK,OAAOC,YAAP,CAAoBf,EAApB,EAAwBC,EAAxB,CAAf;AACD,KAFM,MAEA;AACLU,aAAOF,IAAP,IAAeK,OAAOC,YAAP,CAAoBf,EAApB,EAAwBC,EAAxB,EAA4BC,EAA5B,CAAf;AACD;AACF,GApBD,QAoBSM,IAAIvB,YAAY+B,MApBzB;;AAsBAN,QAAMC,OAAOhB,IAAP,CAAY,EAAZ,CAAN;;AAEA,SAAOT,iBAAiBwB,IAAIO,OAAJ,CAAY,MAAZ,EAAoB,EAApB,CAAjB,CAAP;AACD,CAlFD","file":"base64_decode.js","sourcesContent":["module.exports = function base64_decode (encodedData) { // eslint-disable-line camelcase\n // discuss at: http://locutus.io/php/base64_decode/\n // original by: Tyler Akins (http://rumkin.com)\n // improved by: Thunder.m\n // improved by: Kevin van Zonneveld (http://kvz.io)\n // improved by: Kevin van Zonneveld (http://kvz.io)\n // input by: Aman Gupta\n // input by: Brett Zamir (http://brett-zamir.me)\n // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)\n // bugfixed by: Pellentesque Malesuada\n // bugfixed by: Kevin van Zonneveld (http://kvz.io)\n // improved by: Indigo744\n // example 1: base64_decode('S2V2aW4gdmFuIFpvbm5ldmVsZA==')\n // returns 1: 'Kevin van Zonneveld'\n // example 2: base64_decode('YQ==')\n // returns 2: 'a'\n // example 3: base64_decode('4pyTIMOgIGxhIG1vZGU=')\n // returns 3: '✓ à la mode'\n\n // decodeUTF8string()\n // Internal function to decode properly UTF8 string\n // Adapted from Solution #1 at https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding\n var decodeUTF8string = function (str) {\n // Going backwards: from bytestream, to percent-encoding, to original string.\n return decodeURIComponent(str.split('').map(function (c) {\n return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2)\n }).join(''))\n }\n\n if (typeof window !== 'undefined') {\n if (typeof window.atob !== 'undefined') {\n return decodeUTF8string(window.atob(encodedData))\n }\n } else {\n return new Buffer(encodedData, 'base64').toString('utf-8')\n }\n\n var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='\n var o1\n var o2\n var o3\n var h1\n var h2\n var h3\n var h4\n var bits\n var i = 0\n var ac = 0\n var dec = ''\n var tmpArr = []\n\n if (!encodedData) {\n return encodedData\n }\n\n encodedData += ''\n\n do {\n // unpack four hexets into three octets using index points in b64\n h1 = b64.indexOf(encodedData.charAt(i++))\n h2 = b64.indexOf(encodedData.charAt(i++))\n h3 = b64.indexOf(encodedData.charAt(i++))\n h4 = b64.indexOf(encodedData.charAt(i++))\n\n bits = h1 << 18 | h2 << 12 | h3 << 6 | h4\n\n o1 = bits >> 16 & 0xff\n o2 = bits >> 8 & 0xff\n o3 = bits & 0xff\n\n if (h3 === 64) {\n tmpArr[ac++] = String.fromCharCode(o1)\n } else if (h4 === 64) {\n tmpArr[ac++] = String.fromCharCode(o1, o2)\n } else {\n tmpArr[ac++] = String.fromCharCode(o1, o2, o3)\n }\n } while (i < encodedData.length)\n\n dec = tmpArr.join('')\n\n return decodeUTF8string(dec.replace(/\\0+$/, ''))\n}\n"]}
\ No newline at end of file diff --git a/node_modules/locutus/php/url/base64_encode.js b/node_modules/locutus/php/url/base64_encode.js deleted file mode 100644 index 5512a3e..0000000 --- a/node_modules/locutus/php/url/base64_encode.js +++ /dev/null @@ -1,84 +0,0 @@ -'use strict'; - -module.exports = function base64_encode(stringToEncode) { - // eslint-disable-line camelcase - // discuss at: http://locutus.io/php/base64_encode/ - // original by: Tyler Akins (http://rumkin.com) - // improved by: Bayron Guevara - // improved by: Thunder.m - // improved by: Kevin van Zonneveld (http://kvz.io) - // improved by: Kevin van Zonneveld (http://kvz.io) - // improved by: Rafał Kukawski (http://blog.kukawski.pl) - // bugfixed by: Pellentesque Malesuada - // improved by: Indigo744 - // example 1: base64_encode('Kevin van Zonneveld') - // returns 1: 'S2V2aW4gdmFuIFpvbm5ldmVsZA==' - // example 2: base64_encode('a') - // returns 2: 'YQ==' - // example 3: base64_encode('✓ à la mode') - // returns 3: '4pyTIMOgIGxhIG1vZGU=' - - // encodeUTF8string() - // Internal function to encode properly UTF8 string - // Adapted from Solution #1 at https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding - var encodeUTF8string = function encodeUTF8string(str) { - // first we use encodeURIComponent to get percent-encoded UTF-8, - // then we convert the percent encodings into raw bytes which - // can be fed into the base64 encoding algorithm. - return encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function toSolidBytes(match, p1) { - return String.fromCharCode('0x' + p1); - }); - }; - - if (typeof window !== 'undefined') { - if (typeof window.btoa !== 'undefined') { - return window.btoa(encodeUTF8string(stringToEncode)); - } - } else { - return new Buffer(stringToEncode).toString('base64'); - } - - var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; - var o1; - var o2; - var o3; - var h1; - var h2; - var h3; - var h4; - var bits; - var i = 0; - var ac = 0; - var enc = ''; - var tmpArr = []; - - if (!stringToEncode) { - return stringToEncode; - } - - stringToEncode = encodeUTF8string(stringToEncode); - - do { - // pack three octets into four hexets - o1 = stringToEncode.charCodeAt(i++); - o2 = stringToEncode.charCodeAt(i++); - o3 = stringToEncode.charCodeAt(i++); - - bits = o1 << 16 | o2 << 8 | o3; - - h1 = bits >> 18 & 0x3f; - h2 = bits >> 12 & 0x3f; - h3 = bits >> 6 & 0x3f; - h4 = bits & 0x3f; - - // use hexets to index into b64, and append result to encoded string - tmpArr[ac++] = b64.charAt(h1) + b64.charAt(h2) + b64.charAt(h3) + b64.charAt(h4); - } while (i < stringToEncode.length); - - enc = tmpArr.join(''); - - var r = stringToEncode.length % 3; - - return (r ? enc.slice(0, r - 3) : enc) + '==='.slice(r || 3); -}; -//# sourceMappingURL=base64_encode.js.map
\ No newline at end of file diff --git a/node_modules/locutus/php/url/base64_encode.js.map b/node_modules/locutus/php/url/base64_encode.js.map deleted file mode 100644 index c7e6354..0000000 --- a/node_modules/locutus/php/url/base64_encode.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/php/url/base64_encode.js"],"names":["module","exports","base64_encode","stringToEncode","encodeUTF8string","str","encodeURIComponent","replace","toSolidBytes","match","p1","String","fromCharCode","window","btoa","Buffer","toString","b64","o1","o2","o3","h1","h2","h3","h4","bits","i","ac","enc","tmpArr","charCodeAt","charAt","length","join","r","slice"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,aAAT,CAAwBC,cAAxB,EAAwC;AAAE;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAIC,mBAAmB,SAAnBA,gBAAmB,CAAUC,GAAV,EAAe;AACpC;AACA;AACA;AACA,WAAOC,mBAAmBD,GAAnB,EAAwBE,OAAxB,CAAgC,iBAAhC,EACL,SAASC,YAAT,CAAuBC,KAAvB,EAA8BC,EAA9B,EAAkC;AAChC,aAAOC,OAAOC,YAAP,CAAoB,OAAOF,EAA3B,CAAP;AACD,KAHI,CAAP;AAID,GARD;;AAUA,MAAI,OAAOG,MAAP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MAf5B;;AAiBAJ,QAAMC,OAAOI,IAAP,CAAY,EAAZ,CAAN;;AAEA,MAAIC,IAAI/B,eAAe6B,MAAf,GAAwB,CAAhC;;AAEA,SAAO,CAACE,IAAIN,IAAIO,KAAJ,CAAU,CAAV,EAAaD,IAAI,CAAjB,CAAJ,GAA0BN,GAA3B,IAAkC,MAAMO,KAAN,CAAYD,KAAK,CAAjB,CAAzC;AACD,CAhFD","file":"base64_encode.js","sourcesContent":["module.exports = function base64_encode (stringToEncode) { // eslint-disable-line camelcase\n // discuss at: http://locutus.io/php/base64_encode/\n // original by: Tyler Akins (http://rumkin.com)\n // improved by: Bayron Guevara\n // improved by: Thunder.m\n // improved by: Kevin van Zonneveld (http://kvz.io)\n // improved by: Kevin van Zonneveld (http://kvz.io)\n // improved by: Rafał Kukawski (http://blog.kukawski.pl)\n // bugfixed by: Pellentesque Malesuada\n // improved by: Indigo744\n // example 1: base64_encode('Kevin van Zonneveld')\n // returns 1: 'S2V2aW4gdmFuIFpvbm5ldmVsZA=='\n // example 2: base64_encode('a')\n // returns 2: 'YQ=='\n // example 3: base64_encode('✓ à la mode')\n // returns 3: '4pyTIMOgIGxhIG1vZGU='\n\n // encodeUTF8string()\n // Internal function to encode properly UTF8 string\n // Adapted from Solution #1 at https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding\n var encodeUTF8string = function (str) {\n // first we use encodeURIComponent to get percent-encoded UTF-8,\n // then we convert the percent encodings into raw bytes which\n // can be fed into the base64 encoding algorithm.\n return encodeURIComponent(str).replace(/%([0-9A-F]{2})/g,\n function toSolidBytes (match, p1) {\n return String.fromCharCode('0x' + p1)\n })\n }\n\n if (typeof window !== 'undefined') {\n if (typeof window.btoa !== 'undefined') {\n return window.btoa(encodeUTF8string(stringToEncode))\n }\n } else {\n return new Buffer(stringToEncode).toString('base64')\n }\n\n var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='\n var o1\n var o2\n var o3\n var h1\n var h2\n var h3\n var h4\n var bits\n var i = 0\n var ac = 0\n var enc = ''\n var tmpArr = []\n\n if (!stringToEncode) {\n return stringToEncode\n }\n\n stringToEncode = encodeUTF8string(stringToEncode)\n\n do {\n // pack three octets into four hexets\n o1 = stringToEncode.charCodeAt(i++)\n o2 = stringToEncode.charCodeAt(i++)\n o3 = stringToEncode.charCodeAt(i++)\n\n bits = o1 << 16 | o2 << 8 | o3\n\n h1 = bits >> 18 & 0x3f\n h2 = bits >> 12 & 0x3f\n h3 = bits >> 6 & 0x3f\n h4 = bits & 0x3f\n\n // use hexets to index into b64, and append result to encoded string\n tmpArr[ac++] = b64.charAt(h1) + b64.charAt(h2) + b64.charAt(h3) + b64.charAt(h4)\n } while (i < stringToEncode.length)\n\n enc = tmpArr.join('')\n\n var r = stringToEncode.length % 3\n\n return (r ? enc.slice(0, r - 3) : enc) + '==='.slice(r || 3)\n}\n"]}
\ No newline at end of file diff --git a/node_modules/locutus/php/url/http_build_query.js b/node_modules/locutus/php/url/http_build_query.js deleted file mode 100644 index be91a79..0000000 --- a/node_modules/locutus/php/url/http_build_query.js +++ /dev/null @@ -1,86 +0,0 @@ -'use strict'; - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -module.exports = function http_build_query(formdata, numericPrefix, argSeparator, encType) { - // eslint-disable-line camelcase - // discuss at: http://locutus.io/php/http_build_query/ - // original by: Kevin van Zonneveld (http://kvz.io) - // improved by: Legaev Andrey - // improved by: Michael White (http://getsprink.com) - // improved by: Kevin van Zonneveld (http://kvz.io) - // improved by: Brett Zamir (http://brett-zamir.me) - // revised by: stag019 - // input by: Dreamer - // bugfixed by: Brett Zamir (http://brett-zamir.me) - // bugfixed by: MIO_KODUKI (http://mio-koduki.blogspot.com/) - // improved by: Will Rowe - // note 1: If the value is null, key and value are skipped in the - // note 1: http_build_query of PHP while in locutus they are not. - // example 1: http_build_query({foo: 'bar', php: 'hypertext processor', baz: 'boom', cow: 'milk'}, '', '&') - // returns 1: 'foo=bar&php=hypertext+processor&baz=boom&cow=milk' - // example 2: http_build_query({'php': 'hypertext processor', 0: 'foo', 1: 'bar', 2: 'baz', 3: 'boom', 'cow': 'milk'}, 'myvar_') - // returns 2: 'myvar_0=foo&myvar_1=bar&myvar_2=baz&myvar_3=boom&php=hypertext+processor&cow=milk' - // example 3: http_build_query({foo: 'bar', php: 'hypertext processor', baz: 'boom', cow: 'milk'}, '', '&', 'PHP_QUERY_RFC3986') - // returns 3: 'foo=bar&php=hypertext%20processor&baz=boom&cow=milk' - - var encodeFunc; - - switch (encType) { - case 'PHP_QUERY_RFC3986': - encodeFunc = require('../url/rawurlencode'); - break; - - case 'PHP_QUERY_RFC1738': - default: - encodeFunc = require('../url/urlencode'); - break; - } - - var value; - var key; - var tmp = []; - - var _httpBuildQueryHelper = function _httpBuildQueryHelper(key, val, argSeparator) { - var k; - var tmp = []; - if (val === true) { - val = '1'; - } else if (val === false) { - val = '0'; - } - if (val !== null) { - if ((typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object') { - for (k in val) { - if (val[k] !== null) { - tmp.push(_httpBuildQueryHelper(key + '[' + k + ']', val[k], argSeparator)); - } - } - return tmp.join(argSeparator); - } else if (typeof val !== 'function') { - return encodeFunc(key) + '=' + encodeFunc(val); - } else { - throw new Error('There was an error processing for http_build_query().'); - } - } else { - return ''; - } - }; - - if (!argSeparator) { - argSeparator = '&'; - } - for (key in formdata) { - value = formdata[key]; - if (numericPrefix && !isNaN(key)) { - key = String(numericPrefix) + key; - } - var query = _httpBuildQueryHelper(key, value, argSeparator); - if (query !== '') { - tmp.push(query); - } - } - - return tmp.join(argSeparator); -}; -//# sourceMappingURL=http_build_query.js.map
\ No newline at end of file diff --git a/node_modules/locutus/php/url/http_build_query.js.map b/node_modules/locutus/php/url/http_build_query.js.map deleted file mode 100644 index 968708d..0000000 --- a/node_modules/locutus/php/url/http_build_query.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/php/url/http_build_query.js"],"names":["module","exports","http_build_query","formdata","numericPrefix","argSeparator","encType","encodeFunc","require","value","key","tmp","_httpBuildQueryHelper","val","k","push","join","Error","isNaN","String","query"],"mappings":";;;;AAAAA,OAAOC,OAAP,GAAiB,SAASC,gBAAT,CAA2BC,QAA3B,EAAqCC,aAArC,EAAoDC,YAApD,EAAkEC,OAAlE,EAA2E;AAAE;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,UAAJ;;AAEA,UAAQD,OAAR;AACE,SAAK,mBAAL;AACEC,mBAAaC,QAAQ,qBAAR,CAAb;AACA;;AAEF,SAAK,mBAAL;AACA;AACED,mBAAaC,QAAQ,kBAAR,CAAb;AACA;AARJ;;AAWA,MAAIC,KAAJ;AACA,MAAIC,GAAJ;AACA,MAAIC,MAAM,EAAV;;AAEA,MAAIC,wBAAwB,SAAxBA,qBAAwB,CAAUF,GAAV,EAAeG,GAAf,EAAoBR,YAApB,EAAkC;AAC5D,QAAIS,CAAJ;AACA,QAAIH,MAAM,EAAV;AACA,QAAIE,QAAQ,IAAZ,EAAkB;AAChBA,YAAM,GAAN;AACD,KAFD,MAEO,IAAIA,QAAQ,KAAZ,EAAmB;AACxBA,YAAM,GAAN;AACD;AACD,QAAIA,QAAQ,IAAZ,EAAkB;AAChB,UAAI,QAAOA,GAAP,yCAAOA,GAAP,OAAe,QAAnB,EAA6B;AAC3B,aAAKC,CAAL,IAAUD,GAAV,EAAe;AACb,cAAIA,IAAIC,CAAJ,MAAW,IAAf,EAAqB;AACnBH,gBAAII,IAAJ,CAASH,sBAAsBF,MAAM,GAAN,GAAYI,CAAZ,GAAgB,GAAtC,EAA2CD,IAAIC,CAAJ,CAA3C,EAAmDT,YAAnD,CAAT;AACD;AACF;AACD,eAAOM,IAAIK,IAAJ,CAASX,YAAT,CAAP;AACD,OAPD,MAOO,IAAI,OAAOQ,GAAP,KAAe,UAAnB,EAA+B;AACpC,eAAON,WAAWG,GAAX,IAAkB,GAAlB,GAAwBH,WAAWM,GAAX,CAA/B;AACD,OAFM,MAEA;AACL,cAAM,IAAII,KAAJ,CAAU,uDAAV,CAAN;AACD;AACF,KAbD,MAaO;AACL,aAAO,EAAP;AACD;AACF,GAxBD;;AA0BA,MAAI,CAACZ,YAAL,EAAmB;AACjBA,mBAAe,GAAf;AACD;AACD,OAAKK,GAAL,IAAYP,QAAZ,EAAsB;AACpBM,YAAQN,SAASO,GAAT,CAAR;AACA,QAAIN,iBAAiB,CAACc,MAAMR,GAAN,CAAtB,EAAkC;AAChCA,YAAMS,OAAOf,aAAP,IAAwBM,GAA9B;AACD;AACD,QAAIU,QAAQR,sBAAsBF,GAAtB,EAA2BD,KAA3B,EAAkCJ,YAAlC,CAAZ;AACA,QAAIe,UAAU,EAAd,EAAkB;AAChBT,UAAII,IAAJ,CAASK,KAAT;AACD;AACF;;AAED,SAAOT,IAAIK,IAAJ,CAASX,YAAT,CAAP;AACD,CA/ED","file":"http_build_query.js","sourcesContent":["module.exports = function http_build_query (formdata, numericPrefix, argSeparator, encType) { // eslint-disable-line camelcase\n // discuss at: http://locutus.io/php/http_build_query/\n // original by: Kevin van Zonneveld (http://kvz.io)\n // improved by: Legaev Andrey\n // improved by: Michael White (http://getsprink.com)\n // improved by: Kevin van Zonneveld (http://kvz.io)\n // improved by: Brett Zamir (http://brett-zamir.me)\n // revised by: stag019\n // input by: Dreamer\n // bugfixed by: Brett Zamir (http://brett-zamir.me)\n // bugfixed by: MIO_KODUKI (http://mio-koduki.blogspot.com/)\n // improved by: Will Rowe\n // note 1: If the value is null, key and value are skipped in the\n // note 1: http_build_query of PHP while in locutus they are not.\n // example 1: http_build_query({foo: 'bar', php: 'hypertext processor', baz: 'boom', cow: 'milk'}, '', '&')\n // returns 1: 'foo=bar&php=hypertext+processor&baz=boom&cow=milk'\n // example 2: http_build_query({'php': 'hypertext processor', 0: 'foo', 1: 'bar', 2: 'baz', 3: 'boom', 'cow': 'milk'}, 'myvar_')\n // returns 2: 'myvar_0=foo&myvar_1=bar&myvar_2=baz&myvar_3=boom&php=hypertext+processor&cow=milk'\n // example 3: http_build_query({foo: 'bar', php: 'hypertext processor', baz: 'boom', cow: 'milk'}, '', '&', 'PHP_QUERY_RFC3986')\n // returns 3: 'foo=bar&php=hypertext%20processor&baz=boom&cow=milk'\n\n var encodeFunc\n\n switch (encType) {\n case 'PHP_QUERY_RFC3986':\n encodeFunc = require('../url/rawurlencode')\n break\n\n case 'PHP_QUERY_RFC1738':\n default:\n encodeFunc = require('../url/urlencode')\n break\n }\n\n var value\n var key\n var tmp = []\n\n var _httpBuildQueryHelper = function (key, val, argSeparator) {\n var k\n var tmp = []\n if (val === true) {\n val = '1'\n } else if (val === false) {\n val = '0'\n }\n if (val !== null) {\n if (typeof val === 'object') {\n for (k in val) {\n if (val[k] !== null) {\n tmp.push(_httpBuildQueryHelper(key + '[' + k + ']', val[k], argSeparator))\n }\n }\n return tmp.join(argSeparator)\n } else if (typeof val !== 'function') {\n return encodeFunc(key) + '=' + encodeFunc(val)\n } else {\n throw new Error('There was an error processing for http_build_query().')\n }\n } else {\n return ''\n }\n }\n\n if (!argSeparator) {\n argSeparator = '&'\n }\n for (key in formdata) {\n value = formdata[key]\n if (numericPrefix && !isNaN(key)) {\n key = String(numericPrefix) + key\n }\n var query = _httpBuildQueryHelper(key, value, argSeparator)\n if (query !== '') {\n tmp.push(query)\n }\n }\n\n return tmp.join(argSeparator)\n}\n"]}
\ No newline at end of file diff --git a/node_modules/locutus/php/url/index.js b/node_modules/locutus/php/url/index.js deleted file mode 100644 index f43e590..0000000 --- a/node_modules/locutus/php/url/index.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -module.exports['base64_decode'] = require('./base64_decode'); -module.exports['base64_encode'] = require('./base64_encode'); -module.exports['http_build_query'] = require('./http_build_query'); -module.exports['parse_url'] = require('./parse_url'); -module.exports['rawurldecode'] = require('./rawurldecode'); -module.exports['rawurlencode'] = require('./rawurlencode'); -module.exports['urldecode'] = require('./urldecode'); -module.exports['urlencode'] = require('./urlencode'); -//# sourceMappingURL=index.js.map
\ No newline at end of file diff --git a/node_modules/locutus/php/url/index.js.map b/node_modules/locutus/php/url/index.js.map deleted file mode 100644 index eb7aa38..0000000 --- a/node_modules/locutus/php/url/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/php/url/index.js"],"names":["module","exports","require"],"mappings":";;AAAAA,OAAOC,OAAP,CAAe,eAAf,IAAkCC,QAAQ,iBAAR,CAAlC;AACAF,OAAOC,OAAP,CAAe,eAAf,IAAkCC,QAAQ,iBAAR,CAAlC;AACAF,OAAOC,OAAP,CAAe,kBAAf,IAAqCC,QAAQ,oBAAR,CAArC;AACAF,OAAOC,OAAP,CAAe,WAAf,IAA8BC,QAAQ,aAAR,CAA9B;AACAF,OAAOC,OAAP,CAAe,cAAf,IAAiCC,QAAQ,gBAAR,CAAjC;AACAF,OAAOC,OAAP,CAAe,cAAf,IAAiCC,QAAQ,gBAAR,CAAjC;AACAF,OAAOC,OAAP,CAAe,WAAf,IAA8BC,QAAQ,aAAR,CAA9B;AACAF,OAAOC,OAAP,CAAe,WAAf,IAA8BC,QAAQ,aAAR,CAA9B","file":"index.js","sourcesContent":["module.exports['base64_decode'] = require('./base64_decode')\nmodule.exports['base64_encode'] = require('./base64_encode')\nmodule.exports['http_build_query'] = require('./http_build_query')\nmodule.exports['parse_url'] = require('./parse_url')\nmodule.exports['rawurldecode'] = require('./rawurldecode')\nmodule.exports['rawurlencode'] = require('./rawurlencode')\nmodule.exports['urldecode'] = require('./urldecode')\nmodule.exports['urlencode'] = require('./urlencode')\n"]}
\ No newline at end of file diff --git a/node_modules/locutus/php/url/parse_url.js b/node_modules/locutus/php/url/parse_url.js deleted file mode 100644 index e9c977b..0000000 --- a/node_modules/locutus/php/url/parse_url.js +++ /dev/null @@ -1,71 +0,0 @@ -'use strict'; - -module.exports = function parse_url(str, component) { - // eslint-disable-line camelcase - // discuss at: http://locutus.io/php/parse_url/ - // original by: Steven Levithan (http://blog.stevenlevithan.com) - // reimplemented by: Brett Zamir (http://brett-zamir.me) - // input by: Lorenzo Pisani - // input by: Tony - // improved by: Brett Zamir (http://brett-zamir.me) - // note 1: original by http://stevenlevithan.com/demo/parseuri/js/assets/parseuri.js - // note 1: blog post at http://blog.stevenlevithan.com/archives/parseuri - // note 1: demo at http://stevenlevithan.com/demo/parseuri/js/assets/parseuri.js - // note 1: Does not replace invalid characters with '_' as in PHP, - // note 1: nor does it return false with - // note 1: a seriously malformed URL. - // note 1: Besides function name, is essentially the same as parseUri as - // note 1: well as our allowing - // note 1: an extra slash after the scheme/protocol (to allow file:/// as in PHP) - // example 1: parse_url('http://user:pass@host/path?a=v#a') - // returns 1: {scheme: 'http', host: 'host', user: 'user', pass: 'pass', path: '/path', query: 'a=v', fragment: 'a'} - // example 2: parse_url('http://en.wikipedia.org/wiki/%22@%22_%28album%29') - // returns 2: {scheme: 'http', host: 'en.wikipedia.org', path: '/wiki/%22@%22_%28album%29'} - // example 3: parse_url('https://host.domain.tld/a@b.c/folder') - // returns 3: {scheme: 'https', host: 'host.domain.tld', path: '/a@b.c/folder'} - // example 4: parse_url('https://gooduser:secretpassword@www.example.com/a@b.c/folder?foo=bar') - // returns 4: { scheme: 'https', host: 'www.example.com', path: '/a@b.c/folder', query: 'foo=bar', user: 'gooduser', pass: 'secretpassword' } - - var query; - - var mode = (typeof require !== 'undefined' ? require('../info/ini_get')('locutus.parse_url.mode') : undefined) || 'php'; - - var key = ['source', 'scheme', 'authority', 'userInfo', 'user', 'pass', 'host', 'port', 'relative', 'path', 'directory', 'file', 'query', 'fragment']; - - // For loose we added one optional slash to post-scheme to catch file:/// (should restrict this) - var parser = { - php: new RegExp(['(?:([^:\\/?#]+):)?', '(?:\\/\\/()(?:(?:()(?:([^:@\\/]*):?([^:@\\/]*))?@)?([^:\\/?#]*)(?::(\\d*))?))?', '()', '(?:(()(?:(?:[^?#\\/]*\\/)*)()(?:[^?#]*))(?:\\?([^#]*))?(?:#(.*))?)'].join('')), - strict: new RegExp(['(?:([^:\\/?#]+):)?', '(?:\\/\\/((?:(([^:@\\/]*):?([^:@\\/]*))?@)?([^:\\/?#]*)(?::(\\d*))?))?', '((((?:[^?#\\/]*\\/)*)([^?#]*))(?:\\?([^#]*))?(?:#(.*))?)'].join('')), - loose: new RegExp(['(?:(?![^:@]+:[^:@\\/]*@)([^:\\/?#.]+):)?', '(?:\\/\\/\\/?)?', '((?:(([^:@\\/]*):?([^:@\\/]*))?@)?([^:\\/?#]*)(?::(\\d*))?)', '(((\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))', '(?:\\?([^#]*))?(?:#(.*))?)'].join('')) - }; - - var m = parser[mode].exec(str); - var uri = {}; - var i = 14; - - while (i--) { - if (m[i]) { - uri[key[i]] = m[i]; - } - } - - if (component) { - return uri[component.replace('PHP_URL_', '').toLowerCase()]; - } - - if (mode !== 'php') { - var name = (typeof require !== 'undefined' ? require('../info/ini_get')('locutus.parse_url.queryKey') : undefined) || 'queryKey'; - parser = /(?:^|&)([^&=]*)=?([^&]*)/g; - uri[name] = {}; - query = uri[key[12]] || ''; - query.replace(parser, function ($0, $1, $2) { - if ($1) { - uri[name][$1] = $2; - } - }); - } - - delete uri.source; - return uri; -}; -//# sourceMappingURL=parse_url.js.map
\ No newline at end of file diff --git a/node_modules/locutus/php/url/parse_url.js.map b/node_modules/locutus/php/url/parse_url.js.map deleted file mode 100644 index 865fc8f..0000000 --- a/node_modules/locutus/php/url/parse_url.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/php/url/parse_url.js"],"names":["module","exports","parse_url","str","component","query","mode","require","undefined","key","parser","php","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CAAJ,CAAJ,IAAcH,EAAEG,CAAF,CAAd;AACD;AACF;;AAED,MAAIf,SAAJ,EAAe;AACb,WAAOc,IAAId,UAAUgB,OAAV,CAAkB,UAAlB,EAA8B,EAA9B,EAAkCC,WAAlC,EAAJ,CAAP;AACD;;AAED,MAAIf,SAAS,KAAb,EAAoB;AAClB,QAAIgB,OAAO,CAAC,OAAOf,OAAP,KAAmB,WAAnB,GAAiCA,QAAQ,iBAAR,EAA2B,4BAA3B,CAAjC,GAA4FC,SAA7F,KAA2G,UAAtH;AACAE,aAAS,2BAAT;AACAQ,QAAII,IAAJ,IAAY,EAAZ;AACAjB,YAAQa,IAAIT,IAAI,EAAJ,CAAJ,KAAgB,EAAxB;AACAJ,UAAMe,OAAN,CAAcV,MAAd,EAAsB,UAAUa,EAAV,EAAcC,EAAd,EAAkBC,EAAlB,EAAsB;AAC1C,UAAID,EAAJ,EAAQ;AACNN,YAAII,IAAJ,EAAUE,EAAV,IAAgBC,EAAhB;AACD;AACF,KAJD;AAKD;;AAED,SAAOP,IAAIQ,MAAX;AACA,SAAOR,GAAP;AACD,CAhGD","file":"parse_url.js","sourcesContent":["module.exports = function parse_url (str, component) { // eslint-disable-line camelcase\n // discuss at: http://locutus.io/php/parse_url/\n // original by: Steven Levithan (http://blog.stevenlevithan.com)\n // reimplemented by: Brett Zamir (http://brett-zamir.me)\n // input by: Lorenzo Pisani\n // input by: Tony\n // improved by: Brett Zamir (http://brett-zamir.me)\n // note 1: original by http://stevenlevithan.com/demo/parseuri/js/assets/parseuri.js\n // note 1: blog post at http://blog.stevenlevithan.com/archives/parseuri\n // note 1: demo at http://stevenlevithan.com/demo/parseuri/js/assets/parseuri.js\n // note 1: Does not replace invalid characters with '_' as in PHP,\n // note 1: nor does it return false with\n // note 1: a seriously malformed URL.\n // note 1: Besides function name, is essentially the same as parseUri as\n // note 1: well as our allowing\n // note 1: an extra slash after the scheme/protocol (to allow file:/// as in PHP)\n // example 1: parse_url('http://user:pass@host/path?a=v#a')\n // returns 1: {scheme: 'http', host: 'host', user: 'user', pass: 'pass', path: '/path', query: 'a=v', fragment: 'a'}\n // example 2: parse_url('http://en.wikipedia.org/wiki/%22@%22_%28album%29')\n // returns 2: {scheme: 'http', host: 'en.wikipedia.org', path: '/wiki/%22@%22_%28album%29'}\n // example 3: parse_url('https://host.domain.tld/a@b.c/folder')\n // returns 3: {scheme: 'https', host: 'host.domain.tld', path: '/a@b.c/folder'}\n // example 4: parse_url('https://gooduser:secretpassword@www.example.com/a@b.c/folder?foo=bar')\n // returns 4: { scheme: 'https', host: 'www.example.com', path: '/a@b.c/folder', query: 'foo=bar', user: 'gooduser', pass: 'secretpassword' }\n\n var query\n\n var mode = (typeof require !== 'undefined' ? require('../info/ini_get')('locutus.parse_url.mode') : undefined) || 'php'\n\n var key = [\n 'source',\n 'scheme',\n 'authority',\n 'userInfo',\n 'user',\n 'pass',\n 'host',\n 'port',\n 'relative',\n 'path',\n 'directory',\n 'file',\n 'query',\n 'fragment'\n ]\n\n // For loose we added one optional slash to post-scheme to catch file:/// (should restrict this)\n var parser = {\n php: new RegExp([\n '(?:([^:\\\\/?#]+):)?',\n '(?:\\\\/\\\\/()(?:(?:()(?:([^:@\\\\/]*):?([^:@\\\\/]*))?@)?([^:\\\\/?#]*)(?::(\\\\d*))?))?',\n '()',\n '(?:(()(?:(?:[^?#\\\\/]*\\\\/)*)()(?:[^?#]*))(?:\\\\?([^#]*))?(?:#(.*))?)'\n ].join('')),\n strict: new RegExp([\n '(?:([^:\\\\/?#]+):)?',\n '(?:\\\\/\\\\/((?:(([^:@\\\\/]*):?([^:@\\\\/]*))?@)?([^:\\\\/?#]*)(?::(\\\\d*))?))?',\n '((((?:[^?#\\\\/]*\\\\/)*)([^?#]*))(?:\\\\?([^#]*))?(?:#(.*))?)'\n ].join('')),\n loose: new RegExp([\n '(?:(?![^:@]+:[^:@\\\\/]*@)([^:\\\\/?#.]+):)?',\n '(?:\\\\/\\\\/\\\\/?)?',\n '((?:(([^:@\\\\/]*):?([^:@\\\\/]*))?@)?([^:\\\\/?#]*)(?::(\\\\d*))?)',\n '(((\\\\/(?:[^?#](?![^?#\\\\/]*\\\\.[^?#\\\\/.]+(?:[?#]|$)))*\\\\/?)?([^?#\\\\/]*))',\n '(?:\\\\?([^#]*))?(?:#(.*))?)'\n ].join(''))\n }\n\n var m = parser[mode].exec(str)\n var uri = {}\n var i = 14\n\n while (i--) {\n if (m[i]) {\n uri[key[i]] = m[i]\n }\n }\n\n if (component) {\n return uri[component.replace('PHP_URL_', '').toLowerCase()]\n }\n\n if (mode !== 'php') {\n var name = (typeof require !== 'undefined' ? require('../info/ini_get')('locutus.parse_url.queryKey') : undefined) || 'queryKey'\n parser = /(?:^|&)([^&=]*)=?([^&]*)/g\n uri[name] = {}\n query = uri[key[12]] || ''\n query.replace(parser, function ($0, $1, $2) {\n if ($1) {\n uri[name][$1] = $2\n }\n })\n }\n\n delete uri.source\n return uri\n}\n"]}
\ No newline at end of file diff --git a/node_modules/locutus/php/url/rawurldecode.js b/node_modules/locutus/php/url/rawurldecode.js deleted file mode 100644 index d2869cc..0000000 --- a/node_modules/locutus/php/url/rawurldecode.js +++ /dev/null @@ -1,28 +0,0 @@ -'use strict'; - -module.exports = function rawurldecode(str) { - // discuss at: http://locutus.io/php/rawurldecode/ - // original by: Brett Zamir (http://brett-zamir.me) - // input by: travc - // input by: Brett Zamir (http://brett-zamir.me) - // input by: Ratheous - // input by: lovio - // bugfixed by: Kevin van Zonneveld (http://kvz.io) - // reimplemented by: Brett Zamir (http://brett-zamir.me) - // improved by: Brett Zamir (http://brett-zamir.me) - // note 1: Please be aware that this function expects to decode - // note 1: from UTF-8 encoded strings, as found on - // note 1: pages served as UTF-8 - // example 1: rawurldecode('Kevin+van+Zonneveld%21') - // returns 1: 'Kevin+van+Zonneveld!' - // example 2: rawurldecode('http%3A%2F%2Fkvz.io%2F') - // returns 2: 'http://kvz.io/' - // example 3: rawurldecode('http%3A%2F%2Fwww.google.nl%2Fsearch%3Fq%3DLocutus%26ie%3D') - // returns 3: 'http://www.google.nl/search?q=Locutus&ie=' - - return decodeURIComponent((str + '').replace(/%(?![\da-f]{2})/gi, function () { - // PHP tolerates poorly formed escape sequences - return '%25'; - })); -}; -//# sourceMappingURL=rawurldecode.js.map
\ No newline at end of file diff --git a/node_modules/locutus/php/url/rawurldecode.js.map b/node_modules/locutus/php/url/rawurldecode.js.map deleted file mode 100644 index fe014e0..0000000 --- a/node_modules/locutus/php/url/rawurldecode.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/php/url/rawurldecode.js"],"names":["module","exports","rawurldecode","str","decodeURIComponent","replace"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,YAAT,CAAuBC,GAAvB,EAA4B;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAOC,mBAAmB,CAACD,MAAM,EAAP,EACvBE,OADuB,CACf,mBADe,EACM,YAAY;AACxC;AACA,WAAO,KAAP;AACD,GAJuB,CAAnB,CAAP;AAKD,CAzBD","file":"rawurldecode.js","sourcesContent":["module.exports = function rawurldecode (str) {\n // discuss at: http://locutus.io/php/rawurldecode/\n // original by: Brett Zamir (http://brett-zamir.me)\n // input by: travc\n // input by: Brett Zamir (http://brett-zamir.me)\n // input by: Ratheous\n // input by: lovio\n // bugfixed by: Kevin van Zonneveld (http://kvz.io)\n // reimplemented by: Brett Zamir (http://brett-zamir.me)\n // improved by: Brett Zamir (http://brett-zamir.me)\n // note 1: Please be aware that this function expects to decode\n // note 1: from UTF-8 encoded strings, as found on\n // note 1: pages served as UTF-8\n // example 1: rawurldecode('Kevin+van+Zonneveld%21')\n // returns 1: 'Kevin+van+Zonneveld!'\n // example 2: rawurldecode('http%3A%2F%2Fkvz.io%2F')\n // returns 2: 'http://kvz.io/'\n // example 3: rawurldecode('http%3A%2F%2Fwww.google.nl%2Fsearch%3Fq%3DLocutus%26ie%3D')\n // returns 3: 'http://www.google.nl/search?q=Locutus&ie='\n\n return decodeURIComponent((str + '')\n .replace(/%(?![\\da-f]{2})/gi, function () {\n // PHP tolerates poorly formed escape sequences\n return '%25'\n }))\n}\n"]}
\ No newline at end of file diff --git a/node_modules/locutus/php/url/rawurlencode.js b/node_modules/locutus/php/url/rawurlencode.js deleted file mode 100644 index 3b22bd0..0000000 --- a/node_modules/locutus/php/url/rawurlencode.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict'; - -module.exports = function rawurlencode(str) { - // discuss at: http://locutus.io/php/rawurlencode/ - // original by: Brett Zamir (http://brett-zamir.me) - // input by: travc - // input by: Brett Zamir (http://brett-zamir.me) - // input by: Michael Grier - // input by: Ratheous - // bugfixed by: Kevin van Zonneveld (http://kvz.io) - // bugfixed by: Brett Zamir (http://brett-zamir.me) - // bugfixed by: Joris - // reimplemented by: Brett Zamir (http://brett-zamir.me) - // reimplemented by: Brett Zamir (http://brett-zamir.me) - // note 1: This reflects PHP 5.3/6.0+ behavior - // note 1: Please be aware that this function expects \ - // note 1: to encode into UTF-8 encoded strings, as found on - // note 1: pages served as UTF-8 - // example 1: rawurlencode('Kevin van Zonneveld!') - // returns 1: 'Kevin%20van%20Zonneveld%21' - // example 2: rawurlencode('http://kvz.io/') - // returns 2: 'http%3A%2F%2Fkvz.io%2F' - // example 3: rawurlencode('http://www.google.nl/search?q=Locutus&ie=utf-8') - // returns 3: 'http%3A%2F%2Fwww.google.nl%2Fsearch%3Fq%3DLocutus%26ie%3Dutf-8' - - str = str + ''; - - // Tilde should be allowed unescaped in future versions of PHP (as reflected below), - // but if you want to reflect current - // PHP behavior, you would need to add ".replace(/~/g, '%7E');" to the following. - return encodeURIComponent(str).replace(/!/g, '%21').replace(/'/g, '%27').replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/\*/g, '%2A'); -}; -//# sourceMappingURL=rawurlencode.js.map
\ No newline at end of file diff --git a/node_modules/locutus/php/url/rawurlencode.js.map b/node_modules/locutus/php/url/rawurlencode.js.map deleted file mode 100644 index 22e205e..0000000 --- a/node_modules/locutus/php/url/rawurlencode.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/php/url/rawurlencode.js"],"names":["module","exports","rawurlencode","str","encodeURIComponent","replace"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,YAAT,CAAuBC,GAAvB,EAA4B;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEAA,QAAOA,MAAM,EAAb;;AAEA;AACA;AACA;AACA,SAAOC,mBAAmBD,GAAnB,EACJE,OADI,CACI,IADJ,EACU,KADV,EAEJA,OAFI,CAEI,IAFJ,EAEU,KAFV,EAGJA,OAHI,CAGI,KAHJ,EAGW,KAHX,EAIJA,OAJI,CAII,KAJJ,EAIW,KAJX,EAKJA,OALI,CAKI,KALJ,EAKW,KALX,CAAP;AAMD,CAlCD","file":"rawurlencode.js","sourcesContent":["module.exports = function rawurlencode (str) {\n // discuss at: http://locutus.io/php/rawurlencode/\n // original by: Brett Zamir (http://brett-zamir.me)\n // input by: travc\n // input by: Brett Zamir (http://brett-zamir.me)\n // input by: Michael Grier\n // input by: Ratheous\n // bugfixed by: Kevin van Zonneveld (http://kvz.io)\n // bugfixed by: Brett Zamir (http://brett-zamir.me)\n // bugfixed by: Joris\n // reimplemented by: Brett Zamir (http://brett-zamir.me)\n // reimplemented by: Brett Zamir (http://brett-zamir.me)\n // note 1: This reflects PHP 5.3/6.0+ behavior\n // note 1: Please be aware that this function expects \\\n // note 1: to encode into UTF-8 encoded strings, as found on\n // note 1: pages served as UTF-8\n // example 1: rawurlencode('Kevin van Zonneveld!')\n // returns 1: 'Kevin%20van%20Zonneveld%21'\n // example 2: rawurlencode('http://kvz.io/')\n // returns 2: 'http%3A%2F%2Fkvz.io%2F'\n // example 3: rawurlencode('http://www.google.nl/search?q=Locutus&ie=utf-8')\n // returns 3: 'http%3A%2F%2Fwww.google.nl%2Fsearch%3Fq%3DLocutus%26ie%3Dutf-8'\n\n str = (str + '')\n\n // Tilde should be allowed unescaped in future versions of PHP (as reflected below),\n // but if you want to reflect current\n // PHP behavior, you would need to add \".replace(/~/g, '%7E');\" to the following.\n return encodeURIComponent(str)\n .replace(/!/g, '%21')\n .replace(/'/g, '%27')\n .replace(/\\(/g, '%28')\n .replace(/\\)/g, '%29')\n .replace(/\\*/g, '%2A')\n}\n"]}
\ No newline at end of file diff --git a/node_modules/locutus/php/url/urldecode.js b/node_modules/locutus/php/url/urldecode.js deleted file mode 100644 index d0477a6..0000000 --- a/node_modules/locutus/php/url/urldecode.js +++ /dev/null @@ -1,41 +0,0 @@ -'use strict'; - -module.exports = function urldecode(str) { - // discuss at: http://locutus.io/php/urldecode/ - // original by: Philip Peterson - // improved by: Kevin van Zonneveld (http://kvz.io) - // improved by: Kevin van Zonneveld (http://kvz.io) - // improved by: Brett Zamir (http://brett-zamir.me) - // improved by: Lars Fischer - // improved by: Orlando - // improved by: Brett Zamir (http://brett-zamir.me) - // improved by: Brett Zamir (http://brett-zamir.me) - // input by: AJ - // input by: travc - // input by: Brett Zamir (http://brett-zamir.me) - // input by: Ratheous - // input by: e-mike - // input by: lovio - // bugfixed by: Kevin van Zonneveld (http://kvz.io) - // bugfixed by: Rob - // reimplemented by: Brett Zamir (http://brett-zamir.me) - // note 1: info on what encoding functions to use from: - // note 1: http://xkr.us/articles/javascript/encode-compare/ - // note 1: Please be aware that this function expects to decode - // note 1: from UTF-8 encoded strings, as found on - // note 1: pages served as UTF-8 - // example 1: urldecode('Kevin+van+Zonneveld%21') - // returns 1: 'Kevin van Zonneveld!' - // example 2: urldecode('http%3A%2F%2Fkvz.io%2F') - // returns 2: 'http://kvz.io/' - // example 3: urldecode('http%3A%2F%2Fwww.google.nl%2Fsearch%3Fq%3DLocutus%26ie%3Dutf-8%26oe%3Dutf-8%26aq%3Dt%26rls%3Dcom.ubuntu%3Aen-US%3Aunofficial%26client%3Dfirefox-a') - // returns 3: 'http://www.google.nl/search?q=Locutus&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-US:unofficial&client=firefox-a' - // example 4: urldecode('%E5%A5%BD%3_4') - // returns 4: '\u597d%3_4' - - return decodeURIComponent((str + '').replace(/%(?![\da-f]{2})/gi, function () { - // PHP tolerates poorly formed escape sequences - return '%25'; - }).replace(/\+/g, '%20')); -}; -//# sourceMappingURL=urldecode.js.map
\ No newline at end of file diff --git a/node_modules/locutus/php/url/urldecode.js.map b/node_modules/locutus/php/url/urldecode.js.map deleted file mode 100644 index 6cfdbd5..0000000 --- a/node_modules/locutus/php/url/urldecode.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/php/url/urldecode.js"],"names":["module","exports","urldecode","str","decodeURIComponent","replace"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,SAAT,CAAoBC,GAApB,EAAyB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAOC,mBAAmB,CAACD,MAAM,EAAP,EACvBE,OADuB,CACf,mBADe,EACM,YAAY;AACxC;AACA,WAAO,KAAP;AACD,GAJuB,EAKvBA,OALuB,CAKf,KALe,EAKR,KALQ,CAAnB,CAAP;AAMD,CAvCD","file":"urldecode.js","sourcesContent":["module.exports = function urldecode (str) {\n // discuss at: http://locutus.io/php/urldecode/\n // original by: Philip Peterson\n // improved by: Kevin van Zonneveld (http://kvz.io)\n // improved by: Kevin van Zonneveld (http://kvz.io)\n // improved by: Brett Zamir (http://brett-zamir.me)\n // improved by: Lars Fischer\n // improved by: Orlando\n // improved by: Brett Zamir (http://brett-zamir.me)\n // improved by: Brett Zamir (http://brett-zamir.me)\n // input by: AJ\n // input by: travc\n // input by: Brett Zamir (http://brett-zamir.me)\n // input by: Ratheous\n // input by: e-mike\n // input by: lovio\n // bugfixed by: Kevin van Zonneveld (http://kvz.io)\n // bugfixed by: Rob\n // reimplemented by: Brett Zamir (http://brett-zamir.me)\n // note 1: info on what encoding functions to use from:\n // note 1: http://xkr.us/articles/javascript/encode-compare/\n // note 1: Please be aware that this function expects to decode\n // note 1: from UTF-8 encoded strings, as found on\n // note 1: pages served as UTF-8\n // example 1: urldecode('Kevin+van+Zonneveld%21')\n // returns 1: 'Kevin van Zonneveld!'\n // example 2: urldecode('http%3A%2F%2Fkvz.io%2F')\n // returns 2: 'http://kvz.io/'\n // example 3: urldecode('http%3A%2F%2Fwww.google.nl%2Fsearch%3Fq%3DLocutus%26ie%3Dutf-8%26oe%3Dutf-8%26aq%3Dt%26rls%3Dcom.ubuntu%3Aen-US%3Aunofficial%26client%3Dfirefox-a')\n // returns 3: 'http://www.google.nl/search?q=Locutus&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-US:unofficial&client=firefox-a'\n // example 4: urldecode('%E5%A5%BD%3_4')\n // returns 4: '\\u597d%3_4'\n\n return decodeURIComponent((str + '')\n .replace(/%(?![\\da-f]{2})/gi, function () {\n // PHP tolerates poorly formed escape sequences\n return '%25'\n })\n .replace(/\\+/g, '%20'))\n}\n"]}
\ No newline at end of file diff --git a/node_modules/locutus/php/url/urlencode.js b/node_modules/locutus/php/url/urlencode.js deleted file mode 100644 index 6608ff7..0000000 --- a/node_modules/locutus/php/url/urlencode.js +++ /dev/null @@ -1,37 +0,0 @@ -'use strict'; - -module.exports = function urlencode(str) { - // discuss at: http://locutus.io/php/urlencode/ - // original by: Philip Peterson - // improved by: Kevin van Zonneveld (http://kvz.io) - // improved by: Kevin van Zonneveld (http://kvz.io) - // improved by: Brett Zamir (http://brett-zamir.me) - // improved by: Lars Fischer - // input by: AJ - // input by: travc - // input by: Brett Zamir (http://brett-zamir.me) - // input by: Ratheous - // bugfixed by: Kevin van Zonneveld (http://kvz.io) - // bugfixed by: Kevin van Zonneveld (http://kvz.io) - // bugfixed by: Joris - // reimplemented by: Brett Zamir (http://brett-zamir.me) - // reimplemented by: Brett Zamir (http://brett-zamir.me) - // note 1: This reflects PHP 5.3/6.0+ behavior - // note 1: Please be aware that this function - // note 1: expects to encode into UTF-8 encoded strings, as found on - // note 1: pages served as UTF-8 - // example 1: urlencode('Kevin van Zonneveld!') - // returns 1: 'Kevin+van+Zonneveld%21' - // example 2: urlencode('http://kvz.io/') - // returns 2: 'http%3A%2F%2Fkvz.io%2F' - // example 3: urlencode('http://www.google.nl/search?q=Locutus&ie=utf-8') - // returns 3: 'http%3A%2F%2Fwww.google.nl%2Fsearch%3Fq%3DLocutus%26ie%3Dutf-8' - - str = str + ''; - - // Tilde should be allowed unescaped in future versions of PHP (as reflected below), - // but if you want to reflect current - // PHP behavior, you would need to add ".replace(/~/g, '%7E');" to the following. - return encodeURIComponent(str).replace(/!/g, '%21').replace(/'/g, '%27').replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/\*/g, '%2A').replace(/%20/g, '+'); -}; -//# sourceMappingURL=urlencode.js.map
\ No newline at end of file diff --git a/node_modules/locutus/php/url/urlencode.js.map b/node_modules/locutus/php/url/urlencode.js.map deleted file mode 100644 index 83c661b..0000000 --- a/node_modules/locutus/php/url/urlencode.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/php/url/urlencode.js"],"names":["module","exports","urlencode","str","encodeURIComponent","replace"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,SAAT,CAAoBC,GAApB,EAAyB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEAA,QAAOA,MAAM,EAAb;;AAEA;AACA;AACA;AACA,SAAOC,mBAAmBD,GAAnB,EACJE,OADI,CACI,IADJ,EACU,KADV,EAEJA,OAFI,CAEI,IAFJ,EAEU,KAFV,EAGJA,OAHI,CAGI,KAHJ,EAGW,KAHX,EAIJA,OAJI,CAII,KAJJ,EAIW,KAJX,EAKJA,OALI,CAKI,KALJ,EAKW,KALX,EAMJA,OANI,CAMI,MANJ,EAMY,GANZ,CAAP;AAOD,CAvCD","file":"urlencode.js","sourcesContent":["module.exports = function urlencode (str) {\n // discuss at: http://locutus.io/php/urlencode/\n // original by: Philip Peterson\n // improved by: Kevin van Zonneveld (http://kvz.io)\n // improved by: Kevin van Zonneveld (http://kvz.io)\n // improved by: Brett Zamir (http://brett-zamir.me)\n // improved by: Lars Fischer\n // input by: AJ\n // input by: travc\n // input by: Brett Zamir (http://brett-zamir.me)\n // input by: Ratheous\n // bugfixed by: Kevin van Zonneveld (http://kvz.io)\n // bugfixed by: Kevin van Zonneveld (http://kvz.io)\n // bugfixed by: Joris\n // reimplemented by: Brett Zamir (http://brett-zamir.me)\n // reimplemented by: Brett Zamir (http://brett-zamir.me)\n // note 1: This reflects PHP 5.3/6.0+ behavior\n // note 1: Please be aware that this function\n // note 1: expects to encode into UTF-8 encoded strings, as found on\n // note 1: pages served as UTF-8\n // example 1: urlencode('Kevin van Zonneveld!')\n // returns 1: 'Kevin+van+Zonneveld%21'\n // example 2: urlencode('http://kvz.io/')\n // returns 2: 'http%3A%2F%2Fkvz.io%2F'\n // example 3: urlencode('http://www.google.nl/search?q=Locutus&ie=utf-8')\n // returns 3: 'http%3A%2F%2Fwww.google.nl%2Fsearch%3Fq%3DLocutus%26ie%3Dutf-8'\n\n str = (str + '')\n\n // Tilde should be allowed unescaped in future versions of PHP (as reflected below),\n // but if you want to reflect current\n // PHP behavior, you would need to add \".replace(/~/g, '%7E');\" to the following.\n return encodeURIComponent(str)\n .replace(/!/g, '%21')\n .replace(/'/g, '%27')\n .replace(/\\(/g, '%28')\n .replace(/\\)/g, '%29')\n .replace(/\\*/g, '%2A')\n .replace(/%20/g, '+')\n}\n"]}
\ No newline at end of file |