core-3nweb-client-lib 0.34.1 → 0.34.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.
|
Binary file
|
|
@@ -71,11 +71,11 @@ export interface Key {
|
|
|
71
71
|
}
|
|
72
72
|
export interface SignedLoad {
|
|
73
73
|
/**
|
|
74
|
-
* This is
|
|
74
|
+
* This is a function/algorithm, used to make signature.
|
|
75
75
|
*/
|
|
76
76
|
alg: string;
|
|
77
77
|
/**
|
|
78
|
-
* This is a
|
|
78
|
+
* This is an id of a key that did the signature.
|
|
79
79
|
*/
|
|
80
80
|
kid: string;
|
|
81
81
|
/**
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
See the GNU General Public License for more details.
|
|
14
14
|
|
|
15
15
|
You should have received a copy of the GNU General Public License along with
|
|
16
|
-
this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
+
this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
17
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
19
|
exports.use = void 0;
|
|
19
20
|
exports.isLikeJsonKey = isLikeJsonKey;
|
|
@@ -84,14 +85,11 @@ function keyFromJson(key, use, alg, klen) {
|
|
|
84
85
|
};
|
|
85
86
|
}
|
|
86
87
|
else {
|
|
87
|
-
throw new Error("Key " + key.kid +
|
|
88
|
-
", should be used with unsupported algorithm '" +
|
|
89
|
-
key.alg + "'");
|
|
88
|
+
throw new Error("Key " + key.kid + ", should be used with unsupported algorithm '" + key.alg + "'");
|
|
90
89
|
}
|
|
91
90
|
}
|
|
92
91
|
else {
|
|
93
|
-
throw new Error("Key " + key.kid + " has incorrect use '" + key.use +
|
|
94
|
-
"', instead of '" + use + "'");
|
|
92
|
+
throw new Error("Key " + key.kid + " has incorrect use '" + key.use + "', instead of '" + use + "'");
|
|
95
93
|
}
|
|
96
94
|
}
|
|
97
95
|
function keyToJson(key) {
|