zohlathu 1.0.4 → 1.0.6
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/index.js +3 -3
- package/package.json +7 -4
package/index.js
CHANGED
|
@@ -73,8 +73,8 @@ async function get_lyrics(query) {
|
|
|
73
73
|
{
|
|
74
74
|
selector: 'p',
|
|
75
75
|
options: {
|
|
76
|
-
leadingLineBreaks:
|
|
77
|
-
trailingLineBreaks:
|
|
76
|
+
leadingLineBreaks: 1,
|
|
77
|
+
trailingLineBreaks: 1
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
{ selector: 'br', format: 'lineBreak' },
|
|
@@ -83,7 +83,7 @@ async function get_lyrics(query) {
|
|
|
83
83
|
]
|
|
84
84
|
});
|
|
85
85
|
|
|
86
|
-
cleaned_content = cleaned_content.trim();
|
|
86
|
+
cleaned_content = cleaned_content.replace(/\n{3,}/g, '\n\n').trim();
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zohlathu",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "A Node.js package for fetching Mizo song lyrics from www.zohlathu.in",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,8 +21,11 @@
|
|
|
21
21
|
"node": ">=14.0.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"rss-parser": "
|
|
25
|
-
"html-to-text": "
|
|
26
|
-
"yt-search": "
|
|
24
|
+
"rss-parser": "^3.13.0",
|
|
25
|
+
"html-to-text": "^9.0.5",
|
|
26
|
+
"yt-search": "^2.13.1"
|
|
27
|
+
},
|
|
28
|
+
"overrides": {
|
|
29
|
+
"minimatch": "^5.0.0"
|
|
27
30
|
}
|
|
28
31
|
}
|