@tsed/platform-params 8.37.1 → 8.38.0-beta.2

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.
@@ -1,4 +1,4 @@
1
- import { ProviderScope, injectable, injector } from "@tsed/di";
1
+ import { injectable, injector, ProviderScope } from "@tsed/di";
2
2
  import { JsonMethodStore, JsonParameterStore } from "@tsed/schema";
3
3
  import { ParamValidationError } from "../errors/ParamValidationError.js";
4
4
  import { ParseExpressionPipe } from "../pipes/ParseExpressionPipe.js";
@@ -9,7 +9,7 @@ import { ParseExpressionPipe } from "../pipes/ParseExpressionPipe.js";
9
9
  export class PlatformParams {
10
10
  getPipes(param) {
11
11
  const get = (pipe) => {
12
- return injector().getProvider(pipe).priority || 0;
12
+ return injector().providers.get(pipe).priority || 0;
13
13
  };
14
14
  const sort = (p1, p2) => (get(p1) < get(p2) ? -1 : get(p1) > get(p2) ? 1 : 0);
15
15
  const map = (token) => injector().get(token);
@@ -26,7 +26,7 @@ export class PlatformParams {
26
26
  const inj = injector();
27
27
  const store = JsonMethodStore.fromMethod(token, propertyKey);
28
28
  const getArguments = this.compile(store);
29
- const provider = inj.getProvider(token);
29
+ const provider = inj.providers.get(token);
30
30
  return async (scope) => {
31
31
  const container = provider.scope === ProviderScope.REQUEST ? scope.$ctx.container : undefined;
32
32
  const [instance, args] = await Promise.all([inj.invoke(token, { locals: container }), getArguments(scope)]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/platform-params",
3
- "version": "8.37.1",
3
+ "version": "8.38.0-beta.2",
4
4
  "description": "Params module for Ts.ED Framework",
5
5
  "source": "./src/index.ts",
6
6
  "type": "module",
@@ -26,13 +26,13 @@
26
26
  "tslib": ">=2.7.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@tsed/barrels": "8.37.1",
30
- "@tsed/core": "8.37.1",
31
- "@tsed/di": "8.37.1",
32
- "@tsed/exceptions": "8.37.1",
33
- "@tsed/json-mapper": "8.37.1",
34
- "@tsed/schema": "8.37.1",
35
- "@tsed/typescript": "8.37.1",
29
+ "@tsed/barrels": "8.38.0-beta.2",
30
+ "@tsed/core": "8.38.0-beta.2",
31
+ "@tsed/di": "8.38.0-beta.2",
32
+ "@tsed/exceptions": "8.38.0-beta.2",
33
+ "@tsed/json-mapper": "8.38.0-beta.2",
34
+ "@tsed/schema": "8.38.0-beta.2",
35
+ "@tsed/typescript": "8.38.0-beta.2",
36
36
  "typescript": "6.0.2",
37
37
  "vitest": "4.1.4"
38
38
  },
@@ -66,5 +66,8 @@
66
66
  },
67
67
  "homepage": "https://github.com/tsedio/tsed/tree/production/packages/platform/platform-params",
68
68
  "author": "Romain Lenzotti",
69
- "license": "MIT"
69
+ "license": "MIT",
70
+ "publishConfig": {
71
+ "tag": "beta"
72
+ }
70
73
  }