@dotcom-reliability-kit/app-info
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -1,5 +0,1 @@ | ||
/** | ||
* @module @dotcom-reliability-kit/app-info | ||
*/ | ||
const path = require('path'); | ||
@@ -49,54 +45,48 @@ | ||
/** | ||
* The application commit hash. | ||
* | ||
* @readonly | ||
* @access public | ||
* @type {(string | null)} | ||
* @type {string | null} | ||
*/ | ||
get commitHash() { | ||
return process.env.HEROKU_SLUG_COMMIT || null; | ||
}, | ||
commitHash: process.env.HEROKU_SLUG_COMMIT || null, | ||
/** | ||
* The application environment. | ||
* | ||
* @readonly | ||
* @access public | ||
* @type {string} | ||
*/ | ||
get environment() { | ||
return process.env.NODE_ENV || 'development'; | ||
}, | ||
environment: process.env.NODE_ENV || 'development', | ||
/** | ||
* The region the application is running in. | ||
* | ||
* @readonly | ||
* @access public | ||
* @type {(string | null)} | ||
* @type {string | null} | ||
*/ | ||
get region() { | ||
return process.env.REGION || null; | ||
}, | ||
region: process.env.REGION || null, | ||
/** | ||
* The date and time that the application was last released at. | ||
* | ||
* @readonly | ||
* @access public | ||
* @type {(string | null)} | ||
* @type {string | null} | ||
*/ | ||
get releaseDate() { | ||
return process.env.HEROKU_RELEASE_CREATED_AT || null; | ||
}, | ||
releaseDate: process.env.HEROKU_RELEASE_CREATED_AT || null, | ||
/** | ||
* The last released version of the application. | ||
* | ||
* @readonly | ||
* @access public | ||
* @type {(string | null)} | ||
* @type {string | null} | ||
*/ | ||
get releaseVersion() { | ||
return process.env.HEROKU_RELEASE_VERSION || null; | ||
}, | ||
releaseVersion: process.env.HEROKU_RELEASE_VERSION || null, | ||
/** | ||
* The application system code. | ||
* | ||
* @readonly | ||
* @access public | ||
* @type {(string | null)} | ||
* @type {string | null} | ||
*/ | ||
get systemCode() { | ||
return systemCode; | ||
} | ||
systemCode | ||
}; | ||
@@ -106,1 +96,2 @@ | ||
module.exports.default = module.exports; | ||
Object.freeze(module.exports); |
{ | ||
"name": "@dotcom-reliability-kit/app-info", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A utility to get application info in a consistent way.", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6066
85