Skip to content

Commit 967fbba

Browse files
dargmueslidanielb2
authored andcommitted
NPM Updates (#64)
* NPM Update + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] added 215 packages from 139 contributors and audited 684 packages in 28.459s found 14 vulnerabilities (4 low, 6 moderate, 4 high) * NPM Audit Fix + [email protected] + [email protected] + [email protected] + [email protected] added 80 packages from 146 contributors, removed 82 packages, updated 59 packages and moved 4 packages in 29.507s fixed 14 of 14 vulnerabilities in 684 scanned packages 4 package updates for 14 vulns involved breaking changes * Node 4 Compat ~ Set dependencies to latest Node 4 compatible versions * Test Fixes ~ Linting fixes ~ Buffer deprecation fix - Explicit deep equality check, which is now default
1 parent ba3fef8 commit 967fbba

File tree

5 files changed

+996
-1262
lines changed

5 files changed

+996
-1262
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
'use strict';
2+
13
module.exports = require('./lib');

lib/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ internals.lengthCompare = function (a, b) {
117117

118118
internals.purdy.prototype.Uint8Array = function (buffer) {
119119

120-
return '<Buffer ' + buffer.slice(0,25).toString('utf8') + ' ... >';
120+
return '<Buffer ' + buffer.slice(0, 25).toString('utf8') + ' ... >';
121121
};
122122

123123

@@ -172,7 +172,7 @@ internals.purdy.prototype.Object = internals.purdy.prototype.process = internals
172172
}
173173
else {
174174
this.indentLevel = this.indentLevel - 1;
175-
return this.colorize('[Object]', 'depth');
175+
return this.colorize('[Object]', 'depth');
176176
}
177177
if (i !== keys.length - 1) {
178178
out = out + ',';
@@ -223,7 +223,7 @@ internals.purdy.prototype.Array = function (array, path, depth) {
223223
}
224224
else {
225225
this.indentLevel = this.indentLevel - 1;
226-
return this.colorize('[Object]', 'depth');
226+
return this.colorize('[Object]', 'depth');
227227
}
228228
if (i !== array.length - 1) {
229229
out = out + ',';
@@ -246,7 +246,7 @@ internals.purdy.prototype.Error = function (err) {
246246
this.settings.plain = true;
247247
const obj = this.Object(err, '', null);
248248
this.settings.plain = plain;
249-
return obj.replace(/^{/, '{ ' + this.colorize(stack, 'error') );
249+
return obj.replace(/^{/, '{ ' + this.colorize(stack, 'error'));
250250
};
251251

252252

@@ -255,7 +255,7 @@ internals.formatStack = function (stack, indentLevel, indent) {
255255
const spaces = internals.spaces((indentLevel) * indent);
256256
let stackArr = stack.split('\n');
257257
const firstLine = stackArr.shift();
258-
stackArr = stackArr.map(function (line) {
258+
stackArr = stackArr.map((line) => {
259259

260260
return spaces + line;
261261
});
@@ -295,7 +295,7 @@ internals.purdy.prototype.Function = function (obj) {
295295
}
296296

297297
const props = this.Object(obj, '', null);
298-
return props.replace(/^{/, '{ ' + this.colorize('[Function' + name + ']', 'function') );
298+
return props.replace(/^{/, '{ ' + this.colorize('[Function' + name + ']', 'function'));
299299
};
300300

301301

0 commit comments

Comments
 (0)