🎨 Fix to using imap-provider-settings package

Summary: see title

Test Plan: manual

Reviewers: spang, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D3772
This commit is contained in:
Juan Tejada 2017-01-24 16:24:55 -08:00
parent 899538d642
commit 5ed1f4da9e
4 changed files with 3 additions and 1403 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,7 @@
/* eslint global-require: 0 */
import crypto from 'crypto';
import {CommonProviderSettings} from 'imap-provider-settings'
import {
N1CloudAPI,
NylasAPI,
@ -164,8 +165,6 @@ export function isValidHost(value) {
}
export function accountInfoWithIMAPAutocompletions(existingAccountInfo) {
const CommonProviderSettings = require('./common-provider-settings.json');
const {email, type} = existingAccountInfo;
const domain = email.split('@').pop().toLowerCase();
const template = CommonProviderSettings[domain] || CommonProviderSettings[type] || {};

View file

@ -41,6 +41,7 @@
"fs-plus": "^2.3.2",
"getmac": "1.x.x",
"guid": "0.0.10",
"imap-provider-settings": "nylas/imap-provider-settings",
"immutable": "3.7.5",
"jasmine-json": "~0.0",
"jasmine-react-helpers": "^0.2",

2
src/K2

@ -1 +1 @@
Subproject commit 6f7f161dc7a7bb938d9f2f513f0e307c73152f42
Subproject commit 81a48d1fbb410608583b4556f95b569c0c5b889b