@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wishknish/knishio-client-ts",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"productName": "Knish.IO TypeScript SDK Client",
|
|
5
5
|
"description": "TypeScript implementation of the Knish.IO SDK to consume Knish.IO GraphQL APIs with enhanced type safety.",
|
|
6
6
|
"license": "GPL-3.0-or-later",
|
|
@@ -81,7 +81,11 @@
|
|
|
81
81
|
"vitest": "^4.1.11"
|
|
82
82
|
},
|
|
83
83
|
"resolutions": {
|
|
84
|
-
"wonka": "6.3.6"
|
|
84
|
+
"wonka": "6.3.6",
|
|
85
|
+
"esbuild": "^0.28.1"
|
|
86
|
+
},
|
|
87
|
+
"overrides": {
|
|
88
|
+
"esbuild": "^0.28.1"
|
|
85
89
|
},
|
|
86
90
|
"browserslist": [
|
|
87
91
|
"> 1%",
|
package/src/KnishIOClient.ts
CHANGED
|
@@ -2572,6 +2572,7 @@ export default class KnishIOClient {
|
|
|
2572
2572
|
pubkey: response.pubKey()
|
|
2573
2573
|
}, wallet)
|
|
2574
2574
|
this.setAuthToken(authToken)
|
|
2575
|
+
this.lastMoleculeQuery = null
|
|
2575
2576
|
} else {
|
|
2576
2577
|
throw new AuthorizationRejectedException(
|
|
2577
2578
|
`KnishIOClient::requestProfileAuthToken() - Authorization attempt rejected by ledger. Reason: ${response.reason()}`
|
package/src/index.ts
CHANGED
|
@@ -403,7 +403,7 @@ export {
|
|
|
403
403
|
// MUST equal package.json's "version". The CI `version consistency` job enforces this via
|
|
404
404
|
// .github/scripts/check-version.sh, which parses this exact line — keep the literal form
|
|
405
405
|
// `export const SDK_VERSION = '<semver>'` intact so the gate can read it.
|
|
406
|
-
export const SDK_VERSION = '1.2.
|
|
406
|
+
export const SDK_VERSION = '1.2.1'
|
|
407
407
|
export const SDK_NAME = 'KnishIO-Client-TS'
|
|
408
408
|
export const COMPATIBLE_SERVER_VERSIONS = [4, 5]
|
|
409
409
|
|
|
@@ -169,7 +169,8 @@ export default class ResponseProposeMolecule extends Response {
|
|
|
169
169
|
code: 'HASH_MISMATCH'
|
|
170
170
|
})
|
|
171
171
|
}
|
|
172
|
-
|
|
172
|
+
// Validator 0.5.0 words the same rejection as "OTS key reuse rejected ... is already consumed".
|
|
173
|
+
if (/ots.*(?:position|key).*reuse|position.*already.*(?:used|consumed)|ots.*verification/.test(lc)) {
|
|
173
174
|
return new SignatureMismatchException(reason, {
|
|
174
175
|
details: { reason },
|
|
175
176
|
code: 'OTS_VERIFICATION_FAILED'
|