@apify/utilities 2.2.4 → 2.2.5
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/crypto.d.ts +2 -2
- package/health_checker.d.ts +1 -1
- package/package.json +4 -4
- package/utilities.d.ts +1 -1
package/crypto.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { KeyObject } from 'crypto';
|
|
3
|
-
|
|
3
|
+
type DecryptOptions = {
|
|
4
4
|
privateKey: KeyObject;
|
|
5
5
|
encryptedPassword: string;
|
|
6
6
|
encryptedValue: string;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type EncryptOptions = {
|
|
9
9
|
publicKey: KeyObject;
|
|
10
10
|
value: string;
|
|
11
11
|
};
|
package/health_checker.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare enum CHECK_TYPES {
|
|
|
3
3
|
MONGODB_WRITE = "MONGODB_WRITE",
|
|
4
4
|
REDIS = "REDIS"
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
type CheckType<T extends Record<string, any> = Record<string, any>> = {
|
|
7
7
|
client: T;
|
|
8
8
|
type: CHECK_TYPES;
|
|
9
9
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apify/utilities",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"description": "Tools and constants shared across Apify projects.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"module": "./index.mjs",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@apify/consts": "^2.
|
|
47
|
-
"@apify/log": "^2.2.
|
|
46
|
+
"@apify/consts": "^2.6.0",
|
|
47
|
+
"@apify/log": "^2.2.3"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/create-hmac": "^1.1.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "335df650ad9493952e1a787488e7948c6c5b318b"
|
|
53
53
|
}
|
package/utilities.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export declare function http404Route(req: RequestLike, res: ResponseLike): void;
|
|
|
53
53
|
* Default error handler of Express API endpoints.
|
|
54
54
|
*/
|
|
55
55
|
export declare function expressErrorHandler(err: Error, req: RequestLike, res: ResponseLike, next: (...a: unknown[]) => unknown): unknown;
|
|
56
|
-
export
|
|
56
|
+
export type BetterIntervalID = {
|
|
57
57
|
_betterClearInterval: () => void;
|
|
58
58
|
};
|
|
59
59
|
/**
|