@@ -117,7 +117,7 @@ internals.lengthCompare = function (a, b) {
117
117
118
118
internals . purdy . prototype . Uint8Array = function ( buffer ) {
119
119
120
- return '<Buffer ' + buffer . slice ( 0 , 25 ) . toString ( 'utf8' ) + ' ... >' ;
120
+ return '<Buffer ' + buffer . slice ( 0 , 25 ) . toString ( 'utf8' ) + ' ... >' ;
121
121
} ;
122
122
123
123
@@ -172,7 +172,7 @@ internals.purdy.prototype.Object = internals.purdy.prototype.process = internals
172
172
}
173
173
else {
174
174
this . indentLevel = this . indentLevel - 1 ;
175
- return this . colorize ( '[Object]' , 'depth' ) ;
175
+ return this . colorize ( '[Object]' , 'depth' ) ;
176
176
}
177
177
if ( i !== keys . length - 1 ) {
178
178
out = out + ',' ;
@@ -223,7 +223,7 @@ internals.purdy.prototype.Array = function (array, path, depth) {
223
223
}
224
224
else {
225
225
this . indentLevel = this . indentLevel - 1 ;
226
- return this . colorize ( '[Object]' , 'depth' ) ;
226
+ return this . colorize ( '[Object]' , 'depth' ) ;
227
227
}
228
228
if ( i !== array . length - 1 ) {
229
229
out = out + ',' ;
@@ -246,7 +246,7 @@ internals.purdy.prototype.Error = function (err) {
246
246
this . settings . plain = true ;
247
247
const obj = this . Object ( err , '' , null ) ;
248
248
this . settings . plain = plain ;
249
- return obj . replace ( / ^ { / , '{ ' + this . colorize ( stack , 'error' ) ) ;
249
+ return obj . replace ( / ^ { / , '{ ' + this . colorize ( stack , 'error' ) ) ;
250
250
} ;
251
251
252
252
@@ -255,7 +255,7 @@ internals.formatStack = function (stack, indentLevel, indent) {
255
255
const spaces = internals . spaces ( ( indentLevel ) * indent ) ;
256
256
let stackArr = stack . split ( '\n' ) ;
257
257
const firstLine = stackArr . shift ( ) ;
258
- stackArr = stackArr . map ( function ( line ) {
258
+ stackArr = stackArr . map ( ( line ) => {
259
259
260
260
return spaces + line ;
261
261
} ) ;
@@ -295,7 +295,7 @@ internals.purdy.prototype.Function = function (obj) {
295
295
}
296
296
297
297
const props = this . Object ( obj , '' , null ) ;
298
- return props . replace ( / ^ { / , '{ ' + this . colorize ( '[Function' + name + ']' , 'function' ) ) ;
298
+ return props . replace ( / ^ { / , '{ ' + this . colorize ( '[Function' + name + ']' , 'function' ) ) ;
299
299
} ;
300
300
301
301
0 commit comments