@cosmjs/encoding
Advanced tools
Comparing version 0.20.0 to 0.20.1
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fromAscii = exports.toAscii = void 0; | ||
function toAscii(input) { | ||
@@ -4,0 +5,0 @@ const toNums = (str) => str.split("").map((x) => { |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fromBase64 = exports.toBase64 = void 0; | ||
const base64js = __importStar(require("base64-js")); | ||
@@ -11,0 +24,0 @@ function toBase64(data) { |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Bech32 = void 0; | ||
const bech32 = __importStar(require("bech32")); | ||
@@ -11,0 +24,0 @@ class Bech32 { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fromHex = exports.toHex = void 0; | ||
function toHex(data) { | ||
@@ -4,0 +5,0 @@ let out = ""; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ascii_1 = require("./ascii"); | ||
exports.fromAscii = ascii_1.fromAscii; | ||
exports.toAscii = ascii_1.toAscii; | ||
Object.defineProperty(exports, "fromAscii", { enumerable: true, get: function () { return ascii_1.fromAscii; } }); | ||
Object.defineProperty(exports, "toAscii", { enumerable: true, get: function () { return ascii_1.toAscii; } }); | ||
var base64_1 = require("./base64"); | ||
exports.fromBase64 = base64_1.fromBase64; | ||
exports.toBase64 = base64_1.toBase64; | ||
Object.defineProperty(exports, "fromBase64", { enumerable: true, get: function () { return base64_1.fromBase64; } }); | ||
Object.defineProperty(exports, "toBase64", { enumerable: true, get: function () { return base64_1.toBase64; } }); | ||
var bech32_1 = require("./bech32"); | ||
exports.Bech32 = bech32_1.Bech32; | ||
Object.defineProperty(exports, "Bech32", { enumerable: true, get: function () { return bech32_1.Bech32; } }); | ||
var hex_1 = require("./hex"); | ||
exports.fromHex = hex_1.fromHex; | ||
exports.toHex = hex_1.toHex; | ||
Object.defineProperty(exports, "fromHex", { enumerable: true, get: function () { return hex_1.fromHex; } }); | ||
Object.defineProperty(exports, "toHex", { enumerable: true, get: function () { return hex_1.toHex; } }); | ||
var rfc3339_1 = require("./rfc3339"); | ||
exports.fromRfc3339 = rfc3339_1.fromRfc3339; | ||
exports.toRfc3339 = rfc3339_1.toRfc3339; | ||
Object.defineProperty(exports, "fromRfc3339", { enumerable: true, get: function () { return rfc3339_1.fromRfc3339; } }); | ||
Object.defineProperty(exports, "toRfc3339", { enumerable: true, get: function () { return rfc3339_1.toRfc3339; } }); | ||
var utf8_1 = require("./utf8"); | ||
exports.fromUtf8 = utf8_1.fromUtf8; | ||
exports.toUtf8 = utf8_1.toUtf8; | ||
Object.defineProperty(exports, "fromUtf8", { enumerable: true, get: function () { return utf8_1.fromUtf8; } }); | ||
Object.defineProperty(exports, "toUtf8", { enumerable: true, get: function () { return utf8_1.toUtf8; } }); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toRfc3339 = exports.fromRfc3339 = void 0; | ||
const readonly_date_1 = require("readonly-date"); | ||
@@ -4,0 +5,0 @@ const rfc3339Matcher = /^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fromUtf8 = exports.toUtf8 = void 0; | ||
function isValidUtf8(data) { | ||
@@ -4,0 +5,0 @@ const toStringAndBack = Buffer.from(Buffer.from(data).toString("utf8"), "utf8"); |
{ | ||
"name": "@cosmjs/encoding", | ||
"version": "0.20.0", | ||
"version": "0.20.1", | ||
"description": "Encoding helpers for blockchain projects", | ||
@@ -28,2 +28,3 @@ "contributors": [ | ||
"lint": "eslint --max-warnings 0 \"**/*.{js,ts}\"", | ||
"lint-fix": "eslint --max-warnings 0 \"**/*.{js,ts}\" --fix", | ||
"format": "prettier --write --loglevel warn \"./src/**/*.ts\"", | ||
@@ -37,2 +38,3 @@ "format-text": "prettier --write --prose-wrap always --print-width 80 \"./*.md\"", | ||
"test": "yarn build-or-skip && yarn test-node", | ||
"coverage": "nyc --reporter=text --reporter=lcov yarn test --quiet", | ||
"move-types": "shx rm -r ./types/* && shx mv build/types/* ./types && rm -rf ./types/testdata && shx rm -f ./types/*.spec.d.ts", | ||
@@ -52,3 +54,3 @@ "format-types": "prettier --write --loglevel warn \"./types/**/*.d.ts\"", | ||
}, | ||
"gitHead": "dd120779aac5743193965cdfd029979547947642" | ||
"gitHead": "d49ca38686c7ba8ef854effaac358d7af6bce8da" | ||
} |
@@ -21,5 +21,4 @@ # @cosmjs/encoding | ||
This package is part of the cosmjs repository, licensed under the Apache | ||
License 2.0 (see | ||
[NOTICE](https://github.com/CosmWasm/cosmjs/blob/master/NOTICE) and | ||
This package is part of the cosmjs repository, licensed under the Apache License | ||
2.0 (see [NOTICE](https://github.com/CosmWasm/cosmjs/blob/master/NOTICE) and | ||
[LICENSE](https://github.com/CosmWasm/cosmjs/blob/master/LICENSE)). |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
32133
256
24