Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (e) {
e.message = helpfulMessage;
}
else {
e = new Error(helpfulMessage);
e.code = res.status.toString();
}
}
}
throw e;
});
};
/**
* Google Compute Engine metadata server token endpoint.
*/
Compute._GOOGLE_OAUTH2_TOKEN_URL = gcpMetadata.BASE_PATH + "/instance/service-accounts/default/token";
return Compute;
}(oauth2client_1.OAuth2Client));
exports.Compute = Compute;