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

bip174

Package Overview
Dependencies
Maintainers
4
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bip174 - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

7

package.json
{
"name": "bip174",
"version": "0.0.4",
"version": "0.0.5",
"description": "",

@@ -14,5 +14,5 @@ "main": "src/lib/psbt.js",

"scripts": {
"build": "npm run clean && tsc -p ./tsconfig.json ; npm run formatjs",
"build": "npm run clean && tsc -p ./tsconfig.json && rimraf 'src/tests/**/*.d.ts' && npm run formatjs",
"clean": "rimraf src types",
"coverage": "nyc --check-coverage --reporter=lcov --reporter=text --branches 40 --functions 70 --lines 60 npm run unit",
"coverage": "nyc --check-coverage --reporter=lcov --reporter=text --branches 75 --functions 90 --lines 90 npm run unit",
"format": "npm run prettier -- --write",

@@ -35,2 +35,3 @@ "formatjs": "npm run prettierjs -- --write > /dev/null 2>&1",

"@types/tape": "4.2.33",
"json-buffer": "^3.0.1",
"nyc": "^14.1.1",

@@ -37,0 +38,0 @@ "prettier": "^1.18.2",

/// <reference types="node" />
export declare function encode(_number: number, buffer: Buffer, offset: number): Buffer;
export declare function decode(buffer: Buffer, offset: number): number;
export declare function encode(_number: number, buffer?: Buffer, offset?: number): Buffer;
export declare function decode(buffer: Buffer, offset?: number): number;
export declare function encodingLength(_number: number): number;

@@ -19,3 +19,3 @@ 'use strict';

const psbt = new Psbt();
psbt.globalMap.keyVals[0].value = txBuf;
psbt.globalMap.unsignedTx = txBuf;
while (result.inputCount > 0) {

@@ -69,5 +69,2 @@ psbt.inputs.push({

}
// TODO:
// Add methods to update various parts. (ie. "updater" responsibility)
// Return self for chaining.
addNonWitnessUtxoToInput(inputIndex, nonWitnessUtxo) {

@@ -74,0 +71,0 @@ const input = checkForInput(this.inputs, inputIndex);

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