cocoda-sdk 3.4.11 → 3.4.13
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.cjs
CHANGED
|
@@ -915,8 +915,8 @@ var LocalMappingsProvider = class extends BaseProvider {
|
|
|
915
915
|
let last2 = import_last.default(this.queue) || Promise.resolve();
|
|
916
916
|
return new Promise((resolve) => {
|
|
917
917
|
function defer() {
|
|
918
|
-
|
|
919
|
-
|
|
918
|
+
let res, rej;
|
|
919
|
+
const promise2 = new Promise((resolve2, reject) => {
|
|
920
920
|
res = resolve2;
|
|
921
921
|
rej = reject;
|
|
922
922
|
});
|
|
@@ -1134,6 +1134,7 @@ var LocalMappingsProvider = class extends BaseProvider {
|
|
|
1134
1134
|
if (!mapping.modified) {
|
|
1135
1135
|
mapping.modified = mapping.created;
|
|
1136
1136
|
}
|
|
1137
|
+
delete mapping.partOf;
|
|
1137
1138
|
localMappings.push(mapping);
|
|
1138
1139
|
localMappings = localMappings.map((mapping2) => import_jskos_tools2.default.minifyMapping(mapping2));
|
|
1139
1140
|
try {
|
|
@@ -1166,6 +1167,7 @@ var LocalMappingsProvider = class extends BaseProvider {
|
|
|
1166
1167
|
mapping.created = localMappings[index].created;
|
|
1167
1168
|
}
|
|
1168
1169
|
mapping.modified = (/* @__PURE__ */ new Date()).toISOString();
|
|
1170
|
+
delete mapping.partOf;
|
|
1169
1171
|
localMappings[index] = mapping;
|
|
1170
1172
|
localMappings = localMappings.map((mapping2) => import_jskos_tools2.default.minifyMapping(mapping2));
|
|
1171
1173
|
try {
|
|
@@ -1198,6 +1200,7 @@ var LocalMappingsProvider = class extends BaseProvider {
|
|
|
1198
1200
|
mapping.created = localMappings[index].created;
|
|
1199
1201
|
}
|
|
1200
1202
|
mapping.modified = (/* @__PURE__ */ new Date()).toISOString();
|
|
1203
|
+
delete mapping.partOf;
|
|
1201
1204
|
localMappings[index] = Object.assign(localMappings[index], mapping);
|
|
1202
1205
|
localMappings = localMappings.map((mapping2) => import_jskos_tools2.default.minifyMapping(mapping2));
|
|
1203
1206
|
try {
|