From 00966f3b93a0dfdb314859043dbe2a4743409016 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ren=C3=A9e=20Kooi?= Date: Tue, 13 Aug 2019 10:27:57 +0200 Subject: [PATCH] Use nodejs.util.inspect.custom symbol --- index.js | 2 +- package.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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", -- 2.34.1