dacty-launch 1.4.2 → 1.4.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.
@@ -87,10 +87,12 @@ async function main() {
87
87
  process.exit(1);
88
88
  }
89
89
 
90
- // Parse private key: remove quotes, trim whitespace
91
- let privateKey = privateKeyMatch[1].trim();
92
- privateKey = privateKey.replace(/^["']|["']$/g, ''); // Remove surrounding quotes
93
- privateKey = privateKey.trim(); // Trim again after removing quotes
90
+ // Parse private key: remove quotes, newlines, and trim whitespace
91
+ let privateKey = privateKeyMatch[1]
92
+ .trim() // Remove leading/trailing whitespace
93
+ .replace(/\r?\n/g, '') // Remove newlines
94
+ .replace(/^["']|["']$/g, '') // Remove surrounding quotes
95
+ .trim(); // Trim again after removing quotes
94
96
  console.log('✓ Private key loaded from .env\n');
95
97
 
96
98
  // Get token details from user
package/lib/index.mjs CHANGED
@@ -87,10 +87,12 @@ async function main() {
87
87
  process.exit(1);
88
88
  }
89
89
 
90
- // Parse private key: remove quotes, trim whitespace
91
- let privateKey = privateKeyMatch[1].trim();
92
- privateKey = privateKey.replace(/^["']|["']$/g, ''); // Remove surrounding quotes
93
- privateKey = privateKey.trim(); // Trim again after removing quotes
90
+ // Parse private key: remove quotes, newlines, and trim whitespace
91
+ let privateKey = privateKeyMatch[1]
92
+ .trim() // Remove leading/trailing whitespace
93
+ .replace(/\r?\n/g, '') // Remove newlines
94
+ .replace(/^["']|["']$/g, '') // Remove surrounding quotes
95
+ .trim(); // Trim again after removing quotes
94
96
  console.log('✓ Private key loaded from .env\n');
95
97
 
96
98
  // Get token details from user
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dacty-launch",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Launch tokens for agents in the Dactyclaw ecosystem",
5
5
  "type": "module",
6
6
  "bin": {