]> zoso.dev Git - buffer.git/commitdiff
Use nodejs.util.inspect.custom symbol
authorRenée Kooi <renee@kooi.me>
Tue, 13 Aug 2019 08:27:57 +0000 (10:27 +0200)
committerRenée Kooi <renee@kooi.me>
Tue, 13 Aug 2019 08:27:57 +0000 (10:27 +0200)
index.js
package.json

index 76e41d9d210e1499d8c984b2b3d9e8f0d98e6da2..92a3abbdbd58ae275861a03db8df750c6e739fc4 100644 (file)
--- 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
index 32e3a27519b29a358180004872a4f3501fc1baa4..37733f0c50ee5ebf7953c172a062d2f1163072c1 100644 (file)
@@ -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",