[isomorphic-core] Allow use of atob() in cloud environments

Summary: atob() is a global in browser environments, but needs to be imported otherwise.

Test Plan: manual

Reviewers: juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3950
This commit is contained in:
Halla Moore 2017-02-16 15:36:04 -08:00
parent ad65b7d77a
commit 393474a4d8
2 changed files with 2 additions and 0 deletions

View file

@ -4,6 +4,7 @@
"description": "Packages use isomorphically on n1-cloud and client-sync",
"main": "index.js",
"dependencies": {
"atob": "2.0.3",
"imap": "github:jstejada/node-imap#fix-parse-body-list",
"imap-provider-settings": "github:nylas/imap-provider-settings",
"joi": "8.4.2",

View file

@ -1,3 +1,4 @@
const atob = require('atob')
const crypto = require('crypto');
const {JSONColumn, JSONArrayColumn} = require('../database-types');
const {SUPPORTED_PROVIDERS} = require('../auth-helpers');