@configura/web-api 1.6.0-iotest.0 → 1.6.0-iotest.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CfgIOManager } from "./CfgIOManager.js";
|
|
2
2
|
export declare type CfgHistoryManagerSendData<D> = {
|
|
3
3
|
message: D;
|
|
4
|
-
qsKeyValues: Map<string, string | undefined
|
|
4
|
+
qsKeyValues: Map<string, string | undefined> | undefined;
|
|
5
5
|
};
|
|
6
6
|
/**
|
|
7
7
|
* Instantiating the class will use the history api to update your
|
|
@@ -16,7 +16,7 @@ export class CfgHistoryManager extends CfgIOManager {
|
|
|
16
16
|
}
|
|
17
17
|
doSend(messageKey, data) {
|
|
18
18
|
const { qsKeyValues, message } = data;
|
|
19
|
-
const newUrl = CfgHistoryManager._makeUpdatedUrl(qsKeyValues);
|
|
19
|
+
const newUrl = qsKeyValues === undefined ? null : CfgHistoryManager._makeUpdatedUrl(qsKeyValues);
|
|
20
20
|
const newState = CfgHistoryManager._makeUpdatedState(message, messageKey);
|
|
21
21
|
if (!message.initial && this._useHistoryPush) {
|
|
22
22
|
window.history.pushState(newState, "", newUrl);
|
|
@@ -12,7 +12,9 @@ export class CfgHistoryToProdConfConnector extends CfgIOProdConfConnector {
|
|
|
12
12
|
makeSendData(prodConfAsString, initial) {
|
|
13
13
|
return {
|
|
14
14
|
message: this.makeMessage(prodConfAsString, initial),
|
|
15
|
-
qsKeyValues:
|
|
15
|
+
qsKeyValues: initial
|
|
16
|
+
? undefined
|
|
17
|
+
: new Map([[STAGE_PROD_CONF_MESSAGE_KEY, prodConfAsString]]),
|
|
16
18
|
};
|
|
17
19
|
}
|
|
18
20
|
}
|
|
@@ -39,9 +39,7 @@ export class CfgIOProdConfConnector {
|
|
|
39
39
|
yield newProduct.setFromApiSelectionString(initialProdConf, this._doValidate);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
this._ioManager.send(STAGE_PROD_CONF_MESSAGE_KEY, this.makeSendData(newProduct.getApiSelectionAsString(), true));
|
|
44
|
-
}
|
|
42
|
+
this._ioManager.send(STAGE_PROD_CONF_MESSAGE_KEY, this.makeSendData(newProduct.getApiSelectionAsString(), true));
|
|
45
43
|
this._stopListenToMessage = this.listenForMessage((prodConfAsString) => __awaiter(this, void 0, void 0, function* () {
|
|
46
44
|
if (prodConfAsString === newProduct.getApiSelectionAsString()) {
|
|
47
45
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configura/web-api",
|
|
3
|
-
"version": "1.6.0-iotest.
|
|
3
|
+
"version": "1.6.0-iotest.1",
|
|
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": "1.6.0-iotest.
|
|
26
|
+
"@configura/web-utilities": "1.6.0-iotest.1"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "5355cba847596b9846d750984c96d3129f933162"
|
|
29
29
|
}
|