UNPKG

shogun-core

Version:

SHOGUN CORE - Core library for Shogun Ecosystem

22 lines (21 loc) 1.2 kB
// Import polyfills FIRST before any other imports // This ensures Buffer and other Node.js polyfills are available import './polyfills.js'; // Gun and SEA imports removed - users should import them directly from 'gun' package // This prevents bundling issues in build systems like Vite export * from './utils/errorHandler.js'; export * from './plugins/index.js'; export * from './interfaces/shogun.js'; export * from './gundb/gun-es.js'; export { ShogunCore } from './core.js'; export { RxJS, crypto, derive, GunErrors, DataBase } from './gundb/db.js'; export { DataBaseHolster } from './gundb/db-holster.js'; export { RxJSHolster } from './gundb/rxjs-holster.js'; // Note: Gun and SEA are not exported to avoid bundling issues // Users should import Gun and SEA directly from the 'gun' package // Export seed phrase utilities for WebAuthn multi-device support export { generateSeedPhrase, validateSeedPhrase, mnemonicToSeed, seedToPassword, deriveCredentialsFromMnemonic, formatSeedPhrase, normalizeSeedPhrase, } from './utils/seedPhrase.js'; // Export storage export { ShogunStorage } from './storage/storage.js'; // Export polyfill utilities export { setBufferPolyfill } from './polyfills.js';