@tahminator/sapling 1.5.27 → 1.5.28-beta.7e624925
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +755 -0
- package/dist/index.d.cts +521 -0
- package/dist/index.d.mts +521 -0
- package/dist/index.mjs +701 -0
- package/package.json +15 -10
- package/dist/eslint.config.d.ts +0 -2
- package/dist/eslint.config.js +0 -38
- package/dist/exclusions.d.ts +0 -5
- package/dist/exclusions.js +0 -6
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/lib/weakmap.d.ts +0 -15
- package/dist/lib/weakmap.js +0 -77
- package/dist/src/__test__/first.d.ts +0 -6
- package/dist/src/__test__/first.js +0 -20
- package/dist/src/__test__/second.d.ts +0 -6
- package/dist/src/__test__/second.js +0 -20
- package/dist/src/annotation/controller.d.ts +0 -21
- package/dist/src/annotation/controller.js +0 -78
- package/dist/src/annotation/index.d.ts +0 -4
- package/dist/src/annotation/index.js +0 -4
- package/dist/src/annotation/injectable.d.ts +0 -25
- package/dist/src/annotation/injectable.js +0 -72
- package/dist/src/annotation/middleware.d.ts +0 -9
- package/dist/src/annotation/middleware.js +0 -11
- package/dist/src/annotation/route.d.ts +0 -47
- package/dist/src/annotation/route.js +0 -77
- package/dist/src/enum/http.d.ts +0 -68
- package/dist/src/enum/http.js +0 -71
- package/dist/src/enum/index.d.ts +0 -1
- package/dist/src/enum/index.js +0 -1
- package/dist/src/helper/error.d.ts +0 -10
- package/dist/src/helper/error.js +0 -19
- package/dist/src/helper/index.d.ts +0 -4
- package/dist/src/helper/index.js +0 -4
- package/dist/src/helper/redirect.d.ts +0 -14
- package/dist/src/helper/redirect.js +0 -19
- package/dist/src/helper/response.d.ts +0 -68
- package/dist/src/helper/response.js +0 -90
- package/dist/src/helper/sapling.d.ts +0 -101
- package/dist/src/helper/sapling.js +0 -153
- package/dist/src/html/404.d.ts +0 -4
- package/dist/src/html/404.js +0 -14
- package/dist/src/html/index.d.ts +0 -1
- package/dist/src/html/index.js +0 -1
- package/dist/src/index.d.ts +0 -5
- package/dist/src/index.js +0 -5
- package/dist/src/types.d.ts +0 -21
- package/dist/src/types.js +0 -11
- package/dist/vite.config.d.ts +0 -2
- package/dist/vite.config.js +0 -18
package/dist/src/types.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { NextFunction, Request, Response } from "express";
|
|
2
|
-
export type ExpressRouterMethodKey = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS" | "HEAD" | "USE";
|
|
3
|
-
export type ExpressRouterMethods = Lowercase<ExpressRouterMethodKey>;
|
|
4
|
-
export declare const methodResolve: Record<ExpressRouterMethodKey, ExpressRouterMethods>;
|
|
5
|
-
export type RouteDefinition = {
|
|
6
|
-
/**
|
|
7
|
-
* Express.js HTTP method.
|
|
8
|
-
*/
|
|
9
|
-
method: ExpressRouterMethodKey;
|
|
10
|
-
/**
|
|
11
|
-
* The path to define the route on. Can be a string or RegExp.
|
|
12
|
-
*/
|
|
13
|
-
path: string | RegExp;
|
|
14
|
-
/**
|
|
15
|
-
* The name of the function the `@Route` annotation was applied on.
|
|
16
|
-
*/
|
|
17
|
-
fnName: string;
|
|
18
|
-
};
|
|
19
|
-
export type Class<T> = new (...args: any[]) => T;
|
|
20
|
-
export type HttpHeaders = Record<string, string>;
|
|
21
|
-
export type ExpressMiddlewareFn = ($1: Request, $2: Response, $3: NextFunction) => void;
|
package/dist/src/types.js
DELETED
package/dist/vite.config.d.ts
DELETED
package/dist/vite.config.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
|
|
2
|
-
/// <reference types="vitest/config" />
|
|
3
|
-
import tsconfigPaths from "vite-tsconfig-paths";
|
|
4
|
-
import { defineConfig } from "vitest/config";
|
|
5
|
-
// https://vite.dev/config/
|
|
6
|
-
export default defineConfig({
|
|
7
|
-
plugins: [tsconfigPaths()],
|
|
8
|
-
test: {
|
|
9
|
-
globals: true,
|
|
10
|
-
environment: "jsdom",
|
|
11
|
-
coverage: {
|
|
12
|
-
enabled: true,
|
|
13
|
-
provider: "istanbul",
|
|
14
|
-
reporter: ["lcov"],
|
|
15
|
-
},
|
|
16
|
-
clearMocks: true,
|
|
17
|
-
},
|
|
18
|
-
});
|