@syncfusion/ej2-base 31.2.12 → 31.2.18
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/bin/syncfusion-license.js +1 -1
- package/dist/ej2-base.min.js +2 -2
- package/dist/ej2-base.umd.min.js +2 -2
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +8 -3
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +8 -3
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +2 -2
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/util.js +2 -1
- package/src/validate-lic.js +6 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 31.2.
|
|
3
|
+
* version : 31.2.18
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
package/src/util.js
CHANGED
|
@@ -43,7 +43,8 @@ export function setImmediate(handler) {
|
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
window.addEventListener('message', messageHandler, false);
|
|
46
|
-
window.
|
|
46
|
+
var origin = window.location.origin.indexOf('file://') === 0 ? '*' : window.location.origin;
|
|
47
|
+
window.postMessage(secret, origin);
|
|
47
48
|
return unbind = function () {
|
|
48
49
|
window.removeEventListener('message', messageHandler);
|
|
49
50
|
handler = messageHandler = secret = undefined;
|
package/src/validate-lic.js
CHANGED
|
@@ -326,11 +326,15 @@ function convertToChar(cArr) {
|
|
|
326
326
|
* @returns {void}
|
|
327
327
|
*/
|
|
328
328
|
export function registerLicense(key) {
|
|
329
|
-
|
|
329
|
+
if (typeof window !== 'undefined') {
|
|
330
|
+
key = window.syncfusionLicenseKey ? window.syncfusionLicenseKey : key;
|
|
331
|
+
}
|
|
330
332
|
licenseValidator = new LicenseValidator(key);
|
|
331
333
|
}
|
|
332
334
|
export var validateLicense = function (component, key) {
|
|
333
|
-
|
|
335
|
+
if (typeof window !== 'undefined') {
|
|
336
|
+
key = window.syncfusionLicenseKey ? window.syncfusionLicenseKey : key;
|
|
337
|
+
}
|
|
334
338
|
if (key) {
|
|
335
339
|
registerLicense(key);
|
|
336
340
|
}
|