nappup 1.5.4 → 1.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +4 -2
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "git+https://github.com/44billion/nappup.git"
7
7
  },
8
8
  "license": "MIT",
9
- "version": "1.5.4",
9
+ "version": "1.5.5",
10
10
  "description": "Nostr App Uploader",
11
11
  "type": "module",
12
12
  "scripts": {
package/src/index.js CHANGED
@@ -130,7 +130,7 @@ export async function toApp (fileList, nostrSigner, { log = () => {}, dTag, dTag
130
130
  }
131
131
  }
132
132
 
133
- log(`Uploading stall event for #${dTag}`)
133
+ log(`Uploading stall event for ${dTag}`)
134
134
  ;({ pause } = (await maybeUploadStall({
135
135
  dTag,
136
136
  channel,
@@ -146,6 +146,7 @@ export async function toApp (fileList, nostrSigner, { log = () => {}, dTag, dTag
146
146
  writeRelays,
147
147
  log,
148
148
  pause,
149
+ shouldReupload,
149
150
  self: nappJson.self?.[0]?.[0],
150
151
  countries: nappJson.country,
151
152
  categories: nappJson.category,
@@ -386,6 +387,7 @@ async function maybeUploadStall ({
386
387
  writeRelays,
387
388
  log,
388
389
  pause,
390
+ shouldReupload,
389
391
  self,
390
392
  countries,
391
393
  categories,
@@ -631,7 +633,7 @@ async function maybeUploadStall ({
631
633
  }
632
634
  }
633
635
 
634
- if (!changed) {
636
+ if (!changed && !shouldReupload) {
635
637
  const { storedEvents } = previousResult
636
638
 
637
639
  const matchingEvents = storedEvents.filter(e => e.id === previous.id)