@tsed/ajv 6.102.5 → 6.102.8-rc.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.
package/lib/cjs/index.js CHANGED
@@ -1,11 +1,18 @@
1
1
  "use strict";
2
+ /**
3
+ * @file Automatically generated by barrelsby.
4
+ */
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./errors/AjvValidationError"), exports);
5
- (0, tslib_1.__exportStar)(require("./services/AjvService"), exports);
6
- (0, tslib_1.__exportStar)(require("./services/Ajv"), exports);
7
- (0, tslib_1.__exportStar)(require("./decorators/keyword"), exports);
8
- (0, tslib_1.__exportStar)(require("./interfaces/KeywordMethods"), exports);
9
7
  (0, tslib_1.__exportStar)(require("./decorators/formats"), exports);
8
+ (0, tslib_1.__exportStar)(require("./decorators/keyword"), exports);
9
+ (0, tslib_1.__exportStar)(require("./errors/AjvValidationError"), exports);
10
10
  (0, tslib_1.__exportStar)(require("./interfaces/FormatsMethods"), exports);
11
+ (0, tslib_1.__exportStar)(require("./interfaces/IAjvSettings"), exports);
12
+ (0, tslib_1.__exportStar)(require("./interfaces/KeywordMethods"), exports);
13
+ (0, tslib_1.__exportStar)(require("./interfaces/interfaces"), exports);
14
+ (0, tslib_1.__exportStar)(require("./services/Ajv"), exports);
15
+ (0, tslib_1.__exportStar)(require("./services/AjvService"), exports);
16
+ (0, tslib_1.__exportStar)(require("./utils/defaultErrorFormatter"), exports);
17
+ (0, tslib_1.__exportStar)(require("./utils/getPath"), exports);
11
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,2EAA4C;AAC5C,qEAAsC;AACtC,8DAA+B;AAC/B,oEAAqC;AACrC,2EAA4C;AAC5C,oEAAqC;AACrC,2EAA4C","sourcesContent":["export * from \"./errors/AjvValidationError\";\nexport * from \"./services/AjvService\";\nexport * from \"./services/Ajv\";\nexport * from \"./decorators/keyword\";\nexport * from \"./interfaces/KeywordMethods\";\nexport * from \"./decorators/formats\";\nexport * from \"./interfaces/FormatsMethods\";\n\nimport {IAjvSettings} from \"./interfaces/IAjvSettings\";\n\ndeclare global {\n namespace TsED {\n interface Configuration {\n // @ts-ignore\n ajv?: IAjvSettings;\n }\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oEAAqC;AACrC,oEAAqC;AACrC,2EAA4C;AAC5C,2EAA4C;AAC5C,yEAA0C;AAC1C,2EAA4C;AAC5C,uEAAwC;AACxC,8DAA+B;AAC/B,qEAAsC;AACtC,6EAA8C;AAC9C,+DAAgC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./decorators/formats\";\nexport * from \"./decorators/keyword\";\nexport * from \"./errors/AjvValidationError\";\nexport * from \"./interfaces/FormatsMethods\";\nexport * from \"./interfaces/IAjvSettings\";\nexport * from \"./interfaces/KeywordMethods\";\nexport * from \"./interfaces/interfaces\";\nexport * from \"./services/Ajv\";\nexport * from \"./services/AjvService\";\nexport * from \"./utils/defaultErrorFormatter\";\nexport * from \"./utils/getPath\";\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/interfaces/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["import {IAjvSettings} from \"./IAjvSettings\";\n\ndeclare global {\n namespace TsED {\n interface Configuration {\n // @ts-ignore\n ajv?: IAjvSettings;\n }\n }\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
package/lib/esm/index.js CHANGED
@@ -1,8 +1,15 @@
1
- export * from "./errors/AjvValidationError";
2
- export * from "./services/AjvService";
3
- export * from "./services/Ajv";
4
- export * from "./decorators/keyword";
5
- export * from "./interfaces/KeywordMethods";
6
- export * from "./decorators/formats";
7
- export * from "./interfaces/FormatsMethods";
1
+ /**
2
+ * @file Automatically generated by barrelsby.
3
+ */
4
+ export * from "./decorators/formats.js";
5
+ export * from "./decorators/keyword.js";
6
+ export * from "./errors/AjvValidationError.js";
7
+ export * from "./interfaces/FormatsMethods.js";
8
+ export * from "./interfaces/IAjvSettings.js";
9
+ export * from "./interfaces/KeywordMethods.js";
10
+ export * from "./interfaces/interfaces.js";
11
+ export * from "./services/Ajv.js";
12
+ export * from "./services/AjvService.js";
13
+ export * from "./utils/defaultErrorFormatter.js";
14
+ export * from "./utils/getPath.js";
8
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC","sourcesContent":["export * from \"./errors/AjvValidationError\";\nexport * from \"./services/AjvService\";\nexport * from \"./services/Ajv\";\nexport * from \"./decorators/keyword\";\nexport * from \"./interfaces/KeywordMethods\";\nexport * from \"./decorators/formats\";\nexport * from \"./interfaces/FormatsMethods\";\n\nimport {IAjvSettings} from \"./interfaces/IAjvSettings\";\n\ndeclare global {\n namespace TsED {\n interface Configuration {\n // @ts-ignore\n ajv?: IAjvSettings;\n }\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./decorators/formats\";\nexport * from \"./decorators/keyword\";\nexport * from \"./errors/AjvValidationError\";\nexport * from \"./interfaces/FormatsMethods\";\nexport * from \"./interfaces/IAjvSettings\";\nexport * from \"./interfaces/KeywordMethods\";\nexport * from \"./interfaces/interfaces\";\nexport * from \"./services/Ajv\";\nexport * from \"./services/AjvService\";\nexport * from \"./utils/defaultErrorFormatter\";\nexport * from \"./utils/getPath\";\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/interfaces/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["import {IAjvSettings} from \"./IAjvSettings\";\n\ndeclare global {\n namespace TsED {\n interface Configuration {\n // @ts-ignore\n ajv?: IAjvSettings;\n }\n }\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -3,10 +3,10 @@ import { deepClone, getValue, nameOf, prototypeOf, setValue } from "@tsed/core";
3
3
  import { Constant, Inject, Injectable } from "@tsed/di";
4
4
  import { getJsonSchema, JsonEntityStore, JsonSchema } from "@tsed/schema";
5
5
  import Ajv from "ajv";
6
- import { AjvValidationError } from "../errors/AjvValidationError";
7
- import { defaultErrorFormatter } from "../utils/defaultErrorFormatter";
8
- import "./Ajv";
9
- import { getPath } from "../utils/getPath";
6
+ import { AjvValidationError } from "../errors/AjvValidationError.js";
7
+ import { defaultErrorFormatter } from "../utils/defaultErrorFormatter.js";
8
+ import "./Ajv.js";
9
+ import { getPath } from "../utils/getPath.js";
10
10
  let AjvService = class AjvService {
11
11
  async validate(value, options) {
12
12
  let { schema, type, collectionType, ...additionalOptions } = this.mapOptions(options);
@@ -1,4 +1,4 @@
1
- import { getPath } from "./getPath";
1
+ import { getPath } from "./getPath.js";
2
2
  export function defaultErrorFormatter(error) {
3
3
  const value = JSON.stringify(error.data === undefined ? "undefined" : error.data);
4
4
  const join = (list) => list.filter(Boolean).join("").trim();
@@ -1,15 +1,14 @@
1
- export * from "./errors/AjvValidationError";
2
- export * from "./services/AjvService";
3
- export * from "./services/Ajv";
4
- export * from "./decorators/keyword";
5
- export * from "./interfaces/KeywordMethods";
1
+ /**
2
+ * @file Automatically generated by barrelsby.
3
+ */
6
4
  export * from "./decorators/formats";
5
+ export * from "./decorators/keyword";
6
+ export * from "./errors/AjvValidationError";
7
7
  export * from "./interfaces/FormatsMethods";
8
- import { IAjvSettings } from "./interfaces/IAjvSettings";
9
- declare global {
10
- namespace TsED {
11
- interface Configuration {
12
- ajv?: IAjvSettings;
13
- }
14
- }
15
- }
8
+ export * from "./interfaces/IAjvSettings";
9
+ export * from "./interfaces/KeywordMethods";
10
+ export * from "./interfaces/interfaces";
11
+ export * from "./services/Ajv";
12
+ export * from "./services/AjvService";
13
+ export * from "./utils/defaultErrorFormatter";
14
+ export * from "./utils/getPath";
@@ -0,0 +1,8 @@
1
+ import { IAjvSettings } from "./IAjvSettings";
2
+ declare global {
3
+ namespace TsED {
4
+ interface Configuration {
5
+ ajv?: IAjvSettings;
6
+ }
7
+ }
8
+ }
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@tsed/ajv",
3
- "version": "6.102.5",
3
+ "version": "6.102.8-rc.2",
4
4
  "description": "AJV package for Ts.ED framework",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/cjs/index.js",
7
+ "module": "./lib/esm/index.js",
7
8
  "typings": "./lib/types/index.d.ts",
8
9
  "exports": {
9
10
  "types": "./lib/types/index.d.ts",
@@ -12,33 +13,37 @@
12
13
  "default": "./lib/esm/index.js"
13
14
  },
14
15
  "scripts": {
15
- "build": "yarn run build:esm && yarn run build:cjs",
16
+ "build": "yarn barrels && yarn run build:esm && yarn run build:cjs",
16
17
  "build:cjs": "tsc --build tsconfig.compile.json",
17
- "build:esm": "tsc --build tsconfig.compile.esm.json"
18
+ "build:esm": "tsc --build tsconfig.compile.esm.json",
19
+ "barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\""
18
20
  },
19
21
  "dependencies": {
20
22
  "ajv-formats": "1.5.1",
21
23
  "tslib": "2.2.0"
22
24
  },
23
25
  "devDependencies": {
24
- "@tsed/core": "6.102.5",
25
- "@tsed/di": "6.102.5",
26
- "@tsed/exceptions": "6.102.5",
27
- "@tsed/schema": "6.102.5",
26
+ "@tsed/core": "6.102.8-rc.2",
27
+ "@tsed/di": "6.102.8-rc.2",
28
+ "@tsed/exceptions": "6.102.8-rc.2",
29
+ "@tsed/schema": "6.102.8-rc.2",
28
30
  "ajv": "8.9.0"
29
31
  },
30
32
  "peerDependencies": {
31
- "@tsed/core": "^6.102.5",
32
- "@tsed/di": "^6.102.5",
33
- "@tsed/exceptions": "^6.102.5",
34
- "@tsed/schema": "^6.102.5",
33
+ "@tsed/core": "^6.102.8-rc.2",
34
+ "@tsed/di": "^6.102.8-rc.2",
35
+ "@tsed/exceptions": "^6.102.8-rc.2",
36
+ "@tsed/schema": "^6.102.8-rc.2",
35
37
  "ajv": ">=8.9.0"
36
38
  },
37
39
  "repository": "https://github.com/tsedio/tsed",
38
40
  "bugs": {
39
41
  "url": "https://github.com/tsedio/tsed/issues"
40
42
  },
41
- "homepage": "https://github.com/tsedio/tsed/tree/production/packages/specs/ajv",
43
+ "homepage": "https://github.com/tsedio/tsed/tree/rc/packages/specs/ajv",
42
44
  "author": "Romain Lenzotti",
43
- "license": "MIT"
45
+ "license": "MIT",
46
+ "publishConfig": {
47
+ "tag": "rc"
48
+ }
44
49
  }