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

@amplication/plugin-db-mongo

Package Overview
Dependencies
Maintainers
8
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplication/plugin-db-mongo - npm Package Compare versions

Comparing version 1.3.3 to 1.4.0

7

package.json
{
"name": "@amplication/plugin-db-mongo",
"version": "1.3.3",
"version": "1.4.0",
"description": "Use a Mongo database in a service generated by Amplication",

@@ -16,3 +16,3 @@ "main": "dist/index.js",

"devDependencies": {
"@amplication/code-gen-types": "^1.1.25",
"@amplication/code-gen-types": "^2.0.1",
"@babel/parser": "^7.18.11",

@@ -33,5 +33,6 @@ "@babel/types": "^7.18.10",

"prisma-schema-dsl-types": "^1.0.8",
"rimraf": "^5.0.1",
"ts-jest": "^29.0.5",
"ts-loader": "^9.4.2",
"typescript": "4.6.2",
"typescript": "^4.9.3",
"webpack": "^5.75.0",

@@ -38,0 +39,0 @@ "webpack-cli": "^5.0.1",

@@ -18,2 +18,3 @@ import {

Module,
ModuleMap,
types,

@@ -138,10 +139,10 @@ } from "@amplication/code-gen-types";

async afterCreateServerDockerComposeDB(context: DsgContext) {
async afterCreateServerDockerComposeDB(
context: DsgContext
): Promise<ModuleMap> {
const staticPath = resolve(__dirname, "./static/docker-compose");
const staticsFiles = await context.utils.importStaticModules(
return await context.utils.importStaticModules(
staticPath,
context.serverDirectories.baseDirectory
);
return staticsFiles;
}

@@ -152,4 +153,4 @@

eventParams: LoadStaticFilesParams,
modules: Module[]
) {
modules: ModuleMap
): Promise<ModuleMap> {
const staticPathToHealthBaseService = resolve(__dirname, "./static/health");

@@ -169,17 +170,8 @@ const staticsHealthBaseService = await context.utils.importStaticModules(

const modulesWithoutOverridesFiles = modules.filter((x) => {
const fileToRemove = ["health.service.base", "health.service.spec"];
fileToRemove.forEach((fileName) => {
if (x.path.includes(fileName)) {
return false;
}
});
return true;
});
await modules.mergeMany([
staticsHealthBaseService,
staticsHealthServiceTest,
]);
return [
...staticsHealthBaseService,
...staticsHealthServiceTest,
...modulesWithoutOverridesFiles,
];
return modules;
}

@@ -186,0 +178,0 @@

{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"compilerOptions": {},
}
"include": [
"src/index.ts"
],
"exclude": [
"node_modules"
],
}

Sorry, the diff of this file is too big to display

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