Skip to content

Commit d8263f0

Browse files
committed
fix: update sw.js and torus to latest
1 parent 03ee219 commit d8263f0

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"@nuxtjs/dotenv": "^1.4.1",
5757
"@stripe/stripe-js": "^1.28.0",
5858
"@tailwindcss/typography": "^0.4.1",
59-
"@toruslabs/customauth": "^9.0.0",
59+
"@toruslabs/customauth": "^9.1.0",
6060
"@toruslabs/openlogin-ed25519": "^2.0.0",
6161
"axios": "^0.27.2",
6262
"browser-image-compression": "^2.0.0",

src/static/oauth/sw.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ function getScope() {
238238
hashParams,
239239
});
240240
} else {
241-
// window.close();
241+
window.close();
242242
showCloseText();
243243
}
244244
});
@@ -258,7 +258,7 @@ function getScope() {
258258
} catch (err) {
259259
console.error(err, "service worker error in redirect");
260260
bc && bc.close();
261-
// window.close();
261+
window.close();
262262
showCloseText();
263263
}
264264
} else {
@@ -285,7 +285,7 @@ function getScope() {
285285
} catch (err) {
286286
console.error(err, "service worker error in preopen");
287287
bc && bc.close();
288-
// window.close();
288+
window.close();
289289
showCloseText();
290290
}
291291
}

yarn.lock

+15-15
Original file line numberDiff line numberDiff line change
@@ -2147,18 +2147,18 @@
21472147
socket.io-client "^4.5.1"
21482148
unload "^2.3.1"
21492149

2150-
"@toruslabs/customauth@^9.0.0":
2151-
version "9.0.0"
2152-
resolved "https://registry.yarnpkg.com/@toruslabs/customauth/-/customauth-9.0.0.tgz#f27dcf714b83e8b63b8dcfe423cca83bff536b6e"
2153-
integrity sha512-RFy5yCS9IC0imvpZTyl7bdhPvfTh7gCa1fS2XVr7vK+TNe3qigF0R1Ebihn3GR0J/7omL7nFPXcwWcvt9Gpouw==
2150+
"@toruslabs/customauth@^9.1.0":
2151+
version "9.1.0"
2152+
resolved "https://registry.yarnpkg.com/@toruslabs/customauth/-/customauth-9.1.0.tgz#f808afe9383ec2908b455271a72ebd13a434e9f0"
2153+
integrity sha512-Ov3Y7JR8EJJJfBkdESovcxf1unp/8JTL9PaV0SVu4pwWmecPH8juc+w4ZNF54JYUqX9k1N8fzQWe1WCOXMaUag==
21542154
dependencies:
21552155
"@chaitanyapotti/register-service-worker" "^1.7.3"
21562156
"@toruslabs/broadcast-channel" "^5.0.2"
21572157
"@toruslabs/eccrypto" "^1.1.8"
2158-
"@toruslabs/fetch-node-details" "^6.0.1"
2158+
"@toruslabs/fetch-node-details" "^7.0.1"
21592159
"@toruslabs/http-helpers" "^3.0.0"
21602160
"@toruslabs/metadata-helpers" "^3.0.0"
2161-
"@toruslabs/torus.js" "^6.0.0"
2161+
"@toruslabs/torus.js" "^6.0.1"
21622162
bowser "^2.11.0"
21632163
events "^3.3.0"
21642164
jwt-decode "^3.1.2"
@@ -2178,10 +2178,10 @@
21782178
optionalDependencies:
21792179
secp256k1 "^3.8.0"
21802180

2181-
"@toruslabs/fetch-node-details@^6.0.1":
2182-
version "6.0.1"
2183-
resolved "https://registry.yarnpkg.com/@toruslabs/fetch-node-details/-/fetch-node-details-6.0.1.tgz#f060524446456aeca02c163b5619a126d55d3790"
2184-
integrity sha512-842lwbpo56ASlQrc7xdGMXYxuZVTNAwQQ8jDtbjFgDuehlimDELBcL5s4Bs1mC973alESy6aUMKSJFgQq6enkA==
2181+
"@toruslabs/fetch-node-details@^7.0.1":
2182+
version "7.0.1"
2183+
resolved "https://registry.yarnpkg.com/@toruslabs/fetch-node-details/-/fetch-node-details-7.0.1.tgz#22563e4e52e0961f78bb6ed6dc947a8f02f37a20"
2184+
integrity sha512-JDYHcet3w5dNdXH+vbgWYLR3SOLOs6Zewzmu+Ffs+AZb8HfH5At+I+w3WaBYCzzQU+MNURKhOTdIdjCjRMpZeg==
21852185
dependencies:
21862186
web3-eth-contract "^1.7.3"
21872187
web3-utils "^1.7.3"
@@ -2212,14 +2212,14 @@
22122212
dependencies:
22132213
"@toruslabs/tweetnacl-js" "^1.0.3"
22142214

2215-
"@toruslabs/torus.js@^6.0.0":
2216-
version "6.0.0"
2217-
resolved "https://registry.yarnpkg.com/@toruslabs/torus.js/-/torus.js-6.0.0.tgz#91030c086f1784391d10f12f07f9d86e401a4f1f"
2218-
integrity sha512-H7/qC5HGPtYzRN2bQnA1KzmSwM+beYqzYdrq1gBSsNBvj2CS49BDl6SESCoGg8ndB83vlikA7KGykqMhdXd2gw==
2215+
"@toruslabs/torus.js@^6.0.1":
2216+
version "6.0.1"
2217+
resolved "https://registry.yarnpkg.com/@toruslabs/torus.js/-/torus.js-6.0.1.tgz#550e71e46eb1a65be523e5ca15faba63ee61c5a2"
2218+
integrity sha512-ceJO+URHCCqDLeTyNIYVknwmQmuVJhJL11wfuRI2USZs+LMjVPqH1N3T17Yv8JINr1VPZrrkq0MTtCf0YvjH8g==
22192219
dependencies:
22202220
"@toruslabs/eccrypto" "^1.1.8"
22212221
"@toruslabs/http-helpers" "^3.0.0"
2222-
bn.js "^5.2.0"
2222+
bn.js "^5.2.1"
22232223
elliptic "^6.5.4"
22242224
json-stable-stringify "^1.0.1"
22252225
keccak "^3.0.2"

0 commit comments

Comments
 (0)