@dogsbay/types 0.2.0-beta.158 → 0.2.0-beta.159

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/format.d.ts CHANGED
@@ -252,6 +252,11 @@ export interface ImportResult {
252
252
  exclude?: string[];
253
253
  /** Folders of the mount, relative to it, left out whole (VitePress: `public`, a mount of its own). */
254
254
  skip?: string[];
255
+ /**
256
+ * Only these files of the mount, relative to it. Read by `@dogsbay/corpus` `mountCopies` (the
257
+ * Dogsbay MD export, the browser imports) only: set it only for Dogsbay MD output.
258
+ */
259
+ files?: string[];
255
260
  /**
256
261
  * Public directory the mount lands in. Defaults to `_assets` — the name
257
262
  * every IMPORTER rewrites its refs to. Hand-authored content differs: an
package/dist/limits.d.ts CHANGED
@@ -24,6 +24,8 @@ export interface ImportLimits {
24
24
  catalogueRows: number;
25
25
  /** Characters of text in one table cell. */
26
26
  cellChars: number;
27
+ /** Bytes of one code example the import transforms (TypeScript → JavaScript with prettier). */
28
+ exampleBytes: number;
27
29
  }
28
30
  export type LimitName = keyof ImportLimits;
29
31
  /**
package/dist/limits.js CHANGED
@@ -29,6 +29,8 @@ export const DEFAULT_LIMITS = Object.freeze({
29
29
  catalogueRows: 20_000,
30
30
  // longest model description 611 characters → 16×
31
31
  cellChars: 10_000,
32
+ // largest <TypeScriptExample> 11.5 KB (median 409 bytes) → 87×; 1 MB is ~1.8 s of prettier
33
+ exampleBytes: 1_000_000,
32
34
  });
33
35
  /** What each limit guards, for the report. */
34
36
  export const LIMIT_DESCRIPTIONS = Object.freeze({
@@ -38,6 +40,7 @@ export const LIMIT_DESCRIPTIONS = Object.freeze({
38
40
  catalogueBytes: "data one catalogue reads",
39
41
  catalogueRows: "rows in one catalogue",
40
42
  cellChars: "characters in one table cell",
43
+ exampleBytes: "bytes in one code example to transform",
41
44
  });
42
45
  /** The ledger code a tripped limit is reported under. */
43
46
  export const LIMIT_REACHED = "limit-reached";
@@ -49,6 +52,7 @@ const NONE = Object.freeze({
49
52
  catalogueBytes: Infinity,
50
53
  catalogueRows: Infinity,
51
54
  cellChars: Infinity,
55
+ exampleBytes: Infinity,
52
56
  });
53
57
  const isLimitName = (k) => Object.hasOwn(DEFAULT_LIMITS, k);
54
58
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dogsbay/types",
3
- "version": "0.2.0-beta.158",
3
+ "version": "0.2.0-beta.159",
4
4
  "description": "Universal document tree model for Dogsbay format loaders and renderers",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",