mftsccs-browser 1.1.12 → 1.1.14
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/bundle.js +17 -10
- package/dist/bundle.js.map +1 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -6939,7 +6939,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6939
6939
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6940
6940
|
/* harmony export */ LocalId: () => (/* binding */ LocalId)
|
|
6941
6941
|
/* harmony export */ });
|
|
6942
|
-
/* harmony import */ var
|
|
6942
|
+
/* harmony import */ var _Database_indexdblocal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Database/indexdblocal */ "./src/Database/indexdblocal.ts");
|
|
6943
|
+
/* harmony import */ var _Services_Local_CreateLocalBinaryTreeFromData__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Services/Local/CreateLocalBinaryTreeFromData */ "./src/Services/Local/CreateLocalBinaryTreeFromData.ts");
|
|
6943
6944
|
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
6944
6945
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6945
6946
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -6950,10 +6951,11 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
6950
6951
|
});
|
|
6951
6952
|
};
|
|
6952
6953
|
|
|
6954
|
+
|
|
6953
6955
|
class LocalId {
|
|
6954
6956
|
static AddConceptId(id) {
|
|
6955
6957
|
this.localId = id.value;
|
|
6956
|
-
|
|
6958
|
+
(0,_Database_indexdblocal__WEBPACK_IMPORTED_MODULE_0__.UpdateToDatabase)("localid", id);
|
|
6957
6959
|
}
|
|
6958
6960
|
/**
|
|
6959
6961
|
*
|
|
@@ -6965,14 +6967,14 @@ class LocalId {
|
|
|
6965
6967
|
try {
|
|
6966
6968
|
if (this.localId) {
|
|
6967
6969
|
if (this.ReservedLocalId.length < 5) {
|
|
6968
|
-
yield (0,
|
|
6970
|
+
yield (0,_Services_Local_CreateLocalBinaryTreeFromData__WEBPACK_IMPORTED_MODULE_1__.PopulateTheLocalConceptsToMemory)().then(() => {
|
|
6969
6971
|
let finalLocalId = this.localId;
|
|
6970
6972
|
for (let j = 1; j < 10; j++) {
|
|
6971
6973
|
let localId = this.localId - j;
|
|
6972
6974
|
this.ReservedLocalId.push(localId);
|
|
6973
6975
|
finalLocalId = localId;
|
|
6974
6976
|
}
|
|
6975
|
-
|
|
6977
|
+
this.AddConceptId({ "id": 0, "value": finalLocalId });
|
|
6976
6978
|
}).catch((event) => {
|
|
6977
6979
|
console.log(" getid: cannot get the id from indexdb");
|
|
6978
6980
|
return -Math.floor(Math.random() * 100000000);
|
|
@@ -6988,14 +6990,14 @@ class LocalId {
|
|
|
6988
6990
|
}
|
|
6989
6991
|
}
|
|
6990
6992
|
else {
|
|
6991
|
-
yield (0,
|
|
6993
|
+
yield (0,_Services_Local_CreateLocalBinaryTreeFromData__WEBPACK_IMPORTED_MODULE_1__.PopulateTheLocalConceptsToMemory)().then(() => {
|
|
6992
6994
|
let finalLocalId = this.localId;
|
|
6993
6995
|
for (let j = 1; j < 10; j++) {
|
|
6994
6996
|
let localId = this.localId - j;
|
|
6995
6997
|
this.ReservedLocalId.push(localId);
|
|
6996
6998
|
finalLocalId = localId;
|
|
6997
6999
|
}
|
|
6998
|
-
|
|
7000
|
+
this.AddConceptId({ "id": 0, "value": finalLocalId });
|
|
6999
7001
|
});
|
|
7000
7002
|
return this.getConceptId();
|
|
7001
7003
|
}
|
|
@@ -7019,7 +7021,7 @@ class LocalId {
|
|
|
7019
7021
|
try {
|
|
7020
7022
|
if (this.localConnectionId) {
|
|
7021
7023
|
if (this.ReservedConnectionId.length < 5) {
|
|
7022
|
-
yield (0,
|
|
7024
|
+
yield (0,_Services_Local_CreateLocalBinaryTreeFromData__WEBPACK_IMPORTED_MODULE_1__.PopulateTheLocalConnectionToMemory)().then(() => {
|
|
7023
7025
|
let finalLocalId = this.localConnectionId;
|
|
7024
7026
|
for (let j = 1; j < 10; j++) {
|
|
7025
7027
|
let localConId = this.localConnectionId - j;
|
|
@@ -7041,7 +7043,7 @@ class LocalId {
|
|
|
7041
7043
|
}
|
|
7042
7044
|
}
|
|
7043
7045
|
else {
|
|
7044
|
-
yield (0,
|
|
7046
|
+
yield (0,_Services_Local_CreateLocalBinaryTreeFromData__WEBPACK_IMPORTED_MODULE_1__.PopulateTheLocalConnectionToMemory)().then(() => {
|
|
7045
7047
|
let finalLocalId = this.localConnectionId;
|
|
7046
7048
|
for (let j = 1; j < 10; j++) {
|
|
7047
7049
|
let localConId = this.localConnectionId - j;
|
|
@@ -17318,9 +17320,14 @@ function init() {
|
|
|
17318
17320
|
* is only valid for the browser that creates this. We have a translator in our node server.
|
|
17319
17321
|
* This function does this process in initlization.
|
|
17320
17322
|
*/
|
|
17321
|
-
|
|
17323
|
+
(0,_Services_Local_CreateLocalBinaryTreeFromData__WEBPACK_IMPORTED_MODULE_96__.PopulateTheLocalConceptsToMemory)().then(() => {
|
|
17324
|
+
}).catch((event) => {
|
|
17325
|
+
console.log("This is the error in populating binary tree");
|
|
17326
|
+
throw event;
|
|
17327
|
+
});
|
|
17328
|
+
// PopulateTheLocalConnectionToMemory().then(()=>{
|
|
17322
17329
|
// }).catch((event) => {
|
|
17323
|
-
//
|
|
17330
|
+
// console.log("This is the error in populating binary tree");
|
|
17324
17331
|
// throw event;
|
|
17325
17332
|
// });
|
|
17326
17333
|
/**
|