@jacobbubu/md-to-lark 1.4.3 → 1.4.4

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.
@@ -42,6 +42,9 @@ export function resolveLocalPathFromSource(sourceUrl, baseDir) {
42
42
  const raw = sourceUrl.trim();
43
43
  if (!raw)
44
44
  return null;
45
+ if (raw.startsWith('#')) {
46
+ return null;
47
+ }
45
48
  if (isHttpLike(raw)) {
46
49
  if (/^https?:/i.test(raw)) {
47
50
  return null;
@@ -49,6 +52,9 @@ export function resolveLocalPathFromSource(sourceUrl, baseDir) {
49
52
  return null;
50
53
  }
51
54
  const decoded = safeDecodeURIComponent(stripQueryAndHash(raw));
55
+ if (!decoded.trim()) {
56
+ return null;
57
+ }
52
58
  const absolute = path.isAbsolute(decoded) ? decoded : path.resolve(baseDir, decoded);
53
59
  return absolute;
54
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jacobbubu/md-to-lark",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "Publish Markdown to Feishu docs with a stable pipeline.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",