@o3r/logger 14.1.0-prerelease.4 → 14.1.0-prerelease.41

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.
@@ -170,10 +170,10 @@ class LoggerService {
170
170
  .filter((metaReducer) => !!metaReducer);
171
171
  return metaReducers.length <= 1 ? metaReducers[0] : metaReducers;
172
172
  }
173
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: LoggerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
174
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: LoggerService, providedIn: 'root' }); }
173
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LoggerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
174
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LoggerService, providedIn: 'root' }); }
175
175
  }
176
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: LoggerService, decorators: [{
176
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LoggerService, decorators: [{
177
177
  type: Injectable,
178
178
  args: [{
179
179
  providedIn: 'root'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/logger",
3
- "version": "14.1.0-prerelease.4",
3
+ "version": "14.1.0-prerelease.41",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -16,8 +16,8 @@
16
16
  "@angular/platform-browser-dynamic": "^21.0.0",
17
17
  "@fullstory/browser": "^2.0.0",
18
18
  "@ngrx/store": "^21.0.0",
19
- "@o3r/core": "~14.1.0-prerelease.4",
20
- "@o3r/schematics": "~14.1.0-prerelease.4",
19
+ "@o3r/core": "~14.1.0-prerelease.41",
20
+ "@o3r/schematics": "~14.1.0-prerelease.41",
21
21
  "@schematics/angular": "^21.0.0",
22
22
  "logrocket": "^11.0.0",
23
23
  "logrocket-ngrx": "^0.2.1",
@@ -55,11 +55,11 @@
55
55
  }
56
56
  },
57
57
  "dependencies": {
58
- "@o3r/schematics": "~14.1.0-prerelease.4",
58
+ "@o3r/schematics": "~14.1.0-prerelease.41",
59
59
  "tslib": "^2.6.2"
60
60
  },
61
61
  "engines": {
62
- "node": "^20.19.0 || ^22.17.0 || ^24.0.0"
62
+ "node": "^22.17.0 || ^24.0.0"
63
63
  },
64
64
  "schematics": "./collection.json",
65
65
  "module": "fesm2022/o3r-logger.mjs",
package/index.d.ts DELETED
@@ -1,214 +0,0 @@
1
- import { MetaReducer, Action } from '@ngrx/store';
2
- import { Logger } from '@o3r/core';
3
- export { Logger } from '@o3r/core';
4
- import * as i0 from '@angular/core';
5
- import { ModuleWithProviders, InjectionToken } from '@angular/core';
6
-
7
- /**
8
- * Third party client interface.
9
- */
10
- interface LoggerClient extends Logger {
11
- /**
12
- * Identify a user.
13
- * @param uid Unique identifier for the current user
14
- * @param vars Addition information about the user
15
- */
16
- identify(uid: string, vars?: {
17
- [key: string]: string;
18
- }): void;
19
- /**
20
- * Log custom event.
21
- * @param name Name of the event to log
22
- * @param properties Additional properties
23
- */
24
- event(name: string, properties?: any): void;
25
- /**
26
- * Generate a link to the replay of the current session.
27
- */
28
- getSessionURL(): string | undefined;
29
- /**
30
- * Stop recording.
31
- */
32
- stopRecording(): void;
33
- /**
34
- * Resume recording.
35
- */
36
- resumeRecording(): void;
37
- /**
38
- * Log an error.
39
- * @param message Message to log
40
- * @param optionalParams Optional parameters to log
41
- */
42
- error(message?: any, ...optionalParams: any[]): void;
43
- /**
44
- * Log a warning.
45
- * @param message Message to log
46
- * @param optionalParams Optional parameters to log
47
- */
48
- warn(message?: any, ...optionalParams: any[]): void;
49
- /**
50
- * Log a message.
51
- * @param message Message to log
52
- * @param optionalParams Optional parameters to log
53
- */
54
- info?(message?: any, ...optionalParams: any[]): void;
55
- /**
56
- * Log a message.
57
- * @param message Message to log
58
- * @param optionalParams Optional parameters to log
59
- */
60
- log(message?: any, ...optionalParams: any[]): void;
61
- /**
62
- * Log a debug message.
63
- * @param message Message to log
64
- * @param optionalParams Optional parameters to log
65
- */
66
- debug?(message?: any, ...optionalParams: any[]): void;
67
- /**
68
- * Create a meta reducer to log ngrx store.
69
- */
70
- createMetaReducer(): MetaReducer<any, Action>;
71
- }
72
-
73
- /**
74
- * Console logger used to display the logs in the browser console
75
- * Should be used in development mode.
76
- */
77
- declare class ConsoleLogger implements LoggerClient {
78
- /** @inheritdoc */
79
- error: (...data: any[]) => void;
80
- /** @inheritdoc */
81
- warn: (...data: any[]) => void;
82
- /** @inheritdoc */
83
- debug: (...data: any[]) => void;
84
- /** @inheritdoc */
85
- info: (...data: any[]) => void;
86
- /** @inheritdoc */
87
- log: (...data: any[]) => void;
88
- /** @inheritdoc */
89
- identify(uuid: string): void;
90
- /** @inheritdoc */
91
- event(name: string, properties?: any): void;
92
- /** @inheritdoc */
93
- getSessionURL(): undefined;
94
- /** @inheritdoc */
95
- stopRecording(): void;
96
- /** @inheritdoc */
97
- resumeRecording(): void;
98
- /** @inheritdoc */
99
- createMetaReducer(): MetaReducer<any, Action>;
100
- }
101
-
102
- /**
103
- * @deprecated will be removed in v14.
104
- */
105
- declare class LoggerModule {
106
- /**
107
- * Provide logger at application level
108
- * By default {@link ConsoleLogger} will be used if nothing is specified
109
- * @param {...any} clients Registered {@link https://github.com/AmadeusITGroup/otter/blob/main/docs/logger/LOGS.md | Logger Client}
110
- * @deprecated Please use {@link provideLogger} instead, will be removed in v14.
111
- */
112
- static forRoot(...clients: LoggerClient[]): ModuleWithProviders<LoggerModule>;
113
- static ɵfac: i0.ɵɵFactoryDeclaration<LoggerModule, never>;
114
- static ɵmod: i0.ɵɵNgModuleDeclaration<LoggerModule, never, never, never>;
115
- static ɵinj: i0.ɵɵInjectorDeclaration<LoggerModule>;
116
- }
117
- /**
118
- * Provide logger for the application
119
- * By default {@link ConsoleLogger} will be used if nothing is specified
120
- * @param clients Registered {@link https://github.com/AmadeusITGroup/otter/blob/main/docs/logger/LOGS.md | Logger Client}
121
- */
122
- declare function provideLogger(...clients: LoggerClient[]): i0.EnvironmentProviders;
123
-
124
- /**
125
- * Console logger used to display the logs in the browser console
126
- * Should be used in development mode.
127
- */
128
- declare const noopLogger: Readonly<LoggerClient>;
129
-
130
- /**
131
- * Logger service
132
- */
133
- declare class LoggerService implements Logger {
134
- /** Loggers */
135
- private readonly clients;
136
- /**
137
- * Record the recording status to make sure that new clients recording status will be consistent with the service
138
- */
139
- private recordingState;
140
- constructor();
141
- /**
142
- * Identify a user.
143
- * @param uid Unique identifier for the current user
144
- * @param vars Addition information about the user
145
- */
146
- identify(uid: string, vars?: {
147
- [key: string]: string;
148
- }): void;
149
- /**
150
- * Log custom event.
151
- * @param name Name of the event to log
152
- * @param properties Additional properties
153
- */
154
- event(name: string, properties?: any): void;
155
- /**
156
- * Generate a link to the replay of the current session.
157
- */
158
- getClientSessionURL(): string | string[] | undefined;
159
- /**
160
- * Register a new client to the logger service
161
- * @param client
162
- */
163
- registerClient(client: LoggerClient): void;
164
- /**
165
- * Stop recording.
166
- */
167
- stopClientRecording(): void;
168
- /**
169
- * Resume recording.
170
- */
171
- resumeClientRecording(): void;
172
- /**
173
- * Report an error
174
- * @param message
175
- * @param optionalParams
176
- */
177
- error(message?: any, ...optionalParams: any[]): void;
178
- /**
179
- * Report a warning
180
- * @param message
181
- * @param optionalParams
182
- */
183
- warn(message?: any, ...optionalParams: any[]): void;
184
- /**
185
- * Log a message
186
- * @param message
187
- * @param optionalParams
188
- */
189
- log(message?: any, ...optionalParams: any[]): void;
190
- /**
191
- * Log a message
192
- * @param message
193
- * @param optionalParams
194
- */
195
- info(message?: any, ...optionalParams: any[]): void;
196
- /**
197
- * Log a debug message
198
- * @param message
199
- * @param optionalParams
200
- */
201
- debug(message?: any, ...optionalParams: any[]): void;
202
- /**
203
- * Create a meta reducer to log ngrx store.
204
- */
205
- createMetaReducer(): MetaReducer<any, Action> | MetaReducer<any, Action>[] | undefined;
206
- static ɵfac: i0.ɵɵFactoryDeclaration<LoggerService, never>;
207
- static ɵprov: i0.ɵɵInjectableDeclaration<LoggerService>;
208
- }
209
-
210
- declare const LOGGER_CLIENT_TOKEN: InjectionToken<LoggerClient | LoggerClient[]>;
211
-
212
- export { ConsoleLogger, LOGGER_CLIENT_TOKEN, LoggerModule, LoggerService, noopLogger, provideLogger };
213
- export type { LoggerClient };
214
- //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sources":["../src/services/logger/logger-client.ts","../src/services/logger/logger-console.ts","../src/services/logger/logger-module.ts","../src/services/logger/logger-noop.ts","../src/services/logger/logger-service.ts","../src/services/logger/logger-token.ts"],"sourcesContent":[null,null,null,null,null,null],"names":["_angular_core"],"mappings":";;;;;;AAQA;;AAEG;AACG,UAAA,YAAA,SAAA,MAAA;AACJ;;;;AAIG;AACH;AAA+B;AAAuB;AAEtD;;;;AAIG;;AAGH;;AAEG;AACH;AAEA;;AAEG;;AAGH;;AAEG;;AAGH;;;;AAIG;AACH;AAEA;;;;AAIG;AACH;AAEA;;;;AAIG;AACH;AAEA;;;;AAIG;AACH;AAEA;;;;AAIG;AACH;AAEA;;AAEG;AACH,yBAAA,WAAA,MAAA,MAAA;AACD;;ACtED;;;AAGG;AACH,cAAA,aAAA,YAAA,YAAA;;AAES;;AAGA;;AAGA;;AAGA;;AAGA;;;;;;AAkBA;;;;;;AAgBA,yBAAA,WAAA,MAAA,MAAA;AAIR;;AChDD;;AAEG;AACH,cAAA,YAAA;AAME;;;;;AAKG;;;;;AAgBJ;AAED;;;;AAIG;AACH,iBAAA,aAAA,aAAA,YAAA,KAAwDA,EAAA,CAAA,oBAAA;;AC7CxD;;;AAGG;AACH,cAAA,UAAA,EAAA,QAAA,CAAA,YAAA;;ACOA;;AAEG;AACH,cAAA,aAAA,YAAA,MAAA;;AAKE;AAEA;;AAEG;;;AASH;;;;AAIG;AACI;AAA+B;AAAuB;AAI7D;;;;AAIG;;AAKH;;AAEG;AACI;AAOP;;;AAGG;;AAcH;;AAEG;AACI;AAKP;;AAEG;AACI;AAKP;;;;AAIG;;AAKH;;;;AAIG;;AAKH;;;;AAIG;;AAKH;;;;AAIG;AACI;AAIP;;;;AAIG;;AAKH;;AAEG;AACI,yBAAA,WAAA,MAAA,MAAA,IAAA,WAAA,MAAA,MAAA;;;AAMR;;ACtJD,cAAA,mBAAA,EAAA,cAAA,CAAA,YAAA,GAAA,YAAA;;;;"}
@@ -1,54 +0,0 @@
1
- import { MetaReducer, Action } from '@ngrx/store';
2
- import { LoggerClient } from '@o3r/logger';
3
-
4
- /**
5
- * FullStory client.
6
- */
7
- declare class FullStoryClient implements LoggerClient {
8
- /**
9
- * Constructor.
10
- * @param orgId FullStory organization ID
11
- */
12
- constructor(orgId: string);
13
- /**
14
- * @inheritdoc
15
- */
16
- identify(uid: string, vars?: {
17
- [key: string]: string;
18
- }): void;
19
- /**
20
- * @inheritdoc
21
- */
22
- event(name: string, properties?: any): void;
23
- /**
24
- * @inheritdoc
25
- */
26
- error(message?: any, ...optionalParams: any[]): void;
27
- /**
28
- * @inheritdoc
29
- */
30
- warn(message?: any, ...optionalParams: any[]): void;
31
- /**
32
- * @inheritdoc
33
- */
34
- log(message?: any, ...optionalParams: any[]): void;
35
- /**
36
- * @inheritdoc
37
- */
38
- getSessionURL(): string | undefined;
39
- /**
40
- * @inheritdoc
41
- */
42
- stopRecording(): void;
43
- /**
44
- * @inheritdoc
45
- */
46
- resumeRecording(): void;
47
- /**
48
- * @inheritdoc
49
- */
50
- createMetaReducer(): MetaReducer<any, Action>;
51
- }
52
-
53
- export { FullStoryClient };
54
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../../src/services/fullstory-logger-client/fullstory-logger-client.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAaA;;AAEG;AACH,cAAA,eAAA,YAAA,YAAA;AACE;;;AAGG;AACS;AAIZ;;AAEG;AACI;AAA+B;AAAuB;AAQ7D;;AAEG;;AAKH;;AAEG;AACI;AAIP;;AAEG;AACI;AAIP;;AAEG;AACI;AAIP;;AAEG;;AAKH;;AAEG;AACI;AAIP;;AAEG;AACI;AAIP;;AAEG;AACI,yBAAA,WAAA,MAAA,MAAA;AAgBR;;;;"}
@@ -1,61 +0,0 @@
1
- import { MetaReducer, Action } from '@ngrx/store';
2
- import { Options } from 'logrocket-ngrx';
3
- import { LoggerClient } from '@o3r/logger';
4
-
5
- /**
6
- * LogRocket client.
7
- */
8
- declare class LogRocketClient implements LoggerClient {
9
- /**
10
- * Meta reducer configuration to change what store related items LogRocket records
11
- */
12
- private readonly metaReducerOptions?;
13
- /**
14
- * Constructor.
15
- * @param appId LogROcket application ID
16
- * @param initOptions Optional configuration to change what LogRocket records
17
- * @param metaReducerOptions Optional meta reducer configuration to change what store related items LogRocket records
18
- */
19
- constructor(appId: string, initOptions?: any, metaReducerOptions?: Options);
20
- /**
21
- * @inheritdoc
22
- */
23
- identify(uid: string, vars?: {
24
- [key: string]: string;
25
- }): void;
26
- /**
27
- * @inheritdoc
28
- */
29
- event(name: string, properties?: any): void;
30
- /**
31
- * @inheritdoc
32
- */
33
- error(message?: any, ...optionalParams: any[]): void;
34
- /**
35
- * @inheritdoc
36
- */
37
- warn(message?: any, ...optionalParams: any[]): void;
38
- /**
39
- * @inheritdoc
40
- */
41
- log(message?: any, ...optionalParams: any[]): void;
42
- /**
43
- * @inheritdoc
44
- */
45
- getSessionURL(): string | undefined;
46
- /**
47
- * @inheritdoc
48
- */
49
- stopRecording(): void;
50
- /**
51
- * @inheritdoc
52
- */
53
- resumeRecording(): void;
54
- /**
55
- * @inheritdoc
56
- */
57
- createMetaReducer(): MetaReducer<any, Action>;
58
- }
59
-
60
- export { LogRocketClient };
61
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../../src/services/logrocket-logger-client/logrocket-logger-client.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAYA;;AAEG;AACH,cAAA,eAAA,YAAA,YAAA;AACE;;AAEG;AACH;AAEA;;;;;AAKG;;AAmBH;;AAEG;AACI;AAA+B;AAAuB;AAI7D;;AAEG;;AAMH;;AAEG;AACI;AAIP;;AAEG;AACI;AAIP;;AAEG;AACI;AAIP;;AAEG;;AAKH;;AAEG;AACI;AAKP;;AAEG;AACI;AAKP;;AAEG;AACI,yBAAA,WAAA,MAAA,MAAA;AAYR;;;;"}
@@ -1,54 +0,0 @@
1
- import { MetaReducer, Action } from '@ngrx/store';
2
- import { LoggerClient } from '@o3r/logger';
3
-
4
- /**
5
- * SmartLook client.
6
- */
7
- declare class SmartLookClient implements LoggerClient {
8
- /**
9
- * Constructor.
10
- * @param key SmartLook key
11
- */
12
- constructor(key: string);
13
- /**
14
- * @inheritdoc
15
- */
16
- identify(uid: string, vars?: {
17
- [key: string]: string;
18
- }): void;
19
- /**
20
- * @inheritdoc
21
- */
22
- event(name: string, properties?: any): void;
23
- /**
24
- * @inheritdoc
25
- */
26
- error(message?: any, ...optionalParams: any[]): void;
27
- /**
28
- * @inheritdoc
29
- */
30
- warn(message?: any, ...optionalParams: any[]): void;
31
- /**
32
- * @inheritdoc
33
- */
34
- log(message?: any, ...optionalParams: any[]): void;
35
- /**
36
- * @inheritdoc
37
- */
38
- getSessionURL(): undefined;
39
- /**
40
- * @inheritdoc
41
- */
42
- stopRecording(): void;
43
- /**
44
- * @inheritdoc
45
- */
46
- resumeRecording(): void;
47
- /**
48
- * @inheritdoc
49
- */
50
- createMetaReducer(): MetaReducer<any, Action>;
51
- }
52
-
53
- export { SmartLookClient };
54
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../../src/services/smartlook-logger-client/smartlook-logger-client.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAUA;;AAEG;AACH,cAAA,eAAA,YAAA,YAAA;AACE;;;AAGG;AACS;AAIZ;;AAEG;AACI;AAA8B;AAA4B;AAIjE;;AAEG;;AAKH;;AAEG;AACI;AAKP;;AAEG;AACI;AAKP;;AAEG;AACI;AAKP;;AAEG;AACI;AAMP;;AAEG;AACI;AAIP;;AAEG;AACI;AAIP;;AAEG;AACI,yBAAA,WAAA,MAAA,MAAA;AAgBR;;;;"}