medusa-plugin-ses 3.1.0 → 3.2.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.
@@ -0,0 +1,3 @@
1
+ declare const _default: import("@medusajs/types").ModuleProviderExports;
2
+ export default _default;
3
+ export * from './provider';
@@ -1,8 +1,23 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
17
  const utils_1 = require("@medusajs/framework/utils");
4
18
  const provider_1 = require("./provider");
5
19
  exports.default = (0, utils_1.ModuleProvider)(utils_1.Modules.NOTIFICATION, {
6
20
  services: [provider_1.SesNotificationProvider]
7
21
  });
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvcHJvdmlkZXJzL3Nlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHFEQUFtRTtBQUNuRSx5Q0FBb0Q7QUFFcEQsa0JBQWUsSUFBQSxzQkFBYyxFQUFDLGVBQU8sQ0FBQyxZQUFZLEVBQUU7SUFDbkQsUUFBUSxFQUFFLENBQUMsa0NBQXVCLENBQUM7Q0FDbkMsQ0FBQyxDQUFBIn0=
22
+ __exportStar(require("./provider"), exports);
23
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvcHJvdmlkZXJzL3Nlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEscURBQW1FO0FBQ25FLHlDQUFvRDtBQUVwRCxrQkFBZSxJQUFBLHNCQUFjLEVBQUMsZUFBTyxDQUFDLFlBQVksRUFBRTtJQUNuRCxRQUFRLEVBQUUsQ0FBQyxrQ0FBdUIsQ0FBQztDQUNuQyxDQUFDLENBQUE7QUFFRiw2Q0FBMEIifQ==
@@ -0,0 +1,27 @@
1
+ import { Logger, NotificationTypes } from '@medusajs/framework/types';
2
+ import { AbstractNotificationProviderService } from '@medusajs/framework/utils';
3
+ import { SESv2Client } from '@aws-sdk/client-sesv2';
4
+ import type { Transporter } from 'nodemailer';
5
+ export type SesClientConfig = {
6
+ region: string;
7
+ credentials: {
8
+ secretAccessKey: string;
9
+ accessKeyId: string;
10
+ };
11
+ };
12
+ export type SesNotificationProviderOptions = {
13
+ channels: string[];
14
+ sesClientConfig: SesClientConfig;
15
+ from: string;
16
+ };
17
+ export declare class SesNotificationProvider extends AbstractNotificationProviderService {
18
+ static identifier: string;
19
+ sesClient: SESv2Client;
20
+ transporter: Transporter;
21
+ protected logger_: Logger;
22
+ protected readonly options_: SesNotificationProviderOptions;
23
+ constructor(container: {
24
+ logger: Logger;
25
+ }, options: SesNotificationProviderOptions);
26
+ send(notification: NotificationTypes.ProviderSendNotificationDTO): Promise<NotificationTypes.ProviderSendNotificationResultsDTO>;
27
+ }
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2026 Lacey Pevey
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
@@ -9,7 +9,7 @@ If you are not familiar with Medusa, you can learn more on [the project web site
9
9
  ## Features
10
10
 
11
11
  - Uses AWS api v3, SESv2Client
12
- - Supports attachments
12
+ - Supports attachments up to 40mb
13
13
 
14
14
  ## Installation
15
15
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "medusa-plugin-ses",
3
- "version": "3.1.0",
3
+ "version": "3.2.1",
4
4
  "description": "AWS SES email notification provider for Medusa v2",
5
5
  "author": "Lacey Pevey",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/pevey/medusa-plugin-ses"
9
+ "url": "https://github.com/pevey/medusa-plugins"
10
10
  },
11
11
  "homepage": "https://pevey.com/medusa-plugin-ses",
12
12
  "files": [
@@ -14,11 +14,26 @@
14
14
  ],
15
15
  "exports": {
16
16
  "./package.json": "./package.json",
17
- "./.medusa/server/src/modules/*": "./.medusa/server/src/modules/*/index.js",
18
- "./modules/*": "./.medusa/server/src/modules/*/index.js",
19
- "./providers/*": "./.medusa/server/src/providers/*/index.js",
20
- "./*": "./.medusa/server/src/*.js",
21
- ".": "./.medusa/server/src/providers/ses/index.js"
17
+ "./.medusa/server/src/modules/*": {
18
+ "types": "./.medusa/server/src/modules/*/index.d.ts",
19
+ "default": "./.medusa/server/src/modules/*/index.js"
20
+ },
21
+ "./modules/*": {
22
+ "types": "./.medusa/server/src/modules/*/index.d.ts",
23
+ "default": "./.medusa/server/src/modules/*/index.js"
24
+ },
25
+ "./providers/*": {
26
+ "types": "./.medusa/server/src/providers/*/index.d.ts",
27
+ "default": "./.medusa/server/src/providers/*/index.js"
28
+ },
29
+ "./*": {
30
+ "types": "./.medusa/server/src/*.d.ts",
31
+ "default": "./.medusa/server/src/*.js"
32
+ },
33
+ ".": {
34
+ "types": "./.medusa/server/src/providers/ses/index.d.ts",
35
+ "default": "./.medusa/server/src/providers/ses/index.js"
36
+ }
22
37
  },
23
38
  "keywords": [
24
39
  "medusa",
@@ -31,50 +46,44 @@
31
46
  "ses provider"
32
47
  ],
33
48
  "scripts": {
34
- "prebuild": "node ./scripts/check-node-version.cjs",
35
49
  "build": "medusa plugin:build",
36
50
  "dev": "medusa plugin:develop",
37
- "prepublishOnly": "node ./scripts/check-node-version.cjs && medusa plugin:build",
38
- "test:unit": "TEST_TYPE=unit NODE_OPTIONS=--experimental-vm-modules jest --silent --runInBand --detectOpenHandles --forceExit"
51
+ "prepublishOnly": "medusa plugin:build",
52
+ "test:unit": "TEST_TYPE=unit NODE_OPTIONS=--experimental-vm-modules jest --silent --runInBand --detectOpenHandles --forceExit --passWithNoTests"
39
53
  },
40
54
  "dependencies": {
41
- "@aws-sdk/client-sesv2": "^3.1019.0",
42
- "nodemailer": "^8.0.4"
55
+ "@aws-sdk/client-sesv2": "3.1019.0",
56
+ "nodemailer": "8.0.4"
43
57
  },
44
58
  "devDependencies": {
45
- "@medusajs/admin-sdk": "2.12.4",
46
- "@medusajs/cli": "2.12.4",
47
- "@medusajs/framework": "2.12.4",
48
- "@medusajs/icons": "2.12.4",
49
- "@medusajs/medusa": "2.12.4",
50
- "@medusajs/test-utils": "2.12.4",
51
- "@medusajs/ui": "4.0.25",
52
- "@swc/core": "^1.7.28",
53
- "@swc/jest": "^0.2.39",
54
- "@types/jest": "^30.0.0",
55
- "@types/node": "^20.0.0",
56
- "@types/nodemailer": "^8.0.0",
57
- "@types/react": "^18.3.2",
58
- "@types/react-dom": "^18.2.25",
59
- "jest": "^29.7.0",
60
- "prop-types": "^15.8.1",
61
- "react": "^18.2.0",
62
- "react-dom": "^18.2.0",
63
- "ts-node": "^10.9.2",
64
- "typescript": "^5.6.2",
65
- "vite": "^5.2.11",
66
- "yalc": "^1.0.0-pre.53"
59
+ "@medusajs/admin-sdk": "2.16.0",
60
+ "@medusajs/cli": "2.16.0",
61
+ "@medusajs/framework": "2.16.0",
62
+ "@medusajs/icons": "2.16.0",
63
+ "@medusajs/ui": "4.1.16",
64
+ "@swc/core": "1.15.33",
65
+ "@swc/jest": "0.2.39",
66
+ "@types/jest": "30.0.0",
67
+ "@types/node": "20.0.0",
68
+ "@types/nodemailer": "8.0.0",
69
+ "@types/react": "18.3.2",
70
+ "@types/react-dom": "18.2.25",
71
+ "jest": "29.7.0",
72
+ "prop-types": "15.8.1",
73
+ "react": "18.3.1",
74
+ "react-dom": "18.3.1",
75
+ "ts-node": "10.9.2",
76
+ "typescript": "6.0.3",
77
+ "vite": "8.0.8",
78
+ "yalc": "1.0.0-pre.53"
67
79
  },
68
80
  "peerDependencies": {
69
- "@medusajs/admin-sdk": "2.12.4",
70
- "@medusajs/cli": "2.12.4",
71
- "@medusajs/framework": "2.12.4",
72
- "@medusajs/icons": "2.12.4",
73
- "@medusajs/medusa": "2.12.4",
74
- "@medusajs/test-utils": "2.12.4",
75
- "@medusajs/ui": "4.0.25"
81
+ "@medusajs/framework": "2.16.0",
82
+ "@medusajs/js-sdk": "2.16.0",
83
+ "@medusajs/medusa": "2.16.0"
76
84
  },
77
85
  "engines": {
78
86
  "node": ">=20"
79
- }
80
- }
87
+ },
88
+ "gitHead": "e09c71de0e01897fa9441b40b67315b5a7b6d5bf"
89
+ }