@iamnnort/nestjs-serializer 1.1.1 → 1.1.3
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/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9082,6 +9082,7 @@ var SerializerService = class {
|
|
|
9082
9082
|
return transformedEntity;
|
|
9083
9083
|
}
|
|
9084
9084
|
async transformEntity(entity, scopes = []) {
|
|
9085
|
+
console.log("1", entity);
|
|
9085
9086
|
if (!entity) {
|
|
9086
9087
|
return entity;
|
|
9087
9088
|
}
|
|
@@ -9098,6 +9099,7 @@ var SerializerService = class {
|
|
|
9098
9099
|
});
|
|
9099
9100
|
return isScope;
|
|
9100
9101
|
});
|
|
9102
|
+
console.log("2", serializerFieldConfigs);
|
|
9101
9103
|
let transformedEntity = {};
|
|
9102
9104
|
await Promise.all(serializerFieldConfigs.map(async (fieldConfig) => {
|
|
9103
9105
|
const fieldName = fieldConfig.fieldName || fieldConfig.name;
|
|
@@ -9229,7 +9231,7 @@ SerializerIdInterceptor = _ts_decorate2([
|
|
|
9229
9231
|
], SerializerIdInterceptor);
|
|
9230
9232
|
|
|
9231
9233
|
// src/module.ts
|
|
9232
|
-
import { Module } from "@nestjs/common";
|
|
9234
|
+
import { Global, Module } from "@nestjs/common";
|
|
9233
9235
|
function _ts_decorate3(decorators, target, key, desc) {
|
|
9234
9236
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9235
9237
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -9243,6 +9245,7 @@ var SerializerModule = class extends ConfigurableModuleClass {
|
|
|
9243
9245
|
}
|
|
9244
9246
|
};
|
|
9245
9247
|
SerializerModule = _ts_decorate3([
|
|
9248
|
+
Global(),
|
|
9246
9249
|
Module({
|
|
9247
9250
|
providers: [
|
|
9248
9251
|
SerializerService
|