Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
init() {
let c /*: ChangesetDef */ = this;
c._super(...arguments);
c[CONTENT] = obj;
c[CHANGES] = {};
c[ERRORS] = {};
c[VALIDATOR] = validateFn;
c[OPTIONS] = pureAssign(defaultOptions, options);
c[RUNNING_VALIDATIONS] = {};
},
toString() /*: string */ {
let normalisedContent /*: Object */ = pureAssign(get(this, CONTENT), {});
return `changeset:${normalisedContent.toString()}`;
},