@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.d.cts
CHANGED
|
@@ -2339,12 +2339,12 @@ declare function withSecureBytes<T>(bytes: Uint8Array, fn: (bytes: Uint8Array) =
|
|
|
2339
2339
|
declare function withSecureString<T>(secret: string, fn: (cleanSecret: string) => Promise<T> | T): Promise<T>;
|
|
2340
2340
|
declare function constantTimeCompare(a: Uint8Array | string, b: Uint8Array | string): boolean;
|
|
2341
2341
|
|
|
2342
|
-
declare const SDK_VERSION = "1.2.
|
|
2342
|
+
declare const SDK_VERSION = "1.2.1";
|
|
2343
2343
|
declare const SDK_NAME = "KnishIO-Client-TS";
|
|
2344
2344
|
declare const COMPATIBLE_SERVER_VERSIONS: number[];
|
|
2345
2345
|
declare const SDK_INFO: {
|
|
2346
2346
|
readonly name: "KnishIO-Client-TS";
|
|
2347
|
-
readonly version: "1.2.
|
|
2347
|
+
readonly version: "1.2.1";
|
|
2348
2348
|
readonly description: "TypeScript SDK for Knish.IO post-blockchain distributed ledger";
|
|
2349
2349
|
readonly compatibleServerVersions: number[];
|
|
2350
2350
|
readonly features: readonly ["Post-quantum cryptography (XMSS, ML-KEM-1024)", "Cross-platform compatibility", "Type-safe APIs", "DAG-based transaction processing", "GraphQL integration", "Real-time subscriptions", "Cellular architecture support"];
|
|
@@ -2372,7 +2372,7 @@ declare const DevUtils: {
|
|
|
2372
2372
|
nodeVersion: string;
|
|
2373
2373
|
environment: string;
|
|
2374
2374
|
name: "KnishIO-Client-TS";
|
|
2375
|
-
version: "1.2.
|
|
2375
|
+
version: "1.2.1";
|
|
2376
2376
|
description: "TypeScript SDK for Knish.IO post-blockchain distributed ledger";
|
|
2377
2377
|
compatibleServerVersions: number[];
|
|
2378
2378
|
features: readonly ["Post-quantum cryptography (XMSS, ML-KEM-1024)", "Cross-platform compatibility", "Type-safe APIs", "DAG-based transaction processing", "GraphQL integration", "Real-time subscriptions", "Cellular architecture support"];
|
|
@@ -2399,7 +2399,7 @@ declare const KnishIO: {
|
|
|
2399
2399
|
SDK_VERSION: string;
|
|
2400
2400
|
SDK_INFO: {
|
|
2401
2401
|
readonly name: "KnishIO-Client-TS";
|
|
2402
|
-
readonly version: "1.2.
|
|
2402
|
+
readonly version: "1.2.1";
|
|
2403
2403
|
readonly description: "TypeScript SDK for Knish.IO post-blockchain distributed ledger";
|
|
2404
2404
|
readonly compatibleServerVersions: number[];
|
|
2405
2405
|
readonly features: readonly ["Post-quantum cryptography (XMSS, ML-KEM-1024)", "Cross-platform compatibility", "Type-safe APIs", "DAG-based transaction processing", "GraphQL integration", "Real-time subscriptions", "Cellular architecture support"];
|
package/dist/index.d.ts
CHANGED
|
@@ -2339,12 +2339,12 @@ declare function withSecureBytes<T>(bytes: Uint8Array, fn: (bytes: Uint8Array) =
|
|
|
2339
2339
|
declare function withSecureString<T>(secret: string, fn: (cleanSecret: string) => Promise<T> | T): Promise<T>;
|
|
2340
2340
|
declare function constantTimeCompare(a: Uint8Array | string, b: Uint8Array | string): boolean;
|
|
2341
2341
|
|
|
2342
|
-
declare const SDK_VERSION = "1.2.
|
|
2342
|
+
declare const SDK_VERSION = "1.2.1";
|
|
2343
2343
|
declare const SDK_NAME = "KnishIO-Client-TS";
|
|
2344
2344
|
declare const COMPATIBLE_SERVER_VERSIONS: number[];
|
|
2345
2345
|
declare const SDK_INFO: {
|
|
2346
2346
|
readonly name: "KnishIO-Client-TS";
|
|
2347
|
-
readonly version: "1.2.
|
|
2347
|
+
readonly version: "1.2.1";
|
|
2348
2348
|
readonly description: "TypeScript SDK for Knish.IO post-blockchain distributed ledger";
|
|
2349
2349
|
readonly compatibleServerVersions: number[];
|
|
2350
2350
|
readonly features: readonly ["Post-quantum cryptography (XMSS, ML-KEM-1024)", "Cross-platform compatibility", "Type-safe APIs", "DAG-based transaction processing", "GraphQL integration", "Real-time subscriptions", "Cellular architecture support"];
|
|
@@ -2372,7 +2372,7 @@ declare const DevUtils: {
|
|
|
2372
2372
|
nodeVersion: string;
|
|
2373
2373
|
environment: string;
|
|
2374
2374
|
name: "KnishIO-Client-TS";
|
|
2375
|
-
version: "1.2.
|
|
2375
|
+
version: "1.2.1";
|
|
2376
2376
|
description: "TypeScript SDK for Knish.IO post-blockchain distributed ledger";
|
|
2377
2377
|
compatibleServerVersions: number[];
|
|
2378
2378
|
features: readonly ["Post-quantum cryptography (XMSS, ML-KEM-1024)", "Cross-platform compatibility", "Type-safe APIs", "DAG-based transaction processing", "GraphQL integration", "Real-time subscriptions", "Cellular architecture support"];
|
|
@@ -2399,7 +2399,7 @@ declare const KnishIO: {
|
|
|
2399
2399
|
SDK_VERSION: string;
|
|
2400
2400
|
SDK_INFO: {
|
|
2401
2401
|
readonly name: "KnishIO-Client-TS";
|
|
2402
|
-
readonly version: "1.2.
|
|
2402
|
+
readonly version: "1.2.1";
|
|
2403
2403
|
readonly description: "TypeScript SDK for Knish.IO post-blockchain distributed ledger";
|
|
2404
2404
|
readonly compatibleServerVersions: number[];
|
|
2405
2405
|
readonly features: readonly ["Post-quantum cryptography (XMSS, ML-KEM-1024)", "Cross-platform compatibility", "Type-safe APIs", "DAG-based transaction processing", "GraphQL integration", "Real-time subscriptions", "Cellular architecture support"];
|
package/dist/index.iife.js
CHANGED
|
@@ -54,11 +54,20 @@ var KnishIO = (function (exports) {
|
|
|
54
54
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
55
55
|
var __getProtoOf = Object.getPrototypeOf;
|
|
56
56
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
57
|
-
var __esm = (fn, res) => function __init() {
|
|
58
|
-
|
|
57
|
+
var __esm = (fn, res, err) => function __init() {
|
|
58
|
+
if (err) throw err[0];
|
|
59
|
+
try {
|
|
60
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
61
|
+
} catch (e4) {
|
|
62
|
+
throw err = [e4], e4;
|
|
63
|
+
}
|
|
59
64
|
};
|
|
60
65
|
var __commonJS = (cb, mod) => function __require() {
|
|
61
|
-
|
|
66
|
+
try {
|
|
67
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
68
|
+
} catch (e4) {
|
|
69
|
+
throw mod = 0, e4;
|
|
70
|
+
}
|
|
62
71
|
};
|
|
63
72
|
var __export = (target, all) => {
|
|
64
73
|
for (var name2 in all)
|
|
@@ -51770,7 +51779,7 @@ ${operationTypes.join("\n")}
|
|
|
51770
51779
|
code: "HASH_MISMATCH"
|
|
51771
51780
|
});
|
|
51772
51781
|
}
|
|
51773
|
-
if (/ots.*position.*reuse|position.*already.*used|ots.*verification/.test(lc)) {
|
|
51782
|
+
if (/ots.*(?:position|key).*reuse|position.*already.*(?:used|consumed)|ots.*verification/.test(lc)) {
|
|
51774
51783
|
return new exports.SignatureMismatchException(reason, {
|
|
51775
51784
|
details: { reason },
|
|
51776
51785
|
code: "OTS_VERIFICATION_FAILED"
|
|
@@ -54863,6 +54872,7 @@ ${operationTypes.join("\n")}
|
|
|
54863
54872
|
pubkey: response.pubKey()
|
|
54864
54873
|
}, wallet);
|
|
54865
54874
|
this.setAuthToken(authToken);
|
|
54875
|
+
this.lastMoleculeQuery = null;
|
|
54866
54876
|
} else {
|
|
54867
54877
|
throw new AuthorizationRejectedException_default(
|
|
54868
54878
|
`KnishIOClient::requestProfileAuthToken() - Authorization attempt rejected by ledger. Reason: ${response.reason()}`
|
|
@@ -56225,7 +56235,7 @@ ${operationTypes.join("\n")}
|
|
|
56225
56235
|
}
|
|
56226
56236
|
|
|
56227
56237
|
// src/index.ts
|
|
56228
|
-
var SDK_VERSION = "1.2.
|
|
56238
|
+
var SDK_VERSION = "1.2.1";
|
|
56229
56239
|
var SDK_NAME = "KnishIO-Client-TS";
|
|
56230
56240
|
var COMPATIBLE_SERVER_VERSIONS = [4, 5];
|
|
56231
56241
|
var SDK_INFO = {
|