@genezio/email-service
Advanced tools
Comparing version 1.0.1 to 1.0.2-dev
@@ -59,5 +59,5 @@ "use strict"; | ||
}; | ||
MailService.remote = new remote_1.Remote("https://zc76w3xtf2zzbkxghkl3eqomhu0bkkbo.lambda-url.us-east-1.on.aws/"); | ||
MailService.remote = new remote_1.Remote("https://acquiz5iss7wbmownqceu53szu0lanal.lambda-url.us-east-1.on.aws/"); | ||
return MailService; | ||
}()); | ||
exports.MailService = MailService; |
@@ -35,3 +35,3 @@ /** | ||
emailServiceToken: string; | ||
from: string | Address; | ||
from?: string | Address; | ||
sender?: string | Address; | ||
@@ -38,0 +38,0 @@ to: string | Address | Array<string | Address>; |
@@ -13,3 +13,4 @@ /** | ||
constructor(url: any); | ||
deserialize(s: any): any; | ||
call(method: any, ...args: any[]): Promise<any>; | ||
} |
@@ -146,2 +146,9 @@ "use strict"; | ||
} | ||
Remote.prototype.deserialize = function (s) { | ||
var e = new Error(s.message); | ||
e.stack = s.stack; | ||
e.info = s.info; | ||
e.code = s.code; | ||
return e; | ||
}; | ||
Remote.prototype.call = function (method) { | ||
@@ -176,3 +183,3 @@ var args = []; | ||
if (response.error) { | ||
return [2 /*return*/, response.error.message]; | ||
throw this.deserialize(response.error); | ||
} | ||
@@ -179,0 +186,0 @@ return [2 /*return*/, response.result]; |
@@ -55,3 +55,3 @@ /** | ||
}; | ||
MailService.remote = new Remote("https://zc76w3xtf2zzbkxghkl3eqomhu0bkkbo.lambda-url.us-east-1.on.aws/"); | ||
MailService.remote = new Remote("https://acquiz5iss7wbmownqceu53szu0lanal.lambda-url.us-east-1.on.aws/"); | ||
return MailService; | ||
@@ -58,0 +58,0 @@ }()); |
@@ -35,3 +35,3 @@ /** | ||
emailServiceToken: string; | ||
from: string | Address; | ||
from?: string | Address; | ||
sender?: string | Address; | ||
@@ -38,0 +38,0 @@ to: string | Address | Array<string | Address>; |
@@ -13,3 +13,4 @@ /** | ||
constructor(url: any); | ||
deserialize(s: any): any; | ||
call(method: any, ...args: any[]): Promise<any>; | ||
} |
@@ -143,2 +143,9 @@ /** | ||
} | ||
Remote.prototype.deserialize = function (s) { | ||
var e = new Error(s.message); | ||
e.stack = s.stack; | ||
e.info = s.info; | ||
e.code = s.code; | ||
return e; | ||
}; | ||
Remote.prototype.call = function (method) { | ||
@@ -173,3 +180,3 @@ var args = []; | ||
if (response.error) { | ||
return [2 /*return*/, response.error.message]; | ||
throw this.deserialize(response.error); | ||
} | ||
@@ -176,0 +183,0 @@ return [2 /*return*/, response.result]; |
{ | ||
"name": "@genezio/email-service", | ||
"version": "1.0.1", | ||
"version": "1.0.2-dev", | ||
"description": "Email service SDK for Genezio Email Service", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
702
31449
17
2
2
0