@mysten/zksend
Advanced tools
Comparing version 0.0.0-experimental-20240117000412 to 0.0.0-experimental-20240123013833
# @mysten/zksend | ||
## 0.0.0-experimental-20240117000412 | ||
## 0.0.0-experimental-20240123013833 | ||
@@ -12,2 +12,3 @@ ### Minor Changes | ||
- c07aa19958: Fix coin merging for sending balances | ||
- 13e922d9b1: Rework timing and window opening logic to try and improve browser compatibility | ||
- c859f41a1c: Handle base64 with spaces in hash | ||
@@ -30,4 +31,5 @@ - d21c01ed47: Add method for claiming zksend assets from link | ||
- Updated dependencies [9a14e61db4] | ||
- @mysten/sui.js@0.0.0-experimental-20240117000412 | ||
- @mysten/wallet-standard@0.0.0-experimental-20240117000412 | ||
- Updated dependencies [13e922d9b1] | ||
- @mysten/sui.js@0.0.0-experimental-20240123013833 | ||
- @mysten/wallet-standard@0.0.0-experimental-20240123013833 | ||
@@ -34,0 +36,0 @@ ## 0.1.1 |
@@ -62,5 +62,8 @@ "use strict"; | ||
async createRequest(request) { | ||
const popup = window.open("about:blank", "_blank"); | ||
if (!popup) { | ||
throw new Error("Failed to open new window"); | ||
} | ||
const { promise, resolve, reject } = (0, import_withResolvers.withResolvers)(); | ||
let interval = null; | ||
let popup = null; | ||
function cleanup() { | ||
@@ -92,3 +95,3 @@ if (interval) { | ||
const { type, ...data } = request; | ||
popup = window.open( | ||
popup?.location.assign( | ||
`${__privateGet(this, _origin)}/dapp/${type}?${new URLSearchParams({ | ||
@@ -100,5 +103,2 @@ id: __privateGet(this, _id), | ||
); | ||
if (!popup) { | ||
throw new Error("Failed to open zkSend window"); | ||
} | ||
interval = setInterval(() => { | ||
@@ -105,0 +105,0 @@ try { |
@@ -35,5 +35,8 @@ var __accessCheck = (obj, member, msg) => { | ||
async createRequest(request) { | ||
const popup = window.open("about:blank", "_blank"); | ||
if (!popup) { | ||
throw new Error("Failed to open new window"); | ||
} | ||
const { promise, resolve, reject } = withResolvers(); | ||
let interval = null; | ||
let popup = null; | ||
function cleanup() { | ||
@@ -65,3 +68,3 @@ if (interval) { | ||
const { type, ...data } = request; | ||
popup = window.open( | ||
popup?.location.assign( | ||
`${__privateGet(this, _origin)}/dapp/${type}?${new URLSearchParams({ | ||
@@ -73,5 +76,2 @@ id: __privateGet(this, _id), | ||
); | ||
if (!popup) { | ||
throw new Error("Failed to open zkSend window"); | ||
} | ||
interval = setInterval(() => { | ||
@@ -78,0 +78,0 @@ try { |
{ | ||
"name": "@mysten/zksend", | ||
"version": "0.0.0-experimental-20240117000412", | ||
"version": "0.0.0-experimental-20240123013833", | ||
"description": "TODO: Write Description", | ||
@@ -40,4 +40,4 @@ "license": "Apache-2.0", | ||
"valibot": "^0.25.0", | ||
"@mysten/sui.js": "0.0.0-experimental-20240117000412", | ||
"@mysten/wallet-standard": "0.0.0-experimental-20240117000412" | ||
"@mysten/sui.js": "0.0.0-experimental-20240123013833", | ||
"@mysten/wallet-standard": "0.0.0-experimental-20240123013833" | ||
}, | ||
@@ -44,0 +44,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
302213
+ Added@mysten/sui.js@0.0.0-experimental-20240123013833(transitive)
+ Added@mysten/wallet-standard@0.0.0-experimental-20240123013833(transitive)
- Removed@mysten/sui.js@0.0.0-experimental-20240117000412(transitive)
- Removed@mysten/wallet-standard@0.0.0-experimental-20240117000412(transitive)
Updated@mysten/wallet-standard@0.0.0-experimental-20240123013833