maiass 5.9.24 → 5.9.26
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/lib/account-info.js +3 -4
- package/lib/commit.js +1 -1
- package/lib/devlog.js +1 -1
- package/lib/token-validator.js +6 -7
- package/lib/version-manager.js +7 -7
- package/package.json +1 -1
package/lib/account-info.js
CHANGED
|
@@ -88,7 +88,7 @@ async function createAnonymousSubscriptionIfNeeded() {
|
|
|
88
88
|
|
|
89
89
|
if (stored) {
|
|
90
90
|
log.success(SYMBOLS.CHECKMARK, 'Anonymous subscription created and stored securely');
|
|
91
|
-
log.info(SYMBOLS.INFO, ` API Key:
|
|
91
|
+
log.info(SYMBOLS.INFO, ` API Key: [stored securely]`);
|
|
92
92
|
log.info(SYMBOLS.INFO, ` Credits: ${credits || 'N/A'}`);
|
|
93
93
|
|
|
94
94
|
if (subscriptionId) {
|
|
@@ -412,13 +412,12 @@ export async function handleAccountInfoCommand(options = {}) {
|
|
|
412
412
|
const custEmail = data.customer_email || '-';
|
|
413
413
|
const statusField = data.status || result.status;
|
|
414
414
|
|
|
415
|
-
const maskedKey = maskToken(apiKey);
|
|
416
415
|
const credit = 'Nugét';
|
|
417
|
-
|
|
416
|
+
|
|
418
417
|
console.log('');
|
|
419
418
|
console.log('Account Info');
|
|
420
419
|
console.log('------------');
|
|
421
|
-
console.log(`API Token:
|
|
420
|
+
console.log(`API Token: [stored securely]`);
|
|
422
421
|
|
|
423
422
|
const subscriptionId = process.env.MAIASS_SUBSCRIPTION_ID;
|
|
424
423
|
if (subscriptionId) {
|
package/lib/commit.js
CHANGED
|
@@ -232,7 +232,7 @@ async function createAnonymousSubscriptionIfNeeded() {
|
|
|
232
232
|
|
|
233
233
|
if (stored) {
|
|
234
234
|
log.success(SYMBOLS.CHECKMARK, 'Anonymous subscription created and stored securely');
|
|
235
|
-
log.info(SYMBOLS.INFO, ` API Key:
|
|
235
|
+
log.info(SYMBOLS.INFO, ` API Key: [stored securely]`);
|
|
236
236
|
log.info(SYMBOLS.INFO, ` Credits: ${credits || 'N/A'}`);
|
|
237
237
|
|
|
238
238
|
if (subscriptionId) {
|
package/lib/devlog.js
CHANGED
|
@@ -117,7 +117,7 @@ export function logThis(message, options = {}) {
|
|
|
117
117
|
|
|
118
118
|
// Only log success confirmation, not the verbose stdout output
|
|
119
119
|
|
|
120
|
-
logger.debug(`Logged to devlog: ${
|
|
120
|
+
logger.debug(`Logged to devlog: ${normalisedMessage}`);
|
|
121
121
|
});
|
|
122
122
|
|
|
123
123
|
// Return immediately (don't wait for devlog.sh to complete)
|
package/lib/token-validator.js
CHANGED
|
@@ -152,9 +152,8 @@ export function displayTokenValidation() {
|
|
|
152
152
|
console.log(`[DEBUG] ${display.symbol} ${tokenConfig.description} (${tokenConfig.name}): ${display.color(display.status)}`);
|
|
153
153
|
|
|
154
154
|
if (validation && validation.valid) {
|
|
155
|
-
//
|
|
156
|
-
|
|
157
|
-
console.log(colors.Gray(`[DEBUG] Preview: ${maskedToken}`));
|
|
155
|
+
// Confirm token is present without logging any part of its value
|
|
156
|
+
console.log(colors.Gray(`[DEBUG] Status: [present]`));
|
|
158
157
|
}
|
|
159
158
|
});
|
|
160
159
|
});
|
|
@@ -165,12 +164,12 @@ export function displayTokenValidation() {
|
|
|
165
164
|
const tokenValue = process.env[tokenConfig.name];
|
|
166
165
|
const validation = tokenValue ? validateTokenValue(tokenValue, tokenConfig) : null;
|
|
167
166
|
const display = getValidationDisplay(validation);
|
|
168
|
-
|
|
167
|
+
|
|
169
168
|
console.log(`[DEBUG] ${display.symbol} ${tokenConfig.description} (${tokenConfig.name}): ${display.color(display.status)}`);
|
|
170
|
-
|
|
169
|
+
|
|
171
170
|
if (validation && validation.valid) {
|
|
172
|
-
|
|
173
|
-
console.log(colors.Gray(`[DEBUG]
|
|
171
|
+
// Confirm token is present without logging any part of its value
|
|
172
|
+
console.log(colors.Gray(`[DEBUG] Status: [present]`));
|
|
174
173
|
}
|
|
175
174
|
});
|
|
176
175
|
|
package/lib/version-manager.js
CHANGED
|
@@ -341,7 +341,7 @@ function updateThemeStyleVersion(filePath, newVersion) {
|
|
|
341
341
|
logger.debug(` style.css written successfully`);
|
|
342
342
|
return true;
|
|
343
343
|
} catch (error) {
|
|
344
|
-
console.error(colors.Red(`${SYMBOLS.CROSS} Error updating ${filePath}: ${error.message}`));
|
|
344
|
+
console.error(colors.Red(`${SYMBOLS.CROSS} Error updating ${filePath}: ${error.message}`)); // codeql[js/clear-text-logging] -- filePath and error.message are file I/O data, not credentials
|
|
345
345
|
return false;
|
|
346
346
|
}
|
|
347
347
|
}
|
|
@@ -404,7 +404,7 @@ function updatePhpVersionConstant(filePath, constantName, newVersion) {
|
|
|
404
404
|
if (definePattern.test(content)) {
|
|
405
405
|
// Replace existing define
|
|
406
406
|
content = content.replace(definePattern, newDefine);
|
|
407
|
-
console.log(colors.BGreen(`${SYMBOLS.CHECKMARK} Updated ${constantName} in ${path.basename(filePath)}`));
|
|
407
|
+
console.log(colors.BGreen(`${SYMBOLS.CHECKMARK} Updated ${constantName} in ${path.basename(filePath)}`)); // codeql[js/clear-text-logging] -- constantName and filePath are version metadata, not credentials
|
|
408
408
|
} else {
|
|
409
409
|
// Add new define after opening PHP tag
|
|
410
410
|
const phpOpenTag = /<\?php/;
|
|
@@ -413,9 +413,9 @@ function updatePhpVersionConstant(filePath, constantName, newVersion) {
|
|
|
413
413
|
if (phpOpenTag.test(content)) {
|
|
414
414
|
logger.debug(` Found PHP opening tag, adding new define`);
|
|
415
415
|
content = content.replace(phpOpenTag, `<?php\n\n${newDefine}`);
|
|
416
|
-
console.log(colors.BGreen(`${SYMBOLS.CHECKMARK} Added ${constantName} to ${path.basename(filePath)}`));
|
|
416
|
+
console.log(colors.BGreen(`${SYMBOLS.CHECKMARK} Added ${constantName} to ${path.basename(filePath)}`)); // codeql[js/clear-text-logging] -- constantName and filePath are version metadata, not credentials
|
|
417
417
|
} else {
|
|
418
|
-
console.log(colors.BYellow(`${SYMBOLS.WARNING} Could not find PHP opening tag in ${path.basename(filePath)}`));
|
|
418
|
+
console.log(colors.BYellow(`${SYMBOLS.WARNING} Could not find PHP opening tag in ${path.basename(filePath)}`)); // codeql[js/clear-text-logging] -- filePath is a file path, not a credential
|
|
419
419
|
return false;
|
|
420
420
|
}
|
|
421
421
|
}
|
|
@@ -424,7 +424,7 @@ function updatePhpVersionConstant(filePath, constantName, newVersion) {
|
|
|
424
424
|
logger.debug(` File written successfully`);
|
|
425
425
|
return true;
|
|
426
426
|
} catch (error) {
|
|
427
|
-
console.error(colors.Red(`${SYMBOLS.CROSS} Error updating ${filePath}: ${error.message}`));
|
|
427
|
+
console.error(colors.Red(`${SYMBOLS.CROSS} Error updating ${filePath}: ${error.message}`)); // codeql[js/clear-text-logging] -- filePath and error.message are file I/O data, not credentials
|
|
428
428
|
return false;
|
|
429
429
|
}
|
|
430
430
|
}
|
|
@@ -467,7 +467,7 @@ function updateWordPressVersions(newVersion, projectPath = process.cwd()) {
|
|
|
467
467
|
success = false;
|
|
468
468
|
}
|
|
469
469
|
} else {
|
|
470
|
-
console.log(colors.BYellow(`${SYMBOLS.WARNING} Could not find main plugin file in ${pluginPath}`));
|
|
470
|
+
console.log(colors.BYellow(`${SYMBOLS.WARNING} Could not find main plugin file in ${pluginPath}`)); // codeql[js/clear-text-logging] -- pluginPath is a file path, not a credential
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
|
|
@@ -515,7 +515,7 @@ function updateWordPressVersions(newVersion, projectPath = process.cwd()) {
|
|
|
515
515
|
success = false;
|
|
516
516
|
}
|
|
517
517
|
} else {
|
|
518
|
-
console.log(colors.BYellow(`${SYMBOLS.WARNING} Could not find functions.php in ${themePath}`));
|
|
518
|
+
console.log(colors.BYellow(`${SYMBOLS.WARNING} Could not find functions.php in ${themePath}`)); // codeql[js/clear-text-logging] -- themePath is a file path, not a credential
|
|
519
519
|
if (functionsFile) {
|
|
520
520
|
logger.debug(` Expected functions.php at: ${functionsFile}`);
|
|
521
521
|
}
|