@jimmiewang/message-broker 0.0.0 → 0.0.1
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.
- package/bin/mb.js +9 -1
- package/message.dat +1 -2
- package/package.json +1 -1
package/bin/mb.js
CHANGED
|
@@ -175,7 +175,15 @@ function cmdPoll() {
|
|
|
175
175
|
console.log('No published version found yet.');
|
|
176
176
|
return;
|
|
177
177
|
}
|
|
178
|
-
|
|
178
|
+
// Ignore prerelease/staged tags (e.g. 0.0.0-stage): only x.y.z releases
|
|
179
|
+
// carry a message, and our semver comparator only understands that shape.
|
|
180
|
+
const sorted = allVersions
|
|
181
|
+
.filter((v) => /^\d+\.\d+\.\d+$/.test(v))
|
|
182
|
+
.sort(compareSemver);
|
|
183
|
+
if (sorted.length === 0) {
|
|
184
|
+
console.log('No released versions found yet (only prerelease/staged tags).');
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
179
187
|
|
|
180
188
|
// First run: anchor the cursor at the latest version without backfilling
|
|
181
189
|
// whatever was published before this receiver existed.
|
package/message.dat
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
published as new package versions by "mb send".
|
|
1
|
+
{"v":1,"iv":"vxS1niyWwCQQxNVH","tag":"zL6ykoSVi2SPbOGajttXNQ==","data":"I4s9hp9G2/pf4LTD7E473Hm6Psd5ExqTiYmC3CXO64rsXDcSr/GDPfQiqDFacnZknWu2Ur4uJOA8Nx3sgpD9AF7u5UZgAnCkRDE35sMp6ESsN/U6jo5AqkMb9n78","sentAt":"2026-11-23T09:00:55.547Z"}
|