New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@stacks/transactions

Package Overview
Dependencies
Maintainers
6
Versions
664
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stacks/transactions - npm Package Compare versions

Comparing version 1.0.0-beta.9 to 1.0.0-beta.10

47

dist/bufferReader.esm.js

@@ -1,2 +0,1 @@

import { inheritsLoose as _inheritsLoose, assertThisInitialized as _assertThisInitialized } from './_virtual/_rollupPluginBabelHelpers.js';
import { SmartBuffer } from 'smart-buffer';

@@ -26,4 +25,12 @@

}
var BufferReader = /*#__PURE__*/function (_SmartBuffer) {
_inheritsLoose(BufferReader, _SmartBuffer);
var BufferReader = /*#__PURE__*/function () {
function BufferReader(options) {
if (Buffer.isBuffer(options)) {
this.smartBuffer = new SmartBuffer({
buff: options
});
} else {
this.smartBuffer = new SmartBuffer(options);
}
}

@@ -36,20 +43,22 @@ BufferReader.fromBuffer = function fromBuffer(buffer) {

function BufferReader(options) {
var _this;
var _proto = BufferReader.prototype;
if (Buffer.isBuffer(options)) {
_this = _SmartBuffer.call(this, {
buff: options
}) || this;
} else {
_this = _SmartBuffer.call(this, options) || this;
}
_proto.readBuffer = function readBuffer(length) {
return this.smartBuffer.readBuffer(length);
};
return _assertThisInitialized(_this);
}
_proto.readUInt32BE = function readUInt32BE(offset) {
return this.smartBuffer.readUInt32BE(offset);
};
var _proto = BufferReader.prototype;
_proto.readUInt8 = function readUInt8() {
return this.smartBuffer.readUInt8();
};
_proto.readUInt16BE = function readUInt16BE() {
return this.smartBuffer.readUInt16BE();
};
_proto.readBigUIntLE = function readBigUIntLE(length) {
var buffer = Buffer.from(this.readBuffer(length)).reverse();
var buffer = Buffer.from(this.smartBuffer.readBuffer(length)).reverse();
var hex = buffer.toString();

@@ -61,3 +70,3 @@ var num = BigInt("0x" + hex);

_proto.readBigUIntBE = function readBigUIntBE(length) {
var buffer = this.readBuffer(length);
var buffer = this.smartBuffer.readBuffer(length);
var hex = buffer.toString('hex');

@@ -69,3 +78,3 @@ var num = BigInt("0x" + hex);

_proto.readUInt8Enum = function readUInt8Enum(enumVariable, invalidEnumErrorFormatter) {
var num = this.readUInt8();
var num = this.smartBuffer.readUInt8();

@@ -80,5 +89,5 @@ if (isEnum(enumVariable, num)) {

return BufferReader;
}(SmartBuffer);
}();
export { BufferReader, isEnum };
//# sourceMappingURL=bufferReader.esm.js.map

@@ -6,5 +6,10 @@ /// <reference types="node" />

}, value: number): value is TEnumValue;
export declare class BufferReader extends SmartBuffer {
export declare class BufferReader {
smartBuffer: SmartBuffer;
static fromBuffer(buffer: Buffer): BufferReader;
constructor(options?: SmartBufferOptions | Buffer);
readBuffer(length: number): Buffer;
readUInt32BE(offset?: number): number;
readUInt8(): number;
readUInt16BE(): number;
readBigUIntLE(length: number): bigint;

@@ -11,0 +16,0 @@ readBigUIntBE(length: number): bigint;

@@ -5,3 +5,3 @@ import { ClarityValue, ClarityType, getCVTypeString, cvToString } from './clarityValue';

import { BufferCV, bufferCV, bufferCVFromString } from './types/bufferCV';
import { OptionalCV, noneCV, someCV } from './types/optionalCV';
import { OptionalCV, NoneCV, SomeCV, noneCV, someCV } from './types/optionalCV';
import { ResponseCV, ResponseOkCV, ResponseErrorCV, responseOkCV, responseErrorCV } from './types/responseCV';

@@ -14,5 +14,5 @@ import { StandardPrincipalCV, ContractPrincipalCV, standardPrincipalCV, contractPrincipalCV, standardPrincipalCVFromAddress, contractPrincipalCVFromAddress, PrincipalCV, contractPrincipalCVFromStandard } from './types/principalCV';

import deserializeCV from './deserialize';
export { ClarityType, ClarityValue, BooleanCV, TrueCV, FalseCV, IntCV, UIntCV, BufferCV, OptionalCV, ResponseCV, ResponseOkCV, ResponseErrorCV, PrincipalCV, StandardPrincipalCV, ContractPrincipalCV, ListCV, TupleCV, StringAsciiCV, StringUtf8CV, };
export { ClarityType, ClarityValue, BooleanCV, TrueCV, FalseCV, IntCV, UIntCV, BufferCV, OptionalCV, NoneCV, SomeCV, ResponseCV, ResponseOkCV, ResponseErrorCV, PrincipalCV, StandardPrincipalCV, ContractPrincipalCV, ListCV, TupleCV, StringAsciiCV, StringUtf8CV, };
export { trueCV, falseCV, intCV, uintCV, bufferCV, bufferCVFromString, noneCV, someCV, responseOkCV, responseErrorCV, standardPrincipalCV, standardPrincipalCVFromAddress, contractPrincipalCV, contractPrincipalCVFromAddress, contractPrincipalCVFromStandard, listCV, tupleCV, stringAsciiCV, stringUtf8CV, getCVTypeString, };
export { serializeCV, deserializeCV };
export { cvToString };

@@ -13,2 +13,2 @@ import { ClarityType, ClarityValue } from '../clarityValue';

declare const optionalCVOf: (value?: NoneCV | SomeCV | import("./booleanCV").TrueCV | import("./booleanCV").FalseCV | import("./bufferCV").BufferCV | import("./intCV").IntCV | import("./intCV").UIntCV | import("./principalCV").StandardPrincipalCV | import("./principalCV").ContractPrincipalCV | import("./responseCV").ResponseErrorCV | import("./responseCV").ResponseOkCV | import("./listCV").ListCV | import("./tupleCV").TupleCV | import("./stringCV").StringAsciiCV | import("./stringCV").StringUtf8CV | undefined) => OptionalCV;
export { OptionalCV, noneCV, someCV, optionalCVOf };
export { OptionalCV, NoneCV, SomeCV, noneCV, someCV, optionalCVOf };
{
"name": "@stacks/transactions",
"version": "1.0.0-beta.9",
"version": "1.0.0-beta.10",
"description": "Javascript library for constructing transactions on the Stacks blockchain.",

@@ -58,4 +58,4 @@ "homepage": "https://blockstack.org",

"dependencies": {
"@stacks/common": "^1.0.0-beta.9",
"@stacks/network": "^1.0.0-beta.9",
"@stacks/common": "^1.0.0-beta.10",
"@stacks/network": "^1.0.0-beta.10",
"@types/bn.js": "^4.11.6",

@@ -62,0 +62,0 @@ "@types/elliptic": "^6.4.12",

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

Sorry, the diff of this file is too big to display

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

Sorry, the diff of this file is too big to display

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