mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 08:16:09 +08:00
ed749e0f51
- Handles sync errors in a single place. For now, if error is not a socket error, will treat as a permanent error, save the error to the account object, and prevent any other syncing until the error is cleared from the account object - Adds a NylasError class that can be extended and serialized. Adds it to global namespace on all packages and replaces all uses of regular Error
17 lines
484 B
JavaScript
17 lines
484 B
JavaScript
global.Promise = require('bluebird');
|
|
global.NylasError = require('./nylas-error');
|
|
|
|
module.exports = {
|
|
Provider: {
|
|
Gmail: 'gmail',
|
|
IMAP: 'imap',
|
|
},
|
|
DatabaseConnector: require('./database-connector'),
|
|
PubsubConnector: require('./pubsub-connector'),
|
|
IMAPConnection: require('./imap-connection'),
|
|
SyncPolicy: require('./sync-policy'),
|
|
SchedulerUtils: require('./scheduler-utils'),
|
|
Config: require(`./config/${process.env.ENV || 'development'}`),
|
|
NylasError,
|
|
}
|