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

@everymundo/fake-config-server

Package Overview
Dependencies
Maintainers
19
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@everymundo/fake-config-server - npm Package Compare versions

Comparing version 1.1.5 to 1.2.0

6

index.js

@@ -9,6 +9,7 @@ #!/usr/bin/env node

const microserviceName = require('@everymundo/generate-microservice-name').getMicroserviceName();
const baseRoute = `/${microserviceName}`;
const examples = {
basic: './sample-configs/config-response-example.json',
aws: './sample-configs/config-response-example.json',
};

@@ -30,3 +31,3 @@

const requestHandler = (request, reply) => {
const exampleName = request.params.exampleName || 'basic';
const exampleName = request.params.exampleName || 'aws';

@@ -56,2 +57,3 @@ if (!examples[exampleName]) {

fastify.get(`${baseRoute}/:exampleName`, requestHandler);
fastify.get('/:appName/:exampleName', requestHandler);

@@ -58,0 +60,0 @@ const DEFAULT_PORT = 54321;

{
"name": "@everymundo/fake-config-server",
"version": "1.1.5",
"version": "1.2.0",
"description": "Simulates the config server for local development",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -13,3 +13,3 @@ {

"source": {
"spring.data.mongodb.uri": "mongodb://microservice-dev-01.securitytrfx.com:27000,microservice-dev-02.securitytrfx.com:27000,microservice-dev-03.securitytrfx.com:27000,microservice-dev-04.securitytrfx.com:27000,microservice-dev-05.securitytrfx.com:27000/fares?readPreference=nearest"
"spring.data.mongodb.uri": "mongodb://microservice-dev-01:27000,microservice-dev-02:27000,microservice-dev-03:27000,microservice-dev-04:27000,microservice-dev-05:27000/fares?readPreference=nearest"
}

@@ -20,3 +20,3 @@ },

"source": {
"elastisearch.host": "elasticsearch-dev.securitytrfx.com",
"elastisearch.host": "elasticsearch-dev",
"elastisearch.port": 9300,

@@ -31,4 +31,4 @@ "elastisearch.ssl": false,

"eureka.client.region": "us-east-1",
"eureka.client.availability-zones.us-east-1": "us-east-1a,us-east-1b",
"eureka.client.service-url.us-east-1a": "http://10.0.177.13:8761/eureka/",
"eureka.client.availability-zones.us-east-1": "local,us-east-1b",
"eureka.client.service-url.local": "http://0.0.0.0:54321/eureka/v2",
"eureka.client.service-url.us-east-1b": "http://10.0.177.140:8761/eureka/",

@@ -35,0 +35,0 @@ "spring.redis.host": "openair-r4large.wnf6v7.ng.0001.use1.cache.amazonaws.com",

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