webdetector/.cache/ef/cb3b5aae5087aa0604f3810af06c85.json
2018-12-21 13:36:28 +01:00

1 line
18 KiB
JSON

{"id":"test.ts","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/package.json","includedInParent":true,"mtime":1545395695572},{"name":"../ts/index","loc":{"line":46,"column":39},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/test/test.ts","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/ts/index.ts"}],"generated":{"js":"\"use strict\";\n\nvar __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n\n function step(result) {\n result.done ? resolve(result.value) : new P(function (resolve) {\n resolve(result.value);\n }).then(fulfilled, rejected);\n }\n\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\nvar __generator = this && this.__generator || function (thisArg, body) {\n var _ = {\n label: 0,\n sent: function sent() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n },\n f,\n y,\n t,\n g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function () {\n return this;\n }), g;\n\n function verb(n) {\n return function (v) {\n return step([n, v]);\n };\n }\n\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n\n while (_) {\n try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n\n switch (op[0]) {\n case 0:\n case 1:\n t = op;\n break;\n\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n\n case 5:\n _.label++;\n y = op[1];\n op = [0];\n continue;\n\n case 7:\n op = _.ops.pop();\n\n _.trys.pop();\n\n continue;\n\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n\n if (t && _.label < t[2]) {\n _.label = t[2];\n\n _.ops.push(op);\n\n break;\n }\n\n if (t[2]) _.ops.pop();\n\n _.trys.pop();\n\n continue;\n }\n\n op = body.call(thisArg, _);\n } catch (e) {\n op = [6, e];\n y = 0;\n } finally {\n f = t = 0;\n }\n }\n\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n};\n\nvar __importStar = this && this.__importStar || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) {\n if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n }\n result[\"default\"] = mod;\n return result;\n};\n\nvar _this = this;\n\nexports.__esModule = true;\n\nvar webdetector = __importStar(require(\"../ts/index\"));\n\nconsole.log('hi');\n\nvar run = function run() {\n return __awaiter(_this, void 0, void 0, function () {\n var testWebDetector, onlineResultBoolean;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n testWebDetector = new webdetector.WebDetector({\n checkOnlineUrl: 'https://pubapi.lossless.one'\n });\n return [4\n /*yield*/\n , testWebDetector.isOnline()];\n\n case 1:\n onlineResultBoolean = _a.sent();\n console.log('browser is online:');\n console.log(onlineResultBoolean);\n testWebDetector.startPeriodicChecks();\n testWebDetector.onlineObservable.subscribe(function (state) {\n console.log(state);\n });\n return [2\n /*return*/\n ];\n }\n });\n });\n};\n\nrun();","map":{"mappings":[{"source":"test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":152,"column":0}},{"source":"test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":152,"column":4}},{"source":"test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":152,"column":9}},{"source":"test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":152,"column":12}},{"source":"test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":152,"column":16}},{"source":"test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":156,"column":0}},{"source":"test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":156,"column":4}},{"source":"test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":156,"column":15}},{"source":"test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":156,"column":18}},{"source":"test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":156,"column":30}},{"source":"test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":156,"column":31}},{"source":"test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":156,"column":38}},{"source":"test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":156,"column":39}},{"source":"test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":156,"column":52}},{"source":"test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":156,"column":53}},{"source":"test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":156,"column":54}},{"source":"test.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":158,"column":0}},{"source":"test.ts","name":null,"original":{"line":3,"column":7},"generated":{"line":158,"column":7}},{"source":"test.ts","name":null,"original":{"line":3,"column":8},"generated":{"line":158,"column":8}},{"source":"test.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":158,"column":11}},{"source":"test.ts","name":null,"original":{"line":3,"column":12},"generated":{"line":158,"column":12}},{"source":"test.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":158,"column":16}},{"source":"test.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":160,"column":0}},{"source":"test.ts","name":null,"original":{"line":5,"column":6},"generated":{"line":160,"column":4}},{"source":"test.ts","name":null,"original":{"line":5,"column":9},"generated":{"line":160,"column":7}},{"source":"test.ts","name":null,"original":{"line":5,"column":12},"generated":{"line":160,"column":10}},{"source":"test.ts","name":null,"original":{"line":5,"column":6},"generated":{"line":160,"column":19}},{"source":"test.ts","name":null,"original":{"line":5,"column":12},"generated":{"line":160,"column":22}},{"source":"test.ts","name":null,"original":{"line":5,"column":12},"generated":{"line":160,"column":25}},{"source":"test.ts","name":null,"original":{"line":5,"column":12},"generated":{"line":161,"column":0}},{"source":"test.ts","name":null,"original":{"line":5,"column":12},"generated":{"line":161,"column":9}},{"source":"test.ts","name":null,"original":{"line":5,"column":12},"generated":{"line":161,"column":18}},{"source":"test.ts","name":null,"original":{"line":5,"column":12},"generated":{"line":161,"column":19}},{"source":"test.ts","name":null,"original":{"line":5,"column":12},"generated":{"line":161,"column":24}},{"source":"test.ts","name":null,"original":{"line":5,"column":12},"generated":{"line":161,"column":26}},{"source":"test.ts","name":null,"original":{"line":5,"column":12},"generated":{"line":161,"column":31}},{"source":"test.ts","name":null,"original":{"line":5,"column":12},"generated":{"line":161,"column":32}},{"source":"test.ts","name":null,"original":{"line":5,"column":12},"generated":{"line":161,"column":34}},{"source":"test.ts","name":null,"original":{"line":5,"column":12},"generated":{"line":161,"column":39}},{"source":"test.ts","name":null,"original":{"line":5,"column":12},"generated":{"line":161,"column":40}},{"source":"test.ts","name":null,"original":{"line":5,"column":12},"generated":{"line":161,"column":42}},{"source":"test.ts","name":null,"original":{"line":5,"column":12},"generated":{"line":161,"column":54}},{"source":"test.ts","name":null,"original":{"line":6,"column":8},"generated":{"line":166,"column":0}},{"source":"test.ts","name":null,"original":{"line":6,"column":8},"generated":{"line":166,"column":10}},{"source":"test.ts","name":null,"original":{"line":6,"column":23},"generated":{"line":166,"column":25}},{"source":"test.ts","name":null,"original":{"line":6,"column":26},"generated":{"line":166,"column":28}},{"source":"test.ts","name":null,"original":{"line":6,"column":30},"generated":{"line":166,"column":32}},{"source":"test.ts","name":null,"original":{"line":6,"column":41},"generated":{"line":166,"column":43}},{"source":"test.ts","name":null,"original":{"line":6,"column":42},"generated":{"line":166,"column":44}},{"source":"test.ts","name":null,"original":{"line":6,"column":26},"generated":{"line":166,"column":55}},{"source":"test.ts","name":null,"original":{"line":6,"column":54},"generated":{"line":166,"column":56}},{"source":"test.ts","name":null,"original":{"line":7,"column":4},"generated":{"line":167,"column":0}},{"source":"test.ts","name":null,"original":{"line":7,"column":4},"generated":{"line":167,"column":12}},{"source":"test.ts","name":null,"original":{"line":7,"column":18},"generated":{"line":167,"column":26}},{"source":"test.ts","name":null,"original":{"line":7,"column":20},"generated":{"line":167,"column":28}},{"source":"test.ts","name":null,"original":{"line":6,"column":54},"generated":{"line":168,"column":0}},{"source":"test.ts","name":null,"original":{"line":6,"column":26},"generated":{"line":168,"column":11}},{"source":"test.ts","name":null,"original":{"line":6,"column":8},"generated":{"line":168,"column":12}},{"source":"test.ts","name":null,"original":{"line":9,"column":30},"generated":{"line":169,"column":0}},{"source":"test.ts","name":null,"original":{"line":9,"column":30},"generated":{"line":169,"column":17}},{"source":"test.ts","name":null,"original":{"line":9,"column":30},"generated":{"line":169,"column":18}},{"source":"test.ts","name":null,"original":{"line":9,"column":30},"generated":{"line":170,"column":0}},{"source":"test.ts","name":null,"original":{"line":9,"column":30},"generated":{"line":171,"column":0}},{"source":"test.ts","name":null,"original":{"line":9,"column":36},"generated":{"line":171,"column":12}},{"source":"test.ts","name":null,"original":{"line":9,"column":51},"generated":{"line":171,"column":27}},{"source":"test.ts","name":null,"original":{"line":9,"column":52},"generated":{"line":171,"column":28}},{"source":"test.ts","name":null,"original":{"line":9,"column":36},"generated":{"line":171,"column":36}},{"source":"test.ts","name":null,"original":{"line":9,"column":30},"generated":{"line":171,"column":38}},{"source":"test.ts","name":null,"original":{"line":9,"column":30},"generated":{"line":171,"column":39}},{"source":"test.ts","name":null,"original":{"line":9,"column":8},"generated":{"line":174,"column":0}},{"source":"test.ts","name":null,"original":{"line":9,"column":8},"generated":{"line":174,"column":10}},{"source":"test.ts","name":null,"original":{"line":9,"column":27},"generated":{"line":174,"column":29}},{"source":"test.ts","name":null,"original":{"line":9,"column":30},"generated":{"line":174,"column":32}},{"source":"test.ts","name":null,"original":{"line":9,"column":30},"generated":{"line":174,"column":34}},{"source":"test.ts","name":null,"original":{"line":9,"column":30},"generated":{"line":174,"column":35}},{"source":"test.ts","name":null,"original":{"line":9,"column":30},"generated":{"line":174,"column":39}},{"source":"test.ts","name":null,"original":{"line":9,"column":8},"generated":{"line":174,"column":41}},{"source":"test.ts","name":null,"original":{"line":10,"column":2},"generated":{"line":175,"column":0}},{"source":"test.ts","name":null,"original":{"line":10,"column":2},"generated":{"line":175,"column":10}},{"source":"test.ts","name":null,"original":{"line":10,"column":9},"generated":{"line":175,"column":17}},{"source":"test.ts","name":null,"original":{"line":10,"column":10},"generated":{"line":175,"column":18}},{"source":"test.ts","name":null,"original":{"line":10,"column":2},"generated":{"line":175,"column":21}},{"source":"test.ts","name":null,"original":{"line":10,"column":14},"generated":{"line":175,"column":22}},{"source":"test.ts","name":null,"original":{"line":10,"column":2},"generated":{"line":175,"column":42}},{"source":"test.ts","name":null,"original":{"line":11,"column":2},"generated":{"line":176,"column":0}},{"source":"test.ts","name":null,"original":{"line":11,"column":2},"generated":{"line":176,"column":10}},{"source":"test.ts","name":null,"original":{"line":11,"column":9},"generated":{"line":176,"column":17}},{"source":"test.ts","name":null,"original":{"line":11,"column":10},"generated":{"line":176,"column":18}},{"source":"test.ts","name":null,"original":{"line":11,"column":2},"generated":{"line":176,"column":21}},{"source":"test.ts","name":null,"original":{"line":11,"column":14},"generated":{"line":176,"column":22}},{"source":"test.ts","name":null,"original":{"line":11,"column":2},"generated":{"line":176,"column":41}},{"source":"test.ts","name":null,"original":{"line":12,"column":2},"generated":{"line":177,"column":0}},{"source":"test.ts","name":null,"original":{"line":12,"column":2},"generated":{"line":177,"column":10}},{"source":"test.ts","name":null,"original":{"line":12,"column":17},"generated":{"line":177,"column":25}},{"source":"test.ts","name":null,"original":{"line":12,"column":18},"generated":{"line":177,"column":26}},{"source":"test.ts","name":null,"original":{"line":12,"column":2},"generated":{"line":177,"column":45}},{"source":"test.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":178,"column":0}},{"source":"test.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":178,"column":10}},{"source":"test.ts","name":null,"original":{"line":13,"column":17},"generated":{"line":178,"column":25}},{"source":"test.ts","name":null,"original":{"line":13,"column":18},"generated":{"line":178,"column":26}},{"source":"test.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":178,"column":42}},{"source":"test.ts","name":null,"original":{"line":13,"column":35},"generated":{"line":178,"column":43}},{"source":"test.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":178,"column":52}},{"source":"test.ts","name":null,"original":{"line":13,"column":45},"generated":{"line":178,"column":53}},{"source":"test.ts","name":null,"original":{"line":13,"column":46},"generated":{"line":178,"column":63}},{"source":"test.ts","name":null,"original":{"line":13,"column":45},"generated":{"line":178,"column":68}},{"source":"test.ts","name":null,"original":{"line":13,"column":51},"generated":{"line":178,"column":70}},{"source":"test.ts","name":null,"original":{"line":14,"column":4},"generated":{"line":179,"column":0}},{"source":"test.ts","name":null,"original":{"line":14,"column":4},"generated":{"line":179,"column":12}},{"source":"test.ts","name":null,"original":{"line":14,"column":11},"generated":{"line":179,"column":19}},{"source":"test.ts","name":null,"original":{"line":14,"column":12},"generated":{"line":179,"column":20}},{"source":"test.ts","name":null,"original":{"line":14,"column":4},"generated":{"line":179,"column":23}},{"source":"test.ts","name":null,"original":{"line":14,"column":16},"generated":{"line":179,"column":24}},{"source":"test.ts","name":null,"original":{"line":14,"column":4},"generated":{"line":179,"column":29}},{"source":"test.ts","name":null,"original":{"line":15,"column":3},"generated":{"line":180,"column":0}},{"source":"test.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":180,"column":11}},{"source":"test.ts","name":null,"original":{"line":5,"column":12},"generated":{"line":186,"column":3}},{"source":"test.ts","name":null,"original":{"line":5,"column":12},"generated":{"line":186,"column":4}},{"source":"test.ts","name":null,"original":{"line":16,"column":1},"generated":{"line":187,"column":0}},{"source":"test.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":187,"column":1}},{"source":"test.ts","name":null,"original":{"line":17,"column":0},"generated":{"line":189,"column":0}},{"source":"test.ts","name":null,"original":{"line":17,"column":3},"generated":{"line":189,"column":3}}],"sources":{"test.ts":"import * as webdetector from '../ts/index'\n\nconsole.log('hi');\n\nconst run = async () => {\n const testWebDetector = new webdetector.WebDetector({\n checkOnlineUrl: 'https://pubapi.lossless.one'\n });\n const onlineResultBoolean = await testWebDetector.isOnline();\n console.log('browser is online:')\n console.log(onlineResultBoolean);\n testWebDetector.startPeriodicChecks();\n testWebDetector.onlineObservable.subscribe((state) => {\n console.log(state);\n })\n}\nrun();\n"},"lineCount":null}},"hash":"db9d57bc94c201c951d1e97c17ec789a","cacheData":{"env":{}}}