mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 03:01:04 +00:00
1 line
3.8 KiB
Plaintext
1 line
3.8 KiB
Plaintext
{"dependencies":[],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n exports.isHttpUrl = isHttpUrl;\n exports.isWsUrl = isWsUrl;\n exports.isLocalhostUrl = isLocalhostUrl;\n var HTTP_REGEX = \"^https?:\";\n var WS_REGEX = \"^wss?:\";\n function getUrlProtocol(url) {\n var matches = url.match(new RegExp(/^\\w+:/, \"gi\"));\n if (!matches || !matches.length) return;\n return matches[0];\n }\n function matchRegexProtocol(url, regex) {\n var protocol = getUrlProtocol(url);\n if (typeof protocol === \"undefined\") return false;\n return new RegExp(regex).test(protocol);\n }\n function isHttpUrl(url) {\n return matchRegexProtocol(url, HTTP_REGEX);\n }\n function isWsUrl(url) {\n return matchRegexProtocol(url, WS_REGEX);\n }\n function isLocalhostUrl(url) {\n return new RegExp(\"wss?://localhost(:d{2,5})?\").test(url);\n }\n});","lineCount":31,"map":[[7,2,15,0,"exports"],[7,9,15,0],[7,10,15,0,"isHttpUrl"],[7,19,15,0],[7,22,15,0,"isHttpUrl"],[7,31,15,0],[8,2,18,0,"exports"],[8,9,18,0],[8,10,18,0,"isWsUrl"],[8,17,18,0],[8,20,18,0,"isWsUrl"],[8,27,18,0],[9,2,21,0,"exports"],[9,9,21,0],[9,10,21,0,"isLocalhostUrl"],[9,24,21,0],[9,27,21,0,"isLocalhostUrl"],[9,41,21,0],[10,2,1,0],[10,6,1,6,"HTTP_REGEX"],[10,16,1,16],[10,19,1,19],[10,29,1,29],[11,2,2,0],[11,6,2,6,"WS_REGEX"],[11,14,2,14],[11,17,2,17],[11,25,2,25],[12,2,3,0],[12,11,3,9,"getUrlProtocol"],[12,25,3,23,"getUrlProtocol"],[12,26,3,24,"url"],[12,29,3,27],[12,31,3,29],[13,4,4,4],[13,8,4,10,"matches"],[13,15,4,17],[13,18,4,20,"url"],[13,21,4,23],[13,22,4,24,"match"],[13,27,4,29],[13,28,4,30],[13,32,4,34,"RegExp"],[13,38,4,40],[13,39,4,41],[13,46,4,48],[13,48,4,50],[13,52,4,54],[13,53,4,55],[13,54,4,56],[14,4,5,4],[14,8,5,8],[14,9,5,9,"matches"],[14,16,5,16],[14,20,5,20],[14,21,5,21,"matches"],[14,28,5,28],[14,29,5,29,"length"],[14,35,5,35],[14,37,6,8],[15,4,7,4],[15,11,7,11,"matches"],[15,18,7,18],[15,19,7,19],[15,20,7,20],[15,21,7,21],[16,2,8,0],[17,2,9,0],[17,11,9,9,"matchRegexProtocol"],[17,29,9,27,"matchRegexProtocol"],[17,30,9,28,"url"],[17,33,9,31],[17,35,9,33,"regex"],[17,40,9,38],[17,42,9,40],[18,4,10,4],[18,8,10,10,"protocol"],[18,16,10,18],[18,19,10,21,"getUrlProtocol"],[18,33,10,35],[18,34,10,36,"url"],[18,37,10,39],[18,38,10,40],[19,4,11,4],[19,8,11,8],[19,15,11,15,"protocol"],[19,23,11,23],[19,28,11,28],[19,39,11,39],[19,41,12,8],[19,48,12,15],[19,53,12,20],[20,4,13,4],[20,11,13,11],[20,15,13,15,"RegExp"],[20,21,13,21],[20,22,13,22,"regex"],[20,27,13,27],[20,28,13,28],[20,29,13,29,"test"],[20,33,13,33],[20,34,13,34,"protocol"],[20,42,13,42],[20,43,13,43],[21,2,14,0],[22,2,15,7],[22,11,15,16,"isHttpUrl"],[22,20,15,25,"isHttpUrl"],[22,21,15,26,"url"],[22,24,15,29],[22,26,15,31],[23,4,16,4],[23,11,16,11,"matchRegexProtocol"],[23,29,16,29],[23,30,16,30,"url"],[23,33,16,33],[23,35,16,35,"HTTP_REGEX"],[23,45,16,45],[23,46,16,46],[24,2,17,0],[25,2,18,7],[25,11,18,16,"isWsUrl"],[25,18,18,23,"isWsUrl"],[25,19,18,24,"url"],[25,22,18,27],[25,24,18,29],[26,4,19,4],[26,11,19,11,"matchRegexProtocol"],[26,29,19,29],[26,30,19,30,"url"],[26,33,19,33],[26,35,19,35,"WS_REGEX"],[26,43,19,43],[26,44,19,44],[27,2,20,0],[28,2,21,7],[28,11,21,16,"isLocalhostUrl"],[28,25,21,30,"isLocalhostUrl"],[28,26,21,31,"url"],[28,29,21,34],[28,31,21,36],[29,4,22,4],[29,11,22,11],[29,15,22,15,"RegExp"],[29,21,22,21],[29,22,22,22],[29,50,22,50],[29,51,22,51],[29,52,22,52,"test"],[29,56,22,56],[29,57,22,57,"url"],[29,60,22,60],[29,61,22,61],[30,2,23,0],[31,0,23,1],[31,3]],"functionMap":{"names":["<global>","getUrlProtocol","matchRegexProtocol","isHttpUrl","isWsUrl","isLocalhostUrl"],"mappings":"AAA;ACE;CDK;AEC;CFK;OGC;CHE;OIC;CJE;OKC;CLE"},"hasCjsExports":false},"type":"js/module"}]} |