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
7
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.2.6 to 1.2.7

src/tests/beforeCreateServerDotEnv.spec.ts

25

package.json
{
"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,

2

tsconfig.json

@@ -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

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