New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 4.1.1 to 5.0.0

2

generate-docs.js
const docket = require(`docket-parser`);
docket.title(`EZ Objects v4.1.1`);
docket.title(`EZ Objects v5.0.0`);
docket.linkClass(`text-success`);
docket.parseFiles([`index.js`]);
docket.generateDocs(`docs`);

@@ -314,14 +314,2 @@ /**

/** If there is no init transform, set to default */
if ( typeof property.initTransform !== `function` )
property.initTransform = typeof property.ezobjectType == 'object' && typeof property.ezobjectType.initTransform == 'function' ? property.ezobjectType.initTransform : defaultTransform;
/** If there is no getter transform, set to default */
if ( typeof property.getTransform !== `function` )
property.getTransform = typeof property.ezobjectType == 'object' && typeof property.ezobjectType.getTransform == 'function' ? property.ezobjectType.getTransform : defaultTransform;
/** If there is no setter transform, set to default */
if ( typeof property.setTransform !== `function` )
property.setTransform = typeof property.ezobjectType == 'object' && typeof property.ezobjectType.setTransform == 'function' ? property.ezobjectType.setTransform : defaultTransform;
/** If there is no save transform, set to default */

@@ -447,3 +435,3 @@ if ( typeof property.saveTransform !== `function` )

/** Initialize types to defaults */
this[property.name](property.initTransform(data[property.name]) || property.default || property.ezobjectType.default);
this[property.name](data[property.name] || property.default || property.ezobjectType.default);
});

@@ -459,3 +447,3 @@ }

if ( arg === undefined )
return property.getTransform(this[`_${property.name}`]);
return this[`_${property.name}`];

@@ -462,0 +450,0 @@ /** Setter */

{
"name": "ezobjects",
"version": "4.1.1",
"version": "5.0.0",
"description": "Easy Auto-Generated Strictly-Typed JavaScript Class Objects",

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

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

# EZ Objects v4.1.1
# EZ Objects v5.0.0

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

* **arrayOf** - `string` - (required for type `array`) A plain object containing he EZ Object `type` or `instanceOf` of the elements of the array -- types can be `int`, `float`, `string`, `boolean`, `date`, `buffer`, `set`, `function`, any other valid object constructor name. \[either **type** or **instanceOf** is required]
* **initTransform(x, propertyConfig)** - `function` - (optional) Function that transforms and returns the property value prior to initializing (does not affect ezobjects defaults or custom defaults)
* **getTransform(x, propertyConfig)** - `function` - (optional) Function that transforms and returns the property value prior to getting
* **setTransform(x, propertyConfig)** - `function` - (optional) Function that transforms and returns the property value prior to setting

@@ -226,0 +224,0 @@

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