prisma-client-lib
Advanced tools
Comparing version 0.2.54 to 0.2.55
@@ -47,3 +47,3 @@ "use strict"; | ||
FlowGenerator.prototype.renderImports = function () { | ||
return "/**\n * @flow\n */\n\n// Code generated by Prisma CLI (https://github.com/prisma/prisma) and prisma-client-lib@" + version + ". DO NOT EDIT.\n\nimport type { GraphQLResolveInfo, GraphQLSchema } from 'graphql'\nimport type { IResolvers } from 'graphql-tools/dist/Interfaces'\nimport type { BasePrismaOptions as BPOType, Options } from 'prisma-client-lib'\nimport { makePrismaClientClass } from 'prisma-client-lib'\nimport { typeDefs } from './graphql'"; | ||
return "/**\n * @flow\n */\n\n// Code generated by Prisma CLI (https://github.com/prisma/prisma) and prisma-client-lib@" + version + ". DO NOT EDIT.\n\nimport type { GraphQLResolveInfo, GraphQLSchema } from 'graphql'\nimport type { IResolvers } from 'graphql-tools/dist/Interfaces'\nimport type { BasePrismaOptions as BPOType, Options } from 'prisma-client-lib'\nimport { makePrismaClientClass } from 'prisma-client-lib'\nimport { typeDefs } from './prisma-schema'"; | ||
}; | ||
@@ -50,0 +50,0 @@ FlowGenerator.prototype.renderClientConstructor = function () { |
@@ -40,3 +40,3 @@ "use strict"; | ||
var args = this.renderPrismaClassArgs(options); | ||
return this.format("\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar prisma_lib_1 = require(\"prisma-client-lib\");\nvar typeDefs = require(\"./graphql\").typeDefs\n\nexports.Prisma = prisma_lib_1.makePrismaClientClass(" + args + ");\nexports.prisma = new exports.Prisma();\n"); | ||
return this.format("\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar prisma_lib_1 = require(\"prisma-client-lib\");\nvar typeDefs = require(\"./prisma-schema\").typeDefs\n\nexports.Prisma = prisma_lib_1.makePrismaClientClass(" + args + ");\nexports.prisma = new exports.Prisma();\n"); | ||
}; | ||
@@ -43,0 +43,0 @@ return JavascriptGenerator; |
@@ -124,3 +124,3 @@ "use strict"; | ||
TypescriptGenerator.prototype.renderImports = function () { | ||
return "// Code generated by Prisma CLI (https://github.com/prisma/prisma) and prisma-client-lib@" + version + ". DO NOT EDIT.\n\nimport { GraphQLResolveInfo, GraphQLSchema } from 'graphql'\nimport { IResolvers } from 'graphql-tools/dist/Interfaces'\nimport { makePrismaClientClass, BaseClientOptions } from 'prisma-client-lib'\nimport { typeDefs } from './graphql'"; | ||
return "// Code generated by Prisma CLI (https://github.com/prisma/prisma) and prisma-client-lib@" + version + ". DO NOT EDIT.\n\nimport { GraphQLResolveInfo, GraphQLSchema } from 'graphql'\nimport { IResolvers } from 'graphql-tools/dist/Interfaces'\nimport { makePrismaClientClass, BaseClientOptions } from 'prisma-client-lib'\nimport { typeDefs } from './prisma-schema'"; | ||
}; | ||
@@ -147,3 +147,3 @@ TypescriptGenerator.prototype.renderPrismaClassArgs = function (options) { | ||
TypescriptGenerator.prototype.renderTypedefs = function () { | ||
return ('export const typeDefs = `' + | ||
return ('export const typeDefs = /* GraphQL */ `' + | ||
graphql_1.printSchema(this.schema).replace(/`/g, '\\`') + | ||
@@ -150,0 +150,0 @@ '`'); |
{ | ||
"name": "prisma-client-lib", | ||
"version": "0.2.54", | ||
"version": "0.2.55", | ||
"author": "Tim Suchanek <suchanek@prisma.io>", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
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
184518