Socket
Socket
Sign inDemoInstall

@dynamic-labs/utils

Package Overview
Dependencies
Maintainers
1
Versions
493
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dynamic-labs/utils - npm Package Compare versions

Comparing version 4.0.0-alpha.2 to 4.0.0-alpha.3

8

package.json
{
"name": "@dynamic-labs/utils",
"version": "4.0.0-alpha.2",
"version": "4.0.0-alpha.3",
"repository": {

@@ -29,6 +29,6 @@ "type": "git",

"dependencies": {
"@dynamic-labs/sdk-api-core": "0.0.530",
"@dynamic-labs/sdk-api-core": "0.0.534",
"tldts": "6.0.16",
"@dynamic-labs/logger": "4.0.0-alpha.2",
"@dynamic-labs/types": "4.0.0-alpha.2",
"@dynamic-labs/logger": "4.0.0-alpha.3",
"@dynamic-labs/types": "4.0.0-alpha.3",
"buffer": "6.0.3",

@@ -35,0 +35,0 @@ "eventemitter3": "5.0.1",

@@ -166,3 +166,6 @@ 'use client'

if (providersWaitingOauthMessage[provider])
typedReject('user-cancelled');
typedReject({
code: SocialOAuthErrorCode.USER_CANCELLED,
message: 'User cancelled connection',
});
}, 2000);

@@ -169,0 +172,0 @@ });

@@ -28,3 +28,3 @@ import { OauthResultResponse, Provider, ProviderEnum } from '@dynamic-labs/sdk-api-core';

};
export type GetOauthCodeError = 'user-cancelled' | {
export type GetOauthCodeError = {
code: SocialOAuthErrorCode;

@@ -31,0 +31,0 @@ message: string;

@@ -27,9 +27,8 @@ 'use client'

// eslint-disable-next-line @typescript-eslint/no-explicit-any
Oauth2Service.isGetOauthCodeError = (error) => error === 'user-cancelled' ||
(typeof error === 'object' &&
'code' in error &&
Object.values(SocialOAuthErrorCode).includes(error.code) &&
'message' in error &&
typeof error.message === 'string');
Oauth2Service.isGetOauthCodeError = (error) => typeof error === 'object' &&
'code' in error &&
Object.values(SocialOAuthErrorCode).includes(error.code) &&
'message' in error &&
typeof error.message === 'string';
export { Oauth2Service };

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc