From: Renée Kooi Date: Tue, 13 Aug 2019 08:27:57 +0000 (+0200) Subject: Use nodejs.util.inspect.custom symbol X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=00966f3b93a0dfdb314859043dbe2a4743409016;p=buffer.git Use nodejs.util.inspect.custom symbol --- diff --git a/index.js b/index.js index 76e41d9..92a3abb 100644 --- a/index.js +++ b/index.js @@ -10,7 +10,7 @@ var base64 = require('base64-js') var ieee754 = require('ieee754') -var customInspectSymbol = typeof Symbol === 'function' ? require('inspect-custom-symbol') : null +var customInspectSymbol = typeof Symbol === 'function' ? Symbol.for('nodejs.util.inspect.custom') : null exports.Buffer = Buffer exports.SlowBuffer = SlowBuffer diff --git a/package.json b/package.json index 32e3a27..37733f0 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,7 @@ ], "dependencies": { "base64-js": "^1.0.2", - "ieee754": "^1.1.4", - "inspect-custom-symbol": "^1.1.0" + "ieee754": "^1.1.4" }, "devDependencies": { "airtap": "^2.0.3",