@likec4/log 1.46.1 → 1.48.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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023-2025 Denis Davydkov
3
+ Copyright (c) 2023-2026 Denis Davydkov
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -0,0 +1,26 @@
1
+ //#region ../../node_modules/.pnpm/is-error-instance@3.0.1/node_modules/is-error-instance/build/src/main.js
2
+ const isErrorInstance = (value) => isInstanceOfError(value) || hasErrorTag(value);
3
+ var main_default = isErrorInstance;
4
+ const isInstanceOfError = (value) => {
5
+ try {
6
+ return value instanceof Error;
7
+ } catch {
8
+ return false;
9
+ }
10
+ };
11
+ const hasErrorTag = (value) => {
12
+ try {
13
+ return ERROR_TAGS.has(Object.prototype.toString.call(value));
14
+ } catch {
15
+ return false;
16
+ }
17
+ };
18
+ const ERROR_TAGS = new Set([
19
+ "[object Error]",
20
+ "[object DOMException]",
21
+ "[object DOMError]",
22
+ "[object Exception]"
23
+ ]);
24
+
25
+ //#endregion
26
+ export { main_default as t };
@@ -0,0 +1,9 @@
1
+ //#region ../../node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js
2
+ function isPlainObject(value) {
3
+ if (typeof value !== "object" || value === null) return false;
4
+ const prototype = Object.getPrototypeOf(value);
5
+ return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
6
+ }
7
+
8
+ //#endregion
9
+ export { isPlainObject as t };