@mintlify/prebuild 1.0.5 → 1.0.7

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/LICENSE ADDED
@@ -0,0 +1,93 @@
1
+ Copyright (c) 2022 Mintlify, Inc.
2
+
3
+ Elastic License 2.0
4
+
5
+ ## Acceptance
6
+
7
+ By using the software, you agree to all of the terms and conditions below.
8
+
9
+ ## Copyright License
10
+
11
+ The licensor grants you a non-exclusive, royalty-free, worldwide,
12
+ non-sublicensable, non-transferable license to use, copy, distribute, make
13
+ available, and prepare derivative works of the software, in each case subject to
14
+ the limitations and conditions below.
15
+
16
+ ## Limitations
17
+
18
+ You may not provide the software to third parties as a hosted or managed
19
+ service, where the service provides users with access to any substantial set of
20
+ the features or functionality of the software.
21
+
22
+ You may not move, change, disable, or circumvent the license key functionality
23
+ in the software, and you may not remove or obscure any functionality in the
24
+ software that is protected by the license key.
25
+
26
+ You may not alter, remove, or obscure any licensing, copyright, or other notices
27
+ of the licensor in the software. Any use of the licensor’s trademarks is subject
28
+ to applicable law.
29
+
30
+ ## Patents
31
+
32
+ The licensor grants you a license, under any patent claims the licensor can
33
+ license, or becomes able to license, to make, have made, use, sell, offer for
34
+ sale, import and have imported the software, in each case subject to the
35
+ limitations and conditions in this license. This license does not cover any
36
+ patent claims that you cause to be infringed by modifications or additions to
37
+ the software. If you or your company make any written claim that the software
38
+ infringes or contributes to infringement of any patent, your patent license for
39
+ the software granted under these terms ends immediately. If your company makes
40
+ such a claim, your patent license ends immediately for work on behalf of your
41
+ company.
42
+
43
+ ## Notices
44
+
45
+ You must ensure that anyone who gets a copy of any part of the software from you
46
+ also gets a copy of these terms.
47
+
48
+ If you modify the software, you must include in any modified copies of the
49
+ software prominent notices stating that you have modified the software.
50
+
51
+ ## No Other Rights
52
+
53
+ These terms do not imply any licenses other than those expressly granted in
54
+ these terms.
55
+
56
+ ## Termination
57
+
58
+ If you use the software in violation of these terms, such use is not licensed,
59
+ and your licenses will automatically terminate. If the licensor provides you
60
+ with a notice of your violation, and you cease all violation of this license no
61
+ later than 30 days after you receive that notice, your licenses will be
62
+ reinstated retroactively. However, if you violate these terms after such
63
+ reinstatement, any additional violation of these terms will cause your licenses
64
+ to terminate automatically and permanently.
65
+
66
+ ## No Liability
67
+
68
+ _As far as the law allows, the software comes as is, without any warranty or
69
+ condition, and the licensor will not be liable to you for any damages arising
70
+ out of these terms or the use or nature of the software, under any kind of
71
+ legal claim._
72
+
73
+ ## Definitions
74
+
75
+ The **licensor** is the entity offering these terms, and the **software** is the
76
+ software the licensor makes available under these terms, including any portion
77
+ of it.
78
+
79
+ **you** refers to the individual or entity agreeing to these terms.
80
+
81
+ **your company** is any legal entity, sole proprietorship, or other kind of
82
+ organization that you work for, plus all organizations that have control over,
83
+ are under the control of, or are under common control with that
84
+ organization. **control** means ownership of substantially all the assets of an
85
+ entity, or the power to direct its management and policies by vote, contract, or
86
+ otherwise. Control can be direct or indirect.
87
+
88
+ **your licenses** are all the licenses granted to you for the software under
89
+ these terms.
90
+
91
+ **use** means anything you do with the software requiring one of your licenses.
92
+
93
+ **trademark** means trademarks, service marks, and similar rights.
package/README.md CHANGED
@@ -1,17 +1,17 @@
1
- # @mintlify/prebuild
2
-
3
- Helpful functions for Mintlify's prebuild step.
4
-
5
- # Installation
6
-
7
- ```
8
- npm install @mintlify/prebuild
9
- ```
10
-
11
- # Community
12
-
13
- Join our Discord community if you have questions or just want to chat:
14
-
15
- [![](https://dcbadge.vercel.app/api/server/ACREKdwjG5)](https://discord.gg/ACREKdwjG5)
16
-
17
- _Built with 💚 by the Mintlify community._
1
+ # @mintlify/prebuild
2
+
3
+ Helpful functions for Mintlify's prebuild step.
4
+
5
+ # Installation
6
+
7
+ ```
8
+ npm install @mintlify/prebuild
9
+ ```
10
+
11
+ # Community
12
+
13
+ Join our Discord community if you have questions or just want to chat:
14
+
15
+ [![](https://dcbadge.vercel.app/api/server/ACREKdwjG5)](https://discord.gg/ACREKdwjG5)
16
+
17
+ _Built with 💚 by the Mintlify community._
@@ -1 +1 @@
1
- export declare function getFileList(dirName: string, og?: string, ignored?: Set<string>): AsyncIterable<string>;
1
+ export declare function getFileList(dirName: string, og?: string, ignored?: Set<string>): AsyncIterable<string>;
package/dist/fs/index.js CHANGED
@@ -1,111 +1,108 @@
1
- "use strict";
2
- var __generator = (this && this.__generator) || function (thisArg, body) {
3
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
4
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
5
- function verb(n) { return function (v) { return step([n, v]); }; }
6
- function step(op) {
7
- if (f) throw new TypeError("Generator is already executing.");
8
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
9
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
10
- if (y = 0, t) op = [op[0] & 2, t.value];
11
- switch (op[0]) {
12
- case 0: case 1: t = op; break;
13
- case 4: _.label++; return { value: op[1], done: false };
14
- case 5: _.label++; y = op[1]; op = [0]; continue;
15
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
16
- default:
17
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
18
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
19
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
20
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
21
- if (t[2]) _.ops.pop();
22
- _.trys.pop(); continue;
23
- }
24
- op = body.call(thisArg, _);
25
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
26
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
27
- }
28
- };
29
- var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
30
- var __asyncValues = (this && this.__asyncValues) || function (o) {
31
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
32
- var m = o[Symbol.asyncIterator], i;
33
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
34
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
35
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
36
- };
37
- var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
38
- var i, p;
39
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
40
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
41
- };
42
- var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
43
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
44
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
45
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
46
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
47
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
48
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
49
- function fulfill(value) { resume("next", value); }
50
- function reject(value) { resume("throw", value); }
51
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
52
- };
53
- var __values = (this && this.__values) || function(o) {
54
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
55
- if (m) return m.call(o);
56
- if (o && typeof o.length === "number") return {
57
- next: function () {
58
- if (o && i >= o.length) o = void 0;
59
- return { value: o && o[i++], done: !o };
60
- }
61
- };
62
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
63
- };
64
- Object.defineProperty(exports, "__esModule", { value: true });
65
- exports.getFileList = void 0;
66
- var fs_1 = require("fs");
67
- var readdir = fs_1.promises.readdir;
68
- function getFileList(dirName, og, ignored) {
69
- if (og === void 0) { og = dirName; }
70
- if (ignored === void 0) { ignored = new Set(); }
71
- return __asyncGenerator(this, arguments, function getFileList_1() {
72
- var items, _i, items_1, item, path;
73
- return __generator(this, function (_a) {
74
- switch (_a.label) {
75
- case 0: return [4 /*yield*/, __await(readdir(dirName, { withFileTypes: true }))];
76
- case 1:
77
- items = _a.sent();
78
- // using git to get ignored files
79
- //const { stdout, stderr } = await execAsync('git status --ignored',{cwd:dirName})
80
- //const ignored =stdout.split("Ignored files:")[1].split('\n\t').filter(x=> x!='').slice(1)
81
- ignored.add('.git');
82
- _i = 0, items_1 = items;
83
- _a.label = 2;
84
- case 2:
85
- if (!(_i < items_1.length)) return [3 /*break*/, 9];
86
- item = items_1[_i];
87
- if (ignored.has(item.name)) {
88
- return [3 /*break*/, 8];
89
- }
90
- if (!item.isDirectory()) return [3 /*break*/, 5];
91
- return [5 /*yield**/, __values(__asyncDelegator(__asyncValues(getFileList("".concat(dirName, "/").concat(item.name), og))))];
92
- case 3: return [4 /*yield*/, __await.apply(void 0, [_a.sent()])];
93
- case 4:
94
- _a.sent();
95
- return [3 /*break*/, 8];
96
- case 5:
97
- path = "".concat(dirName, "/").concat(item.name);
98
- return [4 /*yield*/, __await(path.startsWith(og) ? path.substring(og.length) : path)];
99
- case 6: return [4 /*yield*/, _a.sent()];
100
- case 7:
101
- _a.sent();
102
- _a.label = 8;
103
- case 8:
104
- _i++;
105
- return [3 /*break*/, 2];
106
- case 9: return [2 /*return*/];
107
- }
108
- });
109
- });
110
- }
111
- exports.getFileList = getFileList;
1
+ "use strict";
2
+ var __generator = (this && this.__generator) || function (thisArg, body) {
3
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
4
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
5
+ function verb(n) { return function (v) { return step([n, v]); }; }
6
+ function step(op) {
7
+ if (f) throw new TypeError("Generator is already executing.");
8
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
9
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
10
+ if (y = 0, t) op = [op[0] & 2, t.value];
11
+ switch (op[0]) {
12
+ case 0: case 1: t = op; break;
13
+ case 4: _.label++; return { value: op[1], done: false };
14
+ case 5: _.label++; y = op[1]; op = [0]; continue;
15
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
16
+ default:
17
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
18
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
19
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
20
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
21
+ if (t[2]) _.ops.pop();
22
+ _.trys.pop(); continue;
23
+ }
24
+ op = body.call(thisArg, _);
25
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
26
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
27
+ }
28
+ };
29
+ var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
30
+ var __asyncValues = (this && this.__asyncValues) || function (o) {
31
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
32
+ var m = o[Symbol.asyncIterator], i;
33
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
34
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
35
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
36
+ };
37
+ var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
38
+ var i, p;
39
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
40
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
41
+ };
42
+ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
43
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
44
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
45
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
46
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
47
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
48
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
49
+ function fulfill(value) { resume("next", value); }
50
+ function reject(value) { resume("throw", value); }
51
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
52
+ };
53
+ var __values = (this && this.__values) || function(o) {
54
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
55
+ if (m) return m.call(o);
56
+ if (o && typeof o.length === "number") return {
57
+ next: function () {
58
+ if (o && i >= o.length) o = void 0;
59
+ return { value: o && o[i++], done: !o };
60
+ }
61
+ };
62
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
63
+ };
64
+ Object.defineProperty(exports, "__esModule", { value: true });
65
+ exports.getFileList = void 0;
66
+ var fs_1 = require("fs");
67
+ var readdir = fs_1.promises.readdir;
68
+ function getFileList(dirName, og, ignored) {
69
+ if (og === void 0) { og = dirName; }
70
+ if (ignored === void 0) { ignored = new Set(); }
71
+ return __asyncGenerator(this, arguments, function getFileList_1() {
72
+ var items, _i, items_1, item, path;
73
+ return __generator(this, function (_a) {
74
+ switch (_a.label) {
75
+ case 0: return [4 /*yield*/, __await(readdir(dirName, { withFileTypes: true }))];
76
+ case 1:
77
+ items = _a.sent();
78
+ ignored.add('.git');
79
+ _i = 0, items_1 = items;
80
+ _a.label = 2;
81
+ case 2:
82
+ if (!(_i < items_1.length)) return [3 /*break*/, 9];
83
+ item = items_1[_i];
84
+ if (ignored.has(item.name)) {
85
+ return [3 /*break*/, 8];
86
+ }
87
+ if (!item.isDirectory()) return [3 /*break*/, 5];
88
+ return [5 /*yield**/, __values(__asyncDelegator(__asyncValues(getFileList("".concat(dirName, "/").concat(item.name), og))))];
89
+ case 3: return [4 /*yield*/, __await.apply(void 0, [_a.sent()])];
90
+ case 4:
91
+ _a.sent();
92
+ return [3 /*break*/, 8];
93
+ case 5:
94
+ path = "".concat(dirName, "/").concat(item.name);
95
+ return [4 /*yield*/, __await(path.startsWith(og) ? path.substring(og.length) : path)];
96
+ case 6: return [4 /*yield*/, _a.sent()];
97
+ case 7:
98
+ _a.sent();
99
+ _a.label = 8;
100
+ case 8:
101
+ _i++;
102
+ return [3 /*break*/, 2];
103
+ case 9: return [2 /*return*/];
104
+ }
105
+ });
106
+ });
107
+ }
108
+ exports.getFileList = getFileList;
@@ -1,3 +1,3 @@
1
- export declare const generateDecoratedMintNavigationFromPages: (filenamePageMetadataMap: Record<string, PageMetadata>, mintConfigNav: MintNavigation[]) => DecoratedMintNavigation;
2
- export declare const slugToTitle: (slug: string) => string;
3
- export declare function optionallyAddLeadingSlash(path: string): string;
1
+ export declare const generateDecoratedMintNavigationFromPages: (filenamePageMetadataMap: Record<string, PageMetadata>, mintConfigNav: MintNavigation[]) => DecoratedMintNavigation;
2
+ export declare const slugToTitle: (slug: string) => string;
3
+ export declare function optionallyAddLeadingSlash(path: string): string;
package/dist/generate.js CHANGED
@@ -1,44 +1,44 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.optionallyAddLeadingSlash = exports.slugToTitle = exports.generateDecoratedMintNavigationFromPages = void 0;
4
- var generateDecoratedMintNavigationFromPages = function (filenamePageMetadataMap, mintConfigNav) {
5
- var filenames = Object.keys(filenamePageMetadataMap);
6
- var createNav = function (nav) {
7
- return {
8
- group: nav.group,
9
- version: nav === null || nav === void 0 ? void 0 : nav.version,
10
- pages: nav.pages.map(function (page) {
11
- if (typeof page === 'string') {
12
- if (filenames.includes(page)) {
13
- return filenamePageMetadataMap[page];
14
- }
15
- else {
16
- console.log("\u26A0\uFE0F \"".concat(page, "\" is defined in the mint.json navigation but the file does not exist."));
17
- return {
18
- title: (0, exports.slugToTitle)(page),
19
- href: optionallyAddLeadingSlash(page),
20
- };
21
- }
22
- }
23
- return createNav(page);
24
- }),
25
- };
26
- };
27
- return mintConfigNav.map(function (nav) { return createNav(nav); });
28
- };
29
- exports.generateDecoratedMintNavigationFromPages = generateDecoratedMintNavigationFromPages;
30
- var slugToTitle = function (slug) {
31
- var slugArr = slug.split('/');
32
- var defaultTitle = slugArr[slugArr.length - 1].split('-').join(' '); //replace all dashes
33
- defaultTitle = defaultTitle.split('_').join(' '); //replace all underscores
34
- defaultTitle = defaultTitle.charAt(0).toUpperCase() + defaultTitle.slice(1); //capitalize first letter
35
- return defaultTitle;
36
- };
37
- exports.slugToTitle = slugToTitle;
38
- function optionallyAddLeadingSlash(path) {
39
- if (path.startsWith('/')) {
40
- return path;
41
- }
42
- return '/' + path;
43
- }
44
- exports.optionallyAddLeadingSlash = optionallyAddLeadingSlash;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.optionallyAddLeadingSlash = exports.slugToTitle = exports.generateDecoratedMintNavigationFromPages = void 0;
4
+ var generateDecoratedMintNavigationFromPages = function (filenamePageMetadataMap, mintConfigNav) {
5
+ var filenames = Object.keys(filenamePageMetadataMap);
6
+ var createNav = function (nav) {
7
+ return {
8
+ group: nav.group,
9
+ version: nav === null || nav === void 0 ? void 0 : nav.version,
10
+ pages: nav.pages.map(function (page) {
11
+ if (typeof page === 'string') {
12
+ if (filenames.includes(page)) {
13
+ return filenamePageMetadataMap[page];
14
+ }
15
+ else {
16
+ console.log("\u26A0\uFE0F \"".concat(page, "\" is defined in the mint.json navigation but the file does not exist."));
17
+ return {
18
+ title: (0, exports.slugToTitle)(page),
19
+ href: optionallyAddLeadingSlash(page),
20
+ };
21
+ }
22
+ }
23
+ return createNav(page);
24
+ }),
25
+ };
26
+ };
27
+ return mintConfigNav.map(function (nav) { return createNav(nav); });
28
+ };
29
+ exports.generateDecoratedMintNavigationFromPages = generateDecoratedMintNavigationFromPages;
30
+ var slugToTitle = function (slug) {
31
+ var slugArr = slug.split('/');
32
+ var defaultTitle = slugArr[slugArr.length - 1].split('-').join(' '); //replace all dashes
33
+ defaultTitle = defaultTitle.split('_').join(' '); //replace all underscores
34
+ defaultTitle = defaultTitle.charAt(0).toUpperCase() + defaultTitle.slice(1); //capitalize first letter
35
+ return defaultTitle;
36
+ };
37
+ exports.slugToTitle = slugToTitle;
38
+ function optionallyAddLeadingSlash(path) {
39
+ if (path.startsWith('/')) {
40
+ return path;
41
+ }
42
+ return '/' + path;
43
+ }
44
+ exports.optionallyAddLeadingSlash = optionallyAddLeadingSlash;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './fs';
2
- export * from './generate';
3
- export * from './utils';
1
+ export * from './fs';
2
+ export * from './generate';
3
+ export * from './utils';
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./fs"), exports);
18
- __exportStar(require("./generate"), exports);
19
- __exportStar(require("./utils"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./fs"), exports);
18
+ __exportStar(require("./generate"), exports);
19
+ __exportStar(require("./utils"), exports);
@@ -1 +1 @@
1
- {"program":{"fileNames":["../../../node_modules/typescript/lib/lib.d.ts","../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../src/generate.ts","../src/fs/index.ts","../../../node_modules/openapi-types/dist/index.d.ts","../../../node_modules/@apidevtools/swagger-parser/lib/index.d.ts","../../../node_modules/@types/js-yaml/index.d.ts","../src/utils.ts","../src/index.ts","../src/types.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/dom-events.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts"],"fileInfos":["2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60",{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},{"version":"ee45f9bcec2b24895519805e643b4aa892a44979cf04ee94b6944ed524953037","signature":"ecedfdcb6cb606c2d9067d293e8c653d0dfda872e05f5b18664f0733f4959cab"},{"version":"f942d5ccb7cdb85a6b2efc0eaff33d18814cbd63f5040424d40eab2ec87145c7","signature":"57191c0d9130dec9f01552e39d4764ff185fad7209f28c59eedb3cb553ba1cbe"},"cc3e30832aff12a575919d59eb3d680ca7cc999e1041bb0fc489dbe0276b066b","8013993fea166f6c789a35e1cec9622ba35d55bb29ec1e2f49ccee15c84c9bc7","686e548ae30250d62532c8cacb43fccc922b693408371bd3503563c4a0f28eed",{"version":"0c295ee322b5413c4623aa54d4a2e7efe2df11160a1a902345a83b976d01f128","signature":"1b52410b355fdf04fa18291ec39d679de06c67496a8ef639ac4e22b1f9d5a63d"},"f2f08be1f227f7f322273b46eedaeb909cdca8d9793e198bf27cfea8f3a24931",{"version":"ebb5ee61b300abd592774581fa1ffe57dc14313d10a6977527b2c6f58b64fde3","affectsGlobalScope":true},"7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"54ba7456adb777a685250cd144115ea51379784012ba1311255b715c6bdcff2a","affectsGlobalScope":true},"11e2d554398d2bd460e7d06b2fa5827a297c8acfbe00b4f894a224ac0862857f",{"version":"e193e634a99c9c1d71f1c6e4e1567a4a73584328d21ea02dd5cddbaad6693f61","affectsGlobalScope":true},"374ca798f244e464346f14301dc2a8b4b111af1a83b49fffef5906c338a1f922","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","e596c9bb2f29a2699fdd4ae89139612652245192f67f45617c5a4b20832aaae9","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","1cdcfc1f624d6c08aa12c73935f6e13f095919cd99edf95752951796eb225729","216717f17c095cde1dc19375e1ab3af0a4a485355860c077a4f9d6ea59fab5b5","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true},"80473bd0dd90ca1e166514c2dfead9d5803f9c51418864ca35abbeec6e6847e1","1c84b46267610a34028edfd0d035509341751262bac1062857f3c8df7aff7153","e6c86d83bd526c8bdb5d0bf935b8e72ce983763d600743f74d812fdf4abf4df6","a3d541d303ee505053f5dcbf9fafb65cac3d5631037501cd616195863a6c5740","8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e630e5528e899219ae319e83bef54bf3bcb91b01d76861ecf881e8e614b167f0","affectsGlobalScope":true},"bcebb922784739bdb34c18ee51095d25a92b560c78ccd2eaacd6bd00f7443d83","7ee6ed878c4528215c82b664fe0cfe80e8b4da6c0d4cc80869367868774db8b1","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"0715e4cd28ad471b2a93f3e552ff51a3ae423417a01a10aa1d3bc7c6b95059d6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","7d55d78cd47cf5280643b53434b16c2d9d11d144126932759fbdd51da525eec4","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","f69ff39996a61a0dd10f4bce73272b52e8024a4d58b13ab32bf4712909d0a2b7",{"version":"3c4ba1dd9b12ffa284b565063108f2f031d150ea15b8fafbdc17f5d2a07251f3","affectsGlobalScope":true},"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","c4577fb855ca259bdbf3ea663ca73988ce5f84251a92b4aef80a1f4122b6f98e","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true},{"version":"ff07a9a03c65732ccc59b3c65bc584173da093bd563a6565411c01f5703bd3cb","affectsGlobalScope":true},"6de4a219df57d2b27274d59b67708f13c2cbf7ed211abe57d8f9ab8b25cde776","0fe8985a28f82c450a04a6edf1279d7181c0893f37da7d2a27f8efd4fd5edb03","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"d8d555f3d607ecaa18d55de6995ea8f206342ecc93305919eac945c7c78c78c6"],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":true,"module":1,"outDir":"./","skipLibCheck":true,"strict":true,"strictNullChecks":true,"target":1},"fileIdsList":[[48,100],[100],[54,100],[57,100],[58,63,91,100],[59,70,71,78,88,99,100],[59,60,70,78,100],[61,100],[62,63,71,79,100],[63,88,96,100],[64,66,70,78,100],[65,100],[66,67,100],[70,100],[68,70,100],[70,71,72,88,99,100],[70,71,72,85,88,91,100],[100,104],[66,73,78,88,99,100],[70,71,73,74,78,88,96,99,100],[73,75,88,96,99,100],[54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106],[70,76,100],[77,99,100],[66,70,78,88,100],[79,100],[80,100],[57,81,100],[82,98,100,104],[83,100],[84,100],[70,85,86,100],[85,87,100,102],[58,70,88,89,90,91,100],[58,88,90,100],[88,89,100],[91,100],[92,100],[70,94,95,100],[94,95,100],[63,78,88,96,100],[97,100],[78,98,100],[58,73,84,99,100],[63,100],[88,100,101],[100,102],[100,103],[58,63,70,72,81,88,99,100,102,104],[88,100,105],[71,100],[46,47,51,100],[48,49,50,80,100],[46,47,51],[48]],"referencedMap":[[49,1],[50,2],[48,2],[1,2],[9,2],[13,2],[12,2],[3,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[4,2],[5,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[6,2],[29,2],[30,2],[31,2],[32,2],[7,2],[36,2],[33,2],[34,2],[35,2],[37,2],[8,2],[38,2],[43,2],[44,2],[39,2],[40,2],[41,2],[42,2],[2,2],[45,2],[11,2],[10,2],[54,3],[55,3],[57,4],[58,5],[59,6],[60,7],[61,8],[62,9],[63,10],[64,11],[65,12],[66,13],[67,13],[69,14],[68,15],[70,14],[71,16],[72,17],[56,18],[106,2],[73,19],[74,20],[75,21],[107,22],[76,23],[77,24],[78,25],[79,26],[80,27],[81,28],[82,29],[83,30],[84,31],[85,32],[86,32],[87,33],[88,34],[90,35],[89,36],[91,37],[92,38],[93,2],[94,39],[95,40],[96,41],[97,42],[98,43],[99,44],[100,45],[101,46],[102,47],[103,48],[104,49],[105,50],[47,51],[46,2],[52,52],[53,2],[51,53]],"exportedModulesMap":[[49,1],[50,2],[48,2],[1,2],[9,2],[13,2],[12,2],[3,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[4,2],[5,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[6,2],[29,2],[30,2],[31,2],[32,2],[7,2],[36,2],[33,2],[34,2],[35,2],[37,2],[8,2],[38,2],[43,2],[44,2],[39,2],[40,2],[41,2],[42,2],[2,2],[45,2],[11,2],[10,2],[54,3],[55,3],[57,4],[58,5],[59,6],[60,7],[61,8],[62,9],[63,10],[64,11],[65,12],[66,13],[67,13],[69,14],[68,15],[70,14],[71,16],[72,17],[56,18],[106,2],[73,19],[74,20],[75,21],[107,22],[76,23],[77,24],[78,25],[79,26],[80,27],[81,28],[82,29],[83,30],[84,31],[85,32],[86,32],[87,33],[88,34],[90,35],[89,36],[91,37],[92,38],[93,2],[94,39],[95,40],[96,41],[97,42],[98,43],[99,44],[100,45],[101,46],[102,47],[103,48],[104,49],[105,50],[52,54],[53,2],[51,55]],"semanticDiagnosticsPerFile":[49,50,48,1,9,13,12,3,14,15,16,17,18,19,20,21,4,5,25,22,23,24,26,27,28,6,29,30,31,32,7,36,33,34,35,37,8,38,43,44,39,40,41,42,2,45,11,10,54,55,57,58,59,60,61,62,63,64,65,66,67,69,68,70,71,72,56,106,73,74,75,107,76,77,78,79,80,81,82,83,84,85,86,87,88,90,89,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,47,46,52,53,51]},"version":"4.9.5"}
1
+ {"program":{"fileNames":["../../../node_modules/typescript/lib/lib.d.ts","../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../src/generate.ts","../src/fs/index.ts","../../../node_modules/openapi-types/dist/index.d.ts","../../../node_modules/@apidevtools/swagger-parser/lib/index.d.ts","../../../node_modules/@types/js-yaml/index.d.ts","../src/utils.ts","../src/index.ts","../src/types.d.ts","../../../node_modules/@jest/expect-utils/build/index.d.ts","../../../node_modules/jest-matcher-utils/node_modules/chalk/index.d.ts","../../../node_modules/@sinclair/typebox/typebox.d.ts","../../../node_modules/@jest/schemas/build/index.d.ts","../../../node_modules/pretty-format/build/index.d.ts","../../../node_modules/jest-diff/build/index.d.ts","../../../node_modules/jest-matcher-utils/build/index.d.ts","../../../node_modules/expect/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/dom-events.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts"],"fileInfos":["2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60",{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},{"version":"b9c62b4e2ec6db2a991a8199748208ea651bb21383cded7430db5a397773b717","signature":"9546d3b7b3337030f4a2c635a6df2ffb1c442b32ba05c6bd09d5ca0cf6d9911b"},{"version":"950b537417d8c9e51953eea325702d35df099059d3f0a34d5ebe5c19c5d0c87c","signature":"7f531abb30a728595f83d2f2ce2af0231469b781f161bdff76f5be84cc5a4f30"},"cc3e30832aff12a575919d59eb3d680ca7cc999e1041bb0fc489dbe0276b066b","8013993fea166f6c789a35e1cec9622ba35d55bb29ec1e2f49ccee15c84c9bc7","686e548ae30250d62532c8cacb43fccc922b693408371bd3503563c4a0f28eed",{"version":"993e996d86fc63be26e120f118e12c5b052f16a893dc0986f4e82416dc259482","signature":"8e899666266af2d6e678d7297e8c8167955f5b3342f802dbc4aa53984d086b2c"},"3daf551ed19b76c66b544c97f1717dafeeb9284dc5243c600abeef1ab6d17e33",{"version":"c29a4e41fceedd8ddcbfaefac013887db7e90d8dc8b148357020d8b5bc7fb3b4","affectsGlobalScope":true},"6c1e688f95fcaf53b1e41c0fdadf2c1cfc96fa924eaf7f9fdb60f96deb0a4986","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","db25694be959314fd1e868d72e567746db1db9e2001fae545d12d2a8c1bba1b8","43883cf3635bb1846cbdc6c363787b76227677388c74f7313e3f0edb380840fa","2d47012580f859dae201d2eef898a416bdae719dffc087dfd06aefe3de2f9c8d","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","2cec1a31729b9b01e9294c33fc9425d336eff067282809761ad2e74425d6d2a5",{"version":"240c702fb4b3bd54d83ee167d80fa7f0cd7300fef7eea0b32cef33129740893c","affectsGlobalScope":true},"7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"54ba7456adb777a685250cd144115ea51379784012ba1311255b715c6bdcff2a","affectsGlobalScope":true},"11e2d554398d2bd460e7d06b2fa5827a297c8acfbe00b4f894a224ac0862857f",{"version":"e193e634a99c9c1d71f1c6e4e1567a4a73584328d21ea02dd5cddbaad6693f61","affectsGlobalScope":true},"374ca798f244e464346f14301dc2a8b4b111af1a83b49fffef5906c338a1f922","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","e596c9bb2f29a2699fdd4ae89139612652245192f67f45617c5a4b20832aaae9","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","1cdcfc1f624d6c08aa12c73935f6e13f095919cd99edf95752951796eb225729","216717f17c095cde1dc19375e1ab3af0a4a485355860c077a4f9d6ea59fab5b5","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true},"80473bd0dd90ca1e166514c2dfead9d5803f9c51418864ca35abbeec6e6847e1","1c84b46267610a34028edfd0d035509341751262bac1062857f3c8df7aff7153","e6c86d83bd526c8bdb5d0bf935b8e72ce983763d600743f74d812fdf4abf4df6","a3d541d303ee505053f5dcbf9fafb65cac3d5631037501cd616195863a6c5740","8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e630e5528e899219ae319e83bef54bf3bcb91b01d76861ecf881e8e614b167f0","affectsGlobalScope":true},"bcebb922784739bdb34c18ee51095d25a92b560c78ccd2eaacd6bd00f7443d83","7ee6ed878c4528215c82b664fe0cfe80e8b4da6c0d4cc80869367868774db8b1","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"0715e4cd28ad471b2a93f3e552ff51a3ae423417a01a10aa1d3bc7c6b95059d6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","7d55d78cd47cf5280643b53434b16c2d9d11d144126932759fbdd51da525eec4","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","f69ff39996a61a0dd10f4bce73272b52e8024a4d58b13ab32bf4712909d0a2b7",{"version":"3c4ba1dd9b12ffa284b565063108f2f031d150ea15b8fafbdc17f5d2a07251f3","affectsGlobalScope":true},"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","c4577fb855ca259bdbf3ea663ca73988ce5f84251a92b4aef80a1f4122b6f98e","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true},{"version":"ff07a9a03c65732ccc59b3c65bc584173da093bd563a6565411c01f5703bd3cb","affectsGlobalScope":true},"6de4a219df57d2b27274d59b67708f13c2cbf7ed211abe57d8f9ab8b25cde776","0fe8985a28f82c450a04a6edf1279d7181c0893f37da7d2a27f8efd4fd5edb03","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"d8d555f3d607ecaa18d55de6995ea8f206342ecc93305919eac945c7c78c78c6"],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":true,"module":1,"outDir":"./","skipLibCheck":true,"strict":true,"target":1},"fileIdsList":[[48,109],[109],[56,109],[54,60,109],[58,109],[55,59,109],[57,109],[58,61,109],[63,109],[66,109],[67,72,100,109],[68,79,80,87,97,108,109],[68,69,79,87,109],[70,109],[71,72,80,88,109],[72,97,105,109],[73,75,79,87,109],[74,109],[75,76,109],[79,109],[77,79,109],[79,80,81,97,108,109],[79,80,81,94,97,100,109],[109,113],[75,82,87,97,108,109],[79,80,82,83,87,97,105,108,109],[82,84,97,105,108,109],[63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115],[79,85,109],[86,108,109],[75,79,87,97,109],[88,109],[89,109],[66,90,109],[91,107,109,113],[92,109],[93,109],[79,94,95,109],[94,96,109,111],[67,79,97,98,99,100,109],[67,97,99,109],[97,98,109],[100,109],[101,109],[79,103,104,109],[103,104,109],[72,87,97,105,109],[106,109],[87,107,109],[67,82,93,108,109],[72,109],[97,109,110],[109,111],[109,112],[67,72,79,81,90,97,108,109,111,113],[97,109,114],[80,109],[46,47,51,109],[48,49,50,89,109],[48]],"referencedMap":[[49,1],[54,2],[57,3],[56,2],[50,2],[61,4],[59,5],[60,6],[55,2],[48,2],[58,7],[1,2],[9,2],[13,2],[12,2],[3,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[4,2],[5,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[6,2],[29,2],[30,2],[31,2],[32,2],[7,2],[36,2],[33,2],[34,2],[35,2],[37,2],[8,2],[38,2],[43,2],[44,2],[39,2],[40,2],[41,2],[42,2],[2,2],[45,2],[11,2],[10,2],[62,8],[63,9],[64,9],[66,10],[67,11],[68,12],[69,13],[70,14],[71,15],[72,16],[73,17],[74,18],[75,19],[76,19],[78,20],[77,21],[79,20],[80,22],[81,23],[65,24],[115,2],[82,25],[83,26],[84,27],[116,28],[85,29],[86,30],[87,31],[88,32],[89,33],[90,34],[91,35],[92,36],[93,37],[94,38],[95,38],[96,39],[97,40],[99,41],[98,42],[100,43],[101,44],[102,2],[103,45],[104,46],[105,47],[106,48],[107,49],[108,50],[109,51],[110,52],[111,53],[112,54],[113,55],[114,56],[47,57],[46,2],[52,58],[53,2],[51,59]],"exportedModulesMap":[[49,1],[54,2],[57,3],[56,2],[50,2],[61,4],[59,5],[60,6],[55,2],[48,2],[58,7],[1,2],[9,2],[13,2],[12,2],[3,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[4,2],[5,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[6,2],[29,2],[30,2],[31,2],[32,2],[7,2],[36,2],[33,2],[34,2],[35,2],[37,2],[8,2],[38,2],[43,2],[44,2],[39,2],[40,2],[41,2],[42,2],[2,2],[45,2],[11,2],[10,2],[62,8],[63,9],[64,9],[66,10],[67,11],[68,12],[69,13],[70,14],[71,15],[72,16],[73,17],[74,18],[75,19],[76,19],[78,20],[77,21],[79,20],[80,22],[81,23],[65,24],[115,2],[82,25],[83,26],[84,27],[116,28],[85,29],[86,30],[87,31],[88,32],[89,33],[90,34],[91,35],[92,36],[93,37],[94,38],[95,38],[96,39],[97,40],[99,41],[98,42],[100,43],[101,44],[102,2],[103,45],[104,46],[105,47],[106,48],[107,49],[108,50],[109,51],[110,52],[111,53],[112,54],[113,55],[114,56],[52,58],[53,2],[51,60]],"semanticDiagnosticsPerFile":[49,54,57,56,50,61,59,60,55,48,58,1,9,13,12,3,14,15,16,17,18,19,20,21,4,5,25,22,23,24,26,27,28,6,29,30,31,32,7,36,33,34,35,37,8,38,43,44,39,40,41,42,2,45,11,10,62,63,64,66,67,68,69,70,71,72,73,74,75,76,78,77,79,80,81,65,115,82,83,84,116,85,86,87,88,89,90,91,92,93,94,95,96,97,99,98,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,47,46,52,53,51]},"version":"4.9.5"}
package/dist/utils.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { OpenAPI } from 'openapi-types';
2
- export declare const getFileExtension: (filename: string) => string;
3
- export declare const openApiCheck: (path: string | OpenAPI.Document) => Promise<{
4
- spec: OpenAPI.Document<{}> | undefined;
5
- isOpenApi: boolean;
6
- }>;
7
- export declare const filterOutNullInGroup: (group: {
8
- pages: unknown[];
9
- }) => {
10
- pages: unknown[];
11
- };
12
- export declare const loadOpenApi: (openApiSrc: string, openApiString: string) => any;
1
+ import { OpenAPI } from 'openapi-types';
2
+ export declare const getFileExtension: (filename: string) => string;
3
+ export declare const openApiCheck: (path: string | OpenAPI.Document) => Promise<{
4
+ spec: OpenAPI.Document<{}> | undefined;
5
+ isOpenApi: boolean;
6
+ }>;
7
+ export declare const filterOutNullInGroup: (group: {
8
+ pages: unknown[];
9
+ }) => {
10
+ pages: unknown[];
11
+ };
12
+ export declare const loadOpenApi: (openApiSrc: string, openApiString: string) => any;
package/dist/utils.js CHANGED
@@ -1,114 +1,114 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
- return new (P || (P = Promise))(function (resolve, reject) {
16
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
- step((generator = generator.apply(thisArg, _arguments || [])).next());
20
- });
21
- };
22
- var __generator = (this && this.__generator) || function (thisArg, body) {
23
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
24
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
- function verb(n) { return function (v) { return step([n, v]); }; }
26
- function step(op) {
27
- if (f) throw new TypeError("Generator is already executing.");
28
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
- if (y = 0, t) op = [op[0] & 2, t.value];
31
- switch (op[0]) {
32
- case 0: case 1: t = op; break;
33
- case 4: _.label++; return { value: op[1], done: false };
34
- case 5: _.label++; y = op[1]; op = [0]; continue;
35
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
36
- default:
37
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
38
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
39
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
40
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41
- if (t[2]) _.ops.pop();
42
- _.trys.pop(); continue;
43
- }
44
- op = body.call(thisArg, _);
45
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
46
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
- }
48
- };
49
- var __importDefault = (this && this.__importDefault) || function (mod) {
50
- return (mod && mod.__esModule) ? mod : { "default": mod };
51
- };
52
- Object.defineProperty(exports, "__esModule", { value: true });
53
- exports.loadOpenApi = exports.filterOutNullInGroup = exports.openApiCheck = exports.getFileExtension = void 0;
54
- var swagger_parser_1 = __importDefault(require("@apidevtools/swagger-parser"));
55
- var js_yaml_1 = __importDefault(require("js-yaml"));
56
- var path_1 = __importDefault(require("path"));
57
- var getFileExtension = function (filename) {
58
- var parsed = path_1.default.parse(filename);
59
- return parsed.ext ? parsed.ext.slice(1) : filename;
60
- };
61
- exports.getFileExtension = getFileExtension;
62
- var openApiCheck = function (path) { return __awaiter(void 0, void 0, void 0, function () {
63
- var spec, isOpenApi, _a;
64
- return __generator(this, function (_b) {
65
- switch (_b.label) {
66
- case 0:
67
- isOpenApi = false;
68
- _b.label = 1;
69
- case 1:
70
- _b.trys.push([1, 3, , 4]);
71
- return [4 /*yield*/, swagger_parser_1.default.validate(path)];
72
- case 2:
73
- spec = _b.sent();
74
- isOpenApi = true;
75
- return [3 /*break*/, 4];
76
- case 3:
77
- _a = _b.sent();
78
- return [3 /*break*/, 4];
79
- case 4: return [2 /*return*/, { spec: spec, isOpenApi: isOpenApi }];
80
- }
81
- });
82
- }); };
83
- exports.openApiCheck = openApiCheck;
84
- var filterOutNullInGroup = function (group) {
85
- var newPages = filterOutNullInPages(group.pages);
86
- return __assign(__assign({}, group), { pages: newPages });
87
- };
88
- exports.filterOutNullInGroup = filterOutNullInGroup;
89
- var filterOutNullInPages = function (pages) {
90
- if (!Array.isArray(pages)) {
91
- return [];
92
- }
93
- var newPages = [];
94
- for (var _i = 0, pages_1 = pages; _i < pages_1.length; _i++) {
95
- var page = pages_1[_i];
96
- if (page == null) {
97
- continue;
98
- }
99
- if (page.hasOwnProperty('pages')) {
100
- newPages.push((0, exports.filterOutNullInGroup)(page));
101
- continue;
102
- }
103
- newPages.push(page);
104
- }
105
- return newPages;
106
- };
107
- var loadOpenApi = function (openApiSrc, openApiString) {
108
- // Load yaml
109
- if (openApiSrc.endsWith('.yaml') || openApiSrc.endsWith('.yml')) {
110
- return js_yaml_1.default.load(openApiString);
111
- }
112
- return JSON.parse(openApiString);
113
- };
114
- exports.loadOpenApi = loadOpenApi;
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
+ return new (P || (P = Promise))(function (resolve, reject) {
16
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
20
+ });
21
+ };
22
+ var __generator = (this && this.__generator) || function (thisArg, body) {
23
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
24
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
+ function verb(n) { return function (v) { return step([n, v]); }; }
26
+ function step(op) {
27
+ if (f) throw new TypeError("Generator is already executing.");
28
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
+ if (y = 0, t) op = [op[0] & 2, t.value];
31
+ switch (op[0]) {
32
+ case 0: case 1: t = op; break;
33
+ case 4: _.label++; return { value: op[1], done: false };
34
+ case 5: _.label++; y = op[1]; op = [0]; continue;
35
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
36
+ default:
37
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
38
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
39
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
40
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41
+ if (t[2]) _.ops.pop();
42
+ _.trys.pop(); continue;
43
+ }
44
+ op = body.call(thisArg, _);
45
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
46
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
+ }
48
+ };
49
+ var __importDefault = (this && this.__importDefault) || function (mod) {
50
+ return (mod && mod.__esModule) ? mod : { "default": mod };
51
+ };
52
+ Object.defineProperty(exports, "__esModule", { value: true });
53
+ exports.loadOpenApi = exports.filterOutNullInGroup = exports.openApiCheck = exports.getFileExtension = void 0;
54
+ var swagger_parser_1 = __importDefault(require("@apidevtools/swagger-parser"));
55
+ var js_yaml_1 = __importDefault(require("js-yaml"));
56
+ var path_1 = __importDefault(require("path"));
57
+ var getFileExtension = function (filename) {
58
+ var parsed = path_1.default.parse(filename);
59
+ return parsed.ext ? parsed.ext.slice(1) : filename;
60
+ };
61
+ exports.getFileExtension = getFileExtension;
62
+ var openApiCheck = function (path) { return __awaiter(void 0, void 0, void 0, function () {
63
+ var spec, isOpenApi, _a;
64
+ return __generator(this, function (_b) {
65
+ switch (_b.label) {
66
+ case 0:
67
+ isOpenApi = false;
68
+ _b.label = 1;
69
+ case 1:
70
+ _b.trys.push([1, 3, , 4]);
71
+ return [4 /*yield*/, swagger_parser_1.default.validate(path)];
72
+ case 2:
73
+ spec = _b.sent();
74
+ isOpenApi = true;
75
+ return [3 /*break*/, 4];
76
+ case 3:
77
+ _a = _b.sent();
78
+ return [3 /*break*/, 4];
79
+ case 4: return [2 /*return*/, { spec: spec, isOpenApi: isOpenApi }];
80
+ }
81
+ });
82
+ }); };
83
+ exports.openApiCheck = openApiCheck;
84
+ var filterOutNullInGroup = function (group) {
85
+ var newPages = filterOutNullInPages(group.pages);
86
+ return __assign(__assign({}, group), { pages: newPages });
87
+ };
88
+ exports.filterOutNullInGroup = filterOutNullInGroup;
89
+ var filterOutNullInPages = function (pages) {
90
+ if (!Array.isArray(pages)) {
91
+ return [];
92
+ }
93
+ var newPages = [];
94
+ for (var _i = 0, pages_1 = pages; _i < pages_1.length; _i++) {
95
+ var page = pages_1[_i];
96
+ if (page == null) {
97
+ continue;
98
+ }
99
+ if (page.hasOwnProperty('pages')) {
100
+ newPages.push((0, exports.filterOutNullInGroup)(page));
101
+ continue;
102
+ }
103
+ newPages.push(page);
104
+ }
105
+ return newPages;
106
+ };
107
+ var loadOpenApi = function (openApiSrc, openApiString) {
108
+ // Load yaml
109
+ if (openApiSrc.endsWith('.yaml') || openApiSrc.endsWith('.yml')) {
110
+ return js_yaml_1.default.load(openApiString);
111
+ }
112
+ return JSON.parse(openApiString);
113
+ };
114
+ exports.loadOpenApi = loadOpenApi;
package/package.json CHANGED
@@ -1,62 +1,67 @@
1
- {
2
- "name": "@mintlify/prebuild",
3
- "version": "1.0.5",
4
- "description": "Helpful functions for Mintlify's prebuild step",
5
- "author": "Mintlify, Inc.",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/mintlify/mint",
9
- "directory": "packages/mintlify-prebuild"
10
- },
11
- "bugs": {
12
- "url": "https://github.com/mintlify/mint/issues"
13
- },
14
- "license": "Elastic-2.0",
15
- "keywords": [
16
- "mintlify",
17
- "mint",
18
- "prebuild"
19
- ],
20
- "publishConfig": {
21
- "access": "public",
22
- "registry": "https://registry.npmjs.org/"
23
- },
24
- "main": "./dist/index.js",
25
- "types": "./dist/index.d.ts",
26
- "files": [
27
- "dist"
28
- ],
29
- "scripts": {
30
- "prepare": "npm run build",
31
- "build": "tsc",
32
- "watch": "tsc --watch",
33
- "lint": "eslint . --cache",
34
- "test": "jest"
35
- },
36
- "peerDependencies": {
37
- "@apidevtools/swagger-parser": "10.x",
38
- "fs-extra": "11.x",
39
- "openapi-types": "12.x"
40
- },
41
- "jest": {
42
- "preset": "ts-jest",
43
- "testEnvironment": "node"
44
- },
45
- "devDependencies": {
46
- "@mintlify/eslint-config": "1.0.3",
47
- "@mintlify/eslint-config-typescript": "1.0.7",
48
- "@mintlify/ts-config": "1.0.7",
49
- "@tsconfig/recommended": "1.x",
50
- "@types/jest": "^29.5.2",
51
- "@types/node": "^18.15.5",
52
- "@typescript-eslint/eslint-plugin": "5.x",
53
- "@typescript-eslint/parser": "5.x",
54
- "eslint": "8.x",
55
- "eslint-config-prettier": "8.x",
56
- "eslint-plugin-unused-imports": "2.x",
57
- "jest": "^29.4.3",
58
- "prettier": "2.x",
59
- "ts-jest": "^29.0.5",
60
- "typescript": "^4.8.2"
61
- }
62
- }
1
+ {
2
+ "name": "@mintlify/prebuild",
3
+ "version": "1.0.7",
4
+ "description": "Helpful functions for Mintlify's prebuild step",
5
+ "author": "Mintlify, Inc.",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/mintlify/mint",
9
+ "directory": "packages/mintlify-prebuild"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/mintlify/mint/issues"
13
+ },
14
+ "license": "Elastic-2.0",
15
+ "keywords": [
16
+ "mintlify",
17
+ "mint",
18
+ "prebuild"
19
+ ],
20
+ "publishConfig": {
21
+ "access": "public",
22
+ "registry": "https://registry.npmjs.org/"
23
+ },
24
+ "main": "./dist/index.js",
25
+ "types": "./dist/index.d.ts",
26
+ "files": [
27
+ "dist"
28
+ ],
29
+ "scripts": {
30
+ "prepare": "npm run build",
31
+ "build": "tsc",
32
+ "watch": "tsc --watch",
33
+ "lint": "eslint . --cache",
34
+ "test": "jest",
35
+ "format": "prettier \"./src/**/*.ts\" --write",
36
+ "format:check": "prettier \"./src/**/*.ts\" --check"
37
+ },
38
+ "peerDependencies": {
39
+ "@apidevtools/swagger-parser": "10.x",
40
+ "fs-extra": "11.x",
41
+ "openapi-types": "12.x"
42
+ },
43
+ "jest": {
44
+ "preset": "ts-jest",
45
+ "testEnvironment": "node"
46
+ },
47
+ "devDependencies": {
48
+ "@mintlify/eslint-config": "1.0.3",
49
+ "@mintlify/eslint-config-typescript": "1.0.7",
50
+ "@mintlify/prettier-config": "1.0.1",
51
+ "@mintlify/ts-config": "1.0.7",
52
+ "@trivago/prettier-plugin-sort-imports": "3.x",
53
+ "@tsconfig/recommended": "1.x",
54
+ "@types/jest": "^29.5.2",
55
+ "@types/node": "^18.15.5",
56
+ "@typescript-eslint/eslint-plugin": "5.x",
57
+ "@typescript-eslint/parser": "5.x",
58
+ "eslint": "8.x",
59
+ "eslint-config-prettier": "8.x",
60
+ "eslint-plugin-unused-imports": "2.x",
61
+ "jest": "^29.4.3",
62
+ "prettier": "2.x",
63
+ "ts-jest": "^29.0.5",
64
+ "typescript": "^4.8.2"
65
+ },
66
+ "gitHead": "cf3d6884a0cc69eece8129eacc2cc74b751a38e3"
67
+ }