@bendyline/gezel-sdk 1.0.3 → 1.0.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/checks.d.ts CHANGED
@@ -587,7 +587,7 @@ interface MarkdownHeadingsMatchResult extends CheckResult {
587
587
  * Compare a Markdown deck's H1 boundaries with a locked outline whose slides
588
588
  * are authored as `## Slide N — Title` (also accepts `## N. Title`).
589
589
  */
590
- declare function markdownHeadingsMatch(ws: WorkspaceLike, file: string, outlineFile: string): Promise<MarkdownHeadingsMatchResult>;
590
+ declare function markdownHeadingsMatch(ws: WorkspaceLike, file: string, outlineFile: string, outlineWs?: WorkspaceLike): Promise<MarkdownHeadingsMatchResult>;
591
591
 
592
592
  /**
593
593
  * Human-line explainers for the step sniffs. A gate verdict that says
package/dist/checks.js CHANGED
@@ -1462,8 +1462,8 @@ function outlineSlideHeadings(markdown) {
1462
1462
  }
1463
1463
  return headings;
1464
1464
  }
1465
- async function markdownHeadingsMatch(ws, file, outlineFile) {
1466
- const [document, outline] = await Promise.all([ws.read(file), ws.read(outlineFile)]);
1465
+ async function markdownHeadingsMatch(ws, file, outlineFile, outlineWs = ws) {
1466
+ const [document, outline] = await Promise.all([ws.read(file), outlineWs.read(outlineFile)]);
1467
1467
  if (document === null) {
1468
1468
  return {
1469
1469
  ok: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/gezel-sdk",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "SDK imported by scripts running in the Gezel sandbox. Exposes the `gezel` object and `defineScript` helper.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -59,7 +59,7 @@
59
59
  "!dist/**/*.map"
60
60
  ],
61
61
  "devDependencies": {
62
- "@bendyline/gezel": "1.0.3",
62
+ "@bendyline/gezel": "1.0.4",
63
63
  "tsup": "^8.5.1",
64
64
  "typescript": "^6.0.3",
65
65
  "vitest": "^4.1.10"