simpl-schema
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -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>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
115825
2547