fix(core): update
This commit is contained in:
parent
da736adbb3
commit
fb7fc19e4d
1
.cache/03/c90d3d2de6bd5128254eae6405850e.json
Normal file
1
.cache/03/c90d3d2de6bd5128254eae6405850e.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/08/5a0e291479d2b4cc16be0bc9e076e6.json
Normal file
1
.cache/08/5a0e291479d2b4cc16be0bc9e076e6.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/11/652b664bf80c8f7035e71d7737bdf3.json
Normal file
1
.cache/11/652b664bf80c8f7035e71d7737bdf3.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/12/7b9d28518085d447c63fcdd9160373.json
Normal file
1
.cache/12/7b9d28518085d447c63fcdd9160373.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/1c/b2c6939c06a505a337859b3a50a968.json
Normal file
1
.cache/1c/b2c6939c06a505a337859b3a50a968.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/1e/42c3d473d0b24975709f6e79891c19.json
Normal file
1
.cache/1e/42c3d473d0b24975709f6e79891c19.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/1f/b462c2dfb8d4f3668d73535ebf4144.json
Normal file
1
.cache/1f/b462c2dfb8d4f3668d73535ebf4144.json
Normal file
@ -0,0 +1 @@
|
||||
{"id":"../../../.nvm/versions/node/v10.13.0/lib/node_modules/parcel-bundler/node_modules/util/support/isBufferBrowser.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/package.json","includedInParent":true,"mtime":1542067438335},{"name":"/Users/philkunz/.nvm/versions/node/v10.13.0/lib/node_modules/parcel-bundler/node_modules/util/package.json","includedInParent":true,"mtime":1542068254007}],"generated":{"js":"module.exports = function isBuffer(arg) {\n return arg && typeof arg === 'object'\n && typeof arg.copy === 'function'\n && typeof arg.fill === 'function'\n && typeof arg.readUInt8 === 'function';\n}","map":{"mappings":[{"source":"../../../.nvm/versions/node/v10.13.0/lib/node_modules/parcel-bundler/node_modules/util/support/isBufferBrowser.js","original":{"line":1,"column":0},"generated":{"line":1,"column":0}},{"source":"../../../.nvm/versions/node/v10.13.0/lib/node_modules/parcel-bundler/node_modules/util/support/isBufferBrowser.js","original":{"line":2,"column":0},"generated":{"line":2,"column":0}},{"source":"../../../.nvm/versions/node/v10.13.0/lib/node_modules/parcel-bundler/node_modules/util/support/isBufferBrowser.js","original":{"line":3,"column":0},"generated":{"line":3,"column":0}},{"source":"../../../.nvm/versions/node/v10.13.0/lib/node_modules/parcel-bundler/node_modules/util/support/isBufferBrowser.js","original":{"line":4,"column":0},"generated":{"line":4,"column":0}},{"source":"../../../.nvm/versions/node/v10.13.0/lib/node_modules/parcel-bundler/node_modules/util/support/isBufferBrowser.js","original":{"line":5,"column":0},"generated":{"line":5,"column":0}},{"source":"../../../.nvm/versions/node/v10.13.0/lib/node_modules/parcel-bundler/node_modules/util/support/isBufferBrowser.js","original":{"line":6,"column":0},"generated":{"line":6,"column":0}}],"sources":{"../../../.nvm/versions/node/v10.13.0/lib/node_modules/parcel-bundler/node_modules/util/support/isBufferBrowser.js":"module.exports = function isBuffer(arg) {\n return arg && typeof arg === 'object'\n && typeof arg.copy === 'function'\n && typeof arg.fill === 'function'\n && typeof arg.readUInt8 === 'function';\n}"},"lineCount":6}},"hash":"675efd9e484666eb16388744d24ad002","cacheData":{"env":{}}}
|
1
.cache/27/1d0386fd673b2b382055fbbcfbe59e.json
Normal file
1
.cache/27/1d0386fd673b2b382055fbbcfbe59e.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/2a/2f22487f35b7418c89535ae70445fe.json
Normal file
1
.cache/2a/2f22487f35b7418c89535ae70445fe.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/2a/d84283acedd63d7fe07bcab7247d2c.json
Normal file
1
.cache/2a/d84283acedd63d7fe07bcab7247d2c.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/2b/6d23556c431954ad855195d39e9405.json
Normal file
1
.cache/2b/6d23556c431954ad855195d39e9405.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/2c/897d1520cec27078ee83416b66a5c5.json
Normal file
1
.cache/2c/897d1520cec27078ee83416b66a5c5.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/2c/e18c44f1d353211cbafd4f8f7c5cb5.json
Normal file
1
.cache/2c/e18c44f1d353211cbafd4f8f7c5cb5.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/2f/17913f055bd13eca147a860b027e85.json
Normal file
1
.cache/2f/17913f055bd13eca147a860b027e85.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/34/59b7e3128bd0b0245f83713192466d.json
Normal file
1
.cache/34/59b7e3128bd0b0245f83713192466d.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/34/e00b29808df66eb846178f06e7a346.json
Normal file
1
.cache/34/e00b29808df66eb846178f06e7a346.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/3d/560b7bdef198192383b454c849c821.json
Normal file
1
.cache/3d/560b7bdef198192383b454c849c821.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/49/3f90868ae731d60eb1015f505ad226.json
Normal file
1
.cache/49/3f90868ae731d60eb1015f505ad226.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/4a/f9665f774e8f0b618ee0b95787577a.json
Normal file
1
.cache/4a/f9665f774e8f0b618ee0b95787577a.json
Normal file
@ -0,0 +1 @@
|
||||
{"id":"node_modules/chai/index.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/package.json","includedInParent":true,"mtime":1542067438335},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/package.json","includedInParent":true,"mtime":1542058764034},{"name":"./lib/chai","loc":{"line":1,"column":25},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/index.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai.js"}],"generated":{"js":"module.exports = require('./lib/chai');","map":{"mappings":[{"name":"module","generated":{"line":1,"column":0},"source":"node_modules/chai/index.js","original":{"line":1,"column":0}},{"generated":{"line":1,"column":6},"source":"node_modules/chai/index.js","original":{"line":1,"column":6}},{"name":"exports","generated":{"line":1,"column":7},"source":"node_modules/chai/index.js","original":{"line":1,"column":7}},{"generated":{"line":1,"column":14},"source":"node_modules/chai/index.js","original":{"line":1,"column":0}},{"name":"require","generated":{"line":1,"column":17},"source":"node_modules/chai/index.js","original":{"line":1,"column":17}},{"generated":{"line":1,"column":24},"source":"node_modules/chai/index.js","original":{"line":1,"column":24}},{"generated":{"line":1,"column":25},"source":"node_modules/chai/index.js","original":{"line":1,"column":25}},{"generated":{"line":1,"column":37},"source":"node_modules/chai/index.js","original":{"line":1,"column":24}},{"generated":{"line":1,"column":38},"source":"node_modules/chai/index.js","original":{"line":1,"column":0}}],"sources":{"node_modules/chai/index.js":"module.exports = require('./lib/chai');\n"},"lineCount":null}},"hash":"a24824cef3517c348f0fe2e4410c0ab9","cacheData":{"env":{}}}
|
1
.cache/51/13c410f36a7a261a0902400c20f070.json
Normal file
1
.cache/51/13c410f36a7a261a0902400c20f070.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/5b/c2dfcf731fde58368e878edbe37f4e.json
Normal file
1
.cache/5b/c2dfcf731fde58368e878edbe37f4e.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/5f/ee8467a01e9418bf9945fe543a8a61.json
Normal file
1
.cache/5f/ee8467a01e9418bf9945fe543a8a61.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/60/3040aae8b97feea62a4562e76d6b79.json
Normal file
1
.cache/60/3040aae8b97feea62a4562e76d6b79.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/64/4097925c3d1e8eb9682e5cc9cb2b1a.json
Normal file
1
.cache/64/4097925c3d1e8eb9682e5cc9cb2b1a.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/64/b926c4167ba04522ad64ad5f864b34.json
Normal file
1
.cache/64/b926c4167ba04522ad64ad5f864b34.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/67/bd803a26946dff8fb0a8cd43a25a65.json
Normal file
1
.cache/67/bd803a26946dff8fb0a8cd43a25a65.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/6b/b3b6a1c15bbca7ce9b98aa131eab3f.json
Normal file
1
.cache/6b/b3b6a1c15bbca7ce9b98aa131eab3f.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/6e/15e342741af6a9a84ff093f461f969.json
Normal file
1
.cache/6e/15e342741af6a9a84ff093f461f969.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/70/4eeb1b9fc2b2751d793c249681d118.json
Normal file
1
.cache/70/4eeb1b9fc2b2751d793c249681d118.json
Normal file
@ -0,0 +1 @@
|
||||
{"id":"node_modules/@pushrocks/tapbundle/dist/tapbundle.classes.tapwrap.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/ts/tapbundle.classes.tapwrap.ts","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/package.json","includedInParent":true,"mtime":1542067438335},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/package.json","includedInParent":true,"mtime":1542063791802}],"generated":{"js":"\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nclass TapWrap {\n /**\n * the constructor\n */\n constructor(wrapFunctionArg) {\n // nothing here\n this.wrapFunction = wrapFunctionArg;\n }\n /**\n * run the wrapFunction\n */\n run() {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.wrapFunction();\n });\n }\n}\nexports.TapWrap = TapWrap;\n","map":{"version":3,"file":"tapbundle.classes.tapwrap.js","sourceRoot":"","sources":["../ts/tapbundle.classes.tapwrap.ts"],"names":[],"mappings":";;;;;;;;;;AAMA,MAAa,OAAO;IAGlB;;OAEG;IACH,YAAY,eAAiC;QAC3C,eAAe;QACf,IAAI,CAAC,YAAY,GAAG,eAAe,CAAC;IACtC,CAAC;IAED;;OAEG;IACG,GAAG;;YACP,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;QAC5B,CAAC;KAAA;CACF;AAjBD,0BAiBC","sourcesContent":["import * as plugins from './tapbundle.plugins';\n\nexport interface ITapWrapFunction {\n (): Promise<any>;\n}\n\nexport class TapWrap {\n wrapFunction: ITapWrapFunction;\n\n /**\n * the constructor\n */\n constructor(wrapFunctionArg: ITapWrapFunction) {\n // nothing here\n this.wrapFunction = wrapFunctionArg;\n }\n\n /**\n * run the wrapFunction\n */\n async run() {\n await this.wrapFunction();\n }\n}\n"]}},"hash":"a8afbab5f1edfb468f3b8f7eefdb3d67","cacheData":{"env":{}}}
|
1
.cache/70/95073397295332d6553559bf7a69a0.json
Normal file
1
.cache/70/95073397295332d6553559bf7a69a0.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/73/6391cfb7a39f6086af4221c46851f0.json
Normal file
1
.cache/73/6391cfb7a39f6086af4221c46851f0.json
Normal file
@ -0,0 +1 @@
|
||||
{"id":"../node_modules/@pushrocks/smartlog/dist/smartlog.classes.logrouter.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/smartlog/ts/smartlog.classes.logrouter.ts","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/package.json","includedInParent":true,"mtime":1542069011329},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/smartlog/package.json","includedInParent":true,"mtime":1542058764035}],"generated":{"js":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nclass LogRouter {\n constructor() {\n /**\n * all log destinations\n */\n this.logDestinations = [];\n }\n addLogDestination(logDestination) {\n this.logDestinations.push(logDestination);\n }\n // routes the log according to added logDestinations\n routeLog(logPackageArg) {\n for (const logDestination of this.logDestinations) {\n logDestination.handleLog(logPackageArg);\n }\n }\n}\nexports.LogRouter = LogRouter;\n","map":{"version":3,"file":"smartlog.classes.logrouter.js","sourceRoot":"","sources":["../ts/smartlog.classes.logrouter.ts"],"names":[],"mappings":";;AAIA,MAAa,SAAS;IAMpB;QALA;;WAEG;QACK,oBAAe,GAAsB,EAAE,CAAC;IAEjC,CAAC;IAET,iBAAiB,CAAC,cAA+B;QACtD,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC5C,CAAC;IAED,oDAAoD;IACpD,QAAQ,CAAC,aAA0B;QACjC,KAAK,MAAM,cAAc,IAAI,IAAI,CAAC,eAAe,EAAE;YACjD,cAAc,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;SACzC;IACH,CAAC;CACF;AAlBD,8BAkBC","sourcesContent":["import * as plugins from './smartlog.plugins';\n\nimport { ILogDestination, ILogPackage } from '@pushrocks/smartlog-interfaces';\n\nexport class LogRouter {\n /**\n * all log destinations\n */\n private logDestinations: ILogDestination[] = [];\n\n constructor() {}\n\n public addLogDestination(logDestination: ILogDestination) {\n this.logDestinations.push(logDestination);\n }\n\n // routes the log according to added logDestinations\n routeLog(logPackageArg: ILogPackage) {\n for (const logDestination of this.logDestinations) {\n logDestination.handleLog(logPackageArg);\n }\n }\n}\n"]}},"hash":"5a4057d085fe5f908691337f03ea8a98","cacheData":{"env":{}}}
|
1
.cache/74/763b36c9356cde99ff3502cc4b1cfb.json
Normal file
1
.cache/74/763b36c9356cde99ff3502cc4b1cfb.json
Normal file
@ -0,0 +1 @@
|
||||
{"id":"node_modules/smartchai/dist/index.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/smartchai/ts/index.ts","includedInParent":true,"mtime":1519768627000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/package.json","includedInParent":true,"mtime":1542067438335},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/smartchai/package.json","includedInParent":true,"mtime":1542058764034},{"name":"chai","loc":{"line":3,"column":21},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/smartchai/dist/index.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/index.js"},{"name":"chai-as-promised","loc":{"line":4,"column":31},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/smartchai/dist/index.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai-as-promised/lib/chai-as-promised.js"},{"name":"chai-string","loc":{"line":5,"column":27},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/smartchai/dist/index.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai-string/chai-string.js"}],"generated":{"js":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst chai = require(\"chai\");\nconst chaiAsPromised = require(\"chai-as-promised\");\nconst chaiString = require(\"chai-string\");\nchai.use(chaiAsPromised);\nchai.use(chaiString);\nexports.expect = chai.expect;\n","map":{"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":";;AAAA,6BAA6B;AAC7B,mDAAmD;AACnD,0CAA0C;AAE1C,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;AACxB,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;AACP,QAAA,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA","sourcesContent":["import chai = require('chai')\nimport chaiAsPromised = require('chai-as-promised')\nimport chaiString = require('chai-string')\n\nchai.use(chaiAsPromised)\nchai.use(chaiString)\nexport const expect = chai.expect\n\n"]}},"hash":"21aa04ed10be7085ca9a9ab2ec5bb77b","cacheData":{"env":{}}}
|
1
.cache/75/d15dce618af2a1255ad78db706ff6d.json
Normal file
1
.cache/75/d15dce618af2a1255ad78db706ff6d.json
Normal file
@ -0,0 +1 @@
|
||||
{"id":"../../../.nvm/versions/node/v10.13.0/lib/node_modules/parcel-bundler/src/builtins/_empty.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/package.json","includedInParent":true,"mtime":1542067438335},{"name":"/Users/philkunz/.nvm/versions/node/v10.13.0/lib/node_modules/parcel-bundler/package.json","includedInParent":true,"mtime":1542068253946},{"name":"/Users/philkunz/.nvm/versions/node/v10.13.0/lib/node_modules/parcel-bundler/src/.babelrc","includedInParent":true,"mtime":1539263651000}],"generated":{"js":"","map":{"mappings":[],"sources":{"../../../.nvm/versions/node/v10.13.0/lib/node_modules/parcel-bundler/src/builtins/_empty.js":""},"lineCount":null}},"hash":"718c624fd453acf0b14664556811b6c5","cacheData":{"env":{}}}
|
1
.cache/76/7af317fcae1ed042398aadff563b4b.json
Normal file
1
.cache/76/7af317fcae1ed042398aadff563b4b.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/76/aa060165bc4b903351500719d84110.json
Normal file
1
.cache/76/aa060165bc4b903351500719d84110.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/77/0c7203eee7baa0ce6aa7f0b7e87bc5.json
Normal file
1
.cache/77/0c7203eee7baa0ce6aa7f0b7e87bc5.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/7a/215a1dce52c587890a626069531173.json
Normal file
1
.cache/7a/215a1dce52c587890a626069531173.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/7c/f2b8dfb2b6f1bbd0bb163fc4bf6e14.json
Normal file
1
.cache/7c/f2b8dfb2b6f1bbd0bb163fc4bf6e14.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/7e/78eb41740cf8847707874f76725966.json
Normal file
1
.cache/7e/78eb41740cf8847707874f76725966.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/7f/16322bcc96f230e15f68dae3290260.json
Normal file
1
.cache/7f/16322bcc96f230e15f68dae3290260.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/80/54ce8e9962e38b36ca9d351deeddf7.json
Normal file
1
.cache/80/54ce8e9962e38b36ca9d351deeddf7.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/8a/7a25cfc67ec1cec3072e81f6041872.json
Normal file
1
.cache/8a/7a25cfc67ec1cec3072e81f6041872.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/8c/e5a24357ccde31890d952ca874cafa.json
Normal file
1
.cache/8c/e5a24357ccde31890d952ca874cafa.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/91/ef72ec90b2606047dd88960a791004.json
Normal file
1
.cache/91/ef72ec90b2606047dd88960a791004.json
Normal file
@ -0,0 +1 @@
|
||||
{"id":"index.html","dependencies":[{"name":"./test/browsertest.ts","dynamic":true,"resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/test/browsertest.ts","parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/index.html"}],"generated":{"html":"<head>\n <script src=\"/642eee4354410daef039cd5aebe08f22.js\"></script>\n</head>\n<body></body>"},"hash":"5af05728e9f448754239e1756c865ba8","cacheData":{}}
|
1
.cache/9a/77449d162c9eb51e0f383ff565d806.json
Normal file
1
.cache/9a/77449d162c9eb51e0f383ff565d806.json
Normal file
@ -0,0 +1 @@
|
||||
{"id":"node_modules/@pushrocks/tapbundle/dist/tapbundle.plugins.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/ts/tapbundle.plugins.ts","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/package.json","includedInParent":true,"mtime":1542067438335},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/package.json","includedInParent":true,"mtime":1542063791802},{"name":"@pushrocks/early","loc":{"line":3,"column":22},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/dist/tapbundle.plugins.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/early/dist/index.js"},{"name":"leakage","loc":{"line":5,"column":24},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/dist/tapbundle.plugins.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/leakage/lib/index.js"},{"name":"@pushrocks/smartdelay","loc":{"line":7,"column":27},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/dist/tapbundle.plugins.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/smartdelay/dist/index.js"},{"name":"@pushrocks/smartpromise","loc":{"line":9,"column":29},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/dist/tapbundle.plugins.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/smartpromise/dist/index.js"}],"generated":{"js":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst early = require(\"@pushrocks/early\");\nexports.early = early;\nconst leakage = require(\"leakage\");\nexports.leakage = leakage;\nconst smartdelay = require(\"@pushrocks/smartdelay\");\nexports.smartdelay = smartdelay;\nconst smartpromise = require(\"@pushrocks/smartpromise\");\nexports.smartpromise = smartpromise;\n","map":{"version":3,"file":"tapbundle.plugins.js","sourceRoot":"","sources":["../ts/tapbundle.plugins.ts"],"names":[],"mappings":";;AAAA,0CAA0C;AAKjC,sBAAK;AAJd,mCAAmC;AAIO,0BAAO;AAHjD,oDAAoD;AAGpC,gCAAU;AAF1B,wDAAwD;AAE5B,oCAAY","sourcesContent":["import * as early from '@pushrocks/early';\nimport * as leakage from 'leakage';\nimport * as smartdelay from '@pushrocks/smartdelay';\nimport * as smartpromise from '@pushrocks/smartpromise';\n\nexport { early, smartdelay, smartpromise, leakage };\n"]}},"hash":"6ac15ba135e740ff960815ed6392ec31","cacheData":{"env":{}}}
|
1
.cache/9f/065a668e766807aa8a614b1aa577e7.json
Normal file
1
.cache/9f/065a668e766807aa8a614b1aa577e7.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/a1/88ea29cb57d297d8f511841d207b32.json
Normal file
1
.cache/a1/88ea29cb57d297d8f511841d207b32.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/a3/d77fdc427d55e6a134605a06a11f11.json
Normal file
1
.cache/a3/d77fdc427d55e6a134605a06a11f11.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/a9/362f556d488dac3a88907418c7f44f.json
Normal file
1
.cache/a9/362f556d488dac3a88907418c7f44f.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/a9/9fcb687c45d1d80c5e6b0a19758463.json
Normal file
1
.cache/a9/9fcb687c45d1d80c5e6b0a19758463.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/ae/26d88f44286f577ba2b40ecf3148a2.json
Normal file
1
.cache/ae/26d88f44286f577ba2b40ecf3148a2.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/af/af29377df8a363975f1b089870d8f7.json
Normal file
1
.cache/af/af29377df8a363975f1b089870d8f7.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/b2/fbac88b3570b2e893a77276b548ac5.json
Normal file
1
.cache/b2/fbac88b3570b2e893a77276b548ac5.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/b4/db9fcb7fe34c099eab36edbfcf25e1.json
Normal file
1
.cache/b4/db9fcb7fe34c099eab36edbfcf25e1.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/b7/d776e510041838dba5a82d6c523be9.json
Normal file
1
.cache/b7/d776e510041838dba5a82d6c523be9.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/b7/ead18d4d0f64712bb39528b0ec5a0b.json
Normal file
1
.cache/b7/ead18d4d0f64712bb39528b0ec5a0b.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/bb/056fb6230bb23e42df5406a0cf517e.json
Normal file
1
.cache/bb/056fb6230bb23e42df5406a0cf517e.json
Normal file
@ -0,0 +1 @@
|
||||
{"id":"../node_modules/@pushrocks/smartlog/dist/index.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/smartlog/ts/index.ts","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/package.json","includedInParent":true,"mtime":1542069011329},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/smartlog/package.json","includedInParent":true,"mtime":1542058764035},{"name":"./smartlog.classes.smartlog","loc":{"line":3,"column":44},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/smartlog/dist/index.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/smartlog/dist/smartlog.classes.smartlog.js"}],"generated":{"js":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst smartlog_classes_smartlog_1 = require(\"./smartlog.classes.smartlog\");\nexports.Smartlog = smartlog_classes_smartlog_1.Smartlog;\nconst defaultLogger = new smartlog_classes_smartlog_1.Smartlog({\n logContext: {\n company: 'undefined',\n companyunit: 'undefefined',\n containerName: 'undefined',\n environment: 'local',\n runtime: 'node',\n zone: 'undefined'\n }\n});\nexports.defaultLogger = defaultLogger;\n","map":{"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":";;AACA,2EAAuD;AAY9C,mBAZA,oCAAQ,CAYA;AAXjB,MAAM,aAAa,GAAa,IAAI,oCAAQ,CAAC;IAC3C,UAAU,EAAE;QACV,OAAO,EAAE,WAAW;QACpB,WAAW,EAAE,aAAa;QAC1B,aAAa,EAAE,WAAW;QAC1B,WAAW,EAAE,OAAO;QACpB,OAAO,EAAE,MAAM;QACf,IAAI,EAAE,WAAW;KAClB;CACF,CAAC,CAAC;AAEgB,sCAAa","sourcesContent":["import * as plugins from './smartlog.plugins';\nimport { Smartlog } from './smartlog.classes.smartlog';\nconst defaultLogger: Smartlog = new Smartlog({\n logContext: {\n company: 'undefined',\n companyunit: 'undefefined',\n containerName: 'undefined',\n environment: 'local',\n runtime: 'node',\n zone: 'undefined'\n }\n});\n\nexport { Smartlog, defaultLogger };\n"]}},"hash":"b4d12976864646a10b900c5e00c95d81","cacheData":{"env":{}}}
|
1
.cache/bb/b1eb64a31c0c47fb05a3b7f77adae8.json
Normal file
1
.cache/bb/b1eb64a31c0c47fb05a3b7f77adae8.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/bd/463b2e077625947c3373e6947ef005.json
Normal file
1
.cache/bd/463b2e077625947c3373e6947ef005.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/bd/727d6a08fa9fc38c850b0463a740aa.json
Normal file
1
.cache/bd/727d6a08fa9fc38c850b0463a740aa.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/bd/87f877728cdb347b367f564988c795.json
Normal file
1
.cache/bd/87f877728cdb347b367f564988c795.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/bd/b84e7ec14e7e70558ecde49bc87f12.json
Normal file
1
.cache/bd/b84e7ec14e7e70558ecde49bc87f12.json
Normal file
@ -0,0 +1 @@
|
||||
{"id":"node_modules/@pushrocks/tapbundle/dist/index.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/ts/index.ts","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/package.json","includedInParent":true,"mtime":1542067438335},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/package.json","includedInParent":true,"mtime":1542063791802},{"name":"smartchai","loc":{"line":3,"column":26},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/dist/index.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/smartchai/dist/index.js"},{"name":"./tapbundle.classes.tap","loc":{"line":5,"column":38},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/dist/index.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/dist/tapbundle.classes.tap.js"}],"generated":{"js":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar smartchai_1 = require(\"smartchai\");\nexports.expect = smartchai_1.expect;\nvar tapbundle_classes_tap_1 = require(\"./tapbundle.classes.tap\");\nexports.tap = tapbundle_classes_tap_1.tap;\n","map":{"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":";;AAAA,uCAAmC;AAA1B,6BAAA,MAAM,CAAA;AACf,iEAA8C;AAArC,sCAAA,GAAG,CAAA","sourcesContent":["export { expect } from 'smartchai';\nexport { tap } from './tapbundle.classes.tap';\n"]}},"hash":"4ead2420c13db587be4c38c24e4fc306","cacheData":{"env":{}}}
|
1
.cache/c7/1179cf638bfb6930887a03dc6f3995.json
Normal file
1
.cache/c7/1179cf638bfb6930887a03dc6f3995.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/ca/f880624964bb99a9fb4e8d9f23bc43.json
Normal file
1
.cache/ca/f880624964bb99a9fb4e8d9f23bc43.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/cb/ddd367e6d632f0e0949a4a1e8cb6e3.json
Normal file
1
.cache/cb/ddd367e6d632f0e0949a4a1e8cb6e3.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/d0/04f16d1fdbb1e3b1495edeeaeb2bf4.json
Normal file
1
.cache/d0/04f16d1fdbb1e3b1495edeeaeb2bf4.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/d4/58fa95b7f59978430a6e33ad1c428f.json
Normal file
1
.cache/d4/58fa95b7f59978430a6e33ad1c428f.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/d7/399722e8454912b24321f3cf5b715c.json
Normal file
1
.cache/d7/399722e8454912b24321f3cf5b715c.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/d7/7fe2461eb92444bda6d76729c37f0d.json
Normal file
1
.cache/d7/7fe2461eb92444bda6d76729c37f0d.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/d9/20072468b5d3f5625349833e336fb3.json
Normal file
1
.cache/d9/20072468b5d3f5625349833e336fb3.json
Normal file
@ -0,0 +1 @@
|
||||
{"id":"index.html","dependencies":[{"name":"./browsertest.ts","dynamic":true,"resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/test/browsertest.ts","parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/test/index.html"}],"generated":{"html":"<head>\n <script src=\"/2552bba4981d8242b8167b98d8c67eb9.js\"></script>\n</head>\n<body></body>"},"hash":"f59eeb5a6b3163ef5bface39377ac9c9","cacheData":{}}
|
1
.cache/d9/8a75684a7f64c589162fef32d74aa0.json
Normal file
1
.cache/d9/8a75684a7f64c589162fef32d74aa0.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/da/97ffd41d95d47c5f0ef1955ce0d693.json
Normal file
1
.cache/da/97ffd41d95d47c5f0ef1955ce0d693.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/e8/55e31b98e31fd5caa04abffcd6980b.json
Normal file
1
.cache/e8/55e31b98e31fd5caa04abffcd6980b.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/ec/1bf73ee01efd00c9032228368c3640.json
Normal file
1
.cache/ec/1bf73ee01efd00c9032228368c3640.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/f7/afcf4d9f4903c3bd3702a116d9e373.json
Normal file
1
.cache/f7/afcf4d9f4903c3bd3702a116d9e373.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/f7/cab7621674640715b26d49a86cb06c.json
Normal file
1
.cache/f7/cab7621674640715b26d49a86cb06c.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/f8/9ce6c96e1d950f1291d6af67b513e8.json
Normal file
1
.cache/f8/9ce6c96e1d950f1291d6af67b513e8.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/fa/261f4dcfe3907ca489f40e446710a5.json
Normal file
1
.cache/fa/261f4dcfe3907ca489f40e446710a5.json
Normal file
File diff suppressed because one or more lines are too long
1
.cache/fe/5c8a3f6d4991f605bf8aa05d65e73e.json
Normal file
1
.cache/fe/5c8a3f6d4991f605bf8aa05d65e73e.json
Normal file
File diff suppressed because one or more lines are too long
@ -3,93 +3,145 @@ image: hosttoday/ht-docker-node:npmci
|
||||
|
||||
cache:
|
||||
paths:
|
||||
- .yarn/
|
||||
- .npmci_cache/
|
||||
key: "$CI_BUILD_STAGE"
|
||||
|
||||
stages:
|
||||
- security
|
||||
- test
|
||||
- release
|
||||
- trigger
|
||||
- pages
|
||||
- metadata
|
||||
|
||||
# ====================
|
||||
# security stage
|
||||
# ====================
|
||||
mirror:
|
||||
stage: security
|
||||
script:
|
||||
- npmci git mirror
|
||||
tags:
|
||||
- docker
|
||||
- notpriv
|
||||
|
||||
snyk:
|
||||
stage: security
|
||||
script:
|
||||
- npmci command yarn global add snyk
|
||||
- npmci command yarn install --ignore-scripts
|
||||
- npmci npm prepare
|
||||
- npmci command npm install -g snyk
|
||||
- npmci command npm install --ignore-scripts
|
||||
- npmci command snyk test
|
||||
tags:
|
||||
- docker
|
||||
- notpriv
|
||||
|
||||
# ====================
|
||||
# test stage
|
||||
# ====================
|
||||
testLEGACY:
|
||||
stage: test
|
||||
script:
|
||||
- npmci npm prepare
|
||||
- npmci node install legacy
|
||||
- npmci npm install
|
||||
- npmci npm test
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- docker
|
||||
- notpriv
|
||||
allow_failure: true
|
||||
|
||||
testLTS:
|
||||
stage: test
|
||||
script:
|
||||
- npmci npm prepare
|
||||
- npmci node install lts
|
||||
- npmci npm install
|
||||
- npmci npm test
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- docker
|
||||
- notpriv
|
||||
|
||||
testSTABLE:
|
||||
stage: test
|
||||
script:
|
||||
- npmci npm prepare
|
||||
- npmci node install stable
|
||||
- npmci npm install
|
||||
- npmci npm test
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- docker
|
||||
- notpriv
|
||||
|
||||
release:
|
||||
stage: release
|
||||
script:
|
||||
- npmci npm prepare
|
||||
- npmci node install stable
|
||||
- npmci npm publish
|
||||
only:
|
||||
- tags
|
||||
tags:
|
||||
- docker
|
||||
- notpriv
|
||||
|
||||
# ====================
|
||||
# metadata stage
|
||||
# ====================
|
||||
codequality:
|
||||
stage: metadata
|
||||
image: docker:stable
|
||||
allow_failure: true
|
||||
services:
|
||||
- docker:stable-dind
|
||||
script:
|
||||
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
|
||||
- docker run
|
||||
--env SOURCE_CODE="$PWD"
|
||||
--volume "$PWD":/code
|
||||
--volume /var/run/docker.sock:/var/run/docker.sock
|
||||
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
|
||||
artifacts:
|
||||
paths: [codeclimate.json]
|
||||
tags:
|
||||
- docker
|
||||
- priv
|
||||
|
||||
trigger:
|
||||
stage: trigger
|
||||
stage: metadata
|
||||
script:
|
||||
- npmci trigger
|
||||
only:
|
||||
- tags
|
||||
tags:
|
||||
- docker
|
||||
- notpriv
|
||||
|
||||
pages:
|
||||
image: hosttoday/ht-docker-node:npmci
|
||||
stage: pages
|
||||
stage: metadata
|
||||
script:
|
||||
- npmci command yarn global add npmpage
|
||||
- npmci command npmpage
|
||||
- npmci command npm install -g typedoc typescript
|
||||
- npmci npm prepare
|
||||
- npmci npm install
|
||||
- npmci command typedoc --module "commonjs" --target "ES2016" --out public/ ts/
|
||||
tags:
|
||||
- docker
|
||||
- notpriv
|
||||
only:
|
||||
- tags
|
||||
artifacts:
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- public
|
||||
allow_failure: true
|
||||
|
||||
windowsCompatibility:
|
||||
image: stefanscherer/node-windows:10-build-tools
|
||||
stage: metadata
|
||||
script:
|
||||
- npm install & npm test
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- windows
|
||||
allow_failure: true
|
||||
|
2
dist/beautybrowser.plugins.d.ts
vendored
2
dist/beautybrowser.plugins.d.ts
vendored
@ -1,2 +0,0 @@
|
||||
import * as smartlogInterfaces from 'smartlog-interfaces';
|
||||
export { smartlogInterfaces };
|
5
dist/beautybrowser.plugins.js
vendored
5
dist/beautybrowser.plugins.js
vendored
@ -1,5 +0,0 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const smartlogInterfaces = require("smartlog-interfaces");
|
||||
exports.smartlogInterfaces = smartlogInterfaces;
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5YnJvd3Nlci5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvYmVhdXR5YnJvd3Nlci5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMERBQTBEO0FBQ2pELGdEQUFrQiJ9
|
468
dist/browsertest.d8c67eb9.js
vendored
Normal file
468
dist/browsertest.d8c67eb9.js
vendored
Normal file
@ -0,0 +1,468 @@
|
||||
// modules are defined as an array
|
||||
// [ module function, map of requires ]
|
||||
//
|
||||
// map of requires is short require name -> numeric require
|
||||
//
|
||||
// anything defined in a previous bundle is accessed via the
|
||||
// orig method which is the require for previous bundles
|
||||
|
||||
// eslint-disable-next-line no-global-assign
|
||||
parcelRequire = (function (modules, cache, entry, globalName) {
|
||||
// Save the require from previous bundle to this closure if any
|
||||
var previousRequire = typeof parcelRequire === 'function' && parcelRequire;
|
||||
var nodeRequire = typeof require === 'function' && require;
|
||||
|
||||
function newRequire(name, jumped) {
|
||||
if (!cache[name]) {
|
||||
if (!modules[name]) {
|
||||
// if we cannot find the module within our internal map or
|
||||
// cache jump to the current global require ie. the last bundle
|
||||
// that was added to the page.
|
||||
var currentRequire = typeof parcelRequire === 'function' && parcelRequire;
|
||||
if (!jumped && currentRequire) {
|
||||
return currentRequire(name, true);
|
||||
}
|
||||
|
||||
// If there are other bundles on this page the require from the
|
||||
// previous one is saved to 'previousRequire'. Repeat this as
|
||||
// many times as there are bundles until the module is found or
|
||||
// we exhaust the require chain.
|
||||
if (previousRequire) {
|
||||
return previousRequire(name, true);
|
||||
}
|
||||
|
||||
// Try the node require function if it exists.
|
||||
if (nodeRequire && typeof name === 'string') {
|
||||
return nodeRequire(name);
|
||||
}
|
||||
|
||||
var err = new Error('Cannot find module \'' + name + '\'');
|
||||
err.code = 'MODULE_NOT_FOUND';
|
||||
throw err;
|
||||
}
|
||||
|
||||
localRequire.resolve = resolve;
|
||||
localRequire.cache = {};
|
||||
|
||||
var module = cache[name] = new newRequire.Module(name);
|
||||
|
||||
modules[name][0].call(module.exports, localRequire, module, module.exports, this);
|
||||
}
|
||||
|
||||
return cache[name].exports;
|
||||
|
||||
function localRequire(x){
|
||||
return newRequire(localRequire.resolve(x));
|
||||
}
|
||||
|
||||
function resolve(x){
|
||||
return modules[name][1][x] || x;
|
||||
}
|
||||
}
|
||||
|
||||
function Module(moduleName) {
|
||||
this.id = moduleName;
|
||||
this.bundle = newRequire;
|
||||
this.exports = {};
|
||||
}
|
||||
|
||||
newRequire.isParcelRequire = true;
|
||||
newRequire.Module = Module;
|
||||
newRequire.modules = modules;
|
||||
newRequire.cache = cache;
|
||||
newRequire.parent = previousRequire;
|
||||
newRequire.register = function (id, exports) {
|
||||
modules[id] = [function (require, module) {
|
||||
module.exports = exports;
|
||||
}, {}];
|
||||
};
|
||||
|
||||
for (var i = 0; i < entry.length; i++) {
|
||||
newRequire(entry[i]);
|
||||
}
|
||||
|
||||
if (entry.length) {
|
||||
// Expose entry point to Node, AMD or browser globals
|
||||
// Based on https://github.com/ForbesLindesay/umd/blob/master/template.js
|
||||
var mainExports = newRequire(entry[entry.length - 1]);
|
||||
|
||||
// CommonJS
|
||||
if (typeof exports === "object" && typeof module !== "undefined") {
|
||||
module.exports = mainExports;
|
||||
|
||||
// RequireJS
|
||||
} else if (typeof define === "function" && define.amd) {
|
||||
define(function () {
|
||||
return mainExports;
|
||||
});
|
||||
|
||||
// <script>
|
||||
} else if (globalName) {
|
||||
this[globalName] = mainExports;
|
||||
}
|
||||
}
|
||||
|
||||
// Override the current require with this new one
|
||||
return newRequire;
|
||||
})({"../node_modules/@pushrocks/smartlog/dist/smartlog.classes.logrouter.js":[function(require,module,exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class LogRouter {
|
||||
constructor() {
|
||||
/**
|
||||
* all log destinations
|
||||
*/
|
||||
this.logDestinations = [];
|
||||
}
|
||||
addLogDestination(logDestination) {
|
||||
this.logDestinations.push(logDestination);
|
||||
}
|
||||
// routes the log according to added logDestinations
|
||||
routeLog(logPackageArg) {
|
||||
for (const logDestination of this.logDestinations) {
|
||||
logDestination.handleLog(logPackageArg);
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.LogRouter = LogRouter;
|
||||
|
||||
},{}],"../node_modules/@pushrocks/smartlog/dist/smartlog.classes.smartlog.js":[function(require,module,exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const smartlog_classes_logrouter_1 = require("./smartlog.classes.logrouter");
|
||||
class Smartlog {
|
||||
constructor(optionsArg) {
|
||||
this.logRouter = new smartlog_classes_logrouter_1.LogRouter();
|
||||
this.logContext = optionsArg.logContext;
|
||||
this.minimumLogLevel = optionsArg.minimumLogLevel;
|
||||
}
|
||||
addLogDestination(logDestinationArg) {
|
||||
this.logRouter.addLogDestination(logDestinationArg);
|
||||
}
|
||||
// ============
|
||||
// Logger Setup
|
||||
// ============
|
||||
/**
|
||||
* enables console logging
|
||||
*/
|
||||
enableConsole() {
|
||||
this.consoleEnabled = true;
|
||||
}
|
||||
// =============
|
||||
// log functions
|
||||
// =============
|
||||
/**
|
||||
* main log method
|
||||
* @param logLevelArg - the log level
|
||||
* @param logMessageArg - the log message
|
||||
* @param logDataArg - any additional log data
|
||||
*/
|
||||
log(logLevelArg, logMessageArg, logDataArg) {
|
||||
if (this.consoleEnabled) {
|
||||
console.log(`LOG: ${logLevelArg}: ${logMessageArg}`);
|
||||
}
|
||||
const logPackage = {
|
||||
timestamp: Date.now(),
|
||||
type: 'log',
|
||||
context: this.logContext,
|
||||
level: logLevelArg,
|
||||
message: logMessageArg
|
||||
};
|
||||
if (logDataArg) {
|
||||
logPackage.data = logDataArg;
|
||||
}
|
||||
this.logRouter.routeLog(logPackage);
|
||||
}
|
||||
increment(logLevelArg, logMessageArg) {
|
||||
if (this.consoleEnabled) {
|
||||
console.log(`INCREMENT: ${logLevelArg}: ${logMessageArg}`);
|
||||
}
|
||||
this.logRouter.routeLog({
|
||||
timestamp: Date.now(),
|
||||
type: 'increment',
|
||||
context: this.logContext,
|
||||
level: logLevelArg,
|
||||
message: logMessageArg
|
||||
});
|
||||
}
|
||||
handleLogPackage(logPackageArg) {
|
||||
this.logRouter.routeLog(logPackageArg);
|
||||
}
|
||||
}
|
||||
exports.Smartlog = Smartlog;
|
||||
|
||||
},{"./smartlog.classes.logrouter":"../node_modules/@pushrocks/smartlog/dist/smartlog.classes.logrouter.js"}],"../node_modules/@pushrocks/smartlog/dist/index.js":[function(require,module,exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const smartlog_classes_smartlog_1 = require("./smartlog.classes.smartlog");
|
||||
exports.Smartlog = smartlog_classes_smartlog_1.Smartlog;
|
||||
const defaultLogger = new smartlog_classes_smartlog_1.Smartlog({
|
||||
logContext: {
|
||||
company: 'undefined',
|
||||
companyunit: 'undefefined',
|
||||
containerName: 'undefined',
|
||||
environment: 'local',
|
||||
runtime: 'node',
|
||||
zone: 'undefined'
|
||||
}
|
||||
});
|
||||
exports.defaultLogger = defaultLogger;
|
||||
|
||||
},{"./smartlog.classes.smartlog":"../node_modules/@pushrocks/smartlog/dist/smartlog.classes.smartlog.js"}],"../ts/index.ts":[function(require,module,exports) {
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var SmartlogDestinationDevtools =
|
||||
/** @class */
|
||||
function () {
|
||||
function SmartlogDestinationDevtools() {}
|
||||
|
||||
SmartlogDestinationDevtools.prototype.handleLog = function (logPackageArg) {
|
||||
this.logInBrowser(logPackageArg);
|
||||
};
|
||||
|
||||
SmartlogDestinationDevtools.prototype.logInBrowser = function (logPackage) {
|
||||
switch (logPackage.level) {
|
||||
case 'error':
|
||||
console.log("%c Error: %c " + logPackage.message, 'background:#000000;color:#800000;', 'color:#000000;');
|
||||
break;
|
||||
|
||||
case 'info':
|
||||
console.log("%c Info: %c " + logPackage.message, 'background:#EC407A;color:#ffffff;', 'color:#EC407A;');
|
||||
break;
|
||||
|
||||
case 'ok':
|
||||
console.log("%c OK: %c " + logPackage.message, 'background:#000000;color:#8BC34A;', 'color:#000000;');
|
||||
break;
|
||||
|
||||
case 'success':
|
||||
console.log("%c Success: %c " + logPackage.message, 'background:#8BC34A;color:#ffffff;', 'color:#8BC34A;');
|
||||
break;
|
||||
|
||||
case 'warn':
|
||||
console.log("%c Warn: %c " + logPackage.message, 'background:#000000;color:#FB8C00;', 'color:#000000;');
|
||||
break;
|
||||
|
||||
case 'note':
|
||||
console.log("%c Note: %c " + logPackage.message, 'background:#42A5F5;color:#ffffff', 'color:#42A5F5;');
|
||||
break;
|
||||
|
||||
default:
|
||||
console.log("unknown logType for \"" + logPackage.message + "\"");
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
return SmartlogDestinationDevtools;
|
||||
}();
|
||||
|
||||
exports.SmartlogDestinationDevtools = SmartlogDestinationDevtools;
|
||||
},{}],"browsertest.ts":[function(require,module,exports) {
|
||||
"use strict";
|
||||
|
||||
var __importStar = this && this.__importStar || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) {
|
||||
if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
||||
}
|
||||
result["default"] = mod;
|
||||
return result;
|
||||
};
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var smartlog = __importStar(require("@pushrocks/smartlog"));
|
||||
|
||||
var logger = smartlog.defaultLogger;
|
||||
var logContext = {
|
||||
company: 'Lossless GmbH',
|
||||
companyunit: 'Lossless.Cloud',
|
||||
containerName: 'testContainer',
|
||||
environment: 'staging',
|
||||
runtime: 'chrome',
|
||||
zone: 'servezone'
|
||||
}; // import the module to test
|
||||
|
||||
var smartlogDestinationDevtools = __importStar(require("../ts/index"));
|
||||
|
||||
var testDestination = new smartlogDestinationDevtools.SmartlogDestinationDevtools();
|
||||
testDestination.handleLog({
|
||||
timestamp: Date.now(),
|
||||
type: 'log',
|
||||
context: logContext,
|
||||
level: 'info',
|
||||
message: 'wait, what? Hi, this is a message!'
|
||||
});
|
||||
},{"@pushrocks/smartlog":"../node_modules/@pushrocks/smartlog/dist/index.js","../ts/index":"../ts/index.ts"}],"../node_modules/parcel-bundler/src/builtins/hmr-runtime.js":[function(require,module,exports) {
|
||||
var global = arguments[3];
|
||||
var OVERLAY_ID = '__parcel__error__overlay__';
|
||||
var OldModule = module.bundle.Module;
|
||||
|
||||
function Module(moduleName) {
|
||||
OldModule.call(this, moduleName);
|
||||
this.hot = {
|
||||
data: module.bundle.hotData,
|
||||
_acceptCallbacks: [],
|
||||
_disposeCallbacks: [],
|
||||
accept: function (fn) {
|
||||
this._acceptCallbacks.push(fn || function () {});
|
||||
},
|
||||
dispose: function (fn) {
|
||||
this._disposeCallbacks.push(fn);
|
||||
}
|
||||
};
|
||||
module.bundle.hotData = null;
|
||||
}
|
||||
|
||||
module.bundle.Module = Module;
|
||||
var parent = module.bundle.parent;
|
||||
|
||||
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
|
||||
var hostname = "" || location.hostname;
|
||||
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
|
||||
var ws = new WebSocket(protocol + '://' + hostname + ':' + "61118" + '/');
|
||||
|
||||
ws.onmessage = function (event) {
|
||||
var data = JSON.parse(event.data);
|
||||
|
||||
if (data.type === 'update') {
|
||||
console.clear();
|
||||
data.assets.forEach(function (asset) {
|
||||
hmrApply(global.parcelRequire, asset);
|
||||
});
|
||||
data.assets.forEach(function (asset) {
|
||||
if (!asset.isNew) {
|
||||
hmrAccept(global.parcelRequire, asset.id);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (data.type === 'reload') {
|
||||
ws.close();
|
||||
|
||||
ws.onclose = function () {
|
||||
location.reload();
|
||||
};
|
||||
}
|
||||
|
||||
if (data.type === 'error-resolved') {
|
||||
console.log('[parcel] ✨ Error resolved');
|
||||
removeErrorOverlay();
|
||||
}
|
||||
|
||||
if (data.type === 'error') {
|
||||
console.error('[parcel] 🚨 ' + data.error.message + '\n' + data.error.stack);
|
||||
removeErrorOverlay();
|
||||
var overlay = createErrorOverlay(data);
|
||||
document.body.appendChild(overlay);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function removeErrorOverlay() {
|
||||
var overlay = document.getElementById(OVERLAY_ID);
|
||||
|
||||
if (overlay) {
|
||||
overlay.remove();
|
||||
}
|
||||
}
|
||||
|
||||
function createErrorOverlay(data) {
|
||||
var overlay = document.createElement('div');
|
||||
overlay.id = OVERLAY_ID; // html encode message and stack trace
|
||||
|
||||
var message = document.createElement('div');
|
||||
var stackTrace = document.createElement('pre');
|
||||
message.innerText = data.error.message;
|
||||
stackTrace.innerText = data.error.stack;
|
||||
overlay.innerHTML = '<div style="background: black; font-size: 16px; color: white; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; padding: 30px; opacity: 0.85; font-family: Menlo, Consolas, monospace; z-index: 9999;">' + '<span style="background: red; padding: 2px 4px; border-radius: 2px;">ERROR</span>' + '<span style="top: 2px; margin-left: 5px; position: relative;">🚨</span>' + '<div style="font-size: 18px; font-weight: bold; margin-top: 20px;">' + message.innerHTML + '</div>' + '<pre>' + stackTrace.innerHTML + '</pre>' + '</div>';
|
||||
return overlay;
|
||||
}
|
||||
|
||||
function getParents(bundle, id) {
|
||||
var modules = bundle.modules;
|
||||
|
||||
if (!modules) {
|
||||
return [];
|
||||
}
|
||||
|
||||
var parents = [];
|
||||
var k, d, dep;
|
||||
|
||||
for (k in modules) {
|
||||
for (d in modules[k][1]) {
|
||||
dep = modules[k][1][d];
|
||||
|
||||
if (dep === id || Array.isArray(dep) && dep[dep.length - 1] === id) {
|
||||
parents.push(k);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (bundle.parent) {
|
||||
parents = parents.concat(getParents(bundle.parent, id));
|
||||
}
|
||||
|
||||
return parents;
|
||||
}
|
||||
|
||||
function hmrApply(bundle, asset) {
|
||||
var modules = bundle.modules;
|
||||
|
||||
if (!modules) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (modules[asset.id] || !bundle.parent) {
|
||||
var fn = new Function('require', 'module', 'exports', asset.generated.js);
|
||||
asset.isNew = !modules[asset.id];
|
||||
modules[asset.id] = [fn, asset.deps];
|
||||
} else if (bundle.parent) {
|
||||
hmrApply(bundle.parent, asset);
|
||||
}
|
||||
}
|
||||
|
||||
function hmrAccept(bundle, id) {
|
||||
var modules = bundle.modules;
|
||||
|
||||
if (!modules) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!modules[id] && bundle.parent) {
|
||||
return hmrAccept(bundle.parent, id);
|
||||
}
|
||||
|
||||
var cached = bundle.cache[id];
|
||||
bundle.hotData = {};
|
||||
|
||||
if (cached) {
|
||||
cached.hot.data = bundle.hotData;
|
||||
}
|
||||
|
||||
if (cached && cached.hot && cached.hot._disposeCallbacks.length) {
|
||||
cached.hot._disposeCallbacks.forEach(function (cb) {
|
||||
cb(bundle.hotData);
|
||||
});
|
||||
}
|
||||
|
||||
delete bundle.cache[id];
|
||||
bundle(id);
|
||||
cached = bundle.cache[id];
|
||||
|
||||
if (cached && cached.hot && cached.hot._acceptCallbacks.length) {
|
||||
cached.hot._acceptCallbacks.forEach(function (cb) {
|
||||
cb();
|
||||
});
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return getParents(global.parcelRequire, id).some(function (id) {
|
||||
return hmrAccept(global.parcelRequire, id);
|
||||
});
|
||||
}
|
||||
},{}]},{},["../node_modules/parcel-bundler/src/builtins/hmr-runtime.js","browsertest.ts"], null)
|
||||
//# sourceMappingURL=/browsertest.d8c67eb9.map
|
1
dist/browsertest.d8c67eb9.map
vendored
Normal file
1
dist/browsertest.d8c67eb9.map
vendored
Normal file
File diff suppressed because one or more lines are too long
468
dist/browsertest.ebe08f22.js
vendored
Normal file
468
dist/browsertest.ebe08f22.js
vendored
Normal file
@ -0,0 +1,468 @@
|
||||
// modules are defined as an array
|
||||
// [ module function, map of requires ]
|
||||
//
|
||||
// map of requires is short require name -> numeric require
|
||||
//
|
||||
// anything defined in a previous bundle is accessed via the
|
||||
// orig method which is the require for previous bundles
|
||||
|
||||
// eslint-disable-next-line no-global-assign
|
||||
parcelRequire = (function (modules, cache, entry, globalName) {
|
||||
// Save the require from previous bundle to this closure if any
|
||||
var previousRequire = typeof parcelRequire === 'function' && parcelRequire;
|
||||
var nodeRequire = typeof require === 'function' && require;
|
||||
|
||||
function newRequire(name, jumped) {
|
||||
if (!cache[name]) {
|
||||
if (!modules[name]) {
|
||||
// if we cannot find the module within our internal map or
|
||||
// cache jump to the current global require ie. the last bundle
|
||||
// that was added to the page.
|
||||
var currentRequire = typeof parcelRequire === 'function' && parcelRequire;
|
||||
if (!jumped && currentRequire) {
|
||||
return currentRequire(name, true);
|
||||
}
|
||||
|
||||
// If there are other bundles on this page the require from the
|
||||
// previous one is saved to 'previousRequire'. Repeat this as
|
||||
// many times as there are bundles until the module is found or
|
||||
// we exhaust the require chain.
|
||||
if (previousRequire) {
|
||||
return previousRequire(name, true);
|
||||
}
|
||||
|
||||
// Try the node require function if it exists.
|
||||
if (nodeRequire && typeof name === 'string') {
|
||||
return nodeRequire(name);
|
||||
}
|
||||
|
||||
var err = new Error('Cannot find module \'' + name + '\'');
|
||||
err.code = 'MODULE_NOT_FOUND';
|
||||
throw err;
|
||||
}
|
||||
|
||||
localRequire.resolve = resolve;
|
||||
localRequire.cache = {};
|
||||
|
||||
var module = cache[name] = new newRequire.Module(name);
|
||||
|
||||
modules[name][0].call(module.exports, localRequire, module, module.exports, this);
|
||||
}
|
||||
|
||||
return cache[name].exports;
|
||||
|
||||
function localRequire(x){
|
||||
return newRequire(localRequire.resolve(x));
|
||||
}
|
||||
|
||||
function resolve(x){
|
||||
return modules[name][1][x] || x;
|
||||
}
|
||||
}
|
||||
|
||||
function Module(moduleName) {
|
||||
this.id = moduleName;
|
||||
this.bundle = newRequire;
|
||||
this.exports = {};
|
||||
}
|
||||
|
||||
newRequire.isParcelRequire = true;
|
||||
newRequire.Module = Module;
|
||||
newRequire.modules = modules;
|
||||
newRequire.cache = cache;
|
||||
newRequire.parent = previousRequire;
|
||||
newRequire.register = function (id, exports) {
|
||||
modules[id] = [function (require, module) {
|
||||
module.exports = exports;
|
||||
}, {}];
|
||||
};
|
||||
|
||||
for (var i = 0; i < entry.length; i++) {
|
||||
newRequire(entry[i]);
|
||||
}
|
||||
|
||||
if (entry.length) {
|
||||
// Expose entry point to Node, AMD or browser globals
|
||||
// Based on https://github.com/ForbesLindesay/umd/blob/master/template.js
|
||||
var mainExports = newRequire(entry[entry.length - 1]);
|
||||
|
||||
// CommonJS
|
||||
if (typeof exports === "object" && typeof module !== "undefined") {
|
||||
module.exports = mainExports;
|
||||
|
||||
// RequireJS
|
||||
} else if (typeof define === "function" && define.amd) {
|
||||
define(function () {
|
||||
return mainExports;
|
||||
});
|
||||
|
||||
// <script>
|
||||
} else if (globalName) {
|
||||
this[globalName] = mainExports;
|
||||
}
|
||||
}
|
||||
|
||||
// Override the current require with this new one
|
||||
return newRequire;
|
||||
})({"node_modules/@pushrocks/smartlog/dist/smartlog.classes.logrouter.js":[function(require,module,exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class LogRouter {
|
||||
constructor() {
|
||||
/**
|
||||
* all log destinations
|
||||
*/
|
||||
this.logDestinations = [];
|
||||
}
|
||||
addLogDestination(logDestination) {
|
||||
this.logDestinations.push(logDestination);
|
||||
}
|
||||
// routes the log according to added logDestinations
|
||||
routeLog(logPackageArg) {
|
||||
for (const logDestination of this.logDestinations) {
|
||||
logDestination.handleLog(logPackageArg);
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.LogRouter = LogRouter;
|
||||
|
||||
},{}],"node_modules/@pushrocks/smartlog/dist/smartlog.classes.smartlog.js":[function(require,module,exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const smartlog_classes_logrouter_1 = require("./smartlog.classes.logrouter");
|
||||
class Smartlog {
|
||||
constructor(optionsArg) {
|
||||
this.logRouter = new smartlog_classes_logrouter_1.LogRouter();
|
||||
this.logContext = optionsArg.logContext;
|
||||
this.minimumLogLevel = optionsArg.minimumLogLevel;
|
||||
}
|
||||
addLogDestination(logDestinationArg) {
|
||||
this.logRouter.addLogDestination(logDestinationArg);
|
||||
}
|
||||
// ============
|
||||
// Logger Setup
|
||||
// ============
|
||||
/**
|
||||
* enables console logging
|
||||
*/
|
||||
enableConsole() {
|
||||
this.consoleEnabled = true;
|
||||
}
|
||||
// =============
|
||||
// log functions
|
||||
// =============
|
||||
/**
|
||||
* main log method
|
||||
* @param logLevelArg - the log level
|
||||
* @param logMessageArg - the log message
|
||||
* @param logDataArg - any additional log data
|
||||
*/
|
||||
log(logLevelArg, logMessageArg, logDataArg) {
|
||||
if (this.consoleEnabled) {
|
||||
console.log(`LOG: ${logLevelArg}: ${logMessageArg}`);
|
||||
}
|
||||
const logPackage = {
|
||||
timestamp: Date.now(),
|
||||
type: 'log',
|
||||
context: this.logContext,
|
||||
level: logLevelArg,
|
||||
message: logMessageArg
|
||||
};
|
||||
if (logDataArg) {
|
||||
logPackage.data = logDataArg;
|
||||
}
|
||||
this.logRouter.routeLog(logPackage);
|
||||
}
|
||||
increment(logLevelArg, logMessageArg) {
|
||||
if (this.consoleEnabled) {
|
||||
console.log(`INCREMENT: ${logLevelArg}: ${logMessageArg}`);
|
||||
}
|
||||
this.logRouter.routeLog({
|
||||
timestamp: Date.now(),
|
||||
type: 'increment',
|
||||
context: this.logContext,
|
||||
level: logLevelArg,
|
||||
message: logMessageArg
|
||||
});
|
||||
}
|
||||
handleLogPackage(logPackageArg) {
|
||||
this.logRouter.routeLog(logPackageArg);
|
||||
}
|
||||
}
|
||||
exports.Smartlog = Smartlog;
|
||||
|
||||
},{"./smartlog.classes.logrouter":"node_modules/@pushrocks/smartlog/dist/smartlog.classes.logrouter.js"}],"node_modules/@pushrocks/smartlog/dist/index.js":[function(require,module,exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const smartlog_classes_smartlog_1 = require("./smartlog.classes.smartlog");
|
||||
exports.Smartlog = smartlog_classes_smartlog_1.Smartlog;
|
||||
const defaultLogger = new smartlog_classes_smartlog_1.Smartlog({
|
||||
logContext: {
|
||||
company: 'undefined',
|
||||
companyunit: 'undefefined',
|
||||
containerName: 'undefined',
|
||||
environment: 'local',
|
||||
runtime: 'node',
|
||||
zone: 'undefined'
|
||||
}
|
||||
});
|
||||
exports.defaultLogger = defaultLogger;
|
||||
|
||||
},{"./smartlog.classes.smartlog":"node_modules/@pushrocks/smartlog/dist/smartlog.classes.smartlog.js"}],"ts/index.ts":[function(require,module,exports) {
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var SmartlogDestinationDevtools =
|
||||
/** @class */
|
||||
function () {
|
||||
function SmartlogDestinationDevtools() {}
|
||||
|
||||
SmartlogDestinationDevtools.prototype.handleLog = function (logPackageArg) {
|
||||
this.logInBrowser(logPackageArg);
|
||||
};
|
||||
|
||||
SmartlogDestinationDevtools.prototype.logInBrowser = function (logPackage) {
|
||||
switch (logPackage.level) {
|
||||
case 'error':
|
||||
console.log("%c Error: %c " + logPackage.message, 'background:#000000;color:#800000;', 'color:#000000;');
|
||||
break;
|
||||
|
||||
case 'info':
|
||||
console.log("%c Info: %c " + logPackage.message, 'background:#EC407A;color:#ffffff;', 'color:#EC407A;');
|
||||
break;
|
||||
|
||||
case 'ok':
|
||||
console.log("%c OK: %c " + logPackage.message, 'background:#000000;color:#8BC34A;', 'color:#000000;');
|
||||
break;
|
||||
|
||||
case 'success':
|
||||
console.log("%c Success: %c " + logPackage.message, 'background:#8BC34A;color:#ffffff;', 'color:#8BC34A;');
|
||||
break;
|
||||
|
||||
case 'warn':
|
||||
console.log("%c Warn: %c " + logPackage.message, 'background:#000000;color:#FB8C00;', 'color:#000000;');
|
||||
break;
|
||||
|
||||
case 'note':
|
||||
console.log("%c Note: %c " + logPackage.message, 'background:#42A5F5;color:#ffffff', 'color:#42A5F5;');
|
||||
break;
|
||||
|
||||
default:
|
||||
console.log("unknown logType for \"" + logPackage.message + "\"");
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
return SmartlogDestinationDevtools;
|
||||
}();
|
||||
|
||||
exports.SmartlogDestinationDevtools = SmartlogDestinationDevtools;
|
||||
},{}],"test/browsertest.ts":[function(require,module,exports) {
|
||||
"use strict";
|
||||
|
||||
var __importStar = this && this.__importStar || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) {
|
||||
if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
||||
}
|
||||
result["default"] = mod;
|
||||
return result;
|
||||
};
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var smartlog = __importStar(require("@pushrocks/smartlog"));
|
||||
|
||||
var logger = smartlog.defaultLogger;
|
||||
var logContext = {
|
||||
company: 'Lossless GmbH',
|
||||
companyunit: 'Lossless.Cloud',
|
||||
containerName: 'testContainer',
|
||||
environment: 'staging',
|
||||
runtime: 'chrome',
|
||||
zone: 'servezone'
|
||||
}; // import the module to test
|
||||
|
||||
var smartlogDestinationDevtools = __importStar(require("../ts/index"));
|
||||
|
||||
var testDestination = new smartlogDestinationDevtools.SmartlogDestinationDevtools();
|
||||
testDestination.handleLog({
|
||||
timestamp: Date.now(),
|
||||
type: 'log',
|
||||
context: logContext,
|
||||
level: 'info',
|
||||
message: 'wait, what? Hi, this is a message!'
|
||||
});
|
||||
},{"@pushrocks/smartlog":"node_modules/@pushrocks/smartlog/dist/index.js","../ts/index":"ts/index.ts"}],"../../../.nvm/versions/node/v10.13.0/lib/node_modules/parcel-bundler/src/builtins/hmr-runtime.js":[function(require,module,exports) {
|
||||
var global = arguments[3];
|
||||
var OVERLAY_ID = '__parcel__error__overlay__';
|
||||
var OldModule = module.bundle.Module;
|
||||
|
||||
function Module(moduleName) {
|
||||
OldModule.call(this, moduleName);
|
||||
this.hot = {
|
||||
data: module.bundle.hotData,
|
||||
_acceptCallbacks: [],
|
||||
_disposeCallbacks: [],
|
||||
accept: function (fn) {
|
||||
this._acceptCallbacks.push(fn || function () {});
|
||||
},
|
||||
dispose: function (fn) {
|
||||
this._disposeCallbacks.push(fn);
|
||||
}
|
||||
};
|
||||
module.bundle.hotData = null;
|
||||
}
|
||||
|
||||
module.bundle.Module = Module;
|
||||
var parent = module.bundle.parent;
|
||||
|
||||
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
|
||||
var hostname = "" || location.hostname;
|
||||
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
|
||||
var ws = new WebSocket(protocol + '://' + hostname + ':' + "57186" + '/');
|
||||
|
||||
ws.onmessage = function (event) {
|
||||
var data = JSON.parse(event.data);
|
||||
|
||||
if (data.type === 'update') {
|
||||
console.clear();
|
||||
data.assets.forEach(function (asset) {
|
||||
hmrApply(global.parcelRequire, asset);
|
||||
});
|
||||
data.assets.forEach(function (asset) {
|
||||
if (!asset.isNew) {
|
||||
hmrAccept(global.parcelRequire, asset.id);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (data.type === 'reload') {
|
||||
ws.close();
|
||||
|
||||
ws.onclose = function () {
|
||||
location.reload();
|
||||
};
|
||||
}
|
||||
|
||||
if (data.type === 'error-resolved') {
|
||||
console.log('[parcel] ✨ Error resolved');
|
||||
removeErrorOverlay();
|
||||
}
|
||||
|
||||
if (data.type === 'error') {
|
||||
console.error('[parcel] 🚨 ' + data.error.message + '\n' + data.error.stack);
|
||||
removeErrorOverlay();
|
||||
var overlay = createErrorOverlay(data);
|
||||
document.body.appendChild(overlay);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function removeErrorOverlay() {
|
||||
var overlay = document.getElementById(OVERLAY_ID);
|
||||
|
||||
if (overlay) {
|
||||
overlay.remove();
|
||||
}
|
||||
}
|
||||
|
||||
function createErrorOverlay(data) {
|
||||
var overlay = document.createElement('div');
|
||||
overlay.id = OVERLAY_ID; // html encode message and stack trace
|
||||
|
||||
var message = document.createElement('div');
|
||||
var stackTrace = document.createElement('pre');
|
||||
message.innerText = data.error.message;
|
||||
stackTrace.innerText = data.error.stack;
|
||||
overlay.innerHTML = '<div style="background: black; font-size: 16px; color: white; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; padding: 30px; opacity: 0.85; font-family: Menlo, Consolas, monospace; z-index: 9999;">' + '<span style="background: red; padding: 2px 4px; border-radius: 2px;">ERROR</span>' + '<span style="top: 2px; margin-left: 5px; position: relative;">🚨</span>' + '<div style="font-size: 18px; font-weight: bold; margin-top: 20px;">' + message.innerHTML + '</div>' + '<pre>' + stackTrace.innerHTML + '</pre>' + '</div>';
|
||||
return overlay;
|
||||
}
|
||||
|
||||
function getParents(bundle, id) {
|
||||
var modules = bundle.modules;
|
||||
|
||||
if (!modules) {
|
||||
return [];
|
||||
}
|
||||
|
||||
var parents = [];
|
||||
var k, d, dep;
|
||||
|
||||
for (k in modules) {
|
||||
for (d in modules[k][1]) {
|
||||
dep = modules[k][1][d];
|
||||
|
||||
if (dep === id || Array.isArray(dep) && dep[dep.length - 1] === id) {
|
||||
parents.push(k);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (bundle.parent) {
|
||||
parents = parents.concat(getParents(bundle.parent, id));
|
||||
}
|
||||
|
||||
return parents;
|
||||
}
|
||||
|
||||
function hmrApply(bundle, asset) {
|
||||
var modules = bundle.modules;
|
||||
|
||||
if (!modules) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (modules[asset.id] || !bundle.parent) {
|
||||
var fn = new Function('require', 'module', 'exports', asset.generated.js);
|
||||
asset.isNew = !modules[asset.id];
|
||||
modules[asset.id] = [fn, asset.deps];
|
||||
} else if (bundle.parent) {
|
||||
hmrApply(bundle.parent, asset);
|
||||
}
|
||||
}
|
||||
|
||||
function hmrAccept(bundle, id) {
|
||||
var modules = bundle.modules;
|
||||
|
||||
if (!modules) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!modules[id] && bundle.parent) {
|
||||
return hmrAccept(bundle.parent, id);
|
||||
}
|
||||
|
||||
var cached = bundle.cache[id];
|
||||
bundle.hotData = {};
|
||||
|
||||
if (cached) {
|
||||
cached.hot.data = bundle.hotData;
|
||||
}
|
||||
|
||||
if (cached && cached.hot && cached.hot._disposeCallbacks.length) {
|
||||
cached.hot._disposeCallbacks.forEach(function (cb) {
|
||||
cb(bundle.hotData);
|
||||
});
|
||||
}
|
||||
|
||||
delete bundle.cache[id];
|
||||
bundle(id);
|
||||
cached = bundle.cache[id];
|
||||
|
||||
if (cached && cached.hot && cached.hot._acceptCallbacks.length) {
|
||||
cached.hot._acceptCallbacks.forEach(function (cb) {
|
||||
cb();
|
||||
});
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return getParents(global.parcelRequire, id).some(function (id) {
|
||||
return hmrAccept(global.parcelRequire, id);
|
||||
});
|
||||
}
|
||||
},{}]},{},["../../../.nvm/versions/node/v10.13.0/lib/node_modules/parcel-bundler/src/builtins/hmr-runtime.js","test/browsertest.ts"], null)
|
||||
//# sourceMappingURL=/browsertest.ebe08f22.map
|
1
dist/browsertest.ebe08f22.map
vendored
Normal file
1
dist/browsertest.ebe08f22.map
vendored
Normal file
File diff suppressed because one or more lines are too long
13
dist/index.d.ts
vendored
13
dist/index.d.ts
vendored
@ -1,13 +0,0 @@
|
||||
import { ILogDestination, ILogPackage } from 'smartlog-interfaces';
|
||||
export interface IBeautyLogObject {
|
||||
logType: string;
|
||||
logString: string;
|
||||
}
|
||||
export declare class BeautyBrowser implements ILogDestination {
|
||||
handleLog(logPackage: ILogPackage): void;
|
||||
/**
|
||||
* parse logs for display
|
||||
*/
|
||||
private parseLog;
|
||||
private logInBrowser(beautyLogObjectArg);
|
||||
}
|
4
dist/index.html
vendored
Normal file
4
dist/index.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<head>
|
||||
<script src="/browsertest.d8c67eb9.js"></script>
|
||||
</head>
|
||||
<body></body>
|
56
dist/index.js
vendored
56
dist/index.js
vendored
@ -1,56 +0,0 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class BeautyBrowser {
|
||||
constructor() {
|
||||
/**
|
||||
* parse logs for display
|
||||
*/
|
||||
this.parseLog = (stringToParseArg) => {
|
||||
const parseLogRegex = /^(success|ok|info|warn|error):\s(.*)/;
|
||||
const regexResult = parseLogRegex.exec(stringToParseArg);
|
||||
if (regexResult && regexResult.length === 3) {
|
||||
return {
|
||||
logType: regexResult[1],
|
||||
logString: regexResult[2]
|
||||
};
|
||||
}
|
||||
else {
|
||||
return {
|
||||
logType: 'log',
|
||||
logString: stringToParseArg
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
handleLog(logPackage) {
|
||||
this.logInBrowser(this.parseLog(logPackage.message));
|
||||
}
|
||||
logInBrowser(beautyLogObjectArg) {
|
||||
const { logType, logString } = beautyLogObjectArg;
|
||||
switch (logType) {
|
||||
case 'error':
|
||||
console.log('%c Error: %c ' + logString, 'background:#000000;color:#800000;', 'color:#000000;');
|
||||
break;
|
||||
case 'info':
|
||||
console.log('%c Info: %c ' + logString, 'background:#EC407A;color:#ffffff;', 'color:#EC407A;');
|
||||
break;
|
||||
case 'ok':
|
||||
console.log('%c OK: %c ' + logString, 'background:#000000;color:#8BC34A;', 'color:#000000;');
|
||||
break;
|
||||
case 'success':
|
||||
console.log('%c Success: %c ' + logString, 'background:#8BC34A;color:#ffffff;', 'color:#8BC34A;');
|
||||
break;
|
||||
case 'warn':
|
||||
console.log('%c Warn: %c ' + logString, 'background:#000000;color:#FB8C00;', 'color:#000000;');
|
||||
break;
|
||||
case 'log':
|
||||
console.log('%c Log: %c ' + logString, 'background:#42A5F5;color:#ffffff', 'color:#42A5F5;');
|
||||
break;
|
||||
default:
|
||||
console.log('unknown logType for "' + logString + '"');
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.BeautyBrowser = BeautyBrowser;
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQVFBO0lBQUE7UUFLRTs7V0FFRztRQUNLLGFBQVEsR0FBRyxDQUFDLGdCQUF3QixFQUFvQixFQUFFO1lBQ2hFLE1BQU0sYUFBYSxHQUFHLHNDQUFzQyxDQUFDO1lBQzdELE1BQU0sV0FBVyxHQUFHLGFBQWEsQ0FBQyxJQUFJLENBQUMsZ0JBQWdCLENBQUMsQ0FBQztZQUN6RCxFQUFFLENBQUEsQ0FBQyxXQUFXLElBQUksV0FBVyxDQUFDLE1BQU0sS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDO2dCQUMzQyxNQUFNLENBQUM7b0JBQ0wsT0FBTyxFQUFFLFdBQVcsQ0FBQyxDQUFDLENBQUM7b0JBQ3ZCLFNBQVMsRUFBRSxXQUFXLENBQUMsQ0FBQyxDQUFDO2lCQUMxQixDQUFBO1lBQ0gsQ0FBQztZQUFDLElBQUksQ0FBQyxDQUFDO2dCQUNOLE1BQU0sQ0FBQztvQkFDTCxPQUFPLEVBQUUsS0FBSztvQkFDZCxTQUFTLEVBQUUsZ0JBQWdCO2lCQUM1QixDQUFBO1lBQ0gsQ0FBQztRQUNILENBQUMsQ0FBQztJQTRDSixDQUFDO0lBakVDLFNBQVMsQ0FBQyxVQUF1QjtRQUMvQixJQUFJLENBQUMsWUFBWSxDQUFDLElBQUksQ0FBQyxRQUFRLENBQUMsVUFBVSxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUM7SUFDdkQsQ0FBQztJQXFCTyxZQUFZLENBQUMsa0JBQW9DO1FBQ3ZELE1BQU0sRUFBQyxPQUFPLEVBQUUsU0FBUyxFQUFDLEdBQUcsa0JBQWtCLENBQUM7UUFDaEQsTUFBTSxDQUFDLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQztZQUNoQixLQUFLLE9BQU87Z0JBQ1YsT0FBTyxDQUFDLEdBQUcsQ0FDVCxlQUFlLEdBQUcsU0FBUyxFQUMzQixtQ0FBbUMsRUFDbkMsZ0JBQWdCLENBQ2pCLENBQUM7Z0JBQ0YsS0FBSyxDQUFDO1lBQ1IsS0FBSyxNQUFNO2dCQUNULE9BQU8sQ0FBQyxHQUFHLENBQ1QsY0FBYyxHQUFHLFNBQVMsRUFDMUIsbUNBQW1DLEVBQ25DLGdCQUFnQixDQUNqQixDQUFDO2dCQUNGLEtBQUssQ0FBQztZQUNSLEtBQUssSUFBSTtnQkFDUCxPQUFPLENBQUMsR0FBRyxDQUFDLFlBQVksR0FBRyxTQUFTLEVBQUUsbUNBQW1DLEVBQUUsZ0JBQWdCLENBQUMsQ0FBQztnQkFDN0YsS0FBSyxDQUFDO1lBQ1IsS0FBSyxTQUFTO2dCQUNaLE9BQU8sQ0FBQyxHQUFHLENBQ1QsaUJBQWlCLEdBQUcsU0FBUyxFQUM3QixtQ0FBbUMsRUFDbkMsZ0JBQWdCLENBQ2pCLENBQUM7Z0JBQ0YsS0FBSyxDQUFDO1lBQ1IsS0FBSyxNQUFNO2dCQUNULE9BQU8sQ0FBQyxHQUFHLENBQ1QsY0FBYyxHQUFHLFNBQVMsRUFDMUIsbUNBQW1DLEVBQ25DLGdCQUFnQixDQUNqQixDQUFDO2dCQUNGLEtBQUssQ0FBQztZQUNSLEtBQUssS0FBSztnQkFDUixPQUFPLENBQUMsR0FBRyxDQUFDLGFBQWEsR0FBRyxTQUFTLEVBQUUsa0NBQWtDLEVBQUUsZ0JBQWdCLENBQUMsQ0FBQztnQkFDN0YsS0FBSyxDQUFDO1lBQ1I7Z0JBQ0UsT0FBTyxDQUFDLEdBQUcsQ0FBQyx1QkFBdUIsR0FBRyxTQUFTLEdBQUcsR0FBRyxDQUFDLENBQUM7Z0JBQ3ZELEtBQUssQ0FBQztRQUNWLENBQUM7SUFDSCxDQUFDO0NBQ0Y7QUFsRUQsc0NBa0VDIn0=
|
14616
dist/test.e222d9ca.js
vendored
Normal file
14616
dist/test.e222d9ca.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
dist/test.e222d9ca.map
vendored
Normal file
1
dist/test.e222d9ca.map
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -1,7 +1,6 @@
|
||||
{
|
||||
"npmci": {
|
||||
"npmGlobalTools": [
|
||||
"npmts"
|
||||
]
|
||||
"npmGlobalTools": [],
|
||||
"npmAccessLevel": "public"
|
||||
}
|
||||
}
|
||||
|
7578
package-lock.json
generated
Normal file
7578
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
18
package.json
18
package.json
@ -1,20 +1,28 @@
|
||||
{
|
||||
"name": "beautybrowser",
|
||||
"version": "1.0.3",
|
||||
"private": false,
|
||||
"description": "beautiful logging for the browser",
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
"author": "Lossless GmbH",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"test": "(npmts)",
|
||||
"format": "(gitzone format)"
|
||||
"test": "(tstest test/)",
|
||||
"testBrowser": "(parcel ./test/index.html)",
|
||||
"build": "(tsbuild)"
|
||||
},
|
||||
"devDependencies": {
|
||||
"smartlog": "^1.0.3",
|
||||
"tapbundle": "^2.0.0"
|
||||
"@gitzone/tsbuild": "^2.0.22",
|
||||
"@gitzone/tstest": "^1.0.15",
|
||||
"@pushrocks/smartlog": "^2.0.9",
|
||||
"@pushrocks/tapbundle": "^3.0.7",
|
||||
"@types/node": "^10.12.5",
|
||||
"tslint": "^5.11.0",
|
||||
"tslint-config-prettier": "^1.15.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"smartlog-interfaces": "^1.0.8"
|
||||
"@pushrocks/smartlog-interfaces": "^2.0.3",
|
||||
"parcel-bundler": "^1.10.3"
|
||||
}
|
||||
}
|
||||
|
26
test/browsertest.ts
Normal file
26
test/browsertest.ts
Normal file
@ -0,0 +1,26 @@
|
||||
// preparation
|
||||
import { ILogContext } from '@pushrocks/smartlog-interfaces';
|
||||
import * as smartlog from '@pushrocks/smartlog';
|
||||
|
||||
const logger = smartlog.defaultLogger;
|
||||
const logContext: ILogContext = {
|
||||
company: 'Lossless GmbH',
|
||||
companyunit: 'Lossless.Cloud',
|
||||
containerName: 'testContainer',
|
||||
environment: 'staging',
|
||||
runtime: 'chrome',
|
||||
zone: 'servezone'
|
||||
};
|
||||
|
||||
// import the module to test
|
||||
import * as smartlogDestinationDevtools from '../ts/index';
|
||||
|
||||
const testDestination = new smartlogDestinationDevtools.SmartlogDestinationDevtools();
|
||||
|
||||
testDestination.handleLog({
|
||||
timestamp: Date.now(),
|
||||
type: 'log',
|
||||
context: logContext,
|
||||
level: 'info',
|
||||
message: 'wait, what? Hi, this is a message!'
|
||||
});
|
4
test/index.html
Normal file
4
test/index.html
Normal file
@ -0,0 +1,4 @@
|
||||
<head>
|
||||
<script src="./browsertest.ts"></script>
|
||||
</head>
|
||||
<body></body>
|
60
test/test.ts
60
test/test.ts
@ -1,58 +1,46 @@
|
||||
import { expect, tap } from 'tapbundle';
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
|
||||
// preparation
|
||||
import { ILogContext } from 'smartlog-interfaces';
|
||||
import * as smartlog from 'smartlog'
|
||||
import { ILogContext } from '@pushrocks/smartlog-interfaces';
|
||||
import * as smartlog from '@pushrocks/smartlog';
|
||||
|
||||
const logger = smartlog.getDefaultLogger();
|
||||
const logger = smartlog.defaultLogger;
|
||||
const logContext: ILogContext = {
|
||||
company: 'Lossless GmbH',
|
||||
companyunit: 'Lossless.Cloud',
|
||||
containerName: 'testContainer',
|
||||
environment: 'staging',
|
||||
runtime: 'browser',
|
||||
zone: 'serve.zone'
|
||||
}
|
||||
runtime: 'chrome',
|
||||
zone: 'servezone'
|
||||
};
|
||||
|
||||
// import the module to test
|
||||
import * as beautybrowser from '../ts/index';
|
||||
import * as smartlogDestinationDevtools from '../ts/index';
|
||||
|
||||
let testBeautyBrowser: beautybrowser.BeautyBrowser;
|
||||
let testDestination: smartlogDestinationDevtools.SmartlogDestinationDevtools;
|
||||
|
||||
tap.test('first test', async () => {
|
||||
testBeautyBrowser = new beautybrowser.BeautyBrowser()
|
||||
testDestination = new smartlogDestinationDevtools.SmartlogDestinationDevtools();
|
||||
});
|
||||
|
||||
tap.test('should log a normal message', async () => {
|
||||
testBeautyBrowser.handleLog({
|
||||
logContext: logContext,
|
||||
logLevel: 'info',
|
||||
testDestination.handleLog({
|
||||
timestamp: Date.now(),
|
||||
type: 'log',
|
||||
context: logContext,
|
||||
level: 'info',
|
||||
message: 'wait, what? Hi, this is a message!'
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
|
||||
tap.test('should log a success message', async () => {
|
||||
testBeautyBrowser.handleLog({
|
||||
logContext: logContext,
|
||||
logLevel: 'info',
|
||||
testDestination.handleLog({
|
||||
timestamp: Date.now(),
|
||||
context: logContext,
|
||||
type: 'log',
|
||||
level: 'info',
|
||||
message: 'success: Hi, this is a message!'
|
||||
})
|
||||
})
|
||||
|
||||
tap.test('should log a ok message', async () => {
|
||||
testBeautyBrowser.handleLog({
|
||||
logContext: logContext,
|
||||
logLevel: 'info',
|
||||
message: 'ok: Hi, this is a message!'
|
||||
})
|
||||
})
|
||||
|
||||
tap.test('should log a error message', async () => {
|
||||
testBeautyBrowser.handleLog({
|
||||
logContext: logContext,
|
||||
logLevel: 'info',
|
||||
message: 'error: Hi, this is a message!'
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
|
||||
tap.start();
|
||||
|
62
ts/index.ts
62
ts/index.ts
@ -1,74 +1,58 @@
|
||||
import * as plugins from './beautybrowser.plugins';
|
||||
import { ILogDestination, ILogPackage } from 'smartlog-interfaces';
|
||||
import { ILogDestination, ILogPackage } from '@pushrocks/smartlog-interfaces';
|
||||
|
||||
export interface IBeautyLogObject {
|
||||
logType: string;
|
||||
logString: string;
|
||||
|
||||
export class SmartlogDestinationDevtools implements ILogDestination {
|
||||
public handleLog(logPackageArg: ILogPackage) {
|
||||
this.logInBrowser(logPackageArg);
|
||||
}
|
||||
|
||||
export class BeautyBrowser implements ILogDestination {
|
||||
handleLog(logPackage: ILogPackage) {
|
||||
this.logInBrowser(this.parseLog(logPackage.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* parse logs for display
|
||||
*/
|
||||
private parseLog = (stringToParseArg: string): IBeautyLogObject => {
|
||||
const parseLogRegex = /^(success|ok|info|warn|error):\s(.*)/;
|
||||
const regexResult = parseLogRegex.exec(stringToParseArg);
|
||||
if(regexResult && regexResult.length === 3) {
|
||||
return {
|
||||
logType: regexResult[1],
|
||||
logString: regexResult[2]
|
||||
}
|
||||
} else {
|
||||
return {
|
||||
logType: 'log',
|
||||
logString: stringToParseArg
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
private logInBrowser(beautyLogObjectArg: IBeautyLogObject) {
|
||||
const {logType, logString} = beautyLogObjectArg;
|
||||
switch (logType) {
|
||||
private logInBrowser(logPackage: ILogPackage) {
|
||||
switch (logPackage.level) {
|
||||
case 'error':
|
||||
console.log(
|
||||
'%c Error: %c ' + logString,
|
||||
`%c Error: %c ${logPackage.message}`,
|
||||
'background:#000000;color:#800000;',
|
||||
'color:#000000;'
|
||||
);
|
||||
break;
|
||||
case 'info':
|
||||
console.log(
|
||||
'%c Info: %c ' + logString,
|
||||
`%c Info: %c ${logPackage.message}`,
|
||||
'background:#EC407A;color:#ffffff;',
|
||||
'color:#EC407A;'
|
||||
);
|
||||
break;
|
||||
case 'ok':
|
||||
console.log('%c OK: %c ' + logString, 'background:#000000;color:#8BC34A;', 'color:#000000;');
|
||||
console.log(
|
||||
`%c OK: %c ${logPackage.message}`,
|
||||
'background:#000000;color:#8BC34A;',
|
||||
'color:#000000;'
|
||||
);
|
||||
break;
|
||||
case 'success':
|
||||
console.log(
|
||||
'%c Success: %c ' + logString,
|
||||
`%c Success: %c ${logPackage.message}`,
|
||||
'background:#8BC34A;color:#ffffff;',
|
||||
'color:#8BC34A;'
|
||||
);
|
||||
break;
|
||||
case 'warn':
|
||||
console.log(
|
||||
'%c Warn: %c ' + logString,
|
||||
`%c Warn: %c ${logPackage.message}`,
|
||||
'background:#000000;color:#FB8C00;',
|
||||
'color:#000000;'
|
||||
);
|
||||
break;
|
||||
case 'log':
|
||||
console.log('%c Log: %c ' + logString, 'background:#42A5F5;color:#ffffff', 'color:#42A5F5;');
|
||||
case 'note':
|
||||
console.log(
|
||||
`%c Note: %c ${logPackage.message}`,
|
||||
'background:#42A5F5;color:#ffffff',
|
||||
'color:#42A5F5;'
|
||||
);
|
||||
break;
|
||||
default:
|
||||
console.log('unknown logType for "' + logString + '"');
|
||||
console.log(`unknown logType for "${logPackage.message}"`);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
16
tslint.json
16
tslint.json
@ -1,3 +1,17 @@
|
||||
{
|
||||
"extends": "tslint-config-standard"
|
||||
"extends": ["tslint:latest", "tslint-config-prettier"],
|
||||
"rules": {
|
||||
"semicolon": [true, "always"],
|
||||
"no-console": false,
|
||||
"ordered-imports": false,
|
||||
"object-literal-sort-keys": false,
|
||||
"member-ordering": {
|
||||
"options":{
|
||||
"order": [
|
||||
"static-method"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"defaultSeverity": "warning"
|
||||
}
|
||||
|
362
yarn.lock
362
yarn.lock
@ -1,362 +0,0 @@
|
||||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
"@types/chai-as-promised@^7.1.0":
|
||||
version "7.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@types/chai-as-promised/-/chai-as-promised-7.1.0.tgz#010b04cde78eacfb6e72bfddb3e58fe23c2e78b9"
|
||||
dependencies:
|
||||
"@types/chai" "*"
|
||||
|
||||
"@types/chai-string@^1.4.0":
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/@types/chai-string/-/chai-string-1.4.0.tgz#c8b78deb9ae53e86c05a446c256138faeaff53c1"
|
||||
dependencies:
|
||||
"@types/chai" "*"
|
||||
|
||||
"@types/chai@*", "@types/chai@^4.1.2":
|
||||
version "4.1.2"
|
||||
resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.1.2.tgz#f1af664769cfb50af805431c407425ed619daa21"
|
||||
|
||||
ansi-256-colors@^1.1.0:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/ansi-256-colors/-/ansi-256-colors-1.1.0.tgz#910de50efcc7c09e3d82f2f87abd6b700c18818a"
|
||||
|
||||
assertion-error@^1.0.1:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz#e60b6b0e8f301bd97e5375215bda406c85118c0b"
|
||||
|
||||
async@^1.0.0:
|
||||
version "1.5.2"
|
||||
resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a"
|
||||
|
||||
beautycolor@^1.0.7:
|
||||
version "1.0.11"
|
||||
resolved "https://registry.yarnpkg.com/beautycolor/-/beautycolor-1.0.11.tgz#71c5568d5a7ed5c144d3a54f753ad1b08862aea5"
|
||||
dependencies:
|
||||
ansi-256-colors "^1.1.0"
|
||||
typings-global "^1.0.14"
|
||||
|
||||
bindings@^1.2.1:
|
||||
version "1.3.0"
|
||||
resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.3.0.tgz#b346f6ecf6a95f5a815c5839fc7cdb22502f1ed7"
|
||||
|
||||
chai-as-promised@^7.1.1:
|
||||
version "7.1.1"
|
||||
resolved "https://registry.yarnpkg.com/chai-as-promised/-/chai-as-promised-7.1.1.tgz#08645d825deb8696ee61725dbf590c012eb00ca0"
|
||||
dependencies:
|
||||
check-error "^1.0.2"
|
||||
|
||||
chai-string@^1.4.0:
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/chai-string/-/chai-string-1.4.0.tgz#359140c051d36a4e4b1a5fc6b910152f438a8d49"
|
||||
|
||||
chai@^4.1.2:
|
||||
version "4.1.2"
|
||||
resolved "https://registry.yarnpkg.com/chai/-/chai-4.1.2.tgz#0f64584ba642f0f2ace2806279f4f06ca23ad73c"
|
||||
dependencies:
|
||||
assertion-error "^1.0.1"
|
||||
check-error "^1.0.1"
|
||||
deep-eql "^3.0.0"
|
||||
get-func-name "^2.0.0"
|
||||
pathval "^1.0.0"
|
||||
type-detect "^4.0.0"
|
||||
|
||||
check-error@^1.0.1, check-error@^1.0.2:
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.2.tgz#574d312edd88bb5dd8912e9286dd6c0aed4aac82"
|
||||
|
||||
color-convert@^0.5.0:
|
||||
version "0.5.3"
|
||||
resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-0.5.3.tgz#bdb6c69ce660fadffe0b0007cc447e1b9f7282bd"
|
||||
|
||||
color-name@^1.0.0:
|
||||
version "1.1.3"
|
||||
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25"
|
||||
|
||||
color-string@^0.3.0:
|
||||
version "0.3.0"
|
||||
resolved "https://registry.yarnpkg.com/color-string/-/color-string-0.3.0.tgz#27d46fb67025c5c2fa25993bfbf579e47841b991"
|
||||
dependencies:
|
||||
color-name "^1.0.0"
|
||||
|
||||
color@0.8.x:
|
||||
version "0.8.0"
|
||||
resolved "https://registry.yarnpkg.com/color/-/color-0.8.0.tgz#890c07c3fd4e649537638911cf691e5458b6fca5"
|
||||
dependencies:
|
||||
color-convert "^0.5.0"
|
||||
color-string "^0.3.0"
|
||||
|
||||
colornames@0.0.2:
|
||||
version "0.0.2"
|
||||
resolved "https://registry.yarnpkg.com/colornames/-/colornames-0.0.2.tgz#d811fd6c84f59029499a8ac4436202935b92be31"
|
||||
|
||||
colors@^1.1.2:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63"
|
||||
|
||||
colorspace@1.0.x:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/colorspace/-/colorspace-1.0.1.tgz#c99c796ed31128b9876a52e1ee5ee03a4a719749"
|
||||
dependencies:
|
||||
color "0.8.x"
|
||||
text-hex "0.0.x"
|
||||
|
||||
deep-eql@^3.0.0:
|
||||
version "3.0.1"
|
||||
resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-3.0.1.tgz#dfc9404400ad1c8fe023e7da1df1c147c4b444df"
|
||||
dependencies:
|
||||
type-detect "^4.0.0"
|
||||
|
||||
define-properties@^1.1.2:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.2.tgz#83a73f2fea569898fb737193c8f873caf6d45c94"
|
||||
dependencies:
|
||||
foreach "^2.0.5"
|
||||
object-keys "^1.0.8"
|
||||
|
||||
diagnostics@^1.0.1:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/diagnostics/-/diagnostics-1.1.0.tgz#e1090900b49523e8527be20f081275205f2ae36a"
|
||||
dependencies:
|
||||
colorspace "1.0.x"
|
||||
enabled "1.0.x"
|
||||
kuler "0.0.x"
|
||||
|
||||
early@^2.1.1:
|
||||
version "2.1.1"
|
||||
resolved "https://registry.yarnpkg.com/early/-/early-2.1.1.tgz#841e23254ea5dc54d8afaeee82f5ab65c00ee23c"
|
||||
dependencies:
|
||||
beautycolor "^1.0.7"
|
||||
smartq "^1.1.1"
|
||||
typings-global "^1.0.16"
|
||||
|
||||
enabled@1.0.x:
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/enabled/-/enabled-1.0.2.tgz#965f6513d2c2d1c5f4652b64a2e3396467fc2f93"
|
||||
dependencies:
|
||||
env-variable "0.0.x"
|
||||
|
||||
env-variable@0.0.x:
|
||||
version "0.0.4"
|
||||
resolved "https://registry.yarnpkg.com/env-variable/-/env-variable-0.0.4.tgz#0d6280cf507d84242befe35a512b5ae4be77c54e"
|
||||
|
||||
es-abstract@^1.5.1:
|
||||
version "1.10.0"
|
||||
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.10.0.tgz#1ecb36c197842a00d8ee4c2dfd8646bb97d60864"
|
||||
dependencies:
|
||||
es-to-primitive "^1.1.1"
|
||||
function-bind "^1.1.1"
|
||||
has "^1.0.1"
|
||||
is-callable "^1.1.3"
|
||||
is-regex "^1.0.4"
|
||||
|
||||
es-to-primitive@^1.1.1:
|
||||
version "1.1.1"
|
||||
resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.1.1.tgz#45355248a88979034b6792e19bb81f2b7975dd0d"
|
||||
dependencies:
|
||||
is-callable "^1.1.1"
|
||||
is-date-object "^1.0.1"
|
||||
is-symbol "^1.0.1"
|
||||
|
||||
es6-error@^4.0.2:
|
||||
version "4.1.1"
|
||||
resolved "https://registry.yarnpkg.com/es6-error/-/es6-error-4.1.1.tgz#9e3af407459deed47e9a91f9b885a84eb05c561d"
|
||||
|
||||
fecha@^2.3.2:
|
||||
version "2.3.3"
|
||||
resolved "https://registry.yarnpkg.com/fecha/-/fecha-2.3.3.tgz#948e74157df1a32fd1b12c3a3c3cdcb6ec9d96cd"
|
||||
|
||||
foreach@^2.0.5:
|
||||
version "2.0.5"
|
||||
resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99"
|
||||
|
||||
function-bind@^1.0.2, function-bind@^1.1.1:
|
||||
version "1.1.1"
|
||||
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
|
||||
|
||||
get-func-name@^2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/get-func-name/-/get-func-name-2.0.0.tgz#ead774abee72e20409433a066366023dd6887a41"
|
||||
|
||||
has@^1.0.1:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/has/-/has-1.0.1.tgz#8461733f538b0837c9361e39a9ab9e9704dc2f28"
|
||||
dependencies:
|
||||
function-bind "^1.0.2"
|
||||
|
||||
is-callable@^1.1.1, is-callable@^1.1.3:
|
||||
version "1.1.3"
|
||||
resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.3.tgz#86eb75392805ddc33af71c92a0eedf74ee7604b2"
|
||||
|
||||
is-date-object@^1.0.1:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16"
|
||||
|
||||
is-regex@^1.0.4:
|
||||
version "1.0.4"
|
||||
resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491"
|
||||
dependencies:
|
||||
has "^1.0.1"
|
||||
|
||||
is-symbol@^1.0.1:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.1.tgz#3cc59f00025194b6ab2e38dbae6689256b660572"
|
||||
|
||||
isstream@0.1.x:
|
||||
version "0.1.2"
|
||||
resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
|
||||
|
||||
kuler@0.0.x:
|
||||
version "0.0.0"
|
||||
resolved "https://registry.yarnpkg.com/kuler/-/kuler-0.0.0.tgz#b66bb46b934e550f59d818848e0abba4f7f5553c"
|
||||
dependencies:
|
||||
colornames "0.0.2"
|
||||
|
||||
leakage@^0.3.0:
|
||||
version "0.3.0"
|
||||
resolved "https://registry.yarnpkg.com/leakage/-/leakage-0.3.0.tgz#15d698abdc76bbc6439601f4f3020e77e2d50c39"
|
||||
dependencies:
|
||||
es6-error "^4.0.2"
|
||||
left-pad "^1.1.3"
|
||||
memwatch-next "^0.3.0"
|
||||
minimist "^1.2.0"
|
||||
pretty-bytes "^4.0.2"
|
||||
|
||||
left-pad@^1.1.3:
|
||||
version "1.2.0"
|
||||
resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.2.0.tgz#d30a73c6b8201d8f7d8e7956ba9616087a68e0ee"
|
||||
|
||||
logform@^1.2.1:
|
||||
version "1.2.2"
|
||||
resolved "https://registry.yarnpkg.com/logform/-/logform-1.2.2.tgz#7be8847684de07185029ed09c65b11d06191ef93"
|
||||
dependencies:
|
||||
colors "^1.1.2"
|
||||
fecha "^2.3.2"
|
||||
|
||||
memwatch-next@^0.3.0:
|
||||
version "0.3.0"
|
||||
resolved "https://registry.yarnpkg.com/memwatch-next/-/memwatch-next-0.3.0.tgz#2111050f9a906e0aa2d72a4ec0f0089c78726f8f"
|
||||
dependencies:
|
||||
bindings "^1.2.1"
|
||||
nan "^2.3.2"
|
||||
|
||||
minimist@^1.2.0:
|
||||
version "1.2.0"
|
||||
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
|
||||
|
||||
nan@^2.3.2:
|
||||
version "2.9.2"
|
||||
resolved "https://registry.yarnpkg.com/nan/-/nan-2.9.2.tgz#f564d75f5f8f36a6d9456cca7a6c4fe488ab7866"
|
||||
|
||||
object-keys@^1.0.8:
|
||||
version "1.0.11"
|
||||
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.11.tgz#c54601778ad560f1142ce0e01bcca8b56d13426d"
|
||||
|
||||
object.getownpropertydescriptors@^2.0.3:
|
||||
version "2.0.3"
|
||||
resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz#8758c846f5b407adab0f236e0986f14b051caa16"
|
||||
dependencies:
|
||||
define-properties "^1.1.2"
|
||||
es-abstract "^1.5.1"
|
||||
|
||||
one-time@0.0.4:
|
||||
version "0.0.4"
|
||||
resolved "https://registry.yarnpkg.com/one-time/-/one-time-0.0.4.tgz#f8cdf77884826fe4dff93e3a9cc37b1e4480742e"
|
||||
|
||||
pathval@^1.0.0:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.0.tgz#b942e6d4bde653005ef6b71361def8727d0645e0"
|
||||
|
||||
pretty-bytes@^4.0.2:
|
||||
version "4.0.2"
|
||||
resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-4.0.2.tgz#b2bf82e7350d65c6c33aa95aaa5a4f6327f61cd9"
|
||||
|
||||
smartchai@^2.0.0:
|
||||
version "2.0.1"
|
||||
resolved "https://registry.yarnpkg.com/smartchai/-/smartchai-2.0.1.tgz#d20f17221f0e3c6c3473600b78ddfba0ab0ea762"
|
||||
dependencies:
|
||||
"@types/chai" "^4.1.2"
|
||||
"@types/chai-as-promised" "^7.1.0"
|
||||
"@types/chai-string" "^1.4.0"
|
||||
chai "^4.1.2"
|
||||
chai-as-promised "^7.1.1"
|
||||
chai-string "^1.4.0"
|
||||
|
||||
smartdelay@^1.0.3:
|
||||
version "1.0.4"
|
||||
resolved "https://registry.yarnpkg.com/smartdelay/-/smartdelay-1.0.4.tgz#791c1a4ee6770494064c10b1d2d2b8e6f3105b82"
|
||||
dependencies:
|
||||
smartq "^1.1.1"
|
||||
typings-global "^1.0.16"
|
||||
|
||||
smartlog-interfaces@^1.0.8:
|
||||
version "1.0.8"
|
||||
resolved "https://registry.yarnpkg.com/smartlog-interfaces/-/smartlog-interfaces-1.0.8.tgz#633d889d498c4c13cd525d24adeb6cad6fe1aee1"
|
||||
|
||||
smartlog@^1.0.3:
|
||||
version "1.0.3"
|
||||
resolved "https://registry.yarnpkg.com/smartlog/-/smartlog-1.0.3.tgz#ad30cd6189bf0558b4e31d87599fb019a2249352"
|
||||
dependencies:
|
||||
winston "^3.0.0-rc1"
|
||||
|
||||
smartq@^1.1.1:
|
||||
version "1.1.6"
|
||||
resolved "https://registry.yarnpkg.com/smartq/-/smartq-1.1.6.tgz#0c1ff4336d95e95b4f1fdd8ccd7e2c5a323b8412"
|
||||
dependencies:
|
||||
typings-global "^1.0.19"
|
||||
util.promisify "^1.0.0"
|
||||
|
||||
stack-trace@0.0.x:
|
||||
version "0.0.10"
|
||||
resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.10.tgz#547c70b347e8d32b4e108ea1a2a159e5fdde19c0"
|
||||
|
||||
tapbundle@^2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/tapbundle/-/tapbundle-2.0.0.tgz#79fce68ff185c786fabaf6eb589a4afc7d2714b7"
|
||||
dependencies:
|
||||
early "^2.1.1"
|
||||
leakage "^0.3.0"
|
||||
smartchai "^2.0.0"
|
||||
smartdelay "^1.0.3"
|
||||
smartq "^1.1.1"
|
||||
|
||||
text-hex@0.0.x:
|
||||
version "0.0.0"
|
||||
resolved "https://registry.yarnpkg.com/text-hex/-/text-hex-0.0.0.tgz#578fbc85a6a92636e42dd17b41d0218cce9eb2b3"
|
||||
|
||||
triple-beam@^1.0.1:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/triple-beam/-/triple-beam-1.1.0.tgz#2ac387c8c4bd04bd26c61df891a6079f8592fe10"
|
||||
|
||||
type-detect@^4.0.0:
|
||||
version "4.0.8"
|
||||
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c"
|
||||
|
||||
typings-global@^1.0.14, typings-global@^1.0.16, typings-global@^1.0.19:
|
||||
version "1.0.28"
|
||||
resolved "https://registry.yarnpkg.com/typings-global/-/typings-global-1.0.28.tgz#e28cc965476564cbc00e438739e0aa0735d323d4"
|
||||
|
||||
util.promisify@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.0.tgz#440f7165a459c9a16dc145eb8e72f35687097030"
|
||||
dependencies:
|
||||
define-properties "^1.1.2"
|
||||
object.getownpropertydescriptors "^2.0.3"
|
||||
|
||||
winston-transport@^3.0.1:
|
||||
version "3.0.1"
|
||||
resolved "https://registry.yarnpkg.com/winston-transport/-/winston-transport-3.0.1.tgz#8008b15eef5660c4fb3fa094d58ccbd08528c58d"
|
||||
|
||||
winston@^3.0.0-rc1:
|
||||
version "3.0.0-rc1"
|
||||
resolved "https://registry.yarnpkg.com/winston/-/winston-3.0.0-rc1.tgz#982bc0ad4ef5c53000ca68036d78a3deaa28cac5"
|
||||
dependencies:
|
||||
async "^1.0.0"
|
||||
diagnostics "^1.0.1"
|
||||
isstream "0.1.x"
|
||||
logform "^1.2.1"
|
||||
one-time "0.0.4"
|
||||
stack-trace "0.0.x"
|
||||
triple-beam "^1.0.1"
|
||||
winston-transport "^3.0.1"
|
Loading…
Reference in New Issue
Block a user