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.
- package/bin/dacty-launch.mjs +6 -4
- package/lib/index.mjs +6 -4
- package/package.json +1 -1
package/bin/dacty-launch.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]
|
|
92
|
-
|
|
93
|
-
|
|
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]
|
|
92
|
-
|
|
93
|
-
|
|
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
|