diff --git a/.gitignore b/.gitignore index 44bcc03..1200c46 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules .nyc_output coverage -pnpm-lock.yaml \ No newline at end of file +pnpm-lock.yaml +*.d.ts \ No newline at end of file diff --git a/lib/index.js b/lib/index.js index c0964b5..a0c703d 100644 --- a/lib/index.js +++ b/lib/index.js @@ -27,8 +27,7 @@ const b4a = require('b4a') * @returns {asserts peer is { db: PPPPPDB }} */ function assertDBPlugin(peer) { - // prettier-ignore - if (!peer.db) throw new Error('promise plugin plugin requires ppppp-db plugin') + if (!peer.db) throw new Error('"promise" plugin requires "db" plugin') } /** @@ -36,8 +35,7 @@ function assertDBPlugin(peer) { * @returns {asserts peer is { set: PPPPPSet }} */ function assertSetPlugin(peer) { - // prettier-ignore - if (!peer.set) throw new Error('promise plugin plugin requires ppppp-set plugin') + if (!peer.set) throw new Error('"promise" plugin requires "set" plugin') } /**