@hiveposh/so-many-frontends
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -5,3 +5,2 @@ const hiveDomains = [ | ||
"hive.blog", | ||
"leofinance.io", | ||
"cinetv.blog", | ||
@@ -20,3 +19,5 @@ "splintertalk.io", | ||
"skatehive.app", | ||
'veews.io', | ||
// Special cases below this line | ||
"leofinance.io", | ||
"3speak.tv", | ||
@@ -57,2 +58,5 @@ "reverio.io", | ||
//For special case sites, we handle them by faking the normal domain.tld/@author/permlink format | ||
if (hiveLink.includes("leofinance.io/posts/view")) { | ||
hiveLink = hiveLink.replace("leofinance.io/posts/view/", "leofinance.io/@"); | ||
} | ||
if (hiveLink.includes("3speak.tv")) { | ||
@@ -59,0 +63,0 @@ hiveLink = hiveLink.replace("3speak.tv/watch?v=", "3speak.tv/@"); |
{ | ||
"name": "@hiveposh/so-many-frontends", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "JS module for listing Hive front ends", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -195,1 +195,10 @@ const test = require("node:test"); | ||
}); | ||
test("leofinance new UI blog view URL", (t) => { | ||
assert.deepEqual(parseHiveUrl("https://alpha.leofinance.io/posts/view/idiosyncratic1/proof-of-share-posh-leothreads"), { | ||
domain: "alpha.leofinance.io", | ||
author: "idiosyncratic1", | ||
permlink: "proof-of-share-posh-leothreads" | ||
}); | ||
}); | ||
10459
276