mirror of https://codeberg.org/pzp/pzp-goals.git
update plugin assertion errors
This commit is contained in:
parent
b05e354aa8
commit
41dcb8a374
|
@ -53,7 +53,7 @@ const Obz = require('obz')
|
||||||
* @returns {asserts peer is { db: PPPPPDB }}
|
* @returns {asserts peer is { db: PPPPPDB }}
|
||||||
*/
|
*/
|
||||||
function assertDBPlugin(peer) {
|
function assertDBPlugin(peer) {
|
||||||
if (!peer.db) throw new Error('goals plugin requires ppppp-db plugin')
|
if (!peer.db) throw new Error('"goals" plugin requires "db" plugin')
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -61,7 +61,7 @@ function assertDBPlugin(peer) {
|
||||||
* @returns {asserts peer is { dict: PPPPPDict }}
|
* @returns {asserts peer is { dict: PPPPPDict }}
|
||||||
*/
|
*/
|
||||||
function assertDictPlugin(peer) {
|
function assertDictPlugin(peer) {
|
||||||
if (!peer.dict) throw new Error('goals plugin requires ppppp-dict plugin')
|
if (!peer.dict) throw new Error('"goals" plugin requires "dict" plugin')
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -69,7 +69,7 @@ function assertDictPlugin(peer) {
|
||||||
* @returns {asserts peer is { set: PPPPPSet }}
|
* @returns {asserts peer is { set: PPPPPSet }}
|
||||||
*/
|
*/
|
||||||
function assertSetPlugin(peer) {
|
function assertSetPlugin(peer) {
|
||||||
if (!peer.set) throw new Error('goals plugin requires ppppp-set plugin')
|
if (!peer.set) throw new Error('"goals" plugin requires "set" plugin')
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -11,6 +11,6 @@
|
||||||
"module": "node16",
|
"module": "node16",
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"target": "es2021"
|
"target": "es2022"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue