@playcademy/sandbox 0.5.1-beta.1 → 0.5.1-beta.3
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 +16 -1
- package/dist/server.js +16 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1078,7 +1078,7 @@ var package_default;
|
|
|
1078
1078
|
var init_package = __esm(() => {
|
|
1079
1079
|
package_default = {
|
|
1080
1080
|
name: "@playcademy/sandbox",
|
|
1081
|
-
version: "0.5.1-beta.
|
|
1081
|
+
version: "0.5.1-beta.3",
|
|
1082
1082
|
description: "Local development server for Playcademy game development",
|
|
1083
1083
|
type: "module",
|
|
1084
1084
|
exports: {
|
|
@@ -24508,6 +24508,10 @@ var init_utils5 = __esm(() => {
|
|
|
24508
24508
|
var init_r2 = __esm(() => {
|
|
24509
24509
|
init_utils5();
|
|
24510
24510
|
});
|
|
24511
|
+
|
|
24512
|
+
// ../cloudflare/src/core/namespaces/queues.ts
|
|
24513
|
+
var init_queues = () => {};
|
|
24514
|
+
|
|
24511
24515
|
// ../../node_modules/.bun/dedent@1.7.0+093c0fa00f5dcb32/node_modules/dedent/dist/dedent.mjs
|
|
24512
24516
|
function ownKeys(object, enumerableOnly) {
|
|
24513
24517
|
var keys = Object.keys(object);
|
|
@@ -24638,6 +24642,7 @@ var init_namespaces = __esm(() => {
|
|
|
24638
24642
|
init_d1();
|
|
24639
24643
|
init_kv();
|
|
24640
24644
|
init_r2();
|
|
24645
|
+
init_queues();
|
|
24641
24646
|
init_workers();
|
|
24642
24647
|
});
|
|
24643
24648
|
|
|
@@ -98292,7 +98297,12 @@ var init_timeback7 = __esm(() => {
|
|
|
98292
98297
|
const includePerCourse = includeOptions.includes("percourse");
|
|
98293
98298
|
const includeToday = includeOptions.includes("today");
|
|
98294
98299
|
const db2 = c2.get("db");
|
|
98300
|
+
const contextGameId = c2.get("gameId");
|
|
98301
|
+
const gameId = url2.searchParams.get("gameId") || (typeof contextGameId === "string" ? contextGameId : undefined);
|
|
98295
98302
|
let enrollments = await getMockEnrollments(db2);
|
|
98303
|
+
if (gameId) {
|
|
98304
|
+
enrollments = filterEnrollmentsByGame(enrollments, gameId);
|
|
98305
|
+
}
|
|
98296
98306
|
if (gradeParam !== null !== (subjectParam !== null)) {
|
|
98297
98307
|
const error2 = ApiError.badRequest("Both grade and subject must be provided together");
|
|
98298
98308
|
return c2.json(createErrorResponse(error2), error2.status);
|
|
@@ -98345,7 +98355,12 @@ var init_timeback7 = __esm(() => {
|
|
|
98345
98355
|
const includeOptions = includeParam.split(",").map((opt) => opt.trim().toLowerCase());
|
|
98346
98356
|
const includePerCourse = includeOptions.includes("percourse");
|
|
98347
98357
|
const db2 = c2.get("db");
|
|
98358
|
+
const contextGameId = c2.get("gameId");
|
|
98359
|
+
const gameId = url2.searchParams.get("gameId") || (typeof contextGameId === "string" ? contextGameId : undefined);
|
|
98348
98360
|
let enrollments = await getMockEnrollments(db2);
|
|
98361
|
+
if (gameId) {
|
|
98362
|
+
enrollments = filterEnrollmentsByGame(enrollments, gameId);
|
|
98363
|
+
}
|
|
98349
98364
|
if (gradeParam !== null !== (subjectParam !== null)) {
|
|
98350
98365
|
const error2 = ApiError.badRequest("Both grade and subject must be provided together");
|
|
98351
98366
|
return c2.json(createErrorResponse(error2), error2.status);
|
package/dist/server.js
CHANGED
|
@@ -1077,7 +1077,7 @@ var package_default;
|
|
|
1077
1077
|
var init_package = __esm(() => {
|
|
1078
1078
|
package_default = {
|
|
1079
1079
|
name: "@playcademy/sandbox",
|
|
1080
|
-
version: "0.5.1-beta.
|
|
1080
|
+
version: "0.5.1-beta.3",
|
|
1081
1081
|
description: "Local development server for Playcademy game development",
|
|
1082
1082
|
type: "module",
|
|
1083
1083
|
exports: {
|
|
@@ -24507,6 +24507,10 @@ var init_utils5 = __esm(() => {
|
|
|
24507
24507
|
var init_r2 = __esm(() => {
|
|
24508
24508
|
init_utils5();
|
|
24509
24509
|
});
|
|
24510
|
+
|
|
24511
|
+
// ../cloudflare/src/core/namespaces/queues.ts
|
|
24512
|
+
var init_queues = () => {};
|
|
24513
|
+
|
|
24510
24514
|
// ../../node_modules/.bun/dedent@1.7.0+093c0fa00f5dcb32/node_modules/dedent/dist/dedent.mjs
|
|
24511
24515
|
function ownKeys(object, enumerableOnly) {
|
|
24512
24516
|
var keys = Object.keys(object);
|
|
@@ -24637,6 +24641,7 @@ var init_namespaces = __esm(() => {
|
|
|
24637
24641
|
init_d1();
|
|
24638
24642
|
init_kv();
|
|
24639
24643
|
init_r2();
|
|
24644
|
+
init_queues();
|
|
24640
24645
|
init_workers();
|
|
24641
24646
|
});
|
|
24642
24647
|
|
|
@@ -98291,7 +98296,12 @@ var init_timeback7 = __esm(() => {
|
|
|
98291
98296
|
const includePerCourse = includeOptions.includes("percourse");
|
|
98292
98297
|
const includeToday = includeOptions.includes("today");
|
|
98293
98298
|
const db2 = c2.get("db");
|
|
98299
|
+
const contextGameId = c2.get("gameId");
|
|
98300
|
+
const gameId = url2.searchParams.get("gameId") || (typeof contextGameId === "string" ? contextGameId : undefined);
|
|
98294
98301
|
let enrollments = await getMockEnrollments(db2);
|
|
98302
|
+
if (gameId) {
|
|
98303
|
+
enrollments = filterEnrollmentsByGame(enrollments, gameId);
|
|
98304
|
+
}
|
|
98295
98305
|
if (gradeParam !== null !== (subjectParam !== null)) {
|
|
98296
98306
|
const error2 = ApiError.badRequest("Both grade and subject must be provided together");
|
|
98297
98307
|
return c2.json(createErrorResponse(error2), error2.status);
|
|
@@ -98344,7 +98354,12 @@ var init_timeback7 = __esm(() => {
|
|
|
98344
98354
|
const includeOptions = includeParam.split(",").map((opt) => opt.trim().toLowerCase());
|
|
98345
98355
|
const includePerCourse = includeOptions.includes("percourse");
|
|
98346
98356
|
const db2 = c2.get("db");
|
|
98357
|
+
const contextGameId = c2.get("gameId");
|
|
98358
|
+
const gameId = url2.searchParams.get("gameId") || (typeof contextGameId === "string" ? contextGameId : undefined);
|
|
98347
98359
|
let enrollments = await getMockEnrollments(db2);
|
|
98360
|
+
if (gameId) {
|
|
98361
|
+
enrollments = filterEnrollmentsByGame(enrollments, gameId);
|
|
98362
|
+
}
|
|
98348
98363
|
if (gradeParam !== null !== (subjectParam !== null)) {
|
|
98349
98364
|
const error2 = ApiError.badRequest("Both grade and subject must be provided together");
|
|
98350
98365
|
return c2.json(createErrorResponse(error2), error2.status);
|