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

moltyjs

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moltyjs - npm Package Compare versions

Comparing version 0.9.6 to 0.9.7

7

CHANGELOG.md

@@ -20,2 +20,8 @@ ## [Unreleased]

## [0.9.7] - 2018-06-07
### Fixed
- Default values was not set on nested schema structures
## [0.9.6] - 2018-06-03

@@ -477,2 +483,3 @@

[0.9.7]: https://github.com/Yonirt/moltyjs/compare/v0.9.6...v0.9.7
[0.9.6]: https://github.com/Yonirt/moltyjs/compare/v0.9.5...v0.9.6

@@ -479,0 +486,0 @@ [0.9.5]: https://github.com/Yonirt/moltyjs/compare/v0.9.4...v0.9.5

4

lib/model.js

@@ -407,4 +407,4 @@ 'use strict';

// Objects nested
if (!schema[key].type && isObject(schema[key]) && !isArray(schema[key]) && payload && !isEmptyValue(payload[key])) {
const aux = this._normalizePayload(payload[key], schema[key]);
if (!schema[key].type && isObject(schema[key]) && !isArray(schema[key])) {
const aux = this._normalizePayload(payload ? payload[key] : {}, schema[key]);
if (aux) payload[key] = aux;

@@ -411,0 +411,0 @@ return;

{
"name": "moltyjs",
"version": "0.9.6",
"version": "0.9.7",
"description": "A tiny ODM for MongoDB with multy tenancy support.",

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

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