redis-abstraction 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redis-abstraction",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "A Redis client pool with abstraction to different Redis libraries.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,7 +13,7 @@
13
13
  "clean-build:linux": "rm -rf ./dist/",
14
14
  "clean-build:windows": "rmdir /s /q .\\dist\\",
15
15
  "test-run": "nyc --reporter=html --reporter=text mocha -r ts-node/register ./tests/**/*.ts",
16
- "test": "npm run build && npm run test-run",
16
+ "test": "npm run build && npm run test-run && cd integration-test && npm test && cd ..",
17
17
  "build": "(npm run clean-build || node -v) && tsc && npm run copy-files && npm run docs",
18
18
  "redisstop": "docker stop TestCentralStore && ping 127.0.0.1 -c 3",
19
19
  "redisstart": "(npm run redisstop || docker -v ) && docker run --name TestCentralStore -v ${PWD}:\"/var/lib/luatest\" -p 6379:6379 -itd --rm redis:latest",
@@ -84,7 +84,7 @@ class RedisClientPool {
84
84
  }
85
85
  const transactionContext = redisClient.multi();
86
86
  for (const cmd of commands) {
87
- const commandName = ((_a = cmd.shift()) !== null && _a !== void 0 ? _a : "").toLowerCase();
87
+ const commandName = ((_a = cmd.shift()) !== null && _a !== void 0 ? _a : "").toUpperCase();
88
88
  // @ts-ignore
89
89
  transactionContext[commandName](...cmd);
90
90
  }