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

autobase-test-helpers

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autobase-test-helpers - npm Package Compare versions

Comparing version

to
2.1.0

21

index.js

@@ -28,4 +28,8 @@ const b4a = require('b4a')

return new Promise((resolve) => {
for (const base of bases) base.on('update', check)
return new Promise((resolve, reject) => {
for (const base of bases) {
base.on('update', check)
base.on('error', shutdown)
}
check()

@@ -39,5 +43,14 @@

if (!synced(bases)) return
for (const base of bases) base.off('update', check)
resolve()
shutdown()
}
function shutdown (err) {
for (const base of bases) {
base.off('update', check)
base.off('error', shutdown)
}
if (err) reject(err)
else resolve()
}
})

@@ -44,0 +57,0 @@ }

2

package.json
{
"name": "autobase-test-helpers",
"version": "2.0.4",
"version": "2.1.0",
"description": "Helpers when writing tests for an Autobased application",

@@ -5,0 +5,0 @@ "main": "index.js",