@gnolang/tm2-js-client
Advanced tools
Comparing version 1.1.5 to 1.1.6
export * from './key'; | ||
export * from './ledger'; | ||
export * from './signer'; | ||
export * from './types'; | ||
export * from './utility'; | ||
export * from './wallet'; |
@@ -19,4 +19,5 @@ "use strict"; | ||
__exportStar(require("./ledger"), exports); | ||
__exportStar(require("./signer"), exports); | ||
__exportStar(require("./types"), exports); | ||
__exportStar(require("./utility"), exports); | ||
__exportStar(require("./wallet"), exports); |
@@ -30,2 +30,8 @@ import { HdPath } from '@cosmjs/crypto'; | ||
export declare const stringToUTF8: (str: string) => Uint8Array; | ||
/** | ||
* Escapes <,>,& in string. | ||
* Golang's json marshaller escapes <,>,& by default. | ||
* https://cs.opensource.google/go/go/+/refs/tags/go1.20.6:src/encoding/json/encode.go;l=46-53 | ||
*/ | ||
export declare function encodeCharacterSet(data: string): string; | ||
export {}; |
@@ -42,3 +42,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.stringToUTF8 = exports.defaultAddressPrefix = exports.generateKeyPair = exports.generateEntropy = exports.generateHDPath = void 0; | ||
exports.encodeCharacterSet = exports.stringToUTF8 = exports.defaultAddressPrefix = exports.generateKeyPair = exports.generateEntropy = exports.generateHDPath = void 0; | ||
var crypto_1 = require("@cosmjs/crypto"); | ||
@@ -107,1 +107,13 @@ var crypto_2 = __importDefault(require("crypto")); | ||
exports.stringToUTF8 = stringToUTF8; | ||
/** | ||
* Escapes <,>,& in string. | ||
* Golang's json marshaller escapes <,>,& by default. | ||
* https://cs.opensource.google/go/go/+/refs/tags/go1.20.6:src/encoding/json/encode.go;l=46-53 | ||
*/ | ||
function encodeCharacterSet(data) { | ||
return data | ||
.replace(/</g, '\\u003c') | ||
.replace(/>/g, '\\u003e') | ||
.replace(/&/g, '\\u0026'); | ||
} | ||
exports.encodeCharacterSet = encodeCharacterSet; |
@@ -227,3 +227,3 @@ "use strict"; | ||
}; | ||
signBytes = (0, utility_1.stringToUTF8)((0, signdoc_1.sortedJsonStringify)(signPayload)); | ||
signBytes = (0, utility_1.stringToUTF8)((0, utility_1.encodeCharacterSet)((0, signdoc_1.sortedJsonStringify)(signPayload))); | ||
wrappedKey = { | ||
@@ -230,0 +230,0 @@ key: publicKey, |
{ | ||
"name": "@gnolang/tm2-js-client", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "Tendermint2 JS / TS Client", | ||
@@ -31,15 +31,15 @@ "main": "./bin/index.js", | ||
"@types/long": "^5.0.0", | ||
"@types/node": "^20.1.4", | ||
"@types/node": "^20.11.1", | ||
"@types/ws": "^8.5.4", | ||
"@typescript-eslint/eslint-plugin": "^5.59.5", | ||
"@typescript-eslint/parser": "^5.59.5", | ||
"eslint": "^8.40.0", | ||
"eslint": "^8.56.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-prettier": "5.0.0", | ||
"eslint-plugin-prettier": "5.1.2", | ||
"jest": "^29.5.0", | ||
"jest-mock-extended": "^3.0.4", | ||
"jest-websocket-mock": "^2.4.0", | ||
"prettier": "^3.1.0", | ||
"prettier": "^3.2.2", | ||
"ts-jest": "^29.1.0", | ||
"ts-proto": "^1.147.2", | ||
"ts-proto": "^1.167.2", | ||
"typescript": "^5.0.4" | ||
@@ -46,0 +46,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
270927
5727