Fix typo in utility function

This commit is contained in:
Jon Staab
2024-12-11 16:47:52 -08:00
parent 79d3996a5a
commit 31a0b3d671
11 changed files with 19 additions and 19 deletions
+9 -9
View File
@@ -3648,7 +3648,7 @@
"@types/throttle-debounce": "^5.0.2",
"@welshman/dvm": "~0.0.11",
"@welshman/feeds": "~0.0.26",
"@welshman/lib": "~0.0.29",
"@welshman/lib": "~0.0.30",
"@welshman/net": "~0.0.41",
"@welshman/signer": "~0.0.16",
"@welshman/store": "~0.0.13",
@@ -3670,7 +3670,7 @@
"license": "MIT",
"dependencies": {
"@braintree/sanitize-url": "^7.0.2",
"@welshman/lib": "~0.0.29",
"@welshman/lib": "~0.0.30",
"nostr-tools": "^2.7.2"
},
"devDependencies": {
@@ -3684,7 +3684,7 @@
"version": "0.0.11",
"license": "MIT",
"dependencies": {
"@welshman/lib": "~0.0.29",
"@welshman/lib": "~0.0.30",
"@welshman/net": "~0.0.41",
"@welshman/util": "~0.0.48",
"nostr-tools": "^2.7.2"
@@ -3700,7 +3700,7 @@
"version": "0.0.26",
"license": "MIT",
"dependencies": {
"@welshman/lib": "~0.0.29",
"@welshman/lib": "~0.0.30",
"@welshman/util": "~0.0.48"
},
"devDependencies": {
@@ -3711,7 +3711,7 @@
},
"packages/lib": {
"name": "@welshman/lib",
"version": "0.0.29",
"version": "0.0.30",
"license": "MIT",
"dependencies": {
"@scure/base": "^1.1.6",
@@ -3736,7 +3736,7 @@
"version": "0.0.41",
"license": "MIT",
"dependencies": {
"@welshman/lib": "~0.0.29",
"@welshman/lib": "~0.0.30",
"@welshman/util": "~0.0.48",
"isomorphic-ws": "^5.0.0",
"ws": "^8.16.0"
@@ -3753,7 +3753,7 @@
"version": "0.0.16",
"license": "MIT",
"dependencies": {
"@welshman/lib": "~0.0.29",
"@welshman/lib": "~0.0.30",
"@welshman/net": "~0.0.41",
"@welshman/util": "~0.0.48",
"nostr-tools": "^2.7.2"
@@ -3772,7 +3772,7 @@
"version": "0.0.13",
"license": "MIT",
"dependencies": {
"@welshman/lib": "~0.0.29",
"@welshman/lib": "~0.0.30",
"@welshman/util": "~0.0.48",
"svelte": "^4.2.18"
},
@@ -3787,7 +3787,7 @@
"version": "0.0.48",
"license": "MIT",
"dependencies": {
"@welshman/lib": "~0.0.29",
"@welshman/lib": "~0.0.30",
"nostr-tools": "^2.7.2"
},
"devDependencies": {
+1 -1
View File
@@ -34,7 +34,7 @@
"@types/throttle-debounce": "^5.0.2",
"@welshman/dvm": "~0.0.11",
"@welshman/feeds": "~0.0.26",
"@welshman/lib": "~0.0.29",
"@welshman/lib": "~0.0.30",
"@welshman/net": "~0.0.41",
"@welshman/signer": "~0.0.16",
"@welshman/store": "~0.0.13",
+1 -1
View File
@@ -32,7 +32,7 @@
},
"dependencies": {
"@braintree/sanitize-url": "^7.0.2",
"@welshman/lib": "~0.0.29",
"@welshman/lib": "~0.0.30",
"nostr-tools": "^2.7.2"
}
}
+1 -1
View File
@@ -31,7 +31,7 @@
"typescript": "~5.1.6"
},
"dependencies": {
"@welshman/lib": "~0.0.29",
"@welshman/lib": "~0.0.30",
"@welshman/net": "~0.0.41",
"@welshman/util": "~0.0.48",
"nostr-tools": "^2.7.2"
+1 -1
View File
@@ -31,7 +31,7 @@
"typescript": "~5.1.6"
},
"dependencies": {
"@welshman/lib": "~0.0.29",
"@welshman/lib": "~0.0.30",
"@welshman/util": "~0.0.48"
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/lib",
"version": "0.0.29",
"version": "0.0.30",
"author": "hodlbod",
"license": "MIT",
"description": "A collection of utilities.",
+1 -1
View File
@@ -297,7 +297,7 @@ export const choice = <T>(xs: T[]): T => xs[Math.floor(xs.length * Math.random()
export const shuffle = <T>(xs: Iterable<T>): T[] => Array.from(xs).sort(() => Math.random() > 0.5 ? 1 : -1)
export const samplo = <T>(n: number, xs: T[]) => shuffle(xs).slice(0, n)
export const sample = <T>(n: number, xs: T[]) => shuffle(xs).slice(0, n)
export const isIterable = (x: any) => Symbol.iterator in Object(x)
+1 -1
View File
@@ -33,7 +33,7 @@
"typescript": "~5.1.6"
},
"dependencies": {
"@welshman/lib": "~0.0.29",
"@welshman/lib": "~0.0.30",
"@welshman/util": "~0.0.48",
"isomorphic-ws": "^5.0.0",
"ws": "^8.16.0"
+1 -1
View File
@@ -31,7 +31,7 @@
"typescript": "~5.1.6"
},
"dependencies": {
"@welshman/lib": "~0.0.29",
"@welshman/lib": "~0.0.30",
"@welshman/net": "~0.0.41",
"@welshman/util": "~0.0.48",
"nostr-tools": "^2.7.2"
+1 -1
View File
@@ -31,7 +31,7 @@
"typescript": "~5.1.6"
},
"dependencies": {
"@welshman/lib": "~0.0.29",
"@welshman/lib": "~0.0.30",
"@welshman/util": "~0.0.48",
"svelte": "^4.2.18"
}
+1 -1
View File
@@ -31,7 +31,7 @@
"typescript": "~5.1.6"
},
"dependencies": {
"@welshman/lib": "~0.0.29",
"@welshman/lib": "~0.0.30",
"nostr-tools": "^2.7.2"
}
}