@tsed/ajv 8.37.0 → 8.38.0-beta.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.
@@ -1,5 +1,5 @@
1
1
  import { Ajv } from "ajv";
2
- import { ProviderScope, constant, inject, injectable, injector } from "@tsed/di";
2
+ import { constant, inject, injectable, injector, ProviderScope } from "@tsed/di";
3
3
  import AjvErrors from "ajv-errors";
4
4
  import AjvFormats from "ajv-formats";
5
5
  import { cleanObject } from "@tsed/core";
@@ -9,7 +9,7 @@ function getHandler(key, service) {
9
9
  }
10
10
  }
11
11
  function getKeywordProviders() {
12
- return injector().getProviders("ajv:keyword");
12
+ return injector().providers.getMany("ajv:keyword");
13
13
  }
14
14
  function bindKeywords() {
15
15
  return getKeywordProviders().map((provider) => {
@@ -26,7 +26,7 @@ function bindKeywords() {
26
26
  });
27
27
  }
28
28
  function getFormatsProviders() {
29
- return injector().getProviders("ajv:formats");
29
+ return injector().providers.getMany("ajv:formats");
30
30
  }
31
31
  function getFormats() {
32
32
  return getFormatsProviders().map((provider) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/ajv",
3
- "version": "8.37.0",
3
+ "version": "8.38.0-beta.1",
4
4
  "description": "AJV package for Ts.ED framework",
5
5
  "source": "./src/index.ts",
6
6
  "type": "module",
@@ -29,12 +29,12 @@
29
29
  "tslib": ">=2.7.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@tsed/barrels": "8.37.0",
33
- "@tsed/core": "8.37.0",
34
- "@tsed/di": "8.37.0",
35
- "@tsed/exceptions": "8.37.0",
36
- "@tsed/schema": "8.37.0",
37
- "@tsed/typescript": "8.37.0",
32
+ "@tsed/barrels": "8.38.0-beta.1",
33
+ "@tsed/core": "8.38.0-beta.1",
34
+ "@tsed/di": "8.38.0-beta.1",
35
+ "@tsed/exceptions": "8.38.0-beta.1",
36
+ "@tsed/schema": "8.38.0-beta.1",
37
+ "@tsed/typescript": "8.38.0-beta.1",
38
38
  "ajv": "^8.17.1",
39
39
  "typescript": "6.0.2",
40
40
  "vite": "7.3.2",
@@ -68,5 +68,8 @@
68
68
  },
69
69
  "homepage": "https://github.com/tsedio/tsed/tree/production/packages/specs/ajv",
70
70
  "author": "Romain Lenzotti",
71
- "license": "MIT"
71
+ "license": "MIT",
72
+ "publishConfig": {
73
+ "tag": "beta"
74
+ }
72
75
  }