@pixelplex/mail-service 0.2.6 → 0.2.8

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.
@@ -2,6 +2,7 @@ export * from './mail.types';
2
2
  export * from './decorators.types';
3
3
  export * from './gateway.class';
4
4
  export * from './options.types';
5
+ export * from './resend.types';
5
6
  export * from './sendgrid.types';
6
7
  export * from './slack.types';
7
8
  export * from './smtp.types';
@@ -18,6 +18,7 @@ __exportStar(require("./mail.types"), exports);
18
18
  __exportStar(require("./decorators.types"), exports);
19
19
  __exportStar(require("./gateway.class"), exports);
20
20
  __exportStar(require("./options.types"), exports);
21
+ __exportStar(require("./resend.types"), exports);
21
22
  __exportStar(require("./sendgrid.types"), exports);
22
23
  __exportStar(require("./slack.types"), exports);
23
24
  __exportStar(require("./smtp.types"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,qDAAmC;AACnC,kDAAgC;AAChC,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,qDAAmC;AACnC,kDAAgC;AAChC,kDAAgC;AAChC,iDAA+B;AAC/B,mDAAiC;AACjC,gDAA8B;AAC9B,+CAA6B"}
@@ -1,9 +1,10 @@
1
1
  import { ExtendsOrEmpty } from '../utils';
2
2
  import { GatewayClass } from './gateway.class';
3
+ import { ResendOptions } from './resend.types';
3
4
  import { SendgridOptions } from './sendgrid.types';
4
5
  import { SlackOptions } from './slack.types';
5
6
  import { SmtpOptions } from './smtp.types';
6
- export type Gateway = 'smtp' | 'console' | 'slack' | 'sendgrid';
7
+ export type Gateway = 'smtp' | 'console' | 'slack' | 'sendgrid' | 'resend';
7
8
  export type MailOptions<TGateway extends Gateway = Gateway> = {
8
9
  readonly gateways: [TGateway, ...TGateway[]];
9
10
  readonly customGateways?: [GatewayClass, ...GatewayClass[]];
@@ -13,4 +14,6 @@ export type MailOptions<TGateway extends Gateway = Gateway> = {
13
14
  slack: SlackOptions;
14
15
  }> & ExtendsOrEmpty<'sendgrid', TGateway, {
15
16
  sendgrid: SendgridOptions;
17
+ }> & ExtendsOrEmpty<'resend', TGateway, {
18
+ resend: ResendOptions;
16
19
  }>;
@@ -0,0 +1,4 @@
1
+ export type ResendOptions = {
2
+ readonly apiKey: string;
3
+ readonly sender: string;
4
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=resend.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resend.types.js","sourceRoot":"","sources":["../../src/types/resend.types.ts"],"names":[],"mappings":""}
package/eslint.config.js CHANGED
@@ -2,7 +2,7 @@ const path = require('path');
2
2
  const tsParser = require('@typescript-eslint/parser');
3
3
  const tsPlugin = require('@typescript-eslint/eslint-plugin');
4
4
  const prettierPlugin = require('eslint-plugin-prettier');
5
- const stylisticTs = require('@stylistic/eslint-plugin-ts');
5
+ const stylisticTs = require('@stylistic/eslint-plugin');
6
6
  const importPlugin = require('eslint-plugin-import');
7
7
  const { defineFlatConfig } = require('eslint-define-config');
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixelplex/mail-service",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "description": "Mail service",
5
5
  "author": "dev@pixelplex.io",
6
6
  "private": false,
@@ -10,8 +10,8 @@
10
10
  "prebuild": "rimraf dist",
11
11
  "build": "nest build",
12
12
  "format": "prettier --write \"src/**/*.ts\"",
13
- "lint": "eslint \"{src,apps,libs,test}/**/*.ts\"",
14
- "lint:fix": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
13
+ "lint": "eslint --cache \"{src,apps,libs,test}/**/*.ts\"",
14
+ "lint:fix": "eslint --cache \"{src,apps,libs,test}/**/*.ts\" --fix",
15
15
  "test": "jest",
16
16
  "test:watch": "jest --watch",
17
17
  "test:cov": "jest --coverage",
@@ -23,55 +23,58 @@
23
23
  "commit": "git-cz"
24
24
  },
25
25
  "dependencies": {
26
- "@nestjs/common": "^10.4.15",
27
- "@nestjs/core": "^10.4.15",
28
- "@sendgrid/mail": "^8.1.4",
29
- "axios": "^1.7.9",
30
- "handlebars": "^4.7.8",
31
- "nodemailer": "^6.9.16",
26
+ "@nestjs/common": "^11.1.18",
27
+ "@nestjs/core": "^11.1.18",
28
+ "@sendgrid/mail": "^8.1.6",
29
+ "axios": "^1.14.0",
30
+ "handlebars": "^4.7.9",
31
+ "nodemailer": "^8.0.5",
32
32
  "reflect-metadata": "^0.2.2",
33
- "rimraf": "^6.0.1"
33
+ "resend": "^6.0.2",
34
+ "rimraf": "^6.1.3",
35
+ "rxjs": "^7.8.2"
34
36
  },
35
37
  "devDependencies": {
36
- "@commitlint/cli": "^19.6.1",
37
- "@commitlint/config-conventional": "^19.6.0",
38
- "@commitlint/cz-commitlint": "^19.6.1",
39
- "@nestjs/cli": "^10.4.9",
40
- "@nestjs/schematics": "^10.2.3",
41
- "@nestjs/testing": "^10.4.15",
42
- "@types/jest": "^29.5.14",
43
- "@types/node": "^22.10.2",
44
- "@types/nodemailer": "^6.4.17",
45
- "@types/supertest": "^6.0.2",
46
- "@typescript-eslint/eslint-plugin": "^8.18.1",
47
- "@typescript-eslint/parser": "^8.18.1",
48
- "@stylistic/eslint-plugin": "^2.12.1",
49
- "@stylistic/eslint-plugin-ts": "^2.12.1",
38
+ "@commitlint/cli": "^20.5.0",
39
+ "@commitlint/config-conventional": "^20.5.0",
40
+ "@commitlint/cz-commitlint": "^20.5.1",
41
+ "@nestjs/cli": "^11.0.18",
42
+ "@nestjs/schematics": "^11.0.10",
43
+ "@nestjs/testing": "^11.1.18",
44
+ "@stylistic/eslint-plugin": "5.10.0",
45
+ "@types/jest": "^30.0.0",
46
+ "@types/node": "^25.5.2",
47
+ "@types/nodemailer": "^8.0.0",
48
+ "@types/supertest": "^7.2.0",
49
+ "@typescript-eslint/eslint-plugin": "^8.58.1",
50
+ "@typescript-eslint/parser": "^8.58.1",
50
51
  "audit-ci": "^7.1.0",
51
52
  "commitizen": "^4.3.1",
52
- "eslint": "^9.17.0",
53
- "eslint-config-prettier": "^9.1.0",
53
+ "eslint": "^9.39.4",
54
+ "eslint-config-prettier": "^10.1.8",
54
55
  "eslint-define-config": "^2.1.0",
55
- "eslint-import-resolver-typescript": "^3.7.0",
56
- "eslint-plugin-import": "^2.31.0",
57
- "eslint-plugin-prettier": "^5.2.1",
56
+ "eslint-import-resolver-typescript": "^4.4.4",
57
+ "eslint-plugin-import": "^2.32.0",
58
+ "eslint-plugin-prettier": "^5.5.5",
58
59
  "husky": "^9.1.7",
59
- "jest": "^29.7.0",
60
- "lint-staged": "^15.2.11",
61
- "prettier": "^3.4.2",
62
- "pretty-quick": "^4.0.0",
63
- "supertest": "^7.0.0",
64
- "ts-jest": "^29.2.5",
65
- "ts-loader": "^9.5.1",
60
+ "inquirer": "^13.4.1",
61
+ "jest": "^30.3.0",
62
+ "lint-staged": "^16.4.0",
63
+ "prettier": "^3.8.1",
64
+ "pretty-quick": "^4.2.2",
65
+ "supertest": "^7.2.2",
66
+ "ts-jest": "^29.4.9",
67
+ "ts-loader": "^9.5.7",
66
68
  "ts-node": "^10.9.2",
67
69
  "tsconfig-paths": "^4.2.0",
68
70
  "tslint": "^6.1.3",
69
- "typescript": "^5.7.2"
71
+ "typescript": "^5.9.3",
72
+ "webpack": "^5.105.4"
70
73
  },
71
74
  "resolutions": {
72
- "micromatch": "4.0.8",
73
- "braces": "3.0.3",
74
- "cross-spawn": "7.0.6"
75
+ "tmp": ">=0.2.4",
76
+ "picomatch": ">=2.3.2",
77
+ "lodash": ">=4.18.0"
75
78
  },
76
79
  "jest": {
77
80
  "moduleFileExtensions": [