@punks/backend-entity-manager 0.0.153 → 0.0.154
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/cjs/index.js
CHANGED
|
@@ -157,7 +157,8 @@ class EntitySerializer {
|
|
|
157
157
|
this.logger.info(`Entities import -> completed (${items.length} items)`);
|
|
158
158
|
}
|
|
159
159
|
async parse(data, format) {
|
|
160
|
-
const
|
|
160
|
+
const context = await this.getContext();
|
|
161
|
+
const definition = await this.getDefinition(context);
|
|
161
162
|
switch (format) {
|
|
162
163
|
case exports.EntitySerializationFormat.Csv:
|
|
163
164
|
return this.parseCsv(data, definition);
|
|
@@ -201,7 +202,8 @@ class EntitySerializer {
|
|
|
201
202
|
format,
|
|
202
203
|
refDate: new Date(),
|
|
203
204
|
});
|
|
204
|
-
const
|
|
205
|
+
const context = await this.getContext();
|
|
206
|
+
const definition = await this.getDefinition(context);
|
|
205
207
|
switch (format) {
|
|
206
208
|
case exports.EntitySerializationFormat.Csv:
|
|
207
209
|
return {
|
|
@@ -257,7 +259,8 @@ class EntitySerializer {
|
|
|
257
259
|
format,
|
|
258
260
|
refDate: new Date(),
|
|
259
261
|
});
|
|
260
|
-
const
|
|
262
|
+
const context = await this.getContext();
|
|
263
|
+
const definition = await this.getDefinition(context);
|
|
261
264
|
switch (format) {
|
|
262
265
|
case exports.EntitySerializationFormat.Csv:
|
|
263
266
|
return {
|