Skip to content

Commit

Permalink
fix: upgrade packages to get rid of npm deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffijoe committed Dec 21, 2024
1 parent aa2417e commit 00cbe47
Show file tree
Hide file tree
Showing 7 changed files with 5,842 additions and 5,202 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ jobs:
- name: Build
run: npm run build

- name: Lint
- if: ${{ matrix.version == 'current' }}
name: Lint
run: npm run lint

- name: Test
Expand Down
10,995 changes: 5,814 additions & 5,181 deletions package-lock.json

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,32 +39,32 @@
},
"homepage": "https://github.com/jeffijoe/awilix-express",
"dependencies": {
"awilix-router-core": "^1.6.1",
"tslib": "^2.6.2"
"awilix-router-core": "^2.1.0",
"tslib": "^2.8.1"
},
"devDependencies": {
"@babel/core": "^7.23.7",
"@babel/plugin-proposal-decorators": "^7.23.7",
"@babel/preset-env": "^7.23.8",
"@types/express": "^4.17.21",
"@babel/core": "^7.26.0",
"@babel/plugin-proposal-decorators": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@types/express": "^5.0.0",
"@types/glob": "^8.1.0",
"@types/jest": "^29.5.11",
"@types/node": "^20.11.0",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.2",
"@types/rimraf": "^4.0.5",
"@typescript-eslint/eslint-plugin": "^6.18.1",
"@typescript-eslint/parser": "^6.18.1",
"@typescript-eslint/eslint-plugin": "^8.18.1",
"@typescript-eslint/parser": "^8.18.1",
"assert-request": "^1.0.6",
"awilix": "^10.0.1",
"awilix": "^12.0.4",
"babel-jest": "^29.7.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"express": "^4.18.2",
"express": "^4.21.2",
"jest": "^29.7.0",
"prettier": "^3.1.1",
"rimraf": "^5.0.5",
"semantic-release": "^22.0.12",
"ts-jest": "^29.1.1",
"typescript": "^5.3.3"
"prettier": "^3.4.2",
"rimraf": "^6.0.1",
"semantic-release": "^24.2.0",
"ts-jest": "^29.2.5",
"typescript": "^5.7.2"
},
"jest": {
"testEnvironment": "node",
Expand Down
1 change: 1 addition & 0 deletions src/__tests__/controller.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { createContainer, asFunction } from 'awilix'
import { route, GET, createController } from '../'
import { AddressInfo } from 'net'

// eslint-disable-next-line @typescript-eslint/no-require-imports
const AssertRequest = require('assert-request')

describe('controller registration', () => {
Expand Down
2 changes: 2 additions & 0 deletions src/__tests__/integration.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import * as Express from 'express'
import { scopePerRequest, makeInvoker, makeClassInvoker } from '../'
import { createContainer, asClass, asFunction } from 'awilix'

// eslint-disable-next-line @typescript-eslint/no-require-imports
const AssertRequest = require('assert-request')

class TestService {
Expand Down
7 changes: 5 additions & 2 deletions src/controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { IOptions } from 'glob'
import {
rollUpState,
findControllers,
Expand All @@ -7,6 +6,7 @@ import {
IStateAndTarget,
IAwilixControllerBuilder,
ClassOrFunctionReturning,
FindControllersOptions,
} from 'awilix-router-core'
import { makeInvoker } from './invokers'
import { Router } from 'express'
Expand Down Expand Up @@ -47,7 +47,10 @@ export function controller(
* @param pattern
* @param opts
*/
export function loadControllers(pattern: string, opts?: IOptions): Router {
export function loadControllers(
pattern: string,
opts?: FindControllersOptions,
): Router {
const router = Router()
findControllers(pattern, {
...opts,
Expand Down
2 changes: 1 addition & 1 deletion src/invokers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from 'awilix'
import { isClass } from 'awilix/lib/utils'
import { NextFunction, Request, Response } from 'express'
import assert = require('assert')
import * as assert from 'assert'

/**
* Creates either a function invoker or a class invoker, based on whether
Expand Down

0 comments on commit 00cbe47

Please sign in to comment.