@easyquery/enterprise 7.2.1-rc02 → 7.2.1-rc03
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/browser/eq.enterprise.js +68 -14
- package/dist/browser/eq.enterprise.js.map +1 -1
- package/dist/browser/eq.enterprise.min.js +2 -2
- package/dist/browser/eq.enterprise.min.js.map +1 -1
- package/dist/bundles/easyquery.enterprise.js +28 -13
- package/dist/bundles/easyquery.enterprise.js.map +1 -1
- package/dist/bundles/easyquery.enterprise.min.js +1 -1
- package/dist/bundles/easyquery.enterprise.min.js.map +1 -1
- package/dist/lib/extensions.js +23 -8
- package/dist/lib/extensions.js.map +1 -1
- package/dist/lib/license/lc-dialog.js +5 -5
- package/dist/lib/license/lc-dialog.js.map +1 -1
- package/package.json +2 -2
|
@@ -7476,8 +7476,8 @@ function strIsEmpty(str) {
|
|
|
7476
7476
|
else
|
|
7477
7477
|
return true;
|
|
7478
7478
|
}
|
|
7479
|
-
|
|
7480
|
-
|
|
7479
|
+
var baseLicApiUrl = 'https://korzh.com/api/license';
|
|
7480
|
+
//const baseLicApiUrl = 'https://localhost:44301/api/license';
|
|
7481
7481
|
var eqVersion = '7.2';
|
|
7482
7482
|
var lc_dialog_LCDialog = /** @class */ (function () {
|
|
7483
7483
|
function LCDialog(context) {
|
|
@@ -7658,8 +7658,8 @@ var lc_dialog_LCDialog = /** @class */ (function () {
|
|
|
7658
7658
|
email: authEmail,
|
|
7659
7659
|
name: authName,
|
|
7660
7660
|
data: {
|
|
7661
|
-
ptag:
|
|
7662
|
-
apptype:
|
|
7661
|
+
ptag: this.context.backendInfo.type,
|
|
7662
|
+
apptype: this.context.backendInfo.subType,
|
|
7663
7663
|
}
|
|
7664
7664
|
}, { dataType: 'json' })
|
|
7665
7665
|
.then(function (result) {
|
|
@@ -7688,7 +7688,7 @@ var lc_dialog_LCDialog = /** @class */ (function () {
|
|
|
7688
7688
|
dlg.disableButtons();
|
|
7689
7689
|
this.http.post(external_easyqueryCore_["equtils"].combinePath(baseLicApiUrl, 'get-key'), {
|
|
7690
7690
|
token: authCode,
|
|
7691
|
-
ptag:
|
|
7691
|
+
ptag: this.context.backendInfo.type,
|
|
7692
7692
|
version: eqVersion
|
|
7693
7693
|
}, { dataType: 'json' })
|
|
7694
7694
|
.then(function (result) {
|
|
@@ -7769,14 +7769,29 @@ external_easyqueryCore_["EqContext"].prototype.useEnterprise = function (keyOrIn
|
|
|
7769
7769
|
func(keyOrInitCallback);
|
|
7770
7770
|
}
|
|
7771
7771
|
else if (typeof (keyOrInitCallback) === "function") {
|
|
7772
|
-
var
|
|
7773
|
-
var
|
|
7774
|
-
|
|
7775
|
-
.then(function (result) {
|
|
7776
|
-
.
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7772
|
+
var http_1 = this.getServices().getHttpClient();
|
|
7773
|
+
var url_1 = external_easyqueryCore_["equtils"].combinePath(this.getBaseEndpoint(), 'lck2');
|
|
7774
|
+
http_1.get(url_1)
|
|
7775
|
+
.then(function (result) {
|
|
7776
|
+
func(result.key.split("").reverse().join(""));
|
|
7777
|
+
_this.useBackend({
|
|
7778
|
+
type: result.backendType,
|
|
7779
|
+
subType: result.appType
|
|
7780
|
+
});
|
|
7781
|
+
keyOrInitCallback();
|
|
7782
|
+
})
|
|
7783
|
+
.catch(function (error) {
|
|
7784
|
+
url_1 = external_easyqueryCore_["equtils"].combinePath(_this.getBaseEndpoint(), 'lck');
|
|
7785
|
+
http_1.get(url_1)
|
|
7786
|
+
.then(function (result) {
|
|
7787
|
+
func(result.split("").reverse().join(""));
|
|
7788
|
+
keyOrInitCallback();
|
|
7789
|
+
})
|
|
7790
|
+
.catch(function (error) { return _this.throwError({
|
|
7791
|
+
action: "LCK",
|
|
7792
|
+
sourceError: error
|
|
7793
|
+
}); });
|
|
7794
|
+
});
|
|
7780
7795
|
}
|
|
7781
7796
|
else {
|
|
7782
7797
|
throw new Error("Wrong type of 'keyOrInitCallback' parameter. It must be a string with a license key or a callback function.");
|