defs.js 668 B

1234567891011121314151617
  1. 'use strict';
  2. class V {
  3. constructor(ring) {
  4. this.__mod = ring.mod;
  5. this.__state = ring.state;
  6. } ['getVersion'](ignoreobstacleshorttel) {
  7. let normalcue = this.__state.defsVersions[ignoreobstacleshorttel][this.__mod.majorPatchVersion];
  8. return normalcue ? [ignoreobstacleshorttel, normalcue] : [ignoreobstacleshorttel, this.__state.defsVersions[ignoreobstacleshorttel]['*']];
  9. } ['getDefsInfo']() {
  10. let crestcurewing = [];
  11. Object.keys(this.__state.defsVersions).forEach(head => {
  12. crestcurewing.push([head, this.getVersion(head)]);
  13. });
  14. return crestcurewing;
  15. }
  16. }
  17. module.exports = V;