fss-link 1.0.71 → 1.0.73
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/bundle/fss-link.js +35 -17
- package/package.json +1 -1
package/bundle/fss-link.js
CHANGED
|
@@ -22379,7 +22379,7 @@ function createContentGeneratorConfig(config, authType) {
|
|
|
22379
22379
|
return contentGeneratorConfig;
|
|
22380
22380
|
}
|
|
22381
22381
|
async function createContentGenerator(config, gcConfig, sessionId2) {
|
|
22382
|
-
const version = "1.0.
|
|
22382
|
+
const version = "1.0.73";
|
|
22383
22383
|
const userAgent = `FSS-Link/${version} (${process.platform}; ${process.arch})`;
|
|
22384
22384
|
const baseHeaders = {
|
|
22385
22385
|
"User-Agent": userAgent
|
|
@@ -369178,29 +369178,39 @@ var DatabaseConnectionPool = class {
|
|
|
369178
369178
|
*/
|
|
369179
369179
|
async initialize() {
|
|
369180
369180
|
if (this.initialized) return;
|
|
369181
|
-
|
|
369182
|
-
|
|
369183
|
-
|
|
369184
|
-
|
|
369185
|
-
|
|
369181
|
+
try {
|
|
369182
|
+
this.SQL = await initSqlJs();
|
|
369183
|
+
for (let i = 0; i < Math.min(2, this.maxConnections); i++) {
|
|
369184
|
+
const connection = await this.createConnection();
|
|
369185
|
+
this.connections.push(connection);
|
|
369186
|
+
this.availableConnections.push(connection);
|
|
369187
|
+
}
|
|
369188
|
+
this.initialized = true;
|
|
369189
|
+
} catch (error) {
|
|
369190
|
+
console.warn("Database pool initialization failed:", error);
|
|
369191
|
+
throw error;
|
|
369186
369192
|
}
|
|
369187
|
-
this.initialized = true;
|
|
369188
369193
|
}
|
|
369189
369194
|
/**
|
|
369190
369195
|
* Create a new database connection
|
|
369191
369196
|
*/
|
|
369192
369197
|
async createConnection() {
|
|
369193
369198
|
let db;
|
|
369194
|
-
|
|
369195
|
-
|
|
369196
|
-
|
|
369197
|
-
|
|
369198
|
-
|
|
369199
|
+
try {
|
|
369200
|
+
if (fs48.existsSync(this.dbPath)) {
|
|
369201
|
+
const data = fs48.readFileSync(this.dbPath);
|
|
369202
|
+
db = new this.SQL.Database(data);
|
|
369203
|
+
} else {
|
|
369204
|
+
db = new this.SQL.Database();
|
|
369205
|
+
}
|
|
369206
|
+
db.exec("PRAGMA journal_mode=WAL;");
|
|
369207
|
+
db.exec("PRAGMA busy_timeout=5000;");
|
|
369208
|
+
db.exec("PRAGMA foreign_keys=ON;");
|
|
369209
|
+
return db;
|
|
369210
|
+
} catch (error) {
|
|
369211
|
+
console.warn("Database connection creation failed:", error);
|
|
369212
|
+
throw error;
|
|
369199
369213
|
}
|
|
369200
|
-
db.exec("PRAGMA journal_mode=WAL;");
|
|
369201
|
-
db.exec("PRAGMA busy_timeout=5000;");
|
|
369202
|
-
db.exec("PRAGMA foreign_keys=ON;");
|
|
369203
|
-
return db;
|
|
369204
369214
|
}
|
|
369205
369215
|
/**
|
|
369206
369216
|
* Get a connection from the pool
|
|
@@ -373525,7 +373535,7 @@ async function getPackageJson() {
|
|
|
373525
373535
|
// packages/cli/src/utils/version.ts
|
|
373526
373536
|
async function getCliVersion() {
|
|
373527
373537
|
const pkgJson = await getPackageJson();
|
|
373528
|
-
return "1.0.
|
|
373538
|
+
return "1.0.73";
|
|
373529
373539
|
}
|
|
373530
373540
|
|
|
373531
373541
|
// packages/cli/src/ui/commands/aboutCommand.ts
|
|
@@ -407642,6 +407652,8 @@ main().catch((error) => {
|
|
|
407642
407652
|
console.error("An unexpected critical error occurred:");
|
|
407643
407653
|
console.error(String(error));
|
|
407644
407654
|
if (error instanceof Error) {
|
|
407655
|
+
console.error("Error name:", error.name);
|
|
407656
|
+
console.error("Error message:", error.message);
|
|
407645
407657
|
console.error("Error stack:", error.stack);
|
|
407646
407658
|
}
|
|
407647
407659
|
if (error && typeof error === "object" && "stack" in error) {
|
|
@@ -407649,6 +407661,12 @@ main().catch((error) => {
|
|
|
407649
407661
|
}
|
|
407650
407662
|
console.error("Error type:", typeof error);
|
|
407651
407663
|
console.error("Error constructor:", error?.constructor?.name);
|
|
407664
|
+
console.error("Error JSON:", JSON.stringify(error, null, 2));
|
|
407665
|
+
if (String(error) === "Statement closed") {
|
|
407666
|
+
console.error("*** THIS IS THE SQL.JS STATEMENT CLOSED ERROR ***");
|
|
407667
|
+
console.error("*** CALL STACK AT TIME OF ERROR ***");
|
|
407668
|
+
console.trace();
|
|
407669
|
+
}
|
|
407652
407670
|
process.exit(1);
|
|
407653
407671
|
});
|
|
407654
407672
|
/**
|