Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / debug / src / node.js
index 5e1f1541a0559331eb48a48b4f2342c6b2d2b515..79bc085cb0230c69aaeb76bbc1374f43ab6414f4 100644 (file)
@@ -15,6 +15,10 @@ exports.formatArgs = formatArgs;
 exports.save = save;
 exports.load = load;
 exports.useColors = useColors;
+exports.destroy = util.deprecate(
+       () => {},
+       'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'
+);
 
 /**
  * Colors.
@@ -244,7 +248,9 @@ const {formatters} = module.exports;
 formatters.o = function (v) {
        this.inspectOpts.colors = this.useColors;
        return util.inspect(v, this.inspectOpts)
-               .replace(/\s*\n\s*/g, ' ');
+               .split('\n')
+               .map(str => str.trim())
+               .join(' ');
 };
 
 /**