nestjs-mailchannels 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 MailChannels
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 MailChannels
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -12,7 +12,7 @@ Leverages [`@mailchannels/sdk`](https://github.com/mailchannels/mailchannels-ema
12
12
  package, the Official MailChannels Email API SDK for Node.js.
13
13
 
14
14
  - [✨ Release Notes](CHANGELOG.md)
15
- - [🏀 Online playground](https://stackblitz.com/github/yizack/nestjs-mailchannels?file=playground%2Fsrc%2Fapp.module.ts)
15
+ - [🏀 Online playground](https://stackblitz.com/github/mailchannels/nestjs-mailchannels?file=playground%2Fsrc%2Fapp.module.ts)
16
16
 
17
17
  ## Contents
18
18
 
package/package.json CHANGED
@@ -1,8 +1,19 @@
1
1
  {
2
2
  "name": "nestjs-mailchannels",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "NestJS module for the MailChannels Email API",
5
+ "keywords": [
6
+ "email",
7
+ "mailchannels",
8
+ "nestjs",
9
+ "transactional"
10
+ ],
11
+ "homepage": "https://github.com/mailchannels/nestjs-mailchannels",
5
12
  "license": "MIT",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/mailchannels/nestjs-mailchannels.git"
16
+ },
6
17
  "files": [
7
18
  "dist"
8
19
  ],
@@ -21,6 +32,7 @@
21
32
  "devDependencies": {
22
33
  "@nestjs/core": "^12.4.0",
23
34
  "@types/node": "^26.6.6",
35
+ "changelogen": "^0.6.2",
24
36
  "oxfmt": "^0.77.0",
25
37
  "oxlint": "^1.92.0",
26
38
  "reflect-metadata": "^0.2.2",
package/dist/index.d.mts DELETED
@@ -1,5 +0,0 @@
1
- import { MAILCHANNELS_CONFIGURATION_OPTIONS } from "./mailchannels.constant.mjs";
2
- import { MailChannelsOptions, MailChannelsOptionsAsync } from "./mailchannels.interface.mjs";
3
- import { MailChannelsModule } from "./mailchannels.module.mjs";
4
- import { MailChannelsService } from "./mailchannels.service.mjs";
5
- export { MAILCHANNELS_CONFIGURATION_OPTIONS, MailChannelsModule, type MailChannelsOptions, type MailChannelsOptionsAsync, MailChannelsService };
package/dist/index.mjs DELETED
@@ -1,4 +0,0 @@
1
- import { MAILCHANNELS_CONFIGURATION_OPTIONS } from "./mailchannels.constant.mjs";
2
- import { MailChannelsModule } from "./mailchannels.module.mjs";
3
- import { t as MailChannelsService } from "./mailchannels.service-DlISywKM.mjs";
4
- export { MAILCHANNELS_CONFIGURATION_OPTIONS, MailChannelsModule, MailChannelsService };
@@ -1 +0,0 @@
1
- export declare const MAILCHANNELS_CONFIGURATION_OPTIONS = "MAILCHANNELS_CONFIGURATION";
@@ -1,3 +0,0 @@
1
- // src/mailchannels.constant.ts
2
- const MAILCHANNELS_CONFIGURATION_OPTIONS = "MAILCHANNELS_CONFIGURATION";
3
- export { MAILCHANNELS_CONFIGURATION_OPTIONS };
@@ -1,10 +0,0 @@
1
- import { FactoryProvider, ModuleMetadata } from "@nestjs/common";
2
- import { MailChannelsClientOptions } from "@mailchannels/sdk";
3
- export interface MailChannelsOptions extends MailChannelsClientOptions {
4
- apiKey: string;
5
- }
6
- export interface MailChannelsOptionsAsync extends Pick<ModuleMetadata, "imports"> {
7
- name?: string;
8
- useFactory: (...args: unknown[]) => MailChannelsOptions | Promise<MailChannelsOptions>;
9
- inject?: FactoryProvider<MailChannelsOptions>["inject"];
10
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import { MailChannelsOptions, MailChannelsOptionsAsync } from "./mailchannels.interface.mjs";
2
- import { DynamicModule } from "@nestjs/common";
3
- export declare class MailChannelsModule {
4
- static forRoot(options: MailChannelsOptions): DynamicModule;
5
- static forRootAsync(options: MailChannelsOptionsAsync): DynamicModule;
6
- }
@@ -1,35 +0,0 @@
1
- import { MAILCHANNELS_CONFIGURATION_OPTIONS } from "./mailchannels.constant.mjs";
2
- import { n as __decorate, t as MailChannelsService } from "./mailchannels.service-DlISywKM.mjs";
3
- import { Module } from "@nestjs/common";
4
- // src/mailchannels.module.ts
5
- var _MailChannelsModule;
6
- let MailChannelsModule = _MailChannelsModule = class MailChannelsModule {
7
- static forRoot(options) {
8
- return {
9
- module: _MailChannelsModule,
10
- providers: [{
11
- provide: MAILCHANNELS_CONFIGURATION_OPTIONS,
12
- useValue: options
13
- }],
14
- exports: [MailChannelsService]
15
- };
16
- }
17
- static forRootAsync(options) {
18
- const mailchannelsModuleOptions = {
19
- provide: MAILCHANNELS_CONFIGURATION_OPTIONS,
20
- useFactory: options.useFactory,
21
- inject: options.inject || []
22
- };
23
- return {
24
- module: _MailChannelsModule,
25
- imports: options.imports,
26
- providers: [mailchannelsModuleOptions],
27
- exports: [MailChannelsService]
28
- };
29
- }
30
- };
31
- MailChannelsModule = _MailChannelsModule = __decorate([Module({
32
- providers: [MailChannelsService],
33
- exports: [MailChannelsService]
34
- })], MailChannelsModule);
35
- export { MailChannelsModule };
@@ -1,32 +0,0 @@
1
- import { MAILCHANNELS_CONFIGURATION_OPTIONS } from "./mailchannels.constant.mjs";
2
- import { Inject, Injectable } from "@nestjs/common";
3
- import { MailChannels } from "@mailchannels/sdk";
4
- // \0@oxc-project+runtime@0.157.0/helpers/esm/decorateMetadata.js
5
- function __decorateMetadata(k, v) {
6
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
7
- }
8
- // \0@oxc-project+runtime@0.157.0/helpers/esm/decorateParam.js
9
- function __decorateParam(paramIndex, decorator) {
10
- return function(target, key) {
11
- decorator(target, key, paramIndex);
12
- };
13
- }
14
- // \0@oxc-project+runtime@0.157.0/helpers/esm/decorate.js
15
- function __decorate(decorators, target, key, desc) {
16
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
17
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
18
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
19
- return c > 3 && r && Object.defineProperty(target, key, r), r;
20
- }
21
- // src/mailchannels.service.ts
22
- let MailChannelsService = class MailChannelsService extends MailChannels {
23
- constructor(options) {
24
- super(options.apiKey, options);
25
- }
26
- };
27
- MailChannelsService = __decorate([
28
- Injectable(),
29
- __decorateParam(0, Inject(MAILCHANNELS_CONFIGURATION_OPTIONS)),
30
- __decorateMetadata("design:paramtypes", [Object])
31
- ], MailChannelsService);
32
- export { __decorate as n, MailChannelsService as t };
@@ -1,5 +0,0 @@
1
- import { MailChannelsOptions } from "./mailchannels.interface.mjs";
2
- import { MailChannels } from "@mailchannels/sdk";
3
- export declare class MailChannelsService extends MailChannels {
4
- constructor(options: MailChannelsOptions);
5
- }
@@ -1,2 +0,0 @@
1
- import "./mailchannels.constant.mjs";
2
- export { t as MailChannelsService } from "./mailchannels.service-DlISywKM.mjs";