Socket
Socket
Sign inDemoInstall

nexus-prisma-generate

Package Overview
Dependencies
92
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.1 to 0.3.0

8

dist/index.js

@@ -58,3 +58,3 @@ #!/usr/bin/env node

if (jsMode) {
var datamodelPath = path_1.join(rootPath, output, 'meta-schema.js');
var datamodelPath = path_1.join(rootPath, output, 'datamodel-info.js');
var indexPath = path_1.join(rootPath, output, 'index.js');

@@ -65,6 +65,6 @@ fs_1.writeFileSync(datamodelPath, "module.exports = " + renderedDatamodel);

else {
var datamodelPath = path_1.join(rootPath, output, 'meta-schema.ts');
var datamodelPath = path_1.join(rootPath, output, 'datamodel-info.ts');
var indexPath = path_1.join(rootPath, output, 'index.ts');
fs_1.writeFileSync(datamodelPath, "export default " + renderedDatamodel);
fs_1.writeFileSync(indexPath, "export { default } from './meta-schema'");
fs_1.writeFileSync(indexPath, "export { default } from './datamodel-info'");
}

@@ -78,3 +78,3 @@ console.log("Types generated at " + output);

function renderIndexJs() {
return "const metaSchema = require('./meta-schema')\n \nmodule.exports = metaSchema\n ";
return "const datamodelInfo = require('./datamodel-info')\n \nmodule.exports = datamodelInfo\n ";
}

@@ -81,0 +81,0 @@ function renderDatamodel(datamodel, schema) {

{
"name": "nexus-prisma-generate",
"version": "0.2.1",
"version": "0.3.0",
"typings": "dist/index.d.ts",

@@ -5,0 +5,0 @@ "license": "MIT",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc