@dymo-api/better-auth 1.2.14 → 1.2.15

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Official Dymo API Library for Better Auth.
1
+ # Official Dymo API Library for Better-Auth.
2
2
 
3
3
  You can see the library documentation by clicking [here](https://docs.tpeoficial.com/docs/dymo-api/getting-started/libraries?ch-pg=r-dm-node).
4
4
 
@@ -35,7 +35,7 @@ const dymoEmailPlugin = ({ apiKey, emailRules }) => {
35
35
  reasons: decision.reasons
36
36
  });
37
37
  }
38
- return { context: ctx };
38
+ return { context: ctx, payload: decision.response };
39
39
  })
40
40
  }
41
41
  ]
package/dist/esm/index.js CHANGED
@@ -29,7 +29,7 @@ export const dymoEmailPlugin = ({ apiKey, emailRules }) => {
29
29
  reasons: decision.reasons
30
30
  });
31
31
  }
32
- return { context: ctx };
32
+ return { context: ctx, payload: decision.response };
33
33
  })
34
34
  }
35
35
  ]
@@ -1,4 +1,4 @@
1
- import { EmailValidatorRules } from "dymo-api";
1
+ import { EmailValidatorRules, DataEmailValidationAnalysis } from "dymo-api";
2
2
  interface DymoEmailPluginOptions {
3
3
  apiKey: string;
4
4
  emailRules?: Partial<EmailValidatorRules>;
@@ -10,6 +10,7 @@ export declare const dymoEmailPlugin: ({ apiKey, emailRules }: DymoEmailPluginOp
10
10
  matcher: (context: any) => any;
11
11
  handler: (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
12
12
  context: any;
13
+ payload: DataEmailValidationAnalysis;
13
14
  }>;
14
15
  }[];
15
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dymo-api/better-auth",
3
- "version": "1.2.14",
3
+ "version": "1.2.15",
4
4
  "description": "Flow system for Dymo API.",
5
5
  "main": "dist/cjs/dymo-api.js",
6
6
  "module": "dist/esm/dymo-api.js",
@@ -48,7 +48,7 @@
48
48
  "homepage": "https://dymo.tpeoficial.com",
49
49
  "dependencies": {
50
50
  "better-auth": "^1.3.23",
51
- "dymo-api": "^1.2.14",
51
+ "dymo-api": "^1.2.15",
52
52
  "path": "^0.12.7"
53
53
  },
54
54
  "contributors": [