You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
chore: rename files
This commit is contained in:
10
index.js
10
index.js
@@ -2,12 +2,14 @@
|
||||
|
||||
const Commands = require('redis-commands')
|
||||
const Errors = require('redis-errors')
|
||||
const addCommand = require('./lib/addCommand')
|
||||
const RedisClient = require('./lib/client')
|
||||
const addCommand = require('./lib/commands')
|
||||
const unifyOptions = require('./lib/createClient')
|
||||
const Multi = require('./lib/multi')
|
||||
const unifyOptions = require('./lib/unifyOptions')
|
||||
const utils = require('./lib/utils')
|
||||
|
||||
require('./lib/individualCommands')
|
||||
|
||||
RedisClient.debugMode = /\bredis\b/i.test(process.env.NODE_DEBUG)
|
||||
RedisClient.RedisClient = RedisClient
|
||||
RedisClient.Multi = Multi
|
||||
@@ -24,7 +26,3 @@ RedisClient.createClient = function () {
|
||||
Commands.list.forEach((name) => addCommand(RedisClient.prototype, Multi.prototype, name))
|
||||
|
||||
module.exports = RedisClient
|
||||
|
||||
// Add all redis commands / nodeRedis api to the client
|
||||
// TODO: Change the way this is included...
|
||||
require('./lib/individualCommands')
|
||||
|
Reference in New Issue
Block a user