@mintlify/scraping 4.0.330 → 4.0.332

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintlify/scraping",
3
- "version": "4.0.330",
3
+ "version": "4.0.332",
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.472",
41
+ "@mintlify/common": "1.0.474",
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": "1031e647b1d7e91524389c2a881d8c1a85a717d8"
80
+ "gitHead": "a5225d0d9c64f2569badaa707de0a7fdd3c043a3"
81
81
  }
package/src/index.ts CHANGED
@@ -2,4 +2,3 @@ export { generateOpenApiPages } from './openapi/generateOpenApiPages.js';
2
2
  export { generateOpenApiPagesForDocsConfig } from './openapi/generateOpenApiPagesForDocsConfig.js';
3
3
  export * from './utils/log.js';
4
4
  export { generateAsyncApiPagesForDocsConfig } from './asyncapi/generateAsyncApiPagesForDocsConfig.js';
5
- export { getXMintContent } from './openapi/contentRegistry.js';
@@ -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,3 +0,0 @@
1
- export declare function registerXMintContent(slug: string, content?: string): void;
2
- export declare function getXMintContent(slug: string): string | undefined;
3
- export declare function getAllXMintContent(): Map<string, string>;
@@ -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
- }