@loopback/example-log-extension 5.0.4 → 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 CHANGED
@@ -3,6 +3,14 @@
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
+
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)
11
+
12
+ **Note:** Version bump only for package @loopback/example-log-extension
13
+
6
14
  ## [5.0.4](https://github.com/loopbackio/loopback-next/compare/@loopback/example-log-extension@5.0.3...@loopback/example-log-extension@5.0.4) (2022-10-13)
7
15
 
8
16
  **Note:** Version bump only for package @loopback/example-log-extension
@@ -1,6 +1,6 @@
1
1
  import { sinon } from '@loopback/testlab';
2
- export declare type AddSpy = sinon.SinonSpy<[(string | undefined)?], void>;
3
- export declare type LogStub = sinon.SinonStub<[any?, ...any[]], void>;
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 declare type LevelMetadata = {
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 declare type HighResTime = [number, number];
19
+ export type HighResTime = [number, number];
20
20
  /**
21
21
  * Log writing function
22
22
  */
23
- export declare type LogWriterFn = (msg: string, level: number) => void;
23
+ export type LogWriterFn = (msg: string, level: number) => void;
24
24
  /**
25
25
  * Timer function for logging
26
26
  */
27
- export declare type TimerFn = (start?: HighResTime) => HighResTime;
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",
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.4",
49
- "@loopback/rest": "^12.0.4",
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
- "tslib": "^2.4.0"
52
+ "tslib": "^2.4.1"
53
53
  },
54
54
  "devDependencies": {
55
- "@loopback/build": "^9.0.4",
56
- "@loopback/eslint-config": "^13.0.4",
57
- "@loopback/testlab": "^5.0.4",
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.32",
60
- "eslint": "^8.25.0",
61
- "typescript": "~4.8.4"
59
+ "@types/node": "^14.18.34",
60
+ "eslint": "^8.28.0",
61
+ "typescript": "~4.9.4"
62
62
  },
63
- "gitHead": "947500110c84ba77b2197b759b559c195cfce260"
63
+ "gitHead": "709a5ecd1ffddeb02262cecabf7b663c7b4d7e47"
64
64
  }