Skip to content

Commit

Permalink
Merge pull request #36 from strongloop/update-deps
Browse files Browse the repository at this point in the history
Update deps (semver-major)
  • Loading branch information
sam-github authored May 6, 2019
2 parents 34784e0 + 57ae830 commit d5822e6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 15 deletions.
5 changes: 0 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
language: node_js
node_js:
- '0.10'
- '0.12'
- '4'
- '5'
- '6'
- '8'
- '10'
- '11'
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
},
"license": "MIT",
"devDependencies": {
"debug": "^2.1.2",
"tap": "^1.3.2"
"debug": "^4.1.1",
"tap": "^13.1.2"
},
"dependencies": {
"nan": "^2.13.2"
Expand Down
2 changes: 1 addition & 1 deletion test/test-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function accept(m) {
}

accept('string');
accept(Buffer('buffer'));
accept(Buffer.from('buffer'));
accept(undefined);
accept(null);
accept({some: 5});
Expand Down
6 changes: 2 additions & 4 deletions test/test-openlog.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ tap.test(function(t) {
t.doesNotThrow(function() {
syslog.open('June', o.LOG_PERROR + o.LOG_PID, f.LOG_LOCAL1);
syslog.upto('LOG_DEBUG');
t.comment('Expect on stderr a greeting to June with a PID:');
syslog.log('LOG_DEBUG', 'Hi, June', function() {
syslog.log('LOG_DEBUG', 'expected on stderr with a PID', function() {
syslog.open('Leonie', o.LOG_PERROR, f.LOG_LOCAL2);
syslog.upto('LOG_DEBUG');
t.comment('Expect on stderr a greeting to Leonie without a PID:');
syslog.debug('Hi, %s', 'Leonie');
syslog.debug('Expected on stderr %s a PID', 'without');
});
}, 'open and log');
t.end();
Expand Down
6 changes: 3 additions & 3 deletions test/test-syslog.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function expect(l, m) {
currentMask, ++count, l, Buffer.isBuffer(m) ? 'buf' : 'str');

if (Buffer.isBuffer(m)) {
m = Buffer(prefix + m);
m = Buffer.from(prefix + m);
} else {
m = prefix + m;
}
Expand All @@ -62,9 +62,9 @@ function masked(l, m) {
setmask(0xff);

expect('LOG_CRIT', 'message');
expect('LOG_CRIT', Buffer('message'));
expect('LOG_CRIT', Buffer.from('message'));
expect(l.LOG_CRIT, 'message');
expect(l.LOG_CRIT, Buffer('message'));
expect(l.LOG_CRIT, Buffer.from('message'));
expect(l.LOG_DEBUG, 'debug');

setmask(syslog.logUpto('LOG_INFO'));
Expand Down

0 comments on commit d5822e6

Please sign in to comment.