@syncfusion/ej2-base
Advanced tools
Comparing version 20.2.43 to 20.2.45
#! /usr/bin/env node | ||
'use strict';var _0x13c1ba=_0x5924;(function(_0x130a23,_0x2184b5){var _0x3e880f=_0x5924,_0x1b7ac2=_0x130a23();while(!![]){try{var _0xd3c076=parseInt(_0x3e880f(0x1b1))/0x1*(parseInt(_0x3e880f(0x1ad))/0x2)+parseInt(_0x3e880f(0x1a8))/0x3*(parseInt(_0x3e880f(0x19b))/0x4)+-parseInt(_0x3e880f(0x186))/0x5+-parseInt(_0x3e880f(0x18e))/0x6*(-parseInt(_0x3e880f(0x1ab))/0x7)+-parseInt(_0x3e880f(0x18b))/0x8+-parseInt(_0x3e880f(0x194))/0x9*(parseInt(_0x3e880f(0x18c))/0xa)+-parseInt(_0x3e880f(0x19d))/0xb*(parseInt(_0x3e880f(0x1a0))/0xc);if(_0xd3c076===_0x2184b5)break;else _0x1b7ac2['push'](_0x1b7ac2['shift']());}catch(_0xa52d0f){_0x1b7ac2['push'](_0x1b7ac2['shift']());}}}(_0x39de,0x9f82b));var fs=global['fs']=global['fs']||require('fs');const args=process[_0x13c1ba(0x18d)][_0x13c1ba(0x1ae)](0x2),envKey=process[_0x13c1ba(0x1a5)][_0x13c1ba(0x1a9)];if(args==_0x13c1ba(0x196)){var licKey='';if(fs['existsSync'](_0x13c1ba(0x1a2)))licKey=fs[_0x13c1ba(0x18a)](_0x13c1ba(0x1a2),_0x13c1ba(0x199));else envKey&&(licKey=envKey);if(licKey!=''){var licKeySplit=licKey[_0x13c1ba(0x1a3)](';'),pkey=[0x530000,0x790000,0x4e0000,0x630000,0x460000,0x750000,0x530000,0x690000,0x4f0000,0x6e0000,0x400000,0x440000,0x650000,0x760000,0x500000,0x6c0000,0x610000,0x740000,0x460000,0x6f0000,0x720000,0x6d0000],decryptedStr=[],resultArray=[];for(var i=0x0;i<licKeySplit[_0x13c1ba(0x1a1)];i++){var lKey=licKeySplit[i],decodeStr=getDecryptedData(lKey);if(!decodeStr)continue;var k=0x0,buffr='';for(var i=0x0;i<decodeStr[_0x13c1ba(0x1a1)];i++,k++){k===pkey[_0x13c1ba(0x1a1)]&&(k=0x0);var c=decodeStr[_0x13c1ba(0x1b0)](i);buffr+=String['fromCharCode'](c^pkey[k]>>0x10);}decryptedStr=buffr[_0x13c1ba(0x1a3)](';');if(decryptedStr[_0x13c1ba(0x1a1)]>0x3){resultArray['push']({'currentPlatform':decryptedStr[0x0],'version':decryptedStr[0x1],'expiryDate':decryptedStr[0x2]});var licData=resultArray[0x0]['currentPlatform']+';'+resultArray[0x0][_0x13c1ba(0x192)]+';'+resultArray[0x0][_0x13c1ba(0x18f)]+';',encryptedKey=getEncryptedKey(licData),jsFiles=['./node_modules/@syncfusion/ej2-base/src/validate-lic.js',_0x13c1ba(0x193),_0x13c1ba(0x1ac),_0x13c1ba(0x1af)];for(var n=0x0;n<jsFiles['length'];n++){if(fs[_0x13c1ba(0x197)](jsFiles[n])){var content=fs[_0x13c1ba(0x18a)](jsFiles[n],'UTF8');content=content[_0x13c1ba(0x19f)](/npxKeyReplace[^"]*/,_0x13c1ba(0x187)+encryptedKey),fs[_0x13c1ba(0x191)](jsFiles[n],content);}}console[_0x13c1ba(0x1a4)](_0x13c1ba(0x1a6));}else console[_0x13c1ba(0x1a4)](_0x13c1ba(0x188));}}else console[_0x13c1ba(0x1a4)](_0x13c1ba(0x190));}else console[_0x13c1ba(0x1a4)](_0x13c1ba(0x198));function getEncryptedKey(_0xe25ebb){var _0x153e8c=_0x13c1ba,_0x4a7953='',_0x2f8330=[],_0x1a1101=[],_0x3fa651=new Array();for(var _0x236401=0x0;_0x236401<_0xe25ebb['length'];_0x236401++){_0x2f8330[_0x236401]=_0xe25ebb[_0x236401][_0x153e8c(0x1b0)](0x0);}for(var _0x4d789f=0x0,_0x4d9912=0x41;_0x4d789f<0x1a;_0x4d789f++,_0x4d9912++){_0x1a1101[_0x4d789f]=String[_0x153e8c(0x189)](_0x4d9912);}var _0x149e98=Math[_0x153e8c(0x19a)](Math[_0x153e8c(0x19c)]()*(_0x1a1101[_0x153e8c(0x1a1)]-0x1-0x0+0x1)+0x0),_0x2f1b35=_0x1a1101[_0x149e98][_0x153e8c(0x1b0)](0x0);for(var _0x236401=0x0;_0x236401<_0xe25ebb[_0x153e8c(0x1a1)];_0x236401++){_0x3fa651[_0x236401]=parseInt(_0x2f8330[_0x236401])+parseInt(_0x1a1101[_0x149e98][_0x153e8c(0x1b0)](0x0));}_0x3fa651[_0x2f8330[_0x153e8c(0x1a1)]]=_0x2f1b35;for(var _0x236401=0x0;_0x236401<_0x3fa651[_0x153e8c(0x1a1)];_0x236401++){_0x4a7953+=String[_0x153e8c(0x189)](_0x3fa651[_0x236401]);}return Buffer[_0x153e8c(0x1a7)](_0x4a7953,_0x153e8c(0x1aa))[_0x153e8c(0x19e)]('base64');}function getDecryptedData(_0x55e2d7){var _0x16aab6=_0x13c1ba;try{return Buffer[_0x16aab6(0x1a7)](_0x55e2d7,'base64')[_0x16aab6(0x19e)](_0x16aab6(0x195));}catch(_0x31439c){return'';}}function _0x5924(_0x3842ad,_0x96c6aa){var _0x39de5c=_0x39de();return _0x5924=function(_0x592408,_0x418c0a){_0x592408=_0x592408-0x186;var _0x23b66d=_0x39de5c[_0x592408];return _0x23b66d;},_0x5924(_0x3842ad,_0x96c6aa);}function _0x39de(){var _0x5be3b9=['./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es5.js','31610VGQIoo','slice','./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js','charCodeAt','81CEFAiR','1400195cGTHLM','npxKeyReplace','(Error)\x20License\x20key\x20is\x20not\x20valid.','fromCharCode','readFileSync','300856vGyIzF','5620KSNeqN','argv','205188JfyEMw','expiryDate','Please\x20add\x20the\x20syncfusion-license.txt\x20file\x20or\x20set\x20environment\x20variable\x20SYNCFUSION_LICENSE','writeFileSync','version','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es2015.js','11574cYjfbt','binary','activate','existsSync','Supported\x20command:\x20npx\x20syncfusion-license\x20activate','UTF8','floor','450132Byiaqs','random','10826299tjLtph','toString','replace','12fEKqJY','length','./syncfusion-license.txt','split','log','env','(INFO)\x20Syncfusion\x20License\x20imported\x20successfully.','from','9ylVytz','SYNCFUSION_LICENSE','ascii','217BFhaBU'];_0x39de=function(){return _0x5be3b9;};return _0x39de();};process['exit'](0x0); | ||
'use strict';var _0x44261a=_0x1d4f;function _0x238a(){var _0x63efae=['4338010BbCCEu','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es2015.js','84bbHCsV','log','toString','random','210CBkqGG','./syncfusion-license.txt','push','2299004ycpYHz','argv','from','388oXuQiU','15705008TiZnev','./node_modules/@syncfusion/ej2-base/src/validate-lic.js','activate','UTF8','(INFO)\x20Syncfusion\x20License\x20imported\x20successfully.','SYNCFUSION_LICENSE','base64','Supported\x20command:\x20npx\x20syncfusion-license\x20activate','Please\x20add\x20the\x20syncfusion-license.txt\x20file\x20or\x20set\x20environment\x20variable\x20SYNCFUSION_LICENSE','./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js','7373752YVaokb','(Error)\x20License\x20key\x20is\x20not\x20valid.','writeFileSync','charCodeAt','replace','expiryDate','split','9PusiuU','slice','fromCharCode','binary','1dPxgSJ','existsSync','6345660TqLxjM','length','npxKeyReplace','env','version','readFileSync','164190pxJIpG','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es5.js'];_0x238a=function(){return _0x63efae;};return _0x238a();}(function(_0x43ba1d,_0x12be7a){var _0x1f3e2d=_0x1d4f,_0xb166c0=_0x43ba1d();while(!![]){try{var _0x3a4f9d=-parseInt(_0x1f3e2d(0x115))/0x1*(-parseInt(_0x1f3e2d(0xfc))/0x2)+parseInt(_0x1f3e2d(0xf9))/0x3*(-parseInt(_0x1f3e2d(0xff))/0x4)+parseInt(_0x1f3e2d(0xf3))/0x5+-parseInt(_0x1f3e2d(0x11d))/0x6*(-parseInt(_0x1f3e2d(0xf5))/0x7)+parseInt(_0x1f3e2d(0x10a))/0x8*(-parseInt(_0x1f3e2d(0x111))/0x9)+parseInt(_0x1f3e2d(0x117))/0xa+-parseInt(_0x1f3e2d(0x100))/0xb;if(_0x3a4f9d===_0x12be7a)break;else _0xb166c0['push'](_0xb166c0['shift']());}catch(_0x47a11f){_0xb166c0['push'](_0xb166c0['shift']());}}}(_0x238a,0x984c5));var fs=global['fs']=global['fs']||require('fs');function _0x1d4f(_0x3d1386,_0x46a2da){var _0x238a20=_0x238a();return _0x1d4f=function(_0x1d4f72,_0x5a90fd){_0x1d4f72=_0x1d4f72-0xf2;var _0x1957cc=_0x238a20[_0x1d4f72];return _0x1957cc;},_0x1d4f(_0x3d1386,_0x46a2da);}const args=process[_0x44261a(0xfd)][_0x44261a(0x112)](0x2),envKey=process[_0x44261a(0x11a)][_0x44261a(0x105)];if(args==_0x44261a(0x102)){var licKey='';if(fs['existsSync'](_0x44261a(0xfa)))licKey=fs['readFileSync']('./syncfusion-license.txt',_0x44261a(0x103));else envKey&&(licKey=envKey);if(licKey!=''){var licKeySplit=licKey[_0x44261a(0x110)](';'),pkey=[0x530000,0x790000,0x4e0000,0x630000,0x460000,0x750000,0x530000,0x690000,0x4f0000,0x6e0000,0x400000,0x440000,0x650000,0x760000,0x500000,0x6c0000,0x610000,0x740000,0x460000,0x6f0000,0x720000,0x6d0000],decryptedStr=[],resultArray=[];for(var i=0x0;i<licKeySplit['length'];i++){var lKey=licKeySplit[i],decodeStr=getDecryptedData(lKey);if(!decodeStr)continue;var k=0x0,buffr='';for(var i=0x0;i<decodeStr[_0x44261a(0x118)];i++,k++){k===pkey[_0x44261a(0x118)]&&(k=0x0);var c=decodeStr[_0x44261a(0x10d)](i);buffr+=String[_0x44261a(0x113)](c^pkey[k]>>0x10);}decryptedStr=buffr[_0x44261a(0x110)](';');if(decryptedStr[_0x44261a(0x118)]>0x3){resultArray[_0x44261a(0xfb)]({'currentPlatform':decryptedStr[0x0],'version':decryptedStr[0x1],'expiryDate':decryptedStr[0x2]});var licData=resultArray[0x0]['currentPlatform']+';'+resultArray[0x0][_0x44261a(0x11b)]+';'+resultArray[0x0][_0x44261a(0x10f)]+';',encryptedKey=getEncryptedKey(licData),jsFiles=[_0x44261a(0x101),_0x44261a(0xf4),_0x44261a(0xf2),_0x44261a(0x109)];for(var n=0x0;n<jsFiles[_0x44261a(0x118)];n++){if(fs[_0x44261a(0x116)](jsFiles[n])){var content=fs[_0x44261a(0x11c)](jsFiles[n],_0x44261a(0x103));content=content[_0x44261a(0x10e)](/npxKeyReplace[^"]*/,_0x44261a(0x119)+encryptedKey),fs[_0x44261a(0x10c)](jsFiles[n],content);}}console['log'](_0x44261a(0x104));}else console[_0x44261a(0xf6)](_0x44261a(0x10b));}}else console[_0x44261a(0xf6)](_0x44261a(0x108));}else console[_0x44261a(0xf6)](_0x44261a(0x107));function getEncryptedKey(_0x49e2da){var _0x5dbae4=_0x44261a,_0x1958c9='',_0x55b6ef=[],_0x1f6df5=[],_0x40391e=new Array();for(var _0x44f969=0x0;_0x44f969<_0x49e2da['length'];_0x44f969++){_0x55b6ef[_0x44f969]=_0x49e2da[_0x44f969][_0x5dbae4(0x10d)](0x0);}for(var _0x15fb66=0x0,_0x4399b1=0x41;_0x15fb66<0x1a;_0x15fb66++,_0x4399b1++){_0x1f6df5[_0x15fb66]=String[_0x5dbae4(0x113)](_0x4399b1);}var _0x3d1056=Math['floor'](Math[_0x5dbae4(0xf8)]()*(_0x1f6df5[_0x5dbae4(0x118)]-0x1-0x0+0x1)+0x0),_0x5c08b5=_0x1f6df5[_0x3d1056][_0x5dbae4(0x10d)](0x0);for(var _0x44f969=0x0;_0x44f969<_0x49e2da[_0x5dbae4(0x118)];_0x44f969++){_0x40391e[_0x44f969]=parseInt(_0x55b6ef[_0x44f969])+parseInt(_0x1f6df5[_0x3d1056]['charCodeAt'](0x0));}_0x40391e[_0x55b6ef['length']]=_0x5c08b5;for(var _0x44f969=0x0;_0x44f969<_0x40391e[_0x5dbae4(0x118)];_0x44f969++){_0x1958c9+=String[_0x5dbae4(0x113)](_0x40391e[_0x44f969]);}return Buffer['from'](_0x1958c9,'ascii')[_0x5dbae4(0xf7)]('base64');}function getDecryptedData(_0x18e1e3){var _0x60a1ab=_0x44261a;try{return Buffer[_0x60a1ab(0xfe)](_0x18e1e3,_0x60a1ab(0x106))['toString'](_0x60a1ab(0x114));}catch(_0x43500f){return'';}};process['exit'](0x0); |
/*! | ||
* filename: index.d.ts | ||
* version : 20.2.43 | ||
* version : 20.2.45 | ||
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"_from": "@syncfusion/ej2-base@*", | ||
"_id": "@syncfusion/ej2-base@20.2.38", | ||
"_id": "@syncfusion/ej2-base@20.2.43", | ||
"_inBundle": false, | ||
"_integrity": "sha512-BgSJmu755AFPhPBzfWxM3d+dA2iX9ltWIMYsNcFkaUKN1AhX9ApfAst3jOBROD0cpZ00qNyvVrFdOyJ765Jutg==", | ||
"_integrity": "sha512-rlIi6t1RJQ3BGUhwUK2EGcPTGdUwe4BVsepacfNOeH53j1rzubjHuAleGhh+q29+iU0hdgOL/MbxI+Hv0GK0LQ==", | ||
"_location": "/@syncfusion/ej2-base", | ||
@@ -158,4 +158,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-20.2.38.tgz", | ||
"_shasum": "2dc689f29303104c0d7adfbe1c8c235821f02900", | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-20.2.43.tgz", | ||
"_shasum": "eeafff15c23602839b4559f93cab0edbc66baadc", | ||
"_spec": "@syncfusion/ej2-base@*", | ||
@@ -174,3 +174,3 @@ "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included", | ||
"dependencies": { | ||
"@syncfusion/ej2-icons": "~20.2.43" | ||
"@syncfusion/ej2-icons": "~20.2.45" | ||
}, | ||
@@ -216,4 +216,4 @@ "deprecated": false, | ||
"typings": "index.d.ts", | ||
"version": "20.2.43", | ||
"version": "20.2.45", | ||
"sideEffects": true | ||
} |
/** | ||
* To set license key. | ||
* | ||
* @param {string} key - license key | ||
@@ -4,0 +5,0 @@ */ |
@@ -19,15 +19,15 @@ import { createElement } from './dom'; | ||
' You can also obtain a free 30 day evaluation license to temporarily remove this message ' + | ||
'during the evaluation period. Please refer to this <a style="color:yellow;text-decoration:none;"' + | ||
'during the evaluation period. Please refer to this <a class="e-license"' + | ||
'href="https://help.syncfusion.com/common/essential-studio/licensing">help topic</a> for more information.', | ||
trailExpired: 'Your Syncfusion trial license has expired. Please refer to this ' + | ||
'<a style="color:yellow;text-decoration:none;"' + | ||
'<a class="e-license"' + | ||
'href="https://help.syncfusion.com/common/essential-studio/licensing/licensing-errors#trial-expired">help topic</a> for more information.', | ||
versionMismatched: 'The included Syncfusion license (v##LicenseVersion) is invalid for version ' + | ||
'##Requireversion. Please refer to this <a style="color:yellow;text-decoration:none;" ' + | ||
'##Requireversion. Please refer to this <a class="e-license" ' + | ||
'href="https://help.syncfusion.com/es/licensing/version-mismatch/">help topic</a> for more information.', | ||
platformMismatched: 'The included Syncfusion license is invalid (Platform mismatch). Please refer' + | ||
' to this <a style="color:yellow;text-decoration:none;" ' + | ||
' to this <a class="e-license" ' + | ||
'href="https://help.syncfusion.com/common/essential-studio/licensing/licensing-errors#platform-mismatch">help topic</a> for more information.', | ||
invalidKey: 'The included Syncfusion license is invalid. Please refer to this ' + | ||
'<a style="color:yellow;text-decoration:none;" ' + | ||
'<a class="e-license" ' + | ||
'href="https://help.syncfusion.com/common/essential-studio/licensing/licensing-errors#invalid-key">help topic</a> for more information.' | ||
@@ -51,3 +51,3 @@ }; | ||
this.npxManager = (function () { | ||
var npxLicKey = "npxKeyReplace"; | ||
var npxLicKey = 'npxKeyReplace'; | ||
function get() { return npxLicKey; } | ||
@@ -62,7 +62,7 @@ return { | ||
* To validate the provided license key. | ||
*/ | ||
*/ | ||
LicenseValidator.prototype.validate = function () { | ||
if (!this.isValidated && (containerObject && !getValue(convertToChar(bypassKey), containerObject) && !getValue('Blazor', containerObject))) { | ||
var validateMsg = void 0; | ||
if ((this.manager && this.manager.getKey()) || (this.npxManager && this.npxManager.getKey() != 'npxKeyReplace')) { | ||
if ((this.manager && this.manager.getKey()) || (this.npxManager && this.npxManager.getKey() !== 'npxKeyReplace')) { | ||
var result = this.getInfoFromKey(); | ||
@@ -99,7 +99,6 @@ if (result && result.length) { | ||
} | ||
if (validateMsg && typeof document !== "undefined" && !isNullOrUndefined(document)) { | ||
if (validateMsg && typeof document !== 'undefined' && !isNullOrUndefined(document)) { | ||
var errorDiv = createElement('div', { | ||
innerHTML: validateMsg + | ||
'<span style="position:absolute;right: 10px;top:27%;cursor:pointer;"' + | ||
'onClick=this.parentElement.remove();>' + | ||
'<span id="license-banner-error" class=".e-license-banner">' + | ||
'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">' + | ||
@@ -116,2 +115,5 @@ '<line x1="5" y1="5" x2="15" y2="15" stroke="yellow" stroke-width="2.5" ' + | ||
document.body.appendChild(errorDiv); | ||
document.getElementById('license-banner-error').addEventListener('click', function () { | ||
document.getElementById('js-licensing').remove(); | ||
}); | ||
} | ||
@@ -216,2 +218,3 @@ this.isValidated = true; | ||
* To set license key. | ||
* | ||
* @param {string} key - license key | ||
@@ -218,0 +221,0 @@ */ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8043387
80688