|
1 | 1 | {
|
2 | 2 | "name": "ratelimit-header-parser",
|
3 | 3 | "version": "0.1.0",
|
4 |
| - "description": "Parse RateLimit headers of various forms, including the combined form from draft 7 of the IETF standard, into a normalized format.", |
| 4 | + "description": "Parse `RateLimit` headers of various forms, including the combined form from draft 7 of the IETF standard, into a normalized format.", |
| 5 | + "author": "Nathan Friedly <https://www.nfriedly.com/>", |
| 6 | + "license": "MIT", |
| 7 | + "homepage": "https://github.com/express-rate-limit/ratelimit-header-parser#readme", |
| 8 | + "repository": "https://github.com/express-rate-limit/ratelimit-header-parser", |
| 9 | + "keywords": [ |
| 10 | + "ratelimit", |
| 11 | + "x-ratelimit-limit", |
| 12 | + "headers", |
| 13 | + "parser", |
| 14 | + "express-rate-limit", |
| 15 | + "ratelimit-policy" |
| 16 | + ], |
5 | 17 | "type": "module",
|
6 | 18 | "exports": {
|
7 | 19 | ".": {
|
|
26 | 38 | "license.md",
|
27 | 39 | "changelog.md"
|
28 | 40 | ],
|
| 41 | + "engines": { |
| 42 | + "node": ">= 16" |
| 43 | + }, |
29 | 44 | "scripts": {
|
30 | 45 | "clean": "del-cli dist/ coverage/ *.log *.tmp *.bak *.tgz",
|
31 |
| - "build:cjs": "esbuild --platform=node --bundle --target=es2019 --format=cjs --outfile=dist/index.cjs source/index.ts", |
32 |
| - "build:esm": "esbuild --platform=node --bundle --target=es2019 --format=esm --outfile=dist/index.mjs source/index.ts", |
33 |
| - "build:types": "dts-bundle-generator --out-file=dist/index.d.ts source/index.ts && cp dist/index.d.ts dist/index.d.cts && cp dist/index.d.ts dist/index.d.mts", |
34 |
| - "compile": "run-s clean build:*", |
| 46 | + "build": "pkgroll --src source/", |
| 47 | + "compile": "run-s clean build", |
35 | 48 | "lint:code": "xo",
|
36 | 49 | "lint:rest": "prettier --ignore-unknown --check .",
|
37 | 50 | "lint": "run-s lint:*",
|
38 |
| - "format:code": "npm run lint:code -- --fix", |
39 |
| - "format:rest": "npm run lint:rest -- --write .", |
| 51 | + "format:code": "xo --fix", |
| 52 | + "format:rest": "prettier --ignore-unknown --write .", |
40 | 53 | "format": "run-s format:*",
|
41 |
| - "test:lib": "jest", |
| 54 | + "test:lib": "jest --config config/jest.json", |
42 | 55 | "test": "run-s lint test:lib",
|
43 | 56 | "pre-commit": "lint-staged",
|
44 | 57 | "prepare": "run-s compile && husky install config/husky"
|
45 | 58 | },
|
46 |
| - "repository": { |
47 |
| - "type": "git", |
48 |
| - "url": "git+https://github.com/express-rate-limit/ratelimit-header-parser.git" |
49 |
| - }, |
50 |
| - "keywords": [ |
51 |
| - "ratelimit", |
52 |
| - "x-ratelimit-limit", |
53 |
| - "headers", |
54 |
| - "parser", |
55 |
| - "express-rate-limit", |
56 |
| - "ratelimit-policy" |
57 |
| - ], |
58 |
| - "author": "Nathan Friedly <https://www.nfriedly.com/>", |
59 |
| - "license": "MIT", |
60 |
| - "bugs": { |
61 |
| - "url": "https://github.com/express-rate-limit/ratelimit-header-parser/issues" |
62 |
| - }, |
63 |
| - "homepage": "https://github.com/express-rate-limit/ratelimit-header-parser#readme", |
64 | 59 | "devDependencies": {
|
65 |
| - "@express-rate-limit/prettier": "^1.0.0", |
66 |
| - "@express-rate-limit/tsconfig": "^1.0.0", |
67 |
| - "@jest/globals": "^29.6.3", |
68 |
| - "@jest/types": "^29.6.3", |
69 |
| - "@types/node": "^20.5.1", |
70 |
| - "del-cli": "^5.0.0", |
71 |
| - "dts-bundle-generator": "^8.0.1", |
72 |
| - "esbuild": "^0.19.2", |
73 |
| - "husky": "^8.0.3", |
74 |
| - "jest": "^29.6.3", |
75 |
| - "lint-staged": "^14.0.1", |
76 |
| - "npm-run-all": "^4.1.5", |
77 |
| - "ts-jest": "^29.1.1", |
78 |
| - "typescript": "^5.1.6", |
79 |
| - "xo": "^0.56.0" |
80 |
| - }, |
81 |
| - "jest": { |
82 |
| - "preset": "ts-jest/presets/default-esm", |
83 |
| - "collectCoverage": true, |
84 |
| - "collectCoverageFrom": [ |
85 |
| - "source/**/*.ts" |
86 |
| - ], |
87 |
| - "testTimeout": 30000, |
88 |
| - "testMatch": [ |
89 |
| - "**/test/*-test.ts" |
90 |
| - ], |
91 |
| - "moduleFileExtensions": [ |
92 |
| - "js", |
93 |
| - "jsx", |
94 |
| - "json", |
95 |
| - "ts", |
96 |
| - "tsx" |
97 |
| - ], |
98 |
| - "moduleNameMapper": { |
99 |
| - "^(\\.{1,2}/.*)\\.js$": "$1" |
100 |
| - } |
| 60 | + "@express-rate-limit/prettier": "1.1.0", |
| 61 | + "@express-rate-limit/tsconfig": "1.0.0", |
| 62 | + "@jest/globals": "29.6.3", |
| 63 | + "@jest/types": "29.6.3", |
| 64 | + "@types/node": "20.5.1", |
| 65 | + "del-cli": "5.0.0", |
| 66 | + "dts-bundle-generator": "8.0.1", |
| 67 | + "esbuild": "0.19.2", |
| 68 | + "husky": "8.0.3", |
| 69 | + "jest": "29.6.3", |
| 70 | + "lint-staged": "14.0.1", |
| 71 | + "npm-run-all": "4.1.5", |
| 72 | + "pkgroll": "1.11.0", |
| 73 | + "ts-jest": "29.1.1", |
| 74 | + "tsx": "3.12.7", |
| 75 | + "typescript": "5.1.6", |
| 76 | + "xo": "0.56.0" |
101 | 77 | },
|
102 | 78 | "xo": {
|
103 | 79 | "prettier": true,
|
|
116 | 92 | }
|
117 | 93 | }
|
118 | 94 | ],
|
119 |
| - "ignores": ["examples/"] |
| 95 | + "ignores": [ |
| 96 | + "examples/" |
| 97 | + ] |
120 | 98 | },
|
121 | 99 | "prettier": "@express-rate-limit/prettier",
|
122 | 100 | "lint-staged": {
|
|
0 commit comments