@amplication/plugin-db-mongo
Advanced tools
Comparing version 1.2.6 to 1.2.7
{ | ||
"name": "@amplication/plugin-db-mongo", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"description": "Use a Mongo database in a service generated by Amplication", | ||
@@ -9,3 +9,4 @@ "main": "dist/index.js", | ||
"build": "webpack", | ||
"prebuild": "rimraf dist" | ||
"prebuild": "rimraf dist", | ||
"test": "jest" | ||
}, | ||
@@ -18,2 +19,3 @@ "author": "Mor Hagbi", | ||
"@babel/types": "^7.18.10", | ||
"@types/jest": "^29.5.0", | ||
"@types/lodash": "^4.14.182", | ||
@@ -31,2 +33,3 @@ "@types/normalize-path": "^3.0.0", | ||
"prisma-schema-dsl-types": "^1.0.8", | ||
"ts-jest": "^29.0.5", | ||
"ts-loader": "^9.4.2", | ||
@@ -36,3 +39,19 @@ "typescript": "4.6.2", | ||
"webpack-cli": "^5.0.1" | ||
}, | ||
"jest": { | ||
"moduleFileExtensions": [ | ||
"js", | ||
"json", | ||
"ts" | ||
], | ||
"rootDir": "src/tests", | ||
"testRegex": ".*\\.spec\\.ts$", | ||
"transform": { | ||
"^.+\\.(t|j)s$": "ts-jest" | ||
}, | ||
"collectCoverageFrom": [ | ||
"**/*.(t|j)s" | ||
], | ||
"testEnvironment": "node" | ||
} | ||
} | ||
} |
@@ -22,2 +22,3 @@ import { | ||
import { camelCase } from "camel-case"; | ||
import { merge } from "lodash"; | ||
import { pascalCase } from "pascal-case"; | ||
@@ -27,2 +28,3 @@ import { resolve } from "path"; | ||
import { ReferentialActions, ScalarType } from "prisma-schema-dsl-types"; | ||
import defaultSettings from "../.amplicationrc.json"; | ||
import { name } from "../package.json"; | ||
@@ -105,4 +107,7 @@ import { dataSource, updateDockerComposeProperties } from "./constants"; | ||
const { settings } = currentInstallation(context.pluginInstallations); | ||
const { port, password, user, host, dbName } = settings; | ||
const fullSettings = merge(defaultSettings, settings); | ||
const { port, password, user, host, dbName } = fullSettings; | ||
eventParams.envVariables = [ | ||
@@ -109,0 +114,0 @@ ...eventParams.envVariables, |
@@ -22,3 +22,3 @@ { | ||
"include": ["src/index.ts"], | ||
"exclude": ["node_modules"] | ||
"exclude": ["node_modules", "test", "dist", "**/*spec.ts"] | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
1393963
16
18204
21
2
3