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 3.2.0 to 3.2.1

2

generate-docs.js
const docket = require(`docket-parser`);
docket.title(`EZ Objects v3.2.0`);
docket.title(`EZ Objects v3.2.1`);
docket.linkClass(`text-success`);
docket.parseFiles([`index.js`]);
docket.generateDocs(`docs`);
{
"name": "ezobjects",
"version": "3.2.0",
"version": "3.2.1",
"description": "Easy Auto-Generated Strictly-Typed JavaScript Class Objects",

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

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

# EZ Objects v3.2.0
# EZ Objects v3.2.1

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

* **name** - `string` - (required) Name of the property, must conform to JavaScript rules
* **type** - `string` - (optional) JavaScript data type, or types if separated by the pipe `|` character, that the property must be equal to -- types can be `int`, `float`, `string`, `boolean`, `date`, `buffer`, `function`, any other valid object constructor name, or `Array` where `arrayOf` is provided with information about the array element types. \[either **type** and/or **instanceOf** is required]
* **instanceOf** - `string` - (optional) JavaScript class constructor name, or names if separated by the pipe `|` character, that the property must be an instance of \[either **type** and/or **instanceOf** is required]
* **type** - `string` - (optional) JavaScript data type that the property must be equal to -- types can be `int`, `float`, `string`, `boolean`, `date`, `buffer`, `function`, any other valid object constructor name, or `array` where `arrayOf` is provided with information about the array element types. \[either **type** or **instanceOf** is required]
* **instanceOf** - `string` - (optional) JavaScript class constructor name, that the property must be an instance of \[either **type** and/or **instanceOf** is required]
* **default** - `mixed` - (optional) Sets the default value for the property in the class object
* **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`, `function`, any other valid object constructor name
* **initTransform(x)** - `function` - (optional) Function that transforms and returns the property value prior to initializing (does not affect ezobjects defaults or custom defaults)
* **getTransform(x)** - `function` - (optional) Function that transforms and returns the property value prior to getting
* **setTransform(x)** - `function` - (optional) Function that transforms and returns the property value prior to setting
* **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`, `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

@@ -221,0 +221,0 @@ ### Default intiailizations for different EZ Object types

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