@knapsack/mdx-adapter 4.92.15--canary.622247d.0 → 4.92.15
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/parser.d.ts.map +1 -1
- package/dist/parser.js +5 -7
- package/package.json +5 -5
package/dist/parser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,SAAS,EACT,WAAW,EAKZ,MAAM,wBAAwB,CAAC;AAOhC,wBAAgB,KAAK,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,SAAS,EACT,WAAW,EAKZ,MAAM,wBAAwB,CAAC;AAOhC,wBAAgB,KAAK,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI,CA2GhE"}
|
package/dist/parser.js
CHANGED
|
@@ -23,7 +23,6 @@ export function parse(config, deps) {
|
|
|
23
23
|
},
|
|
24
24
|
}));
|
|
25
25
|
const items = [];
|
|
26
|
-
let errors = 0;
|
|
27
26
|
try {
|
|
28
27
|
const content = readFileSync(config.path, 'utf-8');
|
|
29
28
|
deps.logger.info('Parse extract succeeded', buildLogContext({
|
|
@@ -56,9 +55,8 @@ export function parse(config, deps) {
|
|
|
56
55
|
},
|
|
57
56
|
error: err instanceof Error ? err : undefined,
|
|
58
57
|
}));
|
|
59
|
-
items.push({ ref, refType: 'document', stage: 'parse', error: message });
|
|
60
58
|
deps.emit({ stage: 'parse', type: 'item.error', ref, error: message });
|
|
61
|
-
|
|
59
|
+
throw err;
|
|
62
60
|
}
|
|
63
61
|
const manifest = {
|
|
64
62
|
siteId,
|
|
@@ -68,10 +66,10 @@ export function parse(config, deps) {
|
|
|
68
66
|
items,
|
|
69
67
|
stages: {
|
|
70
68
|
parse: {
|
|
71
|
-
status:
|
|
69
|
+
status: 'success',
|
|
72
70
|
discoveredItemCount: 1,
|
|
73
|
-
itemCount: items.length
|
|
74
|
-
errors,
|
|
71
|
+
itemCount: items.length,
|
|
72
|
+
errors: 0,
|
|
75
73
|
durationMs: Date.now() - start,
|
|
76
74
|
startedAt: new Date(start).toISOString(),
|
|
77
75
|
completedAt: new Date().toISOString(),
|
|
@@ -88,7 +86,7 @@ export function parse(config, deps) {
|
|
|
88
86
|
name: 'ingest.parse',
|
|
89
87
|
sourceType: SOURCE_TYPE_TO_EVT.MDX,
|
|
90
88
|
step: 'complete',
|
|
91
|
-
outcome:
|
|
89
|
+
outcome: 'success',
|
|
92
90
|
ref,
|
|
93
91
|
},
|
|
94
92
|
}));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knapsack/mdx-adapter",
|
|
3
3
|
"description": "MDX Context Adapter",
|
|
4
|
-
"version": "4.92.15
|
|
4
|
+
"version": "4.92.15",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
},
|
|
24
24
|
"author": "Knapsack (https://www.knapsack.cloud)",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@knapsack/adapter-core": "4.92.15
|
|
26
|
+
"@knapsack/adapter-core": "4.92.15",
|
|
27
27
|
"@mdx-js/mdx": "^3.0.0",
|
|
28
28
|
"yaml": "^2.8.3"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@knapsack/eslint-config-starter": "4.92.15
|
|
32
|
-
"@knapsack/typescript-config-starter": "4.92.15
|
|
31
|
+
"@knapsack/eslint-config-starter": "4.92.15",
|
|
32
|
+
"@knapsack/typescript-config-starter": "4.92.15",
|
|
33
33
|
"@types/node": "^22.19.11",
|
|
34
34
|
"eslint": "^9.20.0",
|
|
35
35
|
"typescript": "^5.9.3",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"directory": "libs/ingest-pipeline/adapters/mdx",
|
|
45
45
|
"type": "git"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "609106b8e3e2d8e3e164b6437ad083198941f463"
|
|
48
48
|
}
|