@configura/web-api 2.0.0-alpha.4 → 2.0.0-alpha.5
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/CfgProduct.js
CHANGED
|
@@ -164,9 +164,11 @@ export class _CfgProductInternal {
|
|
|
164
164
|
}
|
|
165
165
|
return conf;
|
|
166
166
|
};
|
|
167
|
-
this.setDtoConf = (s, doValidate, productLoaderForGroupedLoad) => this
|
|
167
|
+
this.setDtoConf = (s, doValidate, productLoaderForGroupedLoad) => __awaiter(this, void 0, void 0, function* () {
|
|
168
|
+
return yield this.setApiSelection(convertDtoConfProdToV1(s), doValidate, productLoaderForGroupedLoad);
|
|
169
|
+
});
|
|
168
170
|
this.setApiSelection = (s, doValidate, productLoaderForGroupedLoad) => __awaiter(this, void 0, void 0, function* () {
|
|
169
|
-
return this._setApiSelectionWithOtherProduct(s, doValidate, productLoaderForGroupedLoad, undefined);
|
|
171
|
+
return yield this._setApiSelectionWithOtherProduct(s, doValidate, productLoaderForGroupedLoad, undefined);
|
|
170
172
|
});
|
|
171
173
|
this.copyFrom = (source, doValidate, productLoaderForGroupedLoad) => __awaiter(this, void 0, void 0, function* () {
|
|
172
174
|
return yield this._setApiSelectionWithOtherProduct(convertDtoConfProdToV1(source.getDtoConf(false, false)), doValidate, productLoaderForGroupedLoad, source);
|
|
@@ -203,8 +205,8 @@ export class _CfgProductInternal {
|
|
|
203
205
|
const sourceProductAdditionalProducts = sourceProduct === null || sourceProduct === void 0 ? void 0 : sourceProduct.additionalProducts;
|
|
204
206
|
assert(!sourceProductAdditionalProducts ||
|
|
205
207
|
additionalProductsCount === sourceProductAdditionalProducts.length, `Passed sourceProduct does not have the same number of additional products as this.`);
|
|
206
|
-
if ((yield Promise.all(apiSelectionAdditionalProducts.map((apiSelectionAdditionalProduct,
|
|
207
|
-
var
|
|
208
|
+
if ((yield Promise.all(apiSelectionAdditionalProducts.map((apiSelectionAdditionalProduct) => __awaiter(this, void 0, void 0, function* () {
|
|
209
|
+
var _b;
|
|
208
210
|
const refKey = apiSelectionAdditionalProduct.refKey;
|
|
209
211
|
assertDefined(refKey, "Additional product api configurations must have refKey.");
|
|
210
212
|
const i = additionalProducts.findIndex((a) => refKey === a.refKey);
|
|
@@ -212,12 +214,12 @@ export class _CfgProductInternal {
|
|
|
212
214
|
let sourceProductAdditionalProduct = undefined;
|
|
213
215
|
if (sourceProductAdditionalProducts !== undefined) {
|
|
214
216
|
sourceProductAdditionalProduct =
|
|
215
|
-
(
|
|
217
|
+
(_b = sourceProductAdditionalProducts.find((a) => refKey === a.refKey)) === null || _b === void 0 ? void 0 : _b._internal;
|
|
216
218
|
assertDefined(sourceProductAdditionalProduct, "Additional product not found in sourceProduct");
|
|
217
219
|
}
|
|
218
220
|
const additionalProduct = additionalProducts.splice(i, 1)[0]; // Splicing like this is okay because this is done synchronous. The setCon. is what is async.
|
|
219
|
-
return additionalProduct._internal._setApiSelectionWithOtherProduct(apiSelectionAdditionalProduct, doValidate, productLoaderForGroupedLoad, sourceProductAdditionalProduct);
|
|
220
|
-
}))).some((b) => b)) {
|
|
221
|
+
return yield additionalProduct._internal._setApiSelectionWithOtherProduct(apiSelectionAdditionalProduct, doValidate, productLoaderForGroupedLoad, sourceProductAdditionalProduct);
|
|
222
|
+
})))).some((b) => b)) {
|
|
221
223
|
change = true;
|
|
222
224
|
}
|
|
223
225
|
if (doValidate && configurationChange) {
|
|
@@ -64,6 +64,9 @@ export class CfgWindowMessageManager extends CfgWindowEventManager {
|
|
|
64
64
|
return super.stopListenForMessage(l);
|
|
65
65
|
}
|
|
66
66
|
send(messageKey, data) {
|
|
67
|
+
if (this.receiveInProgress) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
67
70
|
const container = CfgIOManager.makeContainer({
|
|
68
71
|
[messageKey]: data,
|
|
69
72
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configura/web-api",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@configura/web-utilities": "2.0.0-alpha.
|
|
26
|
+
"@configura/web-utilities": "2.0.0-alpha.5"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "59810136bc53f21a1cc47c1f3ee1fbfd24c4e0c4"
|
|
29
29
|
}
|