atom.io 0.10.3 → 0.11.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/data/dist/index.d.mts +11 -1
- package/data/dist/index.d.ts +11 -1
- package/data/dist/index.js +9 -0
- package/data/dist/index.js.map +1 -1
- package/data/dist/index.mjs +9 -1
- package/data/dist/index.mjs.map +1 -1
- package/data/src/index.ts +1 -0
- package/data/src/struct.ts +0 -2
- package/data/src/until.ts +15 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -4
- package/dist/index.mjs.map +1 -1
- package/internal/dist/index.d.mts +1 -3
- package/internal/dist/index.d.ts +1 -3
- package/internal/dist/index.js.map +1 -1
- package/internal/dist/index.mjs.map +1 -1
- package/internal/src/future.ts +0 -3
- package/package.json +3 -3
- package/src/logger.ts +2 -5
package/internal/src/future.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atom.io",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Composable and testable reactive data library.",
|
|
5
5
|
"homepage": "https://atom.io.fyi",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
"socket.io": "4.7.2",
|
|
71
71
|
"socket.io-client": "4.7.2",
|
|
72
72
|
"tmp": "0.2.1",
|
|
73
|
-
"tsup": "8.0.
|
|
73
|
+
"tsup": "8.0.1",
|
|
74
74
|
"typescript": "5.3.2",
|
|
75
|
-
"vite": "
|
|
75
|
+
"vite": "5.0.2",
|
|
76
76
|
"vite-tsconfig-paths": "4.2.1",
|
|
77
77
|
"vitest": "0.34.6"
|
|
78
78
|
},
|
package/src/logger.ts
CHANGED
|
@@ -54,7 +54,7 @@ export type LogFn = (
|
|
|
54
54
|
| `unknown`,
|
|
55
55
|
tokenKey: string,
|
|
56
56
|
message: string,
|
|
57
|
-
...rest:
|
|
57
|
+
...rest: unknown[]
|
|
58
58
|
) => void
|
|
59
59
|
export type LogFilter = (...params: Parameters<LogFn>) => boolean
|
|
60
60
|
|
|
@@ -63,10 +63,7 @@ export type Logger = Record<LogLevel, LogFn>
|
|
|
63
63
|
export const simpleLog =
|
|
64
64
|
(logLevel: keyof Logger): LogFn =>
|
|
65
65
|
(icon, tokenType, tokenKey, message, ...rest) => {
|
|
66
|
-
console[logLevel](
|
|
67
|
-
`${icon} ${tokenType} "${tokenKey}" ${message}`,
|
|
68
|
-
...rest.map((arg) => JSON.stringify(arg)),
|
|
69
|
-
)
|
|
66
|
+
console[logLevel](`${icon} ${tokenType} "${tokenKey}" ${message}`, ...rest)
|
|
70
67
|
}
|
|
71
68
|
export const simpleLogger: Logger = {
|
|
72
69
|
error: simpleLog(`error`),
|