@loopback/example-log-extension 5.0.5 → 5.0.6
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/CHANGELOG.md +4 -0
- package/dist/__tests__/log-spy.d.ts +2 -2
- package/dist/types.d.ts +4 -4
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.0.6](https://github.com/loopbackio/loopback-next/compare/@loopback/example-log-extension@5.0.5...@loopback/example-log-extension@5.0.6) (2022-12-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @loopback/example-log-extension
|
|
9
|
+
|
|
6
10
|
## [5.0.5](https://github.com/loopbackio/loopback-next/compare/@loopback/example-log-extension@5.0.4...@loopback/example-log-extension@5.0.5) (2022-11-24)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @loopback/example-log-extension
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { sinon } from '@loopback/testlab';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type AddSpy = sinon.SinonSpy<[(string | undefined)?], void>;
|
|
3
|
+
export type LogStub = sinon.SinonStub<[any?, ...any[]], void>;
|
|
4
4
|
export declare function createLogSpy(): sinon.SinonSpy<[msg?: string | undefined], void>;
|
|
5
5
|
export declare function restoreLogSpy(spy: AddSpy | LogStub): void;
|
|
6
6
|
export declare function createConsoleStub(): LogStub;
|
package/dist/types.d.ts
CHANGED
|
@@ -10,18 +10,18 @@ export interface LogFn {
|
|
|
10
10
|
/**
|
|
11
11
|
* Log level metadata
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export type LevelMetadata = {
|
|
14
14
|
level: number;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* High resolution time as [seconds, nanoseconds]. Used by process.hrtime().
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export type HighResTime = [number, number];
|
|
20
20
|
/**
|
|
21
21
|
* Log writing function
|
|
22
22
|
*/
|
|
23
|
-
export
|
|
23
|
+
export type LogWriterFn = (msg: string, level: number) => void;
|
|
24
24
|
/**
|
|
25
25
|
* Timer function for logging
|
|
26
26
|
*/
|
|
27
|
-
export
|
|
27
|
+
export type TimerFn = (start?: HighResTime) => HighResTime;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopback/example-log-extension",
|
|
3
3
|
"description": "An example showing how to write a complex log extension for LoopBack 4",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.6",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"loopback",
|
|
7
7
|
"loopback-extension"
|
|
@@ -45,20 +45,20 @@
|
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@loopback/core": "^4.0.
|
|
49
|
-
"@loopback/rest": "^12.0.
|
|
48
|
+
"@loopback/core": "^4.0.6",
|
|
49
|
+
"@loopback/rest": "^12.0.6",
|
|
50
50
|
"chalk": "^4.1.2",
|
|
51
51
|
"debug": "^4.3.4",
|
|
52
52
|
"tslib": "^2.4.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@loopback/build": "^9.0.
|
|
56
|
-
"@loopback/eslint-config": "^13.0.
|
|
57
|
-
"@loopback/testlab": "^5.0.
|
|
55
|
+
"@loopback/build": "^9.0.6",
|
|
56
|
+
"@loopback/eslint-config": "^13.0.6",
|
|
57
|
+
"@loopback/testlab": "^5.0.6",
|
|
58
58
|
"@types/debug": "^4.1.7",
|
|
59
|
-
"@types/node": "^14.18.
|
|
59
|
+
"@types/node": "^14.18.34",
|
|
60
60
|
"eslint": "^8.28.0",
|
|
61
|
-
"typescript": "~4.
|
|
61
|
+
"typescript": "~4.9.4"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "709a5ecd1ffddeb02262cecabf7b663c7b4d7e47"
|
|
64
64
|
}
|