@switchboard-xyz/common
Advanced tools
Comparing version 2.1.6 to 2.1.7
@@ -1,5 +0,6 @@ | ||
/** | ||
* Converts to utf-8 encoding and removes null characters. | ||
*/ | ||
export declare const toUtf8: (buf: Uint8Array | number[] | string | Buffer) => string; | ||
export * from "./async.js"; | ||
export * from "./big.js"; | ||
export * from "./date.js"; | ||
export * from "./json.js"; | ||
export * from "./string.js"; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toUtf8 = void 0; | ||
/** | ||
* Converts to utf-8 encoding and removes null characters. | ||
*/ | ||
const toUtf8 = (buf) => Buffer.from(buf) | ||
.toString("utf8") | ||
.replace(/\u0000/g, ""); | ||
exports.toUtf8 = toUtf8; | ||
__exportStar(require("./async.js"), exports); | ||
__exportStar(require("./big.js"), exports); | ||
__exportStar(require("./date.js"), exports); | ||
__exportStar(require("./json.js"), exports); | ||
__exportStar(require("./string.js"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,5 +0,6 @@ | ||
/** | ||
* Converts to utf-8 encoding and removes null characters. | ||
*/ | ||
export declare const toUtf8: (buf: Uint8Array | number[] | string | Buffer) => string; | ||
export * from "./async.js"; | ||
export * from "./big.js"; | ||
export * from "./date.js"; | ||
export * from "./json.js"; | ||
export * from "./string.js"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,7 +0,6 @@ | ||
/** | ||
* Converts to utf-8 encoding and removes null characters. | ||
*/ | ||
export const toUtf8 = (buf) => Buffer.from(buf) | ||
.toString("utf8") | ||
.replace(/\u0000/g, ""); | ||
export * from "./async.js"; | ||
export * from "./big.js"; | ||
export * from "./date.js"; | ||
export * from "./json.js"; | ||
export * from "./string.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"description": "common type definitions and utils for interacting with switchboard", | ||
@@ -37,2 +37,3 @@ "files": [ | ||
"bn.js": "^5.2.1", | ||
"decimal.js": "^10.4.2", | ||
"protobufjs": "^7.1.2" | ||
@@ -43,2 +44,3 @@ }, | ||
"@types/bn.js": "^5.1.0", | ||
"@types/decimal.js": "^7.4.0", | ||
"@types/long": "^5.0.0", | ||
@@ -45,0 +47,0 @@ "@types/node": "^18.11.9", |
@@ -1,7 +0,5 @@ | ||
/** | ||
* Converts to utf-8 encoding and removes null characters. | ||
*/ | ||
export const toUtf8 = (buf: Uint8Array | number[] | string | Buffer): string => | ||
Buffer.from(buf) | ||
.toString("utf8") | ||
.replace(/\u0000/g, ""); | ||
export * from "./async.js"; | ||
export * from "./big.js"; | ||
export * from "./date.js"; | ||
export * from "./json.js"; | ||
export * from "./string.js"; |
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
3084510
93
60297
4
8
+ Addeddecimal.js@^10.4.2
+ Addeddecimal.js@10.5.0(transitive)