@xylabs/object
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -8,8 +8,8 @@ import { Logger } from '@xylabs/logger'; | ||
export declare abstract class Base<TParams extends BaseParams = BaseParams> { | ||
readonly params?: TParams | undefined; | ||
static defaultLogger?: Logger; | ||
static readonly uniqueName: string; | ||
constructor(params?: TParams | undefined); | ||
params?: TParams; | ||
constructor(params?: TParams); | ||
protected get logger(): Logger | undefined; | ||
} | ||
//# sourceMappingURL=Base.d.ts.map |
@@ -92,2 +92,5 @@ // src/AsTypeFactory.ts | ||
var Base = class _Base { | ||
static defaultLogger; | ||
static uniqueName = globallyUnique(this.name, this, "xyo"); | ||
params; | ||
constructor(params) { | ||
@@ -97,4 +100,2 @@ this.params = params; | ||
} | ||
static defaultLogger; | ||
static uniqueName = globallyUnique(this.name, this, "xyo"); | ||
get logger() { | ||
@@ -101,0 +102,0 @@ return this.params?.logger ?? _Base.defaultLogger; |
@@ -8,8 +8,8 @@ import { Logger } from '@xylabs/logger'; | ||
export declare abstract class Base<TParams extends BaseParams = BaseParams> { | ||
readonly params?: TParams | undefined; | ||
static defaultLogger?: Logger; | ||
static readonly uniqueName: string; | ||
constructor(params?: TParams | undefined); | ||
params?: TParams; | ||
constructor(params?: TParams); | ||
protected get logger(): Logger | undefined; | ||
} | ||
//# sourceMappingURL=Base.d.ts.map |
@@ -92,9 +92,10 @@ // src/AsTypeFactory.ts | ||
var Base = class _Base { | ||
static defaultLogger; | ||
static uniqueName = globallyUnique(this.name, this, "xyo"); | ||
params; | ||
constructor(params) { | ||
var _a; | ||
this.params = params; | ||
var _a; | ||
(_a = params == null ? void 0 : params.logger) == null ? void 0 : _a.debug(`Base constructed [${Object(this).name}]`); | ||
} | ||
static defaultLogger; | ||
static uniqueName = globallyUnique(this.name, this, "xyo"); | ||
get logger() { | ||
@@ -101,0 +102,0 @@ var _a; |
@@ -14,5 +14,5 @@ { | ||
"dependencies": { | ||
"@xylabs/assert": "^3.1.0", | ||
"@xylabs/logger": "^3.1.0", | ||
"@xylabs/promise": "^3.1.0" | ||
"@xylabs/assert": "^3.1.1", | ||
"@xylabs/logger": "^3.1.1", | ||
"@xylabs/promise": "^3.1.1" | ||
}, | ||
@@ -62,4 +62,4 @@ "devDependencies": { | ||
"sideEffects": false, | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"type": "module" | ||
} |
@@ -17,3 +17,6 @@ import { Logger } from '@xylabs/logger' | ||
constructor(readonly params?: TParams) { | ||
params?: TParams | ||
constructor(params?: TParams) { | ||
this.params = params | ||
params?.logger?.debug(`Base constructed [${Object(this).name}]`) | ||
@@ -20,0 +23,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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
225899
1478
7
Updated@xylabs/assert@^3.1.1
Updated@xylabs/logger@^3.1.1
Updated@xylabs/promise@^3.1.1