@xylabs/object
Advanced tools
Comparing version
@@ -8,8 +8,8 @@ import { Logger } from '@xylabs/logger'; | ||
export declare abstract class Base<TParams extends BaseParams = BaseParams> { | ||
readonly params: TParams; | ||
readonly params?: TParams | undefined; | ||
static defaultLogger?: Logger; | ||
static readonly uniqueName: string; | ||
constructor(params: TParams); | ||
constructor(params?: TParams | undefined); | ||
protected get logger(): Logger | undefined; | ||
} | ||
//# sourceMappingURL=Base.d.ts.map |
@@ -94,3 +94,3 @@ // src/AsTypeFactory.ts | ||
this.params = params; | ||
params.logger?.debug(`Base constructed [${Object(this).name}]`); | ||
params?.logger?.debug(`Base constructed [${Object(this).name}]`); | ||
} | ||
@@ -97,0 +97,0 @@ static defaultLogger; |
@@ -8,8 +8,8 @@ import { Logger } from '@xylabs/logger'; | ||
export declare abstract class Base<TParams extends BaseParams = BaseParams> { | ||
readonly params: TParams; | ||
readonly params?: TParams | undefined; | ||
static defaultLogger?: Logger; | ||
static readonly uniqueName: string; | ||
constructor(params: TParams); | ||
constructor(params?: TParams | undefined); | ||
protected get logger(): Logger | undefined; | ||
} | ||
//# sourceMappingURL=Base.d.ts.map |
@@ -95,3 +95,3 @@ // src/AsTypeFactory.ts | ||
var _a; | ||
(_a = params.logger) == null ? void 0 : _a.debug(`Base constructed [${Object(this).name}]`); | ||
(_a = params == null ? void 0 : params.logger) == null ? void 0 : _a.debug(`Base constructed [${Object(this).name}]`); | ||
} | ||
@@ -98,0 +98,0 @@ static defaultLogger; |
@@ -14,10 +14,10 @@ { | ||
"dependencies": { | ||
"@xylabs/assert": "^3.0.25", | ||
"@xylabs/logger": "^3.0.25", | ||
"@xylabs/promise": "^3.0.25" | ||
"@xylabs/assert": "^3.1.0", | ||
"@xylabs/logger": "^3.1.0", | ||
"@xylabs/promise": "^3.1.0" | ||
}, | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^3.5.2", | ||
"@xylabs/tsconfig": "^3.5.2", | ||
"typescript": "^5.4.3" | ||
"@xylabs/ts-scripts-yarn3": "^3.9.0", | ||
"@xylabs/tsconfig": "^3.9.0", | ||
"typescript": "^5.4.4" | ||
}, | ||
@@ -62,4 +62,4 @@ "exports": { | ||
"sideEffects": false, | ||
"version": "3.0.25", | ||
"version": "3.1.0", | ||
"type": "module" | ||
} |
@@ -17,4 +17,4 @@ import { Logger } from '@xylabs/logger' | ||
constructor(readonly params: TParams) { | ||
params.logger?.debug(`Base constructed [${Object(this).name}]`) | ||
constructor(readonly params?: TParams) { | ||
params?.logger?.debug(`Base constructed [${Object(this).name}]`) | ||
} | ||
@@ -21,0 +21,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
225745
0.22%Updated
Updated
Updated