@steroidsjs/nest 4.2.1 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/infrastructure/adapters/QueryAdapterTypeORM.js +2 -1
- package/infrastructure/adapters/QueryAdapterTypeORM.js.map +1 -1
- package/infrastructure/applications/BaseApplication.js +2 -1
- package/infrastructure/applications/BaseApplication.js.map +1 -1
- package/infrastructure/applications/rest/IRestAppModuleConfig.d.ts +4 -0
- package/infrastructure/applications/rest/RestApplication.d.ts +10 -0
- package/infrastructure/applications/rest/RestApplication.js +23 -6
- package/infrastructure/applications/rest/RestApplication.js.map +1 -1
- package/infrastructure/commands/MigrateCommand.d.ts +0 -1
- package/infrastructure/commands/MigrateCommand.js +0 -34
- package/infrastructure/commands/MigrateCommand.js.map +1 -1
- package/infrastructure/commands/generate/index.d.ts +6 -6
- package/infrastructure/commands/generate/index.js +7 -39
- package/infrastructure/commands/generate/index.js.map +1 -1
- package/infrastructure/decorators/Transform.d.ts +2 -2
- package/infrastructure/decorators/fields/BaseField.d.ts +15 -47
- package/infrastructure/decorators/fields/BaseField.js +36 -105
- package/infrastructure/decorators/fields/BaseField.js.map +1 -1
- package/infrastructure/decorators/fields/BooleanField.js +1 -1
- package/infrastructure/decorators/fields/BooleanField.js.map +1 -1
- package/infrastructure/decorators/fields/ComputableField.js +0 -1
- package/infrastructure/decorators/fields/ComputableField.js.map +1 -1
- package/infrastructure/decorators/fields/CoordinateField.js +1 -1
- package/infrastructure/decorators/fields/CoordinateField.js.map +1 -1
- package/infrastructure/decorators/fields/CreateTimeField.js +1 -1
- package/infrastructure/decorators/fields/CreateTimeField.js.map +1 -1
- package/infrastructure/decorators/fields/DateField.js +1 -1
- package/infrastructure/decorators/fields/DateField.js.map +1 -1
- package/infrastructure/decorators/fields/DateTimeField.js +2 -2
- package/infrastructure/decorators/fields/DateTimeField.js.map +1 -1
- package/infrastructure/decorators/fields/DecimalField.js +1 -1
- package/infrastructure/decorators/fields/DecimalField.js.map +1 -1
- package/infrastructure/decorators/fields/DecimalNumberField.js +1 -1
- package/infrastructure/decorators/fields/DecimalNumberField.js.map +1 -1
- package/infrastructure/decorators/fields/DeleteDateField.js +1 -1
- package/infrastructure/decorators/fields/DeleteDateField.js.map +1 -1
- package/infrastructure/decorators/fields/EmailField.js +1 -1
- package/infrastructure/decorators/fields/EmailField.js.map +1 -1
- package/infrastructure/decorators/fields/EnumField.js +1 -1
- package/infrastructure/decorators/fields/EnumField.js.map +1 -1
- package/infrastructure/decorators/fields/FileField.js +1 -1
- package/infrastructure/decorators/fields/FileField.js.map +1 -1
- package/infrastructure/decorators/fields/GeometryField.d.ts +2 -0
- package/infrastructure/decorators/fields/GeometryField.js +2 -1
- package/infrastructure/decorators/fields/GeometryField.js.map +1 -1
- package/infrastructure/decorators/fields/HtmlField.js +1 -1
- package/infrastructure/decorators/fields/HtmlField.js.map +1 -1
- package/infrastructure/decorators/fields/IntegerField.js +1 -1
- package/infrastructure/decorators/fields/IntegerField.js.map +1 -1
- package/infrastructure/decorators/fields/JSONBField.d.ts +4 -1
- package/infrastructure/decorators/fields/JSONBField.js +2 -2
- package/infrastructure/decorators/fields/JSONBField.js.map +1 -1
- package/infrastructure/decorators/fields/PasswordField.js +1 -1
- package/infrastructure/decorators/fields/PasswordField.js.map +1 -1
- package/infrastructure/decorators/fields/PhoneField.js +1 -1
- package/infrastructure/decorators/fields/PhoneField.js.map +1 -1
- package/infrastructure/decorators/fields/PrimaryKeyField.js +1 -1
- package/infrastructure/decorators/fields/PrimaryKeyField.js.map +1 -1
- package/infrastructure/decorators/fields/RelationField.d.ts +6 -4
- package/infrastructure/decorators/fields/RelationField.js +5 -8
- package/infrastructure/decorators/fields/RelationField.js.map +1 -1
- package/infrastructure/decorators/fields/RelationIdField.js +1 -1
- package/infrastructure/decorators/fields/RelationIdField.js.map +1 -1
- package/infrastructure/decorators/fields/StringField.js +1 -1
- package/infrastructure/decorators/fields/StringField.js.map +1 -1
- package/infrastructure/decorators/fields/TextField.js +1 -1
- package/infrastructure/decorators/fields/TextField.js.map +1 -1
- package/infrastructure/decorators/fields/TimeField.js +1 -1
- package/infrastructure/decorators/fields/TimeField.js.map +1 -1
- package/infrastructure/decorators/fields/UidField.js +1 -1
- package/infrastructure/decorators/fields/UidField.js.map +1 -1
- package/infrastructure/decorators/fields/UpdateTimeField.js +1 -1
- package/infrastructure/decorators/fields/UpdateTimeField.js.map +1 -1
- package/infrastructure/decorators/fields/helpers/InternalFieldMetadataHelpers.d.ts +27 -0
- package/infrastructure/decorators/fields/helpers/InternalFieldMetadataHelpers.js +104 -0
- package/infrastructure/decorators/fields/helpers/InternalFieldMetadataHelpers.js.map +1 -0
- package/infrastructure/decorators/typeorm/TypeOrmDecoratorFactory.d.ts +3 -2
- package/infrastructure/decorators/typeorm/TypeOrmDecoratorFactory.js.map +1 -1
- package/infrastructure/decorators/typeorm/TypeOrmTableFromModel.js.map +1 -1
- package/infrastructure/decorators/typeorm/fields/TypeOrmBooleanField/index.js +1 -1
- package/infrastructure/decorators/typeorm/fields/TypeOrmBooleanField/index.js.map +1 -1
- package/infrastructure/decorators/typeorm/fields/TypeOrmUidField/index.js +1 -1
- package/infrastructure/decorators/typeorm/fields/TypeOrmUidField/index.js.map +1 -1
- package/infrastructure/filters/UserExceptionFilter.d.ts +1 -0
- package/infrastructure/filters/UserExceptionFilter.js +1 -0
- package/infrastructure/filters/UserExceptionFilter.js.map +1 -1
- package/infrastructure/pipes/CreateDtoPipe.d.ts +5 -1
- package/infrastructure/pipes/CreateDtoPipe.js +23 -4
- package/infrastructure/pipes/CreateDtoPipe.js.map +1 -1
- package/infrastructure/pipes/CreateDtoPipe.test.d.ts +1 -0
- package/infrastructure/pipes/CreateDtoPipe.test.js +98 -0
- package/infrastructure/pipes/CreateDtoPipe.test.js.map +1 -0
- package/package.json +6 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/usecases/base/SearchQuery.d.ts +11 -0
- package/usecases/base/SearchQuery.js +36 -19
- package/usecases/base/SearchQuery.js.map +1 -1
- package/usecases/base/SearchQuery.test.d.ts +1 -0
- package/usecases/base/SearchQuery.test.js +102 -0
- package/usecases/base/SearchQuery.test.js.map +1 -0
- package/usecases/exceptions/UserException.d.ts +1 -0
- package/usecases/exceptions/UserException.js +1 -0
- package/usecases/exceptions/UserException.js.map +1 -1
- package/usecases/helpers/DataMapper.js +13 -8
- package/usecases/helpers/DataMapper.js.map +1 -1
- package/usecases/helpers/getMetaRelationsFromObject.d.ts +2 -0
- package/usecases/helpers/getMetaRelationsFromObject.js +53 -0
- package/usecases/helpers/getMetaRelationsFromObject.js.map +1 -0
- package/usecases/helpers/getMetaRelationsFromObject.test.d.ts +1 -0
- package/usecases/helpers/getMetaRelationsFromObject.test.js +327 -0
- package/usecases/helpers/getMetaRelationsFromObject.test.js.map +1 -0
- package/usecases/services/CrudService.js +5 -1
- package/usecases/services/CrudService.js.map +1 -1
- package/usecases/utils/wrapInDoubleQuotes.d.ts +1 -0
- package/usecases/utils/wrapInDoubleQuotes.js +15 -0
- package/usecases/utils/wrapInDoubleQuotes.js.map +1 -0
- package/infrastructure/utils/getNewPermissions.d.ts +0 -2
- package/infrastructure/utils/getNewPermissions.js +0 -18
- package/infrastructure/utils/getNewPermissions.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateDtoPipe.test.js","sourceRoot":"","sources":["../../../src/infrastructure/pipes/CreateDtoPipe.test.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,mDAA8C;AAC9C,iDAA8E;AAE9E,MAAM,aAAa;CAGlB;AAFG;IAAC,IAAA,qBAAY,GAAE;;yCACJ;AAGf,MAAM,OAAO;CAYZ;AAXG;IAAC,IAAA,qBAAY,GAAE;;mCACJ;AAEX;IAAC,IAAA,oBAAW,GAAE;;sCACA;AAEd;IAAC,IAAA,sBAAa,EAAC;QACX,IAAI,EAAE,WAAW;QACjB,aAAa,EAAE,GAAG,EAAE,CAAC,aAAa;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E,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC9B,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steroidsjs/nest",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"script": "nps",
|
|
6
6
|
"watch": "nps watch",
|
|
7
7
|
"build": "nps build",
|
|
8
8
|
"test": "nps test",
|
|
9
|
-
"test-unit": "jest --config jest.unit.config.ts"
|
|
9
|
+
"test-unit": "jest --config jest.unit.config.ts",
|
|
10
|
+
"postinstall": "jest --clearCache"
|
|
10
11
|
},
|
|
11
12
|
"description": "",
|
|
12
13
|
"main": "index.js",
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
"@supercharge/request-ip": "^1.2.0",
|
|
28
29
|
"body-parser": "^2.2.1",
|
|
29
30
|
"class-transformer": "^0.5.1",
|
|
31
|
+
"cookie-parser": "^1.4.7",
|
|
30
32
|
"date-fns": "^2.29.3",
|
|
31
33
|
"express": "^4.18.2",
|
|
32
34
|
"lodash": "^4.17.21",
|
|
@@ -57,7 +59,9 @@
|
|
|
57
59
|
"@steroidsjs/eslint-config": "2.1.2",
|
|
58
60
|
"@steroidsjs/nest-typeorm": "^10.0.3",
|
|
59
61
|
"@steroidsjs/typeorm": "^0.3.23",
|
|
62
|
+
"@types/cookie-parser": "^1.4.10",
|
|
60
63
|
"@types/jest": "^29.4.0",
|
|
64
|
+
"@types/lodash": "^4.17.23",
|
|
61
65
|
"@types/node": "^18.11.18",
|
|
62
66
|
"@typescript-eslint/eslint-plugin": "^5.49.0",
|
|
63
67
|
"@typescript-eslint/parser": "^5.49.0",
|