diff --git a/error.js b/error.js index ee22b5b..447b1a2 100644 --- a/error.js +++ b/error.js @@ -1,4 +1,4 @@ -const Interrupt = require('interrupt') +const { Interrupt } = require('interrupt') module.exports = Interrupt.create('Strata.Error', { BRANCH_BAD_HASH: 'branch load failed hash validation', diff --git a/sheaf.js b/sheaf.js index 9a8fc42..39a5624 100644 --- a/sheaf.js +++ b/sheaf.js @@ -19,7 +19,7 @@ const fileSystem = require('fs') const fs = require('fs').promises // Return the first non null-like value. -const coalesce = require('extant') +const { coalesce } = require('extant') // An `async`/`await` work queue. const Turnstile = require('turnstile') diff --git a/storage.js b/storage.js index 4f1241c..2f0b258 100644 --- a/storage.js +++ b/storage.js @@ -1,4 +1,4 @@ -const coalesce = require('extant') +const { coalesce } = require('extant') class Storage { static options (options) {