@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.js
CHANGED
|
@@ -56,8 +56,13 @@ var __defProp = Object.defineProperty;
|
|
|
56
56
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
57
57
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
58
58
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
59
|
-
var __esm = (fn, res) => function __init() {
|
|
60
|
-
|
|
59
|
+
var __esm = (fn, res, err) => function __init() {
|
|
60
|
+
if (err) throw err[0];
|
|
61
|
+
try {
|
|
62
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
63
|
+
} catch (e) {
|
|
64
|
+
throw err = [e], e;
|
|
65
|
+
}
|
|
61
66
|
};
|
|
62
67
|
var __export = (target, all) => {
|
|
63
68
|
for (var name in all)
|
|
@@ -9593,7 +9598,7 @@ var ResponseProposeMolecule = class extends Response2 {
|
|
|
9593
9598
|
code: "HASH_MISMATCH"
|
|
9594
9599
|
});
|
|
9595
9600
|
}
|
|
9596
|
-
if (/ots.*position.*reuse|position.*already.*used|ots.*verification/.test(lc)) {
|
|
9601
|
+
if (/ots.*(?:position|key).*reuse|position.*already.*(?:used|consumed)|ots.*verification/.test(lc)) {
|
|
9597
9602
|
return new SignatureMismatchException(reason, {
|
|
9598
9603
|
details: { reason },
|
|
9599
9604
|
code: "OTS_VERIFICATION_FAILED"
|
|
@@ -12670,6 +12675,7 @@ var KnishIOClient = class {
|
|
|
12670
12675
|
pubkey: response.pubKey()
|
|
12671
12676
|
}, wallet);
|
|
12672
12677
|
this.setAuthToken(authToken);
|
|
12678
|
+
this.lastMoleculeQuery = null;
|
|
12673
12679
|
} else {
|
|
12674
12680
|
throw new AuthorizationRejectedException_default(
|
|
12675
12681
|
`KnishIOClient::requestProfileAuthToken() - Authorization attempt rejected by ledger. Reason: ${response.reason()}`
|
|
@@ -14032,7 +14038,7 @@ function createDefaultSecretStorage(options = {}) {
|
|
|
14032
14038
|
}
|
|
14033
14039
|
|
|
14034
14040
|
// src/index.ts
|
|
14035
|
-
var SDK_VERSION = "1.2.
|
|
14041
|
+
var SDK_VERSION = "1.2.1";
|
|
14036
14042
|
var SDK_NAME = "KnishIO-Client-TS";
|
|
14037
14043
|
var COMPATIBLE_SERVER_VERSIONS = [4, 5];
|
|
14038
14044
|
var SDK_INFO = {
|