//! mailer-napi: N-API bindings exposing Rust mailer to Node.js/TypeScript.

use napi_derive::napi;

/// Returns the version of the native mailer module.
#[napi]
pub fn get_version() -> String {
    format!(
        "mailer-napi v{} (core: {}, smtp: {}, security: {})",
        env!("CARGO_PKG_VERSION"),
        mailer_core::version(),
        mailer_smtp::version(),
        mailer_security::version(),
    )
}
