@amplication/plugin-db-mongo
Advanced tools
Comparing version 1.2.7 to 1.2.8
{ | ||
"name": "@amplication/plugin-db-mongo", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"description": "Use a Mongo database in a service generated by Amplication", | ||
@@ -53,2 +53,2 @@ "main": "dist/index.js", | ||
} | ||
} | ||
} |
@@ -104,3 +104,5 @@ import { | ||
) { | ||
const { settings } = currentInstallation(context.pluginInstallations); | ||
const { settings } = currentInstallation(context.pluginInstallations) || { | ||
settings: {}, | ||
}; | ||
@@ -342,11 +344,8 @@ const fullSettings = merge(defaultSettings, settings); | ||
pluginInstallations: PluginInstallation[] | ||
): PluginInstallation { | ||
): PluginInstallation | undefined { | ||
const plugin = pluginInstallations.find((plugin, i) => { | ||
return plugin.npm === name; | ||
}); | ||
if (!plugin) { | ||
throw new Error("Missing plugin installation"); | ||
} | ||
return plugin; | ||
} |
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
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
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
2
1393816
18202