@wishknish/knishio-client-ts 1.2.0 → 1.2.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.
- package/dist/index.cjs +10 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.iife.js +15 -5
- package/dist/index.iife.js.map +1 -1
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/package.json +6 -2
- package/src/KnishIOClient.ts +1 -0
- package/src/index.ts +1 -1
- package/src/response/ResponseProposeMolecule.ts +2 -1
package/dist/index.cjs
CHANGED
|
@@ -62,8 +62,13 @@ var __defProp = Object.defineProperty;
|
|
|
62
62
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
63
63
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
64
64
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
65
|
-
var __esm = (fn, res) => function __init() {
|
|
66
|
-
|
|
65
|
+
var __esm = (fn, res, err) => function __init() {
|
|
66
|
+
if (err) throw err[0];
|
|
67
|
+
try {
|
|
68
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
69
|
+
} catch (e) {
|
|
70
|
+
throw err = [e], e;
|
|
71
|
+
}
|
|
67
72
|
};
|
|
68
73
|
var __export = (target, all) => {
|
|
69
74
|
for (var name in all)
|
|
@@ -9599,7 +9604,7 @@ var ResponseProposeMolecule = class extends exports.Response {
|
|
|
9599
9604
|
code: "HASH_MISMATCH"
|
|
9600
9605
|
});
|
|
9601
9606
|
}
|
|
9602
|
-
if (/ots.*position.*reuse|position.*already.*used|ots.*verification/.test(lc)) {
|
|
9607
|
+
if (/ots.*(?:position|key).*reuse|position.*already.*(?:used|consumed)|ots.*verification/.test(lc)) {
|
|
9603
9608
|
return new exports.SignatureMismatchException(reason, {
|
|
9604
9609
|
details: { reason },
|
|
9605
9610
|
code: "OTS_VERIFICATION_FAILED"
|
|
@@ -12676,6 +12681,7 @@ var KnishIOClient = class {
|
|
|
12676
12681
|
pubkey: response.pubKey()
|
|
12677
12682
|
}, wallet);
|
|
12678
12683
|
this.setAuthToken(authToken);
|
|
12684
|
+
this.lastMoleculeQuery = null;
|
|
12679
12685
|
} else {
|
|
12680
12686
|
throw new AuthorizationRejectedException_default(
|
|
12681
12687
|
`KnishIOClient::requestProfileAuthToken() - Authorization attempt rejected by ledger. Reason: ${response.reason()}`
|
|
@@ -14038,7 +14044,7 @@ function createDefaultSecretStorage(options = {}) {
|
|
|
14038
14044
|
}
|
|
14039
14045
|
|
|
14040
14046
|
// src/index.ts
|
|
14041
|
-
var SDK_VERSION = "1.2.
|
|
14047
|
+
var SDK_VERSION = "1.2.1";
|
|
14042
14048
|
var SDK_NAME = "KnishIO-Client-TS";
|
|
14043
14049
|
var COMPATIBLE_SERVER_VERSIONS = [4, 5];
|
|
14044
14050
|
var SDK_INFO = {
|