Skip to content

Commit

Permalink
chore: syntax fixes for standard@17
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Aug 11, 2022
1 parent f192e5f commit ad90e61
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions bole.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ function stringify (level, name, message, obj) {
function extend (level, name, message, obj) {
const newObj = {
time: individual.fastTime ? Date.now() : new Date().toISOString(),
hostname: hostname,
pid: pid,
level: level,
name: name
hostname,
pid,
level,
name
}

if (message !== undefined) {
Expand Down
2 changes: 1 addition & 1 deletion format.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// consider this a warning about getting obsessive about optimization

var utilformat = require('util').format
const utilformat = require('util').format

function format (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) {
if (a16 !== undefined) {
Expand Down
14 changes: 7 additions & 7 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ const hostname = require('os').hostname()
function mklogobj (name, level, inp, fastTime) {
const out = {
time: fastTime ? Date.now() : new Date().toISOString(),
hostname: hostname,
pid: pid,
level: level,
name: name
hostname,
pid,
level,
name
}

for (const k in inp) {
Expand Down Expand Up @@ -189,7 +189,7 @@ test('test string formatting', (t) => {
const log = bole('strfmt')

bole.output({
level: level,
level,
stream: sink
})

Expand Down Expand Up @@ -292,7 +292,7 @@ test('test request object', (t) => {
method: 'GET',
url: '/foo?bar=baz',
headers: {
host: host,
host,
connection: 'close'
},
remoteAddress: '127.0.0.1',
Expand Down Expand Up @@ -335,7 +335,7 @@ test('test request object with message', (t) => {
method: 'GET',
url: '/foo?bar=baz',
headers: {
host: host,
host,
connection: 'close'
},
remoteAddress: '127.0.0.1',
Expand Down

0 comments on commit ad90e61

Please sign in to comment.