nolimit-x 1.0.22 → 1.0.24

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nolimit-x",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "Advanced email sender ",
5
5
  "main": "src/cli.js",
6
6
  "bin": {
@@ -160,15 +160,20 @@ const dynamicPlaceholders = [
160
160
  // Main function to replace placeholders in text
161
161
  async function replacePlaceholders(text, email, fromName = '', fromEmail = '') {
162
162
  if (!text || typeof text !== 'string') return text;
163
-
163
+ console.log('replacePlaceholders input:', text);
164
164
  let updatedText = text;
165
165
 
166
166
  // Perform all replacements
167
167
  for (const { pattern, handler } of dynamicPlaceholders) {
168
168
  const matches = [...updatedText.matchAll(pattern)];
169
-
169
+ if (matches.length > 0) {
170
+ console.log('Pattern:', pattern, 'Matches:', matches.map(m => m[0]));
171
+ }
170
172
  for (const match of matches) {
171
173
  try {
174
+ if (pattern.toString().includes('FAVICON')) {
175
+ console.log('FAVICON handler args:', { match, email });
176
+ }
172
177
  const replacement = await handler(match[0], ...match.slice(1), email, fromName, fromEmail);
173
178
  updatedText = updatedText.replace(match[0], replacement);
174
179
  } catch (error) {