@ledgerhq/zcash-utils 0.1.0 → 0.1.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/index.d.ts CHANGED
@@ -101,6 +101,15 @@ export declare class TransactionStream {
101
101
  * This method is safe to call — it only mutates the internal channel receiver.
102
102
  */
103
103
  next(): Promise<ShieldedTransaction | null>
104
+ /**
105
+ * Cancels the background scan immediately.
106
+ *
107
+ * Aborts the tokio task running the sync engine. Any buffered transactions
108
+ * already sent by Rust are still consumable via `next()`, which will then
109
+ * return `null` once the buffer is drained. `stats()` will return an error
110
+ * after cancellation.
111
+ */
112
+ cancel(): void
104
113
  /**
105
114
  * Returns scan statistics once the stream is exhausted (i.e. after `next()`
106
115
  * returns `null`). Calling this before the stream is done will wait until
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/zcash-utils",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Native Zcash key derivation and shielded sync — Node.js (NAPI)",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",