deepspace 0.4.0 → 0.4.2
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 +145 -20
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +67 -12
- package/dist/index.js +203 -72
- package/dist/index.js.map +1 -1
- package/dist/server.js +3 -1
- package/dist/server.js.map +1 -1
- package/dist/worker.js +3 -1
- package/dist/worker.js.map +1 -1
- package/features/file-attachments/feature.json +1 -0
- package/features/file-attachments/src/useFilePreview.ts +1 -1
- package/features/integration-test/src/IntegrationTestPage.tsx +1 -0
- package/features/integration-test/src/integration.spec.ts +14 -5
- package/features/messaging/src/components/chat/MessageList.tsx +1 -1
- package/features/presence-test/src/PresenceTestPage.tsx +1 -1
- package/features/search-bar/feature.json +34 -0
- package/features/search-bar/src/SearchOverlay.tsx +710 -0
- package/features/testing/src/subrequest-burn-action.ts +6 -3
- package/package.json +2 -2
- package/scripts/add-feature.cjs +5 -4
package/dist/server.js
CHANGED
|
@@ -206,7 +206,9 @@ function createScopedR2Handler(config) {
|
|
|
206
206
|
{ status: 400, headers: CORS_HEADERS }
|
|
207
207
|
);
|
|
208
208
|
}
|
|
209
|
-
const
|
|
209
|
+
const isKeyedGet = subpath !== "" && request.method === "GET";
|
|
210
|
+
const defaultScope = isKeyedGet ? "app" : "self";
|
|
211
|
+
const scope = url.searchParams.get("scope") || defaultScope;
|
|
210
212
|
const result = config.resolvePrefix(scope, { userId: auth.userId, url });
|
|
211
213
|
if (!result.prefix) {
|
|
212
214
|
const errorMsg = result.error ?? "Invalid scope";
|