@coinbase/cdp-api-client 0.0.120 → 0.0.122

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/esm/index.js CHANGED
@@ -1,114 +1,139 @@
1
1
  import { Analytics as e } from "./index2.js";
2
2
  import "./index3.js";
3
3
  import { VERSION as t } from "./index4.js";
4
- import { CapabilityName as s, CreateEndUserBtcAccountBodyAddressType as c, CreateEndUserBtcAccountBodyNetwork as E, DeveloperJWTAuthenticationType as d, EmailAuthenticationType as A, EndUserBtcAccountAddressType as u, EndUserBtcAccountNetwork as p, EndUserOnrampFeeType as m, EndUserOnrampOrderStatus as h, ErrorType as l, EvmEip7702DelegationNetwork as U, EvmEip7702DelegationOperationStatus as g, EvmSwapsNetwork as S, EvmUserOperationNetwork as y, EvmUserOperationStatus as v, InitiateEmailAuthenticationNextStepType as T, InitiateEmailAuthenticationRequestType as f, InitiateSiweAuthenticationRequestType as W, InitiateSmsAuthenticationNextStepType as k, InitiateSmsAuthenticationRequestType as O, InitiateSmsMfaEnrollmentType as w, InitiateTotpMfaEnrollmentType as B, IosAttestationRegistrationResponsePlatform as M, MfaMethod as N, Network as P, OAuth2ProviderType as C, OtpEmailLogoModerationStatus as I, RefreshAccessTokenBodyGrantType as D, SendEvmAssetWithEndUserAccountBodyNetwork as R, SendEvmTransactionWithEndUserAccountBodyNetwork as b, SendSolanaAssetWithEndUserAccountBodyNetwork as x, SendSolanaTransactionWithEndUserAccountBodyNetwork as F, SignBtcHashWithEndUserAccountBodyChange as H, SiweAuthenticationType as V, SmsAuthenticationType as q, SpendPermissionNetwork as j } from "./index5.js";
5
- import { configureCdpApiClient as J, setAuthManager as L } from "./index6.js";
6
- import { APIError as z, HttpErrorType as K, RefreshTokenUnavailableError as Q, UnknownApiError as X, UnknownError as Y, isOpenAPIError as Z, isRefreshTokenUnavailableError as $, isTransientTokenReadError as ee } from "./index7.js";
7
- import { authenticateUserWithCustomAuth as ne, createDelegationForEndUser as re, createDelegationForEndUserAccount as ie, createEndUserApplePayOnrampOrder as oe, createEndUserBtcAccount as ae, createEndUserEvmAccount as se, createEndUserEvmSmartAccount as ce, createEndUserEvmSwap as Ee, createEndUserSolanaAccount as de, createEvmEip7702DelegationWithEndUserAccount as Ae, createSpendPermissionWithEndUserAccount as ue, enableSpendPermissionWithEndUserAccount as pe, exportEndUserEvmAccount as me, exportEndUserSolanaAccount as he, generateAttestationChallenge as le, getAuthenticatedEndUser as Ue, getDelegationForEndUser as ge, getDelegationForEndUserAccount as Se, getEndUserEvmSwapPrice as ye, getEvmEip7702DelegationOperationByIdWithEndUserAccount as ve, getMfaConfig as Te, getProjectConfig as fe, getUserOperationWithEndUserAccount as We, initiateAuthentication as ke, initiateMfaEnrollment as Oe, initiateMfaEnrollment2 as we, initiateMfaVerification as Be, listSpendPermissionsWithEndUserAccount as Me, logOutEndUser as Ne, receiveOAuthCallback as Pe, receiveOAuthCallbackPost as Ce, recordMfaEnrollmentPrompted as Ie, refreshAccessToken as De, registerAttestation as Re, registerTemporaryWalletSecret as be, revokeDelegationForEndUser as xe, revokeDelegationForEndUserAccount as Fe, revokeSpendPermissionWithEndUserAccount as He, sendEvmAssetWithEndUserAccount as Ve, sendEvmTransactionWithEndUserAccount as qe, sendSolanaAssetWithEndUserAccount as je, sendSolanaTransactionWithEndUserAccount as Ge, sendUserOperationWithEndUserAccount as Je, signBtcHashWithEndUserAccount as Le, signEvmHashWithEndUserAccount as _e, signEvmMessageWithEndUserAccount as ze, signEvmTransactionWithEndUserAccount as Ke, signEvmTypedDataWithEndUserAccount as Qe, signSolanaHashWithEndUserAccount as Xe, signSolanaMessageWithEndUserAccount as Ye, signSolanaTransactionWithEndUserAccount as Ze, submitMfaEnrollment as $e, submitMfaVerification as et, verifyEmailAuthentication as tt, verifyOAuthCode as nt, verifyOAuthEndUserIdentity as rt, verifySiweAuthentication as it, verifySmsAuthentication as ot } from "./index8.js";
4
+ import { CapabilityName as s, CreateEndUserBtcAccountBodyAddressType as c, CreateEndUserBtcAccountBodyNetwork as d, DeveloperJWTAuthenticationType as E, EmailAuthenticationType as m, EndUserBtcAccountAddressType as p, EndUserBtcAccountNetwork as l, EndUserOnrampFeeType as u, EndUserOnrampOrderStatus as A, ErrorType as h, EvmEip7702DelegationNetwork as y, EvmEip7702DelegationOperationStatus as U, EvmSwapsNetwork as S, EvmUserOperationNetwork as g, EvmUserOperationStatus as T, InitiateEmailAuthenticationNextStepType as f, InitiateEmailAuthenticationRequestType as v, InitiatePasskeyMfaEnrollmentType as k, InitiateSiweAuthenticationRequestType as P, InitiateSmsAuthenticationNextStepType as W, InitiateSmsAuthenticationRequestType as O, InitiateSmsMfaEnrollmentType as w, InitiateTotpMfaEnrollmentType as B, IosAttestationRegistrationResponsePlatform as I, MfaMethod as M, Network as N, OAuth2ProviderType as C, OnrampQuotePaymentMethodTypeId as R, OtpEmailLogoStatus as D, PasskeySummaryTransportsItem as V, PasskeyUserVerification as b, RefreshAccessTokenBodyGrantType as X, SendEvmAssetWithEndUserAccountBodyNetwork as x, SendEvmTransactionWithEndUserAccountBodyNetwork as F, SendSolanaAssetWithEndUserAccountBodyNetwork as q, SendSolanaTransactionWithEndUserAccountBodyNetwork as H, SignBtcHashWithEndUserAccountBodyChange as j, SiweAuthenticationType as G, SmsAuthenticationType as J, SpendPermissionNetwork as L, SubmitPasskeyRegistrationType as Q, SubmitPasskeyVerificationType as _, X402BatchSettlementClaimPayloadType as z, X402BatchSettlementDepositPayloadType as K, X402BatchSettlementRefundPayloadType as Y, X402BatchSettlementSettlePayloadType as Z, X402BatchSettlementVoucherPayloadType as $, X402V1Network as ee, X402V1PaymentPayloadScheme as te, X402V1PaymentRequirementsScheme as ne, X402V2Network as re, X402V2PaymentRequirementsScheme as oe, X402Version as ie } from "./index5.js";
5
+ import { configureCdpApiClient as se, setAuthManager as ce } from "./index6.js";
6
+ import { APIError as Ee, HttpErrorType as me, RefreshTokenUnavailableError as pe, UnknownApiError as le, UnknownError as ue, isOpenAPIError as Ae, isRefreshTokenUnavailableError as he, isTransientTokenReadError as ye } from "./index7.js";
7
+ import { authenticateUserWithCustomAuth as Se, createDelegationForEndUser as ge, createDelegationForEndUserAccount as Te, createEndUserApplePayOnrampOrder as fe, createEndUserBtcAccount as ve, createEndUserEvmAccount as ke, createEndUserEvmSmartAccount as Pe, createEndUserEvmSwap as We, createEndUserSolanaAccount as Oe, createEvmEip7702DelegationWithEndUserAccount as we, createSpendPermissionWithEndUserAccount as Be, deletePasskey as Ie, enableSpendPermissionWithEndUserAccount as Me, exportEndUserEvmAccount as Ne, exportEndUserSolanaAccount as Ce, generateAttestationChallenge as Re, getAuthenticatedEndUser as De, getDelegationForEndUser as Ve, getDelegationForEndUserAccount as be, getEndUserEvmSwapPrice as Xe, getEvmEip7702DelegationOperationByIdWithEndUserAccount as xe, getMfaConfig as Fe, getProjectConfig as qe, getUserOperationWithEndUserAccount as He, initiateAuthentication as je, initiateMfaEnrollment as Ge, initiateMfaEnrollment2 as Je, initiateMfaVerification as Le, listPasskeys as Qe, listSpendPermissionsWithEndUserAccount as _e, logOutEndUser as ze, receiveOAuthCallback as Ke, receiveOAuthCallbackPost as Ye, recordMfaEnrollmentPrompted as Ze, refreshAccessToken as $e, registerAttestation as et, registerTemporaryWalletSecret as tt, revokeDelegationForEndUser as nt, revokeDelegationForEndUserAccount as rt, revokeSpendPermissionWithEndUserAccount as ot, sendEvmAssetWithEndUserAccount as it, sendEvmTransactionWithEndUserAccount as at, sendSolanaAssetWithEndUserAccount as st, sendSolanaTransactionWithEndUserAccount as ct, sendUserOperationWithEndUserAccount as dt, signBtcHashWithEndUserAccount as Et, signEvmHashWithEndUserAccount as mt, signEvmMessageWithEndUserAccount as pt, signEvmTransactionWithEndUserAccount as lt, signEvmTypedDataWithEndUserAccount as ut, signSolanaHashWithEndUserAccount as At, signSolanaMessageWithEndUserAccount as ht, signSolanaTransactionWithEndUserAccount as yt, signSolanaX402PaymentWithEndUserAccount as Ut, submitMfaEnrollment as St, submitMfaVerification as gt, verifyEmailAuthentication as Tt, verifyOAuthCode as ft, verifyOAuthEndUserIdentity as vt, verifySiweAuthentication as kt, verifySmsAuthentication as Pt } from "./index8.js";
8
+ import { createOnrampIosAttestationChallenge as Ot, createOnrampMobileChallenge as wt, createOnrampMobileSession as Bt, registerOnrampIosAttestation as It } from "./index9.js";
8
9
  e.registerPackageVersion("api_client", t);
9
10
  export {
10
- z as APIError,
11
+ Ee as APIError,
11
12
  s as CapabilityName,
12
13
  c as CreateEndUserBtcAccountBodyAddressType,
13
- E as CreateEndUserBtcAccountBodyNetwork,
14
- d as DeveloperJWTAuthenticationType,
15
- A as EmailAuthenticationType,
16
- u as EndUserBtcAccountAddressType,
17
- p as EndUserBtcAccountNetwork,
18
- m as EndUserOnrampFeeType,
19
- h as EndUserOnrampOrderStatus,
20
- l as ErrorType,
21
- U as EvmEip7702DelegationNetwork,
22
- g as EvmEip7702DelegationOperationStatus,
14
+ d as CreateEndUserBtcAccountBodyNetwork,
15
+ E as DeveloperJWTAuthenticationType,
16
+ m as EmailAuthenticationType,
17
+ p as EndUserBtcAccountAddressType,
18
+ l as EndUserBtcAccountNetwork,
19
+ u as EndUserOnrampFeeType,
20
+ A as EndUserOnrampOrderStatus,
21
+ h as ErrorType,
22
+ y as EvmEip7702DelegationNetwork,
23
+ U as EvmEip7702DelegationOperationStatus,
23
24
  S as EvmSwapsNetwork,
24
- y as EvmUserOperationNetwork,
25
- v as EvmUserOperationStatus,
26
- K as HttpErrorType,
27
- T as InitiateEmailAuthenticationNextStepType,
28
- f as InitiateEmailAuthenticationRequestType,
29
- W as InitiateSiweAuthenticationRequestType,
30
- k as InitiateSmsAuthenticationNextStepType,
25
+ g as EvmUserOperationNetwork,
26
+ T as EvmUserOperationStatus,
27
+ me as HttpErrorType,
28
+ f as InitiateEmailAuthenticationNextStepType,
29
+ v as InitiateEmailAuthenticationRequestType,
30
+ k as InitiatePasskeyMfaEnrollmentType,
31
+ P as InitiateSiweAuthenticationRequestType,
32
+ W as InitiateSmsAuthenticationNextStepType,
31
33
  O as InitiateSmsAuthenticationRequestType,
32
34
  w as InitiateSmsMfaEnrollmentType,
33
35
  B as InitiateTotpMfaEnrollmentType,
34
- M as IosAttestationRegistrationResponsePlatform,
35
- N as MfaMethod,
36
- P as Network,
36
+ I as IosAttestationRegistrationResponsePlatform,
37
+ M as MfaMethod,
38
+ N as Network,
37
39
  C as OAuth2ProviderType,
38
- I as OtpEmailLogoModerationStatus,
39
- D as RefreshAccessTokenBodyGrantType,
40
- Q as RefreshTokenUnavailableError,
41
- R as SendEvmAssetWithEndUserAccountBodyNetwork,
42
- b as SendEvmTransactionWithEndUserAccountBodyNetwork,
43
- x as SendSolanaAssetWithEndUserAccountBodyNetwork,
44
- F as SendSolanaTransactionWithEndUserAccountBodyNetwork,
45
- H as SignBtcHashWithEndUserAccountBodyChange,
46
- V as SiweAuthenticationType,
47
- q as SmsAuthenticationType,
48
- j as SpendPermissionNetwork,
49
- X as UnknownApiError,
50
- Y as UnknownError,
51
- ne as authenticateUserWithCustomAuth,
52
- J as configureCdpApiClient,
53
- re as createDelegationForEndUser,
54
- ie as createDelegationForEndUserAccount,
55
- oe as createEndUserApplePayOnrampOrder,
56
- ae as createEndUserBtcAccount,
57
- se as createEndUserEvmAccount,
58
- ce as createEndUserEvmSmartAccount,
59
- Ee as createEndUserEvmSwap,
60
- de as createEndUserSolanaAccount,
61
- Ae as createEvmEip7702DelegationWithEndUserAccount,
62
- ue as createSpendPermissionWithEndUserAccount,
63
- pe as enableSpendPermissionWithEndUserAccount,
64
- me as exportEndUserEvmAccount,
65
- he as exportEndUserSolanaAccount,
66
- le as generateAttestationChallenge,
67
- Ue as getAuthenticatedEndUser,
68
- ge as getDelegationForEndUser,
69
- Se as getDelegationForEndUserAccount,
70
- ye as getEndUserEvmSwapPrice,
71
- ve as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
72
- Te as getMfaConfig,
73
- fe as getProjectConfig,
74
- We as getUserOperationWithEndUserAccount,
75
- ke as initiateAuthentication,
76
- Oe as initiateMfaEnrollment,
77
- we as initiateMfaEnrollment2,
78
- Be as initiateMfaVerification,
79
- Z as isOpenAPIError,
80
- $ as isRefreshTokenUnavailableError,
81
- ee as isTransientTokenReadError,
82
- Me as listSpendPermissionsWithEndUserAccount,
83
- Ne as logOutEndUser,
84
- Pe as receiveOAuthCallback,
85
- Ce as receiveOAuthCallbackPost,
86
- Ie as recordMfaEnrollmentPrompted,
87
- De as refreshAccessToken,
88
- Re as registerAttestation,
89
- be as registerTemporaryWalletSecret,
90
- xe as revokeDelegationForEndUser,
91
- Fe as revokeDelegationForEndUserAccount,
92
- He as revokeSpendPermissionWithEndUserAccount,
93
- Ve as sendEvmAssetWithEndUserAccount,
94
- qe as sendEvmTransactionWithEndUserAccount,
95
- je as sendSolanaAssetWithEndUserAccount,
96
- Ge as sendSolanaTransactionWithEndUserAccount,
97
- Je as sendUserOperationWithEndUserAccount,
98
- L as setAuthManager,
99
- Le as signBtcHashWithEndUserAccount,
100
- _e as signEvmHashWithEndUserAccount,
101
- ze as signEvmMessageWithEndUserAccount,
102
- Ke as signEvmTransactionWithEndUserAccount,
103
- Qe as signEvmTypedDataWithEndUserAccount,
104
- Xe as signSolanaHashWithEndUserAccount,
105
- Ye as signSolanaMessageWithEndUserAccount,
106
- Ze as signSolanaTransactionWithEndUserAccount,
107
- $e as submitMfaEnrollment,
108
- et as submitMfaVerification,
109
- tt as verifyEmailAuthentication,
110
- nt as verifyOAuthCode,
111
- rt as verifyOAuthEndUserIdentity,
112
- it as verifySiweAuthentication,
113
- ot as verifySmsAuthentication
40
+ R as OnrampQuotePaymentMethodTypeId,
41
+ D as OtpEmailLogoStatus,
42
+ V as PasskeySummaryTransportsItem,
43
+ b as PasskeyUserVerification,
44
+ X as RefreshAccessTokenBodyGrantType,
45
+ pe as RefreshTokenUnavailableError,
46
+ x as SendEvmAssetWithEndUserAccountBodyNetwork,
47
+ F as SendEvmTransactionWithEndUserAccountBodyNetwork,
48
+ q as SendSolanaAssetWithEndUserAccountBodyNetwork,
49
+ H as SendSolanaTransactionWithEndUserAccountBodyNetwork,
50
+ j as SignBtcHashWithEndUserAccountBodyChange,
51
+ G as SiweAuthenticationType,
52
+ J as SmsAuthenticationType,
53
+ L as SpendPermissionNetwork,
54
+ Q as SubmitPasskeyRegistrationType,
55
+ _ as SubmitPasskeyVerificationType,
56
+ le as UnknownApiError,
57
+ ue as UnknownError,
58
+ z as X402BatchSettlementClaimPayloadType,
59
+ K as X402BatchSettlementDepositPayloadType,
60
+ Y as X402BatchSettlementRefundPayloadType,
61
+ Z as X402BatchSettlementSettlePayloadType,
62
+ $ as X402BatchSettlementVoucherPayloadType,
63
+ ee as X402V1Network,
64
+ te as X402V1PaymentPayloadScheme,
65
+ ne as X402V1PaymentRequirementsScheme,
66
+ re as X402V2Network,
67
+ oe as X402V2PaymentRequirementsScheme,
68
+ ie as X402Version,
69
+ Se as authenticateUserWithCustomAuth,
70
+ se as configureCdpApiClient,
71
+ ge as createDelegationForEndUser,
72
+ Te as createDelegationForEndUserAccount,
73
+ fe as createEndUserApplePayOnrampOrder,
74
+ ve as createEndUserBtcAccount,
75
+ ke as createEndUserEvmAccount,
76
+ Pe as createEndUserEvmSmartAccount,
77
+ We as createEndUserEvmSwap,
78
+ Oe as createEndUserSolanaAccount,
79
+ we as createEvmEip7702DelegationWithEndUserAccount,
80
+ Ot as createOnrampIosAttestationChallenge,
81
+ wt as createOnrampMobileChallenge,
82
+ Bt as createOnrampMobileSession,
83
+ Be as createSpendPermissionWithEndUserAccount,
84
+ Ie as deletePasskey,
85
+ Me as enableSpendPermissionWithEndUserAccount,
86
+ Ne as exportEndUserEvmAccount,
87
+ Ce as exportEndUserSolanaAccount,
88
+ Re as generateAttestationChallenge,
89
+ De as getAuthenticatedEndUser,
90
+ Ve as getDelegationForEndUser,
91
+ be as getDelegationForEndUserAccount,
92
+ Xe as getEndUserEvmSwapPrice,
93
+ xe as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
94
+ Fe as getMfaConfig,
95
+ qe as getProjectConfig,
96
+ He as getUserOperationWithEndUserAccount,
97
+ je as initiateAuthentication,
98
+ Ge as initiateMfaEnrollment,
99
+ Je as initiateMfaEnrollment2,
100
+ Le as initiateMfaVerification,
101
+ Ae as isOpenAPIError,
102
+ he as isRefreshTokenUnavailableError,
103
+ ye as isTransientTokenReadError,
104
+ Qe as listPasskeys,
105
+ _e as listSpendPermissionsWithEndUserAccount,
106
+ ze as logOutEndUser,
107
+ Ke as receiveOAuthCallback,
108
+ Ye as receiveOAuthCallbackPost,
109
+ Ze as recordMfaEnrollmentPrompted,
110
+ $e as refreshAccessToken,
111
+ et as registerAttestation,
112
+ It as registerOnrampIosAttestation,
113
+ tt as registerTemporaryWalletSecret,
114
+ nt as revokeDelegationForEndUser,
115
+ rt as revokeDelegationForEndUserAccount,
116
+ ot as revokeSpendPermissionWithEndUserAccount,
117
+ it as sendEvmAssetWithEndUserAccount,
118
+ at as sendEvmTransactionWithEndUserAccount,
119
+ st as sendSolanaAssetWithEndUserAccount,
120
+ ct as sendSolanaTransactionWithEndUserAccount,
121
+ dt as sendUserOperationWithEndUserAccount,
122
+ ce as setAuthManager,
123
+ Et as signBtcHashWithEndUserAccount,
124
+ mt as signEvmHashWithEndUserAccount,
125
+ pt as signEvmMessageWithEndUserAccount,
126
+ lt as signEvmTransactionWithEndUserAccount,
127
+ ut as signEvmTypedDataWithEndUserAccount,
128
+ At as signSolanaHashWithEndUserAccount,
129
+ ht as signSolanaMessageWithEndUserAccount,
130
+ yt as signSolanaTransactionWithEndUserAccount,
131
+ Ut as signSolanaX402PaymentWithEndUserAccount,
132
+ St as submitMfaEnrollment,
133
+ gt as submitMfaVerification,
134
+ Tt as verifyEmailAuthentication,
135
+ ft as verifyOAuthCode,
136
+ vt as verifyOAuthEndUserIdentity,
137
+ kt as verifySiweAuthentication,
138
+ Pt as verifySmsAuthentication
114
139
  };
@@ -1,7 +1,4 @@
1
- import { getDefaultExportFromCjs as r } from "./index24.js";
2
- import { __require as o } from "./index16.js";
3
- var t = o();
4
- const a = /* @__PURE__ */ r(t);
1
+ const o = "https://docs.cdp.coinbase.com/api-v2/docs/errors";
5
2
  export {
6
- a as default
3
+ o as ERROR_DOCS_PAGE_URL
7
4
  };
@@ -1,50 +1,7 @@
1
- function n() {
2
- try {
3
- return typeof navigator < "u" && navigator.product === "ReactNative";
4
- } catch {
5
- return !1;
6
- }
7
- }
8
- function r() {
9
- try {
10
- if (typeof window > "u")
11
- return typeof process < "u" && process.env && "__NEXT_PROCESSED_ENV" in process.env;
12
- const e = window;
13
- return !!(e.__NEXT_DATA__ || e.next || document.getElementById("__next"));
14
- } catch {
15
- return !1;
16
- }
17
- }
18
- function o() {
19
- try {
20
- if (typeof window > "u")
21
- return !1;
22
- const e = window;
23
- return !!(e.__VUE__ || e.__VUE_DEVTOOLS_GLOBAL_HOOK__ || document.querySelector("[data-v-]"));
24
- } catch {
25
- return !1;
26
- }
27
- }
28
- function u() {
29
- try {
30
- if (typeof window > "u")
31
- return !1;
32
- const e = window;
33
- return e.__REACT_DEVTOOLS_GLOBAL_HOOK__ || e.React ? !0 : !!document.querySelector(
34
- "[data-reactroot], [data-reactid], ._reactRoot, ._reactRootContainer"
35
- );
36
- } catch {
37
- return !1;
38
- }
39
- }
40
- function a() {
41
- return u() ? "react" : n() ? "react-native" : r() ? "nextjs" : o() ? "vue" : "unknown";
42
- }
43
- let t = null;
44
- function i() {
45
- return t === null && (t = a()), t;
46
- }
1
+ import { getDefaultExportFromCjs as r } from "./index25.js";
2
+ import { __require as o } from "./index17.js";
3
+ var t = o();
4
+ const a = /* @__PURE__ */ r(t);
47
5
  export {
48
- a as detectFramework,
49
- i as getFramework
6
+ a as default
50
7
  };
@@ -1,10 +1,50 @@
1
- import { __module as e } from "./index13.js";
2
- import { __require as o } from "./index14.js";
3
- import { __require as t } from "./index15.js";
4
- var r;
5
- function s() {
6
- return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = t(), e.exports);
1
+ function n() {
2
+ try {
3
+ return typeof navigator < "u" && navigator.product === "ReactNative";
4
+ } catch {
5
+ return !1;
6
+ }
7
+ }
8
+ function r() {
9
+ try {
10
+ if (typeof window > "u")
11
+ return typeof process < "u" && process.env && "__NEXT_PROCESSED_ENV" in process.env;
12
+ const e = window;
13
+ return !!(e.__NEXT_DATA__ || e.next || document.getElementById("__next"));
14
+ } catch {
15
+ return !1;
16
+ }
17
+ }
18
+ function o() {
19
+ try {
20
+ if (typeof window > "u")
21
+ return !1;
22
+ const e = window;
23
+ return !!(e.__VUE__ || e.__VUE_DEVTOOLS_GLOBAL_HOOK__ || document.querySelector("[data-v-]"));
24
+ } catch {
25
+ return !1;
26
+ }
27
+ }
28
+ function u() {
29
+ try {
30
+ if (typeof window > "u")
31
+ return !1;
32
+ const e = window;
33
+ return e.__REACT_DEVTOOLS_GLOBAL_HOOK__ || e.React ? !0 : !!document.querySelector(
34
+ "[data-reactroot], [data-reactid], ._reactRoot, ._reactRootContainer"
35
+ );
36
+ } catch {
37
+ return !1;
38
+ }
39
+ }
40
+ function a() {
41
+ return u() ? "react" : n() ? "react-native" : r() ? "nextjs" : o() ? "vue" : "unknown";
42
+ }
43
+ let t = null;
44
+ function i() {
45
+ return t === null && (t = a()), t;
7
46
  }
8
47
  export {
9
- s as __require
48
+ a as detectFramework,
49
+ i as getFramework
10
50
  };
@@ -1,4 +1,10 @@
1
- var e = { exports: {} };
1
+ import { __module as e } from "./index14.js";
2
+ import { __require as o } from "./index15.js";
3
+ import { __require as t } from "./index16.js";
4
+ var r;
5
+ function s() {
6
+ return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = t(), e.exports);
7
+ }
2
8
  export {
3
- e as __module
9
+ s as __require
4
10
  };