util: fallback for inspect
This commit is contained in:
parent
df4e287817
commit
83639f151c
@ -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';
|
||||
@ -15,4 +15,4 @@ exports.fixed = require('./fixed');
|
||||
exports.util = require('./util');
|
||||
|
||||
const {inspect: {custom}} = require('util');
|
||||
exports.inspectSymbol = custom;
|
||||
exports.inspectSymbol = custom || 'inspect';
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user