prisma-datamodel
Advanced tools
Comparing version 1.36.0-alpha.1 to 1.36.0-alpha.2
@@ -16,1 +16,2 @@ export { DirectiveKeys } from './datamodel/directives'; | ||
export { isTypeIdentifier } from './datamodel/scalar'; | ||
export { isdlToDmmfDatamodel } from './util/isdlToDmmf'; |
@@ -45,2 +45,4 @@ "use strict"; | ||
exports.isTypeIdentifier = scalar_2.isTypeIdentifier; | ||
var isdlToDmmf_1 = require("./util/isdlToDmmf"); | ||
exports.isdlToDmmfDatamodel = isdlToDmmf_1.isdlToDmmfDatamodel; | ||
//# sourceMappingURL=index.js.map |
@@ -28,1 +28,5 @@ /** | ||
export declare function dedent(literal: string): string; | ||
export interface Dictionary<T> { | ||
[key: string]: T; | ||
} | ||
export declare const keyBy: <T>(collection: T[], iteratee: (value: T) => string) => Dictionary<T>; |
@@ -94,2 +94,8 @@ "use strict"; | ||
exports.dedent = dedent; | ||
exports.keyBy = function (collection, iteratee) { | ||
return collection.reduce(function (acc, curr) { | ||
acc[iteratee(curr)] = curr; | ||
return acc; | ||
}, {}); | ||
}; | ||
//# sourceMappingURL=util.js.map |
{ | ||
"name": "prisma-datamodel", | ||
"version": "1.36.0-alpha.1", | ||
"version": "1.36.0-alpha.2", | ||
"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
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
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
216180
72
3566