internal.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*!
  2. * Dependencies
  3. */
  4. 'use strict';
  5. const StateMachine = require('./statemachine');
  6. const ActiveRoster = StateMachine.ctor('require', 'modify', 'init', 'default', 'ignore');
  7. module.exports = exports = InternalCache;
  8. function InternalCache() {
  9. this.activePaths = new ActiveRoster();
  10. }
  11. InternalCache.prototype.fullPath = undefined;
  12. InternalCache.prototype.strictMode = undefined;
  13. InternalCache.prototype.selected = undefined;
  14. InternalCache.prototype.shardval = undefined;
  15. InternalCache.prototype.saveError = undefined;
  16. InternalCache.prototype.validationError = undefined;
  17. InternalCache.prototype.adhocPaths = undefined;
  18. InternalCache.prototype.removing = undefined;
  19. InternalCache.prototype.inserting = undefined;
  20. InternalCache.prototype.saving = undefined;
  21. InternalCache.prototype.version = undefined;
  22. InternalCache.prototype._id = undefined;
  23. InternalCache.prototype.ownerDocument = undefined;
  24. InternalCache.prototype.populate = undefined; // what we want to populate in this doc
  25. InternalCache.prototype.populated = undefined;// the _ids that have been populated
  26. /**
  27. * If `false`, this document was not the result of population.
  28. * If `true`, this document is a populated doc underneath another doc
  29. * If an object, this document is a populated doc and the `value` property of the
  30. * object contains the original depopulated value.
  31. */
  32. InternalCache.prototype.wasPopulated = false;
  33. InternalCache.prototype.scope = undefined;
  34. InternalCache.prototype.session = null;
  35. InternalCache.prototype.pathsToScopes = null;
  36. InternalCache.prototype.cachedRequired = null;