New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

prisma-nestjs-graphql

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prisma-nestjs-graphql - npm Package Compare versions

Comparing version 7.2.0 to 8.0.0

16

index.js

@@ -283,3 +283,3 @@ "use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var __assign = Object.assign;

}
throw new TypeError(`Cannot get property type from ${args.kind}/${args.type}`);
throw new TypeError(`Cannot get property type from ${kind}/${type}`);
}

@@ -548,6 +548,7 @@ function schemaOutputToInput(outputType) {

for (const field of inputType.fields) {
for (const inputType3 of field.inputTypes.filter((x) => ["object", "enum"].includes(fieldLocationToKind(x.location)) && x.type !== className)) {
const kind = fieldLocationToKind(inputType3.location);
const matchInputType = getMatchingInputType(field.inputTypes);
for (const inputType2 of [matchInputType].filter((x) => ["object", "enum"].includes(fieldLocationToKind(x.location)) && x.type !== className)) {
const kind = fieldLocationToKind(inputType2.location);
generateProjectImport({
name: String(inputType3.type),
name: String(inputType2.type),
type: kind === "object" ? "input" : kind,

@@ -558,3 +559,3 @@ sourceFile,

}
const propertyTypes = field.inputTypes.map((t) => {
const propertyTypes = [matchInputType].map((t) => {
return toPropertyType(__assign(__assign({}, t), {

@@ -565,6 +566,5 @@ type: String(t.type),

});
const inputType2 = getMatchingInputType(field.inputTypes);
const fieldStructure = __assign(__assign({}, field), {
kind: fieldLocationToKind(inputType2.location),
type: String(inputType2.type),
kind: fieldLocationToKind(matchInputType.location),
type: String(matchInputType.type),
isList: field.inputTypes.some((t) => t.isList)

@@ -571,0 +571,0 @@ });

{
"name": "prisma-nestjs-graphql",
"version": "7.2.0",
"version": "8.0.0",
"license": "MIT",

@@ -24,3 +24,3 @@ "description": "Generate object types, inputs, args, etc. from prisma schema file for usage with @nestjs/graphql module",

"scripts": {
"test": "npm run eslint && npm run tscheck && npm run test:cov",
"test": "npm run lint:src && npm run lint:ts && npm run test:cov",
"mocha": "node node_modules/mocha/bin/_mocha",

@@ -31,12 +31,11 @@ "test:r": "mocha -r ts-node/register/transpile-only src/**/*.spec.ts",

"test:d": "ndb -r ts-node/register/transpile-only node_modules/mocha/bin/_mocha --no-timeouts --watch-files src/**/*.ts --watch src/**/*.spec.ts",
"tscheck": "echo tscheck... && tsc --noEmit",
"tscheck:w": "npm run tscheck -- --watch",
"eslint:w": "watchexec -w src \"npm run eslint\"",
"eslint": "node node_modules/eslint/bin/eslint \"src/**/*.{ts,tsx}\"",
"lint:fix": "npm run eslint -- --fix",
"eslint:fix": "npm run eslint -- --fix",
"lint:ts": "tsc --noEmit",
"lint:ts:w": "npm run lint:ts -- --watch",
"lint:src": "node node_modules/eslint/bin/eslint \"src/**/*.{ts,tsx}\"",
"lint:src:w": "watchexec -w src \"npm run lint:src\"",
"lint:src:fix": "npm run lint:src -- --fix",
"build": "sh Taskfile bundle",
"prisma:g": "node node_modules/@prisma/cli/build/index.js generate",
"format": "npx prettier src --write",
"regen": "rm -rf src/@generated && npm run prisma:g && npm run eslint:fix && npm run format",
"regen": "rm -rf src/@generated && npm run prisma:g && npm run lint:src:fix && npm run format",
"example": "ts-node-dev src/example/main.ts",

@@ -74,6 +73,6 @@ "clean_cache": "rm -rf node_modules/.cache",

"@commitlint/config-conventional": "^11.0.0",
"@nestjs/common": "^7.6.5",
"@nestjs/core": "^7.6.5",
"@nestjs/common": "^7.6.7",
"@nestjs/core": "^7.6.7",
"@nestjs/graphql": "^7.9.8",
"@nestjs/platform-express": "^7.6.5",
"@nestjs/platform-express": "^7.6.7",
"@paljs/plugins": "^2.11.1",

@@ -90,4 +89,4 @@ "@prisma/cli": "^2.15.0",

"@types/pluralize": "^0.0.29",
"@typescript-eslint/eslint-plugin": "^4.14.0",
"@typescript-eslint/parser": "^4.14.0",
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"apollo-server-express": "^2.19.2",

@@ -117,3 +116,3 @@ "c8": "^7.4.0",

"git-branch-is": "^4.0.0",
"graphql": "^15.4.0",
"graphql": "^15.5.0",
"graphql-type-json": "^0.3.2",

@@ -120,0 +119,0 @@ "husky": "^4.3.8",

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