@mintlify/scraping 4.0.1106 → 4.0.1108

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.
@@ -0,0 +1,25 @@
1
+ import type { Root } from 'mdast';
2
+ import { describe, expect, it } from 'vitest';
3
+
4
+ import { unifiedRemoveNestedRoots } from '../src/utils/nestedRoots.js';
5
+
6
+ const text = (value: string) => ({
7
+ type: 'paragraph' as const,
8
+ children: [{ type: 'text' as const, value }],
9
+ });
10
+
11
+ describe('unifiedRemoveNestedRoots', () => {
12
+ it('walks the replaced children array, like upstream unist-util-visit', () => {
13
+ const tree = {
14
+ type: 'root',
15
+ children: [
16
+ { type: 'root', children: [text('first')] },
17
+ { type: 'root', children: [text('second')] },
18
+ ],
19
+ } as unknown as Root;
20
+
21
+ unifiedRemoveNestedRoots()(tree);
22
+
23
+ expect(tree.children).toEqual([text('first')]);
24
+ });
25
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintlify/scraping",
3
- "version": "4.0.1106",
3
+ "version": "4.0.1108",
4
4
  "description": "Scrape documentation frameworks to Mintlify docs",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -43,7 +43,7 @@
43
43
  "format:check": "oxfmt --check"
44
44
  },
45
45
  "dependencies": {
46
- "@mintlify/common": "1.0.1236",
46
+ "@mintlify/common": "1.0.1237",
47
47
  "fast-xml-parser": "5.7.3",
48
48
  "fs-extra": "11.1.1",
49
49
  "graphql": "16.11.0",
@@ -87,5 +87,5 @@
87
87
  "optional": true
88
88
  }
89
89
  },
90
- "gitHead": "090fc326376b5ffda3ae2d81321ed7ede279359c"
90
+ "gitHead": "c84411a4bba219c08bc232df2ed90ce9d2655273"
91
91
  }