diff --git a/lib/index.js b/lib/index.js index e5a849a..6a06bae 100644 --- a/lib/index.js +++ b/lib/index.js @@ -53,7 +53,7 @@ const Obz = require('obz') * @returns {asserts peer is { db: PPPPPDB }} */ 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 }} */ 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 }} */ 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') } /** diff --git a/tsconfig.json b/tsconfig.json index bd2acd5..cc6e7af 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,6 +11,6 @@ "module": "node16", "skipLibCheck": true, "strict": true, - "target": "es2021" + "target": "es2022" } } \ No newline at end of file