playcademy 0.13.19 → 0.13.21
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/constants.d.ts +28 -1
- package/dist/constants.js +18 -0
- package/dist/db.js +9 -2
- package/dist/edge-play/src/entry/middleware.ts +74 -0
- package/dist/edge-play/src/entry/setup.ts +52 -0
- package/dist/edge-play/src/entry/types.ts +30 -0
- package/dist/edge-play/src/entry.ts +20 -71
- package/dist/edge-play/src/routes/health.ts +56 -27
- package/dist/edge-play/src/routes/index.ts +43 -15
- package/dist/edge-play/src/types.ts +8 -1
- package/dist/index.d.ts +51 -1
- package/dist/index.js +792 -241
- package/dist/templates/gitignore.template +3 -0
- package/dist/templates/playcademy-env.d.ts.template +1 -2
- package/dist/utils.d.ts +13 -13
- package/dist/utils.js +1074 -395
- package/package.json +2 -2
|
@@ -6,11 +6,10 @@ declare global {
|
|
|
6
6
|
interface PlaycademyEnv {
|
|
7
7
|
PLAYCADEMY_API_KEY: string
|
|
8
8
|
GAME_ID: string
|
|
9
|
-
PLAYCADEMY_BASE_URL: string{{BINDINGS}}
|
|
9
|
+
PLAYCADEMY_BASE_URL: string{{BINDINGS}}{{SECRETS}}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
type Context = HonoContext<{ Bindings: PlaycademyEnv }>
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export {}
|
|
16
|
-
|
package/dist/utils.d.ts
CHANGED
|
@@ -80,19 +80,6 @@ interface PlaycademyConfig {
|
|
|
80
80
|
integrations?: IntegrationsConfig;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
/**
|
|
84
|
-
* Find the Playcademy config file path
|
|
85
|
-
*/
|
|
86
|
-
declare function findConfigPath(configPath?: string): Promise<string>;
|
|
87
|
-
/**
|
|
88
|
-
* Load Playcademy configuration from file
|
|
89
|
-
*/
|
|
90
|
-
declare function loadConfig(configPath?: string): Promise<PlaycademyConfig>;
|
|
91
|
-
/**
|
|
92
|
-
* Validate configuration structure
|
|
93
|
-
*/
|
|
94
|
-
declare function validateConfig(config: unknown): asserts config is PlaycademyConfig;
|
|
95
|
-
|
|
96
83
|
interface DevServerOptions {
|
|
97
84
|
port: number;
|
|
98
85
|
/** Playcademy config. If not provided, will attempt to load from playcademy.config.js */
|
|
@@ -109,6 +96,19 @@ interface DevServerOptions {
|
|
|
109
96
|
platformUrl?: string;
|
|
110
97
|
}
|
|
111
98
|
|
|
99
|
+
/**
|
|
100
|
+
* Find the Playcademy config file path
|
|
101
|
+
*/
|
|
102
|
+
declare function findConfigPath(configPath?: string): Promise<string>;
|
|
103
|
+
/**
|
|
104
|
+
* Load Playcademy configuration from file
|
|
105
|
+
*/
|
|
106
|
+
declare function loadConfig(configPath?: string): Promise<PlaycademyConfig>;
|
|
107
|
+
/**
|
|
108
|
+
* Validate configuration structure
|
|
109
|
+
*/
|
|
110
|
+
declare function validateConfig(config: unknown): asserts config is PlaycademyConfig;
|
|
111
|
+
|
|
112
112
|
/**
|
|
113
113
|
* Development server utilities
|
|
114
114
|
*/
|