UNPKG

redlock

Version:

A node.js redlock implementation for distributed redis locks

76 lines (75 loc) 2.18 kB
{ "name": "redlock", "version": "v5.0.0-beta.2", "description": "A node.js redlock implementation for distributed redis locks", "license": "MIT", "author": { "name": "Mike Marcacci", "email": "mike.marcacci@gmail.com" }, "repository": "https://github.com/mike-marcacci/node-redlock.git", "homepage": "https://github.com/mike-marcacci/node-redlock#readme", "bugs": "https://github.com/mike-marcacci/node-redlock/issues", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js" } }, "keywords": [ "nodejs", "redlock", "distributed", "lock", "redis" ], "files": [ "dist/index.d.ts", "dist/esm/package.json", "dist/esm/index.js", "dist/esm/index.js.map", "dist/cjs/package.json", "dist/cjs/index.js", "dist/cjs/index.js.map" ], "engines": { "node": ">=12" }, "browserslist": "node >= 12", "ava": { "nodeArguments": [ "--experimental-specifier-resolution=node" ] }, "devDependencies": { "@types/ioredis": "^4.28.8", "@types/node": "^17.0.21", "@typescript-eslint/eslint-plugin": "^5.13.0", "@typescript-eslint/parser": "^5.13.0", "ava": "^4.1.0", "eslint": "^8.10.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-prettier": "^4.0.0", "ioredis": "^4.28.5", "nodemon": "^2.0.15", "prettier": "^2.5.1", "typescript": "~4.6.2" }, "scripts": { "format": "prettier --list-different --write '**/*.{json,yml,md,ts}'", "lint": "prettier -c '**/*.{json,yml,md,ts}' && eslint src --ext ts", "build": "rm -f dist/**/*.{js,js.map,d.ts} && tsc && tsc -p tsconfig.cjs.json", "build:development": "rm -f dist/**/*.{js,js.map,d.ts} && tsc --watch", "test": "cd dist/esm && ava --verbose *.test.js", "test:development": "cd dist/esm && ava --verbose --watch *.test.js", "prepare": "yarn build", "prepublishOnly": "yarn install && yarn lint && yarn build" }, "dependencies": { "node-abort-controller": "^3.0.1" }, "type": "module" }