diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
commit | bbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch) | |
tree | c58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/vinyl/index.js | |
parent | 003fb34971cf63466184351b4db5f7c67df4f444 (diff) |
update packages
Diffstat (limited to 'node_modules/vinyl/index.js')
-rw-r--r-- | node_modules/vinyl/index.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/node_modules/vinyl/index.js b/node_modules/vinyl/index.js index beaba3b32..d99094e21 100644 --- a/node_modules/vinyl/index.js +++ b/node_modules/vinyl/index.js @@ -1,6 +1,7 @@ 'use strict'; var path = require('path'); +var util = require('util'); var isBuffer = require('buffer').Buffer.isBuffer; var clone = require('clone'); @@ -157,6 +158,11 @@ File.prototype.inspect = function() { return '<File ' + inspect.join(' ') + '>'; }; +// Newer Node.js versions use this symbol for custom inspection. +if (util.inspect.custom) { + File.prototype[util.inspect.custom] = File.prototype.inspect; +} + File.isCustomProp = function(key) { return builtInFields.indexOf(key) === -1; }; |