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.7 to 1.9.8

25

object.esm.js

@@ -161,5 +161,24 @@ /**

}
function ObjectGenerate(prototype=null, ...props) {
const object = Object.create(prototype);
for ( const carrier of props ) {
/**
* @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);
}
else {
object = Object.create(null);
fields.push(prototype);
}
for ( const carrier of fields ) {
if ( carrier === null || carrier === undefined )
continue;
if ( Object(carrier) === carrier ) {

@@ -166,0 +185,0 @@ Object.assign(object, carrier);

2

package.json
{
"name": "extes",
"version": "1.9.7",
"version": "1.9.8",
"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