@0xsequence/guard 1.4.1 → 1.4.2
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.
|
@@ -89,7 +89,8 @@ class Guard {
|
|
|
89
89
|
return this.fetch(this.url('AuthMethods'), createHTTPRequest(args, headers)).then(res => {
|
|
90
90
|
return buildResponse(res).then(_data => {
|
|
91
91
|
return {
|
|
92
|
-
methods: _data.methods
|
|
92
|
+
methods: _data.methods,
|
|
93
|
+
active: _data.active
|
|
93
94
|
};
|
|
94
95
|
});
|
|
95
96
|
});
|
|
@@ -89,7 +89,8 @@ class Guard {
|
|
|
89
89
|
return this.fetch(this.url('AuthMethods'), createHTTPRequest(args, headers)).then(res => {
|
|
90
90
|
return buildResponse(res).then(_data => {
|
|
91
91
|
return {
|
|
92
|
-
methods: _data.methods
|
|
92
|
+
methods: _data.methods,
|
|
93
|
+
active: _data.active
|
|
93
94
|
};
|
|
94
95
|
});
|
|
95
96
|
});
|
|
@@ -85,7 +85,8 @@ class Guard {
|
|
|
85
85
|
return this.fetch(this.url('AuthMethods'), createHTTPRequest(args, headers)).then(res => {
|
|
86
86
|
return buildResponse(res).then(_data => {
|
|
87
87
|
return {
|
|
88
|
-
methods: _data.methods
|
|
88
|
+
methods: _data.methods,
|
|
89
|
+
active: _data.active
|
|
89
90
|
};
|
|
90
91
|
});
|
|
91
92
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const WebRPCVersion = "v1";
|
|
2
2
|
export declare const WebRPCSchemaVersion = "v0.4.0";
|
|
3
|
-
export declare const WebRPCSchemaHash = "
|
|
3
|
+
export declare const WebRPCSchemaHash = "2e5d6a4c9b797598078365d7439f330bc7bbf29c";
|
|
4
4
|
export interface Version {
|
|
5
5
|
webrpcVersion: string;
|
|
6
6
|
schemaVersion: string;
|
|
@@ -100,6 +100,7 @@ export interface AuthMethodsArgs {
|
|
|
100
100
|
}
|
|
101
101
|
export interface AuthMethodsReturn {
|
|
102
102
|
methods: Array<string>;
|
|
103
|
+
active: boolean;
|
|
103
104
|
}
|
|
104
105
|
export interface SetPINArgs {
|
|
105
106
|
pin: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xsequence/guard",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
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.4.
|
|
14
|
-
"@0xsequence/core": "1.4.
|
|
15
|
-
"@0xsequence/signhub": "1.4.
|
|
16
|
-
"@0xsequence/utils": "1.4.
|
|
13
|
+
"@0xsequence/account": "1.4.2",
|
|
14
|
+
"@0xsequence/core": "1.4.2",
|
|
15
|
+
"@0xsequence/signhub": "1.4.2",
|
|
16
|
+
"@0xsequence/utils": "1.4.2"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"src",
|
package/src/guard.gen.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// sequence-guard v0.4.0
|
|
2
|
+
// sequence-guard v0.4.0 2e5d6a4c9b797598078365d7439f330bc7bbf29c
|
|
3
3
|
// --
|
|
4
4
|
// Code generated by webrpc-gen@v0.12.x-dev with typescript@v0.10.0 generator. DO NOT EDIT.
|
|
5
5
|
//
|
|
@@ -12,7 +12,7 @@ export const WebRPCVersion = 'v1'
|
|
|
12
12
|
export const WebRPCSchemaVersion = 'v0.4.0'
|
|
13
13
|
|
|
14
14
|
// Schema hash generated from your RIDL schema
|
|
15
|
-
export const WebRPCSchemaHash = '
|
|
15
|
+
export const WebRPCSchemaHash = '2e5d6a4c9b797598078365d7439f330bc7bbf29c'
|
|
16
16
|
|
|
17
17
|
//
|
|
18
18
|
// Types
|
|
@@ -130,6 +130,7 @@ export interface AuthMethodsArgs {
|
|
|
130
130
|
|
|
131
131
|
export interface AuthMethodsReturn {
|
|
132
132
|
methods: Array<string>
|
|
133
|
+
active: boolean
|
|
133
134
|
}
|
|
134
135
|
export interface SetPINArgs {
|
|
135
136
|
pin: string
|
|
@@ -269,7 +270,8 @@ export class Guard implements Guard {
|
|
|
269
270
|
return this.fetch(this.url('AuthMethods'), createHTTPRequest(args, headers)).then(res => {
|
|
270
271
|
return buildResponse(res).then(_data => {
|
|
271
272
|
return {
|
|
272
|
-
methods: <Array<string>>_data.methods
|
|
273
|
+
methods: <Array<string>>_data.methods,
|
|
274
|
+
active: <boolean>_data.active
|
|
273
275
|
}
|
|
274
276
|
})
|
|
275
277
|
})
|