@tap-payments/os-micro-frontend-shared 0.1.333-test.2 → 0.1.333-test.3
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/build/utils/segment.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const getNonBusinessSegmentConfig: ({ segmentCode, segmentId, seg
|
|
|
15
15
|
segmentTypeCode: string;
|
|
16
16
|
segmentId: string;
|
|
17
17
|
merchantsIds?: string[] | undefined;
|
|
18
|
-
options
|
|
18
|
+
options?: Record<string, unknown> | undefined;
|
|
19
19
|
}) => {
|
|
20
20
|
business?: undefined;
|
|
21
21
|
} | {
|
package/build/utils/segment.js
CHANGED
|
@@ -16,7 +16,7 @@ export const getBusinessSegmentConfig = ({ merchantsIds, options }) => {
|
|
|
16
16
|
return {};
|
|
17
17
|
return { business: Object.assign({ merchant: merchantsIds }, options) };
|
|
18
18
|
};
|
|
19
|
-
export const getNonBusinessSegmentConfig = ({ segmentCode, segmentId, segmentTypeCode, merchantsIds = [], options, }) => {
|
|
19
|
+
export const getNonBusinessSegmentConfig = ({ segmentCode, segmentId, segmentTypeCode, merchantsIds = [], options = {}, }) => {
|
|
20
20
|
const code = SEGMENT_CODE.PSP === segmentTypeCode ? segmentCode : segmentTypeCode;
|
|
21
21
|
const specialBusinessSegmentsIDs = ['payment_facilitator_14po8231419aIsi1fN7F385'];
|
|
22
22
|
if (specialBusinessSegmentsIDs.includes(segmentId)) {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
3
|
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
-
"version": "0.1.333-test.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.333-test.3",
|
|
5
|
+
"testVersion": 3,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|