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

bolt07

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bolt07 - npm Package Compare versions

Comparing version 1.6.0 to 1.7.0

4

CHANGELOG.md
# Versions
## 1.7.0
- `hopsFromChannels`: Derive policy hops from a list of channels
## 1.6.0

@@ -4,0 +8,0 @@

@@ -5,2 +5,3 @@ const {chanFormat} = require('./ids');

const {encodeChanId} = require('./ids');
const {hopsFromChannels} = require('./routing');
const {rawChanId} = require('./ids');

@@ -15,2 +16,3 @@ const {routeFromChannels} = require('./routing');

encodeChanId,
hopsFromChannels,
rawChanId,

@@ -17,0 +19,0 @@ routeFromChannels,

4

package.json

@@ -14,3 +14,3 @@ {

"devDependencies": {
"tap": "14.10.8"
"tap": "14.11.0"
},

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

},
"version": "1.6.0"
"version": "1.7.0"
}

@@ -9,2 +9,13 @@ # BOLT07

## Methods
- [chanFormat](#chanformat) - convert number or raw bytes format channel id to standard format
- [chanNumber](#channumber) - convert standard, raw bytes format channel id to number format
- [decodeChanId](#decodechanid) - decode block height and index components of a channel id
- [encodeChanId](#encodechanid) - encode block height and index components into a channel id
- [hopsFromChannels](#hopsfromchannels) - derive policy hops from a list of channels
- [rawChanId](#rawchanid) - convert numeric or standard channel id into a raw wire form
- [routeFromChannels](#routefromchannels) - derive a route from a sequence of channels
- [routeFromHops](#routefromhops) - derive a route from a sequence of policy hops
## Examples

@@ -11,0 +22,0 @@

@@ -0,4 +1,5 @@

const hopsFromChannels = require('./hops_from_channels');
const routeFromChannels = require('./route_from_channels');
const routeFromHops = require('./route_from_hops');
module.exports = {routeFromChannels, routeFromHops};
module.exports = {hopsFromChannels, routeFromChannels, routeFromHops};

@@ -5,3 +5,3 @@ const {test} = require('tap');

const charlieChannels = require('./../fixtures/graph_charlie').channels;
const hopsFromChannels = require('./../../routing/hops_from_channels');
const {hopsFromChannels} = require('./../../');

@@ -8,0 +8,0 @@ const tests = [

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