@multiplatform.one/logger 7.90.2 → 7.90.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/base.native.js.map +1 -1
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/index.tauri.native.js.map +1 -1
- package/dist/cjs/transport/tauri.native.js.map +1 -1
- package/dist/cjs/transport/types.native.js.map +1 -1
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/esm/base.native.js.map +1 -1
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/index.tauri.native.js.map +1 -1
- package/dist/esm/transport/tauri.native.js.map +1 -1
- package/dist/esm/transport/types.native.js.map +1 -1
- package/dist/esm/types.native.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","base_exports","__export","BaseLogger","defaultLoggerConfig","module","exports","import_loglevel","__toESM","require","import_platform","import_types","_class_call_check","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_create_class","protoProps","staticProps","prototype","_define_property","obj","name","type","level","process","env","NODE_ENV","LogLevel","Debug","Info","BaseLogger2","config","arguments","_this_createTransport","_this","metadata","logger","default","getLogger","setLevel","transport","createTransport","call","trace","_len","args","Array","_key"],"sources":["../../src/base.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,YAAA;AAAAC,QAAA,CAAAD,YAAA;EAAAE,UAAA,EAAAA,CAAA,KAAAA,UAAA;EAAAC,mBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAV,YAAgB,CAAAK,YAAA;AAChB,IAAAM,eAAA,GAAyBC,OAAA,CA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{"version":3,"names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toESM","mod","isNodeMode","__esModule","value","__toCommonJS","base_exports","BaseLogger","defaultLoggerConfig","module","exports","import_loglevel","require","import_platform","import_types","_class_call_check","instance","Constructor","TypeError","_defineProperties","props","i","length","descriptor","configurable","writable","_create_class","protoProps","staticProps","_define_property","obj","type","level","process","env","NODE_ENV","LogLevel","Debug","Info","BaseLogger2","config","arguments","_this_createTransport","_this","metadata","logger","default","getLogger","setLevel","transport","createTransport","trace","_len","args","Array","_key","sendToTransport","Trace","debug","info","warn","Warn","error","Error","log2","send","message","slice","platform","preciseName","timestamp","Date","toISOString","getSubLogger","input","subConfig","getLevel","constructor"],"sources":["base.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar base_exports = {};\n__export(base_exports, {\n BaseLogger: () => BaseLogger,\n defaultLoggerConfig: () => defaultLoggerConfig\n});\nmodule.exports = __toCommonJS(base_exports);\nvar import_loglevel = __toESM(require(\"loglevel\"));\nvar import_platform = require(\"@multiplatform.one/platform\");\nvar import_types = require(\"./types\");\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nvar defaultLoggerConfig = {\n name: \"default\",\n type: \"pretty\",\n level: process.env.NODE_ENV === \"development\" ? import_types.LogLevel.Debug : import_types.LogLevel.Info\n};\nvar BaseLogger = /* @__PURE__ */ (function() {\n \"use strict\";\n function BaseLogger2() {\n var config = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n _class_call_check(this, BaseLogger2);\n var _this_createTransport, _this;\n _define_property(this, \"transport\", void 0);\n _define_property(this, \"metadata\", void 0);\n _define_property(this, \"logger\", void 0);\n _define_property(this, \"name\", void 0);\n var { metadata, name, level } = typeof config === \"string\" ? {\n metadata: void 0,\n name: config,\n level: void 0\n } : config;\n this.metadata = metadata || {};\n this.name = name || \"default\";\n this.logger = name ? import_loglevel.default.getLogger(name) : import_loglevel.default;\n if (level !== void 0) this.logger.setLevel(level);\n this.transport = (_this_createTransport = (_this = this).createTransport) === null || _this_createTransport === void 0 ? void 0 : _this_createTransport.call(_this);\n }\n _create_class(BaseLogger2, [\n {\n key: \"trace\",\n value: function trace() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n this.logger.trace(...args);\n this.sendToTransport(import_types.LogLevel.Trace, args);\n }\n },\n {\n key: \"debug\",\n value: function debug() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n this.logger.debug(...args);\n this.sendToTransport(import_types.LogLevel.Debug, args);\n }\n },\n {\n key: \"info\",\n value: function info() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n this.logger.info(...args);\n this.sendToTransport(import_types.LogLevel.Info, args);\n }\n },\n {\n key: \"warn\",\n value: function warn() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n this.logger.warn(...args);\n this.sendToTransport(import_types.LogLevel.Warn, args);\n }\n },\n {\n key: \"error\",\n value: function error() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n this.logger.error(...args);\n this.sendToTransport(import_types.LogLevel.Error, args);\n }\n },\n {\n key: \"log\",\n value: function log2() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n this.logger.debug(...args);\n this.sendToTransport(import_types.LogLevel.Debug, args);\n }\n },\n {\n key: \"sendToTransport\",\n value: function sendToTransport(level, args) {\n if (this.transport) {\n this.transport.send({\n level,\n message: args[0],\n args: args.slice(1),\n platform: import_platform.platform.preciseName,\n timestamp: (/* @__PURE__ */ new Date()).toISOString()\n });\n }\n }\n },\n {\n key: \"getSubLogger\",\n value: function getSubLogger(input) {\n var subConfig = typeof input === \"string\" ? {\n name: input,\n metadata: this.metadata,\n level: this.logger.getLevel()\n } : {\n ...input,\n metadata: {\n ...this.metadata,\n ...input.metadata\n }\n };\n return new this.constructor(subConfig);\n }\n }\n ]);\n return BaseLogger2;\n})();\n//# sourceMappingURL=base.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,QAAQ,GAAGC,MAAM,CAACC,MAAM;AAC5B,IAAIC,SAAS,GAAGF,MAAM,CAACG,cAAc;AACrC,IAAIC,gBAAgB,GAAGJ,MAAM,CAACK,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGN,MAAM,CAACO,mBAAmB;AAClD,IAAIC,YAAY,GAAGR,MAAM,CAACS,cAAc;AACxC,IAAIC,YAAY,GAAGV,MAAM,CAACW,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBb,SAAS,CAACY,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIlB,iBAAiB,CAACe,IAAI,CAAC,EACrC,IAAI,CAACX,YAAY,CAACe,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,EAC/CpB,SAAS,CAACkB,EAAE,EAAEI,GAAG,EAAE;MAAEP,GAAG,EAAEA,CAAA,KAAMI,IAAI,CAACG,GAAG,CAAC;MAAEN,UAAU,EAAE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AK,EAAE,SAASqE,YAAYA,CAACC,KAAK,EAAE;MAClC,IAAIC,SAAS,GAAG,OAAOD,KAAK,KAAK,QAAQ,GAAG;QAC1CpF,IAAI,EAAEoF,KAAK;QACX9B,QAAQ,EAAE,IAAI,CAACA,QAAQ;QACvBZ,KAAK,EAAE,IAAI,CAACa,MAAM,CAAC+B,QAAQ,CAAC;MAC9B,CAAC,GAAG;QACF,GAAGF,KAAK;QACR9B,QAAQ,EAAE;UACR,GAAG,IAAI,CAACA,QAAQ;UAChB,GAAG8B,KAAK,CAAC9B;QACX;MACF,CAAC;MACD,OAAO,IAAI,IAAI,CAACiC,WAAW,CAACF,SAAS,CAAC;IACxC;EACF,CAAC,CACF,CAAC;EACF,OAAOpC,WAAW;AACpB,CAAC,CAAE,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__reExport","mod","secondTarget","__toCommonJS","value","index_exports","Logger","logger","module","exports","import_platform","require","import_base","_assert_this_initialized","self","ReferenceError","_call_super","_this","derived","args","_get_prototype_of","_possible_constructor_return","_is_native_reflect_construct","Reflect","construct","constructor","apply","_class_call_check","instance","Constructor","TypeError","o","setPrototypeOf","getPrototypeOf","o2","__proto__","_inherits","subClass","superClass","create","writable","configurable","_set_prototype_of","_type_of","p","p2","obj","Symbol","result","Boolean","valueOf","_","BaseLogger2","Logger2","config","arguments","length","metadata","platform","preciseName","BaseLogger"],"sources":["index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n Logger: () => Logger,\n logger: () => logger\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_platform = require(\"@multiplatform.one/platform\");\nvar import_base = require(\"./base\");\n__reExport(index_exports, require(\"./types\"), module.exports);\n__reExport(index_exports, require(\"./base\"), module.exports);\nfunction _assert_this_initialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _call_super(_this, derived, args) {\n derived = _get_prototype_of(derived);\n return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));\n}\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _get_prototype_of(o) {\n _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o2) {\n return o2.__proto__ || Object.getPrototypeOf(o2);\n };\n return _get_prototype_of(o);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _set_prototype_of(subClass, superClass);\n}\nfunction _possible_constructor_return(self, call) {\n if (call && (_type_of(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assert_this_initialized(self);\n}\nfunction _set_prototype_of(o, p) {\n _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o2, p2) {\n o2.__proto__ = p2;\n return o2;\n };\n return _set_prototype_of(o, p);\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction _is_native_reflect_construct() {\n try {\n var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {\n }));\n } catch (_) {\n }\n return (_is_native_reflect_construct = function() {\n return !!result;\n })();\n}\nvar Logger = /* @__PURE__ */ (function(BaseLogger2) {\n \"use strict\";\n _inherits(Logger2, BaseLogger2);\n function Logger2() {\n var config = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n _class_call_check(this, Logger2);\n var metadata = {\n platform: import_platform.platform.preciseName\n };\n return _call_super(this, Logger2, [\n {\n name: metadata.platform,\n ...typeof config === \"string\" ? {\n name: config\n } : config,\n metadata\n }\n ]);\n }\n return Logger2;\n})(import_base.BaseLogger);\nvar logger = new Logger();\n//# sourceMappingURL=index.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,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C,SAAS,CAACyB,OAAO,EAAE,EAAE,EAAE,YAAW,CACvF,CAAC,CAAC,CAAC;EACL,CAAC,CAAC,OAAOE,CAAC,EAAE,CACZ;EACA,OAAO,CAAC7B,4BAA4B,GAAG,SAAAA,CAAA,EAAW;IAChD,OAAO,CAAC,CAAC0B,MAAM;EACjB,CAAC,EAAE,CAAC;AACN;AACA,IAAI1C,MAAM,GAAG,eAAiB,UAAS8C,WAAW,EAAE;EAClD,YAAY;;EACZhB,SAAS,CAACiB,OAAO,EAAED,WAAW,CAAC;EAC/B,SAASC,OAAOA,CAAA,EAAG;IACjB,IAAIC,MAAM,GAAGC,SAAS,CAACC,MAAM,GAAG,CAAC,IAAID,SAAS,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,GAAGA,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAChF5B,iBAAiB,CAAC,IAAI,EAAE0B,OAAO,CAAC;IAChC,IAAII,QAAQ,GAAG;MACbC,QAAQ,EAAEhD,eAAe,CAACgD,QAAQ,CAACC;IACrC,CAAC;IACD,OAAO3C,WAAW,CAAC,IAAI,EAAEqC,OAAO,EAAE,CAChC;MACE/D,IAAI,EAAEmE,QAAQ,CAACC,QAAQ;MACvB,IAAG,OAAOJ,MAAM,KAAK,QAAQ,GAAG;QAC9BhE,IAAI,EAAEgE;MACR,CAAC,GAAGA,MAAM;MACVG;IACF,CAAC,CACF,CAAC;EACJ;EACA,OAAOJ,OAAO;AAChB,CAAC,CAAEzC,WAAW,CAACgD,UAAU,CAAC;AAC1B,IAAIrD,MAAM,GAAG,IAAID,MAAM,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_tauri_exports","__export","Logger","logger","module","exports","import_platform","require","import_base","import_tauri","__reExport","_assert_this_initialized","self","ReferenceError","_call_super","_this","derived","args","_get_prototype_of","_possible_constructor_return","_is_native_reflect_construct","Reflect","construct","constructor","apply","_class_call_check","instance","Constructor","TypeError"],"sources":["../../src/index.tauri.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,mBAAA;AAAAC,QAAA,CAAAD,mBAAA;EAAAE,MAAA,EAAAA,CAAA,KAAAA,MAAA;EAAAC,MAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAV,YAAyB,CAAAK,mBAAA;AACzB,IAAAM,eAA2B,GAAAC,OAAA;AAC3B,IAAAC,WAAA,GAAAD,OAA+B;AAuB/B,IAAAE,YAAA,GAAAF,OAAA,8BAAc;AACdG,UAAA,CAAAV,mBAAA,EAAcO,OAAA,uBA1BdH,MAAA,CAAAC,OAAA;AAMOK,UAAM,CAAAV,mBAAe,EAAAO,OAAA,mBAAW,GAAAH,MAAA,CAAAC,OAAA;AAAA,SACrCM,wBAAiDA,CAAAC,IAAA;EAC/C,IAAAA,IAAM,WAAW;IAAA,MACf,IAAAC,cAAU,4DAAS;EAAA;EAErB,OAAAD,IAAM;AAAA;AACW,SACXE,WAAOA,CAAAC,KAAA,EAAWC,OAAA,EAAAC,IAAa;EAAiBD,OACpD,GAAAE,iBAAA,CAAAF,OAAA;EAAA,OACDG,4BAAA,CAAAJ,KAAA,EAAAK,4BAAA,KAAAC,OAAA,CAAAC,SAAA,CAAAN,OAAA,EAAAC,IAAA,QAAAC,iBAAA,CAAAH,KAAA,EAAAQ,WAAA,IAAAP,OAAA,CAAAQ,KAAA,CAAAT,KAAA,EAAAE,IAAA;AAAA;AACH,SAEUQ,iBAA4CA,CAAAC,QAAA,EAAAC,WAAA;EACpD,MAAID,QAAA,YAAAC,WAAS,GAAS;IACxB,UAAAC,SAAA;EACF;AAEO","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__reExport","mod","secondTarget","__toCommonJS","value","index_tauri_exports","Logger","logger","module","exports","import_platform","require","import_base","import_tauri","_assert_this_initialized","self","ReferenceError","_call_super","_this","derived","args","_get_prototype_of","_possible_constructor_return","_is_native_reflect_construct","Reflect","construct","constructor","apply","_class_call_check","instance","Constructor","TypeError","_defineProperties","props","i","length","descriptor","configurable","writable","_create_class","protoProps","staticProps","o","setPrototypeOf","getPrototypeOf","o2","__proto__","_inherits","subClass","superClass","create","_set_prototype_of","_type_of","p","p2","obj","Symbol","result","Boolean","valueOf","_","BaseLogger2","Logger2","config","arguments","metadata","platform","preciseName","createTransport","isTauri","TauriTransport","BaseLogger"],"sources":["index.tauri.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_tauri_exports = {};\n__export(index_tauri_exports, {\n Logger: () => Logger,\n logger: () => logger\n});\nmodule.exports = __toCommonJS(index_tauri_exports);\nvar import_platform = require(\"@multiplatform.one/platform\");\nvar import_base = require(\"./base\");\nvar import_tauri = require(\"./transport/tauri\");\n__reExport(index_tauri_exports, require(\"./types\"), module.exports);\n__reExport(index_tauri_exports, require(\"./base\"), module.exports);\nfunction _assert_this_initialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _call_super(_this, derived, args) {\n derived = _get_prototype_of(derived);\n return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));\n}\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _get_prototype_of(o) {\n _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o2) {\n return o2.__proto__ || Object.getPrototypeOf(o2);\n };\n return _get_prototype_of(o);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _set_prototype_of(subClass, superClass);\n}\nfunction _possible_constructor_return(self, call) {\n if (call && (_type_of(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assert_this_initialized(self);\n}\nfunction _set_prototype_of(o, p) {\n _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o2, p2) {\n o2.__proto__ = p2;\n return o2;\n };\n return _set_prototype_of(o, p);\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction _is_native_reflect_construct() {\n try {\n var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {\n }));\n } catch (_) {\n }\n return (_is_native_reflect_construct = function() {\n return !!result;\n })();\n}\nvar Logger = /* @__PURE__ */ (function(BaseLogger2) {\n \"use strict\";\n _inherits(Logger2, BaseLogger2);\n function Logger2() {\n var config = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n _class_call_check(this, Logger2);\n var metadata = {\n platform: import_platform.platform.preciseName\n };\n return _call_super(this, Logger2, [\n {\n name: metadata.platform,\n ...typeof config === \"string\" ? {\n name: config\n } : config,\n metadata\n }\n ]);\n }\n _create_class(Logger2, [\n {\n key: \"createTransport\",\n value: function createTransport() {\n if (import_platform.platform.isTauri) return new import_tauri.TauriTransport();\n }\n }\n ]);\n return Logger2;\n})(import_base.BaseLogger);\nvar logger = new Logger();\n//# sourceMappingURL=index.tauri.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EA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ChFpC,iBAAiB,CAAC,IAAI,EAAEkC,OAAO,CAAC;IAChC,IAAIG,QAAQ,GAAG;MACbC,QAAQ,EAAExD,eAAe,CAACwD,QAAQ,CAACC;IACrC,CAAC;IACD,OAAOlD,WAAW,CAAC,IAAI,EAAE6C,OAAO,EAAE,CAChC;MACExE,IAAI,EAAE2E,QAAQ,CAACC,QAAQ;MACvB,IAAG,OAAOH,MAAM,KAAK,QAAQ,GAAG;QAC9BzE,IAAI,EAAEyE;MACR,CAAC,GAAGA,MAAM;MACVE;IACF,CAAC,CACF,CAAC;EACJ;EACA1B,aAAa,CAACuB,OAAO,EAAE,CACrB;IACEhE,GAAG,EAAE,iBAAiB;IACtBM,KAAK,EAAE,SAASgE,eAAeA,CAAA,EAAG;MAChC,IAAI1D,eAAe,CAACwD,QAAQ,CAACG,OAAO,EAAE,OAAO,IAAIxD,YAAY,CAACyD,cAAc,CAAC,CAAC;IAChF;EACF,CAAC,CACF,CAAC;EACF,OAAOR,OAAO;AAChB,CAAC,CAAElD,WAAW,CAAC2D,UAAU,CAAC;AAC1B,IAAIhE,MAAM,GAAG,IAAID,MAAM,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","tauri_exports","TauriTransport","module","exports","import_core","require","import_types","_class_call_check","instance","Constructor","TypeError","_defineProperties","props","i","length","descriptor","configurable","writable","_create_class","protoProps","staticProps","logger","console","LogLevelNames","LogLevel","Trace","Debug","Info","Warn","Error","Silent","TauriTransport2","send","payload","_LogLevelNames_payload_level","_payload_args","levelName","level","invoke","message","String","platform","args","catch","err","error"],"sources":["tauri.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar tauri_exports = {};\n__export(tauri_exports, {\n TauriTransport: () => TauriTransport\n});\nmodule.exports = __toCommonJS(tauri_exports);\nvar import_core = require(\"@tauri-apps/api/core\");\nvar import_types = require(\"../types\");\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nvar logger = console;\nvar LogLevelNames = {\n [import_types.LogLevel.Trace]: \"trace\",\n [import_types.LogLevel.Debug]: \"debug\",\n [import_types.LogLevel.Info]: \"info\",\n [import_types.LogLevel.Warn]: \"warn\",\n [import_types.LogLevel.Error]: \"error\",\n [import_types.LogLevel.Silent]: \"silent\"\n};\nvar TauriTransport = /* @__PURE__ */ (function() {\n \"use strict\";\n function TauriTransport2() {\n _class_call_check(this, TauriTransport2);\n }\n _create_class(TauriTransport2, [\n {\n key: \"send\",\n value: function send(payload) {\n try {\n var _LogLevelNames_payload_level, _payload_args;\n var levelName = (_LogLevelNames_payload_level = LogLevelNames[payload.level]) !== null && _LogLevelNames_payload_level !== void 0 ? _LogLevelNames_payload_level : \"info\";\n (0, import_core.invoke)(\"log_message\", {\n payload: {\n level: levelName,\n message: String(payload.message),\n platform: payload.platform,\n args: (_payload_args = payload.args) !== null && _payload_args !== void 0 ? _payload_args : []\n }\n }).catch(function(err) {\n logger.error(\"Failed to send log to Tauri:\", err);\n });\n } catch (err) {\n logger.error(err);\n }\n }\n }\n ]);\n return TauriTransport2;\n})();\n//# sourceMappingURL=tauri.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIhB,iBAAiB,CAACa,IAAI,CAAC,EACrC,IAAI,CAACX,YAAY,CAACe,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,EAC/CnB,SAAS,CAACiB,EAAE,EAAEI,GAAG,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AAE;UACrCL,OAAO,EAAE;YACPI,KAAK,EAAED,SAAS;YAChBG,OAAO,EAAEC,MAAM,CAACP,OAAO,CAACM,OAAO,CAAC;YAChCE,QAAQ,EAAER,OAAO,CAACQ,QAAQ;YAC1BC,IAAI,EAAE,CAACP,aAAa,GAAGF,OAAO,CAACS,IAAI,MAAM,IAAI,IAAIP,aAAa,KAAK,KAAK,CAAC,GAAGA,aAAa,GAAG;UAC9F;QACF,CAAC,CAAC,CAACQ,KAAK,CAAC,UAASC,GAAG,EAAE;UACrBvB,MAAM,CAACwB,KAAK,CAAC,8BAA8B,EAAED,GAAG,CAAC;QACnD,CAAC,CAAC;MACJ,CAAC,CAAC,OAAOA,GAAG,EAAE;QACZvB,MAAM,CAACwB,KAAK,CAACD,GAAG,CAAC;MACnB;IACF;EACF,CAAC,CACF,CAAC;EACF,OAAOb,eAAe;AACxB,CAAC,CAAE,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__copyProps","to","from","except","desc","key","call","get","enumerable","__toCommonJS","mod","value","types_exports","module","exports"],"sources":["types.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar types_exports = {};\nmodule.exports = __toCommonJS(types_exports);\n//# sourceMappingURL=types.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIV,iBAAiB,CAACO,IAAI,CAAC,EACrC,IAAI,CAACL,YAAY,CAACS,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,EAC/Cb,SAAS,CAACW,EAAE,EAAEI,GAAG,EAAE;MAAEE,GAAG,EAAEA,CAAA,KAAML,IAAI,CAACG,GAAG,CAAC;MAAEG,UAAU,EAAE,EAAEJ,IAAI,GAAGX,gBAAgB,CAACS,IAAI,EAAEG,GAAG,CAAC,CAAC,IAAID,IAAI,CAACI;IAAW,CAAC,CAAC;EACxH;EACA,OAAOP,EAAE;AACX,CAAC;AACD,IAAIQ,YAAY,GAAIC,GAAG,IAAKV,WAAW,CAACV,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE;EAAEqB,KAAK,EAAE;AAAK,CAAC,CAAC,EAAED,GAAG,CAAC;AAC1F,IAAIE,aAAa,GAAG,CAAC,CAAC;AACtBC,MAAM,CAACC,OAAO,GAAGL,YAAY,CAACG,aAAa,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","types_exports","LogLevel","LogSource","module","exports","LogLevel2","LogSource2"],"sources":["types.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar types_exports = {};\n__export(types_exports, {\n LogLevel: () => LogLevel,\n LogSource: () => LogSource\n});\nmodule.exports = __toCommonJS(types_exports);\nvar LogLevel = /* @__PURE__ */ (function(LogLevel2) {\n LogLevel2[LogLevel2[\"Trace\"] = 0] = \"Trace\";\n LogLevel2[LogLevel2[\"Debug\"] = 1] = \"Debug\";\n LogLevel2[LogLevel2[\"Info\"] = 2] = \"Info\";\n LogLevel2[LogLevel2[\"Warn\"] = 3] = \"Warn\";\n LogLevel2[LogLevel2[\"Error\"] = 4] = \"Error\";\n LogLevel2[LogLevel2[\"Silent\"] = 5] = \"Silent\";\n return LogLevel2;\n})({});\nvar LogSource = /* @__PURE__ */ (function(LogSource2) {\n LogSource2[\"Main\"] = \"main\";\n LogSource2[\"Renderer\"] = \"renderer\";\n LogSource2[\"Default\"] = \"default\";\n return LogSource2;\n})({});\n//# sourceMappingURL=types.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,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;EACtBC,QAAQ,EAAEA,CAAA,KAAMA,QAAQ;EACxBC,SAAS,EAAEA,CAAA,KAAMA;AACnB,CAAC,CAAC;AACFC,MAAM,CAACC,OAAO,GAAGP,YAAY,CAACG,aAAa,CAAC;AAC5C,IAAIC,QAAQ,GAAG,eAAiB,UAASI,SAAS,EAAE;EAClDA,SAAS,CAACA,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO;EAC3CA,SAAS,CAACA,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO;EAC3CA,SAAS,CAACA,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM;EACzCA,SAAS,CAACA,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM;EACzCA,SAAS,CAACA,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO;EAC3CA,SAAS,CAACA,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,QAAQ;EAC7C,OAAOA,SAAS;AAClB,CAAC,CAAE,CAAC,CAAC,CAAC;AACN,IAAIH,SAAS,GAAG,eAAiB,UAASI,UAAU,EAAE;EACpDA,UAAU,CAAC,MAAM,CAAC,GAAG,MAAM;EAC3BA,UAAU,CAAC,UAAU,CAAC,GAAG,UAAU;EACnCA,UAAU,CAAC,SAAS,CAAC,GAAG,SAAS;EACjC,OAAOA,UAAU;AACnB,CAAC,CAAE,CAAC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["log","platform","LogLevel","_class_call_check","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_create_class","protoProps","staticProps","prototype","_define_property","obj","value","defaultLoggerConfig","name","type","level","process","env","NODE_ENV","Debug","Info","BaseLogger","BaseLogger2","config","arguments","_this_createTransport","_this","metadata","logger","getLogger","setLevel","transport","createT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constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_create_class","protoProps","staticProps","prototype","_define_property","obj","value","defaultLoggerConfig","name","type","level","process","env","NODE_ENV","Debug","Info","BaseLogger","BaseLogger2","config","arguments","_this_createTransport","_this","metadata","logger","getLogger","setLevel","transport","createTransport","call","trace","_len","args","Array","_key","sendToTransport","Trace","debug","info","warn","Warn","error","Error","log2","send","message","slice","preciseName","timestamp","Date","toISOString","getSubLogger","input","subConfig","getLevel","constructor"],"sources":["base.native.js"],"sourcesContent":["import log from \"loglevel\";\nimport { platform } from \"@multiplatform.one/platform\";\nimport { LogLevel } from \"./types\";\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nvar defaultLoggerConfig = {\n name: \"default\",\n type: \"pretty\",\n level: process.env.NODE_ENV === \"development\" ? LogLevel.Debug : LogLevel.Info\n};\nvar BaseLogger = /* @__PURE__ */ (function() {\n \"use strict\";\n function BaseLogger2() {\n var config = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n _class_call_check(this, BaseLogger2);\n var _this_createTransport, _this;\n _define_property(this, \"transport\", void 0);\n _define_property(this, \"metadata\", void 0);\n _define_property(this, \"logger\", void 0);\n _define_property(this, \"name\", void 0);\n var { metadata, name, level } = typeof config === \"string\" ? {\n metadata: void 0,\n name: config,\n level: void 0\n } : config;\n this.metadata = metadata || {};\n this.name = name || \"default\";\n this.logger = name ? log.getLogger(name) : log;\n if (level !== void 0) this.logger.setLevel(level);\n this.transport = (_this_createTransport = (_this = this).createTransport) === null || _this_createTransport === void 0 ? void 0 : _this_createTransport.call(_this);\n }\n _create_class(BaseLogger2, [\n {\n key: \"trace\",\n value: function trace() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n this.logger.trace(...args);\n this.sendToTransport(LogLevel.Trace, args);\n }\n },\n {\n key: \"debug\",\n value: function debug() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n this.logger.debug(...args);\n this.sendToTransport(LogLevel.Debug, args);\n }\n },\n {\n key: \"info\",\n value: function info() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n this.logger.info(...args);\n this.sendToTransport(LogLevel.Info, args);\n }\n },\n {\n key: \"warn\",\n value: function warn() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n this.logger.warn(...args);\n this.sendToTransport(LogLevel.Warn, args);\n }\n },\n {\n key: \"error\",\n value: function error() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n this.logger.error(...args);\n this.sendToTransport(LogLevel.Error, args);\n }\n },\n {\n key: \"log\",\n value: function log2() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n this.logger.debug(...args);\n this.sendToTransport(LogLevel.Debug, args);\n }\n },\n {\n key: \"sendToTransport\",\n value: function sendToTransport(level, args) {\n if (this.transport) {\n this.transport.send({\n level,\n message: args[0],\n args: args.slice(1),\n platform: platform.preciseName,\n timestamp: (/* @__PURE__ */ new Date()).toISOString()\n });\n }\n }\n },\n {\n key: \"getSubLogger\",\n value: function getSubLogger(input) {\n var subConfig = typeof input === \"string\" ? {\n name: input,\n metadata: this.metadata,\n level: this.logger.getLevel()\n } : {\n ...input,\n metadata: {\n ...this.metadata,\n ...input.metadata\n }\n };\n return new this.constructor(subConfig);\n }\n }\n ]);\n return BaseLogger2;\n})();\nexport {\n BaseLogger,\n defaultLoggerConfig\n};\n//# sourceMappingURL=base.js.map\n"],"mappings":"AAAA,OAAOA,GAAG,MAAM,UAAU;AAC1B,SAASC,QAAQ,QAAQ,6BAA6B;AACtD,SAASC,QAAQ,QAAQ,mBAAS;AAClC,SAASC,iBAAiBA,CAACC,QAAQ,EAAEC,WAAW,EAAE;EAChD,IAAI,EAAED,QAAQ,YAAYC,WAAW,CAAC,EAAE;IACtC,MAAM,IAAIC,SAAS,CAAC,mCAAmC,CAAC;EAC1D;AACF;AACA,SAASC,iBAAiBA,CAACC,MAAM,EAAEC,KAAK,EAAE;EACxC,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGD,KAAK,CAACE,MAAM,EAAED,CAAC,EAAE,EAAE;IACrC,IAAIE,UAAU,GAAGH,KAAK,CAACC,CAAC,CAAC;IACzBE,UAAU,CAACC,UAAU,GAAGD,UAAU,CAACC,UAAU,IAAI,KAAK;IACtDD,UAAU,CAACE,YAAY,GAAG,IAAI;IAC9B,IAAI,OAAO,IAAIF,UAAU,EAAEA,UAAU,CAACG,QAAQ,GAAG,IAAI;IACrDC,MAAM,CAACC,cAAc,CAACT,MAAM,EAAEI,UAAU,CAACM,GAAG,EAAEN,UAAU,CAAC;EAC3D;AACF;AACA,SAASO,aAAaA,CAACd,WAAW,EAAEe,UAAU,EAAEC,WAAW,EAAE;EAC3D,IAAID,UAAU,EAAEb,iBAAiB,CAACF,WAAW,CAACiB,SAAS,EAAEF,UAAU,CAAC;EACpE,IAAIC,WAAW,EAAEd,iBAAiB,CAACF,W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AI,IAAI,CAACL,SAAS,EAAE;QAClB,IAAI,CAACA,SAAS,CAACiB,IAAI,CAAC;UAClBjC,KAAK;UACLkC,OAAO,EAAEb,IAAI,CAAC,CAAC,CAAC;UAChBA,IAAI,EAAEA,IAAI,CAACc,KAAK,CAAC,CAAC,CAAC;UACnB/D,QAAQ,EAAEA,QAAQ,CAACgE,WAAW;UAC9BC,SAAS,EAAE,CAAC,eAAgB,IAAIC,IAAI,CAAC,CAAC,EAAEC,WAAW,CAAC;QACtD,CAAC,CAAC;MACJ;IACF;EACF,CAAC,EACD;IACElD,GAAG,EAAE,cAAc;IACnBO,KAAK,EAAE,SAAS4C,YAAYA,CAACC,KAAK,EAAE;MAClC,IAAIC,SAAS,GAAG,OAAOD,KAAK,KAAK,QAAQ,GAAG;QAC1C3C,IAAI,EAAE2C,KAAK;QACX7B,QAAQ,EAAE,IAAI,CAACA,QAAQ;QACvBZ,KAAK,EAAE,IAAI,CAACa,MAAM,CAAC8B,QAAQ,CAAC;MAC9B,CAAC,GAAG;QACF,GAAGF,KAAK;QACR7B,QAAQ,EAAE;UACR,GAAG,IAAI,CAACA,QAAQ;UAChB,GAAG6B,KAAK,CAAC7B;QACX;MACF,CAAC;MACD,OAAO,IAAI,IAAI,CAACgC,WAAW,CAACF,SAAS,CAAC;IACxC;EACF,CAAC,CACF,CAAC;EACF,OAAOnC,WAAW;AACpB,CAAC,CAAE,CAAC;AACJ,SACED,UAAU,EACVT,mBAAmB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["platform","BaseLogger","_assert_this_initialized","self","ReferenceError","_call_super","_this","derived","args","_get_prototype_of","_possible_constructor_return","_is_native_reflect_construct","Reflect","construct","constructor","apply","_class_call_check","instance","Constructor","TypeError"],"sources":["
|
|
1
|
+
{"version":3,"names":["platform","BaseLogger","_assert_this_initialized","self","ReferenceError","_call_super","_this","derived","args","_get_prototype_of","_possible_constructor_return","_is_native_reflect_construct","Reflect","construct","constructor","apply","_class_call_check","instance","Constructor","TypeError","o","Object","setPrototypeOf","getPrototypeOf","o2","__proto__","_inherits","subClass","superClass","prototype","create","value","writable","configurable","_set_prototype_of","call","_type_of","p","p2","obj","Symbol","result","Boolean","valueOf","_","Logger","BaseLogger2","Logger2","config","arguments","length","metadata","preciseName","name","logger"],"sources":["index.native.js"],"sourcesContent":["import { platform } from \"@multiplatform.one/platform\";\nimport { BaseLogger } from \"./base\";\nexport * from \"./types\";\nexport * from \"./base\";\nfunction _assert_this_initialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _call_super(_this, derived, args) {\n derived = _get_prototype_of(derived);\n return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));\n}\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _get_prototype_of(o) {\n _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o2) {\n return o2.__proto__ || Object.getPrototypeOf(o2);\n };\n return _get_prototype_of(o);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _set_prototype_of(subClass, superClass);\n}\nfunction _possible_constructor_return(self, call) {\n if (call && (_type_of(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assert_this_initialized(self);\n}\nfunction _set_prototype_of(o, p) {\n _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o2, p2) {\n o2.__proto__ = p2;\n return o2;\n };\n return _set_prototype_of(o, p);\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction _is_native_reflect_construct() {\n try {\n var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {\n }));\n } catch (_) {\n }\n return (_is_native_reflect_construct = function() {\n return !!result;\n })();\n}\nvar Logger = /* @__PURE__ */ (function(BaseLogger2) {\n \"use strict\";\n _inherits(Logger2, BaseLogger2);\n function Logger2() {\n var config = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n _class_call_check(this, Logger2);\n var metadata = {\n platform: platform.preciseName\n };\n return _call_super(this, Logger2, [\n {\n name: metadata.platform,\n ...typeof config === \"string\" ? {\n name: config\n } : config,\n metadata\n }\n ]);\n }\n return Logger2;\n})(BaseLogger);\nvar logger = new Logger();\nexport {\n Logger,\n logger\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,6BAA6B;AACtD,SAASC,UAAU,QAAQ,kBAAQ;AACnC,cAAc,mBAAS;AACvB,cAAc,kBAAQ;AACtB,SAASC,wBAAwBA,CAACC,IAAI,EAAE;EACtC,IAAIA,IAAI,KAAK,KAAK,CAAC,EAAE;IACnB,MAAM,IAAIC,cAAc,CAAC,2DAA2D,CAAC;EACvF;EACA,OAAOD,IAAI;AACb;AACA,SAASE,WAAWA,CAACC,KAAK,EAAEC,OAAO,EAAEC,IAAI,EAAE;EACzCD,OAAO,GAAGE,iBAAiB,CAACF,OAAO,CAAC;EACpC,OAAOG,4BAA4B,CAACJ,KAAK,EAAEK,4BAA4B,CAAC,CAAC,GAAGC,OAAO,CAACC,SAAS,CAACN,OAAO,EAAEC,IAAI,IAAI,EAAE,EAAEC,iBAAiB,CAACH,KAAK,CAAC,CAACQ,WAAW,CAAC,GAAGP,OAAO,CAACQ,KAAK,CAACT,KAAK,EAAEE,IAAI,CAAC,CAAC;AACxL;AACA,SAASQ,iBAAiBA,CAACC,QAAQ,EAAEC,WAAW,EAAE;EAChD,IAAI,EAAED,QAAQ,YAAYC,WAAW,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G;IACF,CAAC,CACF,CAAC;EACJ;EACA,OAAOJ,OAAO;AAChB,CAAC,CAAE9C,UAAU,CAAC;AACd,IAAIqD,MAAM,GAAG,IAAIT,MAAM,CAAC,CAAC;AACzB,SACEA,MAAM,EACNS,MAAM","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["platform","BaseLogger","TauriTransport","_assert_this_initialized","self","ReferenceError","_call_super","_this","derived","args","_get_prototype_of","_possible_constructor_return","_is_native_reflect_construct","Reflect","construct","constructor","apply","_class_call_check","instance","Constructor","TypeError","_defineProperties","target","props"],"sources":["
|
|
1
|
+
{"version":3,"names":["platform","BaseLogger","TauriTransport","_assert_this_initialized","self","ReferenceError","_call_super","_this","derived","args","_get_prototype_of","_possible_constructor_return","_is_native_reflect_construct","Reflect","construct","constructor","apply","_class_call_check","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_create_class","protoProps","staticProps","prototype","o","setPrototypeOf","getPrototypeOf","o2","__proto__","_inherits","subClass","superClass","create","value","_set_prototype_of","call","_type_of","p","p2","obj","Symbol","result","Boolean","valueOf","_","Logger","BaseLogger2","Logger2","config","arguments","metadata","preciseName","name","createTransport","isTauri","logger"],"sources":["index.tauri.native.js"],"sourcesContent":["import { platform } from \"@multiplatform.one/platform\";\nimport { BaseLogger } from \"./base\";\nimport { TauriTransport } from \"./transport/tauri\";\nexport * from \"./types\";\nexport * from \"./base\";\nfunction _assert_this_initialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _call_super(_this, derived, args) {\n derived = _get_prototype_of(derived);\n return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));\n}\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _get_prototype_of(o) {\n _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o2) {\n return o2.__proto__ || Object.getPrototypeOf(o2);\n };\n return _get_prototype_of(o);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _set_prototype_of(subClass, superClass);\n}\nfunction _possible_constructor_return(self, call) {\n if (call && (_type_of(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assert_this_initialized(self);\n}\nfunction _set_prototype_of(o, p) {\n _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o2, p2) {\n o2.__proto__ = p2;\n return o2;\n };\n return _set_prototype_of(o, p);\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction _is_native_reflect_construct() {\n try {\n var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {\n }));\n } catch (_) {\n }\n return (_is_native_reflect_construct = function() {\n return !!result;\n })();\n}\nvar Logger = /* @__PURE__ */ (function(BaseLogger2) {\n \"use strict\";\n _inherits(Logger2, BaseLogger2);\n function Logger2() {\n var config = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n _class_call_check(this, Logger2);\n var metadata = {\n platform: platform.preciseName\n };\n return _call_super(this, Logger2, [\n {\n name: metadata.platform,\n ...typeof config === \"string\" ? {\n name: config\n } : config,\n metadata\n }\n ]);\n }\n _create_class(Logger2, [\n {\n key: \"createTransport\",\n value: function createTransport() {\n if (platform.isTauri) return new TauriTransport();\n }\n }\n ]);\n return Logger2;\n})(BaseLogger);\nvar logger = new Logger();\nexport {\n Logger,\n logger\n};\n//# sourceMappingURL=index.tauri.js.map\n"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,6BAA6B;AACtD,SAASC,UAAU,QAAQ,kBAAQ;AACnC,SAASC,cAAc,QAAQ,6BAAmB;AAClD,cAAc,mBAAS;AACvB,cAAc,kBAAQ;AACtB,SAASC,wBAAwBA,CAACC,IAAI,EAAE;EACtC,IAAIA,IAAI,KAAK,KAAK,CAAC,EAAE;IACnB,MAAM,IAAIC,cAAc,CAAC,2DAA2D,CAAC;EACvF;EACA,OAAOD,IAAI;AACb;AACA,SAASE,WAAWA,CAACC,KAAK,EAAEC,OAAO,EAAEC,IAAI,EAAE;EACzCD,OAAO,GAAGE,iBAAiB,CAACF,OAAO,CAAC;EACpC,OAAOG,4BAA4B,CAACJ,KAAK,EAAEK,4BAA4B,CAAC,CAAC,GAAGC,OAAO,CAACC,SAAS,CAACN,OAAO,EAAEC,IAAI,IAAI,EAAE,EAAEC,iBAAiB,CAACH,KAAK,CAAC,CAACQ,WAAW,CAAC,GAAGP,OAAO,CAACQ,KAAK,CAACT,KAAK,EAAEE,IAAI,CAAC,CAAC;AACxL;AACA,SAASQ,iBAAiBA,CAACC,QAAQ,EAAEC,WAAW,EAAE;EAChD,IAAI,EAAED,QAAQ,YAAYC,WAAW,CAAC,EAAE;IACtC,MAAM,IAAIC,SAAS,CAAC,mCAAmC,CAAC;EAC1D;AACF;AACA,SAASC,iBAAiBA,CAACC,MAAM,EAAEC,KAAK,EAAE;EACxC,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGD,KAAK,CAACE,MAAM,EAAED,CA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CAAC;EAC/B,SAASC,OAAOA,CAAA,EAAG;IACjB,IAAIC,MAAM,GAAGC,SAAS,CAACrC,MAAM,GAAG,CAAC,IAAIqC,SAAS,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,GAAGA,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAChF7C,iBAAiB,CAAC,IAAI,EAAE2C,OAAO,CAAC;IAChC,IAAIG,QAAQ,GAAG;MACb/D,QAAQ,EAAEA,QAAQ,CAACgE;IACrB,CAAC;IACD,OAAO1D,WAAW,CAAC,IAAI,EAAEsD,OAAO,EAAE,CAChC;MACEK,IAAI,EAAEF,QAAQ,CAAC/D,QAAQ;MACvB,IAAG,OAAO6D,MAAM,KAAK,QAAQ,GAAG;QAC9BI,IAAI,EAAEJ;MACR,CAAC,GAAGA,MAAM;MACVE;IACF,CAAC,CACF,CAAC;EACJ;EACA9B,aAAa,CAAC2B,OAAO,EAAE,CACrB;IACE5B,GAAG,EAAE,iBAAiB;IACtBc,KAAK,EAAE,SAASoB,eAAeA,CAAA,EAAG;MAChC,IAAIlE,QAAQ,CAACmE,OAAO,EAAE,OAAO,IAAIjE,cAAc,CAAC,CAAC;IACnD;EACF,CAAC,CACF,CAAC;EACF,OAAO0D,OAAO;AAChB,CAAC,CAAE3D,UAAU,CAAC;AACd,IAAImE,MAAM,GAAG,IAAIV,MAAM,CAAC,CAAC;AACzB,SACEA,MAAM,EACNU,MAAM","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["invoke","LogLevel","_class_call_check","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_create_class","protoProps","staticProps","prototype","logger","console","LogLevelNames","Trace","Debug","Info","Warn","Error","Silent"],"sources":["
|
|
1
|
+
{"version":3,"names":["invoke","LogLevel","_class_call_check","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_create_class","protoProps","staticProps","prototype","logger","console","LogLevelNames","Trace","Debug","Info","Warn","Error","Silent","TauriTransport","TauriTransport2","value","send","payload","_LogLevelNames_payload_level","_payload_args","levelName","level","message","String","platform","args","catch","err","error"],"sources":["tauri.native.js"],"sourcesContent":["import { invoke } from \"@tauri-apps/api/core\";\nimport { LogLevel } from \"../types\";\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nvar logger = console;\nvar LogLevelNames = {\n [LogLevel.Trace]: \"trace\",\n [LogLevel.Debug]: \"debug\",\n [LogLevel.Info]: \"info\",\n [LogLevel.Warn]: \"warn\",\n [LogLevel.Error]: \"error\",\n [LogLevel.Silent]: \"silent\"\n};\nvar TauriTransport = /* @__PURE__ */ (function() {\n \"use strict\";\n function TauriTransport2() {\n _class_call_check(this, TauriTransport2);\n }\n _create_class(TauriTransport2, [\n {\n key: \"send\",\n value: function send(payload) {\n try {\n var _LogLevelNames_payload_level, _payload_args;\n var levelName = (_LogLevelNames_payload_level = LogLevelNames[payload.level]) !== null && _LogLevelNames_payload_level !== void 0 ? _LogLevelNames_payload_level : \"info\";\n invoke(\"log_message\", {\n payload: {\n level: levelName,\n message: String(payload.message),\n platform: payload.platform,\n args: (_payload_args = payload.args) !== null && _payload_args !== void 0 ? _payload_args : []\n }\n }).catch(function(err) {\n logger.error(\"Failed to send log to Tauri:\", err);\n });\n } catch (err) {\n logger.error(err);\n }\n }\n }\n ]);\n return TauriTransport2;\n})();\nexport {\n Tau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ent":[],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["types.native.js"],"sourcesContent":["//# sourceMappingURL=types.js.map\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["LogLevel","LogLevel2","LogSource","LogSource2"],"sources":["
|
|
1
|
+
{"version":3,"names":["LogLevel","LogLevel2","LogSource","LogSource2"],"sources":["types.native.js"],"sourcesContent":["var LogLevel = /* @__PURE__ */ (function(LogLevel2) {\n LogLevel2[LogLevel2[\"Trace\"] = 0] = \"Trace\";\n LogLevel2[LogLevel2[\"Debug\"] = 1] = \"Debug\";\n LogLevel2[LogLevel2[\"Info\"] = 2] = \"Info\";\n LogLevel2[LogLevel2[\"Warn\"] = 3] = \"Warn\";\n LogLevel2[LogLevel2[\"Error\"] = 4] = \"Error\";\n LogLevel2[LogLevel2[\"Silent\"] = 5] = \"Silent\";\n return LogLevel2;\n})({});\nvar LogSource = /* @__PURE__ */ (function(LogSource2) {\n LogSource2[\"Main\"] = \"main\";\n LogSource2[\"Renderer\"] = \"renderer\";\n LogSource2[\"Default\"] = \"default\";\n return LogSource2;\n})({});\nexport {\n LogLevel,\n LogSource\n};\n//# sourceMappingURL=types.js.map\n"],"mappings":"AAAA,IAAIA,QAAQ,GAAG,eAAiB,UAASC,SAAS,EAAE;EAClDA,SAAS,CAACA,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO;EAC3CA,SAAS,CAACA,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO;EAC3CA,SAAS,CAACA,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM;EACzCA,SAAS,CAACA,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM;EACzCA,SAAS,CAACA,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO;EAC3CA,SAAS,CAACA,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,QAAQ;EAC7C,OAAOA,SAAS;AAClB,CAAC,CAAE,CAAC,CAAC,CAAC;AACN,IAAIC,SAAS,GAAG,eAAiB,UAASC,UAAU,EAAE;EACpDA,UAAU,CAAC,MAAM,CAAC,GAAG,MAAM;EAC3BA,UAAU,CAAC,UAAU,CAAC,GAAG,UAAU;EACnCA,UAAU,CAAC,SAAS,CAAC,GAAG,SAAS;EACjC,OAAOA,UAAU;AACnB,CAAC,CAAE,CAAC,CAAC,CAAC;AACN,SACEH,QAAQ,EACRE,SAAS","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/logger",
|
|
3
|
-
"version": "7.90.
|
|
3
|
+
"version": "7.90.3",
|
|
4
4
|
"description": "Platform-aware logger with pluggable transports for multiplatform.one",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"logger",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@multiplatform.one/platform": "^7.90.
|
|
48
|
+
"@multiplatform.one/platform": "^7.90.3",
|
|
49
49
|
"loglevel": "^1.9.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|