Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prisma-datamodel

Package Overview
Dependencies
Maintainers
1
Versions
345
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prisma-datamodel - npm Package Compare versions

Comparing version 1.32.0-beta.3 to 1.32.0

2

dist/datamodel/directives.d.ts

@@ -9,3 +9,3 @@ export declare abstract class DirectiveKeys {

static sequence: string;
static relationTable: string;
static linkTable: string;
static scalarList: string;

@@ -12,0 +12,0 @@ static isId: string;

@@ -13,3 +13,3 @@ "use strict";

DirectiveKeys.sequence = 'sequence';
DirectiveKeys.relationTable = 'relationTable';
DirectiveKeys.linkTable = 'linkTable';
DirectiveKeys.scalarList = 'scalarList';

@@ -16,0 +16,0 @@ DirectiveKeys.isId = 'id';

@@ -139,3 +139,3 @@ /**

*/
isRelationTable: boolean;
isLinkTable: boolean;
/**

@@ -142,0 +142,0 @@ * The name of this type.

@@ -135,3 +135,3 @@ import { IGQLType, IGQLField, ISDL, IDirectiveInfo, IIndexInfo, IdStrategy, ISequenceInfo } from '../model';

*/
protected isRelationTable(type: any): boolean;
protected isLinkTable(type: any): boolean;
/**

@@ -138,0 +138,0 @@ * Parases an object type.

@@ -325,4 +325,4 @@ "use strict";

*/
DefaultParser.prototype.isRelationTable = function (type) {
return this.hasDirective(type, directives_1.DirectiveKeys.relationTable);
DefaultParser.prototype.isLinkTable = function (type) {
return this.hasDirective(type, directives_1.DirectiveKeys.linkTable);
};

@@ -344,3 +344,3 @@ /**

var isEmbedded = this.isEmbedded(type);
var isRelationTable = this.isRelationTable(type);
var isLinkTable = this.isLinkTable(type);
var directives = this.parseDirectives(type);

@@ -352,3 +352,3 @@ var indices = this.parseIndices(type, fields);

isEnum: false,
isRelationTable: isRelationTable,
isLinkTable: isLinkTable,
isEmbedded: isEmbedded,

@@ -398,3 +398,3 @@ databaseName: databaseName,

isEnum: true,
isRelationTable: false,
isLinkTable: false,
isEmbedded: false,

@@ -401,0 +401,0 @@ directives: directives,

@@ -9,3 +9,3 @@ import { ISDL, IGQLType, IDirectiveInfo, IGQLField, IIndexInfo } from '../model';

};
protected createIsRelationTableTypeDirective(type: IGQLType): {
protected createIsLinkTableTypeDirective(type: IGQLType): {
name: string;

@@ -24,3 +24,3 @@ arguments: {};

protected shouldCreateIsEmbeddedTypeDirective(type: IGQLType): boolean;
protected shouldCreateIsRelationTableTypeDirective(type: IGQLType): boolean;
protected shouldCreateIsLinkTableTypeDirective(type: IGQLType): boolean;
protected shouldCreateDatabaseNameTypeDirective(type: IGQLType): boolean | "" | null;

@@ -27,0 +27,0 @@ protected shouldRenderIndexDirectives(type: IGQLType): boolean;

@@ -42,4 +42,4 @@ "use strict";

};
Renderer.prototype.createIsRelationTableTypeDirective = function (type) {
return { name: directives_1.DirectiveKeys.relationTable, arguments: {} };
Renderer.prototype.createIsLinkTableTypeDirective = function (type) {
return { name: directives_1.DirectiveKeys.linkTable, arguments: {} };
};

@@ -102,4 +102,4 @@ Renderer.prototype.createDatabaseNameTypeDirective = function (type) {

};
Renderer.prototype.shouldCreateIsRelationTableTypeDirective = function (type) {
return type.isRelationTable;
Renderer.prototype.shouldCreateIsLinkTableTypeDirective = function (type) {
return type.isLinkTable;
};

@@ -119,4 +119,4 @@ Renderer.prototype.shouldCreateDatabaseNameTypeDirective = function (type) {

}
if (this.shouldCreateIsRelationTableTypeDirective(type)) {
typeDirectives.push(this.createIsRelationTableTypeDirective(type));
if (this.shouldCreateIsLinkTableTypeDirective(type)) {
typeDirectives.push(this.createIsLinkTableTypeDirective(type));
}

@@ -123,0 +123,0 @@ if (this.shouldRenderIndexDirectives(type)) {

{
"name": "prisma-datamodel",
"version": "1.32.0-beta.3",
"version": "1.32.0",
"description": "Transform prisma datamodel SDL into graphql-js SDL",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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