Skip to content

Commit 6c5f632

Browse files
committed
v1.0.2
1 parent 63c7f1e commit 6c5f632

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@keift/utils",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Many useful tools.",
55
"license": "MIT",
66
"homepage": "https://github.com/keift/utils",

src/defaults/LogOptions.default.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type { LoggerOptions } from '../types/LoggerOptions.type';
2+
3+
export const LoggerOptionsDefault: LoggerOptions = {};

src/exports/Types.export.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export type { LogOptions } from '../types/LogOptions.type';
1+
export type { LoggerOptions } from '../types/LoggerOptions.type';
22
export type { StrictOmit } from '../types/StrictOmit.type';

src/exports/Utils.export.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export { Log } from '../utils/Log.util';
1+
export { Logger } from '../utils/Logger.util';
22
export { Styles } from '../utils/Styles.util';

src/types/LogOptions.type.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/types/LoggerOptions.type.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export type LoggerOptions = {
2+
scope?: string;
3+
};
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import merge from 'lodash.merge';
33

44
import { Styles } from './Styles.util';
55

6-
import { LogOptionsDefault } from '../defaults/LogOptions.default';
6+
import { LoggerOptionsDefault } from '../defaults/LoggerOptions.default';
77

8-
import type { LogOptions } from '../types/LogOptions.type';
8+
import type { LoggerOptions } from '../types/LoggerOptions.type';
99

10-
export class Log {
11-
private readonly options: LogOptions;
10+
export class Logger {
11+
private readonly options: LoggerOptions;
1212

13-
public constructor(options: LogOptions = LogOptionsDefault) {
14-
this.options = merge({}, LogOptionsDefault, options);
13+
public constructor(options: LoggerOptions = LoggerOptionsDefault) {
14+
this.options = merge({}, LoggerOptionsDefault, options);
1515
}
1616

1717
public info(message: string) {

0 commit comments

Comments
 (0)