Skip to content

Commit

Permalink
Merge pull request #26 from mitre-attack/25-missing-fields-in-the-ser…
Browse files Browse the repository at this point in the history
…ver-response-for-attack-pattern-objects

Loosen restrictions on DTO serialization & validation (and other improvements)
  • Loading branch information
seansica authored Nov 7, 2024
2 parents 6279851 + 31d7a1e commit 5ed8f93
Show file tree
Hide file tree
Showing 30 changed files with 12,566 additions and 10,634 deletions.
22,514 changes: 12,255 additions & 10,259 deletions package-lock.json

Large diffs are not rendered by default.

96 changes: 48 additions & 48 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,59 +38,59 @@
},
"dependencies": {
"@hapi/joi": "^17.1.1",
"@nestjs/axios": "^0.0.3",
"@nestjs/common": "^8.4.7",
"@nestjs/config": "^1.1.5",
"@nestjs/core": "^8.4.7",
"@nestjs/mongoose": "^9.2.0",
"@nestjs/platform-express": "^8.4.7",
"@nestjs/schedule": "^1.1.0",
"@nestjs/swagger": "^5.1.5",
"@types/object-hash": "^2.2.1",
"@types/uuid": "^8.3.4",
"@nestjs/axios": "^3.1.1",
"@nestjs/common": "^10.4.7",
"@nestjs/config": "^3.3.0",
"@nestjs/core": "^10.4.7",
"@nestjs/mongoose": "^10.1.0",
"@nestjs/platform-express": "^10.4.7",
"@nestjs/schedule": "^4.1.1",
"@nestjs/swagger": "^8.0.2",
"@types/object-hash": "^3.0.6",
"@types/uuid": "^10.0.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.13.2",
"class-validator": "^0.14.1",
"json-stringify-safe": "^5.0.1",
"lodash": "^4.17.21",
"mongoose": "^6.5.1",
"nest-winston": "^1.6.2",
"object-hash": "^2.2.0",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"rxjs": "^7.2.0",
"swagger-ui-express": "^4.3.0",
"uuid": "^8.3.2",
"webpack": "^5.91.0",
"winston": "^3.6.0",
"winston-slack-webhook-transport": "^2.1.0",
"winston-transport-sentry-node": "^2.3.0"
"mongoose": "^8.8.0",
"nest-winston": "^1.9.7",
"object-hash": "^3.0.0",
"reflect-metadata": "^0.2.2",
"rimraf": "^6.0.1",
"rxjs": "^7.8.1",
"swagger-ui-express": "^5.0.1",
"uuid": "^11.0.2",
"webpack": "^5.96.1",
"winston": "^3.16.0",
"winston-slack-webhook-transport": "^2.3.5",
"winston-transport-sentry-node": "^3.0.0"
},
"devDependencies": {
"@nestjs/cli": "^8.2.0",
"@nestjs/schematics": "^8.0.0",
"@nestjs/testing": "^8.0.0",
"@types/cron": "^2.0.0",
"@types/express": "^4.17.13",
"@types/hapi__joi": "^17.1.7",
"@types/jest": "27.0.2",
"@types/lodash": "^4.14.184",
"@types/node": "^16.0.0",
"@types/supertest": "^2.0.11",
"@typescript-eslint/eslint-plugin": "^5.28.0",
"@typescript-eslint/parser": "^5.28.0",
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.2.5",
"mongodb-memory-server": "^8.9.2",
"prettier": "^2.3.2",
"source-map-support": "^0.5.20",
"supertest": "^6.1.3",
"ts-jest": "^27.0.3",
"ts-loader": "^9.2.3",
"ts-node": "^10.0.0",
"tsconfig-paths": "^3.10.1",
"typescript": "^4.3.5"
"@nestjs/cli": "^10.4.7",
"@nestjs/schematics": "^10.2.3",
"@nestjs/testing": "^10.4.7",
"@types/cron": "^2.4.3",
"@types/express": "^5.0.0",
"@types/hapi__joi": "^17.1.15",
"@types/jest": "29.5.14",
"@types/lodash": "^4.17.13",
"@types/node": "^22.9.0",
"@types/supertest": "^6.0.2",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/parser": "^8.13.0",
"eslint": "^9.14.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"jest": "^29.7.0",
"mongodb-memory-server": "^10.1.2",
"prettier": "^3.3.3",
"source-map-support": "^0.5.21",
"supertest": "^7.0.0",
"ts-jest": "^29.2.5",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.6.3"
},
"jest": {
"moduleFileExtensions": [
Expand Down
4 changes: 2 additions & 2 deletions src/hydrate/collector/collector.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { Module } from "@nestjs/common";
import { ObjectCollectorService } from "./providers/object-collector.service";
import { CollectionCollectorService } from "./providers/collection-collector.service";
import { MongooseModule } from "@nestjs/mongoose";
import { AttackObject, AttackObjectSchema } from "./schema";
import { AttackObjectEntity, AttackObjectSchema } from "./schema";
import { TaxiiCollection, TaxiiCollectionSchema } from "./schema";

@Module({
imports: [
MongooseModule.forFeature([
{ name: AttackObject.name, schema: AttackObjectSchema },
{ name: AttackObjectEntity.name, schema: AttackObjectSchema },
{ name: TaxiiCollection.name, schema: TaxiiCollectionSchema },
]),
],
Expand Down
Loading

0 comments on commit 5ed8f93

Please sign in to comment.