Add new debug operator to search and fix some bugs

This commit is contained in:
John Supplee 2021-12-20 10:26:00 +02:00
parent 7f8f3f8f16
commit 94525a4d3d
7 changed files with 153 additions and 53 deletions

View file

@ -77,6 +77,10 @@ SessionData.attachSchema(
optional: true,
defaultValue: [],
},
debug: {
type: String,
optional: true,
},
'errors.$': {
type: new SimpleSchema({
tag: {
@ -177,7 +181,7 @@ function unpickleObject(obj) {
SessionData.pickle = value => {
return JSON.stringify(value, (key, value) => {
return pickleValue(value);
});
}, 2);
};
function pickleValue(value) {