@tagadapay/plugin-sdk 3.1.12 → 3.1.24
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-cdn.js +397 -11
- package/dist/data/iso3166.d.ts +23 -33
- package/dist/data/iso3166.js +134 -198
- package/dist/data/languages.d.ts +5 -64
- package/dist/data/languages.js +23 -143
- package/dist/external-tracker.js +623 -3426
- package/dist/external-tracker.min.js +2 -25
- package/dist/external-tracker.min.js.map +4 -4
- package/dist/react/config/payment.d.ts +14 -4
- package/dist/react/config/payment.js +47 -9
- package/dist/react/hooks/useCheckout.d.ts +3 -0
- package/dist/react/hooks/useCheckout.js +4 -1
- package/dist/react/hooks/useISOData.js +1 -1
- package/dist/react/hooks/usePaymentPolling.d.ts +3 -3
- package/dist/react/hooks/usePluginConfig.js +9 -10
- package/dist/react/providers/TagadaProvider.js +1 -1
- package/dist/tagada-react-sdk-minimal.min.js +36 -0
- package/dist/tagada-react-sdk-minimal.min.js.map +7 -0
- package/dist/tagada-react-sdk.js +37821 -0
- package/dist/tagada-react-sdk.min.js +78 -0
- package/dist/tagada-react-sdk.min.js.map +7 -0
- package/dist/tagada-sdk.js +16044 -0
- package/dist/tagada-sdk.min.js +32 -0
- package/dist/tagada-sdk.min.js.map +7 -0
- package/dist/v2/cdn-react-minimal.d.ts +23 -0
- package/dist/v2/cdn-react-minimal.js +26 -0
- package/dist/v2/core/client.d.ts +4 -2
- package/dist/v2/core/client.js +5 -4
- package/dist/v2/core/config/environment.js +2 -1
- package/dist/v2/core/errors.d.ts +75 -0
- package/dist/v2/core/errors.js +104 -0
- package/dist/v2/core/funnelClient.d.ts +100 -10
- package/dist/v2/core/funnelClient.js +121 -27
- package/dist/v2/core/isoData.d.ts +4 -4
- package/dist/v2/core/isoData.js +7 -7
- package/dist/v2/core/pixelMapping.d.ts +49 -0
- package/dist/v2/core/pixelMapping.js +363 -0
- package/dist/v2/core/resources/apiClient.d.ts +2 -0
- package/dist/v2/core/resources/apiClient.js +52 -9
- package/dist/v2/core/resources/checkout.d.ts +99 -30
- package/dist/v2/core/resources/checkout.js +14 -0
- package/dist/v2/core/resources/customer.d.ts +20 -19
- package/dist/v2/core/resources/expressPaymentMethods.d.ts +1 -0
- package/dist/v2/core/resources/funnel.d.ts +17 -17
- package/dist/v2/core/resources/payments.d.ts +89 -13
- package/dist/v2/core/resources/payments.js +27 -9
- package/dist/v2/core/resources/postPurchases.d.ts +17 -0
- package/dist/v2/core/resources/postPurchases.js +20 -0
- package/dist/v2/core/types.d.ts +50 -12
- package/dist/v2/core/types.js +0 -3
- package/dist/v2/core/utils/checkout.d.ts +2 -2
- package/dist/v2/core/utils/checkout.js +7 -2
- package/dist/v2/core/utils/currency.d.ts +14 -0
- package/dist/v2/core/utils/currency.js +40 -0
- package/dist/v2/core/utils/deviceInfo.d.ts +0 -10
- package/dist/v2/core/utils/deviceInfo.js +152 -76
- package/dist/v2/core/utils/index.d.ts +1 -0
- package/dist/v2/core/utils/index.js +2 -0
- package/dist/v2/core/utils/order.d.ts +13 -9
- package/dist/v2/core/utils/pluginConfig.d.ts +8 -0
- package/dist/v2/core/utils/pluginConfig.js +36 -12
- package/dist/v2/index.d.ts +6 -3
- package/dist/v2/index.js +4 -2
- package/dist/v2/react/components/FunnelScriptInjector.js +166 -77
- package/dist/v2/react/components/StripeExpressButton.d.ts +13 -0
- package/dist/v2/react/components/StripeExpressButton.js +171 -0
- package/dist/v2/react/components/WhopCheckout.d.ts +24 -0
- package/dist/v2/react/components/WhopCheckout.js +237 -0
- package/dist/v2/react/hooks/__examples__/FunnelContextExample.js +1 -1
- package/dist/v2/react/hooks/payment-actions/useAirwallexRadarAction.d.ts +14 -0
- package/dist/v2/react/hooks/payment-actions/useAirwallexRadarAction.js +181 -0
- package/dist/v2/react/hooks/payment-actions/useErrorAction.d.ts +9 -0
- package/dist/v2/react/hooks/payment-actions/useErrorAction.js +21 -0
- package/dist/v2/react/hooks/payment-actions/useFinixRadarAction.d.ts +14 -0
- package/dist/v2/react/hooks/payment-actions/useFinixRadarAction.js +187 -0
- package/dist/v2/react/hooks/payment-actions/useKessPayAction.d.ts +11 -0
- package/dist/v2/react/hooks/payment-actions/useKessPayAction.js +91 -0
- package/dist/v2/react/hooks/payment-actions/useMasterCardAction.d.ts +24 -0
- package/dist/v2/react/hooks/payment-actions/useMasterCardAction.js +221 -0
- package/dist/v2/react/hooks/payment-actions/usePaymentActionHandler.d.ts +15 -0
- package/dist/v2/react/hooks/payment-actions/usePaymentActionHandler.js +142 -0
- package/dist/v2/react/hooks/payment-actions/useProcessorAuthAction.d.ts +3 -0
- package/dist/v2/react/hooks/payment-actions/useProcessorAuthAction.js +31 -0
- package/dist/v2/react/hooks/payment-actions/useRedirectAction.d.ts +10 -0
- package/dist/v2/react/hooks/payment-actions/useRedirectAction.js +35 -0
- package/dist/v2/react/hooks/payment-actions/useStripeRadarAction.d.ts +14 -0
- package/dist/v2/react/hooks/payment-actions/useStripeRadarAction.js +192 -0
- package/dist/v2/react/hooks/payment-actions/useThreedsAuthAction.d.ts +14 -0
- package/dist/v2/react/hooks/payment-actions/useThreedsAuthAction.js +81 -0
- package/dist/v2/react/hooks/payment-actions/useTrustFlowAction.d.ts +11 -0
- package/dist/v2/react/hooks/payment-actions/useTrustFlowAction.js +84 -0
- package/dist/v2/react/hooks/payment-processing/usePaymentInstruments.d.ts +14 -0
- package/dist/v2/react/hooks/payment-processing/usePaymentInstruments.js +36 -0
- package/dist/v2/react/hooks/payment-processing/usePaymentProcessors.d.ts +31 -0
- package/dist/v2/react/hooks/payment-processing/usePaymentProcessors.js +212 -0
- package/dist/v2/react/hooks/payment-redirect/useAirwallex3dsReturn.d.ts +14 -0
- package/dist/v2/react/hooks/payment-redirect/useAirwallex3dsReturn.js +207 -0
- package/dist/v2/react/hooks/payment-redirect/useGenericPaymentReturn.d.ts +12 -0
- package/dist/v2/react/hooks/payment-redirect/useGenericPaymentReturn.js +101 -0
- package/dist/v2/react/hooks/useApplePayCheckout.js +8 -8
- package/dist/v2/react/hooks/useCheckoutQuery.d.ts +16 -0
- package/dist/v2/react/hooks/useCheckoutQuery.js +63 -10
- package/dist/v2/react/hooks/useFunnel.d.ts +15 -4
- package/dist/v2/react/hooks/useFunnel.js +8 -4
- package/dist/v2/react/hooks/useGeoLocation.d.ts +2 -1
- package/dist/v2/react/hooks/useGeoLocation.js +4 -2
- package/dist/v2/react/hooks/useGoogleAutocomplete.d.ts +2 -0
- package/dist/v2/react/hooks/useGoogleAutocomplete.js +29 -15
- package/dist/v2/react/hooks/useISOData.d.ts +2 -5
- package/dist/v2/react/hooks/useISOData.js +26 -27
- package/dist/v2/react/hooks/usePaymentPolling.d.ts +3 -3
- package/dist/v2/react/hooks/usePaymentQuery.d.ts +18 -5
- package/dist/v2/react/hooks/usePaymentQuery.js +63 -1015
- package/dist/v2/react/hooks/usePaymentRetrieve.d.ts +3 -2
- package/dist/v2/react/hooks/usePaymentRetrieve.js +3 -1
- package/dist/v2/react/hooks/usePixelTracking.d.ts +5 -48
- package/dist/v2/react/hooks/usePixelTracking.js +283 -504
- package/dist/v2/react/hooks/usePostPurchasesQuery.js +34 -2
- package/dist/v2/react/hooks/useRemappableParams.d.ts +2 -6
- package/dist/v2/react/hooks/useRemappableParams.js +23 -23
- package/dist/v2/react/hooks/useSetPaymentMethod.d.ts +16 -0
- package/dist/v2/react/hooks/useSetPaymentMethod.js +33 -0
- package/dist/v2/react/hooks/useShippingRatesQuery.js +13 -5
- package/dist/v2/react/hooks/useStepConfig.d.ts +23 -6
- package/dist/v2/react/hooks/useStepConfig.js +14 -7
- package/dist/v2/react/hooks/useTranslation.js +23 -8
- package/dist/v2/react/hooks/useWhopPaymentPolling.d.ts +30 -0
- package/dist/v2/react/hooks/useWhopPaymentPolling.js +61 -0
- package/dist/v2/react/index.d.ts +15 -1
- package/dist/v2/react/index.js +7 -0
- package/dist/v2/react/providers/ExpressPaymentMethodsProvider.d.ts +3 -1
- package/dist/v2/react/providers/ExpressPaymentMethodsProvider.js +12 -2
- package/dist/v2/react/providers/TagadaProvider.js +74 -5
- package/dist/v2/standalone/external-tracker.d.ts +52 -46
- package/dist/v2/standalone/external-tracker.js +205 -98
- package/dist/v2/standalone/index.d.ts +40 -0
- package/dist/v2/standalone/index.js +148 -1
- package/dist/v2/standalone/payment-service.d.ts +134 -0
- package/dist/v2/standalone/payment-service.js +928 -0
- package/package.json +6 -4
- package/dist/react/utils/__tests__/urlUtils.test.d.ts +0 -1
- package/dist/react/utils/__tests__/urlUtils.test.js +0 -189
- package/dist/v2/core/__tests__/pathRemapping.test.d.ts +0 -11
- package/dist/v2/core/__tests__/pathRemapping.test.js +0 -776
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tagadapay/plugin-sdk",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.24",
|
|
4
4
|
"description": "Modern React SDK for building Tagada Pay plugins",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
+
"sideEffects": false,
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
9
10
|
"types": "./dist/index.d.ts",
|
|
@@ -73,18 +74,19 @@
|
|
|
73
74
|
"@basis-theory/basis-theory-react": "^1.32.5",
|
|
74
75
|
"@basis-theory/web-threeds": "^1.0.1",
|
|
75
76
|
"@google-pay/button-react": "^3.0.10",
|
|
77
|
+
"@stripe/react-stripe-js": "^5.6.1",
|
|
78
|
+
"@stripe/stripe-js": "^8.11.0",
|
|
76
79
|
"@tagadapay/plugin-sdk": "link:",
|
|
77
80
|
"@tanstack/react-query": "^5.90.2",
|
|
78
|
-
"@
|
|
81
|
+
"@whop/checkout": "^0.0.40",
|
|
79
82
|
"axios": "^1.10.0",
|
|
80
|
-
"iso3166-2-db": "^2.3.11",
|
|
81
83
|
"path-to-regexp": "^8.2.0",
|
|
82
84
|
"react-intl": "^7.1.11",
|
|
83
85
|
"swr": "^2.3.6"
|
|
84
86
|
},
|
|
85
87
|
"devDependencies": {
|
|
86
88
|
"@types/jest": "^29.5.0",
|
|
87
|
-
"@types/node": "^18.
|
|
89
|
+
"@types/node": "^18.19.130",
|
|
88
90
|
"@types/react": "^19",
|
|
89
91
|
"@types/react-dom": "^19",
|
|
90
92
|
"esbuild": "^0.24.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
import { extractCheckoutToken, extractCheckoutTokenFromCurrentUrl, extractCheckoutTokenFromPath, isValidCheckoutToken, extractAndValidateCheckoutToken, getCheckoutToken, buildCheckoutUrl, hasCheckoutToken, } from '../urlUtils';
|
|
2
|
-
// Mock window.location for testing
|
|
3
|
-
const mockLocation = (href) => {
|
|
4
|
-
Object.defineProperty(window, 'location', {
|
|
5
|
-
value: { href },
|
|
6
|
-
writable: true,
|
|
7
|
-
});
|
|
8
|
-
};
|
|
9
|
-
describe('URL Utilities', () => {
|
|
10
|
-
const validToken = '0cb592d75aae75e337b7b784f6624dbf';
|
|
11
|
-
const anotherValidToken = '1234567890abcdef1234567890abcdef';
|
|
12
|
-
describe('extractCheckoutToken', () => {
|
|
13
|
-
it('should extract token from full URL', () => {
|
|
14
|
-
const url = `https://example.com/checkout/${validToken}`;
|
|
15
|
-
expect(extractCheckoutToken(url)).toBe(validToken);
|
|
16
|
-
});
|
|
17
|
-
it('should extract token from path', () => {
|
|
18
|
-
const path = `/checkout/${validToken}`;
|
|
19
|
-
expect(extractCheckoutToken(path)).toBe(validToken);
|
|
20
|
-
});
|
|
21
|
-
it('should extract token from anywhere in path', () => {
|
|
22
|
-
const path = `/some/path/${validToken}/other/path`;
|
|
23
|
-
expect(extractCheckoutToken(path)).toBe(validToken);
|
|
24
|
-
});
|
|
25
|
-
it('should extract token from token only', () => {
|
|
26
|
-
expect(extractCheckoutToken(validToken)).toBe(validToken);
|
|
27
|
-
});
|
|
28
|
-
it('should return null for invalid URLs', () => {
|
|
29
|
-
expect(extractCheckoutToken('https://example.com/checkout')).toBeNull();
|
|
30
|
-
expect(extractCheckoutToken('invalid-token')).toBeNull();
|
|
31
|
-
expect(extractCheckoutToken('')).toBeNull();
|
|
32
|
-
expect(extractCheckoutToken(null)).toBeNull();
|
|
33
|
-
expect(extractCheckoutToken(undefined)).toBeNull();
|
|
34
|
-
});
|
|
35
|
-
it('should normalize token to lowercase', () => {
|
|
36
|
-
const upperCaseToken = validToken.toUpperCase();
|
|
37
|
-
expect(extractCheckoutToken(upperCaseToken)).toBe(validToken);
|
|
38
|
-
});
|
|
39
|
-
it('should handle multiple tokens and return first match', () => {
|
|
40
|
-
const path = `/path/${validToken}/another/${anotherValidToken}`;
|
|
41
|
-
expect(extractCheckoutToken(path)).toBe(validToken);
|
|
42
|
-
});
|
|
43
|
-
});
|
|
44
|
-
describe('extractCheckoutTokenFromCurrentUrl', () => {
|
|
45
|
-
beforeEach(() => {
|
|
46
|
-
// Reset window.location mock
|
|
47
|
-
delete window.location;
|
|
48
|
-
});
|
|
49
|
-
it('should extract token from current URL', () => {
|
|
50
|
-
mockLocation(`https://example.com/checkout/${validToken}`);
|
|
51
|
-
expect(extractCheckoutTokenFromCurrentUrl()).toBe(validToken);
|
|
52
|
-
});
|
|
53
|
-
it('should return null when no token in URL', () => {
|
|
54
|
-
mockLocation('https://example.com/checkout');
|
|
55
|
-
expect(extractCheckoutTokenFromCurrentUrl()).toBeNull();
|
|
56
|
-
});
|
|
57
|
-
it('should return null in server environment', () => {
|
|
58
|
-
const originalWindow = global.window;
|
|
59
|
-
delete global.window;
|
|
60
|
-
expect(extractCheckoutTokenFromCurrentUrl()).toBeNull();
|
|
61
|
-
global.window = originalWindow;
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
describe('extractCheckoutTokenFromPath', () => {
|
|
65
|
-
it('should extract token from pathname', () => {
|
|
66
|
-
const pathname = `/checkout/${validToken}`;
|
|
67
|
-
expect(extractCheckoutTokenFromPath(pathname)).toBe(validToken);
|
|
68
|
-
});
|
|
69
|
-
it('should return null for invalid pathnames', () => {
|
|
70
|
-
expect(extractCheckoutTokenFromPath('')).toBeNull();
|
|
71
|
-
expect(extractCheckoutTokenFromPath(null)).toBeNull();
|
|
72
|
-
expect(extractCheckoutTokenFromPath(undefined)).toBeNull();
|
|
73
|
-
});
|
|
74
|
-
});
|
|
75
|
-
describe('isValidCheckoutToken', () => {
|
|
76
|
-
it('should validate correct token format', () => {
|
|
77
|
-
expect(isValidCheckoutToken(validToken)).toBe(true);
|
|
78
|
-
expect(isValidCheckoutToken(anotherValidToken)).toBe(true);
|
|
79
|
-
});
|
|
80
|
-
it('should reject invalid token formats', () => {
|
|
81
|
-
expect(isValidCheckoutToken('invalid-token')).toBe(false);
|
|
82
|
-
expect(isValidCheckoutToken('1234567890abcdef')).toBe(false); // Too short
|
|
83
|
-
expect(isValidCheckoutToken('1234567890abcdef1234567890abcdef1234567890abcdef')).toBe(false); // Too long
|
|
84
|
-
expect(isValidCheckoutToken('')).toBe(false);
|
|
85
|
-
expect(isValidCheckoutToken(null)).toBe(false);
|
|
86
|
-
expect(isValidCheckoutToken(undefined)).toBe(false);
|
|
87
|
-
});
|
|
88
|
-
it('should accept uppercase tokens', () => {
|
|
89
|
-
expect(isValidCheckoutToken(validToken.toUpperCase())).toBe(true);
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
describe('extractAndValidateCheckoutToken', () => {
|
|
93
|
-
it('should extract and validate valid token', () => {
|
|
94
|
-
const url = `https://example.com/checkout/${validToken}`;
|
|
95
|
-
expect(extractAndValidateCheckoutToken(url)).toBe(validToken);
|
|
96
|
-
});
|
|
97
|
-
it('should return null for invalid token', () => {
|
|
98
|
-
const url = 'https://example.com/checkout/invalid-token';
|
|
99
|
-
expect(extractAndValidateCheckoutToken(url)).toBeNull();
|
|
100
|
-
});
|
|
101
|
-
it('should return null when no token found', () => {
|
|
102
|
-
const url = 'https://example.com/checkout';
|
|
103
|
-
expect(extractAndValidateCheckoutToken(url)).toBeNull();
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
describe('getCheckoutToken', () => {
|
|
107
|
-
beforeEach(() => {
|
|
108
|
-
delete window.location;
|
|
109
|
-
});
|
|
110
|
-
it('should get token from current URL first', () => {
|
|
111
|
-
mockLocation(`https://example.com/checkout/${validToken}`);
|
|
112
|
-
const token = getCheckoutToken({
|
|
113
|
-
currentUrl: true,
|
|
114
|
-
specificUrl: `https://other.com/checkout/${anotherValidToken}`,
|
|
115
|
-
fallbackToken: 'fallback-token',
|
|
116
|
-
});
|
|
117
|
-
expect(token).toBe(validToken);
|
|
118
|
-
});
|
|
119
|
-
it('should fall back to specific URL when current URL has no token', () => {
|
|
120
|
-
mockLocation('https://example.com/checkout');
|
|
121
|
-
const token = getCheckoutToken({
|
|
122
|
-
currentUrl: true,
|
|
123
|
-
specificUrl: `https://other.com/checkout/${validToken}`,
|
|
124
|
-
fallbackToken: 'fallback-token',
|
|
125
|
-
});
|
|
126
|
-
expect(token).toBe(validToken);
|
|
127
|
-
});
|
|
128
|
-
it('should fall back to fallback token when others fail', () => {
|
|
129
|
-
mockLocation('https://example.com/checkout');
|
|
130
|
-
const token = getCheckoutToken({
|
|
131
|
-
currentUrl: true,
|
|
132
|
-
specificUrl: 'https://other.com/checkout',
|
|
133
|
-
fallbackToken: validToken,
|
|
134
|
-
});
|
|
135
|
-
expect(token).toBe(validToken);
|
|
136
|
-
});
|
|
137
|
-
it('should return null when all sources fail', () => {
|
|
138
|
-
mockLocation('https://example.com/checkout');
|
|
139
|
-
const token = getCheckoutToken({
|
|
140
|
-
currentUrl: true,
|
|
141
|
-
specificUrl: 'https://other.com/checkout',
|
|
142
|
-
fallbackToken: 'invalid-token',
|
|
143
|
-
});
|
|
144
|
-
expect(token).toBeNull();
|
|
145
|
-
});
|
|
146
|
-
it('should skip current URL when disabled', () => {
|
|
147
|
-
mockLocation(`https://example.com/checkout/${validToken}`);
|
|
148
|
-
const token = getCheckoutToken({
|
|
149
|
-
currentUrl: false,
|
|
150
|
-
specificUrl: `https://other.com/checkout/${anotherValidToken}`,
|
|
151
|
-
});
|
|
152
|
-
expect(token).toBe(anotherValidToken);
|
|
153
|
-
});
|
|
154
|
-
});
|
|
155
|
-
describe('buildCheckoutUrl', () => {
|
|
156
|
-
it('should build correct checkout URL', () => {
|
|
157
|
-
const baseUrl = 'https://example.com/checkout';
|
|
158
|
-
const url = buildCheckoutUrl(baseUrl, validToken);
|
|
159
|
-
expect(url).toBe(`https://example.com/checkout/${validToken}`);
|
|
160
|
-
});
|
|
161
|
-
it('should handle base URL with trailing slash', () => {
|
|
162
|
-
const baseUrl = 'https://example.com/checkout/';
|
|
163
|
-
const url = buildCheckoutUrl(baseUrl, validToken);
|
|
164
|
-
expect(url).toBe(`https://example.com/checkout/${validToken}`);
|
|
165
|
-
});
|
|
166
|
-
it('should throw error for invalid base URL', () => {
|
|
167
|
-
expect(() => buildCheckoutUrl('', validToken)).toThrow('Invalid base URL or checkout token');
|
|
168
|
-
expect(() => buildCheckoutUrl(null, validToken)).toThrow('Invalid base URL or checkout token');
|
|
169
|
-
});
|
|
170
|
-
it('should throw error for invalid token', () => {
|
|
171
|
-
expect(() => buildCheckoutUrl('https://example.com/checkout', 'invalid-token')).toThrow('Invalid base URL or checkout token');
|
|
172
|
-
expect(() => buildCheckoutUrl('https://example.com/checkout', '')).toThrow('Invalid base URL or checkout token');
|
|
173
|
-
});
|
|
174
|
-
});
|
|
175
|
-
describe('hasCheckoutToken', () => {
|
|
176
|
-
it('should return true when URL contains valid token', () => {
|
|
177
|
-
const url = `https://example.com/checkout/${validToken}`;
|
|
178
|
-
expect(hasCheckoutToken(url)).toBe(true);
|
|
179
|
-
});
|
|
180
|
-
it('should return false when URL has no token', () => {
|
|
181
|
-
const url = 'https://example.com/checkout';
|
|
182
|
-
expect(hasCheckoutToken(url)).toBe(false);
|
|
183
|
-
});
|
|
184
|
-
it('should return false when URL has invalid token', () => {
|
|
185
|
-
const url = 'https://example.com/checkout/invalid-token';
|
|
186
|
-
expect(hasCheckoutToken(url)).toBe(false);
|
|
187
|
-
});
|
|
188
|
-
});
|
|
189
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Path Remapping Tests
|
|
3
|
-
*
|
|
4
|
-
* Comprehensive test suite for path remapping functionality including:
|
|
5
|
-
* - Exact path matching
|
|
6
|
-
* - Parameter matching with different names
|
|
7
|
-
* - Wildcards and optional segments
|
|
8
|
-
* - Edge cases and error handling
|
|
9
|
-
* - SDK functions: shouldMatchRoute, getInternalPath, getPathInfo
|
|
10
|
-
*/
|
|
11
|
-
export {};
|