@mintlify/previewing 4.0.10 → 4.0.11
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/dist/constants.js +16 -16
- package/dist/local-preview/index.js +88 -156
- package/dist/local-preview/listener/generate.js +27 -100
- package/dist/local-preview/listener/index.js +149 -258
- package/dist/local-preview/listener/update.js +12 -59
- package/dist/local-preview/listener/utils.js +27 -82
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/util.js +5 -6
- package/package.json +5 -5
package/dist/util.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import Ora from 'ora';
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
var logger = Ora().start(startText);
|
|
2
|
+
export const buildLogger = (startText = '') => {
|
|
3
|
+
const logger = Ora().start(startText);
|
|
5
4
|
return logger;
|
|
6
5
|
};
|
|
7
|
-
export
|
|
8
|
-
|
|
6
|
+
export const getFileExtension = (filename) => {
|
|
7
|
+
const ext = filename.substring(filename.lastIndexOf('.') + 1, filename.length);
|
|
9
8
|
if (filename === ext)
|
|
10
9
|
return undefined;
|
|
11
10
|
return ext;
|
|
12
11
|
};
|
|
13
|
-
export
|
|
12
|
+
export const maybeFixMissingWindowsEnvVar = () => {
|
|
14
13
|
if (process.platform === 'win32' &&
|
|
15
14
|
!('SYSTEMROOT' in process.env) &&
|
|
16
15
|
'SystemRoot' in process.env) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/previewing",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.11",
|
|
4
4
|
"description": "Preview Mintlify docs locally",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@apidevtools/swagger-parser": "^10.1.0",
|
|
44
|
-
"@mintlify/prebuild": "1.0.
|
|
44
|
+
"@mintlify/prebuild": "1.0.39",
|
|
45
45
|
"@octokit/rest": "^19.0.5",
|
|
46
46
|
"chalk": "^5.1.0",
|
|
47
47
|
"chokidar": "^3.5.3",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"@mintlify/eslint-config": "1.0.3",
|
|
69
69
|
"@mintlify/eslint-config-typescript": "1.0.7",
|
|
70
70
|
"@mintlify/prettier-config": "1.0.1",
|
|
71
|
-
"@mintlify/ts-config": "
|
|
72
|
-
"@mintlify/validation": "0.1.
|
|
71
|
+
"@mintlify/ts-config": "2.0.0",
|
|
72
|
+
"@mintlify/validation": "0.1.68",
|
|
73
73
|
"@trivago/prettier-plugin-sort-imports": "3.x",
|
|
74
74
|
"@tsconfig/recommended": "1.x",
|
|
75
75
|
"@types/fs-extra": "^9.0.13",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"rimraf": "^5.0.1",
|
|
88
88
|
"typescript": "^4.8.2"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "ab27814faa49e32de06a450617c635e3b2f8d21f"
|
|
91
91
|
}
|