Socket
Socket
Sign inDemoInstall

simpl-schema

Package Overview
Dependencies
Maintainers
2
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simpl-schema - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

2

dist/SimpleSchema.js

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

if (def.type && def.type instanceof _SimpleSchemaGroup2.default) {
standardizedDef.type = def.type;
standardizedDef.type = def.type.clone();
} else {

@@ -1062,0 +1062,0 @@ var groupProps = (0, _lodash6.default)(def, oneOfProps);

@@ -19,2 +19,4 @@ 'use strict';

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -31,3 +33,3 @@

this.definitions = definitions.map(function (definition) {
if (_mongoObject2.default.isBasicObject(definition)) return definition;
if (_mongoObject2.default.isBasicObject(definition)) return (0, _extend3.default)(true, {}, definition);

@@ -48,2 +50,7 @@ if (definition instanceof RegExp) {

_createClass(SimpleSchemaGroup, [{
key: 'clone',
value: function clone() {
return new (Function.prototype.bind.apply(SimpleSchemaGroup, [null].concat(_toConsumableArray(this.definitions))))();
}
}, {
key: 'extend',

@@ -50,0 +57,0 @@ value: function extend(otherGroup) {

{
"name": "simpl-schema",
"version": "1.2.1",
"version": "1.2.2",
"description": "A schema validation package that supports direct validation of MongoDB update modifier objects.",

@@ -5,0 +5,0 @@ "author": "Eric Dobbertin <aldeed@gmail.com>",

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