Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
9d6b7f3b29 | |||
8be9fc38b6 |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartmail",
|
||||
"version": "1.0.9",
|
||||
"version": "1.0.10",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartmail",
|
||||
"version": "1.0.9",
|
||||
"version": "1.0.10",
|
||||
"private": false,
|
||||
"description": "a unified format for representing and dealing with mails",
|
||||
"main": "dist/index.js",
|
||||
|
@ -22,6 +22,10 @@ export class Smartmail<T> {
|
||||
this.attachments.push(smartfileArg);
|
||||
}
|
||||
|
||||
public getCretionObject(): T {
|
||||
return this.options.creationObjectRef;
|
||||
}
|
||||
|
||||
public getSubject(dataArg: any = {}) {
|
||||
const smartmustache = new plugins.smartmustache.SmartMustache(this.options.subject);
|
||||
return smartmustache.applyData(dataArg);
|
||||
|
Reference in New Issue
Block a user