onekey-monero-runtime 0.1.0-alpha.5 → 0.1.0-alpha.6

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.
@@ -146,10 +146,8 @@ export function setNodeUrl(url: string): Promise<void>;
146
146
  * `handler` is `(url, contentType, body: Uint8Array) => Promise<Uint8Array>`;
147
147
  * `undefined` uninstalls it.
148
148
  *
149
- * In-wasm fetch is bound by browser mixed-content and CORS rules, and monerod sends
150
- * no CORS headers by default, so few public nodes are reachable. The extension
151
- * background, desktop main process and mobile native code are not bound by those
152
- * rules, so any node is reachable through them.
149
+ * Lets nodes that in-wasm fetch cannot reach (mixed content, no CORS headers) be
150
+ * used through the extension background, desktop main process or mobile native code.
153
151
  */
154
152
  export function setRequestHandler(handler?: Function | null): void;
155
153
 
@@ -492,10 +492,8 @@ export function setNodeUrl(url) {
492
492
  * `handler` is `(url, contentType, body: Uint8Array) => Promise<Uint8Array>`;
493
493
  * `undefined` uninstalls it.
494
494
  *
495
- * In-wasm fetch is bound by browser mixed-content and CORS rules, and monerod sends
496
- * no CORS headers by default, so few public nodes are reachable. The extension
497
- * background, desktop main process and mobile native code are not bound by those
498
- * rules, so any node is reachable through them.
495
+ * Lets nodes that in-wasm fetch cannot reach (mixed content, no CORS headers) be
496
+ * used through the extension background, desktop main process or mobile native code.
499
497
  * @param {Function | null} [handler]
500
498
  */
501
499
  export function setRequestHandler(handler) {
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "onekey-monero-runtime",
3
3
  "type": "module",
4
4
  "description": "OneKey Monero Runtime: wallet state over monero-oxide, persisted in SQLite",
5
- "version": "0.1.0-alpha.5",
5
+ "version": "0.1.0-alpha.6",
6
6
  "license": "Apache-2.0",
7
7
  "files": [
8
8
  "onekey_monero_runtime.js",