-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #24 make susi-rali ESM compatible
- Loading branch information
Showing
6 changed files
with
54 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,4 +141,4 @@ class SusiRali { | |
|
||
} | ||
|
||
module.exports = SusiRali; | ||
export default SusiRali; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,37 +3,23 @@ | |
"version": "0.1.5", | ||
"description": "super simple rate limiter nodejs", | ||
"main": "./lib/SusiRali.js", | ||
"type": "module", | ||
"scripts": { | ||
"preinstall": "npm-force-resolutions", | ||
"manual": "mocha --timeout 120000 tests/manual/*.test.js", | ||
"test": "mocha --timeout 120000 tests/*.test.js", | ||
"testS": "mocha --timeout 120000 tests/susi-rali.test.js", | ||
"testP": "mocha --timeout 120000 tests/susi-rali-parallel.test.js", | ||
"cover": "nyc --reporter text --reporter cobertura --reporter html --reporter=lcov --lines 66 mocha --timeout 120000 --exit --unhandled-rejections=strict tests/*.test.js", | ||
"ci-test": "echo linux ci-test&& nyc --reporter text --reporter cobertura --reporter html --reporter=lcov --lines 66 mocha --timeout 120000 --exit --unhandled-rejections=strict tests/*.test.js" | ||
}, | ||
"private": false, | ||
"author": "Boly38 <[email protected]>", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/creharmony/susi-rali.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/creharmony/susi-rali/issues" | ||
}, | ||
"keywords": [ | ||
"node", | ||
"rate", | ||
"limit", | ||
"javascript", | ||
"ratelimiter" | ||
], | ||
"copyright": { | ||
"title": "susi-rali", | ||
"years": [ | ||
2021 | ||
], | ||
"author": "Brice Vandeputte" | ||
}, | ||
"repository": {"type": "git", "url": "https://github.com/creharmony/susi-rali.git"}, | ||
"bugs": { "url": "https://github.com/creharmony/susi-rali/issues"}, | ||
"keywords": ["node", "rate", "limit", "javascript", "ratelimiter"], | ||
"copyright": { "title": "susi-rali", "years": [2021, 2022], "author": "Brice Vandeputte"}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"chai": "^4.3.4", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters