q3-schema-utils
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "q3-schema-utils", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"main": "index.js", | ||
@@ -10,6 +10,6 @@ "dependencies": { | ||
"mongoose": "^5.7.1", | ||
"q3-core-responder": "^1.0.35" | ||
"q3-core-responder": "^1.0.36" | ||
}, | ||
"devDependencies": { | ||
"q3-test-utils": "^1.0.46" | ||
"q3-test-utils": "^1.0.47" | ||
}, | ||
@@ -24,3 +24,3 @@ "jest": { | ||
}, | ||
"gitHead": "68061ed9599cb87a099aeee9e9e12367ae921950" | ||
"gitHead": "f219ad4a94dd3eff448d1d37b2cb13ceefe7eb7b" | ||
} |
@@ -10,8 +10,13 @@ const mongoose = require('mongoose'); | ||
const pluginSchemaEnabled = new mongoose.Schema({ | ||
age: { type: Number, default: 10, required: true }, | ||
friend: mongoose.Types.ObjectId, | ||
dogs: [childSchema], | ||
name: String, | ||
}); | ||
const pluginSchemaEnabled = new mongoose.Schema( | ||
{ | ||
age: { type: Number, default: 10, required: true }, | ||
friend: mongoose.Types.ObjectId, | ||
dogs: [childSchema], | ||
name: String, | ||
}, | ||
{ | ||
featured: true, | ||
}, | ||
); | ||
@@ -18,0 +23,0 @@ const stub = { |
@@ -182,6 +182,2 @@ /* eslint-disable func-names, no-param-reassign */ | ||
}, | ||
featured: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
}); | ||
@@ -201,2 +197,10 @@ | ||
if (schema.options.featured) | ||
schema.add({ | ||
featured: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
}); | ||
return schema; | ||
@@ -203,0 +207,0 @@ }; |
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
18717
605
Updatedq3-core-responder@^1.0.36