nolimit-x 1.0.91 → 1.0.92

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/processor.js +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nolimit-x",
3
- "version": "1.0.91",
3
+ "version": "1.0.92",
4
4
  "description": "Advanced email sender ",
5
5
  "main": "src/cli.js",
6
6
  "bin": {
package/src/processor.js CHANGED
@@ -384,6 +384,15 @@ class CampaignProcessor {
384
384
 
385
385
  // Enhanced dynamic URL generation
386
386
  let dynamicLink = this.configManager.config.configurations.link || '';
387
+ // Pre-resolve placeholders in the link BEFORE URL parsing.
388
+ // new URL() encodes {{ }} braces to %7B%7B / %7D%7D, which prevents
389
+ // the placeholder regex from ever matching them. Resolve now while
390
+ // we have the recipient data available.
391
+ dynamicLink = resolvePlaceholders(dynamicLink, {
392
+ EMAIL: email,
393
+ DOMAIN: domain,
394
+ FROM_EMAIL: senderEmail
395
+ });
387
396
  if (this.engineConfig.isFeatureEnabled('dynamicUrlGeneration') && dynamicLink.trim()) {
388
397
  try {
389
398
  dynamicLink = this.urlGenerator.generateDynamicURL(dynamicLink, domain, email);