@utaba/deep-memory 0.8.0 → 0.8.1
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.cjs +16 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3431,7 +3431,7 @@ var EventBus = class {
|
|
|
3431
3431
|
};
|
|
3432
3432
|
|
|
3433
3433
|
// src/portability/RepositoryExporter.ts
|
|
3434
|
-
var LIBRARY_VERSION = true ? "0.8.
|
|
3434
|
+
var LIBRARY_VERSION = true ? "0.8.1" : "0.1.0";
|
|
3435
3435
|
var RepositoryExporter = class {
|
|
3436
3436
|
storage;
|
|
3437
3437
|
provenance;
|
|
@@ -4015,8 +4015,21 @@ var RepositoryImporter = class {
|
|
|
4015
4015
|
relationshipId: rel.id
|
|
4016
4016
|
});
|
|
4017
4017
|
} else {
|
|
4018
|
-
|
|
4019
|
-
|
|
4018
|
+
try {
|
|
4019
|
+
await this.storage.createRelationship(repositoryId, rel);
|
|
4020
|
+
relationshipsImported++;
|
|
4021
|
+
} catch (err) {
|
|
4022
|
+
if (err instanceof DuplicateRelationshipError) {
|
|
4023
|
+
relationshipsSkipped++;
|
|
4024
|
+
warnings.push({
|
|
4025
|
+
code: "relationship_skipped",
|
|
4026
|
+
message: `Relationship "${rel.id}" already exists \u2014 skipped`,
|
|
4027
|
+
relationshipId: rel.id
|
|
4028
|
+
});
|
|
4029
|
+
} else {
|
|
4030
|
+
throw err;
|
|
4031
|
+
}
|
|
4032
|
+
}
|
|
4020
4033
|
}
|
|
4021
4034
|
}
|
|
4022
4035
|
}
|