@playcademy/vite-plugin 1.0.1-beta.2 → 1.0.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/index.js +12 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23746,7 +23746,7 @@ import path from "node:path";
|
|
|
23746
23746
|
// package.json
|
|
23747
23747
|
var package_default = {
|
|
23748
23748
|
name: "@playcademy/vite-plugin",
|
|
23749
|
-
version: "1.0.1-beta.
|
|
23749
|
+
version: "1.0.1-beta.3",
|
|
23750
23750
|
type: "module",
|
|
23751
23751
|
exports: {
|
|
23752
23752
|
".": {
|
|
@@ -25194,7 +25194,7 @@ var package_default2;
|
|
|
25194
25194
|
var init_package = __esm(() => {
|
|
25195
25195
|
package_default2 = {
|
|
25196
25196
|
name: "@playcademy/sandbox",
|
|
25197
|
-
version: "0.5.1-beta.
|
|
25197
|
+
version: "0.5.1-beta.3",
|
|
25198
25198
|
description: "Local development server for Playcademy game development",
|
|
25199
25199
|
type: "module",
|
|
25200
25200
|
exports: {
|
|
@@ -124874,7 +124874,12 @@ var init_timeback7 = __esm(() => {
|
|
|
124874
124874
|
const includePerCourse = includeOptions.includes("percourse");
|
|
124875
124875
|
const includeToday = includeOptions.includes("today");
|
|
124876
124876
|
const db2 = c2.get("db");
|
|
124877
|
+
const contextGameId = c2.get("gameId");
|
|
124878
|
+
const gameId = url2.searchParams.get("gameId") || (typeof contextGameId === "string" ? contextGameId : undefined);
|
|
124877
124879
|
let enrollments = await getMockEnrollments(db2);
|
|
124880
|
+
if (gameId) {
|
|
124881
|
+
enrollments = filterEnrollmentsByGame(enrollments, gameId);
|
|
124882
|
+
}
|
|
124878
124883
|
if (gradeParam !== null !== (subjectParam !== null)) {
|
|
124879
124884
|
const error2 = ApiError.badRequest("Both grade and subject must be provided together");
|
|
124880
124885
|
return c2.json(createErrorResponse(error2), error2.status);
|
|
@@ -124927,7 +124932,12 @@ var init_timeback7 = __esm(() => {
|
|
|
124927
124932
|
const includeOptions = includeParam.split(",").map((opt) => opt.trim().toLowerCase());
|
|
124928
124933
|
const includePerCourse = includeOptions.includes("percourse");
|
|
124929
124934
|
const db2 = c2.get("db");
|
|
124935
|
+
const contextGameId = c2.get("gameId");
|
|
124936
|
+
const gameId = url2.searchParams.get("gameId") || (typeof contextGameId === "string" ? contextGameId : undefined);
|
|
124930
124937
|
let enrollments = await getMockEnrollments(db2);
|
|
124938
|
+
if (gameId) {
|
|
124939
|
+
enrollments = filterEnrollmentsByGame(enrollments, gameId);
|
|
124940
|
+
}
|
|
124931
124941
|
if (gradeParam !== null !== (subjectParam !== null)) {
|
|
124932
124942
|
const error2 = ApiError.badRequest("Both grade and subject must be provided together");
|
|
124933
124943
|
return c2.json(createErrorResponse(error2), error2.status);
|