Socket
Socket
Sign inDemoInstall

@burninggarden/config

Package Overview
Dependencies
232
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.0.4

2

package.json
{
"name": "@burninggarden/config",
"description": "A library for sharing config values across modules",
"version": "0.0.3",
"version": "0.0.4",
"private": false,

@@ -6,0 +6,0 @@ "author": "Burning Garden",

@@ -27,2 +27,6 @@ import {EnvironmentType} from '@burninggarden/enums';

public static getManagerPort(): number {
return this.getInstance().getManagerPort();
}
public isDevelopment(): boolean {

@@ -40,2 +44,6 @@ return this.getEnvironmentType() === EnvironmentType.DEVELOPMENT;

public getManagerPort(): number {
return 3000;
}
private getEnvironmentType(): EnvironmentType {

@@ -42,0 +50,0 @@ switch (process.env.NODE_ENV) {

@@ -54,1 +54,8 @@ import Tap from 'tap';

});
Tap.test('.getManagerPort() returns expected port value', test => {
const port = (new Config()).getManagerPort();
test.equals(port, 3000);
test.end();
});
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc