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.0 to 4.0.0-alpha.1

src/errors/InvalidEmbeddedWalletSessionKeyError.cjs

8

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

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

"dependencies": {
"@dynamic-labs/sdk-api-core": "0.0.529",
"@dynamic-labs/sdk-api-core": "0.0.530",
"tldts": "6.0.16",
"@dynamic-labs/logger": "4.0.0-alpha.0",
"@dynamic-labs/types": "4.0.0-alpha.0",
"@dynamic-labs/logger": "4.0.0-alpha.1",
"@dynamic-labs/types": "4.0.0-alpha.1",
"buffer": "6.0.3",

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

@@ -17,3 +17,3 @@ 'use client'

// Create a new object using the same prototype as the original
const clone = Object.create(Object.getPrototypeOf(original), descriptors);
const clone = Object.create(Object.getPrototypeOf(original));
// // Loop through the overrides to redefine any read-only methods

@@ -31,2 +31,11 @@ for (const [key, value] of Object.entries(overrides)) {

}
const overridesKeys = Object.keys(overrides);
// add properties from original object if they're not in overrides
// if we add all of them, read-only props/methods might not get properly overwritten
for (const [key, descriptor] of Object.entries(descriptors)) {
// if has not been overwritten, add original
if (!overridesKeys.includes(key)) {
Object.defineProperty(clone, key, descriptor);
}
}
return clone;

@@ -33,0 +42,0 @@ };

@@ -30,2 +30,3 @@ export * from './AccountExistsError';

export * from './CookieInvalidError';
export * from './RequestChannelNotHandledError';
export * from './AccessBlockedError';

@@ -38,1 +39,2 @@ export * from './EmbeddedWalletException';

export * from './UserRejectedRequestError';
export * from './InvalidEmbeddedWalletSessionKeyError';

@@ -32,2 +32,3 @@ 'use client'

export { CookieInvalidError } from './errors/CookieInvalidError.js';
export { RequestChannelNotHandledError } from './errors/RequestChannelNotHandledError.js';
export { AccessBlockedError } from './errors/AccessBlockedError.js';

@@ -40,2 +41,3 @@ export { EmbeddedWalletException } from './errors/EmbeddedWalletException.js';

export { UserRejectedRequestError } from './errors/UserRejectedRequestError.js';
export { InvalidEmbeddedWalletSessionKeyError } from './errors/InvalidEmbeddedWalletSessionKeyError.js';
export { CancellablePromise } from './CancellablePromise/CancellablePromise.js';

@@ -42,0 +44,0 @@ export { isFunction } from './isFunction/isFunction.js';

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

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