@snehal96/unimail
Version:
Unified email fetching & document extraction layer for modern web apps
20 lines (19 loc) • 916 B
JavaScript
// Simple test to verify ES module imports work
try {
console.log('Testing unimail imports...');
const { GmailAdapter, OutlookAdapter, createPaginationHelper } = await import('./dist/src/index.js');
console.log('✅ Successfully imported GmailAdapter:', typeof GmailAdapter);
console.log('✅ Successfully imported OutlookAdapter:', typeof OutlookAdapter);
console.log('✅ Successfully imported createPaginationHelper:', typeof createPaginationHelper);
// Test creating adapter instances
const gmailAdapter = new GmailAdapter();
const outlookAdapter = new OutlookAdapter();
console.log('✅ Successfully created GmailAdapter instance');
console.log('✅ Successfully created OutlookAdapter instance');
console.log('\n🎉 All unimail imports working correctly!');
}
catch (error) {
console.error('❌ Import error:', error.message);
process.exit(1);
}
export {};