Skip to content

Commit

Permalink
chore: update travis and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
BridgeAR committed Feb 24, 2018
1 parent 91d2949 commit 6a4eefe
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
language: node_js
sudo: false
node_js:
- "0.10"
- "0.12"
- "4"
- "5"
- "6"
- "8"
- "9"
after_success:
- CODECLIMATE_REPO_TOKEN=b57723fafcf0516f275d6b380cd506fd082ea88d86507eb82c8abd489b9b9a09 node ./node_modules/.bin/codeclimate-test-reporter < coverage/lcov.info
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"codeclimate-test-reporter": "^0.4.0",
"ioredis": "^3.0.0",
"istanbul": "^0.4.3",
"json-stable-stringify": "^1.0.0",
"mocha": "^3.0.0",
"snazzy": "^6.0.0",
"standard": "^9.0.2"
"safe-stable-stringify": "^1.0.0",
"mocha": "^5.0.0",
"snazzy": "^7.0.0",
"standard": "^11.0.0"
}
}
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ describe('redis-commands', function () {
expect(index('sort', ['key', 'BY', 'hash:*->field'], {
parseExternalKey: true
})).to.eql([0, [2, 6]])
expect(index('sort', ['key', 'BY', 'hash:*->field', 'LIMIT', 2, 3, 'GET', new Buffer('gk'), 'GET', '#', 'Get', 'gh->f*', 'DESC', 'ALPHA', 'STORE', 'store'], {
expect(index('sort', ['key', 'BY', 'hash:*->field', 'LIMIT', 2, 3, 'GET', Buffer.from('gk'), 'GET', '#', 'Get', 'gh->f*', 'DESC', 'ALPHA', 'STORE', 'store'], {
parseExternalKey: true
})).to.eql([0, [2, 6], [7, 2], [11, 2], 15])
})
Expand Down
6 changes: 3 additions & 3 deletions tools/build.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var fs = require('fs')
var path = require('path')
var stringify = require('json-stable-stringify')
var stringify = require('safe-stable-stringify')
var commandPath = path.join(__dirname, '..', 'commands.json')
var redisCommands = require('../')

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

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

fs.writeFile(commandPath, content)
fs.writeFileSync(commandPath, content)
})

0 comments on commit 6a4eefe

Please sign in to comment.