Comparing version 0.10.0 to 0.10.1
@@ -324,15 +324,15 @@ 'use strict'; | ||
this.logger = { | ||
error: (message) => { | ||
error: (...messages) => { | ||
for (const logger of this.loggers) { | ||
logger.error(message); | ||
logger.error(...messages); | ||
} | ||
}, | ||
info: (message) => { | ||
info: (...messages) => { | ||
for (const logger of this.loggers) { | ||
logger.info(message); | ||
logger.info(...messages); | ||
} | ||
}, | ||
warn: (message) => { | ||
warn: (...messages) => { | ||
for (const logger of this.loggers) { | ||
logger.warn(message); | ||
logger.warn(...messages); | ||
} | ||
@@ -1266,3 +1266,3 @@ } | ||
const { logger } = store; | ||
logger == null ? void 0 : logger.info( | ||
logger.info( | ||
`\u{1F4E2} ${state.type} "${key}" went (`, | ||
@@ -1274,3 +1274,3 @@ update.oldValue, | ||
); | ||
logger == null ? void 0 : logger.info(`\u{1F4E2} notifying subscribers:`, state.subject.subscribers); | ||
logger.info(`\u{1F4E2} notifying subscribers:`, state.subject.subscribers); | ||
state.subject.next(update); | ||
@@ -1277,0 +1277,0 @@ }; |
@@ -14,3 +14,3 @@ import type { StateUpdate } from "atom.io" | ||
const { logger } = store | ||
logger?.info( | ||
logger.info( | ||
`📢 ${state.type} "${key}" went (`, | ||
@@ -22,4 +22,4 @@ update.oldValue, | ||
) | ||
logger?.info(`📢 notifying subscribers:`, state.subject.subscribers) | ||
logger.info(`📢 notifying subscribers:`, state.subject.subscribers) | ||
state.subject.next(update) | ||
} |
@@ -110,15 +110,15 @@ import { AtomIOLogger } from "atom.io" | ||
public logger: Logger = { | ||
error: (message: string) => { | ||
error: (...messages: unknown[]) => { | ||
for (const logger of this.loggers) { | ||
logger.error(message) | ||
logger.error(...messages) | ||
} | ||
}, | ||
info: (message: string) => { | ||
info: (...messages: unknown[]) => { | ||
for (const logger of this.loggers) { | ||
logger.info(message) | ||
logger.info(...messages) | ||
} | ||
}, | ||
warn: (message: string) => { | ||
warn: (...messages: unknown[]) => { | ||
for (const logger of this.loggers) { | ||
logger.warn(message) | ||
logger.warn(...messages) | ||
} | ||
@@ -125,0 +125,0 @@ }, |
{ | ||
"name": "atom.io", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "Composable and testable reactive data library.", | ||
@@ -17,3 +17,2 @@ "homepage": "https://atom.io.fyi", | ||
}, | ||
"dependencies": {}, | ||
"peerDependencies": { | ||
@@ -54,2 +53,3 @@ "@floating-ui/react": ">=0.25.0", | ||
"@testing-library/react": "14.1.2", | ||
"@types/http-proxy": "1.17.14", | ||
"@types/npmlog": "4.1.6", | ||
@@ -60,6 +60,10 @@ "@types/react": "18.2.37", | ||
"concurrently": "8.2.2", | ||
"drizzle-kit": "0.20.4", | ||
"drizzle-orm": "0.29.0", | ||
"eslint": "8.54.0", | ||
"framer-motion": "10.16.5", | ||
"happy-dom": "12.10.3", | ||
"http-proxy": "1.18.1", | ||
"npmlog": "7.0.1", | ||
"postgres": "3.4.3", | ||
"preact": "10.19.2", | ||
@@ -205,3 +209,3 @@ "react": "18.2.0", | ||
"scripts": { | ||
"integrity": "tsx __scripts__/integrity-build.node", | ||
"manifest": "tsx __scripts__/manifest-build.node", | ||
"build": "concurrently \"npm:build:*\"", | ||
@@ -224,5 +228,5 @@ "build:main": "tsup", | ||
"test": "vitest", | ||
"test:once": "npm run test:integrity && cross-env IMPORT=dist vitest run", | ||
"test:integrity": "tsx __scripts__/integrity-test.node" | ||
"test:once": "npm run test:manifest && cross-env IMPORT=dist vitest run", | ||
"test:manifest": "tsx __scripts__/manifest-test.node" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1715279
28