express-valued-middleware
Advanced tools
Comparing version 0.6.1-alpha.1 to 0.6.1-alpha.2
@@ -0,1 +1,3 @@ | ||
## [0.6.1-alpha.2](https://github.com/soul-codes/express-valued-middleware/compare/0.6.1-alpha.1...0.6.1-alpha.2) (2023-08-16) | ||
## [0.6.1-alpha.1](https://github.com/soul-codes/express-valued-middleware/compare/0.6.0...0.6.1-alpha.1) (2023-08-16) | ||
@@ -2,0 +4,0 @@ |
@@ -17,2 +17,3 @@ import { dirname, resolve } from "path"; | ||
}, | ||
resolver: "./jest.resolver.cjs", | ||
}; |
@@ -1,2 +0,2 @@ | ||
export * from "./ValueYieldingMiddleware"; | ||
export * from "./ValueYieldingMiddleware.js"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { ValuedMiddleware } from "./@types/ValueYieldingMiddleware"; | ||
import { ValuedMiddleware } from "./@types/ValueYieldingMiddleware.js"; | ||
interface MiddlewareAggregation<T extends any[]> { | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,6 +0,6 @@ | ||
export * from "./@types"; | ||
export * from "./aggregate"; | ||
export * from "./map"; | ||
export * from "./of"; | ||
export * from "./rename"; | ||
export * from "./@types/index.js"; | ||
export * from "./aggregate.js"; | ||
export * from "./map.js"; | ||
export * from "./of.js"; | ||
export * from "./rename.js"; | ||
//# sourceMappingURL=index.d.ts.map |
import { NextFunction, Response } from "express"; | ||
import { Either } from "fp-ts/lib/Either"; | ||
import { ValuedMiddleware } from "./@types/ValueYieldingMiddleware"; | ||
import { Either } from "fp-ts/lib/Either.js"; | ||
import { ValuedMiddleware } from "./@types/ValueYieldingMiddleware.js"; | ||
/** | ||
@@ -5,0 +5,0 @@ * Creates a value-yielding middleware combinator that maps the result value of |
import { Request } from "express"; | ||
import { RequestHandlerWithName } from "./@types/RequestHandlerWithName"; | ||
import { ValuedMiddleware } from "./@types/ValueYieldingMiddleware"; | ||
import { RequestHandlerWithName } from "./@types/RequestHandlerWithName.js"; | ||
import { ValuedMiddleware } from "./@types/ValueYieldingMiddleware.js"; | ||
/** | ||
@@ -5,0 +5,0 @@ * Lifts a "dirty" request-decorating middleware into a value-yielding |
@@ -1,2 +0,2 @@ | ||
import { ValuedMiddleware } from "./@types/ValueYieldingMiddleware"; | ||
import { ValuedMiddleware } from "./@types/ValueYieldingMiddleware.js"; | ||
export type RenameCombinator = <T>(m: ValuedMiddleware<T>) => ValuedMiddleware<T>; | ||
@@ -3,0 +3,0 @@ /** |
{ | ||
"name": "express-valued-middleware", | ||
"version": "0.6.1-alpha.1", | ||
"version": "0.6.1-alpha.2", | ||
"description": "Composable value-yielding middleware creator and combinators for Express.", | ||
@@ -41,7 +41,7 @@ "keywords": [ | ||
"import-sort-style-module": "^6.0.0", | ||
"jest": "^26.6.3", | ||
"jest": "^29.6.2", | ||
"prettier": "^2.0.5", | ||
"prettier-plugin-import-sort": "^0.0.5", | ||
"release-it": "^13.7.0", | ||
"ts-jest": "^24.2.0", | ||
"ts-jest": "^29.1.1", | ||
"tslint": "^6.1.3", | ||
@@ -48,0 +48,0 @@ "tslint-etc": "^1.13.7", |
@@ -1,1 +0,1 @@ | ||
export * from "./ValueYieldingMiddleware"; | ||
export * from "./ValueYieldingMiddleware.js"; |
import { Request, RequestHandler } from "express"; | ||
import { ValuedMiddleware } from "./@types/ValueYieldingMiddleware"; | ||
import { of } from "./of"; | ||
import { ValuedMiddleware } from "./@types/ValueYieldingMiddleware.js"; | ||
import { of } from "./of.js"; | ||
@@ -6,0 +6,0 @@ interface MiddlewareAggregation<T extends any[]> { |
@@ -1,5 +0,5 @@ | ||
export * from "./@types"; | ||
export * from "./aggregate"; | ||
export * from "./map"; | ||
export * from "./of"; | ||
export * from "./rename"; | ||
export * from "./@types/index.js"; | ||
export * from "./aggregate.js"; | ||
export * from "./map.js"; | ||
export * from "./of.js"; | ||
export * from "./rename.js"; |
import { NextFunction, Request, Response } from "express"; | ||
import { Either } from "fp-ts/lib/Either"; | ||
import { Either } from "fp-ts/lib/Either.js"; | ||
import { RequestHandlerWithName } from "./@types/RequestHandlerWithName"; | ||
import { ValuedMiddleware } from "./@types/ValueYieldingMiddleware"; | ||
import { of } from "./of"; | ||
import { RequestHandlerWithName } from "./@types/RequestHandlerWithName.js"; | ||
import { ValuedMiddleware } from "./@types/ValueYieldingMiddleware.js"; | ||
import { of } from "./of.js"; | ||
@@ -8,0 +8,0 @@ /** |
import { Request, RequestHandler } from "express"; | ||
import { RequestHandlerWithName } from "./@types/RequestHandlerWithName"; | ||
import { ValuedMiddleware } from "./@types/ValueYieldingMiddleware"; | ||
import { RequestHandlerWithName } from "./@types/RequestHandlerWithName.js"; | ||
import { ValuedMiddleware } from "./@types/ValueYieldingMiddleware.js"; | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { ValuedMiddleware } from "./@types/ValueYieldingMiddleware"; | ||
import { of } from "./of"; | ||
import { ValuedMiddleware } from "./@types/ValueYieldingMiddleware.js"; | ||
import { of } from "./of.js"; | ||
@@ -4,0 +4,0 @@ export type RenameCombinator = <T>( |
import { aggregate, of } from "@lib"; | ||
import { mockNext, mockRequest, mockResponse } from "./utils"; | ||
import { mockNext, mockRequest, mockResponse } from "./utils/index.js"; | ||
@@ -5,0 +5,0 @@ describe("aggregate", () => { |
import { MapError, map, of } from "@lib"; | ||
import { RequestHandler } from "express"; | ||
import { left, right } from "fp-ts/lib/Either"; | ||
import { pipe } from "fp-ts/lib/function"; | ||
import { left, right } from "fp-ts/lib/Either.js"; | ||
import { pipe } from "fp-ts/lib/function.js"; | ||
import { mockNext, mockRequest, mockResponse } from "./utils"; | ||
import { mockNext, mockRequest, mockResponse } from "./utils/index.js"; | ||
@@ -8,0 +8,0 @@ describe("map", () => { |
import { of } from "@lib"; | ||
import { RequestHandler } from "express"; | ||
import { mockNext, mockRequest, mockResponse } from "./utils"; | ||
import { mockNext, mockRequest, mockResponse } from "./utils/index.js"; | ||
@@ -6,0 +6,0 @@ describe("of", () => { |
import { of, rename } from "@lib"; | ||
import { pipe } from "fp-ts/lib/function"; | ||
import { pipe } from "fp-ts/lib/function.js"; | ||
import { mockNext, mockRequest, mockResponse } from "./utils"; | ||
import { mockNext, mockRequest, mockResponse } from "./utils/index.js"; | ||
@@ -6,0 +6,0 @@ describe("rename", () => { |
@@ -7,3 +7,3 @@ { | ||
"paths": { | ||
"@lib": ["src/lib"] | ||
"@lib": ["src/lib/index.js"] | ||
} | ||
@@ -10,0 +10,0 @@ }, |
@@ -1,1 +0,1 @@ | ||
export * from "./mocks"; | ||
export * from "./mocks.js"; |
import { ValuedMiddleware, map } from "@lib"; | ||
import { ExactType, expectType } from "@soul-codes-dev/typetools/test"; | ||
import { ExactType, expectType } from "@soul-codes-dev/typetools/test.js"; | ||
import { Request } from "express"; | ||
import { left, right } from "fp-ts/lib/Either"; | ||
import { pipe } from "fp-ts/lib/function"; | ||
import { left, right } from "fp-ts/lib/Either.js"; | ||
import { pipe } from "fp-ts/lib/function.js"; | ||
@@ -7,0 +7,0 @@ declare const useNumber: ValuedMiddleware<number>; |
@@ -5,3 +5,3 @@ { | ||
"paths": { | ||
"@lib": ["./src/lib"] | ||
"@lib": ["./src/lib/index.js"] | ||
} | ||
@@ -8,0 +8,0 @@ }, |
{ | ||
"compilerOptions": { | ||
"target": "es6", | ||
"module": "ES2015", | ||
"moduleResolution": "node", | ||
"module": "ES2022", | ||
"moduleResolution": "NodeNext", | ||
"strict": true, | ||
@@ -11,11 +11,5 @@ "outDir": "lib", | ||
"declarationMap": true, | ||
"types": ["node"], | ||
"plugins": [ | ||
{ | ||
"transform": "@soul-codes-dev/ts-transform-static-resolve-path", | ||
"after": true | ||
} | ||
] | ||
"types": ["node"] | ||
}, | ||
"include": ["src/lib"] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
40729
54
770