@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.
Files changed (51) hide show
  1. package/dist/index.cjs +755 -0
  2. package/dist/index.d.cts +521 -0
  3. package/dist/index.d.mts +521 -0
  4. package/dist/index.mjs +701 -0
  5. package/package.json +15 -10
  6. package/dist/eslint.config.d.ts +0 -2
  7. package/dist/eslint.config.js +0 -38
  8. package/dist/exclusions.d.ts +0 -5
  9. package/dist/exclusions.js +0 -6
  10. package/dist/index.d.ts +0 -1
  11. package/dist/index.js +0 -1
  12. package/dist/lib/weakmap.d.ts +0 -15
  13. package/dist/lib/weakmap.js +0 -77
  14. package/dist/src/__test__/first.d.ts +0 -6
  15. package/dist/src/__test__/first.js +0 -20
  16. package/dist/src/__test__/second.d.ts +0 -6
  17. package/dist/src/__test__/second.js +0 -20
  18. package/dist/src/annotation/controller.d.ts +0 -21
  19. package/dist/src/annotation/controller.js +0 -78
  20. package/dist/src/annotation/index.d.ts +0 -4
  21. package/dist/src/annotation/index.js +0 -4
  22. package/dist/src/annotation/injectable.d.ts +0 -25
  23. package/dist/src/annotation/injectable.js +0 -72
  24. package/dist/src/annotation/middleware.d.ts +0 -9
  25. package/dist/src/annotation/middleware.js +0 -11
  26. package/dist/src/annotation/route.d.ts +0 -47
  27. package/dist/src/annotation/route.js +0 -77
  28. package/dist/src/enum/http.d.ts +0 -68
  29. package/dist/src/enum/http.js +0 -71
  30. package/dist/src/enum/index.d.ts +0 -1
  31. package/dist/src/enum/index.js +0 -1
  32. package/dist/src/helper/error.d.ts +0 -10
  33. package/dist/src/helper/error.js +0 -19
  34. package/dist/src/helper/index.d.ts +0 -4
  35. package/dist/src/helper/index.js +0 -4
  36. package/dist/src/helper/redirect.d.ts +0 -14
  37. package/dist/src/helper/redirect.js +0 -19
  38. package/dist/src/helper/response.d.ts +0 -68
  39. package/dist/src/helper/response.js +0 -90
  40. package/dist/src/helper/sapling.d.ts +0 -101
  41. package/dist/src/helper/sapling.js +0 -153
  42. package/dist/src/html/404.d.ts +0 -4
  43. package/dist/src/html/404.js +0 -14
  44. package/dist/src/html/index.d.ts +0 -1
  45. package/dist/src/html/index.js +0 -1
  46. package/dist/src/index.d.ts +0 -5
  47. package/dist/src/index.js +0 -5
  48. package/dist/src/types.d.ts +0 -21
  49. package/dist/src/types.js +0 -11
  50. package/dist/vite.config.d.ts +0 -2
  51. package/dist/vite.config.js +0 -18
@@ -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
@@ -1,11 +0,0 @@
1
- // all exported types
2
- export const methodResolve = {
3
- GET: "get",
4
- PUT: "put",
5
- POST: "post",
6
- DELETE: "delete",
7
- OPTIONS: "options",
8
- PATCH: "patch",
9
- HEAD: "head",
10
- USE: "use",
11
- };
@@ -1,2 +0,0 @@
1
- declare const _default: import("vite").UserConfig;
2
- export default _default;
@@ -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
- });