@amplication/plugin-db-mongo
Advanced tools
Comparing version 1.3.3 to 1.4.0
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
199135
2299
23
1