New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

prisma-erd-generator

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prisma-erd-generator - npm Package Compare versions

Comparing version 0.8.1-1 to 0.9.0-0

6

dist/generate.js

@@ -148,2 +148,6 @@ "use strict";

var _a, _b, _c, _d;
if (process.env.SKIP_ERD === 'true') {
console.log('Skipping ERD generation');
return;
}
try {

@@ -172,3 +176,3 @@ const output = ((_a = options.generator.output) === null || _a === void 0 ? void 0 : _a.value) || './prisma/ERD.svg';

const tempConfigFile = path.resolve(path.join(tmpDir, 'config.json'));
fs_1.default.writeFileSync(tempConfigFile, JSON.stringify({ deterministicIds: true, maxTextSize: 90000 }));
fs_1.default.writeFileSync(tempConfigFile, JSON.stringify({ deterministicIds: true }));
let mermaidCliNodePath = path.resolve(path.join('node_modules', '.bin', 'mmdc'));

@@ -175,0 +179,0 @@ if (!fs_1.default.existsSync(mermaidCliNodePath)) {

5

package.json
{
"version": "0.8.1-1",
"version": "0.9.0-0",
"license": "MIT",

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

"src",
"tsconfig.json"
"tsconfig.json",
"config.json"
],

@@ -12,0 +13,0 @@ "engines": {

@@ -79,2 +79,10 @@ # Prisma Entity Relationship Diagram Generator

### Skip Generate
Scenarios arise where you don't want to generate a new ER Diagram and you can bypass this generator for those environments with an environment variable `SKIP_ERD`
```bash
SKIP_ERD=true
```
## Contributors ✨

@@ -81,0 +89,0 @@

@@ -202,2 +202,6 @@ import { GeneratorOptions } from '@prisma/generator-helper';

export default async (options: GeneratorOptions) => {
if (process.env.SKIP_ERD === 'true') {
console.log('Skipping ERD generation');
return;
}
try {

@@ -248,3 +252,3 @@ const output = options.generator.output?.value || './prisma/ERD.svg';

tempConfigFile,
JSON.stringify({ deterministicIds: true, maxTextSize: 90000 })
JSON.stringify({ deterministicIds: true })
);

@@ -251,0 +255,0 @@

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