@naturalcycles/nodejs-lib 13.0.1 → 13.0.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/dist/fs/fs.util.d.ts +1 -0
- package/dist/validation/ajv/ajvValidationError.js +3 -1
- package/dist/validation/joi/joi.shared.schemas.d.ts +1 -1
- package/dist/validation/joi/joi.validation.error.js +3 -1
- package/package.json +1 -1
- package/src/infra/process.util.ts +1 -1
- package/src/validation/ajv/ajvValidationError.ts +3 -1
- package/src/validation/joi/joi.validation.error.ts +3 -1
package/dist/fs/fs.util.d.ts
CHANGED
|
@@ -118,6 +118,7 @@ export declare const fs2: {
|
|
|
118
118
|
writevSync: typeof fs.writevSync;
|
|
119
119
|
readv: typeof fs.readv;
|
|
120
120
|
readvSync: typeof fs.readvSync;
|
|
121
|
+
openAsBlob: typeof fs.openAsBlob;
|
|
121
122
|
opendirSync: typeof fs.opendirSync;
|
|
122
123
|
opendir: typeof fs.opendir;
|
|
123
124
|
cp: typeof fs.cp;
|
|
@@ -4,7 +4,9 @@ exports.AjvValidationError = void 0;
|
|
|
4
4
|
const js_lib_1 = require("@naturalcycles/js-lib");
|
|
5
5
|
class AjvValidationError extends js_lib_1.AppError {
|
|
6
6
|
constructor(message, data) {
|
|
7
|
-
super(message, data
|
|
7
|
+
super(message, data, {
|
|
8
|
+
name: 'AjvValidationError',
|
|
9
|
+
});
|
|
8
10
|
}
|
|
9
11
|
}
|
|
10
12
|
exports.AjvValidationError = AjvValidationError;
|
|
@@ -92,4 +92,4 @@ export declare const userAgentSchema: StringSchema<string>;
|
|
|
92
92
|
export declare const utcOffsetSchema: NumberSchema<number>;
|
|
93
93
|
export declare const ipAddressSchema: StringSchema<string>;
|
|
94
94
|
export declare const baseDBEntitySchema: ObjectSchema<BaseDBEntity>;
|
|
95
|
-
export declare const savedDBEntitySchema: ObjectSchema<SavedDBEntity
|
|
95
|
+
export declare const savedDBEntitySchema: ObjectSchema<SavedDBEntity>;
|
|
@@ -4,7 +4,9 @@ exports.JoiValidationError = void 0;
|
|
|
4
4
|
const js_lib_1 = require("@naturalcycles/js-lib");
|
|
5
5
|
class JoiValidationError extends js_lib_1.AppError {
|
|
6
6
|
constructor(message, data) {
|
|
7
|
-
super(message, data
|
|
7
|
+
super(message, data, {
|
|
8
|
+
name: 'JoiValidationError',
|
|
9
|
+
});
|
|
8
10
|
}
|
|
9
11
|
}
|
|
10
12
|
exports.JoiValidationError = JoiValidationError;
|
package/package.json
CHANGED
|
@@ -9,6 +9,8 @@ export interface AjvValidationErrorData extends ErrorData {
|
|
|
9
9
|
|
|
10
10
|
export class AjvValidationError extends AppError<AjvValidationErrorData> {
|
|
11
11
|
constructor(message: string, data: AjvValidationErrorData) {
|
|
12
|
-
super(message, data
|
|
12
|
+
super(message, data, {
|
|
13
|
+
name: 'AjvValidationError',
|
|
14
|
+
})
|
|
13
15
|
}
|
|
14
16
|
}
|
|
@@ -27,6 +27,8 @@ export interface JoiValidationErrorData extends ErrorData {
|
|
|
27
27
|
|
|
28
28
|
export class JoiValidationError extends AppError<JoiValidationErrorData> {
|
|
29
29
|
constructor(message: string, data: JoiValidationErrorData) {
|
|
30
|
-
super(message, data
|
|
30
|
+
super(message, data, {
|
|
31
|
+
name: 'JoiValidationError',
|
|
32
|
+
})
|
|
31
33
|
}
|
|
32
34
|
}
|