mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 01:54:40 +08:00
Move SchedulerUtils out of nylas-core to local-sync/src/shared
This commit is contained in:
parent
008a294242
commit
c019e9a23b
7 changed files with 7 additions and 6 deletions
|
@ -10,7 +10,8 @@ const Vision = require('vision');
|
|||
const Package = require('../../package');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const {DatabaseConnector, SchedulerUtils, Logger} = require(`nylas-core`);
|
||||
const {DatabaseConnector, Logger} = require(`nylas-core`);
|
||||
const SchedulerUtils = require('../shared/scheduler-utils')
|
||||
|
||||
global.Metrics = Metrics
|
||||
global.Logger = Logger.createLogger('nylas-k2-api')
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const Joi = require('joi');
|
||||
const {SchedulerUtils} = require(`nylas-core`);
|
||||
const SchedulerUtils = require('../../shared/scheduler-utils');
|
||||
|
||||
module.exports = (server) => {
|
||||
server.route({
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
const {
|
||||
DatabaseConnector,
|
||||
PubsubConnector,
|
||||
SchedulerUtils,
|
||||
} = require(`nylas-core`);
|
||||
const SchedulerUtils = require('../../shared/scheduler-utils')
|
||||
|
||||
function onWebsocketConnected(wss, ws) {
|
||||
let toSend;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
const SyncWorker = require('./sync-worker');
|
||||
const {PromiseUtils, DatabaseConnector, PubsubConnector, SchedulerUtils} = require(`nylas-core`)
|
||||
const {PromiseUtils, DatabaseConnector, PubsubConnector} = require(`nylas-core`)
|
||||
const SchedulerUtils = require('../shared/scheduler-utils')
|
||||
|
||||
const IDENTITY = `${global.instanceId}-${process.pid}`;
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
const {
|
||||
SchedulerUtils,
|
||||
IMAPConnection,
|
||||
PubsubConnector,
|
||||
DatabaseConnector,
|
||||
|
@ -7,6 +6,7 @@ const {
|
|||
Errors,
|
||||
PromiseUtils,
|
||||
} = require('nylas-core');
|
||||
const SchedulerUtils = require('../shared/scheduler-utils')
|
||||
const {
|
||||
jsonError,
|
||||
} = require('./sync-utils')
|
||||
|
|
|
@ -8,7 +8,6 @@ module.exports = {
|
|||
Imap: require('imap'),
|
||||
IMAPConnection: require('./imap-connection'),
|
||||
SyncPolicy: require('./sync-policy'),
|
||||
SchedulerUtils: require('./scheduler-utils'),
|
||||
MessageTypes: require('./message-types'),
|
||||
Logger: require('./logger'),
|
||||
Errors: require('./imap-errors'),
|
||||
|
|
Loading…
Reference in a new issue