@karmaniverous/jeeves-watcher 0.18.11 → 0.18.12
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.
|
@@ -24,7 +24,7 @@ import { toMarkdown } from 'mdast-util-to-markdown';
|
|
|
24
24
|
import { capitalize, title, camel, snake, dash, isEqual, get, omit } from 'radash';
|
|
25
25
|
import rehypeParse from 'rehype-parse';
|
|
26
26
|
import { unified } from 'unified';
|
|
27
|
-
import
|
|
27
|
+
import { dump, load } from 'js-yaml';
|
|
28
28
|
import 'ignore';
|
|
29
29
|
import chokidar from 'chokidar';
|
|
30
30
|
import Fastify from 'fastify';
|
|
@@ -2591,7 +2591,7 @@ function renderDoc(context, config, hbs) {
|
|
|
2591
2591
|
}
|
|
2592
2592
|
if (Object.keys(fmObj).length > 0) {
|
|
2593
2593
|
parts.push('---');
|
|
2594
|
-
parts.push(
|
|
2594
|
+
parts.push(dump(fmObj, { skipInvalid: true }).trim());
|
|
2595
2595
|
parts.push('---');
|
|
2596
2596
|
parts.push('');
|
|
2597
2597
|
}
|
|
@@ -5996,7 +5996,7 @@ function extractMarkdownFrontmatter(markdown) {
|
|
|
5996
5996
|
if (!match)
|
|
5997
5997
|
return { body: markdown };
|
|
5998
5998
|
const [, rawYaml, body] = match;
|
|
5999
|
-
const parsed =
|
|
5999
|
+
const parsed = load(rawYaml);
|
|
6000
6000
|
const frontmatter = parsed && typeof parsed === 'object' && !Array.isArray(parsed)
|
|
6001
6001
|
? parsed
|
|
6002
6002
|
: undefined;
|
|
@@ -226,7 +226,7 @@ async function startFromConfig(configPath, descriptor) {
|
|
|
226
226
|
const config = await loadConfig(resolvedPath);
|
|
227
227
|
// Dynamic import breaks the circular dependency between this module
|
|
228
228
|
// and app/index.ts (which defines JeevesWatcher and re-exports startFromConfig).
|
|
229
|
-
const { JeevesWatcher } = await import('./index-
|
|
229
|
+
const { JeevesWatcher } = await import('./index-C2iJGo8u.js');
|
|
230
230
|
const app = new JeevesWatcher(config, resolvedPath, descriptor);
|
|
231
231
|
installShutdownHandlers(() => app.stop());
|
|
232
232
|
await app.start();
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,7 @@ import { fromADF } from 'mdast-util-from-adf';
|
|
|
22
22
|
import { toMarkdown } from 'mdast-util-to-markdown';
|
|
23
23
|
import rehypeParse from 'rehype-parse';
|
|
24
24
|
import { unified } from 'unified';
|
|
25
|
-
import
|
|
25
|
+
import { dump, load } from 'js-yaml';
|
|
26
26
|
import crypto from 'crypto';
|
|
27
27
|
import { packageDirectorySync } from 'package-directory';
|
|
28
28
|
import { homedir } from 'node:os';
|
|
@@ -2167,7 +2167,7 @@ function renderDoc(context, config, hbs) {
|
|
|
2167
2167
|
}
|
|
2168
2168
|
if (Object.keys(fmObj).length > 0) {
|
|
2169
2169
|
parts.push('---');
|
|
2170
|
-
parts.push(
|
|
2170
|
+
parts.push(dump(fmObj, { skipInvalid: true }).trim());
|
|
2171
2171
|
parts.push('---');
|
|
2172
2172
|
parts.push('');
|
|
2173
2173
|
}
|
|
@@ -7203,7 +7203,7 @@ function extractMarkdownFrontmatter(markdown) {
|
|
|
7203
7203
|
if (!match)
|
|
7204
7204
|
return { body: markdown };
|
|
7205
7205
|
const [, rawYaml, body] = match;
|
|
7206
|
-
const parsed =
|
|
7206
|
+
const parsed = load(rawYaml);
|
|
7207
7207
|
const frontmatter = parsed && typeof parsed === 'object' && !Array.isArray(parsed)
|
|
7208
7208
|
? parsed
|
|
7209
7209
|
: undefined;
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"handlebars": "^4.7.9",
|
|
25
25
|
"hast-util-to-mdast": "^10.1.2",
|
|
26
26
|
"ignore": "^7.0.5",
|
|
27
|
-
"js-yaml": "
|
|
27
|
+
"js-yaml": "^4.1.0",
|
|
28
28
|
"mammoth": "^1.12.0",
|
|
29
29
|
"mdast-util-from-adf": "^2.2.0",
|
|
30
30
|
"mdast-util-to-markdown": "^2.1.2",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
49
49
|
"@types/better-sqlite3": "^7.6.13",
|
|
50
50
|
"@types/fs-extra": "^11.0.4",
|
|
51
|
-
"@types/js-yaml": "
|
|
51
|
+
"@types/js-yaml": "^4.0.0",
|
|
52
52
|
"@types/node": "^25.9.1",
|
|
53
53
|
"@types/picomatch": "^4.0.3",
|
|
54
54
|
"@vitest/coverage-v8": "^4.1.7",
|
|
@@ -149,5 +149,5 @@
|
|
|
149
149
|
},
|
|
150
150
|
"type": "module",
|
|
151
151
|
"types": "dist/index.d.ts",
|
|
152
|
-
"version": "0.18.
|
|
152
|
+
"version": "0.18.12"
|
|
153
153
|
}
|