@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.
@@ -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<string>>;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/nodejs-lib",
3
- "version": "13.0.1",
3
+ "version": "13.0.2",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "docs-serve": "vuepress dev docs",
@@ -40,7 +40,7 @@ export function memoryUsageFull(): {
40
40
  }
41
41
 
42
42
  class ProcessUtil {
43
- private timer!: NodeJS.Timer
43
+ private timer!: NodeJS.Timeout
44
44
 
45
45
  startMemoryTimer(intervalMillis = 1000): void {
46
46
  console.log(memoryUsage())
@@ -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
  }