Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@burstjs/util

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@burstjs/util - npm Package Compare versions

Comparing version 0.5.1 to 0.6.0-alpha.1

out/__tests__/address.spec.d.ts

2

dist/convertDecStringToHexString.d.ts
import './internal/padStartPolyfill';
import BigNumber from 'bignumber.js';
export declare const convertDecStringToHexString: (decimal: string | BigNumber, padding?: number) => string;
export declare const convertDecStringToHexString: (decimal: BigNumber | string, padding?: number) => string;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BurstTime = void 0;
const internal_1 = require("./internal");

@@ -4,0 +5,0 @@ class BurstTime {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BurstValue = exports.BurstValueFormat = void 0;
const bignumber_js_1 = require("bignumber.js");

@@ -4,0 +5,0 @@ const constants_1 = require("./constants");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OneBurstPlanck = exports.FeeQuantPlanck = exports.BurstPlanckSymbol = exports.BurstSymbol = void 0;
exports.BurstSymbol = 'Ƀ';

@@ -4,0 +5,0 @@ exports.BurstPlanckSymbol = 'ƀ';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertAddressToNumericId = void 0;
const internal_1 = require("./internal");

@@ -4,0 +5,0 @@ const isBurstAddress_1 = require("./isBurstAddress");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertBase64StringToString = void 0;
const js_base64_1 = require("js-base64");

@@ -4,0 +5,0 @@ exports.convertBase64StringToString = (b64) => {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertBurstTimeToDate = void 0;
const convertBurstTimeToEpochTime_1 = require("./convertBurstTimeToEpochTime");

@@ -4,0 +5,0 @@ exports.convertBurstTimeToDate = (burstTimestamp) => {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertBurstTimeToEpochTime = void 0;
const internal_1 = require("./internal");

@@ -4,0 +5,0 @@ exports.convertBurstTimeToEpochTime = (burstTimestamp) => {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertByteArrayToHexString = void 0;
exports.convertByteArrayToHexString = (bytes, uppercase = false) => {

@@ -4,0 +5,0 @@ const hex = [];

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertByteArrayToString = void 0;
exports.convertByteArrayToString = (byteArray, startIndex = 0, length = null) => {

@@ -4,0 +5,0 @@ if (length === 0) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertDateToBurstTime = void 0;
const internal_1 = require("./internal");

@@ -4,0 +5,0 @@ exports.convertDateToBurstTime = (date) => {

import './internal/padStartPolyfill';
import BigNumber from 'bignumber.js';
export declare const convertDecStringToHexString: (decimal: string | BigNumber, padding?: number) => string;
export declare const convertDecStringToHexString: (decimal: BigNumber | string, padding?: number) => string;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertDecStringToHexString = void 0;
require("./internal/padStartPolyfill");

@@ -4,0 +5,0 @@ const bignumber_js_1 = require("bignumber.js");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertHexEndianess = void 0;
exports.convertHexEndianess = (hexString) => {

@@ -4,0 +5,0 @@ let result = '';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertHexStringToByteArray = void 0;
exports.convertHexStringToByteArray = (hex) => {

@@ -4,0 +5,0 @@ if (hex.length % 2) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertHexStringToDecString = void 0;
exports.convertHexStringToDecString = (hexStr) => {

@@ -4,0 +5,0 @@ const digits = [0];

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertHexStringToString = void 0;
const convertByteArrayToString_1 = require("./convertByteArrayToString");

@@ -4,0 +5,0 @@ const convertHexStringToByteArray_1 = require("./convertHexStringToByteArray");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertNQTStringToNumber = void 0;
exports.convertNQTStringToNumber = (amount) => {

@@ -4,0 +5,0 @@ if (amount === undefined ||

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertNumberToNQTString = void 0;
exports.convertNumberToNQTString = (n) => {

@@ -4,0 +5,0 @@ if (n === undefined || n === null) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertNumericIdToAddress = void 0;
const internal_1 = require("./internal");

@@ -4,0 +5,0 @@ exports.convertNumericIdToAddress = (numericId) => {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertStringToBase64String = void 0;
const js_base64_1 = require("js-base64");

@@ -4,0 +5,0 @@ exports.convertStringToBase64String = (str, isURICompatible = true) => {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertStringToByteArray = void 0;
exports.convertStringToByteArray = (str) => {

@@ -4,0 +5,0 @@ const s = unescape(encodeURIComponent(str));

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertStringToHexString = void 0;
const convertStringToByteArray_1 = require("./convertStringToByteArray");

@@ -4,0 +5,0 @@ const convertByteArrayToHexString_1 = require("./convertByteArrayToHexString");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createDeeplink = void 0;
const createDeeplinkArgs_1 = require("./typings/args/createDeeplinkArgs");

@@ -4,0 +5,0 @@ const convertStringToHexString_1 = require("./convertStringToHexString");

"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./convertAddressToNumericId"));
__export(require("./convertBurstTimeToDate"));
__export(require("./convertBurstTimeToEpochTime"));
__export(require("./convertByteArrayToHexString"));
__export(require("./convertByteArrayToString"));
__export(require("./convertDateToBurstTime"));
__export(require("./convertHexEndianess"));
__export(require("./convertHexStringToByteArray"));
__export(require("./convertHexStringToDecString"));
__export(require("./convertDecStringToHexString"));
__export(require("./convertHexStringToString"));
__export(require("./convertNQTStringToNumber"));
__export(require("./convertNumberToNQTString"));
__export(require("./convertNumericIdToAddress"));
__export(require("./convertStringToByteArray"));
__export(require("./convertStringToHexString"));
__export(require("./createDeeplink"));
__export(require("./isBurstAddress"));
__export(require("./parseDeeplink"));
__export(require("./sumNQTStringToNumber"));
__export(require("./typings"));
__export(require("./constants"));
__export(require("./burstTime"));
__export(require("./burstValue"));
__exportStar(require("./convertAddressToNumericId"), exports);
__exportStar(require("./convertBurstTimeToDate"), exports);
__exportStar(require("./convertBurstTimeToEpochTime"), exports);
__exportStar(require("./convertByteArrayToHexString"), exports);
__exportStar(require("./convertByteArrayToString"), exports);
__exportStar(require("./convertDateToBurstTime"), exports);
__exportStar(require("./convertHexEndianess"), exports);
__exportStar(require("./convertHexStringToByteArray"), exports);
__exportStar(require("./convertHexStringToDecString"), exports);
__exportStar(require("./convertDecStringToHexString"), exports);
__exportStar(require("./convertHexStringToString"), exports);
__exportStar(require("./convertNQTStringToNumber"), exports);
__exportStar(require("./convertNumberToNQTString"), exports);
__exportStar(require("./convertNumericIdToAddress"), exports);
__exportStar(require("./convertStringToByteArray"), exports);
__exportStar(require("./convertStringToHexString"), exports);
__exportStar(require("./createDeeplink"), exports);
__exportStar(require("./isBurstAddress"), exports);
__exportStar(require("./parseDeeplink"), exports);
__exportStar(require("./sumNQTStringToNumber"), exports);
__exportStar(require("./typings"), exports);
__exportStar(require("./constants"), exports);
__exportStar(require("./burstTime"), exports);
__exportStar(require("./burstValue"), exports);
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.gmult = exports.ginv = exports.base32Length = exports.alphabet = exports.cwmap = exports.glog = exports.gexp = exports.initialCodeword = exports.GenesisBlockTime = void 0;
exports.GenesisBlockTime = Date.UTC(2014, 7, 11, 2, 0, 0, 0) / 1000;

@@ -4,0 +5,0 @@ exports.initialCodeword = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isBurstAddress = exports.isValid = void 0;
const internal_1 = require("./internal");

@@ -4,0 +5,0 @@ exports.isValid = (address) => {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseDeeplink = void 0;
const MandatoryPattern = /^burst.(.+):\/\/(v.+?)\??/i;

@@ -4,0 +5,0 @@ exports.parseDeeplink = (deeplink) => {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.sumNQTStringToNumber = void 0;
const convertNQTStringToNumber_1 = require("./convertNQTStringToNumber");

@@ -4,0 +5,0 @@ function sumNQTStringToNumber(...nqts) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EncoderFormat = void 0;
var EncoderFormat;

@@ -4,0 +5,0 @@ (function (EncoderFormat) {

"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./args/createDeeplinkArgs"));
__exportStar(require("./args/createDeeplinkArgs"), exports);
__exportStar(require("./DeeplinkParts"), exports);
//# sourceMappingURL=index.js.map
{
"name": "@burstjs/util",
"version": "0.5.1",
"version": "0.6.0-alpha.1",
"description": "Useful utilities and tools for building Burstcoin applications",

@@ -59,3 +59,3 @@ "keywords": [

},
"gitHead": "27a7a2409c626bdb996f0085497cc4e8707144a1",
"gitHead": "505c2211b2089675129915bdd4e909f5bdc33fab",
"dependencies": {

@@ -62,0 +62,0 @@ "bignumber.js": "^9.0.0",

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

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

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

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc