playcademy 0.14.32-alpha.1 → 0.14.32
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 -4
- package/dist/db.js +0 -3
- package/dist/index.js +4 -21
- package/dist/utils.js +1 -14
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1269,9 +1269,6 @@ function hasPackageJson(dir) {
|
|
|
1269
1269
|
return existsSync3(resolve2(dir || getWorkspace(), "package.json"));
|
|
1270
1270
|
}
|
|
1271
1271
|
|
|
1272
|
-
// src/lib/core/errors.ts
|
|
1273
|
-
import { ApiError as ApiError2 } from "@playcademy/sdk/internal";
|
|
1274
|
-
|
|
1275
1272
|
// src/lib/core/gitignore.ts
|
|
1276
1273
|
function normalizeGitignoreEntry(entry) {
|
|
1277
1274
|
return entry.replace(/^\/+/, "").replace(/\/+$/, "");
|
|
@@ -2757,7 +2754,7 @@ import { join as join13 } from "path";
|
|
|
2757
2754
|
// package.json with { type: 'json' }
|
|
2758
2755
|
var package_default2 = {
|
|
2759
2756
|
name: "playcademy",
|
|
2760
|
-
version: "0.14.
|
|
2757
|
+
version: "0.14.31",
|
|
2761
2758
|
type: "module",
|
|
2762
2759
|
exports: {
|
|
2763
2760
|
".": {
|
package/dist/db.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1411,20 +1411,7 @@ function printDebugInfo() {
|
|
|
1411
1411
|
}
|
|
1412
1412
|
|
|
1413
1413
|
// src/lib/core/errors.ts
|
|
1414
|
-
import { ApiError as ApiError2 } from "@playcademy/sdk/internal";
|
|
1415
1414
|
function getErrorMessage(error) {
|
|
1416
|
-
if (error instanceof ApiError2 && error.details) {
|
|
1417
|
-
const details = error.details;
|
|
1418
|
-
if (details.error && typeof details.error === "object") {
|
|
1419
|
-
const errorObj = details.error;
|
|
1420
|
-
if (typeof errorObj.message === "string") {
|
|
1421
|
-
return errorObj.message;
|
|
1422
|
-
}
|
|
1423
|
-
}
|
|
1424
|
-
if (typeof details.message === "string") {
|
|
1425
|
-
return details.message;
|
|
1426
|
-
}
|
|
1427
|
-
}
|
|
1428
1415
|
if (error instanceof Error) return error.message;
|
|
1429
1416
|
if (typeof error === "string") return error;
|
|
1430
1417
|
if (error && typeof error === "object" && "message" in error) {
|
|
@@ -1437,10 +1424,6 @@ function logAndExit(error, options = {}) {
|
|
|
1437
1424
|
const message = getErrorMessage(error);
|
|
1438
1425
|
const fullMessage = prefix ? `${prefix}: ${message}` : message;
|
|
1439
1426
|
logger.error(fullMessage);
|
|
1440
|
-
if (process.env.DEBUG && error instanceof ApiError2 && error.details) {
|
|
1441
|
-
logger.newLine();
|
|
1442
|
-
logger.json(error.details, 1);
|
|
1443
|
-
}
|
|
1444
1427
|
logger.newLine();
|
|
1445
1428
|
process.exit(code);
|
|
1446
1429
|
}
|
|
@@ -3556,7 +3539,7 @@ import { join as join12 } from "path";
|
|
|
3556
3539
|
// package.json with { type: 'json' }
|
|
3557
3540
|
var package_default2 = {
|
|
3558
3541
|
name: "playcademy",
|
|
3559
|
-
version: "0.14.
|
|
3542
|
+
version: "0.14.31",
|
|
3560
3543
|
type: "module",
|
|
3561
3544
|
exports: {
|
|
3562
3545
|
".": {
|
|
@@ -7561,7 +7544,7 @@ var INTERACTION_TYPE = Object.fromEntries(
|
|
|
7561
7544
|
);
|
|
7562
7545
|
|
|
7563
7546
|
// src/lib/deploy/secrets.ts
|
|
7564
|
-
import { ApiError as
|
|
7547
|
+
import { ApiError as ApiError2 } from "@playcademy/sdk/internal";
|
|
7565
7548
|
function compareSecrets(current, previous) {
|
|
7566
7549
|
const currentKeys = Object.keys(current);
|
|
7567
7550
|
const changes = [];
|
|
@@ -7587,7 +7570,7 @@ async function fetchSecretsForDeployment(slug) {
|
|
|
7587
7570
|
const keys = Object.keys(secrets);
|
|
7588
7571
|
return { secrets, keys };
|
|
7589
7572
|
} catch (error) {
|
|
7590
|
-
if (error instanceof
|
|
7573
|
+
if (error instanceof ApiError2 && error.status === 404) {
|
|
7591
7574
|
logger.debug(`[Secrets] No secrets configured for project (404)`);
|
|
7592
7575
|
return { secrets: {}, keys: [] };
|
|
7593
7576
|
}
|
|
@@ -9743,7 +9726,7 @@ var getStatusCommand = new Command12("status").description("Check your developer
|
|
|
9743
9726
|
});
|
|
9744
9727
|
|
|
9745
9728
|
// package.json
|
|
9746
|
-
var version2 = "0.14.
|
|
9729
|
+
var version2 = "0.14.31";
|
|
9747
9730
|
|
|
9748
9731
|
// src/commands/dev/server.ts
|
|
9749
9732
|
function setupCleanupHandlers(workspace, getServer) {
|
package/dist/utils.js
CHANGED
|
@@ -1303,20 +1303,7 @@ Stop the other server or specify a different port with --port <number>.`
|
|
|
1303
1303
|
import { PlaycademyClient } from "@playcademy/sdk/internal";
|
|
1304
1304
|
|
|
1305
1305
|
// src/lib/core/errors.ts
|
|
1306
|
-
import { ApiError as ApiError2 } from "@playcademy/sdk/internal";
|
|
1307
1306
|
function getErrorMessage(error) {
|
|
1308
|
-
if (error instanceof ApiError2 && error.details) {
|
|
1309
|
-
const details = error.details;
|
|
1310
|
-
if (details.error && typeof details.error === "object") {
|
|
1311
|
-
const errorObj = details.error;
|
|
1312
|
-
if (typeof errorObj.message === "string") {
|
|
1313
|
-
return errorObj.message;
|
|
1314
|
-
}
|
|
1315
|
-
}
|
|
1316
|
-
if (typeof details.message === "string") {
|
|
1317
|
-
return details.message;
|
|
1318
|
-
}
|
|
1319
|
-
}
|
|
1320
1307
|
if (error instanceof Error) return error.message;
|
|
1321
1308
|
if (typeof error === "string") return error;
|
|
1322
1309
|
if (error && typeof error === "object" && "message" in error) {
|
|
@@ -2221,7 +2208,7 @@ import { join as join12 } from "path";
|
|
|
2221
2208
|
// package.json with { type: 'json' }
|
|
2222
2209
|
var package_default2 = {
|
|
2223
2210
|
name: "playcademy",
|
|
2224
|
-
version: "0.14.
|
|
2211
|
+
version: "0.14.31",
|
|
2225
2212
|
type: "module",
|
|
2226
2213
|
exports: {
|
|
2227
2214
|
".": {
|
package/dist/version.js
CHANGED