bxo 0.0.5-dev.50 → 0.0.5-dev.51
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/index.ts +0 -5
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -1185,7 +1185,6 @@ export default class BXO {
|
|
|
1185
1185
|
let responseHeaders = ctx.set.headers ? { ...ctx.set.headers } : {};
|
|
1186
1186
|
|
|
1187
1187
|
// Handle cookies if any are set
|
|
1188
|
-
console.log('Checking cookies:', internalCookies.length, internalCookies);
|
|
1189
1188
|
if (internalCookies.length > 0) {
|
|
1190
1189
|
const cookieHeaders = internalCookies.map(cookie => {
|
|
1191
1190
|
let cookieString = `${encodeURIComponent(cookie.name)}=${encodeURIComponent(cookie.value)}`;
|
|
@@ -1289,7 +1288,6 @@ export default class BXO {
|
|
|
1289
1288
|
// Server management methods
|
|
1290
1289
|
async start(port: number = 3000, hostname: string = 'localhost'): Promise<void> {
|
|
1291
1290
|
if (this.isRunning) {
|
|
1292
|
-
console.log('⚠️ Server is already running');
|
|
1293
1291
|
return;
|
|
1294
1292
|
}
|
|
1295
1293
|
|
|
@@ -1356,7 +1354,6 @@ export default class BXO {
|
|
|
1356
1354
|
|
|
1357
1355
|
async stop(): Promise<void> {
|
|
1358
1356
|
if (!this.isRunning) {
|
|
1359
|
-
console.log('⚠️ Server is not running');
|
|
1360
1357
|
return;
|
|
1361
1358
|
}
|
|
1362
1359
|
|
|
@@ -1392,8 +1389,6 @@ export default class BXO {
|
|
|
1392
1389
|
await this.hooks.onAfterStop(this);
|
|
1393
1390
|
}
|
|
1394
1391
|
|
|
1395
|
-
console.log('✅ Server stopped successfully');
|
|
1396
|
-
|
|
1397
1392
|
} catch (error) {
|
|
1398
1393
|
console.error('❌ Error stopping server:', error);
|
|
1399
1394
|
// Even if there's an error, reset the state
|