INNER CODE UNIT · JavaScript

Promise

pnxtech/hydra · lib/config.js:91

    return new Promise((resolve, reject) => {
      this._doInit(cfg, resolve, reject);
    });
  }
}

/**
* Return an ES6 Proxy object which provides access to configuration fields.
*/
module.exports = new Proxy(new Config(), {
  get: function(target, name, _receiver) {
    return name in target ?
      target[name] : target.config[name];
  }
});

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…