@iamnnort/nestjs-serializer 2.2.9 → 2.10.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/README.md +1 -3
- package/dist/index.d.mts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +2 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -9110,12 +9110,9 @@ var SerializerService = class {
|
|
|
9110
9110
|
return _lodash.pick.call(void 0, entity, config.fields);
|
|
9111
9111
|
}
|
|
9112
9112
|
const serializerFieldConfigs = global.serializerFieldConfigs.filter((fieldConfig) => {
|
|
9113
|
-
const isTarget = fieldConfig.target
|
|
9113
|
+
const isTarget = entity instanceof fieldConfig.target;
|
|
9114
9114
|
if (!isTarget) {
|
|
9115
|
-
|
|
9116
|
-
if (!isGlobalTarget) {
|
|
9117
|
-
return false;
|
|
9118
|
-
}
|
|
9115
|
+
return false;
|
|
9119
9116
|
}
|
|
9120
9117
|
const isScope = fieldConfig.scopes.some((scope) => {
|
|
9121
9118
|
if (!config.scopes) {
|