@melio-eng/web-sdk 1.0.5 → 1.0.6
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/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/__tests__/setup.d.ts +0 -0
- package/dist/__tests__/setup.js +0 -33
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InitOptions, OnboardingConfig, SinglePayFlowConfig, BatchPayConfig, SettingsConfig, FlowInstance } from
|
|
1
|
+
import { InitOptions, OnboardingConfig, SinglePayFlowConfig, BatchPayConfig, SettingsConfig, FlowInstance } from "./types.js";
|
|
2
2
|
/**
|
|
3
3
|
* Main SDK implementation - now partner agnostic
|
|
4
4
|
*/
|
|
@@ -45,4 +45,4 @@ export declare class MelioSDK implements MelioSDK {
|
|
|
45
45
|
* Export the SDK instance
|
|
46
46
|
*/
|
|
47
47
|
export declare const melioSDK: MelioSDK;
|
|
48
|
-
export * from
|
|
48
|
+
export * from "./types.js";
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
File without changes
|
package/dist/__tests__/setup.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Test setup file for Jest
|
|
3
|
-
// This file is automatically loaded by Jest before running tests
|
|
4
|
-
// Mock fetch globally for tests
|
|
5
|
-
global.fetch = jest.fn();
|
|
6
|
-
// Mock window.postMessage for iframe communication tests
|
|
7
|
-
Object.defineProperty(window, 'postMessage', {
|
|
8
|
-
value: jest.fn(),
|
|
9
|
-
writable: true,
|
|
10
|
-
});
|
|
11
|
-
// Mock addEventListener for message events
|
|
12
|
-
Object.defineProperty(window, 'addEventListener', {
|
|
13
|
-
value: jest.fn(),
|
|
14
|
-
writable: true,
|
|
15
|
-
});
|
|
16
|
-
// Mock document methods
|
|
17
|
-
Object.defineProperty(document, 'getElementById', {
|
|
18
|
-
value: jest.fn(),
|
|
19
|
-
writable: true,
|
|
20
|
-
});
|
|
21
|
-
Object.defineProperty(document, 'createElement', {
|
|
22
|
-
value: jest.fn(),
|
|
23
|
-
writable: true,
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(document, 'body', {
|
|
26
|
-
value: {
|
|
27
|
-
appendChild: jest.fn(),
|
|
28
|
-
},
|
|
29
|
-
writable: true,
|
|
30
|
-
});
|
|
31
|
-
// Mock setInterval and clearInterval
|
|
32
|
-
global.setInterval = jest.fn();
|
|
33
|
-
global.clearInterval = jest.fn();
|