@easyquery/enterprise 7.3.0-rc01 → 7.3.0-rc02
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.
|
@@ -5,7 +5,7 @@ var core$1 = require('@easydata/core');
|
|
|
5
5
|
var ui = require('@easydata/ui');
|
|
6
6
|
|
|
7
7
|
const majVer = 7;
|
|
8
|
-
const minVer =
|
|
8
|
+
const minVer = 3;
|
|
9
9
|
const magics = [45, 128, 231];
|
|
10
10
|
Math.trunc = Math.trunc || function (x) {
|
|
11
11
|
if (isNaN(x)) {
|
|
@@ -900,10 +900,6 @@ class LCDialog {
|
|
|
900
900
|
}
|
|
901
901
|
})
|
|
902
902
|
.catch(error => {
|
|
903
|
-
//quick fix for 7.2.5 (must be removed after fixing of HttpResponseError in EasyData)
|
|
904
|
-
if (!error.message) {
|
|
905
|
-
error.message = 'Invalid or expired code. Please re-submit your request.';
|
|
906
|
-
}
|
|
907
903
|
dlg.showAlert('Error: ' + error.message, "error", true);
|
|
908
904
|
dlg.enableButtons();
|
|
909
905
|
});
|
|
@@ -1004,16 +1000,23 @@ class EnterpriseEqContext extends core.EqContext {
|
|
|
1004
1000
|
keyOrInitCallback();
|
|
1005
1001
|
})
|
|
1006
1002
|
.catch(error => {
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
.
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1003
|
+
if (error.status == 401) {
|
|
1004
|
+
//if the stutus is Not Autorized
|
|
1005
|
+
func('');
|
|
1006
|
+
}
|
|
1007
|
+
else {
|
|
1008
|
+
//otherwise try the old way
|
|
1009
|
+
url = core.equtils.combinePath(this.getBaseEndpoint(), 'lck');
|
|
1010
|
+
http.get(url)
|
|
1011
|
+
.then(result => {
|
|
1012
|
+
func(result.split("").reverse().join(""));
|
|
1013
|
+
keyOrInitCallback();
|
|
1014
|
+
})
|
|
1015
|
+
.catch(error => this.throwError({
|
|
1016
|
+
action: "LCK",
|
|
1017
|
+
sourceError: error
|
|
1018
|
+
}));
|
|
1019
|
+
}
|
|
1017
1020
|
});
|
|
1018
1021
|
}
|
|
1019
1022
|
else {
|
|
@@ -3,7 +3,7 @@ import { HttpClient, EasyDataTable } from '@easydata/core';
|
|
|
3
3
|
import { DefaultDialogService, domel } from '@easydata/ui';
|
|
4
4
|
|
|
5
5
|
const majVer = 7;
|
|
6
|
-
const minVer =
|
|
6
|
+
const minVer = 3;
|
|
7
7
|
const magics = [45, 128, 231];
|
|
8
8
|
Math.trunc = Math.trunc || function (x) {
|
|
9
9
|
if (isNaN(x)) {
|
|
@@ -898,10 +898,6 @@ class LCDialog {
|
|
|
898
898
|
}
|
|
899
899
|
})
|
|
900
900
|
.catch(error => {
|
|
901
|
-
//quick fix for 7.2.5 (must be removed after fixing of HttpResponseError in EasyData)
|
|
902
|
-
if (!error.message) {
|
|
903
|
-
error.message = 'Invalid or expired code. Please re-submit your request.';
|
|
904
|
-
}
|
|
905
901
|
dlg.showAlert('Error: ' + error.message, "error", true);
|
|
906
902
|
dlg.enableButtons();
|
|
907
903
|
});
|
|
@@ -1002,16 +998,23 @@ class EnterpriseEqContext extends EqContext {
|
|
|
1002
998
|
keyOrInitCallback();
|
|
1003
999
|
})
|
|
1004
1000
|
.catch(error => {
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
.
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1001
|
+
if (error.status == 401) {
|
|
1002
|
+
//if the stutus is Not Autorized
|
|
1003
|
+
func('');
|
|
1004
|
+
}
|
|
1005
|
+
else {
|
|
1006
|
+
//otherwise try the old way
|
|
1007
|
+
url = equtils.combinePath(this.getBaseEndpoint(), 'lck');
|
|
1008
|
+
http.get(url)
|
|
1009
|
+
.then(result => {
|
|
1010
|
+
func(result.split("").reverse().join(""));
|
|
1011
|
+
keyOrInitCallback();
|
|
1012
|
+
})
|
|
1013
|
+
.catch(error => this.throwError({
|
|
1014
|
+
action: "LCK",
|
|
1015
|
+
sourceError: error
|
|
1016
|
+
}));
|
|
1017
|
+
}
|
|
1015
1018
|
});
|
|
1016
1019
|
}
|
|
1017
1020
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easyquery/enterprise",
|
|
3
|
-
"version": "7.3.0-
|
|
3
|
+
"version": "7.3.0-rc02",
|
|
4
4
|
"description": "EasyQuery.JS Enterprise",
|
|
5
5
|
"types": "./dist/types/public_api.d.ts",
|
|
6
6
|
"main": "./dist/easyquery.enterprise.cjs.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"bugs": "https://korzh.com/support",
|
|
28
28
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@easyquery/core": "^7.3.0-
|
|
31
|
-
"@easyquery/ui": "^7.3.0-
|
|
30
|
+
"@easyquery/core": "^7.3.0-rc02",
|
|
31
|
+
"@easyquery/ui": "^7.3.0-rc02"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"dist"
|