@0xsequence/guard 1.5.0 → 1.6.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.
|
@@ -25,11 +25,14 @@ function _extends() {
|
|
|
25
25
|
//
|
|
26
26
|
// Types
|
|
27
27
|
//
|
|
28
|
+
|
|
28
29
|
//
|
|
29
30
|
// Client
|
|
30
31
|
//
|
|
31
32
|
class Guard {
|
|
32
33
|
constructor(hostname, fetch) {
|
|
34
|
+
this.hostname = void 0;
|
|
35
|
+
this.fetch = void 0;
|
|
33
36
|
this.path = '/rpc/Guard/';
|
|
34
37
|
this.ping = headers => {
|
|
35
38
|
return this.fetch(this.url('Ping'), createHTTPRequest({}, headers)).then(res => {
|
|
@@ -190,7 +193,6 @@ const buildResponse = res => {
|
|
|
190
193
|
if (!res.ok) {
|
|
191
194
|
throw data; // webrpc error response
|
|
192
195
|
}
|
|
193
|
-
|
|
194
196
|
return data;
|
|
195
197
|
});
|
|
196
198
|
};
|
|
@@ -201,6 +203,7 @@ class GuardSigner {
|
|
|
201
203
|
this.address = address;
|
|
202
204
|
this.url = url;
|
|
203
205
|
this.appendSuffix = appendSuffix;
|
|
206
|
+
this.guard = void 0;
|
|
204
207
|
this.guard = new Guard(url, fetch);
|
|
205
208
|
}
|
|
206
209
|
async getAddress() {
|
|
@@ -25,11 +25,14 @@ function _extends() {
|
|
|
25
25
|
//
|
|
26
26
|
// Types
|
|
27
27
|
//
|
|
28
|
+
|
|
28
29
|
//
|
|
29
30
|
// Client
|
|
30
31
|
//
|
|
31
32
|
class Guard {
|
|
32
33
|
constructor(hostname, fetch) {
|
|
34
|
+
this.hostname = void 0;
|
|
35
|
+
this.fetch = void 0;
|
|
33
36
|
this.path = '/rpc/Guard/';
|
|
34
37
|
this.ping = headers => {
|
|
35
38
|
return this.fetch(this.url('Ping'), createHTTPRequest({}, headers)).then(res => {
|
|
@@ -190,7 +193,6 @@ const buildResponse = res => {
|
|
|
190
193
|
if (!res.ok) {
|
|
191
194
|
throw data; // webrpc error response
|
|
192
195
|
}
|
|
193
|
-
|
|
194
196
|
return data;
|
|
195
197
|
});
|
|
196
198
|
};
|
|
@@ -201,6 +203,7 @@ class GuardSigner {
|
|
|
201
203
|
this.address = address;
|
|
202
204
|
this.url = url;
|
|
203
205
|
this.appendSuffix = appendSuffix;
|
|
206
|
+
this.guard = void 0;
|
|
204
207
|
this.guard = new Guard(url, fetch);
|
|
205
208
|
}
|
|
206
209
|
async getAddress() {
|
|
@@ -21,11 +21,14 @@ function _extends() {
|
|
|
21
21
|
//
|
|
22
22
|
// Types
|
|
23
23
|
//
|
|
24
|
+
|
|
24
25
|
//
|
|
25
26
|
// Client
|
|
26
27
|
//
|
|
27
28
|
class Guard {
|
|
28
29
|
constructor(hostname, fetch) {
|
|
30
|
+
this.hostname = void 0;
|
|
31
|
+
this.fetch = void 0;
|
|
29
32
|
this.path = '/rpc/Guard/';
|
|
30
33
|
this.ping = headers => {
|
|
31
34
|
return this.fetch(this.url('Ping'), createHTTPRequest({}, headers)).then(res => {
|
|
@@ -186,7 +189,6 @@ const buildResponse = res => {
|
|
|
186
189
|
if (!res.ok) {
|
|
187
190
|
throw data; // webrpc error response
|
|
188
191
|
}
|
|
189
|
-
|
|
190
192
|
return data;
|
|
191
193
|
});
|
|
192
194
|
};
|
|
@@ -197,6 +199,7 @@ class GuardSigner {
|
|
|
197
199
|
this.address = address;
|
|
198
200
|
this.url = url;
|
|
199
201
|
this.appendSuffix = appendSuffix;
|
|
202
|
+
this.guard = void 0;
|
|
200
203
|
this.guard = new Guard(url, fetch);
|
|
201
204
|
}
|
|
202
205
|
async getAddress() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xsequence/guard",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
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.
|
|
14
|
-
"@0xsequence/core": "1.
|
|
15
|
-
"@0xsequence/signhub": "1.
|
|
16
|
-
"@0xsequence/utils": "1.
|
|
13
|
+
"@0xsequence/account": "1.6.1",
|
|
14
|
+
"@0xsequence/core": "1.6.1",
|
|
15
|
+
"@0xsequence/signhub": "1.6.1",
|
|
16
|
+
"@0xsequence/utils": "1.6.1"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"src",
|