@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.cjs
CHANGED
|
@@ -3489,7 +3489,7 @@ var EventBus = class {
|
|
|
3489
3489
|
};
|
|
3490
3490
|
|
|
3491
3491
|
// src/portability/RepositoryExporter.ts
|
|
3492
|
-
var LIBRARY_VERSION = true ? "0.8.
|
|
3492
|
+
var LIBRARY_VERSION = true ? "0.8.1" : "0.1.0";
|
|
3493
3493
|
var RepositoryExporter = class {
|
|
3494
3494
|
storage;
|
|
3495
3495
|
provenance;
|
|
@@ -4073,8 +4073,21 @@ var RepositoryImporter = class {
|
|
|
4073
4073
|
relationshipId: rel.id
|
|
4074
4074
|
});
|
|
4075
4075
|
} else {
|
|
4076
|
-
|
|
4077
|
-
|
|
4076
|
+
try {
|
|
4077
|
+
await this.storage.createRelationship(repositoryId, rel);
|
|
4078
|
+
relationshipsImported++;
|
|
4079
|
+
} catch (err) {
|
|
4080
|
+
if (err instanceof DuplicateRelationshipError) {
|
|
4081
|
+
relationshipsSkipped++;
|
|
4082
|
+
warnings.push({
|
|
4083
|
+
code: "relationship_skipped",
|
|
4084
|
+
message: `Relationship "${rel.id}" already exists \u2014 skipped`,
|
|
4085
|
+
relationshipId: rel.id
|
|
4086
|
+
});
|
|
4087
|
+
} else {
|
|
4088
|
+
throw err;
|
|
4089
|
+
}
|
|
4090
|
+
}
|
|
4078
4091
|
}
|
|
4079
4092
|
}
|
|
4080
4093
|
}
|