Bump lib version

This commit is contained in:
Jon Staab
2024-08-06 11:57:20 -07:00
parent a10b322157
commit 3404a471bb
4 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -3283,7 +3283,7 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@welshman/lib": "0.0.12", "@welshman/lib": "0.0.12",
"@welshman/net": "0.0.15", "@welshman/net": "0.0.16",
"@welshman/util": "0.0.23", "@welshman/util": "0.0.23",
"nostr-tools": "^2.7.0" "nostr-tools": "^2.7.0"
}, },
@@ -3332,7 +3332,7 @@
}, },
"packages/net": { "packages/net": {
"name": "@welshman/net", "name": "@welshman/net",
"version": "0.0.15", "version": "0.0.16",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@welshman/lib": "0.0.12", "@welshman/lib": "0.0.12",
+1 -1
View File
@@ -32,7 +32,7 @@
}, },
"dependencies": { "dependencies": {
"@welshman/lib": "0.0.12", "@welshman/lib": "0.0.12",
"@welshman/net": "0.0.15", "@welshman/net": "0.0.16",
"@welshman/util": "0.0.23", "@welshman/util": "0.0.23",
"nostr-tools": "^2.7.0" "nostr-tools": "^2.7.0"
} }
+3
View File
@@ -350,6 +350,9 @@ export const pushToMapKey = <K, T>(m: Map<K, T[]>, k: K, v: T) => {
m.set(k, a) m.set(k, a)
} }
export const switcher = <T>(k: string, m: Record<string, T>) =>
m[k] === undefined ? m.default : m[k]
// Random obscure stuff // Random obscure stuff
export const hexToBech32 = (prefix: string, url: string) => export const hexToBech32 = (prefix: string, url: string) =>
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@welshman/net", "name": "@welshman/net",
"version": "0.0.15", "version": "0.0.16",
"author": "hodlbod", "author": "hodlbod",
"license": "MIT", "license": "MIT",
"description": "Utilities for connecting with nostr relays.", "description": "Utilities for connecting with nostr relays.",