prisma-datamodel
Advanced tools
Comparing version 1.34.6 to 1.34.7
@@ -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.34.6", | ||
"version": "1.34.7", | ||
"description": "Transform prisma datamodel SDL into graphql-js SDL", | ||
@@ -26,2 +26,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"debug": "^4.1.1", | ||
"graphql": "^14.3.0", | ||
@@ -28,0 +29,0 @@ "pluralize": "^7.0.0", |
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
209445
3429
4
+ Addeddebug@^4.1.1
+ Addeddebug@4.3.7(transitive)
+ Addedms@2.1.3(transitive)