@bprotsyk/aso-core 2.1.183 → 2.1.185
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.
|
@@ -984,6 +984,11 @@ async function updateCampaignNameToNewPattern(campaign, requireConfirmation = fa
|
|
|
984
984
|
}
|
|
985
985
|
// Helper function to handle user confirmation
|
|
986
986
|
async function confirmUpdate() {
|
|
987
|
+
// Check if running in Node.js environment (not browser)
|
|
988
|
+
if (typeof window !== 'undefined') {
|
|
989
|
+
// Running in browser - skip confirmation
|
|
990
|
+
return false;
|
|
991
|
+
}
|
|
987
992
|
const readline = require('readline');
|
|
988
993
|
const rl = readline.createInterface({
|
|
989
994
|
input: process.stdin,
|
package/package.json
CHANGED
|
@@ -1164,6 +1164,11 @@ async function updateCampaignNameToNewPattern(campaign: IKeitaroCampaign, requir
|
|
|
1164
1164
|
|
|
1165
1165
|
// Helper function to handle user confirmation
|
|
1166
1166
|
async function confirmUpdate(): Promise<boolean> {
|
|
1167
|
+
// Check if running in Node.js environment (not browser)
|
|
1168
|
+
if (typeof window !== 'undefined') {
|
|
1169
|
+
// Running in browser - skip confirmation
|
|
1170
|
+
return false;
|
|
1171
|
+
}
|
|
1167
1172
|
const readline = require('readline');
|
|
1168
1173
|
const rl = readline.createInterface({
|
|
1169
1174
|
input: process.stdin,
|