Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import SimpleSchema from "simpl-schema"
// ***************************************************************
// Config for both client and server
// ***************************************************************
// Extra logging for SimpleSchema. Turn off in production!
SimpleSchema.debug = true
import SimpleSchema from 'simpl-schema';
SimpleSchema.debug = true;
var schema = {
title: {type: String},
createdAt: {
type: Date,
autoValue: function () {
if (this.isInsert) {
return this.value || new Date();
}
},
optional: true
},
updatedAt: {
type: Date,
autoValue: function () {
if (this.isUpdate) {
return new Date();
import SimpleSchema from 'simpl-schema';
if (Meteor.isDevelopment){
SimpleSchema.debug = true
}