Skip to content

Commit d2a5af2

Browse files
authoredJan 12, 2022
fix: export as named exports default and rateLimit (#285)
- see also #280
1 parent bcb373c commit d2a5af2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+803
-235
lines changed
 

‎package-lock.json

+335-208
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
},
5151
"scripts": {
5252
"clean": "del-cli dist/ coverage/ *.log *.tmp *.bak *.tgz",
53-
"build:cjs": "esbuild --bundle --format=cjs --outfile=dist/index.cjs --footer:js=\"module.exports = rateLimit;\" source/index.ts",
53+
"build:cjs": "esbuild --bundle --format=cjs --outfile=dist/index.cjs --footer:js=\"module.exports = rateLimit; module.exports.default = rateLimit; module.exports.rateLimit = rateLimit;\" source/index.ts",
5454
"build:esm": "esbuild --bundle --format=esm --outfile=dist/index.mjs source/index.ts",
5555
"build:types": "dts-bundle-generator --out-file=dist/index.d.ts source/index.ts",
5656
"compile": "run-s clean build:*",
@@ -61,7 +61,7 @@
6161
"autofix:rest": "prettier --ignore-path .gitignore --ignore-unknown --write .",
6262
"autofix": "run-s autofix:*",
6363
"test:lib": "cross-env NODE_OPTIONS=--experimental-vm-modules jest",
64-
"test:ext": "npm pack && cd test/external/ && bash run-all-tests",
64+
"test:ext": "cd test/external/ && bash run-all-tests",
6565
"test": "run-s lint test:*",
6666
"pre-commit": "lint-staged",
6767
"prepare": "run-s compile && husky install config/husky"
@@ -73,18 +73,18 @@
7373
"@jest/globals": "^27.4.6",
7474
"@types/express": "^4.17.13",
7575
"@types/jest": "^27.4.0",
76-
"@types/node": "^16.11.17",
76+
"@types/node": "^16.11.19",
7777
"@types/supertest": "^2.0.11",
7878
"cross-env": "^7.0.3",
7979
"del-cli": "^4.0.1",
80-
"dts-bundle-generator": "^6.3.0",
81-
"esbuild": "^0.14.10",
80+
"dts-bundle-generator": "^6.4.0",
81+
"esbuild": "^0.14.11",
8282
"express": "^4.17.1",
8383
"husky": "^7.0.4",
8484
"jest": "^27.4.7",
85-
"lint-staged": "^12.1.5",
85+
"lint-staged": "^12.1.7",
8686
"npm-run-all": "^4.1.5",
87-
"supertest": "^6.1.6",
87+
"supertest": "^6.2.1",
8888
"ts-jest": "^27.1.1",
8989
"ts-node": "^10.4.0",
9090
"typescript": "^4.5.2",

0 commit comments

Comments
 (0)
Please sign in to comment.