@jxsuite/markup 0.1.0 → 0.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jxsuite/markup",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "Browser-safe markup conversion: HTML → Jx nodes, markdown → sanitized HTML",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -18,7 +18,7 @@
18
18
  "./md-html": "./src/md-html.ts"
19
19
  },
20
20
  "publishConfig": {
21
- "provenance": false
21
+ "provenance": true
22
22
  },
23
23
  "scripts": {
24
24
  "test": "bun test --isolate",
@@ -26,7 +26,7 @@
26
26
  "upgrade": "bunx npm-check-updates -u && bun install"
27
27
  },
28
28
  "dependencies": {
29
- "@jxsuite/schema": "workspace:^",
29
+ "@jxsuite/schema": "^1.1.0",
30
30
  "hast-util-from-html": "^2.0.3",
31
31
  "hast-util-whitespace": "^3.0.0",
32
32
  "property-information": "^7.2.0",
package/src/html-to-jx.ts CHANGED
@@ -37,7 +37,7 @@ function convertHastChildren(children: HastNode[]) {
37
37
  */
38
38
  function convertHastNode(node: HastNode) {
39
39
  if (node.type === "text") {
40
- if (whitespace(node as unknown as HastNode)) {
40
+ if (whitespace(node as Parameters<typeof whitespace>[0])) {
41
41
  return null;
42
42
  }
43
43
  return node.value ?? null;