@playcademy/sandbox 0.4.2-beta.3 → 0.4.2-beta.4
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 +9 -5
- package/dist/server.js +9 -5
- 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.4.2-beta.
|
|
1081
|
+
version: "0.4.2-beta.4",
|
|
1082
1082
|
description: "Local development server for Playcademy game development",
|
|
1083
1083
|
type: "module",
|
|
1084
1084
|
exports: {
|
|
@@ -34398,6 +34398,7 @@ function createPlatformServices(deps) {
|
|
|
34398
34398
|
config: config2,
|
|
34399
34399
|
cloudflare: cloudflare2,
|
|
34400
34400
|
storage,
|
|
34401
|
+
r2Storage,
|
|
34401
34402
|
timebackClient,
|
|
34402
34403
|
alerts,
|
|
34403
34404
|
mintPlatformServiceToken,
|
|
@@ -34407,7 +34408,7 @@ function createPlatformServices(deps) {
|
|
|
34407
34408
|
} = deps;
|
|
34408
34409
|
const bucket = new BucketService({
|
|
34409
34410
|
uploadBucket: config2.uploadBucket,
|
|
34410
|
-
storage,
|
|
34411
|
+
storage: r2Storage,
|
|
34411
34412
|
validateDeveloperAccessBySlug,
|
|
34412
34413
|
validateDeveloperAccess
|
|
34413
34414
|
});
|
|
@@ -35056,7 +35057,7 @@ var init_standalone = __esm(() => {
|
|
|
35056
35057
|
// ../api-core/src/services/factory/index.ts
|
|
35057
35058
|
function createServices(ctx) {
|
|
35058
35059
|
const { db: db2, config: config2, providers, cloudflare: cloudflare2, timeback: timeback2, discord } = ctx;
|
|
35059
|
-
const { auth: auth2, storage, cache } = providers;
|
|
35060
|
+
const { auth: auth2, storage, r2Storage, cache } = providers;
|
|
35060
35061
|
const infra2 = createInfraServices({
|
|
35061
35062
|
db: db2,
|
|
35062
35063
|
discord,
|
|
@@ -35079,6 +35080,7 @@ function createServices(ctx) {
|
|
|
35079
35080
|
config: config2,
|
|
35080
35081
|
cloudflare: cloudflare2,
|
|
35081
35082
|
storage,
|
|
35083
|
+
r2Storage,
|
|
35082
35084
|
timebackClient: timeback2,
|
|
35083
35085
|
alerts: infra2.alerts,
|
|
35084
35086
|
mintPlatformServiceToken: auth2.mintPlatformServiceToken.bind(auth2),
|
|
@@ -38327,7 +38329,7 @@ function createSandboxStorageProvider() {
|
|
|
38327
38329
|
files.push({
|
|
38328
38330
|
key,
|
|
38329
38331
|
size: data.body.length,
|
|
38330
|
-
lastModified: new Date,
|
|
38332
|
+
lastModified: new Date().toISOString(),
|
|
38331
38333
|
contentType: data.contentType
|
|
38332
38334
|
});
|
|
38333
38335
|
}
|
|
@@ -38399,9 +38401,11 @@ function buildConfig(options) {
|
|
|
38399
38401
|
});
|
|
38400
38402
|
}
|
|
38401
38403
|
function buildProviders() {
|
|
38404
|
+
const storage2 = createSandboxStorageProvider();
|
|
38402
38405
|
return {
|
|
38403
38406
|
auth: createSandboxAuthProvider(),
|
|
38404
|
-
storage:
|
|
38407
|
+
storage: storage2,
|
|
38408
|
+
r2Storage: storage2,
|
|
38405
38409
|
cache: createSandboxCacheProvider()
|
|
38406
38410
|
};
|
|
38407
38411
|
}
|
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.4.2-beta.
|
|
1080
|
+
version: "0.4.2-beta.4",
|
|
1081
1081
|
description: "Local development server for Playcademy game development",
|
|
1082
1082
|
type: "module",
|
|
1083
1083
|
exports: {
|
|
@@ -34397,6 +34397,7 @@ function createPlatformServices(deps) {
|
|
|
34397
34397
|
config: config2,
|
|
34398
34398
|
cloudflare: cloudflare2,
|
|
34399
34399
|
storage,
|
|
34400
|
+
r2Storage,
|
|
34400
34401
|
timebackClient,
|
|
34401
34402
|
alerts,
|
|
34402
34403
|
mintPlatformServiceToken,
|
|
@@ -34406,7 +34407,7 @@ function createPlatformServices(deps) {
|
|
|
34406
34407
|
} = deps;
|
|
34407
34408
|
const bucket = new BucketService({
|
|
34408
34409
|
uploadBucket: config2.uploadBucket,
|
|
34409
|
-
storage,
|
|
34410
|
+
storage: r2Storage,
|
|
34410
34411
|
validateDeveloperAccessBySlug,
|
|
34411
34412
|
validateDeveloperAccess
|
|
34412
34413
|
});
|
|
@@ -35055,7 +35056,7 @@ var init_standalone = __esm(() => {
|
|
|
35055
35056
|
// ../api-core/src/services/factory/index.ts
|
|
35056
35057
|
function createServices(ctx) {
|
|
35057
35058
|
const { db: db2, config: config2, providers, cloudflare: cloudflare2, timeback: timeback2, discord } = ctx;
|
|
35058
|
-
const { auth: auth2, storage, cache } = providers;
|
|
35059
|
+
const { auth: auth2, storage, r2Storage, cache } = providers;
|
|
35059
35060
|
const infra2 = createInfraServices({
|
|
35060
35061
|
db: db2,
|
|
35061
35062
|
discord,
|
|
@@ -35078,6 +35079,7 @@ function createServices(ctx) {
|
|
|
35078
35079
|
config: config2,
|
|
35079
35080
|
cloudflare: cloudflare2,
|
|
35080
35081
|
storage,
|
|
35082
|
+
r2Storage,
|
|
35081
35083
|
timebackClient: timeback2,
|
|
35082
35084
|
alerts: infra2.alerts,
|
|
35083
35085
|
mintPlatformServiceToken: auth2.mintPlatformServiceToken.bind(auth2),
|
|
@@ -38326,7 +38328,7 @@ function createSandboxStorageProvider() {
|
|
|
38326
38328
|
files.push({
|
|
38327
38329
|
key,
|
|
38328
38330
|
size: data.body.length,
|
|
38329
|
-
lastModified: new Date,
|
|
38331
|
+
lastModified: new Date().toISOString(),
|
|
38330
38332
|
contentType: data.contentType
|
|
38331
38333
|
});
|
|
38332
38334
|
}
|
|
@@ -38398,9 +38400,11 @@ function buildConfig(options) {
|
|
|
38398
38400
|
});
|
|
38399
38401
|
}
|
|
38400
38402
|
function buildProviders() {
|
|
38403
|
+
const storage2 = createSandboxStorageProvider();
|
|
38401
38404
|
return {
|
|
38402
38405
|
auth: createSandboxAuthProvider(),
|
|
38403
|
-
storage:
|
|
38406
|
+
storage: storage2,
|
|
38407
|
+
r2Storage: storage2,
|
|
38404
38408
|
cache: createSandboxCacheProvider()
|
|
38405
38409
|
};
|
|
38406
38410
|
}
|