@likec4/log 1.46.1 → 1.49.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,76 @@
1
+ # Licenses of Bundled Dependencies
2
+
3
+ The published artifact additionally contains code with the following licenses:
4
+ MIT
5
+
6
+ # Bundled Dependencies
7
+
8
+ ## is-error-instance
9
+
10
+ License: MIT
11
+ By: ehmicky
12
+ Repository: https://github.com/ehmicky/is-error-instance
13
+
14
+ > Copyright © 2024 ehmicky
15
+ >
16
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of
17
+ > this software and associated documentation files (the “Software”), to deal in
18
+ > the Software without restriction, including without limitation the rights to
19
+ > use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
20
+ > the Software, and to permit persons to whom the Software is furnished to do so,
21
+ > subject to the following conditions:
22
+ >
23
+ > The above copyright notice and this permission notice shall be included in all
24
+ > copies or substantial portions of the Software.
25
+ >
26
+ > THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
28
+ > FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
29
+ > COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
30
+ > IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
31
+ > CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32
+
33
+ ---------------------------------------
34
+
35
+ ## is-plain-obj, safe-stringify
36
+
37
+ License: MIT
38
+ By: Sindre Sorhus
39
+ Repositories: https://github.com/sindresorhus/is-plain-obj, https://github.com/sindresorhus/safe-stringify
40
+
41
+ > MIT License
42
+ >
43
+ > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
44
+ >
45
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
46
+ >
47
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
48
+ >
49
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
50
+
51
+ ---------------------------------------
52
+
53
+ ## merge-error-cause, normalize-exception, redefine-property, set-error-class, set-error-message, set-error-props, wrap-error-message
54
+
55
+ License: MIT
56
+ By: ehmicky
57
+ Repositories: https://github.com/ehmicky/merge-error-cause, https://github.com/ehmicky/normalize-exception, https://github.com/ehmicky/redefine-property, https://github.com/ehmicky/set-error-class, https://github.com/ehmicky/set-error-message, https://github.com/ehmicky/set-error-props, https://github.com/ehmicky/wrap-error-message
58
+
59
+ > Copyright © 2025 ehmicky
60
+ >
61
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of
62
+ > this software and associated documentation files (the “Software”), to deal in
63
+ > the Software without restriction, including without limitation the rights to
64
+ > use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
65
+ > the Software, and to permit persons to whom the Software is furnished to do so,
66
+ > subject to the following conditions:
67
+ >
68
+ > The above copyright notice and this permission notice shall be included in all
69
+ > copies or substantial portions of the Software.
70
+ >
71
+ > THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
72
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
73
+ > FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
74
+ > COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
75
+ > IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
76
+ > CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,22 @@
1
+ const isErrorInstance = (value) => isInstanceOfError(value) || hasErrorTag(value);
2
+ const isInstanceOfError = (value) => {
3
+ try {
4
+ return value instanceof Error;
5
+ } catch {
6
+ return false;
7
+ }
8
+ };
9
+ const hasErrorTag = (value) => {
10
+ try {
11
+ return ERROR_TAGS.has(Object.prototype.toString.call(value));
12
+ } catch {
13
+ return false;
14
+ }
15
+ };
16
+ const ERROR_TAGS = new Set([
17
+ "[object Error]",
18
+ "[object DOMException]",
19
+ "[object DOMError]",
20
+ "[object Exception]"
21
+ ]);
22
+ export { isErrorInstance as t };
@@ -0,0 +1,6 @@
1
+ function isPlainObject(value) {
2
+ if (typeof value !== "object" || value === null) return false;
3
+ const prototype = Object.getPrototypeOf(value);
4
+ return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
5
+ }
6
+ export { isPlainObject as t };