applesauce-content 0.0.0-next-20241113103021 → 0.0.0-next-20241114194041

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": "applesauce-content",
3
- "version": "0.0.0-next-20241113103021",
3
+ "version": "0.0.0-next-20241114194041",
4
4
  "description": "Unified plugins for processing event content",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -40,7 +40,7 @@
40
40
  "@types/hast": "^3.0.4",
41
41
  "@types/mdast": "^4.0.4",
42
42
  "@types/unist": "^3.0.3",
43
- "applesauce-core": "0.0.0-next-20241113103021",
43
+ "applesauce-core": "0.0.0-next-20241114194041",
44
44
  "mdast-util-find-and-replace": "^3.0.1",
45
45
  "nostr-tools": "^2.10.1",
46
46
  "remark": "^15.0.1",
@@ -52,7 +52,8 @@
52
52
  "@jest/globals": "^29.7.0",
53
53
  "@types/jest": "^29.5.13",
54
54
  "jest": "^29.7.0",
55
- "jest-extended": "^4.0.2"
55
+ "jest-extended": "^4.0.2",
56
+ "typescript": "^5.6.3"
56
57
  },
57
58
  "jest": {
58
59
  "roots": [
@@ -62,6 +63,10 @@
62
63
  "jest-extended/all"
63
64
  ]
64
65
  },
66
+ "funding": {
67
+ "type": "lightning",
68
+ "url": "lightning:nostrudel@geyser.fund"
69
+ },
65
70
  "scripts": {
66
71
  "build": "tsc",
67
72
  "watch:build": "tsc --watch > /dev/null",
@@ -1,3 +0,0 @@
1
- import { Transformer } from "unified";
2
- import { Root } from "../nast/types.js";
3
- export declare function links(): Transformer<Root>;
package/dist/text/link.js DELETED
@@ -1,22 +0,0 @@
1
- import Expressions from "../helpers/regexp.js";
2
- import { findAndReplace } from "../nast/find-and-replace.js";
3
- export function links() {
4
- return (tree) => {
5
- findAndReplace(tree, [
6
- [
7
- Expressions.link,
8
- (_) => {
9
- try {
10
- return {
11
- type: "link",
12
- href: new URL(_).toString(),
13
- value: _,
14
- };
15
- }
16
- catch (error) { }
17
- return false;
18
- },
19
- ],
20
- ]);
21
- };
22
- }