lib/uploadToSentry.js
function createRelease(endpoint, version) {
  return new Promise(function(resolve, reject) {
    superagent
      .post(endpoint)
      .set(HEADERS)
      .send({ version: version })
      .end(function(err, res) {
        if (!err) {
          console.log('Sentry - Pushed release. Version: ' + version);
          resolve(res);
        } else {
          reject(err);
        }
      });
  });
}
function createRelease(endpoint, version) {
  return new Promise(function(resolve, reject) {
    superagent
      .post(endpoint)
      .set(HEADERS)
      .send({ version: version })
      .end(function(err, res) {
        if (!err) {
          console.log('Sentry - Pushed release. Version: ' + version);
          resolve(res);
        } else {
          reject(err);
        }
      });
  });
}
function createRelease ( endpoint , version ) { return new Promise ( function ( resolve , reject ) { superagent . post ( endpoint ) . set ( HEADERS ) . send ( { version : version } ) . end ( function ( err , res ) { if ( ! err ) { console . log ( 'Sentry - Pushed release. Version: ' + version ) ; resolve ( res ) ; } else { reject ( err ) ; } } ) ; } ) ; }
Creates a Sentry release, a versioned collection of compiled js and their
sourcemaps.
@param {String} endpoint
The endpoint this release is being pushed to
@param {String} version
The version for this release
Creates a Sentry release a versioned collection of compiled js and their sourcemaps .