UNPKG

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