Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dynamic-labs/utils

Package Overview
Dependencies
Maintainers
0
Versions
535
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 3.0.1 to 3.0.2

6

package.json
{
"name": "@dynamic-labs/utils",
"version": "3.0.1",
"version": "3.0.2",
"repository": {

@@ -31,4 +31,4 @@ "type": "git",

"tldts": "6.0.16",
"@dynamic-labs/logger": "3.0.1",
"@dynamic-labs/types": "3.0.1",
"@dynamic-labs/logger": "3.0.2",
"@dynamic-labs/types": "3.0.2",
"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 @@ };

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