atom.io 0.10.0 → 0.10.1
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/internal/dist/index.mjs
CHANGED
|
@@ -319,19 +319,19 @@ var Store = class {
|
|
|
319
319
|
)
|
|
320
320
|
];
|
|
321
321
|
this.logger = {
|
|
322
|
-
error: (
|
|
322
|
+
error: (...messages) => {
|
|
323
323
|
for (const logger of this.loggers) {
|
|
324
|
-
logger.error(
|
|
324
|
+
logger.error(...messages);
|
|
325
325
|
}
|
|
326
326
|
},
|
|
327
|
-
info: (
|
|
327
|
+
info: (...messages) => {
|
|
328
328
|
for (const logger of this.loggers) {
|
|
329
|
-
logger.info(
|
|
329
|
+
logger.info(...messages);
|
|
330
330
|
}
|
|
331
331
|
},
|
|
332
|
-
warn: (
|
|
332
|
+
warn: (...messages) => {
|
|
333
333
|
for (const logger of this.loggers) {
|
|
334
|
-
logger.warn(
|
|
334
|
+
logger.warn(...messages);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
};
|
|
@@ -1260,14 +1260,14 @@ function copyMutableFamilyMemberWithinTransaction(atom, family, origin, target2)
|
|
|
1260
1260
|
var emitUpdate = (state, update, store) => {
|
|
1261
1261
|
const { key } = state;
|
|
1262
1262
|
const { logger } = store;
|
|
1263
|
-
logger
|
|
1263
|
+
logger.info(
|
|
1264
1264
|
`\u{1F4E2} ${state.type} "${key}" went (`,
|
|
1265
1265
|
update.oldValue,
|
|
1266
1266
|
`->`,
|
|
1267
1267
|
update.newValue,
|
|
1268
1268
|
`)`
|
|
1269
1269
|
);
|
|
1270
|
-
logger
|
|
1270
|
+
logger.info(`\u{1F4E2} notifying subscribers:`, state.subject.subscribers);
|
|
1271
1271
|
state.subject.next(update);
|
|
1272
1272
|
};
|
|
1273
1273
|
|