@multiplatform.one/logger 9.17.0 → 10.0.0

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.
Files changed (49) hide show
  1. package/dist/cjs/base.cjs +87 -98
  2. package/dist/cjs/base.native.cjs +190 -0
  3. package/dist/cjs/base.native.js +160 -162
  4. package/dist/cjs/base.native.js.map +1 -1
  5. package/dist/cjs/index.cjs +25 -31
  6. package/dist/cjs/index.native.cjs +106 -0
  7. package/dist/cjs/index.native.js +69 -78
  8. package/dist/cjs/index.native.js.map +1 -1
  9. package/dist/cjs/index.tauri.cjs +28 -34
  10. package/dist/cjs/index.tauri.native.cjs +127 -0
  11. package/dist/cjs/index.tauri.native.js +85 -94
  12. package/dist/cjs/index.tauri.native.js.map +1 -1
  13. package/dist/cjs/transport/tauri.cjs +36 -42
  14. package/dist/cjs/transport/tauri.native.cjs +81 -0
  15. package/dist/cjs/transport/tauri.native.js +58 -64
  16. package/dist/cjs/transport/tauri.native.js.map +1 -1
  17. package/dist/cjs/transport/types.cjs +9 -11
  18. package/dist/cjs/transport/types.native.cjs +18 -0
  19. package/dist/cjs/transport/types.native.js +9 -10
  20. package/dist/cjs/transport/types.native.js.map +1 -1
  21. package/dist/cjs/types.cjs +28 -30
  22. package/dist/cjs/types.native.cjs +43 -0
  23. package/dist/cjs/types.native.js +30 -31
  24. package/dist/cjs/types.native.js.map +1 -1
  25. package/dist/esm/base.mjs +72 -74
  26. package/dist/esm/base.mjs.map +1 -1
  27. package/dist/esm/base.native.js +144 -138
  28. package/dist/esm/base.native.js.map +1 -1
  29. package/dist/esm/index.mjs +16 -16
  30. package/dist/esm/index.mjs.map +1 -1
  31. package/dist/esm/index.native.js +60 -64
  32. package/dist/esm/index.native.js.map +1 -1
  33. package/dist/esm/index.tauri.mjs +19 -19
  34. package/dist/esm/index.tauri.mjs.map +1 -1
  35. package/dist/esm/index.tauri.native.js +76 -80
  36. package/dist/esm/index.tauri.native.js.map +1 -1
  37. package/dist/esm/transport/tauri.mjs +25 -25
  38. package/dist/esm/transport/tauri.mjs.map +1 -1
  39. package/dist/esm/transport/tauri.native.js +46 -47
  40. package/dist/esm/transport/tauri.native.js.map +1 -1
  41. package/dist/esm/transport/types.mjs +0 -2
  42. package/dist/esm/transport/types.native.js +0 -2
  43. package/dist/esm/types.mjs +14 -13
  44. package/dist/esm/types.mjs.map +1 -1
  45. package/dist/esm/types.native.js +16 -15
  46. package/dist/esm/types.native.js.map +1 -1
  47. package/package.json +3 -3
  48. package/dist/esm/transport/types.mjs.map +0 -1
  49. package/dist/esm/transport/types.native.js.map +0 -1
@@ -3,16 +3,14 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
8
- get: () => from[key],
9
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
10
- });
11
- }
12
- return to;
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
8
+ get: () => from[key],
9
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
10
+ });
11
+ }
12
+ return to;
13
13
  };
14
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
15
- value: true
16
- }), mod);
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
17
15
  var types_exports = {};
18
- module.exports = __toCommonJS(types_exports);
16
+ module.exports = __toCommonJS(types_exports);
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __copyProps = (to, from, except, desc) => {
8
+ if (from && typeof from === "object" || typeof from === "function") {
9
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
+ get: () => from[key],
11
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
+ });
13
+ }
14
+ return to;
15
+ };
16
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
17
+ var types_exports = {};
18
+ module.exports = __toCommonJS(types_exports);
@@ -5,17 +5,16 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from === "object" || typeof from === "function") {
9
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
- get: () => from[key],
11
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
- });
13
- }
14
- return to;
8
+ if (from && typeof from === "object" || typeof from === "function") {
9
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
+ get: () => from[key],
11
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
+ });
13
+ }
14
+ return to;
15
15
  };
16
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
17
- value: true
18
- }), mod);
16
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
17
  var types_exports = {};
20
18
  module.exports = __toCommonJS(types_exports);
19
+
21
20
  //# sourceMappingURL=types.native.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"types.native.js","names":[],"sources":["cjs/transport/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":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,OAAO,UAAU,aAAa,aAAa"}
@@ -3,41 +3,39 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
10
  };
11
11
  var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: () => from[key],
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
19
19
  };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
21
  var types_exports = {};
24
22
  __export(types_exports, {
25
- LogLevel: () => LogLevel,
26
- LogSource: () => LogSource
23
+ LogLevel: () => LogLevel,
24
+ LogSource: () => LogSource
27
25
  });
28
26
  module.exports = __toCommonJS(types_exports);
29
- var LogLevel = /* @__PURE__ */(LogLevel2 => {
30
- LogLevel2[LogLevel2["Trace"] = 0] = "Trace";
31
- LogLevel2[LogLevel2["Debug"] = 1] = "Debug";
32
- LogLevel2[LogLevel2["Info"] = 2] = "Info";
33
- LogLevel2[LogLevel2["Warn"] = 3] = "Warn";
34
- LogLevel2[LogLevel2["Error"] = 4] = "Error";
35
- LogLevel2[LogLevel2["Silent"] = 5] = "Silent";
36
- return LogLevel2;
27
+ var LogLevel = /* @__PURE__ */ ((LogLevel2) => {
28
+ LogLevel2[LogLevel2["Trace"] = 0] = "Trace";
29
+ LogLevel2[LogLevel2["Debug"] = 1] = "Debug";
30
+ LogLevel2[LogLevel2["Info"] = 2] = "Info";
31
+ LogLevel2[LogLevel2["Warn"] = 3] = "Warn";
32
+ LogLevel2[LogLevel2["Error"] = 4] = "Error";
33
+ LogLevel2[LogLevel2["Silent"] = 5] = "Silent";
34
+ return LogLevel2;
37
35
  })(LogLevel || {});
38
- var LogSource = /* @__PURE__ */(LogSource2 => {
39
- LogSource2["Main"] = "main";
40
- LogSource2["Renderer"] = "renderer";
41
- LogSource2["Default"] = "default";
42
- return LogSource2;
43
- })(LogSource || {});
36
+ var LogSource = /* @__PURE__ */ ((LogSource2) => {
37
+ LogSource2["Main"] = "main";
38
+ LogSource2["Renderer"] = "renderer";
39
+ LogSource2["Default"] = "default";
40
+ return LogSource2;
41
+ })(LogSource || {});
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
+ var types_exports = {};
24
+ __export(types_exports, {
25
+ LogLevel: () => LogLevel,
26
+ LogSource: () => LogSource
27
+ });
28
+ module.exports = __toCommonJS(types_exports);
29
+ var LogLevel = /* @__PURE__ */ (function(LogLevel2) {
30
+ LogLevel2[LogLevel2["Trace"] = 0] = "Trace";
31
+ LogLevel2[LogLevel2["Debug"] = 1] = "Debug";
32
+ LogLevel2[LogLevel2["Info"] = 2] = "Info";
33
+ LogLevel2[LogLevel2["Warn"] = 3] = "Warn";
34
+ LogLevel2[LogLevel2["Error"] = 4] = "Error";
35
+ LogLevel2[LogLevel2["Silent"] = 5] = "Silent";
36
+ return LogLevel2;
37
+ })({});
38
+ var LogSource = /* @__PURE__ */ (function(LogSource2) {
39
+ LogSource2["Main"] = "main";
40
+ LogSource2["Renderer"] = "renderer";
41
+ LogSource2["Default"] = "default";
42
+ return LogSource2;
43
+ })({});
@@ -5,42 +5,41 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
12
  };
13
13
  var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
21
  };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
23
  var types_exports = {};
26
24
  __export(types_exports, {
27
- LogLevel: () => LogLevel,
28
- LogSource: () => LogSource
25
+ LogLevel: () => LogLevel,
26
+ LogSource: () => LogSource
29
27
  });
30
28
  module.exports = __toCommonJS(types_exports);
31
- var LogLevel = /* @__PURE__ */function (LogLevel2) {
32
- LogLevel2[LogLevel2["Trace"] = 0] = "Trace";
33
- LogLevel2[LogLevel2["Debug"] = 1] = "Debug";
34
- LogLevel2[LogLevel2["Info"] = 2] = "Info";
35
- LogLevel2[LogLevel2["Warn"] = 3] = "Warn";
36
- LogLevel2[LogLevel2["Error"] = 4] = "Error";
37
- LogLevel2[LogLevel2["Silent"] = 5] = "Silent";
38
- return LogLevel2;
39
- }({});
40
- var LogSource = /* @__PURE__ */function (LogSource2) {
41
- LogSource2["Main"] = "main";
42
- LogSource2["Renderer"] = "renderer";
43
- LogSource2["Default"] = "default";
44
- return LogSource2;
45
- }({});
29
+ var LogLevel = /* @__PURE__ */ (function(LogLevel2) {
30
+ LogLevel2[LogLevel2["Trace"] = 0] = "Trace";
31
+ LogLevel2[LogLevel2["Debug"] = 1] = "Debug";
32
+ LogLevel2[LogLevel2["Info"] = 2] = "Info";
33
+ LogLevel2[LogLevel2["Warn"] = 3] = "Warn";
34
+ LogLevel2[LogLevel2["Error"] = 4] = "Error";
35
+ LogLevel2[LogLevel2["Silent"] = 5] = "Silent";
36
+ return LogLevel2;
37
+ })({});
38
+ var LogSource = /* @__PURE__ */ (function(LogSource2) {
39
+ LogSource2["Main"] = "main";
40
+ LogSource2["Renderer"] = "renderer";
41
+ LogSource2["Default"] = "default";
42
+ return LogSource2;
43
+ })({});
44
+
46
45
  //# sourceMappingURL=types.native.js.map
@@ -1 +1 @@
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,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,EAAE;MAAEP,GAAG,EAAEA,CAAA,KAAMI,IAAI,CAACG,GAAG,CAAC;MAAEN,UAAU,EAAE,EAAEK,IAAI,GAAGjB,gBAAgB,CAACe,IAAI,EAAEG,GAAG,CAAC,CAAC,IAAID,IAAI,CAACL;IAAW,CAAC,CAAC;EACxH;EACA,OAAOE,EAAE;AACX,CAAC;AACD,IAAIM,YAAY,GAAIC,GAAG,IAAKR,WAAW,CAAChB,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE;EAAEyB,KAAK,EAAE;AAAK,CAAC,CAAC,EAAED,GAAG,CAAC;AAC1F,IAAIE,aAAa,GAAG,CAAC,CAAC;AACtBhB,QAAQ,CAACgB,aAAa,EAAE;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
+ {"version":3,"file":"types.native.js","names":[],"sources":["cjs/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":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,SAAS,eAAe;CACtB,gBAAgB;CAChB,iBAAiB;AACnB,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,IAAI,WAA2B,iBAAC,SAAS,WAAW;CAClD,UAAU,UAAU,WAAW,KAAK;CACpC,UAAU,UAAU,WAAW,KAAK;CACpC,UAAU,UAAU,UAAU,KAAK;CACnC,UAAU,UAAU,UAAU,KAAK;CACnC,UAAU,UAAU,WAAW,KAAK;CACpC,UAAU,UAAU,YAAY,KAAK;CACrC,OAAO;AACT,EAAC,CAAE,CAAC,CAAC;AACL,IAAI,YAA4B,iBAAC,SAAS,YAAY;CACpD,WAAW,UAAU;CACrB,WAAW,cAAc;CACzB,WAAW,aAAa;CACxB,OAAO;AACT,EAAC,CAAE,CAAC,CAAC"}
package/dist/esm/base.mjs CHANGED
@@ -1,81 +1,79 @@
1
1
  import log from "loglevel";
2
2
  import { platform } from "@multiplatform.one/platform";
3
3
  import { LogLevel } from "./types.mjs";
4
+
4
5
  const defaultLoggerConfig = {
5
- name: "default",
6
- type: "pretty",
7
- level: process.env.NODE_ENV === "development" ? LogLevel.Debug : LogLevel.Info
6
+ name: "default",
7
+ type: "pretty",
8
+ level: process.env.NODE_ENV === "development" ? LogLevel.Debug : LogLevel.Info
8
9
  };
9
- class BaseLogger {
10
- transport;
11
- metadata;
12
- logger;
13
- name;
14
- constructor(config = {}) {
15
- const {
16
- metadata,
17
- name,
18
- level
19
- } = typeof config === "string" ? {
20
- metadata: void 0,
21
- name: config,
22
- level: void 0
23
- } : config;
24
- this.metadata = metadata || {};
25
- this.name = name || "default";
26
- this.logger = name ? log.getLogger(name) : log;
27
- if (level !== void 0) this.logger.setLevel(level);
28
- this.transport = this.createTransport?.();
29
- }
30
- trace(...args) {
31
- this.logger.trace(...args);
32
- this.sendToTransport(LogLevel.Trace, args);
33
- }
34
- debug(...args) {
35
- this.logger.debug(...args);
36
- this.sendToTransport(LogLevel.Debug, args);
37
- }
38
- info(...args) {
39
- this.logger.info(...args);
40
- this.sendToTransport(LogLevel.Info, args);
41
- }
42
- warn(...args) {
43
- this.logger.warn(...args);
44
- this.sendToTransport(LogLevel.Warn, args);
45
- }
46
- error(...args) {
47
- this.logger.error(...args);
48
- this.sendToTransport(LogLevel.Error, args);
49
- }
50
- log(...args) {
51
- this.logger.debug(...args);
52
- this.sendToTransport(LogLevel.Debug, args);
53
- }
54
- sendToTransport(level, args) {
55
- if (this.transport) {
56
- this.transport.send({
57
- level,
58
- message: args[0],
59
- args: args.slice(1),
60
- platform: platform.preciseName,
61
- timestamp: (/* @__PURE__ */new Date()).toISOString()
62
- });
63
- }
64
- }
65
- getSubLogger(input) {
66
- const subConfig = typeof input === "string" ? {
67
- name: input,
68
- metadata: this.metadata,
69
- level: this.logger.getLevel()
70
- } : {
71
- ...input,
72
- metadata: {
73
- ...this.metadata,
74
- ...input.metadata
75
- }
76
- };
77
- return new this.constructor(subConfig);
78
- }
79
- }
10
+ var BaseLogger = class {
11
+ transport;
12
+ metadata;
13
+ logger;
14
+ name;
15
+ constructor(config = {}) {
16
+ const { metadata, name, level } = typeof config === "string" ? {
17
+ metadata: void 0,
18
+ name: config,
19
+ level: void 0
20
+ } : config;
21
+ this.metadata = metadata || {};
22
+ this.name = name || "default";
23
+ this.logger = name ? log.getLogger(name) : log;
24
+ if (level !== void 0) this.logger.setLevel(level);
25
+ this.transport = this.createTransport?.();
26
+ }
27
+ trace(...args) {
28
+ this.logger.trace(...args);
29
+ this.sendToTransport(LogLevel.Trace, args);
30
+ }
31
+ debug(...args) {
32
+ this.logger.debug(...args);
33
+ this.sendToTransport(LogLevel.Debug, args);
34
+ }
35
+ info(...args) {
36
+ this.logger.info(...args);
37
+ this.sendToTransport(LogLevel.Info, args);
38
+ }
39
+ warn(...args) {
40
+ this.logger.warn(...args);
41
+ this.sendToTransport(LogLevel.Warn, args);
42
+ }
43
+ error(...args) {
44
+ this.logger.error(...args);
45
+ this.sendToTransport(LogLevel.Error, args);
46
+ }
47
+ log(...args) {
48
+ this.logger.debug(...args);
49
+ this.sendToTransport(LogLevel.Debug, args);
50
+ }
51
+ sendToTransport(level, args) {
52
+ if (this.transport) {
53
+ this.transport.send({
54
+ level,
55
+ message: args[0],
56
+ args: args.slice(1),
57
+ platform: platform.preciseName,
58
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
59
+ });
60
+ }
61
+ }
62
+ getSubLogger(input) {
63
+ const subConfig = typeof input === "string" ? {
64
+ name: input,
65
+ metadata: this.metadata,
66
+ level: this.logger.getLevel()
67
+ } : {
68
+ ...input,
69
+ metadata: {
70
+ ...this.metadata,
71
+ ...input.metadata
72
+ }
73
+ };
74
+ return new this.constructor(subConfig);
75
+ }
76
+ };
77
+
80
78
  export { BaseLogger, defaultLoggerConfig };
81
79
  //# sourceMappingURL=base.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["log","platform","LogLevel","defaultLoggerConfig","name","type","level","process","env","NODE_ENV","Debug","Info","BaseLogger","transport","metadata","logger","constructor","config","getLogger","setLevel","createTransport","trace","args","sendToTransport","Trace","debug","info","warn","Warn","error","Error","send","message","slice","preciseName","timestamp","Date","toISOString","getSubLogger","input","subConfig","getLevel"],"sources":["../../src/base.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,GAAA,MAAS;AAChB,SA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js","names":[],"sources":["esm/base.js"],"sourcesContent":["import log from \"loglevel\";\nimport { platform } from \"@multiplatform.one/platform\";\nimport { LogLevel } from \"./types\";\nconst defaultLoggerConfig = {\n name: \"default\",\n type: \"pretty\",\n level: process.env.NODE_ENV === \"development\" ? LogLevel.Debug : LogLevel.Info\n};\nclass BaseLogger {\n transport;\n metadata;\n logger;\n name;\n constructor(config = {}) {\n const { metadata, name, level } = typeof config === \"string\" ? { metadata: void 0, name: config, level: void 0 } : 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?.();\n }\n trace(...args) {\n this.logger.trace(...args);\n this.sendToTransport(LogLevel.Trace, args);\n }\n debug(...args) {\n this.logger.debug(...args);\n this.sendToTransport(LogLevel.Debug, args);\n }\n info(...args) {\n this.logger.info(...args);\n this.sendToTransport(LogLevel.Info, args);\n }\n warn(...args) {\n this.logger.warn(...args);\n this.sendToTransport(LogLevel.Warn, args);\n }\n error(...args) {\n this.logger.error(...args);\n this.sendToTransport(LogLevel.Error, args);\n }\n log(...args) {\n this.logger.debug(...args);\n this.sendToTransport(LogLevel.Debug, args);\n }\n 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 getSubLogger(input) {\n const subConfig = typeof input === \"string\" ? {\n name: input,\n metadata: this.metadata,\n level: this.logger.getLevel()\n } : {\n ...input,\n metadata: { ...this.metadata, ...input.metadata }\n };\n return new this.constructor(subConfig);\n }\n}\nexport {\n BaseLogger,\n defaultLoggerConfig\n};\n//# sourceMappingURL=base.js.map\n"],"mappings":";;;;;AAGA,MAAM,sBAAsB;CAC1B,MAAM;CACN,MAAM;CACN,OAAO,QAAQ,IAAI,aAAa,gBAAgB,SAAS,QAAQ,SAAS;AAC5E;AACA,IAAM,aAAN,MAAi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