@0xsequence/guard 1.10.10 → 1.10.12
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.
|
@@ -443,7 +443,7 @@ const webrpcErrorByCode = {
|
|
|
443
443
|
[3000]: NotFoundError
|
|
444
444
|
};
|
|
445
445
|
|
|
446
|
-
const fetch =
|
|
446
|
+
const fetch = globalThis.fetch;
|
|
447
447
|
class GuardSigner {
|
|
448
448
|
constructor(address, url, appendSuffix = false) {
|
|
449
449
|
this.address = address;
|
|
@@ -443,7 +443,7 @@ const webrpcErrorByCode = {
|
|
|
443
443
|
[3000]: NotFoundError
|
|
444
444
|
};
|
|
445
445
|
|
|
446
|
-
const fetch =
|
|
446
|
+
const fetch = globalThis.fetch;
|
|
447
447
|
class GuardSigner {
|
|
448
448
|
constructor(address, url, appendSuffix = false) {
|
|
449
449
|
this.address = address;
|
|
@@ -439,7 +439,7 @@ const webrpcErrorByCode = {
|
|
|
439
439
|
[3000]: NotFoundError
|
|
440
440
|
};
|
|
441
441
|
|
|
442
|
-
const fetch =
|
|
442
|
+
const fetch = globalThis.fetch;
|
|
443
443
|
class GuardSigner {
|
|
444
444
|
constructor(address, url, appendSuffix = false) {
|
|
445
445
|
this.address = address;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xsequence/guard",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.12",
|
|
4
4
|
"description": "guard sub-package for Sequence",
|
|
5
5
|
"repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/guard",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"ethers": "^5.7.2",
|
|
13
|
-
"@0xsequence/account": "1.10.
|
|
14
|
-
"@0xsequence/core": "1.10.
|
|
15
|
-
"@0xsequence/signhub": "1.10.
|
|
16
|
-
"@0xsequence/utils": "1.10.
|
|
13
|
+
"@0xsequence/account": "1.10.12",
|
|
14
|
+
"@0xsequence/core": "1.10.12",
|
|
15
|
+
"@0xsequence/signhub": "1.10.12",
|
|
16
|
+
"@0xsequence/utils": "1.10.12"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"src",
|
package/src/signer.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { encodeTypedDataDigest, TypedData } from '@0xsequence/utils'
|
|
|
5
5
|
import { BytesLike, ethers, TypedDataDomain } from 'ethers'
|
|
6
6
|
import { AuthMethodsReturn, Guard, RecoveryCode as GuardRecoveryCode } from './guard.gen'
|
|
7
7
|
|
|
8
|
-
const fetch =
|
|
8
|
+
const fetch = globalThis.fetch
|
|
9
9
|
|
|
10
10
|
export class GuardSigner implements signers.SapientSigner {
|
|
11
11
|
private guard: Guard
|