@tsed/platform-middlewares 6.102.7 → 6.102.8-rc.1

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.
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -1,6 +1,6 @@
1
1
  import { decorateMethodsOf, decoratorTypeOf, DecoratorTypes, StoreFn, UnsupportedDecoratorType, useDecorators } from "@tsed/core";
2
- import { AuthOptions } from "./authOptions";
3
- import { UseBefore } from "./useBefore";
2
+ import { AuthOptions } from "./authOptions.js";
3
+ import { UseBefore } from "./useBefore.js";
4
4
  /**
5
5
  * Use custom authentication strategy on your endpoint.
6
6
  *
@@ -1,5 +1,5 @@
1
1
  import { decorateMethodsOf, decoratorTypeOf, DecoratorTypes, UnsupportedDecoratorType } from "@tsed/core";
2
- import { UseBefore } from "./useBefore";
2
+ import { UseBefore } from "./useBefore.js";
3
3
  /**
4
4
  * Mounts the specified middleware function or functions at the specified path: the middleware function is executed when
5
5
  * the base of the requested path matches `path.
package/lib/esm/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  // decorators
2
- export * from "./decorators/middleware";
3
- export * from "./decorators/authOptions";
4
- export * from "./decorators/use";
5
- export * from "./decorators/useAfter";
6
- export * from "./decorators/useAuth";
7
- export * from "./decorators/useBefore";
8
- export * from "./decorators/useBeforeEach";
2
+ export * from "./decorators/middleware.js";
3
+ export * from "./decorators/authOptions.js";
4
+ export * from "./decorators/use.js";
5
+ export * from "./decorators/useAfter.js";
6
+ export * from "./decorators/useAuth.js";
7
+ export * from "./decorators/useBefore.js";
8
+ export * from "./decorators/useBeforeEach.js";
9
9
  // domain
10
- export * from "./domain/MiddlewareMethods";
11
- export * from "./domain/PlatformMiddlewareSettings";
10
+ export * from "./domain/MiddlewareMethods.js";
11
+ export * from "./domain/PlatformMiddlewareSettings.js";
12
12
  // utils
13
- export * from "./utils/getMiddlewaresForHook";
13
+ export * from "./utils/getMiddlewaresForHook.js";
14
14
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -1,4 +1,4 @@
1
- import { HTTP_METHODS } from "../constants";
1
+ import { HTTP_METHODS } from "../constants.js";
2
2
  export function mapUseOptions(args) {
3
3
  let method = undefined;
4
4
  let path = undefined;
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@tsed/platform-middlewares",
3
- "version": "6.102.7",
3
+ "version": "6.102.8-rc.1",
4
4
  "description": "Middlewares module for Ts.ED Framework",
5
5
  "private": false,
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/cjs/index.js",
8
+ "module": "./lib/esm/index.js",
8
9
  "typings": "./lib/types/index.d.ts",
9
10
  "exports": {
10
11
  "types": "./lib/types/index.d.ts",
@@ -21,20 +22,20 @@
21
22
  "tslib": "2.2.0"
22
23
  },
23
24
  "devDependencies": {
24
- "@tsed/core": "6.102.7",
25
- "@tsed/di": "6.102.7",
26
- "@tsed/schema": "6.102.7"
25
+ "@tsed/core": "6.102.8-rc.1",
26
+ "@tsed/di": "6.102.8-rc.1",
27
+ "@tsed/schema": "6.102.8-rc.1"
27
28
  },
28
29
  "peerDependencies": {
29
- "@tsed/core": "^6.102.7",
30
- "@tsed/di": "^6.102.7",
31
- "@tsed/schema": "^6.102.7"
30
+ "@tsed/core": "^6.102.8-rc.1",
31
+ "@tsed/di": "^6.102.8-rc.1",
32
+ "@tsed/schema": "^6.102.8-rc.1"
32
33
  },
33
34
  "repository": "https://github.com/tsedio/tsed",
34
35
  "bugs": {
35
36
  "url": "https://github.com/tsedio/tsed/issues"
36
37
  },
37
- "homepage": "https://github.com/tsedio/tsed/tree/production/packages/platform/platform-middlewares",
38
+ "homepage": "https://github.com/tsedio/tsed/tree/rc/packages/platform/platform-middlewares",
38
39
  "author": "Romain Lenzotti",
39
40
  "license": "MIT"
40
41
  }