@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 CHANGED
@@ -1,4 +1,4 @@
1
- import { InitOptions, OnboardingConfig, SinglePayFlowConfig, BatchPayConfig, SettingsConfig, FlowInstance } from './types';
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 './types';
48
+ export * from "./types.js";
package/dist/index.js CHANGED
@@ -299,4 +299,4 @@ export class MelioSDK {
299
299
  */
300
300
  export const melioSDK = new MelioSDK();
301
301
  // Export types for consumers
302
- export * from './types';
302
+ export * from "./types.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@melio-eng/web-sdk",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Melio Web SDK - Embed core Melio workflows directly into partner UI with minimal effort",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
File without changes
@@ -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();