@bendyline/docblocks 2.7.11 → 2.7.12

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.
@@ -8,6 +8,7 @@ declare function parseFileSystemCapabilities(value: unknown): FileSystemProvider
8
8
 
9
9
  declare const MOBILE_STORAGE_LIMITS: Readonly<{
10
10
  fileBytes: number;
11
+ exportBytes: number;
11
12
  chunkBytes: number;
12
13
  totalBytes: number;
13
14
  entries: 10000;
@@ -15,6 +15,9 @@ import {
15
15
  import { z } from "zod";
16
16
  var MOBILE_STORAGE_LIMITS = Object.freeze({
17
17
  fileBytes: 16 * 1024 * 1024,
18
+ // Exports append to a native staging file instead of a memory buffer, so a
19
+ // rendered video can be far larger than a workspace file.
20
+ exportBytes: 1024 * 1024 * 1024,
18
21
  chunkBytes: 256 * 1024,
19
22
  totalBytes: 32 * 1024 * 1024,
20
23
  entries: 1e4,
@@ -265,12 +268,12 @@ var mobileExportRequests = {
265
268
  begin: z.object({
266
269
  op: z.literal("begin"),
267
270
  filename: exportFilename,
268
- byteLength: integer.max(MOBILE_STORAGE_LIMITS.fileBytes)
271
+ byteLength: integer.max(MOBILE_STORAGE_LIMITS.exportBytes)
269
272
  }).strict(),
270
273
  append: z.object({
271
274
  op: z.literal("append"),
272
275
  transferId: id,
273
- offset: integer.max(MOBILE_STORAGE_LIMITS.fileBytes),
276
+ offset: integer.max(MOBILE_STORAGE_LIMITS.exportBytes),
274
277
  data: base64.max(Math.ceil(MOBILE_STORAGE_LIMITS.chunkBytes / 3) * 4)
275
278
  }).strict(),
276
279
  finish: z.object({ op: z.literal("finish"), transferId: id, action: z.enum(["save", "share"]) }).strict(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/docblocks",
3
- "version": "2.7.11",
3
+ "version": "2.7.12",
4
4
  "description": "Core data structures and filesystem abstractions for DocBlocks",
5
5
  "license": "MIT",
6
6
  "author": "Bendyline",