@astralibx/email-rule-engine 4.0.0 → 5.0.0
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 +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,7 +59,7 @@ const engine = createEmailRuleEngine({
|
|
|
59
59
|
text: params.textBody,
|
|
60
60
|
});
|
|
61
61
|
},
|
|
62
|
-
selectAgent: async () => ({ accountId: 'default' }),
|
|
62
|
+
selectAgent: async () => ({ accountId: 'default', email: 'noreply@myapp.com', metadata: {} }),
|
|
63
63
|
findIdentifier: async (email) => {
|
|
64
64
|
const contact = await Contact.findOne({ email });
|
|
65
65
|
return contact ? { id: contact._id.toString(), contactId: contact._id.toString() } : null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astralibx/email-rule-engine",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Rule-based email automation engine with MJML + Handlebars templates, throttling, and distributed locking",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|