Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
thetutlage committed Dec 23, 2024

Verified

This commit was signed with the committer’s verified signature.
aduh95 Antoine du Hamel
1 parent e887aee commit 0766ed9
Showing 6 changed files with 70 additions and 63 deletions.
2 changes: 2 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { configPkg } from '@adonisjs/eslint-config'
export default configPkg()
123 changes: 64 additions & 59 deletions package.json
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@
"name": "@adonisjs/limiter",
"description": "Rate limiting package for AdonisJS framework",
"version": "2.3.2",
"main": "build/index.js",
"type": "module",
"files": [
"build",
@@ -29,51 +28,47 @@
"postcompile": "npm run copy:templates",
"build": "npm run compile",
"prepublishOnly": "npm run build",
"lint": "eslint . --ext=.ts",
"lint": "eslint",
"format": "prettier --write .",
"release": "np",
"version": "npm run build",
"sync-labels": "github-label-sync --labels .github/labels.json adonisjs/session",
"quick:test": "cross-env NODE_DEBUG=adonisjs:limiter node --enable-source-maps --loader=ts-node/esm bin/test.ts"
"quick:test": "cross-env NODE_DEBUG=adonisjs:limiter node --import=ts-node-maintained/register/esm --enable-source-maps bin/test.ts"
},
"devDependencies": {
"@adonisjs/assembler": "^7.7.0",
"@adonisjs/core": "^6.12.1",
"@adonisjs/eslint-config": "^1.3.0",
"@adonisjs/i18n": "^2.1.1",
"@adonisjs/lucid": "^21.1.1",
"@adonisjs/prettier-config": "^1.3.0",
"@adonisjs/assembler": "^7.8.2",
"@adonisjs/core": "^6.17.0",
"@adonisjs/eslint-config": "^2.0.0-beta.7",
"@adonisjs/i18n": "^2.2.0",
"@adonisjs/lucid": "^21.5.1",
"@adonisjs/prettier-config": "^1.4.0",
"@adonisjs/redis": "^9.1.0",
"@adonisjs/tsconfig": "^1.3.0",
"@japa/assert": "^3.0.0",
"@adonisjs/tsconfig": "^1.4.0",
"@japa/assert": "^4.0.0",
"@japa/expect-type": "^2.0.2",
"@japa/file-system": "^2.3.0",
"@japa/file-system": "^2.3.1",
"@japa/runner": "^3.1.4",
"@swc/core": "^1.7.4",
"@types/node": "^22.0.2",
"@swc/core": "^1.10.1",
"@types/node": "^22.10.2",
"@types/sinon": "^17.0.3",
"better-sqlite3": "^11.1.2",
"c8": "^10.1.2",
"better-sqlite3": "^11.7.0",
"c8": "^10.1.3",
"copyfiles": "^2.4.1",
"cross-env": "^7.0.3",
"del-cli": "^5.0.0",
"dotenv": "^16.4.5",
"eslint": "^8.44.0",
"github-label-sync": "^2.3.1",
"husky": "^9.1.4",
"luxon": "^3.4.3",
"mysql2": "^3.11.0",
"np": "^10.0.7",
"pg": "^8.12.0",
"prettier": "^3.3.3",
"sinon": "^18.0.0",
"del-cli": "^6.0.0",
"dotenv": "^16.4.7",
"eslint": "^9.17.0",
"luxon": "^3.5.0",
"mysql2": "^3.11.5",
"pg": "^8.13.1",
"prettier": "^3.4.2",
"sinon": "^19.0.2",
"timekeeper": "^2.3.1",
"ts-node": "^10.9.1",
"tsup": "^8.2.3",
"typescript": "^5.5.4"
"ts-node-maintained": "^10.9.4",
"tsup": "^8.3.5",
"typescript": "^5.7.2"
},
"dependencies": {
"rate-limiter-flexible": "^5.0.3"
"rate-limiter-flexible": "^5.0.4"
},
"peerDependencies": {
"@adonisjs/core": "^6.12.1",
@@ -102,33 +97,9 @@
"adonis",
"rate-limiter"
],
"eslintConfig": {
"extends": "@adonisjs/eslint-config/package"
},
"prettier": "@adonisjs/prettier-config",
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"publishConfig": {
"access": "public",
"tag": "latest"
},
"np": {
"message": "chore(release): %s",
"tag": "latest",
"branch": "main",
"anyBranch": false
},
"c8": {
"reporter": [
"text",
"html"
],
"exclude": [
"tests/**"
]
"provenance": true
},
"tsup": {
"entry": [
@@ -142,7 +113,41 @@
"clean": true,
"format": "esm",
"dts": false,
"sourcemap": true,
"sourcemap": false,
"target": "esnext"
}
},
"release-it": {
"git": {
"requireCleanWorkingDir": true,
"requireUpstream": true,
"commitMessage": "chore(release): ${version}",
"tagAnnotation": "v${version}",
"push": true,
"tagName": "v${version}"
},
"github": {
"release": true
},
"npm": {
"publish": true,
"skipChecks": true
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": {
"name": "angular"
}
}
}
},
"c8": {
"reporter": [
"text",
"html"
],
"exclude": [
"tests/**"
]
},
"prettier": "@adonisjs/prettier-config"
}
2 changes: 1 addition & 1 deletion src/errors.ts
Original file line number Diff line number Diff line change
@@ -7,8 +7,8 @@
* file that was distributed with this source code.
*/

import { Exception } from '@poppinss/utils'
import type { I18n } from '@adonisjs/i18n'
import { Exception } from '@adonisjs/core/exceptions'
import type { HttpContext } from '@adonisjs/core/http'

import type { LimiterResponse } from './response.js'
2 changes: 1 addition & 1 deletion src/stores/bridge.ts
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
* file that was distributed with this source code.
*/

import string from '@poppinss/utils/string'
import string from '@adonisjs/core/helpers/string'
import {
RateLimiterRes,
type RateLimiterAbstract,
2 changes: 1 addition & 1 deletion src/stores/database.ts
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
*/

import string from '@adonisjs/core/helpers/string'
import { RuntimeException } from '@poppinss/utils'
import { RuntimeException } from '@adonisjs/core/exceptions'
import type { QueryClientContract } from '@adonisjs/lucid/types/database'
import { RateLimiterMySQL, RateLimiterPostgres } from 'rate-limiter-flexible'

2 changes: 1 addition & 1 deletion stubs/main.ts
Original file line number Diff line number Diff line change
@@ -7,6 +7,6 @@
* file that was distributed with this source code.
*/

import { getDirname } from '@poppinss/utils'
import { getDirname } from '@adonisjs/core/helpers'

export const stubsRoot = getDirname(import.meta.url)

0 comments on commit 0766ed9

Please sign in to comment.