Skip to content

Commit 87c69af

Browse files
committed
fix: fixed husky and pre-commit
1 parent 7485ebd commit 87c69af

File tree

1 file changed

+25
-22
lines changed

1 file changed

+25
-22
lines changed

package.json

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,10 @@
11
{
22
"name": "koa-ratelimit",
3-
"version": "5.1.0",
43
"description": "Rate limiter middleware for koa",
5-
"keywords": [
6-
"koa",
7-
"middleware",
8-
"ratelimiter",
9-
"ratelimit",
10-
"rate"
11-
],
12-
"homepage": "https://github.com/koajs/ratelimit#readme",
4+
"version": "5.1.0",
135
"bugs": {
146
"url": "https://github.com/koajs/ratelimit/issues"
157
},
16-
"repository": "koajs/ratelimit",
17-
"license": "MIT",
18-
"files": [
19-
"index.js",
20-
"limiter/memory.js",
21-
"limiter/redis.js"
22-
],
23-
"scripts": {
24-
"ci": "rimraf .nyc_output && npm run lint && npm run test-cov",
25-
"lint": "eslint .",
26-
"test": "mocha -r should --exit",
27-
"test-cov": "nyc npm run test"
28-
},
298
"dependencies": {
309
"async-ratelimiter": "^1.5.2",
3110
"ms": "^2.1.3"
@@ -36,6 +15,7 @@
3615
"eslint-config-standard": "^17.1.0",
3716
"eslint-plugin-import": "^2.31.0",
3817
"eslint-plugin-node": "^11.1.0",
18+
"husky": "^9.1.7",
3919
"ioredis": "^5.6.1",
4020
"koa": "^3.0.0",
4121
"mocha": "^11.5.0",
@@ -46,5 +26,28 @@
4626
},
4727
"engines": {
4828
"node": ">= 18"
29+
},
30+
"files": [
31+
"index.js",
32+
"limiter/memory.js",
33+
"limiter/redis.js"
34+
],
35+
"homepage": "https://github.com/koajs/ratelimit#readme",
36+
"keywords": [
37+
"koa",
38+
"middleware",
39+
"rate",
40+
"ratelimit",
41+
"ratelimiter"
42+
],
43+
"license": "MIT",
44+
"repository": "koajs/ratelimit",
45+
"scripts": {
46+
"ci": "rimraf .nyc_output && npm run lint && npm run test-cov",
47+
"lint": "eslint .",
48+
"prepare": "husky",
49+
"pretest": "npm run lint",
50+
"test": "mocha -r should --exit",
51+
"test-cov": "nyc npm run test"
4952
}
5053
}

0 commit comments

Comments
 (0)