@o3r/logger 11.4.0-prerelease.8 → 11.4.0-rc.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/esm2022/services/logger/logger.module.mjs +4 -4
- package/esm2022/services/logger/logger.service.mjs +3 -3
- package/fesm2022/o3r-logger-services-fullstory-logger-client.mjs.map +1 -1
- package/fesm2022/o3r-logger-services-logrocket-logger-client.mjs.map +1 -1
- package/fesm2022/o3r-logger-services-smartlook-logger-client.mjs.map +1 -1
- package/fesm2022/o3r-logger.mjs +7 -7
- package/fesm2022/o3r-logger.mjs.map +1 -1
- package/package.json +9 -9
- package/schematics/ng-add/index.js.map +1 -0
- package/schematics/ng-add/schema.js.map +1 -0
|
@@ -19,13 +19,13 @@ export class LoggerModule {
|
|
|
19
19
|
]
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
23
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.
|
|
24
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.
|
|
22
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: LoggerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
23
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.9", ngImport: i0, type: LoggerModule }); }
|
|
24
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: LoggerModule, providers: [
|
|
25
25
|
LoggerService
|
|
26
26
|
] }); }
|
|
27
27
|
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: LoggerModule, decorators: [{
|
|
29
29
|
type: NgModule,
|
|
30
30
|
args: [{
|
|
31
31
|
providers: [
|
|
@@ -118,10 +118,10 @@ export class LoggerService {
|
|
|
118
118
|
.filter((metaReducer) => !!metaReducer);
|
|
119
119
|
return metaReducers.length <= 1 ? metaReducers[0] : metaReducers;
|
|
120
120
|
}
|
|
121
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
122
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
121
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: LoggerService, deps: [{ token: LOGGER_CLIENT_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
122
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: LoggerService, providedIn: 'root' }); }
|
|
123
123
|
}
|
|
124
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: LoggerService, decorators: [{
|
|
125
125
|
type: Injectable,
|
|
126
126
|
args: [{
|
|
127
127
|
providedIn: 'root'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"o3r-logger-services-fullstory-logger-client.mjs","sources":["../../src/services/fullstory-logger-client/fullstory-logger-client.ts","../../src/services/fullstory-logger-client/o3r-logger-services-fullstory-logger-client.ts"],"sourcesContent":["import { Action, ActionReducer, MetaReducer } from '@ngrx/store';\nimport type { LoggerClient } from '@o3r/logger';\n\nimport { FullStory as fullStory, init } from '@fullstory/browser';\n\n/**\n * FullStory client.\n */\nexport class FullStoryClient implements LoggerClient {\n /**\n * Constructor.\n * @param orgId FullStory organization ID\n */\n constructor(orgId: string) {\n init({orgId});\n }\n\n /**\n * @inheritdoc\n */\n public identify(uid: string, vars?: {[key: string]: string}): void {\n if (vars && vars.name) {\n fullStory('setIdentity', {uid, properties: {...vars, displayName: vars.name}});\n } else {\n fullStory('setIdentity', {uid, properties: vars});\n }\n }\n\n /**\n * @inheritdoc\n */\n public event(name: string, properties?: any): void {\n fullStory('trackEvent', {name, properties});\n }\n\n /**\n * @inheritdoc\n */\n public error(message?: any, ...optionalParams: any[]): void {\n fullStory('log', {level: 'error', msg: `${message.toString() as string}\\n${optionalParams.toString()}`});\n }\n\n /**\n * @inheritdoc\n */\n public warn(message?: any, ...optionalParams: any[]): void {\n fullStory('log', {level: 'warn', msg: `${message.toString() as string}\\n${optionalParams.toString()}`});\n }\n\n /**\n * @inheritdoc\n */\n public log(message?: any, ...optionalParams: any[]): void {\n fullStory('log', {level: 'log', msg: `${message.toString() as string}\\n${optionalParams.toString()}`});\n }\n\n /**\n * @inheritdoc\n */\n public getSessionURL(): string | undefined {\n return fullStory('getSession') || undefined;\n }\n\n /**\n * @inheritdoc\n */\n public stopRecording(): void {\n fullStory('shutdown');\n }\n\n /**\n * @inheritdoc\n */\n public resumeRecording(): void {\n fullStory('restart');\n }\n\n /**\n * @inheritdoc\n */\n public createMetaReducer(): MetaReducer<any, Action> {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const client: FullStoryClient = this;\n // eslint-disable-next-line prefer-arrow/prefer-arrow-functions\n return function debug(reducer: ActionReducer<any>): ActionReducer<any> {\n return (state, action) => {\n // Filter @ngrx actions\n if (!action.type.startsWith('@ngrx/')) {\n client.event('state', state);\n client.event('action', action);\n }\n\n return reducer(state, action);\n };\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["fullStory"],"mappings":";;AAKA;;AAEG;MACU,eAAe,CAAA;AAC1B;;;AAGG;AACH,IAAA,WAAA,CAAY,KAAa,EAAA;AACvB,QAAA,IAAI,CAAC,EAAC,KAAK,EAAC,CAAC
|
|
1
|
+
{"version":3,"file":"o3r-logger-services-fullstory-logger-client.mjs","sources":["../../src/services/fullstory-logger-client/fullstory-logger-client.ts","../../src/services/fullstory-logger-client/o3r-logger-services-fullstory-logger-client.ts"],"sourcesContent":["import { Action, ActionReducer, MetaReducer } from '@ngrx/store';\nimport type { LoggerClient } from '@o3r/logger';\n\nimport { FullStory as fullStory, init } from '@fullstory/browser';\n\n/**\n * FullStory client.\n */\nexport class FullStoryClient implements LoggerClient {\n /**\n * Constructor.\n * @param orgId FullStory organization ID\n */\n constructor(orgId: string) {\n init({orgId});\n }\n\n /**\n * @inheritdoc\n */\n public identify(uid: string, vars?: {[key: string]: string}): void {\n if (vars && vars.name) {\n fullStory('setIdentity', {uid, properties: {...vars, displayName: vars.name}});\n } else {\n fullStory('setIdentity', {uid, properties: vars});\n }\n }\n\n /**\n * @inheritdoc\n */\n public event(name: string, properties?: any): void {\n fullStory('trackEvent', {name, properties});\n }\n\n /**\n * @inheritdoc\n */\n public error(message?: any, ...optionalParams: any[]): void {\n fullStory('log', {level: 'error', msg: `${message.toString() as string}\\n${optionalParams.toString()}`});\n }\n\n /**\n * @inheritdoc\n */\n public warn(message?: any, ...optionalParams: any[]): void {\n fullStory('log', {level: 'warn', msg: `${message.toString() as string}\\n${optionalParams.toString()}`});\n }\n\n /**\n * @inheritdoc\n */\n public log(message?: any, ...optionalParams: any[]): void {\n fullStory('log', {level: 'log', msg: `${message.toString() as string}\\n${optionalParams.toString()}`});\n }\n\n /**\n * @inheritdoc\n */\n public getSessionURL(): string | undefined {\n return fullStory('getSession') || undefined;\n }\n\n /**\n * @inheritdoc\n */\n public stopRecording(): void {\n fullStory('shutdown');\n }\n\n /**\n * @inheritdoc\n */\n public resumeRecording(): void {\n fullStory('restart');\n }\n\n /**\n * @inheritdoc\n */\n public createMetaReducer(): MetaReducer<any, Action> {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const client: FullStoryClient = this;\n // eslint-disable-next-line prefer-arrow/prefer-arrow-functions\n return function debug(reducer: ActionReducer<any>): ActionReducer<any> {\n return (state, action) => {\n // Filter @ngrx actions\n if (!action.type.startsWith('@ngrx/')) {\n client.event('state', state);\n client.event('action', action);\n }\n\n return reducer(state, action);\n };\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["fullStory"],"mappings":";;AAKA;;AAEG;MACU,eAAe,CAAA;AAC1B;;;AAGG;AACH,IAAA,WAAA,CAAY,KAAa,EAAA;AACvB,QAAA,IAAI,CAAC,EAAC,KAAK,EAAC,CAAC;;AAGf;;AAEG;IACI,QAAQ,CAAC,GAAW,EAAE,IAA8B,EAAA;AACzD,QAAA,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE;YACrBA,SAAS,CAAC,aAAa,EAAE,EAAC,GAAG,EAAE,UAAU,EAAE,EAAC,GAAG,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,IAAI,EAAC,EAAC,CAAC;;aACzE;YACLA,SAAS,CAAC,aAAa,EAAE,EAAC,GAAG,EAAE,UAAU,EAAE,IAAI,EAAC,CAAC;;;AAIrD;;AAEG;IACI,KAAK,CAAC,IAAY,EAAE,UAAgB,EAAA;QACzCA,SAAS,CAAC,YAAY,EAAE,EAAC,IAAI,EAAE,UAAU,EAAC,CAAC;;AAG7C;;AAEG;AACI,IAAA,KAAK,CAAC,OAAa,EAAE,GAAG,cAAqB,EAAA;QAClDA,SAAS,CAAC,KAAK,EAAE,EAAC,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,CAAA,EAAG,OAAO,CAAC,QAAQ,EAAY,CAAA,EAAA,EAAK,cAAc,CAAC,QAAQ,EAAE,CAAA,CAAE,EAAC,CAAC;;AAG1G;;AAEG;AACI,IAAA,IAAI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ources":["../../src/services/logrocket-logger-client/logrocket-logger-client.ts","../../src/services/logrocket-logger-client/o3r-logger-services-logrocket-logger-client.ts"],"sourcesContent":["import { Action, MetaReducer } from '@ngrx/store';\nimport type { LoggerClient } from '@o3r/logger';\n\nimport * as LogRocket from 'logrocket';\nimport createNgrxMiddleware, { Options } from 'logrocket-ngrx';\n\n/**\n * LogRocket client.\n */\nexport class LogRocketClient implements LoggerClient {\n\n /**\n * Meta reducer configuration to change what store related items LogRocket records\n */\n private readonly metaReducerOptions?: Options;\n\n /**\n * Constructor.\n * @param appId LogROcket application ID\n * @param initOptions Optional configuration to change what LogRocket records\n * @param metaReducerOptions Optional meta reducer configuration to change what store related items LogRocket records\n */\n constructor(appId: string, initOptions?: any, metaReducerOptions?: Options) {\n const defaultOptions = {\n network: {\n requestSanitizer: (request: Request) => {\n // if the url contains '/purchase/orders'\n if (request.url.toLowerCase().indexOf('/purchase/orders') !== -1) {\n // scrub out the body\n return {...request, body: ''};\n }\n return request;\n }\n }\n };\n\n LogRocket.init(appId, {...defaultOptions, ...initOptions});\n this.metaReducerOptions = metaReducerOptions;\n }\n\n /**\n * @inheritdoc\n */\n public identify(uid: string, vars?: {[key: string]: string}): void {\n LogRocket.identify(uid, vars);\n }\n\n /**\n * @inheritdoc\n */\n public event(name: string, properties?: any): void {\n const trackEvent = properties ? `${name}: ${properties as string}` : name;\n LogRocket.track(trackEvent);\n }\n\n /**\n * @inheritdoc\n */\n public error(message?: any, ...optionalParams: any[]): void {\n LogRocket.error(message, optionalParams);\n }\n\n /**\n * @inheritdoc\n */\n public warn(message?: any, ...optionalParams: any[]): void {\n LogRocket.warn(message, ...optionalParams);\n }\n\n /**\n * @inheritdoc\n */\n public log(message?: any, ...optionalParams: any[]): void {\n LogRocket.log(message, ...optionalParams);\n }\n\n /**\n * @inheritdoc\n */\n public getSessionURL(): string | undefined {\n return LogRocket.sessionURL || undefined;\n }\n\n /**\n * @inheritdoc\n */\n public stopRecording(): void {\n // eslint-disable-next-line no-console\n console.error('Impossible to stop recording with LogRocket');\n }\n\n /**\n * @inheritdoc\n */\n public resumeRecording(): void {\n // eslint-disable-next-line no-console\n console.error('Impossible to restart recording with LogRocket.');\n }\n\n /**\n * @inheritdoc\n */\n public createMetaReducer(): MetaReducer<any, Action> {\n const defaultOptions = {\n actionSanitizer: (action: Action) => {\n // Filter @ngrx actions\n if (action.type.startsWith('@ngrx/')) {\n return null;\n }\n return action;\n }\n };\n return createNgrxMiddleware(LogRocket, {...defaultOptions, ...this.metaReducerOptions});\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;AAMA;;AAEG;MACU,eAAe,CAAA;AAO1B;;;;;AAKG;AACH,IAAA,WAAA,CAAY,KAAa,EAAE,WAAiB,EAAE,kBAA4B,EAAA;AACxE,QAAA,MAAM,cAAc,GAAG;AACrB,YAAA,OAAO,EAAE;AACP,gBAAA,gBAAgB,EAAE,CAAC,OAAgB,KAAI;;AAErC,oBAAA,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,EAAE;;wBAEhE,OAAO,EAAC,GAAG,OAAO,EAAE,IAAI,EAAE,EAAE,EAAC
|
|
1
|
+
{"version":3,"file":"o3r-logger-services-logrocket-logger-client.mjs","sources":["../../src/services/logrocket-logger-client/logrocket-logger-client.ts","../../src/services/logrocket-logger-client/o3r-logger-services-logrocket-logger-client.ts"],"sourcesContent":["import { Action, MetaReducer } from '@ngrx/store';\nimport type { LoggerClient } from '@o3r/logger';\n\nimport * as LogRocket from 'logrocket';\nimport createNgrxMiddleware, { Options } from 'logrocket-ngrx';\n\n/**\n * LogRocket client.\n */\nexport class LogRocketClient implements LoggerClient {\n\n /**\n * Meta reducer configuration to change what store related items LogRocket records\n */\n private readonly metaReducerOptions?: Options;\n\n /**\n * Constructor.\n * @param appId LogROcket application ID\n * @param initOptions Optional configuration to change what LogRocket records\n * @param metaReducerOptions Optional meta reducer configuration to change what store related items LogRocket records\n */\n constructor(appId: string, initOptions?: any, metaReducerOptions?: Options) {\n const defaultOptions = {\n network: {\n requestSanitizer: (request: Request) => {\n // if the url contains '/purchase/orders'\n if (request.url.toLowerCase().indexOf('/purchase/orders') !== -1) {\n // scrub out the body\n return {...request, body: ''};\n }\n return request;\n }\n }\n };\n\n LogRocket.init(appId, {...defaultOptions, ...initOptions});\n this.metaReducerOptions = metaReducerOptions;\n }\n\n /**\n * @inheritdoc\n */\n public identify(uid: string, vars?: {[key: string]: string}): void {\n LogRocket.identify(uid, vars);\n }\n\n /**\n * @inheritdoc\n */\n public event(name: string, properties?: any): void {\n const trackEvent = properties ? `${name}: ${properties as string}` : name;\n LogRocket.track(trackEvent);\n }\n\n /**\n * @inheritdoc\n */\n public error(message?: any, ...optionalParams: any[]): void {\n LogRocket.error(message, optionalParams);\n }\n\n /**\n * @inheritdoc\n */\n public warn(message?: any, ...optionalParams: any[]): void {\n LogRocket.warn(message, ...optionalParams);\n }\n\n /**\n * @inheritdoc\n */\n public log(message?: any, ...optionalParams: any[]): void {\n LogRocket.log(message, ...optionalParams);\n }\n\n /**\n * @inheritdoc\n */\n public getSessionURL(): string | undefined {\n return LogRocket.sessionURL || undefined;\n }\n\n /**\n * @inheritdoc\n */\n public stopRecording(): void {\n // eslint-disable-next-line no-console\n console.error('Impossible to stop recording with LogRocket');\n }\n\n /**\n * @inheritdoc\n */\n public resumeRecording(): void {\n // eslint-disable-next-line no-console\n console.error('Impossible to restart recording with LogRocket.');\n }\n\n /**\n * @inheritdoc\n */\n public createMetaReducer(): MetaReducer<any, Action> {\n const defaultOptions = {\n actionSanitizer: (action: Action) => {\n // Filter @ngrx actions\n if (action.type.startsWith('@ngrx/')) {\n return null;\n }\n return action;\n }\n };\n return createNgrxMiddleware(LogRocket, {...defaultOptions, ...this.metaReducerOptions});\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"m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AAqB,EAAA;QAChD,SAAS,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,cAAc,CAAC;;AAG3C;;AAEG;IACI,aAAa,GAAA;AAClB,QAAA,OAAO,SAAS,CAAC,UAAU,IAAI,SAAS;;AAG1C;;AAEG;IACI,aAAa,GAAA;;AAElB,QAAA,OAAO,CAAC,KAAK,CAAC,6CAA6C,CAAC;;AAG9D;;AAEG;IACI,eAAe,GAAA;;AAEpB,QAAA,OAAO,CAAC,KAAK,CAAC,iDAAiD,CAAC;;AAGlE;;AAEG;IACI,iBAAiB,GAAA;AACtB,QAAA,MAAM,cAAc,GAAG;AACrB,YAAA,eAAe,EAAE,CAAC,MAAc,KAAI;;gBAElC,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;AACpC,oBAAA,OAAO,IAAI;;AAEb,gBAAA,OAAO,MAAM;;SAEhB;AACD,QAAA,OAAO,oBAAoB,CAAC,SAAS,EAAE,EAAC,GAAG,cAAc,EAAE,GAAG,IAAI,CAAC,kBAAkB,EAAC,CAAC;;AAE1F;;AClHD;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"o3r-logger-services-smartlook-logger-client.mjs","sources":["../../src/services/smartlook-logger-client/smartlook-logger-client.ts","../../src/services/smartlook-logger-client/o3r-logger-services-smartlook-logger-client.ts"],"sourcesContent":["import { Action, ActionReducer, MetaReducer } from '@ngrx/store';\nimport type { LoggerClient } from '@o3r/logger';\n\nimport SmartLook from 'smartlook-client';\n\n/**\n * SmartLook client.\n */\nexport class SmartLookClient implements LoggerClient {\n /**\n * Constructor.\n * @param key SmartLook key\n */\n constructor(key: string) {\n SmartLook.init(key);\n }\n\n /**\n * @inheritdoc\n */\n public identify(uid: string, vars: {[key: string]: string} = {}): void {\n SmartLook.identify(uid, vars);\n }\n\n /**\n * @inheritdoc\n */\n public event(name: string, properties?: any): void {\n SmartLook.track(name, properties);\n }\n\n /**\n * @inheritdoc\n */\n public error(message?: any, ...optionalParams: any[]): void {\n // eslint-disable-next-line no-console\n console.error(message, ...optionalParams);\n }\n\n /**\n * @inheritdoc\n */\n public warn(message?: any, ...optionalParams: any[]): void {\n console.warn(message, ...optionalParams);\n }\n\n /**\n * @inheritdoc\n */\n public log(message?: any, ...optionalParams: any[]): void {\n // eslint-disable-next-line no-console\n console.log(message, ...optionalParams);\n }\n\n /**\n * @inheritdoc\n */\n public getSessionURL(): undefined {\n // eslint-disable-next-line no-console\n console.error('Session URL not implemented in SmartLook client');\n\n return undefined;\n }\n\n /**\n * @inheritdoc\n */\n public stopRecording(): void {\n SmartLook.pause();\n }\n\n /**\n * @inheritdoc\n */\n public resumeRecording(): void {\n SmartLook.resume();\n }\n\n /**\n * @inheritdoc\n */\n public createMetaReducer(): MetaReducer<any, Action> {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const client: SmartLookClient = this;\n // eslint-disable-next-line prefer-arrow/prefer-arrow-functions\n return function debug(reducer: ActionReducer<any>): ActionReducer<any> {\n return (state, action) => {\n // Filter @ngrx actions\n if (!action.type.startsWith('@ngrx/')) {\n client.log('State', state);\n client.log('Action', action);\n }\n\n return reducer(state, action);\n };\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;AAKA;;AAEG;MACU,eAAe,CAAA;AAC1B;;;AAGG;AACH,IAAA,WAAA,CAAY,GAAW,EAAA;AACrB,QAAA,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC
|
|
1
|
+
{"version":3,"file":"o3r-logger-services-smartlook-logger-client.mjs","sources":["../../src/services/smartlook-logger-client/smartlook-logger-client.ts","../../src/services/smartlook-logger-client/o3r-logger-services-smartlook-logger-client.ts"],"sourcesContent":["import { Action, ActionReducer, MetaReducer } from '@ngrx/store';\nimport type { LoggerClient } from '@o3r/logger';\n\nimport SmartLook from 'smartlook-client';\n\n/**\n * SmartLook client.\n */\nexport class SmartLookClient implements LoggerClient {\n /**\n * Constructor.\n * @param key SmartLook key\n */\n constructor(key: string) {\n SmartLook.init(key);\n }\n\n /**\n * @inheritdoc\n */\n public identify(uid: string, vars: {[key: string]: string} = {}): void {\n SmartLook.identify(uid, vars);\n }\n\n /**\n * @inheritdoc\n */\n public event(name: string, properties?: any): void {\n SmartLook.track(name, properties);\n }\n\n /**\n * @inheritdoc\n */\n public error(message?: any, ...optionalParams: any[]): void {\n // eslint-disable-next-line no-console\n console.error(message, ...optionalParams);\n }\n\n /**\n * @inheritdoc\n */\n public warn(message?: any, ...optionalParams: any[]): void {\n console.warn(message, ...optionalParams);\n }\n\n /**\n * @inheritdoc\n */\n public log(message?: any, ...optionalParams: any[]): void {\n // eslint-disable-next-line no-console\n console.log(message, ...optionalParams);\n }\n\n /**\n * @inheritdoc\n */\n public getSessionURL(): undefined {\n // eslint-disable-next-line no-console\n console.error('Session URL not implemented in SmartLook client');\n\n return undefined;\n }\n\n /**\n * @inheritdoc\n */\n public stopRecording(): void {\n SmartLook.pause();\n }\n\n /**\n * @inheritdoc\n */\n public resumeRecording(): void {\n SmartLook.resume();\n }\n\n /**\n * @inheritdoc\n */\n public createMetaReducer(): MetaReducer<any, Action> {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const client: SmartLookClient = this;\n // eslint-disable-next-line prefer-arrow/prefer-arrow-functions\n return function debug(reducer: ActionReducer<any>): ActionReducer<any> {\n return (state, action) => {\n // Filter @ngrx actions\n if (!action.type.startsWith('@ngrx/')) {\n client.log('State', state);\n client.log('Action', action);\n }\n\n return reducer(state, action);\n };\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;AAKA;;AAEG;MACU,eAAe,CAAA;AAC1B;;;AAGG;AACH,IAAA,WAAA,CAAY,GAAW,EAAA;AACrB,QAAA,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC;;AAGrB;;AAEG;AACI,IAAA,QAAQ,CAAC,GAAW,EAAE,IAAA,GAAg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E,MAAM,CAAC;AAC/B,aAAC;AACH,SAAC;;AAEJ;;ACjGD;;AAEG;;;;"}
|
package/fesm2022/o3r-logger.mjs
CHANGED
|
@@ -187,10 +187,10 @@ class LoggerService {
|
|
|
187
187
|
.filter((metaReducer) => !!metaReducer);
|
|
188
188
|
return metaReducers.length <= 1 ? metaReducers[0] : metaReducers;
|
|
189
189
|
}
|
|
190
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
191
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
190
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: LoggerService, deps: [{ token: LOGGER_CLIENT_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
191
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: LoggerService, providedIn: 'root' }); }
|
|
192
192
|
}
|
|
193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: LoggerService, decorators: [{
|
|
194
194
|
type: Injectable,
|
|
195
195
|
args: [{
|
|
196
196
|
providedIn: 'root'
|
|
@@ -218,13 +218,13 @@ class LoggerModule {
|
|
|
218
218
|
]
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
222
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.
|
|
223
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.
|
|
221
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: LoggerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
222
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.9", ngImport: i0, type: LoggerModule }); }
|
|
223
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: LoggerModule, providers: [
|
|
224
224
|
LoggerService
|
|
225
225
|
] }); }
|
|
226
226
|
}
|
|
227
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: LoggerModule, decorators: [{
|
|
228
228
|
type: NgModule,
|
|
229
229
|
args: [{
|
|
230
230
|
providers: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"o3r-logger.mjs","sources":["../../src/services/logger/logger.noop.ts","../../src/services/logger/logger.console.ts","../../src/services/logger/logger.token.ts","../../src/services/logger/logger.service.ts","../../src/services/logger/logger.module.ts","../../src/o3r-logger.ts"],"sourcesContent":["/* eslint-disable no-console */\nimport type { Action, ActionReducer, MetaReducer } from '@ngrx/store';\nimport type { LoggerClient } from './logger.client';\n\n/**\n * Console logger used to display the logs in the browser console\n * Should be used in development mode.\n */\nexport const noopLogger: LoggerClient = {\n identify: () => {},\n event: () => {},\n getSessionURL: () => undefined,\n stopRecording: () => {},\n resumeRecording: () => {},\n error: console.error,\n warn: console.warn,\n debug: console.debug,\n info: console.info,\n log: console.log,\n createMetaReducer: (): MetaReducer<any, Action> => (reducer: ActionReducer<any>): ActionReducer<any> => reducer\n};\n","/* eslint-disable no-console */\nimport { Action, ActionReducer, MetaReducer } from '@ngrx/store';\nimport type { LoggerClient } from './logger.client';\n\n/**\n * Console logger used to display the logs in the browser console\n * Should be used in development mode.\n */\nexport class ConsoleLogger implements LoggerClient {\n /** @inheritdoc */\n public error = console.error;\n\n /** @inheritdoc */\n public warn = console.warn;\n\n /** @inheritdoc */\n public debug = console.debug;\n\n /** @inheritdoc */\n public info = console.info;\n\n /** @inheritdoc */\n public log = console.log;\n\n /** @inheritdoc */\n public identify(uuid: string) {\n this.debug('logging identify function called');\n this.log(`Identify userd ${uuid}`);\n }\n\n /** @inheritdoc */\n public event(name: string, properties?: any) {\n this.debug('logging event function called');\n this.log('event:', name);\n if (properties) {\n this.log('properties:', properties);\n }\n }\n\n /** @inheritdoc */\n public getSessionURL(): undefined {\n this.debug('logging getSessionURL function called');\n return undefined;\n }\n\n /** @inheritdoc */\n public stopRecording() {\n this.debug('logging stopRecording function called');\n }\n\n /** @inheritdoc */\n public resumeRecording() {\n this.debug('logging resumeRecording function called');\n }\n\n /** @inheritdoc */\n public createMetaReducer(): MetaReducer<any, Action> {\n this.debug('logging createMetaReducer function called but a noop reducer is returned for the console logger');\n return (reducer: ActionReducer<any>): ActionReducer<any> => reducer;\n }\n}\n","import { InjectionToken } from '@angular/core';\nimport { LoggerClient } from './logger.client';\n\nexport const LOGGER_CLIENT_TOKEN: InjectionToken<LoggerClient | LoggerClient[]> = new InjectionToken('Logger Client injection token');\n","import { Inject, Injectable, Optional } from '@angular/core';\nimport { Action, MetaReducer } from '@ngrx/store';\nimport type { Logger } from '@o3r/core';\nimport { LoggerClient } from './logger.client';\nimport { ConsoleLogger } from './logger.console';\nimport { LOGGER_CLIENT_TOKEN } from './logger.token';\n\n/**\n * Logger service\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class LoggerService implements Logger {\n\n /** Loggers */\n private readonly clients: LoggerClient[];\n\n /**\n * Record the recording status to make sure that new clients recording status will be consistent with the service\n */\n private recordingState: 'default' | 'resumed' | 'stopped' = 'default';\n\n constructor(@Optional() @Inject(LOGGER_CLIENT_TOKEN) clients?: LoggerClient | LoggerClient[]) {\n this.clients = clients ? (Array.isArray(clients) ? clients : [clients]) : [new ConsoleLogger()];\n }\n\n /**\n * Identify a user.\n * @param uid Unique identifier for the current user\n * @param vars Addition information about the user\n */\n public identify(uid: string, vars?: {[key: string]: string}) {\n this.clients.forEach((client) => client.identify(uid, vars));\n }\n\n /**\n * Log custom event.\n * @param name Name of the event to log\n * @param properties Additional properties\n */\n public event(name: string, properties?: any): void {\n this.clients.forEach((client) => client.event(name, properties));\n }\n\n /**\n * Generate a link to the replay of the current session.\n */\n public getClientSessionURL(): string | string[] | undefined {\n const sessionUrls = this.clients\n .map((client) => client.getSessionURL())\n .filter((sessionUrl): sessionUrl is string => !!sessionUrl);\n return sessionUrls.length <= 1 ? sessionUrls[0] : sessionUrls;\n }\n\n /**\n * Register a new client to the logger service\n * @param client\n */\n public registerClient(client: LoggerClient) {\n if (this.clients.indexOf(client) > -1) {\n this.warn(`Client ${client.constructor.name} already registered`);\n return;\n }\n if (this.recordingState === 'resumed') {\n client.resumeRecording();\n } else if (this.recordingState === 'stopped') {\n client.stopRecording();\n }\n this.clients.push(client);\n }\n\n /**\n * Stop recording.\n */\n public stopClientRecording(): void {\n this.recordingState = 'stopped';\n this.clients.forEach((client) => client.stopRecording());\n }\n\n /**\n * Resume recording.\n */\n public resumeClientRecording(): void {\n this.recordingState = 'resumed';\n this.clients.forEach((client) => client.resumeRecording());\n }\n\n /**\n * Report an error\n * @param message\n * @param optionalParams\n */\n public error(message?: any, ...optionalParams: any[]) {\n this.clients.forEach((client) => client.error(message, ...optionalParams));\n }\n\n /**\n * Report a warning\n * @param message\n * @param optionalParams\n */\n public warn(message?: any, ...optionalParams: any[]) {\n this.clients.forEach((client) => client.warn(message, ...optionalParams));\n }\n\n /**\n * Log a message\n * @param message\n * @param optionalParams\n */\n public log(message?: any, ...optionalParams: any[]) {\n this.clients.forEach((client) => client.log(message, ...optionalParams));\n }\n\n /**\n * Log a message\n * @param message\n * @param optionalParams\n */\n public info(message?: any, ...optionalParams: any[]): void {\n this.clients.forEach((client) => (client.info ? client.info(message, ...optionalParams) : client.log(message, ...optionalParams)));\n }\n\n /**\n * Log a debug message\n * @param message\n * @param optionalParams\n */\n public debug(message?: any, ...optionalParams: any[]) {\n this.clients.forEach((client) => client.debug?.(message, ...optionalParams));\n }\n\n /**\n * Create a meta reducer to log ngrx store.\n */\n public createMetaReducer(): MetaReducer<any, Action> | MetaReducer<any, Action>[] | undefined {\n const metaReducers = this.clients\n .map((client) => client.createMetaReducer())\n .filter((metaReducer): metaReducer is MetaReducer<any, Action> => !!metaReducer);\n return metaReducers.length <= 1 ? metaReducers[0] : metaReducers;\n }\n}\n","import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { LoggerClient } from './logger.client';\nimport { ConsoleLogger } from './logger.console';\nimport { LoggerService } from './logger.service';\nimport { LOGGER_CLIENT_TOKEN } from './logger.token';\n\n@NgModule({\n providers: [\n LoggerService\n ]\n})\nexport class LoggerModule {\n public static forRoot(...clients: LoggerClient[]): ModuleWithProviders<LoggerModule> {\n if (clients.length < 1) {\n clients = [new ConsoleLogger()];\n }\n return {\n ngModule: LoggerModule,\n providers: [\n {\n provide: LOGGER_CLIENT_TOKEN,\n useValue: clients,\n multi: false\n }\n ]\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;AAIA;;;AAGG;AACU,MAAA,UAAU,GAAiB;AACtC,IAAA,QAAQ,EAAE,MAAK,GAAG;AAClB,IAAA,KAAK,EAAE,MAAK,GAAG;AACf,IAAA,aAAa,EAAE,MAAM,SAAS;AAC9B,IAAA,aAAa,EAAE,MAAK,GAAG;AACvB,IAAA,eAAe,EAAE,MAAK,GAAG;IACzB,KAAK,EAAE,OAAO,CAAC,KAAK;IACpB,IAAI,EAAE,OAAO,CAAC,IAAI;IAClB,KAAK,EAAE,OAAO,CAAC,KAAK;IACpB,IAAI,EAAE,OAAO,CAAC,IAAI;IAClB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AA,CAAA,CAAA,EAAA;;2FAEU,YAAY,EAAA,UAAA,EAAA,CAAA;kBALxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,SAAS,EAAE;wBACT,aAAa;AACd,qBAAA;AACF,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"o3r-logger.mjs","sources":["../../src/services/logger/logger.noop.ts","../../src/services/logger/logger.console.ts","../../src/services/logger/logger.token.ts","../../src/services/logger/logger.service.ts","../../src/services/logger/logger.module.ts","../../src/o3r-logger.ts"],"sourcesContent":["/* eslint-disable no-console */\nimport type { Action, ActionReducer, MetaReducer } from '@ngrx/store';\nimport type { LoggerClient } from './logger.client';\n\n/**\n * Console logger used to display the logs in the browser console\n * Should be used in development mode.\n */\nexport const noopLogger: LoggerClient = {\n identify: () => {},\n event: () => {},\n getSessionURL: () => undefined,\n stopRecording: () => {},\n resumeRecording: () => {},\n error: console.error,\n warn: console.warn,\n debug: console.debug,\n info: console.info,\n log: console.log,\n createMetaReducer: (): MetaReducer<any, Action> => (reducer: ActionReducer<any>): ActionReducer<any> => reducer\n};\n","/* eslint-disable no-console */\nimport { Action, ActionReducer, MetaReducer } from '@ngrx/store';\nimport type { LoggerClient } from './logger.client';\n\n/**\n * Console logger used to display the logs in the browser console\n * Should be used in development mode.\n */\nexport class ConsoleLogger implements LoggerClient {\n /** @inheritdoc */\n public error = console.error;\n\n /** @inheritdoc */\n public warn = console.warn;\n\n /** @inheritdoc */\n public debug = console.debug;\n\n /** @inheritdoc */\n public info = console.info;\n\n /** @inheritdoc */\n public log = console.log;\n\n /** @inheritdoc */\n public identify(uuid: string) {\n this.debug('logging identify function called');\n this.log(`Identify userd ${uuid}`);\n }\n\n /** @inheritdoc */\n public event(name: string, properties?: any) {\n this.debug('logging event function called');\n this.log('event:', name);\n if (properties) {\n this.log('properties:', properties);\n }\n }\n\n /** @inheritdoc */\n public getSessionURL(): undefined {\n this.debug('logging getSessionURL function called');\n return undefined;\n }\n\n /** @inheritdoc */\n public stopRecording() {\n this.debug('logging stopRecording function called');\n }\n\n /** @inheritdoc */\n public resumeRecording() {\n this.debug('logging resumeRecording function called');\n }\n\n /** @inheritdoc */\n public createMetaReducer(): MetaReducer<any, Action> {\n this.debug('logging createMetaReducer function called but a noop reducer is returned for the console logger');\n return (reducer: ActionReducer<any>): ActionReducer<any> => reducer;\n }\n}\n","import { InjectionToken } from '@angular/core';\nimport { LoggerClient } from './logger.client';\n\nexport const LOGGER_CLIENT_TOKEN: InjectionToken<LoggerClient | LoggerClient[]> = new InjectionToken('Logger Client injection token');\n","import { Inject, Injectable, Optional } from '@angular/core';\nimport { Action, MetaReducer } from '@ngrx/store';\nimport type { Logger } from '@o3r/core';\nimport { LoggerClient } from './logger.client';\nimport { ConsoleLogger } from './logger.console';\nimport { LOGGER_CLIENT_TOKEN } from './logger.token';\n\n/**\n * Logger service\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class LoggerService implements Logger {\n\n /** Loggers */\n private readonly clients: LoggerClient[];\n\n /**\n * Record the recording status to make sure that new clients recording status will be consistent with the service\n */\n private recordingState: 'default' | 'resumed' | 'stopped' = 'default';\n\n constructor(@Optional() @Inject(LOGGER_CLIENT_TOKEN) clients?: LoggerClient | LoggerClient[]) {\n this.clients = clients ? (Array.isArray(clients) ? clients : [clients]) : [new ConsoleLogger()];\n }\n\n /**\n * Identify a user.\n * @param uid Unique identifier for the current user\n * @param vars Addition information about the user\n */\n public identify(uid: string, vars?: {[key: string]: string}) {\n this.clients.forEach((client) => client.identify(uid, vars));\n }\n\n /**\n * Log custom event.\n * @param name Name of the event to log\n * @param properties Additional properties\n */\n public event(name: string, properties?: any): void {\n this.clients.forEach((client) => client.event(name, properties));\n }\n\n /**\n * Generate a link to the replay of the current session.\n */\n public getClientSessionURL(): string | string[] | undefined {\n const sessionUrls = this.clients\n .map((client) => client.getSessionURL())\n .filter((sessionUrl): sessionUrl is string => !!sessionUrl);\n return sessionUrls.length <= 1 ? sessionUrls[0] : sessionUrls;\n }\n\n /**\n * Register a new client to the logger service\n * @param client\n */\n public registerClient(client: LoggerClient) {\n if (this.clients.indexOf(client) > -1) {\n this.warn(`Client ${client.constructor.name} already registered`);\n return;\n }\n if (this.recordingState === 'resumed') {\n client.resumeRecording();\n } else if (this.recordingState === 'stopped') {\n client.stopRecording();\n }\n this.clients.push(client);\n }\n\n /**\n * Stop recording.\n */\n public stopClientRecording(): void {\n this.recordingState = 'stopped';\n this.clients.forEach((client) => client.stopRecording());\n }\n\n /**\n * Resume recording.\n */\n public resumeClientRecording(): void {\n this.recordingState = 'resumed';\n this.clients.forEach((client) => client.resumeRecording());\n }\n\n /**\n * Report an error\n * @param message\n * @param optionalParams\n */\n public error(message?: any, ...optionalParams: any[]) {\n this.clients.forEach((client) => client.error(message, ...optionalParams));\n }\n\n /**\n * Report a warning\n * @param message\n * @param optionalParams\n */\n public warn(message?: any, ...optionalParams: any[]) {\n this.clients.forEach((client) => client.warn(message, ...optionalParams));\n }\n\n /**\n * Log a message\n * @param message\n * @param optionalParams\n */\n public log(message?: any, ...optionalParams: any[]) {\n this.clients.forEach((client) => client.log(message, ...optionalParams));\n }\n\n /**\n * Log a message\n * @param message\n * @param optionalParams\n */\n public info(message?: any, ...optionalParams: any[]): void {\n this.clients.forEach((client) => (client.info ? client.info(message, ...optionalParams) : client.log(message, ...optionalParams)));\n }\n\n /**\n * Log a debug message\n * @param message\n * @param optionalParams\n */\n public debug(message?: any, ...optionalParams: any[]) {\n this.clients.forEach((client) => client.debug?.(message, ...optionalParams));\n }\n\n /**\n * Create a meta reducer to log ngrx store.\n */\n public createMetaReducer(): MetaReducer<any, Action> | MetaReducer<any, Action>[] | undefined {\n const metaReducers = this.clients\n .map((client) => client.createMetaReducer())\n .filter((metaReducer): metaReducer is MetaReducer<any, Action> => !!metaReducer);\n return metaReducers.length <= 1 ? metaReducers[0] : metaReducers;\n }\n}\n","import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { LoggerClient } from './logger.client';\nimport { ConsoleLogger } from './logger.console';\nimport { LoggerService } from './logger.service';\nimport { LOGGER_CLIENT_TOKEN } from './logger.token';\n\n@NgModule({\n providers: [\n LoggerService\n ]\n})\nexport class LoggerModule {\n public static forRoot(...clients: LoggerClient[]): ModuleWithProviders<LoggerModule> {\n if (clients.length < 1) {\n clients = [new ConsoleLogger()];\n }\n return {\n ngModule: LoggerModule,\n providers: [\n {\n provide: LOGGER_CLIENT_TOKEN,\n useValue: clients,\n multi: false\n }\n ]\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;AAIA;;;AAGG;AACU,MAAA,UAAU,GAAiB;AACtC,IAAA,QAAQ,EAAE,MAAK,GAAG;AAClB,IAAA,KAAK,EAAE,MAAK,GAAG;AACf,IAAA,aAAa,EAAE,MAAM,SAAS;AAC9B,IAAA,aAAa,EAAE,MAAK,GAAG;AACvB,IAAA,eAAe,EAAE,MAAK,GAAG;IACzB,KAAK,EAAE,OAAO,CAAC,KAAK;IACpB,IAAI,EAAE,OAAO,CAAC,IAAI;IAClB,KAAK,EAAE,OAAO,CAAC,KAAK;IACpB,IAAI,EAAE,OAAO,CAAC,IAAI;IAClB,GAAG,EAAE,OAAO,CAAC,GAAG;IAChB,iBAAiB,EAAE,MAAgC,CAAC,OAA2B,KAAyB;;;ACf1G;;;AAGG;MACU,aAAa,CAAA;AAA1B,IAAA,WAAA,GAAA;;AAES,QAAA,IAAA,CAAA,KAAK,GAAG,OAAO,CAAC,KAAK;;AAGrB,QAAA,IAAA,CAAA,IAAI,GAAG,OAAO,CAAC,IAAI;;AAGnB,QAAA,IAAA,CAAA,KAAK,GAAG,OAAO,CAAC,KAAK;;AAGrB,QAAA,IAAA,CAAA,IAAI,GAAG,OAAO,CAAC,IAAI;;AAGnB,QAAA,IAAA,CAAA,GAAG,GAAG,OAAO,CAAC,GAAG;;;AAGjB,IAAA,QAAQ,CAAC,IAAY,EAAA;AAC1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EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;kIAAZ,YAAY,EAAA,CAAA,CAAA;AAAZ,uBAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,EAJZ,SAAA,EAAA;YACT;AACD,SAAA,EAAA,CAAA,CAAA;;2FAEU,YAAY,EAAA,UAAA,EAAA,CAAA;kBALxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,SAAS,EAAE;wBACT;AACD;AACF,iBAAA;;;ACVD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/logger",
|
|
3
|
-
"version": "11.4.0-
|
|
3
|
+
"version": "11.4.0-rc.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"@angular/platform-browser-dynamic": "~18.2.0",
|
|
16
16
|
"@fullstory/browser": "^2.0.0",
|
|
17
17
|
"@ngrx/store": "~18.0.0",
|
|
18
|
-
"@o3r/core": "^11.4.0-
|
|
19
|
-
"@o3r/schematics": "^11.4.0-
|
|
18
|
+
"@o3r/core": "^11.4.0-rc.0",
|
|
19
|
+
"@o3r/schematics": "^11.4.0-rc.0",
|
|
20
20
|
"@schematics/angular": "~18.2.0",
|
|
21
21
|
"logrocket": "~8.1.0",
|
|
22
22
|
"logrocket-ngrx": "~0.2.1",
|
|
@@ -68,17 +68,17 @@
|
|
|
68
68
|
"esm": "./esm2022/services/fullstory-logger-client/o3r-logger-services-fullstory-logger-client.mjs",
|
|
69
69
|
"default": "./fesm2022/o3r-logger-services-fullstory-logger-client.mjs"
|
|
70
70
|
},
|
|
71
|
-
"./services/smartlook-logger-client": {
|
|
72
|
-
"types": "./services/smartlook-logger-client/index.d.ts",
|
|
73
|
-
"esm2022": "./esm2022/services/smartlook-logger-client/o3r-logger-services-smartlook-logger-client.mjs",
|
|
74
|
-
"esm": "./esm2022/services/smartlook-logger-client/o3r-logger-services-smartlook-logger-client.mjs",
|
|
75
|
-
"default": "./fesm2022/o3r-logger-services-smartlook-logger-client.mjs"
|
|
76
|
-
},
|
|
77
71
|
"./services/logrocket-logger-client": {
|
|
78
72
|
"types": "./services/logrocket-logger-client/index.d.ts",
|
|
79
73
|
"esm2022": "./esm2022/services/logrocket-logger-client/o3r-logger-services-logrocket-logger-client.mjs",
|
|
80
74
|
"esm": "./esm2022/services/logrocket-logger-client/o3r-logger-services-logrocket-logger-client.mjs",
|
|
81
75
|
"default": "./fesm2022/o3r-logger-services-logrocket-logger-client.mjs"
|
|
76
|
+
},
|
|
77
|
+
"./services/smartlook-logger-client": {
|
|
78
|
+
"types": "./services/smartlook-logger-client/index.d.ts",
|
|
79
|
+
"esm2022": "./esm2022/services/smartlook-logger-client/o3r-logger-services-smartlook-logger-client.mjs",
|
|
80
|
+
"esm": "./esm2022/services/smartlook-logger-client/o3r-logger-services-smartlook-logger-client.mjs",
|
|
81
|
+
"default": "./fesm2022/o3r-logger-services-smartlook-logger-client.mjs"
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
"sideEffects": false,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAEA,kCAAkC;AAElC,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;AAE5E,MAAM,0BAA0B,GAAG,CAAC,MAA2C,EAAE,EAAE,CAAC,CAAC,MAAW,EAAE,EAAE;IAClG,MAAM,CAAC,KAAK,CAAC;;oDAEqC,CAAC,CAAC;IACpD,MAAM,MAAM,CAAC;AACf,CAAC,CAAC;AAEF;;;GAGG;AACH,SAAS,OAAO,CAAC,OAA8B;IAC7C,kBAAkB;IAClB,OAAO,KAAK,EAAE,IAAI,EAAE,EAAE;QACpB,MAAM,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,GAAG,2CAAa,iBAAiB,EAAC,CAAC;QACvF,OAAO,iBAAiB,CAAC;YACvB,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,YAAY,EAAE,uBAAuB,CAAC,eAAe,EAAE,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC;SACpH,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAED;;;GAGG;AACI,MAAM,KAAK,GAAG,CAAC,OAA8B,EAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;IACrF,MAAM,EAAE,qCAAqC,EAAE,GAAG,MAAM,qCAAO,iBAAiB,GAAE,KAAK,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5H,OAAO,qCAAqC,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;AACjE,CAAC,CAAC;AAHW,QAAA,KAAK,SAGhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":""}
|