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

bolt09

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bolt09 - npm Package Compare versions

Comparing version 0.2.5 to 1.0.0

4

CHANGELOG.md
# Versions
## 1.0.0
- Only versions of Node.js 16 or higher are supported
## 0.2.5

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

2

LICENSE.md
The MIT License (MIT)
Copyright (c) 2019-2020 Alex Bosworth
Copyright (c) 2019-2023 Alex Bosworth

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

{
"author": "Alex Bosworth",
"author": {
"name": "Alex Bosworth",
"url": "https://twitter.com/alexbosworth"
},
"bugs": {

@@ -7,7 +10,4 @@ "url": "https://github.com/alexbosworth/bolt09/issues"

"description": "BOLT 09 helper methods",
"devDependencies": {
"@alexbosworth/tap": "15.0.12"
},
"engines": {
"node": ">=12.20.0"
"node": ">=16"
},

@@ -28,5 +28,5 @@ "keywords": [

"scripts": {
"test": "tap test/*.js"
"test": "npx nyc@15.1 node --experimental-test-coverage --test"
},
"version": "0.2.5"
"version": "1.0.0"
}

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

const {test} = require('@alexbosworth/tap');
const {deepStrictEqual} = require('node:assert').strict;
const test = require('node:test');
const {throws} = require('node:assert').strict;

@@ -24,3 +26,3 @@ const {featureFlagDetails} = require('./../');

tests.forEach(({args, description, error, expected}) => {
return test(description, ({end, equal, throws}) => {
return test(description, (t, end) => {
if (!!error) {

@@ -31,3 +33,3 @@ throws(() => featureFlagDetails(args), new Error(error), 'Got error');

equal(res.type, expected.type, 'Got expected type');
deepStrictEqual(res.type, expected.type, 'Got expected type');
}

@@ -34,0 +36,0 @@

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

const {test} = require('@alexbosworth/tap');
const {deepStrictEqual} = require('node:assert').strict;
const test = require('node:test');
const {throws} = require('node:assert').strict;

@@ -24,3 +26,3 @@ const {featureFlagsAsHex} = require('./../');

tests.forEach(({args, description, error, expected}) => {
return test(description, async ({deepEqual, end, equal, throws}) => {
return test(description, (t, end) => {
if (!!error) {

@@ -31,3 +33,3 @@ throws(() => featureFlagsAsHex(args), new Error(error), 'Got error');

equal(res.encoded, expected.encoded, 'Got expected serialization');
deepStrictEqual(res.encoded, expected.encoded, 'Got serialization');
}

@@ -34,0 +36,0 @@

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

const {test} = require('@alexbosworth/tap');
const {deepStrictEqual} = require('node:assert').strict;
const test = require('node:test');
const {throws} = require('node:assert').strict;

@@ -24,3 +26,3 @@ const {featureFlagsAsWords} = require('./../');

tests.forEach(({args, description, error, expected}) => {
return test(description, ({end, strictSame, throws}) => {
return test(description, (t, end) => {
if (!!error) {

@@ -31,3 +33,3 @@ throws(() => featureFlagsAsWords(args), new Error(error), 'Got error');

strictSame(res.words, expected.words, 'Got expected words encoding');
deepStrictEqual(res.words, expected.words, 'Got words encoding');
}

@@ -34,0 +36,0 @@

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

const {test} = require('@alexbosworth/tap');
const {deepStrictEqual} = require('node:assert').strict;
const test = require('node:test');
const {throws} = require('node:assert').strict;

@@ -25,3 +27,3 @@ const {featureFlagsFromHex} = require('./../');

tests.forEach(({args, description, error, expected}) => {
return test(description, ({end, strictSame, throws}) => {
return test(description, (t, end) => {
if (!!error) {

@@ -32,3 +34,3 @@ throws(() => featureFlagsFromHex(args), new Error(error), 'Got error');

strictSame(res.features, expected.features, 'Got expected feature flags');
deepStrictEqual(res.features, expected.features, 'Got feature flags');
}

@@ -35,0 +37,0 @@

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

const {test} = require('@alexbosworth/tap');
const {deepStrictEqual} = require('node:assert').strict;
const test = require('node:test');
const {throws} = require('node:assert').strict;

@@ -19,3 +21,3 @@ const {featureFlagsFromWords} = require('./../');

tests.forEach(({args, description, error, expected}) => {
return test(description, ({end, strictSame, throws}) => {
return test(description, (t, end) => {
if (!!error) {

@@ -26,3 +28,3 @@ throws(() => featureFlagsFromWords(args), new Error(error), 'Got error');

strictSame(res.features, expected.features, 'Got expected feature bits');
deepStrictEqual(res.features, expected.features, 'Got feature bits');
}

@@ -29,0 +31,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