@genesislcap/foundation-utils 14.79.2-alpha-9debc2e.0 → 14.81.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.
- package/dist/custom-elements.json +1 -0
- package/dist/dts/logger/logger.d.ts +2 -0
- package/dist/dts/logger/logger.d.ts.map +1 -1
- package/dist/dts/utils/logger.d.ts +1 -1
- package/dist/dts/utils/logger.d.ts.map +1 -1
- package/dist/esm/logger/logger.js +6 -6
- package/dist/esm/utils/logger.js +1 -1
- package/dist/foundation-utils.api.json +1 -1
- package/dist/foundation-utils.d.ts +2 -0
- package/docs/api/foundation-utils.createlogger.md +5 -0
- package/docs/api-report.md +1 -1
- package/package.json +9 -12
|
@@ -53,6 +53,8 @@ export declare const defaultLoggerOptions: LoggerOptions;
|
|
|
53
53
|
* @param name - The name to give the logger.
|
|
54
54
|
* @param options - The options to use when creating the logger.
|
|
55
55
|
* @returns The resulting logger.
|
|
56
|
+
*
|
|
57
|
+
* @deprecated - Use `createLogger` from `@genesislcap/foundation-logger` instead.
|
|
56
58
|
* @public
|
|
57
59
|
*/
|
|
58
60
|
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":"
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/logger/logger.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC;;;GAGG;AACH,MAAM,WAAW,aAAc,SAAQ,cAAc;CAAG;AACxD;;;;;;;GAOG;AACH,MAAM,WAAW,MAAO,SAAQ,OAAO;IACrC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvF;AAGD;;;GAGG;AACH,MAAM,WAAW,MAAO,SAAQ,OAAO;CAAG;AAE1C;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,aAElC,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,aAAoC,GAAG,MAAM,CAMhG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const logger: import("
|
|
1
|
+
export declare const logger: import("@genesislcap/foundation-logger").Logger;
|
|
2
2
|
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,iDAAmC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createLogger as nextCreateLogger } from '@genesislcap/foundation-logger';
|
|
2
2
|
export { LogLevel } from 'consola';
|
|
3
3
|
const logLevelDebug = 4;
|
|
4
4
|
/**
|
|
@@ -13,12 +13,12 @@ export const defaultLoggerOptions = {
|
|
|
13
13
|
* @param name - The name to give the logger.
|
|
14
14
|
* @param options - The options to use when creating the logger.
|
|
15
15
|
* @returns The resulting logger.
|
|
16
|
+
*
|
|
17
|
+
* @deprecated - Use `createLogger` from `@genesislcap/foundation-logger` instead.
|
|
16
18
|
* @public
|
|
17
19
|
*/
|
|
18
20
|
export function createLogger(name, options = defaultLoggerOptions) {
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
return
|
|
22
|
-
logger.warn(`Deprecated symbol used '${symbol}'. ${instruction}`, `${removalVersionTarget ? `Will be removed in version ${removalVersionTarget}.` : ''}`);
|
|
23
|
-
} });
|
|
21
|
+
const logger = nextCreateLogger(name, options);
|
|
22
|
+
logger.warn(`Deprecated symbol used 'createLogger'. Use 'createLogger' from '@genesislcap/foundation-logger' instead.`);
|
|
23
|
+
return logger;
|
|
24
24
|
}
|
package/dist/esm/utils/logger.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { createLogger } from '
|
|
1
|
+
import { createLogger } from '@genesislcap/foundation-logger';
|
|
2
2
|
export const logger = createLogger('foundation-utils');
|
|
@@ -451,7 +451,7 @@
|
|
|
451
451
|
{
|
|
452
452
|
"kind": "Function",
|
|
453
453
|
"canonicalReference": "@genesislcap/foundation-utils!createLogger:function(1)",
|
|
454
|
-
"docComment": "/**\n * Creates a logger with the given name and options.\n *\n * @param name - The name to give the logger.\n *\n * @param options - The options to use when creating the logger.\n *\n * @returns The resulting logger.\n *\n * @public\n */\n",
|
|
454
|
+
"docComment": "/**\n * Creates a logger with the given name and options.\n *\n * @deprecated\n *\n * - Use `createLogger` from `@genesislcap/foundation-logger` instead.\n *\n * @param name - The name to give the logger.\n *\n * @param options - The options to use when creating the logger.\n *\n * @returns The resulting logger.\n *\n * @public\n */\n",
|
|
455
455
|
"excerptTokens": [
|
|
456
456
|
{
|
|
457
457
|
"kind": "Content",
|
|
@@ -65,6 +65,8 @@ export declare const createErrorMap: <TErrorDetailMap extends ErrorDetailMap>(lo
|
|
|
65
65
|
* @param name - The name to give the logger.
|
|
66
66
|
* @param options - The options to use when creating the logger.
|
|
67
67
|
* @returns The resulting logger.
|
|
68
|
+
*
|
|
69
|
+
* @deprecated - Use `createLogger` from `@genesislcap/foundation-logger` instead.
|
|
68
70
|
* @public
|
|
69
71
|
*/
|
|
70
72
|
export declare function createLogger(name: string, options?: LoggerOptions): Logger;
|
package/docs/api-report.md
CHANGED
|
@@ -39,7 +39,7 @@ export type ConversionType = 'string' | 'number' | 'time' | 'boolean';
|
|
|
39
39
|
// @public
|
|
40
40
|
export const createErrorMap: <TErrorDetailMap extends ErrorDetailMap>(logger: ErrorMapLogger) => ErrorMap<TErrorDetailMap>;
|
|
41
41
|
|
|
42
|
-
// @public
|
|
42
|
+
// @public @deprecated
|
|
43
43
|
export function createLogger(name: string, options?: LoggerOptions): Logger;
|
|
44
44
|
|
|
45
45
|
// @public
|
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.81.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -10,21 +10,18 @@
|
|
|
10
10
|
"PORT": 3040
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
|
-
"
|
|
14
|
-
"api:custom-elements": "custom-elements-manifest analyze --config custom-elements-manifest.config.js",
|
|
15
|
-
"api:document": "api-documenter markdown -i dist -o docs/api",
|
|
16
|
-
"build": "npm run clean && tsc -b ./tsconfig.json && npm run api:extract && npm run api:document && npm run api:custom-elements",
|
|
13
|
+
"build": "genx build -b ts",
|
|
17
14
|
"clean": "rimraf dist tsconfig.tsbuildinfo",
|
|
18
|
-
"dev": "
|
|
15
|
+
"dev": "genx dev -b ts",
|
|
16
|
+
"test": "genx test"
|
|
19
17
|
},
|
|
20
18
|
"devDependencies": {
|
|
21
|
-
"@
|
|
22
|
-
"@
|
|
23
|
-
"
|
|
24
|
-
"rimraf": "^3.0.2",
|
|
25
|
-
"typescript": "^4.5.5"
|
|
19
|
+
"@genesislcap/foundation-testing": "14.81.0",
|
|
20
|
+
"@genesislcap/genx": "14.81.0",
|
|
21
|
+
"rimraf": "^3.0.2"
|
|
26
22
|
},
|
|
27
23
|
"dependencies": {
|
|
24
|
+
"@genesislcap/foundation-logger": "14.81.0",
|
|
28
25
|
"@microsoft/fast-components": "^2.21.3",
|
|
29
26
|
"@microsoft/fast-element": "^1.7.0",
|
|
30
27
|
"@microsoft/fast-foundation": "^2.33.2",
|
|
@@ -41,5 +38,5 @@
|
|
|
41
38
|
"access": "public"
|
|
42
39
|
},
|
|
43
40
|
"customElements": "dist/custom-elements.json",
|
|
44
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "6f2d59820f20c84c0910281cc172931db6ce7543"
|
|
45
42
|
}
|