redis-eval-mock
Version:
A mock version of Redis EVAL to test Lua scripts
82 lines (81 loc) • 1.99 kB
JSON
{
"name": "redis-eval-mock",
"version": "1.0.1",
"description": "A mock version of Redis EVAL to test Lua scripts",
"keywords": [
"redis",
"lua",
"eval",
"mock",
"test"
],
"repository": {
"type": "git",
"url": "https://github.com/plsmphnx/redis-eval-mock.git"
},
"author": "Microsoft",
"license": "MIT",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"files": [
"interface.lua",
"lib/**/*.js",
"lib/**/*.d.ts",
"!lib/**/*.spec.*"
],
"dependencies": {
"deasync": "^0.1.24",
"lua.vm.js": "^0.0.1",
"msgpack5": "^5.3.2"
},
"peerDependencies": {
"@types/redis": "^2.8.0"
},
"devDependencies": {
"@princjef/tslint-config": "^2.0.1",
"@types/deasync": "^0.1.2",
"@types/jest": "^27.0.3",
"@types/msgpack5": "^3.4.2",
"@types/node": "^12.20.37",
"@types/redis": "^2.8.32",
"@types/redis-mock": "^0.17.0",
"codecov": "^3.8.3",
"jest": "^27.4.3",
"prettier": "^2.5.0",
"pubcop": "^1.0.2",
"redis-evalsha": "^1.1.1",
"redis-mock": "^0.56.3",
"tslint": "^5.20.1",
"typescript": "^4.5.2"
},
"scripts": {
"lint": "tslint --project tsconfig.json --fix",
"lint:verify": "tslint --project tsconfig.json",
"format": "prettier --write \"**/*\"",
"format:verify": "prettier --check \"**/*\"",
"prebuild": "npm run lint && npm run format",
"prebuild:verify": "npm run lint:verify && npm run format:verify",
"build": "tsc",
"build:verify": "tsc",
"pretest": "npm run build",
"pretest:verify": "npm run build:verify",
"test": "jest",
"test:verify": "jest",
"prepublishOnly": "npm run test:verify && pubcop --checks tag branch",
"coverage": "codecov"
},
"jest": {
"roots": [
"lib"
],
"collectCoverage": true,
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 95,
"lines": 95,
"statements": 95
}
}
}
}