smtp: update

This commit is contained in:
Koushik Dutta
2022-07-23 15:19:14 -07:00
parent 66d3043056
commit a466d03dca
3 changed files with 6 additions and 5 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/smtp",
"version": "0.0.8",
"version": "0.0.9",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/smtp",
"version": "0.0.8",
"version": "0.0.9",
"dependencies": {
"@types/node": "^16.6.1",
"mailparser": "^3.4.0",

View File

@@ -39,5 +39,5 @@
"@types/mailparser": "^3.0.3",
"@types/smtp-server": "^3.5.7"
},
"version": "0.0.8"
"version": "0.0.9"
}

View File

@@ -173,9 +173,10 @@ class MailPlugin extends ScryptedDeviceBase implements Settings, MixinProvider {
}
async getMixin(mixinDevice: any, mixinDeviceInterfaces: ScryptedInterface[], mixinDeviceState: { [key: string]: any; }): Promise<any> {
const ret = new SmtpMixin(mixinDevice, mixinDeviceState, {
const ret = new SmtpMixin({
mixinDevice, mixinDeviceState,
mixinDeviceInterfaces,
providerNativeId: this.nativeId,
mixinProviderNativeId: this.nativeId,
group: "Mail",
groupKey: "mail",
});