express-contextualized-router
Advanced tools
Comparing version 1.3.0 to 1.3.1
import { Router } from 'express'; | ||
import { ContextualizedRouterWithExpressRouter, IContextualizedRouter } from './types'; | ||
export * from './contextCreator'; | ||
export * from './types'; | ||
import { ContextualizedRouterWithExpressRouter, IContextualizedRouter } from './types/index.js'; | ||
export * from './contextCreator.js'; | ||
export * from './types/index.js'; | ||
/** | ||
@@ -6,0 +6,0 @@ * Create a contextualized Router. |
import { NextFunction, Request, Response, Router } from 'express'; | ||
import { RouteParameters, Send } from 'express-serve-static-core'; | ||
import { ParsedQs } from 'qs'; | ||
import { ContextCreator } from '../contextCreator'; | ||
import { ContextCreator } from '../contextCreator.js'; | ||
export type ContextualizedRequest<Context = Record<string, any>, P extends Record<string, any> = {}, ResBody = any, ReqBody = any, ReqQuery extends ParsedQs = any> = Request<P, ResBody, ReqBody, ReqQuery> & { | ||
@@ -6,0 +6,0 @@ context: Context; |
{ | ||
"name": "express-contextualized-router", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"type": "module", | ||
@@ -37,18 +37,18 @@ "exports": { | ||
"devDependencies": { | ||
"@commitlint/config-conventional": "17.4.4", | ||
"@rollup/plugin-typescript": "11.0.0", | ||
"@commitlint/config-conventional": "17.6.1", | ||
"@rollup/plugin-typescript": "11.1.0", | ||
"@types/express": "4.17.17", | ||
"@types/node": "18.15.3", | ||
"@types/node": "18.15.11", | ||
"@types/supertest": "2.0.12", | ||
"@typescript-eslint/eslint-plugin": "5.55.0", | ||
"@typescript-eslint/parser": "5.55.0", | ||
"@vitest/coverage-c8": "0.29.3", | ||
"@typescript-eslint/eslint-plugin": "5.59.0", | ||
"@typescript-eslint/parser": "5.59.0", | ||
"@vitest/coverage-c8": "0.30.1", | ||
"builtin-modules": "3.3.0", | ||
"c8": "7.13.0", | ||
"commitlint": "17.4.4", | ||
"eslint": "8.36.0", | ||
"eslint-config-prettier": "8.7.0", | ||
"commitlint": "17.6.1", | ||
"eslint": "8.38.0", | ||
"eslint-config-prettier": "8.8.0", | ||
"eslint-config-standard-with-typescript": "27.0.1", | ||
"eslint-plugin-import": "2.27.5", | ||
"eslint-plugin-n": "15.6.1", | ||
"eslint-plugin-n": "15.7.0", | ||
"eslint-plugin-node": "11.1.0", | ||
@@ -60,7 +60,7 @@ "eslint-plugin-prettier": "4.2.1", | ||
"lint-staged": "13.1.0", | ||
"prettier": "2.8.4", | ||
"prettier": "2.8.7", | ||
"supertest": "6.3.3", | ||
"typescript": "4.9.5", | ||
"vite": "4.1.4", | ||
"vitest": "0.29.3" | ||
"typescript": "5.0.4", | ||
"vite": "4.2.1", | ||
"vitest": "0.30.1" | ||
}, | ||
@@ -67,0 +67,0 @@ "peerDependencies": { |
@@ -15,4 +15,4 @@ import { describe, it, vi, expect } from 'vitest' | ||
ContextualizedRouter, | ||
} from '..' | ||
import { ContextCreator } from '../contextCreator' | ||
} from '../index.js' | ||
import { ContextCreator } from '../contextCreator.js' | ||
@@ -19,0 +19,0 @@ describe('ContextualizedRouter', () => { |
@@ -11,6 +11,6 @@ import { NextFunction, Router } from 'express' | ||
ContextualizedRequest, | ||
} from './types' | ||
} from './types/index.js' | ||
export * from './contextCreator' | ||
export * from './types' | ||
export * from './contextCreator.js' | ||
export * from './types/index.js' | ||
@@ -17,0 +17,0 @@ const handleVerb = < |
import { NextFunction, Request, Response, Router } from 'express' | ||
import { RouteParameters, Send } from 'express-serve-static-core' | ||
import { ParsedQs } from 'qs' | ||
import { ContextCreator } from '../contextCreator' | ||
import { ContextCreator } from '../contextCreator.js' | ||
@@ -6,0 +6,0 @@ export type ContextualizedRequest< |
@@ -14,3 +14,3 @@ { | ||
"skipLibCheck": true, | ||
"moduleResolution": "node", | ||
"moduleResolution": "node16", | ||
"noImplicitThis": true, | ||
@@ -17,0 +17,0 @@ "noImplicitAny": true, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97398