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.4 to 0.9.5

9

CHANGELOG.md

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

## [0.9.5] - 2018-05-20
### Added
* Mixes Schema type
## [0.9.4] - 2018-05-17

@@ -25,3 +31,3 @@

* New agregate pipeline stages: sort, limit, skip, sortByCount,
* New agregate pipeline stages: sort, limit, skip, sortByCount

@@ -466,2 +472,3 @@ ## [0.9.3] - 2018-05-17

[0.9.5]: https://github.com/Yonirt/moltyjs/compare/v0.9.4...v0.9.5
[0.9.4]: https://github.com/Yonirt/moltyjs/compare/v0.9.3...v0.9.4

@@ -468,0 +475,0 @@ [0.9.3]: https://github.com/Yonirt/moltyjs/compare/v0.9.2...v0.9.3

5

lib/schema.js

@@ -39,3 +39,3 @@ 'use strict';

/**
* types(): Static method to return all the types supportes
* types(): Static method to return all the types supported
* by a schema

@@ -54,3 +54,4 @@ *

Array,
Object
Object,
Mixed: 'Mixed'
};

@@ -57,0 +58,0 @@ }

@@ -47,3 +47,3 @@ 'use strict';

const isSupportedType = function isSupportedType(t) {
return t === String || t === Number || t === Boolean || t === Buffer || t === Date || t === Array || isArray(t) || t === Object || t === ObjectId;
return t === String || t === Number || t === Boolean || t === Buffer || t === Date || t === Array || isArray(t) || t === Object || t === ObjectId || t === 'Mixed';
};

@@ -68,2 +68,4 @@

return isObjectId(value);
} else if (type === 'Mixed') {
return true;
} else {

@@ -70,0 +72,0 @@ return false;

{
"name": "moltyjs",
"version": "0.9.4",
"version": "0.9.5",
"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