Skip to content

Commit 6a4eefe

Browse files
committed
chore: update travis and dependencies
1 parent 91d2949 commit 6a4eefe

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
language: node_js
22
sudo: false
33
node_js:
4-
- "0.10"
5-
- "0.12"
6-
- "4"
7-
- "5"
4+
- "6"
5+
- "8"
6+
- "9"
87
after_success:
98
- CODECLIMATE_REPO_TOKEN=b57723fafcf0516f275d6b380cd506fd082ea88d86507eb82c8abd489b9b9a09 node ./node_modules/.bin/codeclimate-test-reporter < coverage/lcov.info

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
"codeclimate-test-reporter": "^0.4.0",
3333
"ioredis": "^3.0.0",
3434
"istanbul": "^0.4.3",
35-
"json-stable-stringify": "^1.0.0",
36-
"mocha": "^3.0.0",
37-
"snazzy": "^6.0.0",
38-
"standard": "^9.0.2"
35+
"safe-stable-stringify": "^1.0.0",
36+
"mocha": "^5.0.0",
37+
"snazzy": "^7.0.0",
38+
"standard": "^11.0.0"
3939
}
4040
}

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ describe('redis-commands', function () {
111111
expect(index('sort', ['key', 'BY', 'hash:*->field'], {
112112
parseExternalKey: true
113113
})).to.eql([0, [2, 6]])
114-
expect(index('sort', ['key', 'BY', 'hash:*->field', 'LIMIT', 2, 3, 'GET', new Buffer('gk'), 'GET', '#', 'Get', 'gh->f*', 'DESC', 'ALPHA', 'STORE', 'store'], {
114+
expect(index('sort', ['key', 'BY', 'hash:*->field', 'LIMIT', 2, 3, 'GET', Buffer.from('gk'), 'GET', '#', 'Get', 'gh->f*', 'DESC', 'ALPHA', 'STORE', 'store'], {
115115
parseExternalKey: true
116116
})).to.eql([0, [2, 6], [7, 2], [11, 2], 15])
117117
})

tools/build.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var fs = require('fs')
22
var path = require('path')
3-
var stringify = require('json-stable-stringify')
3+
var stringify = require('safe-stable-stringify')
44
var commandPath = path.join(__dirname, '..', 'commands.json')
55
var redisCommands = require('../')
66

@@ -54,9 +54,9 @@ redis.command().then(function (res) {
5454
throw new Error('Not all commands (\'' + movableKeys.join('\', \'') + '\') with the "movablekeys" flag are handled in the code')
5555
}
5656

57-
// Use json-stable-stringify instead fo JSON.stringify
57+
// Use safe-stable-stringify instead fo JSON.stringify
5858
// for easier diffing
5959
var content = stringify(commands, { space: ' ' })
6060

61-
fs.writeFile(commandPath, content)
61+
fs.writeFileSync(commandPath, content)
6262
})

0 commit comments

Comments
 (0)