@wf-financing/logger 1.1.3 → 2.0.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/README.md +2 -2
- package/dist/logger/index.d.ts +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -10,12 +10,12 @@ The Logger utilizes a global singleton pattern to ensure the instance is shared
|
|
|
10
10
|
|
|
11
11
|
```jsx
|
|
12
12
|
import { Logger } from '@wf-financing/logger';
|
|
13
|
-
import {
|
|
13
|
+
import { UiSdkOptions } from '@wf-financing/types';
|
|
14
14
|
|
|
15
15
|
const companyToken = 'your-company-token';
|
|
16
16
|
|
|
17
17
|
// Optional: Configure for Sandbox environment
|
|
18
|
-
const options:
|
|
18
|
+
const options: UiSdkOptions = { isSandbox: true };
|
|
19
19
|
|
|
20
20
|
// Initialize the singleton
|
|
21
21
|
Logger.initialize(companyToken, options);
|
package/dist/logger/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UiSdkOptions } from '@wf-financing/embedded-types';
|
|
2
2
|
|
|
3
3
|
type Properties = {
|
|
4
4
|
[key: string]: string | number | null;
|
|
@@ -11,7 +11,7 @@ export declare class Logger {
|
|
|
11
11
|
private constructor();
|
|
12
12
|
private static getGlobalInstance;
|
|
13
13
|
private static setGlobalInstance;
|
|
14
|
-
static initialize(companyToken: string, options?:
|
|
14
|
+
static initialize(companyToken: string, options?: UiSdkOptions): void;
|
|
15
15
|
private static getMandatoryProperties;
|
|
16
16
|
private static getInstance;
|
|
17
17
|
static logEvent(event_name: string, options?: Properties): Promise<void | any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wf-financing/logger",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"module": "dist/index.es.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@wf-financing/embedded-types": "0.
|
|
18
|
+
"@wf-financing/embedded-types": "1.0.0"
|
|
19
19
|
},
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"access": "public"
|