@effect-app/infra 0.85.1 → 0.85.2
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/CHANGELOG.md +6 -0
- package/_cjs/services/Emailer/service.cjs.map +1 -1
- package/_src/services/Emailer/service.ts +1 -2
- package/dist/services/Emailer/service.d.ts +1 -2
- package/dist/services/Emailer/service.d.ts.map +1 -1
- package/dist/services/Emailer/service.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.cjs","names":["Emailer","tsplus_module_1","TagClass","exports"],"sources":["../../../_src/services/Emailer/service.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"service.cjs","names":["Emailer","tsplus_module_1","TagClass","exports"],"sources":["../../../_src/services/Emailer/service.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;AAIA;;;;AAIM,MAAgBA,OAAQ,SAAQC,eAAA,CAAAC,QAAQ,EAAW;AAExDC,OAAA,CAAAH,OAAA,GAAAA,OAAA"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import type { MailContent, MailData } from "@sendgrid/helpers/classes/mail.js"
|
|
2
2
|
import type { ResponseError } from "@sendgrid/mail"
|
|
3
3
|
import type sgMail from "@sendgrid/mail"
|
|
4
|
-
import type { RequestContextContainer } from "../RequestContextContainer.js"
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* @tsplus type Emailer
|
|
8
7
|
* @tsplus companion Emailer.Ops
|
|
9
8
|
*/
|
|
10
9
|
export abstract class Emailer extends TagClass<Emailer>() {
|
|
11
|
-
abstract sendMail: (msg: EmailMsgOptionalFrom) => Effect<
|
|
10
|
+
abstract sendMail: (msg: EmailMsgOptionalFrom) => Effect<never, Error | ResponseError, void>
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export interface SendgridConfig {
|
|
@@ -6,7 +6,6 @@ import { NonEmptyReadonlyArray } from "effect/ReadonlyArray";
|
|
|
6
6
|
import type { MailContent, MailData } from "@sendgrid/helpers/classes/mail.js";
|
|
7
7
|
import type { ResponseError } from "@sendgrid/mail";
|
|
8
8
|
import type sgMail from "@sendgrid/mail";
|
|
9
|
-
import type { RequestContextContainer } from "../RequestContextContainer.js";
|
|
10
9
|
declare const Emailer_base: (abstract new () => {}) & {
|
|
11
10
|
flatMap<R1, E1, B>(f: (a: Emailer) => import("effect/Effect").Effect<R1, E1, B>): import("effect/Effect").Effect<Emailer | R1, E1, B>;
|
|
12
11
|
map<B_1>(f: (a: Emailer) => B_1): import("effect/Effect").Effect<Emailer, never, B_1>;
|
|
@@ -17,7 +16,7 @@ declare const Emailer_base: (abstract new () => {}) & {
|
|
|
17
16
|
* @tsplus companion Emailer.Ops
|
|
18
17
|
*/
|
|
19
18
|
export declare abstract class Emailer extends Emailer_base {
|
|
20
|
-
abstract sendMail: (msg: EmailMsgOptionalFrom) => Effect<
|
|
19
|
+
abstract sendMail: (msg: EmailMsgOptionalFrom) => Effect<never, Error | ResponseError, void>;
|
|
21
20
|
}
|
|
22
21
|
export interface SendgridConfig {
|
|
23
22
|
defaultReplyTo?: Email | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../_src/services/Emailer/service.ts"],"names":[],"mappings":";;;;;AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAA;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAA
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../_src/services/Emailer/service.ts"],"names":[],"mappings":";;;;;AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAA;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAA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ceMappingURL=data:application/json;base64,
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL19zcmMvc2VydmljZXMvRW1haWxlci9zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFJQTs7O0dBR0c7QUFDSCxNQUFNLE9BQWdCLE9BQVEsU0FBUSxnQkFBQSxRQUFRLEVBQVc7Q0FFeEQifQ==
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/infra",
|
|
3
|
-
"version": "0.85.
|
|
3
|
+
"version": "0.85.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"proper-lockfile": "^4.1.2",
|
|
19
19
|
"pure-rand": "6.0.4",
|
|
20
20
|
"redlock": "^4.2.0",
|
|
21
|
-
"@effect-app/core": "0.68.0",
|
|
22
|
-
"@effect-app/prelude": "0.70.0",
|
|
23
21
|
"@effect-app/infra-adapters": "0.59.0",
|
|
22
|
+
"@effect-app/prelude": "0.70.0",
|
|
23
|
+
"@effect-app/core": "0.68.0",
|
|
24
24
|
"@effect-app/schema": "0.62.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|