internal.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. this.strictMode = undefined;
  11. }
  12. InternalCache.prototype.fullPath = undefined;
  13. InternalCache.prototype.strictMode = undefined;
  14. InternalCache.prototype.selected = undefined;
  15. InternalCache.prototype.shardval = undefined;
  16. InternalCache.prototype.saveError = undefined;
  17. InternalCache.prototype.validationError = undefined;
  18. InternalCache.prototype.adhocPaths = undefined;
  19. InternalCache.prototype.removing = undefined;
  20. InternalCache.prototype.inserting = undefined;
  21. InternalCache.prototype.saving = undefined;
  22. InternalCache.prototype.version = undefined;
  23. InternalCache.prototype._id = undefined;
  24. InternalCache.prototype.ownerDocument = undefined;
  25. InternalCache.prototype.populate = undefined; // what we want to populate in this doc
  26. InternalCache.prototype.populated = undefined;// the _ids that have been populated
  27. InternalCache.prototype.wasPopulated = false; // if this doc was the result of a population
  28. InternalCache.prototype.scope = undefined;
  29. InternalCache.prototype.session = null;
  30. InternalCache.prototype.pathsToScopes = null;
  31. InternalCache.prototype.cachedRequired = null;