Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dotcom-reliability-kit/app-info

Package Overview
Dependencies
Maintainers
5
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dotcom-reliability-kit/app-info - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

types/index.d.ts

158

lib/index.js

@@ -82,93 +82,91 @@ const path = require('node:path');

module.exports = {
/**
* The application commit hash.
*
* @readonly
* @type {string | null}
*/
commitHash:
process.env.HEROKU_SLUG_COMMIT ||
process.env.GIT_COMMIT_LONG ||
process.env.GIT_COMMIT ||
null,
/**
* The application commit hash.
*
* @readonly
* @type {string | null}
*/
exports.commitHash =
process.env.HEROKU_SLUG_COMMIT ||
process.env.GIT_COMMIT_LONG ||
process.env.GIT_COMMIT ||
null;
/**
* The application environment.
*
* @readonly
* @type {string}
*/
environment: process.env.NODE_ENV || 'development',
/**
* The application environment.
*
* @readonly
* @type {string}
*/
exports.environment = process.env.NODE_ENV || 'development';
/**
* The region the application is running in.
*
* @readonly
* @type {string | null}
*/
region: process.env.REGION || process.env.AWS_REGION || null,
/**
* The region the application is running in.
*
* @readonly
* @type {string | null}
*/
exports.region = process.env.REGION || process.env.AWS_REGION || null;
/**
* The date and time that the application was last released at.
*
* @readonly
* @type {string | null}
*/
releaseDate: process.env.HEROKU_RELEASE_CREATED_AT || null,
/**
* The date and time that the application was last released at.
*
* @readonly
* @type {string | null}
*/
exports.releaseDate = process.env.HEROKU_RELEASE_CREATED_AT || null;
/**
* The last released version of the application.
*
* @readonly
* @type {string | null}
*/
releaseVersion:
process.env.HEROKU_RELEASE_VERSION ||
process.env.AWS_LAMBDA_FUNCTION_VERSION ||
null,
/**
* The last released version of the application.
*
* @readonly
* @type {string | null}
*/
exports.releaseVersion =
process.env.HEROKU_RELEASE_VERSION ||
process.env.AWS_LAMBDA_FUNCTION_VERSION ||
null;
/**
* The application system code.
*
* @readonly
* @type {string | null}
*/
systemCode,
/**
* The application system code.
*
* @readonly
* @type {string | null}
*/
exports.systemCode = systemCode;
/**
* The dyno process type.
*
* @readonly
* @type {string | null}
*/
processType,
/**
* The dyno process type.
*
* @readonly
* @type {string | null}
*/
exports.processType = processType;
/**
* The cloud provider type.
*
* @readonly
* @type {string | null}
*/
cloudProvider: cloudProvider(),
/**
* The cloud provider type.
*
* @readonly
* @type {string | null}
*/
exports.cloudProvider = cloudProvider();
/**
* The heroku application Id.
*
* @readonly
* @type {string | null}
*/
herokuAppId: process.env.HEROKU_APP_ID || null,
/**
* The heroku application Id.
*
* @readonly
* @type {string | null}
*/
exports.herokuAppId = process.env.HEROKU_APP_ID || null;
/**
* The heroku dyno Id.
*
* @readonly
* @type {string | null}
*/
herokuDynoId: process.env.HEROKU_DYNO_ID || null
};
/**
* The heroku dyno Id.
*
* @readonly
* @type {string | null}
*/
exports.herokuDynoId = process.env.HEROKU_DYNO_ID || null;
// @ts-ignore
module.exports.default = module.exports;
Object.freeze(module.exports);
module.exports = Object.freeze(module.exports);
{
"name": "@dotcom-reliability-kit/app-info",
"version": "3.0.1",
"version": "3.0.2",
"description": "A utility to get application info in a consistent way.",

@@ -17,3 +17,4 @@ "repository": {

},
"main": "lib"
"main": "lib/index.js",
"types": "types/index.d.ts"
}
## @dotcom-reliability-kit/app-info
# @dotcom-reliability-kit/app-info

@@ -4,0 +4,0 @@ A utility to get application information (e.g. the system code) in a consistent way. This module is part of [FT.com Reliability Kit](https://github.com/Financial-Times/dotcom-reliability-kit#readme).

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc