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.4.1 to 2.4.2

2

generate-docs.js
const docket = require('docket-parser');
docket.title(`EZ Objects v2.4.1`);
docket.title(`EZ Objects v2.4.2`);
docket.linkClass('text-success');
docket.parseFiles(['index.js', 'mysql-connection.js']);
docket.generateDocs('docs');
{
"name": "ezobjects",
"version": "2.4.1",
"version": "2.4.2",
"description": "Easy dynamic object generation with optional MySQL table linking",

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

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

# EZ Objects v2.4.1
# EZ Objects v2.4.2

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

* @description Set the value of the property, throwing an error if the
* javascript data type does not match the configuration, this is how the
* strict typing is implemented. This signature returns `this` to allow
* for set call chaining.
* javascript data type does not match the configuration, this is how
* the strict typing is implemented. This signature returns `this` to
* allow for set call chaining.
*/

@@ -93,3 +93,4 @@

/**
* Load external MySQL configuration which uses the following JSON format:
* Load external MySQL configuration which uses the following JSON
* format:
* {

@@ -134,5 +135,6 @@ * "host" : "localhost",

* linked to a MySQL table directory, and therefore has no tableName
* property, but it has the MySQL configuration properties on `id` because
* it will be extended by a class that is linked to a MySQL table and
* therefore it will need the MySQL configuration of the `id` property.
* property, but it has the MySQL configuration properties on `id`
* because it will be extended by a class that is linked to a MySQL
* table and therefore it will need the MySQL configuration of the
* `id` property.
*/

@@ -201,4 +203,5 @@ ezobjects.createObject(configDatabaseRecord);

/**
* The User object has all of the signatures listed in the comments for
* Basic Example above, but also has the following signatures added
* The User object has all of the signatures listed in the comments
* for the Basic Example above, but also has the following signatures
* added
* since it has a tableName defined:

@@ -214,4 +217,4 @@ *

* @description Insert this object's property values into the database
* `db`, table `tableName`, and store the resulting insertId in the `id`
* property of this object.
* `db`, table `tableName`, and store the resulting insertId in the
* `id` property of this object.
*

@@ -227,4 +230,4 @@ * @signature load(db, id)

* @param db MySQLConnection
* @param fieldValue mixed The value of the `stringSearchField` property
* of the record you wish to load
* @param fieldValue mixed The value of the `stringSearchField`
* property of the record you wish to load
* @description Load the record in database `db`, table `tableName`,

@@ -231,0 +234,0 @@ * that has its `stringSearchField` field equal to provided `id`

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