@orion-js/schema 3.5.0 → 3.6.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.
- package/lib/fieldTypes/index.d.ts +10 -10
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -3
- package/package.json +2 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
array: import("
|
|
3
|
-
plainObject: import("
|
|
4
|
-
string: import("
|
|
5
|
-
date: import("
|
|
6
|
-
integer: import("
|
|
7
|
-
number: import("
|
|
8
|
-
ID: import("
|
|
9
|
-
boolean: import("
|
|
10
|
-
email: import("
|
|
11
|
-
blackbox: import("
|
|
2
|
+
array: import("..").FieldType;
|
|
3
|
+
plainObject: import("..").FieldType;
|
|
4
|
+
string: import("..").FieldType;
|
|
5
|
+
date: import("..").FieldType;
|
|
6
|
+
integer: import("..").FieldType;
|
|
7
|
+
number: import("..").FieldType;
|
|
8
|
+
ID: import("..").FieldType;
|
|
9
|
+
boolean: import("..").FieldType;
|
|
10
|
+
email: import("..").FieldType;
|
|
11
|
+
blackbox: import("..").FieldType;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
package/lib/index.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ import ValidationError from './ValidationError';
|
|
|
3
3
|
import getValidationErrors from './getValidationErrors';
|
|
4
4
|
import isValid from './isValid';
|
|
5
5
|
import getFieldType from './getValidationErrors/getError/getFieldType';
|
|
6
|
-
import fieldType from './fieldType';
|
|
7
6
|
import clean from './clean';
|
|
8
7
|
import cleanKey from './cleanKey';
|
|
9
8
|
import validateKey from './validateKey';
|
|
10
9
|
import dotGetSchema from './dotGetSchema';
|
|
11
10
|
import createEnum from './fieldTypes/enum';
|
|
12
|
-
export { validate, ValidationError, getValidationErrors, isValid, getFieldType,
|
|
11
|
+
export { validate, ValidationError, getValidationErrors, isValid, getFieldType, clean, cleanKey, dotGetSchema, validateKey, createEnum };
|
|
13
12
|
export * from './types';
|
|
13
|
+
export * from './fieldType';
|
package/lib/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.createEnum = exports.validateKey = exports.dotGetSchema = exports.cleanKey = exports.clean = exports.
|
|
20
|
+
exports.createEnum = exports.validateKey = exports.dotGetSchema = exports.cleanKey = exports.clean = exports.getFieldType = exports.isValid = exports.getValidationErrors = exports.ValidationError = exports.validate = void 0;
|
|
21
21
|
const validate_1 = __importDefault(require("./validate"));
|
|
22
22
|
exports.validate = validate_1.default;
|
|
23
23
|
const ValidationError_1 = __importDefault(require("./ValidationError"));
|
|
@@ -28,8 +28,6 @@ const isValid_1 = __importDefault(require("./isValid"));
|
|
|
28
28
|
exports.isValid = isValid_1.default;
|
|
29
29
|
const getFieldType_1 = __importDefault(require("./getValidationErrors/getError/getFieldType"));
|
|
30
30
|
exports.getFieldType = getFieldType_1.default;
|
|
31
|
-
const fieldType_1 = __importDefault(require("./fieldType"));
|
|
32
|
-
exports.fieldType = fieldType_1.default;
|
|
33
31
|
const clean_1 = __importDefault(require("./clean"));
|
|
34
32
|
exports.clean = clean_1.default;
|
|
35
33
|
const cleanKey_1 = __importDefault(require("./cleanKey"));
|
|
@@ -41,3 +39,4 @@ exports.dotGetSchema = dotGetSchema_1.default;
|
|
|
41
39
|
const enum_1 = __importDefault(require("./fieldTypes/enum"));
|
|
42
40
|
exports.createEnum = enum_1.default;
|
|
43
41
|
__exportStar(require("./types"), exports);
|
|
42
|
+
__exportStar(require("./fieldType"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orion-js/schema",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "ce643e657e199d1893c8c0f1d067d96e542f1796"
|
|
35
35
|
}
|