applesauce-content 0.9.0 → 0.10.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/dist/helpers/regexp.js +2 -2
- package/package.json +7 -18
package/dist/helpers/regexp.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export const Expressions = {
|
|
2
2
|
get link() {
|
|
3
|
-
return /https?:\/\/([a-zA-Z0-9\.\-]+\.[a-zA-Z]+)([\/\?#][\p{L}\p{N}\p{M}&\.-\/\?=#\-@%\+_,:!~*]*)?/gu;
|
|
3
|
+
return /https?:\/\/([a-zA-Z0-9\.\-]+\.[a-zA-Z]+(?::\d+)?)([\/\?#][\p{L}\p{N}\p{M}&\.-\/\?=#\-@%\+_,:!~*]*)?/gu;
|
|
4
4
|
},
|
|
5
5
|
get cashu() {
|
|
6
6
|
return /(cashu(?:A|B)[A-Za-z0-9_-]{100,10000}={0,3})/gi;
|
|
7
7
|
},
|
|
8
8
|
get nostrLink() {
|
|
9
|
-
return /
|
|
9
|
+
return /nostr:((npub|note|nprofile|nevent|naddr)1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{58,})/gi;
|
|
10
10
|
},
|
|
11
11
|
get emoji() {
|
|
12
12
|
return /:([a-zA-Z0-9_-]+):/gi;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "applesauce-content",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Unified plugins for processing event content",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -40,28 +40,17 @@
|
|
|
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.
|
|
43
|
+
"applesauce-core": "^0.10.0",
|
|
44
44
|
"mdast-util-find-and-replace": "^3.0.1",
|
|
45
|
-
"nostr-tools": "^2.10.
|
|
45
|
+
"nostr-tools": "^2.10.3",
|
|
46
46
|
"remark": "^15.0.1",
|
|
47
47
|
"remark-parse": "^11.0.0",
|
|
48
48
|
"unified": "^11.0.5",
|
|
49
49
|
"unist-util-visit-parents": "^6.0.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"jest": "^29.7.0",
|
|
55
|
-
"jest-extended": "^4.0.2",
|
|
56
|
-
"typescript": "^5.6.3"
|
|
57
|
-
},
|
|
58
|
-
"jest": {
|
|
59
|
-
"roots": [
|
|
60
|
-
"dist"
|
|
61
|
-
],
|
|
62
|
-
"setupFilesAfterEnv": [
|
|
63
|
-
"jest-extended/all"
|
|
64
|
-
]
|
|
52
|
+
"typescript": "^5.6.3",
|
|
53
|
+
"vitest": "^2.1.8"
|
|
65
54
|
},
|
|
66
55
|
"funding": {
|
|
67
56
|
"type": "lightning",
|
|
@@ -70,7 +59,7 @@
|
|
|
70
59
|
"scripts": {
|
|
71
60
|
"build": "tsc",
|
|
72
61
|
"watch:build": "tsc --watch > /dev/null",
|
|
73
|
-
"test": "
|
|
74
|
-
"watch:test": "
|
|
62
|
+
"test": "vitest run --passWithNoTests",
|
|
63
|
+
"watch:test": "vitest"
|
|
75
64
|
}
|
|
76
65
|
}
|