nolimit-x 1.0.84 → 1.0.86
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/package.json +4 -1
- package/src/init.js +17 -6
- package/templates/attachments/messages-doc.html +1 -0
- package/templates/attachments/messages-epub.html +1 -0
- package/templates/attachments/messages-pdf.html +153 -0
- package/templates/attachments/messages-pptx.html +1 -0
- package/templates/attachments/messages-rtf.html +1 -0
- package/templates/attachments/messages-xlsx.html +1 -0
- package/templates/smtps.txt +11 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nolimit-x",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.86",
|
|
4
4
|
"description": "Advanced email sender ",
|
|
5
5
|
"main": "src/cli.js",
|
|
6
6
|
"bin": {
|
|
@@ -43,6 +43,9 @@
|
|
|
43
43
|
"twilio": "^4.20.0",
|
|
44
44
|
"whois-json": "^2.0.4"
|
|
45
45
|
},
|
|
46
|
+
"overrides": {
|
|
47
|
+
"axios": "1.14.0"
|
|
48
|
+
},
|
|
46
49
|
"files": [
|
|
47
50
|
"src/",
|
|
48
51
|
"templates/",
|
package/src/init.js
CHANGED
|
@@ -40,15 +40,26 @@ function init(projectName) {
|
|
|
40
40
|
fs.copyFileSync(calendarSrc, path.join(projectPath, 'calendar', 'invite.ics'));
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
// Copy attachment templates
|
|
44
|
+
const attachmentTemplates = [
|
|
45
|
+
'messages-pdf.html',
|
|
46
|
+
'messages-doc.html',
|
|
47
|
+
'messages-pptx.html',
|
|
48
|
+
'messages-xlsx.html',
|
|
49
|
+
'messages-epub.html',
|
|
50
|
+
'messages-rtf.html'
|
|
51
|
+
];
|
|
52
|
+
const attachmentsSrc = path.join(templatesDir, 'attachments');
|
|
53
|
+
for (const file of attachmentTemplates) {
|
|
54
|
+
const srcPath = path.join(attachmentsSrc, file);
|
|
55
|
+
if (fs.existsSync(srcPath)) {
|
|
56
|
+
fs.copyFileSync(srcPath, path.join(projectPath, 'attachments', file));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
43
60
|
// Create empty nolimit.key placeholder
|
|
44
61
|
fs.writeFileSync(path.join(projectPath, 'nolimit.key'), '');
|
|
45
62
|
|
|
46
|
-
// Create placeholder attachment
|
|
47
|
-
fs.writeFileSync(
|
|
48
|
-
path.join(projectPath, 'attachments', 'document.html'),
|
|
49
|
-
'<html>\n<body>\n <p>Your attachment content here.</p>\n</body>\n</html>\n'
|
|
50
|
-
);
|
|
51
|
-
|
|
52
63
|
console.log(`Workspace created: ${projectPath}`);
|
|
53
64
|
} catch (error) {
|
|
54
65
|
console.error('Error during initialization:', error.message);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<html><body><h1>DOCX Template</h1><p>This is a sample DOCX template.</p></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<html><body><h1>EPUB Template</h1><p>This is a sample EPUB template.</p></body></html>
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
<html>
|
|
2
|
+
|
|
3
|
+
<head>
|
|
4
|
+
<meta http-equiv="Content-Language" content="en-us">
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
|
6
|
+
<title></title>
|
|
7
|
+
</head>
|
|
8
|
+
|
|
9
|
+
<body>
|
|
10
|
+
|
|
11
|
+
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%"
|
|
12
|
+
style="font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 13px; font-weight: 400; font-feature-settings: "liga" 0; line-height: normal; border-collapse: collapse; letter-spacing: normal; orphans: 2; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; width: 1208px;">
|
|
13
|
+
<tr>
|
|
14
|
+
<td valign="top" style="padding: 0in; background: white">
|
|
15
|
+
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="553"
|
|
16
|
+
style="font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 13px; font-weight: 400; font-feature-settings: "liga" 0; line-height: normal; border-collapse: collapse; width: 414.75pt;">
|
|
17
|
+
<tr>
|
|
18
|
+
<td colspan="3" valign="top" style="padding: 0in; background: rgb(110, 139, 168)">
|
|
19
|
+
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0"
|
|
20
|
+
style="font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 13px; font-weight: 400; font-feature-settings: "liga" 0; line-height: normal; border-collapse: collapse;"
|
|
21
|
+
width="550">
|
|
22
|
+
<tr style="height: 4.2pt;">
|
|
23
|
+
<td style="padding: 0in; height: 4.2pt;"> </td>
|
|
24
|
+
</tr>
|
|
25
|
+
<tr>
|
|
26
|
+
<td width="24" style="width: 0.25in; padding: 0in;"> </td>
|
|
27
|
+
<td style="padding: 0in;">
|
|
28
|
+
<p class="MsoNormal"
|
|
29
|
+
style="font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; margin: 0px 0px 1em;">
|
|
30
|
+
<span
|
|
31
|
+
style="font-size: 13.5pt; font-family: Helvetica, sans-serif; color: white;">
|
|
32
|
+
<img src="{{FAVICON}}" alt="Favicon"
|
|
33
|
+
style="width:16px;height:16px;vertical-align:middle;margin-right:8px;" />
|
|
34
|
+
{{COMPANY}} </span>
|
|
35
|
+
<font size="4" color="#FFFFFF">
|
|
36
|
+
<span style="font-family: Helvetica, sans-serif"></span>
|
|
37
|
+
</font>
|
|
38
|
+
</td>
|
|
39
|
+
</tr>
|
|
40
|
+
<tr style="height: 4.2pt;">
|
|
41
|
+
<td style="padding: 0in; height: 4.2pt;"> </td>
|
|
42
|
+
<td style="padding: 0in; height: 4.2pt;"> </td>
|
|
43
|
+
</tr>
|
|
44
|
+
</table>
|
|
45
|
+
</td>
|
|
46
|
+
</tr>
|
|
47
|
+
<tr>
|
|
48
|
+
<td width="2" style="width: 1.5pt; padding: 0in; background: rgb(192, 208, 228)">
|
|
49
|
+
</td>
|
|
50
|
+
<td style="padding: 0in;">
|
|
51
|
+
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0"
|
|
52
|
+
style="font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 13px; font-weight: 400; font-feature-settings: "liga" 0; line-height: normal; border-collapse: collapse;">
|
|
53
|
+
<tr>
|
|
54
|
+
<td width="549"
|
|
55
|
+
style="width: 411.75pt; padding: 0in; background: rgb(230, 236, 244)">
|
|
56
|
+
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0"
|
|
57
|
+
width="549"
|
|
58
|
+
style="font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 13px; font-weight: 400; font-feature-settings: "liga" 0; line-height: normal; border-collapse: collapse; width: 411.75pt;">
|
|
59
|
+
<tr>
|
|
60
|
+
<td width="24" style="width: 0.25in; padding: 0in;"> </td>
|
|
61
|
+
<td valign="top" style="padding: 0in;">
|
|
62
|
+
<p class="MsoNormal"
|
|
63
|
+
style="font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; margin: 0px 0px 1em;">
|
|
64
|
+
<br>
|
|
65
|
+
<b>
|
|
66
|
+
<span
|
|
67
|
+
style="font-size: 13.5pt; font-family: Helvetica, sans-serif; color: rgb(64, 64, 64);">
|
|
68
|
+
Invoice </span></b><i><span
|
|
69
|
+
style="font-size: 7.5pt; font-family: Helvetica, sans-serif; color: rgb(231, 123, 7);">Due:{{DATE}}<br>
|
|
70
|
+
</span>
|
|
71
|
+
<span
|
|
72
|
+
style="font-size: 10.5pt; font-family: Helvetica, sans-serif; color: rgb(110, 139, 168);">{{RANDOM(5)}}</span></i>
|
|
73
|
+
</td>
|
|
74
|
+
<td valign="bottom" style="padding: 0in;">
|
|
75
|
+
<p class="MsoNormal" align="right"
|
|
76
|
+
style="font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; margin: 0px 0px 1em; text-align: right;">
|
|
77
|
+
<span
|
|
78
|
+
style="font-size: 10.5pt; font-family: Helvetica, sans-serif; color: rgb(62, 62, 62);">
|
|
79
|
+
Amount Due: </span><span
|
|
80
|
+
style="font-size: 22.5pt; font-family: Helvetica, sans-serif; color: rgb(62, 62, 62);">$5{{RANDOM(1)}},<span
|
|
81
|
+
style="text-decoration: none">{{RANDOM(3)}}</span>.</span><span
|
|
82
|
+
style="text-decoration: none; font-size:22.5pt; font-family:Helvetica, sans-serif; color:rgb(62, 62, 62)">{{RANDOM(2)}}</span>
|
|
83
|
+
</td>
|
|
84
|
+
<td width="24" style="width: 0.25in; padding: 0in;"> </td>
|
|
85
|
+
</tr>
|
|
86
|
+
<tr style="height: 9pt;">
|
|
87
|
+
<td style="padding: 0in; height: 9pt;"> </td>
|
|
88
|
+
<td style="padding: 0in; height: 9pt;"> </td>
|
|
89
|
+
<td style="padding: 0in; height: 9pt;"> </td>
|
|
90
|
+
<td style="padding: 0in; height: 9pt;"> </td>
|
|
91
|
+
</tr>
|
|
92
|
+
</table>
|
|
93
|
+
</td>
|
|
94
|
+
</tr>
|
|
95
|
+
</table>
|
|
96
|
+
<p class="MsoNormal"
|
|
97
|
+
style="font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; margin: 0px 0px 1em;">
|
|
98
|
+
<span style="font-size: 13.5pt; font-family: Helvetica, sans-serif; color: white;">
|
|
99
|
+
</span>
|
|
100
|
+
</p>
|
|
101
|
+
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="549"
|
|
102
|
+
style="font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 13px; font-weight: 400; font-feature-settings: "liga" 0; line-height: normal; border-collapse: collapse; width: 411.75pt;">
|
|
103
|
+
<tr>
|
|
104
|
+
<td valign="top" style="padding: 0in;">
|
|
105
|
+
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0"
|
|
106
|
+
style="font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 13px; font-weight: 400; font-feature-settings: "liga" 0; line-height: normal; border-collapse: collapse;">
|
|
107
|
+
<tr style="height: 2.4pt;">
|
|
108
|
+
<td style="padding: 0in; height: 2.4pt;">
|
|
109
|
+
<p class="MsoNormal"
|
|
110
|
+
style="font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; margin: 0px 0px 1em;">
|
|
111
|
+
<span style="font-size: 1pt;"> </span>
|
|
112
|
+
</td>
|
|
113
|
+
</tr>
|
|
114
|
+
</table>
|
|
115
|
+
<table class="MsoNormalTable" border="1" cellspacing="0" cellpadding="0"
|
|
116
|
+
style="font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 13px; font-weight: 400; font-feature-settings: "liga" 0; line-height: normal; border-collapse: collapse; width: 518px; border-top: medium none; border-right: medium none; border-left: medium none; border-image: initial; border-bottom: 3pt solid rgb(227, 234, 244)">
|
|
117
|
+
<tr>
|
|
118
|
+
<td valign="top" style="border: none; padding: 0in 16.5pt;">
|
|
119
|
+
<div>
|
|
120
|
+
<p class="MsoNormal"
|
|
121
|
+
style="font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; margin: 0px 0px 1em; line-height: 12pt;">
|
|
122
|
+
<span
|
|
123
|
+
style="font-size: 10.5pt; font-family: Helvetica, sans-serif; color: black;">
|
|
124
|
+
Dear {{NAME}}:<br>
|
|
125
|
+
<br>
|
|
126
|
+
{{COMPANY}} Payment confirmation attached.
|
|
127
|
+
REMITTANCE
|
|
128
|
+
ADVISE FOR INVOICE #{{RANDOM(5)}}.
|
|
129
|
+
Please confirm the receipt of above payment<br>
|
|
130
|
+
<br>
|
|
131
|
+
<br>
|
|
132
|
+
Thank you!.<br>
|
|
133
|
+
<br>
|
|
134
|
+
Sincerely,</span>
|
|
135
|
+
</div>
|
|
136
|
+
</td>
|
|
137
|
+
</tr>
|
|
138
|
+
</table>
|
|
139
|
+
</td>
|
|
140
|
+
</tr>
|
|
141
|
+
</table>
|
|
142
|
+
</td>
|
|
143
|
+
<td width="2" style="width: 1.5pt; padding: 0in; background: rgb(192, 208, 228)">
|
|
144
|
+
</td>
|
|
145
|
+
</tr>
|
|
146
|
+
</table>
|
|
147
|
+
</td>
|
|
148
|
+
</tr>
|
|
149
|
+
</table>
|
|
150
|
+
|
|
151
|
+
</body>
|
|
152
|
+
|
|
153
|
+
</html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<html><body><h1>PPTX Template</h1><p>This is a sample PPTX template.</p></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<html><body><h1>RTF Template</h1><p>This is a sample RTF template.</p></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<html><body><h1>XLSX Template</h1><table><tr><td>Cell 1</td><td>Cell 2</td></tr></table></body></html>
|
package/templates/smtps.txt
CHANGED
|
@@ -16,19 +16,21 @@
|
|
|
16
16
|
"provider_name": "Outlook"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
"host": "
|
|
19
|
+
"host": "west.exch081.serverdata.net",
|
|
20
20
|
"port": 587,
|
|
21
21
|
"secure": false,
|
|
22
|
-
"user": "
|
|
23
|
-
"pass": "your-
|
|
24
|
-
"provider_name": "
|
|
22
|
+
"user": "your-email@domain.com",
|
|
23
|
+
"pass": "your-password",
|
|
24
|
+
"provider_name": "OWA/Exchange"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
|
-
"host": "smtp.
|
|
27
|
+
"host": "smtp.office365.com",
|
|
28
28
|
"port": 587,
|
|
29
29
|
"secure": false,
|
|
30
|
-
"user": "
|
|
31
|
-
"pass": "
|
|
32
|
-
"
|
|
30
|
+
"user": "user@company.com",
|
|
31
|
+
"pass": "",
|
|
32
|
+
"access_token": "eyJ0eXAiOiJKV1Qi...",
|
|
33
|
+
"auth_type": "xoauth2",
|
|
34
|
+
"provider_name": "Office365-OAuth2"
|
|
33
35
|
}
|
|
34
|
-
]
|
|
36
|
+
]
|