UNPKG

@454creative/easy-email

Version:

A framework-agnostic email service library for Node.js with observability and monitoring

46 lines 1.5 kB
"use strict"; /** * Version management for the easy-email library */ Object.defineProperty(exports, "__esModule", { value: true }); exports.LIBRARY_INFO = exports.VERSION = void 0; exports.getLibraryInfo = getLibraryInfo; exports.isVersionCompatible = isVersionCompatible; exports.VERSION = { major: 2, minor: 0, patch: 0, toString() { return `${this.major}.${this.minor}.${this.patch}`; }, isCompatible(otherVersion) { const [major] = otherVersion.split('.').map(Number); return major === this.major; } }; exports.LIBRARY_INFO = { name: '@454creative/easy-email', version: exports.VERSION.toString(), description: 'A framework-agnostic email service library for Node.js with observability and monitoring', author: 'Will Chu <wchu@454creative.com>', license: 'ISC', repository: 'https://bitbucket.org/454creative/easy-email', homepage: 'https://bitbucket.org/454creative/easy-email#readme', bugs: 'https://bitbucket.org/454creative/easy-email/issues', engines: { node: '>=14.0.0' } }; /** * Get library information */ function getLibraryInfo() { return Object.assign(Object.assign({}, exports.LIBRARY_INFO), { version: exports.VERSION.toString(), fullVersion: exports.VERSION.toString() }); } /** * Check if the current version is compatible with a given version */ function isVersionCompatible(version) { return exports.VERSION.isCompatible(version); } //# sourceMappingURL=version.js.map