@genesislcap/foundation-utils 14.9.1-alpha-b15cd29.0 → 14.10.0
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.
|
@@ -3,6 +3,7 @@ export { LogLevel } from 'consola';
|
|
|
3
3
|
export interface LoggerOptions extends ConsolaOptions {
|
|
4
4
|
}
|
|
5
5
|
export interface Logger extends Consola {
|
|
6
|
+
deprecated(symbol: string, instruction?: string, removalVersionTarget?: string): void;
|
|
6
7
|
}
|
|
7
8
|
export declare const defaultLoggerOptions: LoggerOptions;
|
|
8
9
|
export declare function createLogger(name: string, options?: LoggerOptions): Logger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/logger/logger.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGlD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,MAAM,WAAW,aAAc,SAAQ,cAAc;CAAG;AACxD,MAAM,WAAW,MAAO,SAAQ,OAAO;
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/logger/logger.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGlD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,MAAM,WAAW,aAAc,SAAQ,cAAc;CAAG;AACxD,MAAM,WAAW,MAAO,SAAQ,OAAO;IAqBrC,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvF;AAGD,eAAO,MAAM,oBAAoB,EAAE,aAElC,CAAC;AAEF,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,aAAoC,GAAG,MAAM,CAgBhG"}
|
|
@@ -7,5 +7,7 @@ export const defaultLoggerOptions = {
|
|
|
7
7
|
export function createLogger(name, options = defaultLoggerOptions) {
|
|
8
8
|
const baseLogger = consola.create(options);
|
|
9
9
|
const logger = baseLogger.withTag(name);
|
|
10
|
-
return logger
|
|
10
|
+
return Object.assign(Object.assign({}, logger), { deprecated: (symbol, instruction = 'Consult docs for better alternative.', removalVersionTarget) => {
|
|
11
|
+
logger.warn(`Deprecated symbol used '${symbol}'. ${instruction}`, `${removalVersionTarget ? `Will be removed in version ${removalVersionTarget}.` : ''}`);
|
|
12
|
+
} });
|
|
11
13
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-utils",
|
|
3
3
|
"description": "Genesis Foundation Utils",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.10.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"publishConfig": {
|
|
89
89
|
"access": "public"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "8345254d00dfea8e766032eaaa2f231849833fcd"
|
|
92
92
|
}
|