api/NodeAPI.js
function registerResources(rs) {
    registerPromise = registerPromise.then(() => {
      return Promise.all(rs.map((r) => { return Promise.denodeify(pushResource)(r); }));
    });
  }
function registerResources(rs) {
    registerPromise = registerPromise.then(() => {
      return Promise.all(rs.map((r) => { return Promise.denodeify(pushResource)(r); }));
    });
  }
function registerResources ( rs ) { registerPromise = registerPromise . then ( ( ) => { return Promise . all ( rs . map ( ( r ) => { return Promise . denodeify ( pushResource ) ( r ) ; } ) ) ; } ) ; }
only use registerResources for independent resources
only use registerResources for independent resources