Comparing version 0.2.5 to 1.0.0
# Versions | ||
## 1.0.0 | ||
- Only versions of Node.js 16 or higher are supported | ||
## 0.2.5 | ||
@@ -4,0 +8,0 @@ |
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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
17305
0
403
1