@dynamic-labs/client
Advanced tools
Comparing version 4.0.0-alpha.2 to 4.0.0-alpha.3
'use client' | ||
var version = "4.0.0-alpha.2"; | ||
var version = "4.0.0-alpha.3"; | ||
export { version }; |
{ | ||
"name": "@dynamic-labs/client", | ||
"version": "4.0.0-alpha.2", | ||
"version": "4.0.0-alpha.3", | ||
"repository": { | ||
@@ -30,5 +30,5 @@ "type": "git", | ||
"@vue/reactivity": "3.4.21", | ||
"@dynamic-labs/logger": "4.0.0-alpha.2", | ||
"@dynamic-labs/message-transport": "4.0.0-alpha.2", | ||
"@dynamic-labs/types": "4.0.0-alpha.2", | ||
"@dynamic-labs/logger": "4.0.0-alpha.3", | ||
"@dynamic-labs/message-transport": "4.0.0-alpha.3", | ||
"@dynamic-labs/types": "4.0.0-alpha.3", | ||
"eventemitter3": "5.0.1" | ||
@@ -35,0 +35,0 @@ }, |
'use client' | ||
import { Logger } from '@dynamic-labs/logger'; | ||
import { createAuthModule } from '../modules/authModule/authModule.js'; | ||
@@ -19,2 +20,3 @@ import { createNetworksModule } from '../modules/networksModule/networksModule.js'; | ||
const createClient = (props) => { | ||
Logger.setEnvironmentId(props.environmentId); | ||
const core = createCore(props); | ||
@@ -21,0 +23,0 @@ const baseExtendable = new Extendable(core); |
@@ -25,3 +25,3 @@ import { ClientProps } from '../client'; | ||
setAppOrigin: (appOrigin: string) => string; | ||
setPlatform: (platform: "browser" | "react-native" | "flutter") => "browser" | "react-native" | "flutter"; | ||
setPlatform: (platform: "browser" | "react-native" | "flutter") => void; | ||
setRedirectUrl: (redirectUrl: string) => string; | ||
@@ -28,0 +28,0 @@ }; |
@@ -16,3 +16,8 @@ 'use client' | ||
} | ||
logger.error(error); | ||
/** | ||
* Uses regular console.error to log the error | ||
* so we dont send the error to the backend twice | ||
*/ | ||
// eslint-disable-next-line no-console | ||
console.error(error); | ||
}); | ||
@@ -25,2 +30,5 @@ return { | ||
state.error = error; | ||
/** | ||
* Uses the logger so the error is sent to the backend | ||
*/ | ||
logger.error(state.error); | ||
@@ -27,0 +35,0 @@ }, |
@@ -9,4 +9,4 @@ import { ClientManifest, MessageTransportWithDefaultOrigin } from '@dynamic-labs/message-transport'; | ||
setAppOrigin: (appOrigin: string) => string; | ||
setPlatform: (platform: ClientManifest['platform']) => "browser" | "react-native" | "flutter"; | ||
setPlatform: (platform: ClientManifest['platform']) => void; | ||
setRedirectUrl: (redirectUrl: string) => string; | ||
}; |
'use client' | ||
import { __awaiter } from '../../../../../_virtual/_tslib.js'; | ||
import { createRequestChannel } from '@dynamic-labs/message-transport'; | ||
import { Logger } from '@dynamic-labs/logger'; | ||
import { logger } from '../../../../utils/logger/logger.js'; | ||
@@ -27,3 +28,6 @@ import { createPartialManifest } from './createPartialManifest/createPartialManifest.js'; | ||
setAppOrigin: (appOrigin) => (manifest.appOrigin = appOrigin), | ||
setPlatform: (platform) => (manifest.platform = platform), | ||
setPlatform: (platform) => { | ||
Logger.globalMetaData.set('platform', platform); | ||
manifest.platform = platform; | ||
}, | ||
setRedirectUrl: (redirectUrl) => (manifest.redirectUrl = redirectUrl), | ||
@@ -30,0 +34,0 @@ }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
412382
1325
+ Added@dynamic-labs/logger@4.0.0-alpha.3(transitive)
+ Added@dynamic-labs/message-transport@4.0.0-alpha.3(transitive)
+ Added@dynamic-labs/sdk-api-core@0.0.534(transitive)
+ Added@dynamic-labs/types@4.0.0-alpha.3(transitive)
+ Added@dynamic-labs/utils@4.0.0-alpha.3(transitive)
- Removed@dynamic-labs/logger@4.0.0-alpha.2(transitive)
- Removed@dynamic-labs/message-transport@4.0.0-alpha.2(transitive)
- Removed@dynamic-labs/sdk-api-core@0.0.530(transitive)
- Removed@dynamic-labs/types@4.0.0-alpha.2(transitive)
- Removed@dynamic-labs/utils@4.0.0-alpha.2(transitive)