@owlmeans/server-mailer-mailgun 0.1.5

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,2 @@
1
+ export declare const MAILGUN_MAILER = "mailgun-mailer";
2
+ //# sourceMappingURL=consts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,mBAAmB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export const MAILGUN_MAILER = 'mailgun-mailer';
2
+ //# sourceMappingURL=consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.js","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './consts.js';
2
+ export * from './service.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
package/build/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from './consts.js';
2
+ export * from './service.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { MailerService } from '@owlmeans/mailer';
2
+ export declare const makeMailgunMailerService: (alias?: string) => MailerService;
3
+ //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAGrD,eAAO,MAAM,wBAAwB,GAAI,cAAsB,KAAG,aAK9D,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { createService } from '@owlmeans/context';
2
+ import { MAILGUN_MAILER } from './consts.js';
3
+ export const makeMailgunMailerService = (alias = MAILGUN_MAILER) => createService(alias, {
4
+ send: async () => {
5
+ throw new Error('server-mailer-mailgun: not yet implemented (Phase 2)');
6
+ },
7
+ });
8
+ //# sourceMappingURL=service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,KAAK,GAAG,cAAc,EAAiB,EAAE,CAChF,aAAa,CAAgB,KAAK,EAAE;IAClC,IAAI,EAAE,KAAK,IAAI,EAAE;QACf,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAA;IACzE,CAAC;CACF,CAAC,CAAA"}
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@owlmeans/server-mailer-mailgun",
3
+ "version": "0.1.5",
4
+ "license": "MIT",
5
+ "type": "module",
6
+ "scripts": {
7
+ "build": "tsc -b",
8
+ "dev": "sleep 2 && nodemon -e ts,tsx,json --watch src --exec \"tsc -p ./tsconfig.json\"",
9
+ "watch": "tsc -b -w --preserveWatchOutput --pretty",
10
+ "test": "bun test ./tests"
11
+ },
12
+ "main": "build/index.js",
13
+ "module": "build/index.js",
14
+ "types": "build/index.d.ts",
15
+ "exports": {
16
+ ".": {
17
+ "import": "./build/index.js",
18
+ "require": "./build/index.js",
19
+ "default": "./build/index.js",
20
+ "module": "./build/index.js",
21
+ "types": "./build/index.d.ts"
22
+ }
23
+ },
24
+ "dependencies": {
25
+ "@owlmeans/context": "^0.1.5",
26
+ "@owlmeans/error": "^0.1.5",
27
+ "@owlmeans/mailer": "^0.1.5"
28
+ },
29
+ "devDependencies": {
30
+ "@owlmeans/dep-config": "workspace:*",
31
+ "@types/bun": "^1.3.0",
32
+ "nodemon": "^3.1.11",
33
+ "npm-check": "^6.0.1",
34
+ "typescript": "^6.0.2"
35
+ },
36
+ "publishConfig": {
37
+ "access": "public"
38
+ }
39
+ }
package/src/consts.ts ADDED
@@ -0,0 +1 @@
1
+ export const MAILGUN_MAILER = 'mailgun-mailer'
package/src/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './consts.js'
2
+ export * from './service.js'
package/src/service.ts ADDED
@@ -0,0 +1,10 @@
1
+ import { createService } from '@owlmeans/context'
2
+ import type { MailerService } from '@owlmeans/mailer'
3
+ import { MAILGUN_MAILER } from './consts.js'
4
+
5
+ export const makeMailgunMailerService = (alias = MAILGUN_MAILER): MailerService =>
6
+ createService<MailerService>(alias, {
7
+ send: async () => {
8
+ throw new Error('server-mailer-mailgun: not yet implemented (Phase 2)')
9
+ },
10
+ })
package/tsconfig.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": ["@owlmeans/dep-config/tsconfig.base.json"],
3
+ "compilerOptions": {
4
+ "rootDir": "./src/",
5
+ "outDir": "./build/"
6
+ },
7
+ "exclude": ["./dist/**/*", "./build/**/*", "./tests/**/*", "./*.ts"]
8
+ }