@stacks/transactions
Advanced tools
Comparing version 6.16.0-beta.1 to 6.16.0-beta.2
import { contractPrincipalCV, deserializeCV, listCV, noneCV, responseErrorCV, responseOkCV, serializeCV, someCV, standardPrincipalCV, tupleCV } from './clarity'; | ||
export { prettyPrint } from './clarity/prettyPrint'; | ||
export { prettyPrint, stringify } from './clarity/prettyPrint'; | ||
export { parse } from './clarity/parser'; | ||
export declare const bool: (bool: boolean) => import("./clarity/types/booleanCV").BooleanCV; | ||
@@ -4,0 +5,0 @@ export declare const int: (value: import("@stacks/common").IntegerType) => import("./clarity/types/intCV").IntCV; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.deserialize = exports.serialize = exports.tuple = exports.error = exports.ok = exports.some = exports.none = exports.bufferFromUtf8 = exports.bufferFromAscii = exports.bufferFromHex = exports.buffer = exports.stringUtf8 = exports.stringAscii = exports.list = exports.standardPrincipal = exports.contractPrincipal = exports.address = exports.principal = exports.uint = exports.int = exports.bool = exports.prettyPrint = void 0; | ||
exports.deserialize = exports.serialize = exports.tuple = exports.error = exports.ok = exports.some = exports.none = exports.bufferFromUtf8 = exports.bufferFromAscii = exports.bufferFromHex = exports.buffer = exports.stringUtf8 = exports.stringAscii = exports.list = exports.standardPrincipal = exports.contractPrincipal = exports.address = exports.principal = exports.uint = exports.int = exports.bool = exports.parse = exports.stringify = exports.prettyPrint = void 0; | ||
const common_1 = require("@stacks/common"); | ||
@@ -8,2 +8,5 @@ const clarity_1 = require("./clarity"); | ||
Object.defineProperty(exports, "prettyPrint", { enumerable: true, get: function () { return prettyPrint_1.prettyPrint; } }); | ||
Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return prettyPrint_1.stringify; } }); | ||
var parser_1 = require("./clarity/parser"); | ||
Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return parser_1.parse; } }); | ||
exports.bool = clarity_1.boolCV; | ||
@@ -10,0 +13,0 @@ exports.int = clarity_1.intCV; |
import { ClarityValue } from '.'; | ||
export declare function prettyPrint(cv: ClarityValue, space?: number): string; | ||
export declare function stringify(cv: ClarityValue, space?: number): string; | ||
export declare const prettyPrint: typeof stringify; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.prettyPrint = void 0; | ||
exports.prettyPrint = exports.stringify = void 0; | ||
const common_1 = require("@stacks/common"); | ||
@@ -68,6 +68,7 @@ const _1 = require("."); | ||
} | ||
function prettyPrint(cv, space = 0) { | ||
function stringify(cv, space = 0) { | ||
return prettyPrintWithDepth(cv, space, 0); | ||
} | ||
exports.prettyPrint = prettyPrint; | ||
exports.stringify = stringify; | ||
exports.prettyPrint = stringify; | ||
//# sourceMappingURL=prettyPrint.js.map |
import { contractPrincipalCV, deserializeCV, listCV, noneCV, responseErrorCV, responseOkCV, serializeCV, someCV, standardPrincipalCV, tupleCV } from './clarity'; | ||
export { prettyPrint } from './clarity/prettyPrint'; | ||
export { prettyPrint, stringify } from './clarity/prettyPrint'; | ||
export { parse } from './clarity/parser'; | ||
export declare const bool: (bool: boolean) => import("./clarity/types/booleanCV").BooleanCV; | ||
@@ -4,0 +5,0 @@ export declare const int: (value: import("@stacks/common").IntegerType) => import("./clarity/types/intCV").IntCV; |
import { asciiToBytes, hexToBytes, utf8ToBytes } from '@stacks/common'; | ||
import { boolCV, bufferCV, contractPrincipalCV, deserializeCV, intCV, listCV, noneCV, responseErrorCV, responseOkCV, serializeCV, someCV, standardPrincipalCV, stringAsciiCV, stringUtf8CV, tupleCV, uintCV, } from './clarity'; | ||
export { prettyPrint } from './clarity/prettyPrint'; | ||
export { prettyPrint, stringify } from './clarity/prettyPrint'; | ||
export { parse } from './clarity/parser'; | ||
export const bool = boolCV; | ||
@@ -5,0 +6,0 @@ export const int = intCV; |
import { ClarityValue } from '.'; | ||
export declare function prettyPrint(cv: ClarityValue, space?: number): string; | ||
export declare function stringify(cv: ClarityValue, space?: number): string; | ||
export declare const prettyPrint: typeof stringify; |
@@ -65,5 +65,6 @@ import { bytesToHex } from '@stacks/common'; | ||
} | ||
export function prettyPrint(cv, space = 0) { | ||
export function stringify(cv, space = 0) { | ||
return prettyPrintWithDepth(cv, space, 0); | ||
} | ||
export const prettyPrint = stringify; | ||
//# sourceMappingURL=prettyPrint.js.map |
{ | ||
"name": "@stacks/transactions", | ||
"version": "6.16.0-beta.1", | ||
"version": "6.16.0-beta.2", | ||
"description": "Javascript library for constructing transactions on the Stacks blockchain.", | ||
@@ -30,4 +30,4 @@ "license": "MIT", | ||
"@noble/secp256k1": "1.7.1", | ||
"@stacks/common": "^6.16.0-beta.1", | ||
"@stacks/network": "^6.16.0-beta.1", | ||
"@stacks/common": "^6.16.0-beta.2", | ||
"@stacks/network": "^6.16.0-beta.2", | ||
"c32check": "^2.0.0", | ||
@@ -37,3 +37,3 @@ "lodash.clonedeep": "^4.5.0" | ||
"devDependencies": { | ||
"@stacks/encryption": "^6.16.0-beta.1", | ||
"@stacks/encryption": "^6.16.0-beta.2", | ||
"@types/common-tags": "^1.8.0", | ||
@@ -67,3 +67,3 @@ "@types/elliptic": "^6.4.12", | ||
}, | ||
"gitHead": "627a0091e09ffc4e3cfe614e8be4887cfe4b1e9a" | ||
"gitHead": "4dfc8ba2cf08bd8d2e91b9156774aa058b75a669" | ||
} |
@@ -21,3 +21,4 @@ import { asciiToBytes, hexToBytes, utf8ToBytes } from '@stacks/common'; | ||
export { prettyPrint } from './clarity/prettyPrint'; | ||
export { prettyPrint, stringify } from './clarity/prettyPrint'; | ||
export { parse } from './clarity/parser'; | ||
@@ -24,0 +25,0 @@ // todo: https://github.com/hirosystems/clarinet/issues/786 |
@@ -113,4 +113,4 @@ /* | ||
/** | ||
* @description format clarity values in clarity style strings | ||
* with the ability to prettify the result with line break end space indentation | ||
* Format clarity values in clarity style strings with the ability to prettify | ||
* the result with line break end space indentation. | ||
* @param cv The Clarity Value to format | ||
@@ -130,4 +130,7 @@ * @param space The indentation size of the output string. There's no indentation and no line breaks if space = 0 | ||
*/ | ||
export function prettyPrint(cv: ClarityValue, space = 0): string { | ||
export function stringify(cv: ClarityValue, space = 0): string { | ||
return prettyPrintWithDepth(cv, space, 0); | ||
} | ||
/** @deprecated alias for {@link Cl.stringify} */ | ||
export const prettyPrint = stringify; |
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 too big to display
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
1881149
265
18699