mirror of
https://github.com/dergigi/boris.git
synced 2025-12-23 09:34:19 +01:00
chore: upgrade applesauce packages to v4.0.0
- Update all applesauce packages from 3.1.0 to 4.0.0 - Add applesauce-factory dependency - Version 4.0.0 includes app-data helpers needed for NIP-78
This commit is contained in:
6
node_modules/nostr-tools/lib/cjs/nip27.js
generated
vendored
6
node_modules/nostr-tools/lib/cjs/nip27.js
generated
vendored
@@ -172,19 +172,19 @@ function* parse(content) {
|
||||
if (prevIndex !== u - prefixLen) {
|
||||
yield { type: "text", text: content.substring(prevIndex, u - prefixLen) };
|
||||
}
|
||||
if (url.pathname.endsWith(".png") || url.pathname.endsWith(".jpg") || url.pathname.endsWith(".jpeg") || url.pathname.endsWith(".gif") || url.pathname.endsWith(".webp")) {
|
||||
if (/\.(png|jpe?g|gif|webp)$/i.test(url.pathname)) {
|
||||
yield { type: "image", url: url.toString() };
|
||||
index = end;
|
||||
prevIndex = index;
|
||||
continue;
|
||||
}
|
||||
if (url.pathname.endsWith(".mp4") || url.pathname.endsWith(".avi") || url.pathname.endsWith(".webm") || url.pathname.endsWith(".mkv")) {
|
||||
if (/\.(mp4|avi|webm|mkv)$/i.test(url.pathname)) {
|
||||
yield { type: "video", url: url.toString() };
|
||||
index = end;
|
||||
prevIndex = index;
|
||||
continue;
|
||||
}
|
||||
if (url.pathname.endsWith(".mp3") || url.pathname.endsWith(".aac") || url.pathname.endsWith(".ogg") || url.pathname.endsWith(".opus")) {
|
||||
if (/\.(mp3|aac|ogg|opus)$/i.test(url.pathname)) {
|
||||
yield { type: "audio", url: url.toString() };
|
||||
index = end;
|
||||
prevIndex = index;
|
||||
|
||||
Reference in New Issue
Block a user