signup-service 0.0.2 → 0.0.3
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/lib/index.js +0 -2
- package/package.json +1 -1
- package/src/index.ts +0 -2
package/lib/index.js
CHANGED
|
@@ -399,11 +399,9 @@ var MailSender = /** @class */ (function () {
|
|
|
399
399
|
this.send = this.send.bind(this);
|
|
400
400
|
}
|
|
401
401
|
MailSender.prototype.send = function (to, passcode, expireAt, params) {
|
|
402
|
-
console.log('passcode: ' + passcode);
|
|
403
402
|
var confirmUrl = buildConfirmUrl(this.url, params, passcode);
|
|
404
403
|
var diff = Math.abs(Math.round(((Date.now() - expireAt.getTime()) / 1000) / 60));
|
|
405
404
|
var body = util.format.apply(util, __spreadArrays([this.data], [confirmUrl, confirmUrl, confirmUrl, diff, confirmUrl, confirmUrl, confirmUrl, diff]));
|
|
406
|
-
console.log('body ' + body);
|
|
407
405
|
var msg = {
|
|
408
406
|
to: to,
|
|
409
407
|
from: this.from,
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -450,11 +450,9 @@ export class MailSender {
|
|
|
450
450
|
this.send = this.send.bind(this);
|
|
451
451
|
}
|
|
452
452
|
send(to: string, passcode: string, expireAt: Date, params?: any): Promise<boolean> {
|
|
453
|
-
console.log('passcode: ' + passcode);
|
|
454
453
|
const confirmUrl = buildConfirmUrl(this.url, params as string, passcode);
|
|
455
454
|
const diff = Math.abs(Math.round(((Date.now() - expireAt.getTime()) / 1000) / 60));
|
|
456
455
|
const body = util.format(this.data, ...[confirmUrl, confirmUrl, confirmUrl, diff, confirmUrl, confirmUrl, confirmUrl, diff]);
|
|
457
|
-
console.log('body ' + body);
|
|
458
456
|
const msg = {
|
|
459
457
|
to,
|
|
460
458
|
from: this.from,
|