UNPKG

opennms

Version:

Client API for the OpenNMS network monitoring platform

1 lines 4.93 kB
{"remainingRequest":"/data/node_modules/babel-loader/lib/index.js!/data/node_modules/typescript-logging/dist/commonjs/log/category/CategoryExtensionLoggerImpl.js","dependencies":[{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/category/CategoryExtensionLoggerImpl.js","mtime":1553611388000},{"path":"/data/.babelrc","mtime":1553611371556},{"path":"/data/node_modules/cache-loader/dist/cjs.js","mtime":1553611387012},{"path":"/data/node_modules/babel-loader/lib/index.js","mtime":1553611386992}],"contextDependencies":[],"result":["\"use strict\";\n\nvar __extends = undefined && undefined.__extends || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar ExtensionHelper_1 = require(\"../../extension/ExtensionHelper\");\nvar AbstractCategoryLogger_1 = require(\"./AbstractCategoryLogger\");\n/**\n * This class should not be used directly, it is used for communication with the extension only.\n */\nvar CategoryExtensionLoggerImpl = function (_super) {\n __extends(CategoryExtensionLoggerImpl, _super);\n function CategoryExtensionLoggerImpl(rootCategory, runtimeSettings) {\n return _super.call(this, rootCategory, runtimeSettings) || this;\n }\n CategoryExtensionLoggerImpl.prototype.doLog = function (msg) {\n if (typeof window !== \"undefined\") {\n ExtensionHelper_1.ExtensionHelper.sendCategoryLogMessage(msg);\n } else {\n /* tslint:disable:no-console */\n console.log(\"window is not available, you must be running in a browser for this. Dropped message.\");\n }\n };\n return CategoryExtensionLoggerImpl;\n}(AbstractCategoryLogger_1.AbstractCategoryLogger);\nexports.CategoryExtensionLoggerImpl = CategoryExtensionLoggerImpl;\n//# sourceMappingURL=CategoryExtensionLoggerImpl.js.map",{"version":3,"sources":["node_modules/typescript-logging/dist/commonjs/log/category/CategoryExtensionLoggerImpl.js"],"names":["__extends","d","b","p","hasOwnProperty","__","constructor","prototype","Object","create","ExtensionHelper_1","require","AbstractCategoryLogger_1","CategoryExtensionLoggerImpl","_super","rootCategory","runtimeSettings","call","doLog","msg","window","ExtensionHelper","sendCategoryLogMessage","console","log","AbstractCategoryLogger","exports"],"mappings":"AAAA;;AACA,IAAIA,YAAa,aAAQ,UAAKA,SAAd,IAA4B,UAAUC,CAAV,EAAaC,CAAb,EAAgB;AACxD,SAAK,IAAIC,CAAT,IAAcD,CAAd;AAAiB,YAAIA,EAAEE,cAAF,CAAiBD,CAAjB,CAAJ,EAAyBF,EAAEE,CAAF,IAAOD,EAAEC,CAAF,CAAP;AAA1C,KACA,SAASE,EAAT,GAAc;AAAE,aAAKC,WAAL,GAAmBL,CAAnB;AAAuB;AACvCA,MAAEM,SAAF,GAAcL,MAAM,IAAN,GAAaM,OAAOC,MAAP,CAAcP,CAAd,CAAb,IAAiCG,GAAGE,SAAH,GAAeL,EAAEK,SAAjB,EAA4B,IAAIF,EAAJ,EAA7D,CAAd;AACH,CAJD;AAKA,IAAIK,oBAAoBC,QAAQ,iCAAR,CAAxB;AACA,IAAIC,2BAA2BD,QAAQ,0BAAR,CAA/B;AACA;;;AAGA,IAAIE,8BAA+B,UAAUC,MAAV,EAAkB;AACjDd,cAAUa,2BAAV,EAAuCC,MAAvC;AACA,aAASD,2BAAT,CAAqCE,YAArC,EAAmDC,eAAnD,EAAoE;AAChE,eAAOF,OAAOG,IAAP,CAAY,IAAZ,EAAkBF,YAAlB,EAAgCC,eAAhC,KAAoD,IAA3D;AACH;AACDH,gCAA4BN,SAA5B,CAAsCW,KAAtC,GAA8C,UAAUC,GAAV,EAAe;AACzD,YAAI,OAAOC,MAAP,KAAkB,WAAtB,EAAmC;AAC/BV,8BAAkBW,eAAlB,CAAkCC,sBAAlC,CAAyDH,GAAzD;AACH,SAFD,MAGK;AACD;AACAI,oBAAQC,GAAR,CAAY,sFAAZ;AACH;AACJ,KARD;AASA,WAAOX,2BAAP;AACH,CAfkC,CAejCD,yBAAyBa,sBAfQ,CAAnC;AAgBAC,QAAQb,2BAAR,GAAsCA,2BAAtC;AACA","file":"CategoryExtensionLoggerImpl.js","sourceRoot":"/data","sourcesContent":["\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar ExtensionHelper_1 = require(\"../../extension/ExtensionHelper\");\nvar AbstractCategoryLogger_1 = require(\"./AbstractCategoryLogger\");\n/**\n * This class should not be used directly, it is used for communication with the extension only.\n */\nvar CategoryExtensionLoggerImpl = (function (_super) {\n __extends(CategoryExtensionLoggerImpl, _super);\n function CategoryExtensionLoggerImpl(rootCategory, runtimeSettings) {\n return _super.call(this, rootCategory, runtimeSettings) || this;\n }\n CategoryExtensionLoggerImpl.prototype.doLog = function (msg) {\n if (typeof window !== \"undefined\") {\n ExtensionHelper_1.ExtensionHelper.sendCategoryLogMessage(msg);\n }\n else {\n /* tslint:disable:no-console */\n console.log(\"window is not available, you must be running in a browser for this. Dropped message.\");\n }\n };\n return CategoryExtensionLoggerImpl;\n}(AbstractCategoryLogger_1.AbstractCategoryLogger));\nexports.CategoryExtensionLoggerImpl = CategoryExtensionLoggerImpl;\n//# sourceMappingURL=CategoryExtensionLoggerImpl.js.map"]}]}