@hyperframes/studio-server 0.8.136 → 0.8.137
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.d.ts +3 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ import './helpers/mediaCodecMap.js';
|
|
|
25
25
|
*/
|
|
26
26
|
declare function createStudioApi(adapter: StudioApiAdapter): Hono;
|
|
27
27
|
|
|
28
|
+
declare const MAX_UPLOAD_BYTES: number;
|
|
29
|
+
|
|
28
30
|
/**
|
|
29
31
|
* Whether a write at `changedPath` can change `createProjectSignature(projectDir)`.
|
|
30
32
|
*
|
|
@@ -226,4 +228,4 @@ type BackgroundRemovalRender = (options: {
|
|
|
226
228
|
}>;
|
|
227
229
|
declare function createBackgroundRemovalJob(opts: BackgroundRemovalJobOptions, render: BackgroundRemovalRender): MediaProcessingJobState;
|
|
228
230
|
|
|
229
|
-
export { type AppliedFileMutation, type BackgroundRemovalRender, DELETED_VERSION, type DuplicateElementResult, type FileMutationInput, type FileWriteReceipt, MIME_TYPES, MediaProcessingJobState, PREVIEW_BUNDLE_OPTIONS, SourceMutationTarget, StudioApiAdapter, type ThumbnailOutputDimensions, affectsPreview, affectsProjectSignature, applyFileMutations, buildSubCompositionHtml, cleanupProxyCache, compositionsAffectedBy, consumeFileWriteReceipt, createBackgroundRemovalJob, createPreviewDocumentStore, createProjectSignature, createStudioApi, duplicateElementInHtml, fileContentVersion, getMimeType, identifyFileWrite, requestSubPath, settledFileTag, thumbnailDeviceScaleFactor };
|
|
231
|
+
export { type AppliedFileMutation, type BackgroundRemovalRender, DELETED_VERSION, type DuplicateElementResult, type FileMutationInput, type FileWriteReceipt, MAX_UPLOAD_BYTES, MIME_TYPES, MediaProcessingJobState, PREVIEW_BUNDLE_OPTIONS, SourceMutationTarget, StudioApiAdapter, type ThumbnailOutputDimensions, affectsPreview, affectsProjectSignature, applyFileMutations, buildSubCompositionHtml, cleanupProxyCache, compositionsAffectedBy, consumeFileWriteReceipt, createBackgroundRemovalJob, createPreviewDocumentStore, createProjectSignature, createStudioApi, duplicateElementInHtml, fileContentVersion, getMimeType, identifyFileWrite, requestSubPath, settledFileTag, thumbnailDeviceScaleFactor };
|
package/dist/index.js
CHANGED
|
@@ -2681,8 +2681,8 @@ async function foldAtomicCutFile(c, file, absPath, before, writer) {
|
|
|
2681
2681
|
skippedSelectors: [...skippedSelectors]
|
|
2682
2682
|
};
|
|
2683
2683
|
}
|
|
2684
|
+
var MAX_UPLOAD_BYTES = 500 * 1024 * 1024;
|
|
2684
2685
|
async function processUploadedFiles(formData, targetDir, projectDir) {
|
|
2685
|
-
const MAX_UPLOAD_BYTES = 500 * 1024 * 1024;
|
|
2686
2686
|
const uploaded = [];
|
|
2687
2687
|
const skipped = [];
|
|
2688
2688
|
const invalid = [];
|
|
@@ -3495,7 +3495,6 @@ function registerFileRoutes(api, adapter) {
|
|
|
3495
3495
|
}
|
|
3496
3496
|
return c.json({ ok: true, path: copyPath }, 201);
|
|
3497
3497
|
});
|
|
3498
|
-
const MAX_UPLOAD_BYTES = 500 * 1024 * 1024;
|
|
3499
3498
|
api.post(
|
|
3500
3499
|
"/projects/:id/upload",
|
|
3501
3500
|
bodyLimit({
|
|
@@ -6432,6 +6431,7 @@ export {
|
|
|
6432
6431
|
HistoryBusyError,
|
|
6433
6432
|
HistoryClosedError,
|
|
6434
6433
|
HistoryIdError,
|
|
6434
|
+
MAX_UPLOAD_BYTES,
|
|
6435
6435
|
MAX_WINDOW_IDLE_MS,
|
|
6436
6436
|
MIME_TYPES,
|
|
6437
6437
|
PREVIEW_BUNDLE_OPTIONS,
|