Skip to content

Commit

Permalink
fix: Adjust package.json configurations and correct filter defaultVal…
Browse files Browse the repository at this point in the history
…ue syntax
  • Loading branch information
TriPSs committed Aug 28, 2024
1 parent ca8df5e commit cc19f4c
Show file tree
Hide file tree
Showing 10 changed files with 74 additions and 74 deletions.
22 changes: 11 additions & 11 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@
"name": "@ptc-org/nestjs-query-core",
"version": "7.0.0",
"description": "Base query package",
"author": "doug-martin <doug@dougamartin.com>",
"homepage": "https://github.com/tripss/nestjs-query#readme",
"bugs": {
"url": "https://github.com/tripss/nestjs-query/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tripss/nestjs-query.git"
},
"license": "MIT",
"author": "doug-martin <doug@dougamartin.com>",
"main": "src/index.js",
"types": "src/index.d.ts",
"directories": {
Expand All @@ -14,16 +21,6 @@
"files": [
"src/**"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tripss/nestjs-query.git"
},
"bugs": {
"url": "https://github.com/tripss/nestjs-query/issues"
},
"dependencies": {
"lodash.merge": "^4.6.2",
"reflect-metadata": "^0.2.2",
Expand All @@ -32,5 +29,8 @@
"peerDependencies": {
"@nestjs/common": "^9.0.0 || ^10.0.0",
"class-transformer": "^0.5"
},
"publishConfig": {
"access": "public"
}
}
26 changes: 13 additions & 13 deletions packages/query-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,23 @@
"name": "@ptc-org/nestjs-query-graphql",
"version": "7.0.0",
"description": "Nestjs graphql query adapter",
"author": "doug-martin <doug@dougamartin.com>",
"homepage": "https://github.com/tripss/nestjs-query#readme",
"keywords": [
"graphql",
"crud",
"nestjs",
"dataloader"
],
"homepage": "https://github.com/tripss/nestjs-query#readme",
"bugs": {
"url": "https://github.com/tripss/nestjs-query/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tripss/nestjs-query.git",
"directory": "packages/query-graphql"
},
"license": "MIT",
"author": "doug-martin <doug@dougamartin.com>",
"main": "src/index.js",
"types": "src/index.d.ts",
"directories": {
Expand All @@ -20,17 +28,6 @@
"files": [
"src/**"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tripss/nestjs-query.git",
"directory": "packages/query-graphql"
},
"bugs": {
"url": "https://github.com/tripss/nestjs-query/issues"
},
"dependencies": {
"dataloader": "^2.2.2",
"graphql-fields": "^2.0.3",
Expand All @@ -50,5 +47,8 @@
"graphql": "^16.0.0",
"graphql-subscriptions": "^2.0.0",
"ts-morph": "^19.0.0"
},
"publishConfig": {
"access": "public"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function createCursorQueryArgsType<DTO>(
@SkipIf(
() => opts.disableFilter,
Field(() => F, {
defaultValue: !F.hasRequiredFilters ? opts.defaultFilter ?? DEFAULT_QUERY_OPTS.defaultFilter : undefined,
defaultValue: !F.hasRequiredFilters ? (opts.defaultFilter ?? DEFAULT_QUERY_OPTS.defaultFilter) : undefined,
description: 'Specify to filter the records returned.',
nullable: false
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function createNonePagingQueryArgsType<DTO>(
@SkipIf(
() => opts.disableFilter,
Field(() => F, {
defaultValue: !F.hasRequiredFilters ? opts.defaultFilter ?? DEFAULT_QUERY_OPTS.defaultFilter : undefined,
defaultValue: !F.hasRequiredFilters ? (opts.defaultFilter ?? DEFAULT_QUERY_OPTS.defaultFilter) : undefined,
description: 'Specify to filter the records returned.',
nullable: false
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function createOffsetQueryArgs<DTO>(
@SkipIf(
() => opts.disableFilter,
Field(() => F, {
defaultValue: !F.hasRequiredFilters ? opts.defaultFilter ?? DEFAULT_QUERY_OPTS.defaultFilter : undefined,
defaultValue: !F.hasRequiredFilters ? (opts.defaultFilter ?? DEFAULT_QUERY_OPTS.defaultFilter) : undefined,
description: 'Specify to filter the records returned.',
nullable: false
}),
Expand Down
22 changes: 11 additions & 11 deletions packages/query-mongoose/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@
"name": "@ptc-org/nestjs-query-mongoose",
"version": "7.0.0",
"description": "Mongoose adapter for @ptc-org/nestjs-query-core",
"author": "doug-martin <doug@dougamartin.com>",
"homepage": "https://github.com/tripss/nestjs-query#readme",
"bugs": {
"url": "https://github.com/tripss/nestjs-query/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tripss/nestjs-query.git",
"directory": "packages/query-typeorm-mongo"
},
"license": "MIT",
"author": "doug-martin <doug@dougamartin.com>",
"main": "src/index.js",
"types": "src/index.d.ts",
"directories": {
Expand All @@ -14,9 +22,6 @@
"files": [
"src/**"
],
"publishConfig": {
"access": "public"
},
"dependencies": {
"camel-case": "^4.1.2",
"lodash.escaperegexp": "^4.1.2",
Expand All @@ -28,12 +33,7 @@
"@nestjs/mongoose": "^9.0.0 || ^10.0.0",
"mongoose": "^8.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tripss/nestjs-query.git",
"directory": "packages/query-typeorm-mongo"
},
"bugs": {
"url": "https://github.com/tripss/nestjs-query/issues"
"publishConfig": {
"access": "public"
}
}
22 changes: 11 additions & 11 deletions packages/query-sequelize/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@
"name": "@ptc-org/nestjs-query-sequelize",
"version": "7.0.0",
"description": "Sequelize adapter for @ptc-org/nestjs-query-core",
"author": "doug-martin <doug@dougamartin.com>",
"homepage": "https://github.com/tripss/nestjs-query#readme",
"bugs": {
"url": "https://github.com/tripss/nestjs-query/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tripss/nestjs-query.git",
"directory": "packages/query-sequelize"
},
"license": "MIT",
"author": "doug-martin <doug@dougamartin.com>",
"main": "src/index.js",
"types": "src/index.d.ts",
"directories": {
Expand All @@ -14,9 +22,6 @@
"files": [
"src/**"
],
"publishConfig": {
"access": "public"
},
"dependencies": {
"camel-case": "^4.1.2",
"lodash.pick": "4.4.0",
Expand All @@ -28,12 +33,7 @@
"sequelize": "^6.5.0",
"sequelize-typescript": "^1.1.0 || ^2.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tripss/nestjs-query.git",
"directory": "packages/query-sequelize"
},
"bugs": {
"url": "https://github.com/tripss/nestjs-query/issues"
"publishConfig": {
"access": "public"
}
}
22 changes: 11 additions & 11 deletions packages/query-typegoose/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@
"name": "@ptc-org/nestjs-query-typegoose",
"version": "7.0.0",
"description": "Typegoose adapter for @ptc-org/nestjs-query-core",
"author": "john mcinall<johnmcinall@gmail.com>",
"homepage": "https://github.com/tripss/nestjs-query#readme",
"bugs": {
"url": "https://github.com/tripss/nestjs-query/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tripss/nestjs-query.git",
"directory": "packages/query-typegoose"
},
"license": "MIT",
"author": "john mcinall<johnmcinall@gmail.com>",
"main": "src/index.js",
"types": "src/index.d.ts",
"directories": {
Expand All @@ -14,9 +22,6 @@
"files": [
"src/**"
],
"publishConfig": {
"access": "public"
},
"dependencies": {
"camel-case": "^4.1.2",
"is-class": "0.0.9",
Expand All @@ -30,12 +35,7 @@
"@typegoose/typegoose": "^9.0.0 || ^10.0.0 || ^11.0.0",
"mongoose": "^6.5.0 || ^7.0.3 || ^8.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tripss/nestjs-query.git",
"directory": "packages/query-typegoose"
},
"bugs": {
"url": "https://github.com/tripss/nestjs-query/issues"
"publishConfig": {
"access": "public"
}
}
22 changes: 11 additions & 11 deletions packages/query-typeorm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@
"name": "@ptc-org/nestjs-query-typeorm",
"version": "7.0.0",
"description": "Typeorm adapter for @ptc-org/nestjs-query-core",
"author": "doug-martin <doug@dougamartin.com>",
"homepage": "https://github.com/tripss/nestjs-query#readme",
"bugs": {
"url": "https://github.com/tripss/nestjs-query/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tripss/nestjs-query.git",
"directory": "packages/query-typeorm"
},
"license": "MIT",
"author": "doug-martin <doug@dougamartin.com>",
"main": "src/index.js",
"types": "src/index.d.ts",
"directories": {
Expand All @@ -14,9 +22,6 @@
"files": [
"src/**"
],
"publishConfig": {
"access": "public"
},
"dependencies": {
"camel-case": "^4.1.2",
"lodash.filter": "^4.6.0",
Expand All @@ -31,12 +36,7 @@
"class-transformer": "^0.5",
"typeorm": "^0.3.15"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tripss/nestjs-query.git",
"directory": "packages/query-typeorm"
},
"bugs": {
"url": "https://github.com/tripss/nestjs-query/issues"
"publishConfig": {
"access": "public"
}
}
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -375,16 +375,16 @@ __metadata:
linkType: hard

"@apollo/federation-internals@npm:^2.2.3":
version: 2.6.2
resolution: "@apollo/federation-internals@npm:2.6.2"
version: 2.9.0
resolution: "@apollo/federation-internals@npm:2.9.0"
dependencies:
"@types/uuid": "npm:^9.0.0"
chalk: "npm:^4.1.0"
js-levenshtein: "npm:^1.1.6"
uuid: "npm:^9.0.0"
peerDependencies:
graphql: ^16.5.0
checksum: 10/f71a4fc81ed522b66c5dd6dcf88dd3cae3dda46b796854f8b5c8eda1a89caf9fe547c459e6b99054e0191f029b13ad955dc3fa60c5b97c373f3ab6ead00e23f2
checksum: 10/02ddcc7b5539d26e4fc12185c11df291716e1f6de20b0a3f3a4e3edc0506d3546f07bea9cf64172ecf0577d41a2f68d0d30dc65ee0c34e4850bbffe898710925
languageName: node
linkType: hard

Expand Down

0 comments on commit cc19f4c

Please sign in to comment.