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