New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dotcom-reliability-kit/app-info

Package Overview
Dependencies
Maintainers
5
Versions
20
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 2.2.0 to 2.3.0

2

lib/index.d.ts

@@ -13,3 +13,5 @@ export const systemCode: string | null;

export declare let cloudProvider: string | null;
export declare let herokuAppId: string | null;
export declare let herokuDynoId: string | null;
export default module.exports;
//# sourceMappingURL=index.d.ts.map

@@ -47,3 +47,3 @@ const path = require('node:path');

/**
* Extract the proceess type from a Heroku dyno name.
* Extract the process type from a Heroku dyno name.
*

@@ -153,3 +153,19 @@ * @param {string} dyno

*/
cloudProvider: cloudProvider()
cloudProvider: cloudProvider(),
/**
* The heroku application Id.
*
* @readonly
* @type {string | null}
*/
herokuAppId: process.env.HEROKU_APP_ID || null,
/**
* The heroku dyno Id.
*
* @readonly
* @type {string | null}
*/
herokuDynoId: process.env.HEROKU_DYNO_ID || null
};

@@ -156,0 +172,0 @@

2

package.json
{
"name": "@dotcom-reliability-kit/app-info",
"version": "2.2.0",
"version": "2.3.0",
"description": "A utility to get application info in a consistent way.",

@@ -5,0 +5,0 @@ "repository": {

@@ -14,3 +14,5 @@

* [`appInfo.processType`](#appinfoprocesstype)
* [`appInfo.cloudProvider](#appinfocloudprovider)
* [`appInfo.cloudProvider`](#appinfocloudprovider)
* [`appInfo.herokuAppId`](#appinfoherokuappId)
* [`appInfo.herokuDynoId`](#appinfoherokudynoId)
* [Contributing](#contributing)

@@ -88,2 +90,14 @@ * [License](#license)

### `appInfo.herokuAppId`
Get the `process.env.HEROKU_APP_ID` which is the unique identifier for the application.e.g "9daa2797-e49b-4624-932f-ec3f9688e3da"
This is derived from the dyno metadata
### `appInfo.herokuDynoId`
Get the `process.env.HEROKU_DYNO_ID` which is the dyno identifier
This is derived from the dyno metadata
## Contributing

@@ -90,0 +104,0 @@

Sorry, the diff of this file is not supported yet

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