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

modelsafe

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modelsafe - npm Package Compare versions

Comparing version 1.0.0-alpha.3 to 1.0.0-alpha.4

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 1.0.0-alpha.4
* [FIX] Make `associations` serialization options optional
# 1.0.0-alpha.3

@@ -2,0 +6,0 @@

12

dist/model.d.ts

@@ -12,5 +12,5 @@ /** Options for constructing a model instance. */

/** Whether to serialize associations recursively. */
associations: boolean;
associations?: boolean;
/** The depth of associations to recursively serialize. */
depth: number;
depth?: number;
}

@@ -20,7 +20,7 @@ /** Options for deserializing a JSON object to a model instance. */

/** Whether to serialize associations recursively. */
associations: boolean;
associations?: boolean;
/** The depth of associations to recursively serialize. */
depth: number;
depth?: number;
/** Whether to run validations to ensure the JSON data is valid. */
validate: boolean;
validate?: boolean;
}

@@ -33,3 +33,3 @@ /** Options for validating a model instance. */

*/
required: boolean;
required?: boolean;
}

@@ -36,0 +36,0 @@ /**

{
"name": "modelsafe",
"version": "1.0.0-alpha.3",
"version": "1.0.0-alpha.4",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "bugs": "https://github.com/creativecuriositystudio/modelsafe/issues",

@@ -21,6 +21,6 @@ /** Contains the model classes and decorators. */

/** Whether to serialize associations recursively. */
associations: boolean;
associations?: boolean;
/** The depth of associations to recursively serialize. */
depth: number;
depth?: number;
}

@@ -31,9 +31,9 @@

/** Whether to serialize associations recursively. */
associations: boolean;
associations?: boolean;
/** The depth of associations to recursively serialize. */
depth: number;
depth?: number;
/** Whether to run validations to ensure the JSON data is valid. */
validate: boolean;
validate?: boolean;
}

@@ -47,3 +47,3 @@

*/
required: boolean;
required?: boolean;
}

@@ -50,0 +50,0 @@

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