@strapi/data-transfer 5.0.0-beta.6 → 5.0.0-beta.8
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/engine/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { Transform, PassThrough, Writable, Readable, Duplex, pipeline } from "st
|
|
|
2
2
|
import path, { extname, join, posix } from "path";
|
|
3
3
|
import { EOL } from "os";
|
|
4
4
|
import { chain } from "stream-chain";
|
|
5
|
-
import { isArray, zip, isObject, uniq, isEqual, mapValues, pick, reject as reject$1, capitalize, isNumber, isEmpty, last,
|
|
5
|
+
import { isArray, zip, isObject, uniq, isEqual, mapValues, pick, reject as reject$1, capitalize, isNumber, isEmpty, last, set, get, has, pipe, omit, assign, map as map$1, size, isNil, clone, once, castArray, keyBy } from "lodash/fp";
|
|
6
6
|
import { diff as diff$1 } from "semver";
|
|
7
7
|
import { scryptSync, createCipheriv, createDecipheriv, randomUUID } from "crypto";
|
|
8
8
|
import { EventEmitter } from "events";
|
|
@@ -1040,8 +1040,8 @@ ${formattedDiffs}`,
|
|
|
1040
1040
|
}
|
|
1041
1041
|
const { type, data } = entity2;
|
|
1042
1042
|
const attributes = schemas[type].attributes;
|
|
1043
|
-
const
|
|
1044
|
-
const updatedEntity = set("data",
|
|
1043
|
+
const attributesToKeep = Object.keys(attributes).concat("documentId");
|
|
1044
|
+
const updatedEntity = set("data", pick(attributesToKeep, data), entity2);
|
|
1045
1045
|
callback(null, updatedEntity);
|
|
1046
1046
|
}
|
|
1047
1047
|
})
|