playcademy 0.16.15 → 0.16.16
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/dist/cli.js +1 -1
- package/dist/db.js +5 -1
- package/dist/index.js +7 -9
- package/dist/utils.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
package/dist/db.js
CHANGED
|
@@ -1319,7 +1319,6 @@ function getLogPrefix(level) {
|
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
1321
1321
|
function displaySeedLogs(logs, status = "success") {
|
|
1322
|
-
if (status === "error") logger.newLine();
|
|
1323
1322
|
const barColor = status === "error" ? red2 : green2;
|
|
1324
1323
|
const bar = barColor("\u2502");
|
|
1325
1324
|
let trimmedLogs = logs;
|
|
@@ -1343,6 +1342,7 @@ function handleSeedError(error) {
|
|
|
1343
1342
|
}
|
|
1344
1343
|
}
|
|
1345
1344
|
if (seedLogs && seedLogs.length > 0) {
|
|
1345
|
+
logger.newLine();
|
|
1346
1346
|
displaySeedLogs(seedLogs, "error");
|
|
1347
1347
|
return true;
|
|
1348
1348
|
}
|
|
@@ -1352,6 +1352,7 @@ function handleSeedError(error) {
|
|
|
1352
1352
|
const message = error.message;
|
|
1353
1353
|
const errorName = error.name;
|
|
1354
1354
|
if (errorName === "TimeoutError" || message.includes("timed out")) {
|
|
1355
|
+
logger.newLine();
|
|
1355
1356
|
logger.admonition("warning", "Seed Timed Out", [
|
|
1356
1357
|
"Your seed operation took too long to complete.",
|
|
1357
1358
|
"",
|
|
@@ -1365,6 +1366,7 @@ function handleSeedError(error) {
|
|
|
1365
1366
|
return true;
|
|
1366
1367
|
}
|
|
1367
1368
|
if (errorName === "ServiceUnavailableError" || message.includes("worker failed") || message.includes("Cloudflare")) {
|
|
1369
|
+
logger.newLine();
|
|
1368
1370
|
logger.admonition("warning", "Service Unavailable", [
|
|
1369
1371
|
"Unable to deploy the seed worker to Cloudflare.",
|
|
1370
1372
|
"",
|
|
@@ -1376,6 +1378,7 @@ function handleSeedError(error) {
|
|
|
1376
1378
|
return true;
|
|
1377
1379
|
}
|
|
1378
1380
|
if (message.includes("ECONNREFUSED") || message.includes("fetch failed") || message.includes("network")) {
|
|
1381
|
+
logger.newLine();
|
|
1379
1382
|
logger.admonition("warning", "Network Error", [
|
|
1380
1383
|
"Unable to connect to the Playcademy API.",
|
|
1381
1384
|
"",
|
|
@@ -1384,6 +1387,7 @@ function handleSeedError(error) {
|
|
|
1384
1387
|
return true;
|
|
1385
1388
|
}
|
|
1386
1389
|
if (errorName === "UnauthorizedError" || errorName === "AccessDeniedError" || message.includes("Unauthorized") || message.includes("Access denied")) {
|
|
1390
|
+
logger.newLine();
|
|
1387
1391
|
logger.admonition("warning", "Authentication Error", [
|
|
1388
1392
|
"You do not have permission to seed this database.",
|
|
1389
1393
|
"",
|
package/dist/index.js
CHANGED
|
@@ -1678,11 +1678,6 @@ function logAndExit(error, options = {}) {
|
|
|
1678
1678
|
process.stderr.write("\n");
|
|
1679
1679
|
process.exit(code);
|
|
1680
1680
|
}
|
|
1681
|
-
function formatErrorAndExit(error, code = 1) {
|
|
1682
|
-
logger.configError(error);
|
|
1683
|
-
process.stderr.write("\n");
|
|
1684
|
-
process.exit(code);
|
|
1685
|
-
}
|
|
1686
1681
|
|
|
1687
1682
|
// ../utils/src/ansi.ts
|
|
1688
1683
|
var colors = {
|
|
@@ -4303,7 +4298,7 @@ import { join as join13 } from "path";
|
|
|
4303
4298
|
// package.json with { type: 'json' }
|
|
4304
4299
|
var package_default2 = {
|
|
4305
4300
|
name: "playcademy",
|
|
4306
|
-
version: "0.16.
|
|
4301
|
+
version: "0.16.15",
|
|
4307
4302
|
type: "module",
|
|
4308
4303
|
exports: {
|
|
4309
4304
|
".": {
|
|
@@ -9707,7 +9702,6 @@ function getLogPrefix(level) {
|
|
|
9707
9702
|
}
|
|
9708
9703
|
}
|
|
9709
9704
|
function displaySeedLogs(logs, status = "success") {
|
|
9710
|
-
if (status === "error") logger.newLine();
|
|
9711
9705
|
const barColor = status === "error" ? red5 : green7;
|
|
9712
9706
|
const bar = barColor("\u2502");
|
|
9713
9707
|
let trimmedLogs = logs;
|
|
@@ -9731,6 +9725,7 @@ function handleSeedError(error) {
|
|
|
9731
9725
|
}
|
|
9732
9726
|
}
|
|
9733
9727
|
if (seedLogs && seedLogs.length > 0) {
|
|
9728
|
+
logger.newLine();
|
|
9734
9729
|
displaySeedLogs(seedLogs, "error");
|
|
9735
9730
|
return true;
|
|
9736
9731
|
}
|
|
@@ -9740,6 +9735,7 @@ function handleSeedError(error) {
|
|
|
9740
9735
|
const message = error.message;
|
|
9741
9736
|
const errorName = error.name;
|
|
9742
9737
|
if (errorName === "TimeoutError" || message.includes("timed out")) {
|
|
9738
|
+
logger.newLine();
|
|
9743
9739
|
logger.admonition("warning", "Seed Timed Out", [
|
|
9744
9740
|
"Your seed operation took too long to complete.",
|
|
9745
9741
|
"",
|
|
@@ -9753,6 +9749,7 @@ function handleSeedError(error) {
|
|
|
9753
9749
|
return true;
|
|
9754
9750
|
}
|
|
9755
9751
|
if (errorName === "ServiceUnavailableError" || message.includes("worker failed") || message.includes("Cloudflare")) {
|
|
9752
|
+
logger.newLine();
|
|
9756
9753
|
logger.admonition("warning", "Service Unavailable", [
|
|
9757
9754
|
"Unable to deploy the seed worker to Cloudflare.",
|
|
9758
9755
|
"",
|
|
@@ -9764,6 +9761,7 @@ function handleSeedError(error) {
|
|
|
9764
9761
|
return true;
|
|
9765
9762
|
}
|
|
9766
9763
|
if (message.includes("ECONNREFUSED") || message.includes("fetch failed") || message.includes("network")) {
|
|
9764
|
+
logger.newLine();
|
|
9767
9765
|
logger.admonition("warning", "Network Error", [
|
|
9768
9766
|
"Unable to connect to the Playcademy API.",
|
|
9769
9767
|
"",
|
|
@@ -9772,6 +9770,7 @@ function handleSeedError(error) {
|
|
|
9772
9770
|
return true;
|
|
9773
9771
|
}
|
|
9774
9772
|
if (errorName === "UnauthorizedError" || errorName === "AccessDeniedError" || message.includes("Unauthorized") || message.includes("Access denied")) {
|
|
9773
|
+
logger.newLine();
|
|
9775
9774
|
logger.admonition("warning", "Authentication Error", [
|
|
9776
9775
|
"You do not have permission to seed this database.",
|
|
9777
9776
|
"",
|
|
@@ -11571,7 +11570,7 @@ var getStatusCommand = new Command13("status").description("Check your developer
|
|
|
11571
11570
|
});
|
|
11572
11571
|
|
|
11573
11572
|
// package.json
|
|
11574
|
-
var version2 = "0.16.
|
|
11573
|
+
var version2 = "0.16.15";
|
|
11575
11574
|
|
|
11576
11575
|
// src/commands/dev/server.ts
|
|
11577
11576
|
function setupCleanupHandlers(workspace, getServer) {
|
|
@@ -16039,7 +16038,6 @@ export {
|
|
|
16039
16038
|
formatBytes,
|
|
16040
16039
|
formatConfigWithPrettier,
|
|
16041
16040
|
formatError,
|
|
16042
|
-
formatErrorAndExit,
|
|
16043
16041
|
formatSize,
|
|
16044
16042
|
generateEntryCode,
|
|
16045
16043
|
generateJsConfig,
|
package/dist/utils.js
CHANGED
package/dist/version.js
CHANGED