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

ezobjects

Package Overview
Dependencies
Maintainers
1
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ezobjects - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

2

generate-docs.js
const docket = require('docket-parser');
docket.title(`EZ Objects v2.1.0`);
docket.title(`EZ Objects v2.1.1`);
docket.linkClass('text-success');
docket.parseFiles(['index.js', 'mysql-connection.js']);
docket.generateDocs('docs');

@@ -545,7 +545,18 @@ const mysqlConnection = require('./mysql-connection');

else if ( typeof arg1 == 'object' && ( arg1.constructor.name == 'RowDataPacket' || arg1.constructor.name == 'Array' ) ) {
/** Loop through each property */
Object.keys(arg1).forEach((key) => {
/** Append property in object */
this[key](arg1[key]);
});
/** Create helper method for recursively loading property values into object */
const loadProperties = (obj) => {
/** If this object extends another, recursively add extended property values into objecct */
if ( obj.extendsConfig )
loadProperties(obj.extendsConfig);
/** Loop through each property */
obj.properties.forEach((property) => {
/** Append property in object */
if ( typeof arg1[property.name] !== 'undefined' )
this[property.name](property.loadTransform(arg1[property.name]));
});
};
/** Store loaded record properties into object */
loadProperties(obj);
}

@@ -552,0 +563,0 @@

{
"name": "ezobjects",
"version": "2.1.0",
"version": "2.1.1",
"description": "Easy dynamic object generation with strict typing and set chaining",

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

@@ -1,2 +0,2 @@

# EZ Objects v2.1.0
# EZ Objects v2.1.1

@@ -3,0 +3,0 @@ EZ Objects is a Node.js module (that can also be usefully browserify'd) that aims to save you lots of time

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