@mintlify/common 1.0.662 → 1.0.664

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/common",
3
- "version": "1.0.662",
3
+ "version": "1.0.664",
4
4
  "description": "Commonly shared code within Mintlify",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -50,7 +50,7 @@
50
50
  "@mintlify/mdx": "^3.0.4",
51
51
  "@mintlify/models": "0.0.256",
52
52
  "@mintlify/openapi-parser": "^0.0.8",
53
- "@mintlify/validation": "0.1.556",
53
+ "@mintlify/validation": "0.1.557",
54
54
  "@sindresorhus/slugify": "2.2.0",
55
55
  "@types/mdast": "4.0.4",
56
56
  "acorn": "8.11.2",
@@ -111,5 +111,5 @@
111
111
  "typescript": "5.5.3",
112
112
  "vitest": "2.0.4"
113
113
  },
114
- "gitHead": "4e55c01ee5af493bd399e9543fd4aa9de0b7e238"
114
+ "gitHead": "8ade495692f2c18061906d86fa77b5aa1a7db025"
115
115
  }
@@ -1,3 +0,0 @@
1
- import { DocumentV3 } from '../types/index.js';
2
- declare function openApiCheck(document: object, truncate?: boolean): Promise<DocumentV3 | undefined>;
3
- export { openApiCheck };
@@ -1,24 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { truncateCircularReferences } from './truncateCircularReferences.js';
11
- import { validate } from './validate.js';
12
- function openApiCheck(document_1) {
13
- return __awaiter(this, arguments, void 0, function* (document, truncate = false) {
14
- try {
15
- const { schema } = yield validate(document);
16
- // truncation can be costly, so only do it when necessary
17
- return truncate ? truncateCircularReferences(schema, 2) : schema;
18
- }
19
- catch (_a) {
20
- return undefined;
21
- }
22
- });
23
- }
24
- export { openApiCheck };