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

ssb-bfe

Package Overview
Dependencies
Maintainers
19
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssb-bfe - npm Package Compare versions

Comparing version 3.4.0 to 3.5.0

13

index.js

@@ -295,5 +295,18 @@ // SPDX-FileCopyrightText: 2021 Anders Rune Jensen

function decodeTypeFormat(input, typeName, formatName) {
const tf = input.slice(0, 2)
if (tf.equals(NIL_TF)) return null
const type = NAMED_TYPES[typeName]
const format = NAMED_TYPES[typeName].formats[formatName]
if (format.sigil || format.suffix)
return decoder.sigilSuffix(input, type, format)
else return decoder.ssbURI(input, type, format)
}
module.exports = {
encode,
decode,
decodeTypeFormat,
bfeTypes: definitions,

@@ -300,0 +313,0 @@ bfeNamedTypes: NAMED_TYPES,

2

package.json
{
"name": "ssb-bfe",
"description": "Binary Field Encodings (BFE) for Secure Scuttlebutt (SSB)",
"version": "3.4.0",
"version": "3.5.0",
"homepage": "https://github.com/ssbc/ssb-bfe",

@@ -6,0 +6,0 @@ "repository": {

@@ -41,2 +41,8 @@ <!--

### `decodeTypeFormat(input, typeName, formatName)`
Takes an encoded value (such as the output from `encode`), a typeName
and formatName and returns the decoded counterparts as JavaScript
primitives. This is much faster than decode if you know the type.
### `bfeTypes`

@@ -43,0 +49,0 @@

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