@mintlify/scraping 4.0.329 → 4.0.331
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/bin/openapi/common.js +1 -2
- package/bin/openapi/common.js.map +1 -1
- package/bin/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/openapi/common.ts +1 -1
- package/bin/openapi/contentRegistry.d.ts +0 -3
- package/bin/openapi/contentRegistry.js +0 -12
- package/bin/openapi/contentRegistry.js.map +0 -1
- package/src/openapi/contentRegistry.ts +0 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/scraping",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.331",
|
|
4
4
|
"description": "Scrape documentation frameworks to Mintlify docs",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"format:check": "prettier . --check"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@mintlify/common": "1.0.
|
|
41
|
+
"@mintlify/common": "1.0.473",
|
|
42
42
|
"@mintlify/openapi-parser": "^0.0.7",
|
|
43
43
|
"fs-extra": "^11.1.1",
|
|
44
44
|
"hast-util-to-mdast": "^10.1.0",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"typescript": "^5.5.3",
|
|
78
78
|
"vitest": "^2.0.4"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "d0c17e5495d61de961cfc48fbb1921c90add600f"
|
|
81
81
|
}
|
package/src/openapi/common.ts
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
slugToTitle,
|
|
7
7
|
isAllowedLocalSchemaUrl,
|
|
8
8
|
buildOpenApiMetaTag,
|
|
9
|
+
registerXMintContent,
|
|
9
10
|
} from '@mintlify/common';
|
|
10
11
|
import type { DecoratedNavigationPage, PageMetaTags } from '@mintlify/models';
|
|
11
12
|
import { XMint } from '@mintlify/validation';
|
|
@@ -21,7 +22,6 @@ import {
|
|
|
21
22
|
generateUniqueFilenameWithoutExtension,
|
|
22
23
|
} from '../apiPages/common.js';
|
|
23
24
|
import { fetchOpenApi } from '../utils/network.js';
|
|
24
|
-
import { registerXMintContent } from './contentRegistry.js';
|
|
25
25
|
|
|
26
26
|
export type OpenApiExtensions = {
|
|
27
27
|
'x-mint'?: XMint;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const registry = new Map();
|
|
2
|
-
export function registerXMintContent(slug, content) {
|
|
3
|
-
if (content)
|
|
4
|
-
registry.set(slug, content);
|
|
5
|
-
}
|
|
6
|
-
export function getXMintContent(slug) {
|
|
7
|
-
return registry.get(slug);
|
|
8
|
-
}
|
|
9
|
-
export function getAllXMintContent() {
|
|
10
|
-
return new Map(registry);
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=contentRegistry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contentRegistry.js","sourceRoot":"","sources":["../../src/openapi/contentRegistry.ts"],"names":[],"mappings":"AAAA,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAkB,CAAC;AAE3C,MAAM,UAAU,oBAAoB,CAAC,IAAY,EAAE,OAAgB;IACjE,IAAI,OAAO;QAAE,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,OAAO,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,OAAO,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC3B,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const registry = new Map<string, string>();
|
|
2
|
-
|
|
3
|
-
export function registerXMintContent(slug: string, content?: string) {
|
|
4
|
-
if (content) registry.set(slug, content);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export function getXMintContent(slug: string): string | undefined {
|
|
8
|
-
return registry.get(slug);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function getAllXMintContent(): Map<string, string> {
|
|
12
|
-
return new Map(registry);
|
|
13
|
-
}
|