Make createEvent params optional, bump nostr-editor

This commit is contained in:
Jon Staab
2025-01-30 16:51:52 -08:00
parent 369a89dc60
commit 45d3311602
3 changed files with 10 additions and 10 deletions
+8 -8
View File
@@ -5743,13 +5743,13 @@
},
"packages/app": {
"name": "@welshman/app",
"version": "0.0.41",
"version": "0.0.42",
"license": "MIT",
"dependencies": {
"@types/throttle-debounce": "^5.0.2",
"@welshman/dvm": "~0.0.13",
"@welshman/feeds": "~0.0.30",
"@welshman/lib": "~0.0.37",
"@welshman/lib": "~0.0.39",
"@welshman/net": "~0.0.46",
"@welshman/signer": "~0.0.19",
"@welshman/store": "~0.0.15",
@@ -5762,7 +5762,7 @@
},
"packages/content": {
"name": "@welshman/content",
"version": "0.0.15",
"version": "0.0.17",
"license": "MIT",
"dependencies": {
"@braintree/sanitize-url": "^7.0.2",
@@ -5799,7 +5799,7 @@
},
"packages/editor": {
"name": "@welshman/editor",
"version": "0.0.9",
"version": "0.0.10",
"devDependencies": {
"@sveltejs/kit": "^2.0.0",
"@sveltejs/package": "^2.0.0",
@@ -5844,7 +5844,7 @@
"@tiptap/suggestion": "^2.9.1",
"@welshman/lib": "~0.0.36",
"@welshman/util": "~0.0.53",
"nostr-editor": "^0.0.4-pre.7",
"nostr-editor": "^0.0.4-pre.8",
"nostr-tools": "^2.8.1",
"svelte": "^4.0.0",
"svelte-tiptap": "^1.0.0"
@@ -6400,7 +6400,7 @@
},
"packages/lib": {
"name": "@welshman/lib",
"version": "0.0.38",
"version": "0.0.39",
"license": "MIT",
"dependencies": {
"@scure/base": "^1.1.6",
@@ -6489,7 +6489,7 @@
},
"packages/store": {
"name": "@welshman/store",
"version": "0.0.15",
"version": "0.0.16",
"license": "MIT",
"dependencies": {
"@welshman/lib": "~0.0.37",
@@ -6499,7 +6499,7 @@
},
"packages/util": {
"name": "@welshman/util",
"version": "0.0.59",
"version": "0.0.60",
"license": "MIT",
"dependencies": {
"@types/ws": "^8.5.13",
+1 -1
View File
@@ -44,7 +44,7 @@
"@tiptap/suggestion": "^2.9.1",
"@welshman/lib": "~0.0.36",
"@welshman/util": "~0.0.53",
"nostr-editor": "^0.0.4-pre.7",
"nostr-editor": "^0.0.4-pre.8",
"nostr-tools": "^2.8.1",
"svelte": "^4.0.0",
"svelte-tiptap": "^1.0.0"
+1 -1
View File
@@ -54,7 +54,7 @@ export type CreateEventOpts = {
export const createEvent = (
kind: number,
{content = "", tags = [], created_at = now()}: CreateEventOpts,
{content = "", tags = [], created_at = now()}: CreateEventOpts = {},
) => ({kind, content, tags, created_at})
export const isEventTemplate = (e: EventTemplate): e is EventTemplate =>