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

extes

Package Overview
Dependencies
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extes - npm Package Compare versions

Comparing version 1.9.8 to 2.0.0

29

object.esm.js

@@ -161,28 +161,7 @@ /**

}
/**
* @param {Object} [prototype]
* @param {Object[]} fields
* @returns {Object}
**/
function ObjectGenerate(prototype, ...fields) {
let object;
if ( fields.length >= 2 ) {
object = Object.create(fields[0]);
fields = fields.slice(1);
function ObjectGenerate(field, prototype=null) {
const object = Object.create(prototype);
if ( Object(field) === field ) {
Object.assign(object, field);
}
else {
object = Object.create(null);
fields.push(prototype);
}
for ( const carrier of fields ) {
if ( carrier === null || carrier === undefined )
continue;
if ( Object(carrier) === carrier ) {
Object.assign(object, carrier);
}
}
return object;

@@ -189,0 +168,0 @@ }

2

package.json
{
"name": "extes",
"version": "1.9.8",
"version": "2.0.0",
"description": "A tiny library that extends native js with some handy tools",

@@ -5,0 +5,0 @@ "main": "index.mjs",

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