From 83639f151cdf19bb8e115569c88b2336e175ef2e Mon Sep 17 00:00:00 2001 From: Matthew Zipkin Date: Wed, 27 Mar 2019 07:36:22 -0400 Subject: [PATCH] util: fallback for inspect --- lib/utils/index-browser.js | 17 ----------------- lib/utils/index.js | 2 +- package.json | 3 +-- 3 files changed, 2 insertions(+), 20 deletions(-) delete mode 100644 lib/utils/index-browser.js diff --git a/lib/utils/index-browser.js b/lib/utils/index-browser.js deleted file mode 100644 index 4de1817a..00000000 --- a/lib/utils/index-browser.js +++ /dev/null @@ -1,17 +0,0 @@ -/*! - * utils/index.js - utils for bcoin - * Copyright (c) 2014-2017, Christopher Jeffrey (MIT License). - * https://github.com/bcoin-org/bcoin - */ - -'use strict'; - -/** - * @module utils - */ - -exports.binary = require('./binary'); -exports.fixed = require('./fixed'); -exports.util = require('./util'); - -exports.inspectSymbol = 'inspect'; diff --git a/lib/utils/index.js b/lib/utils/index.js index 2ec261eb..7fe86858 100644 --- a/lib/utils/index.js +++ b/lib/utils/index.js @@ -15,4 +15,4 @@ exports.fixed = require('./fixed'); exports.util = require('./util'); const {inspect: {custom}} = require('util'); -exports.inspectSymbol = custom; +exports.inspectSymbol = custom || 'inspect'; diff --git a/package.json b/package.json index a225beec..7110f785 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,6 @@ "./lib/hd/wordlist": "./lib/hd/wordlist-browser.js", "./lib/workers/child": "./lib/workers/child-browser.js", "./lib/workers/parent": "./lib/workers/parent-browser.js", - "./lib/bcoin": "./lib/bcoin-browser.js", - "./lib/utils/index.js": "./lib/utils/index-browser.js" + "./lib/bcoin": "./lib/bcoin-browser.js" } }