@syncfusion/ej2-base
Advanced tools
Comparing version 20.2.36 to 20.2.38
#! /usr/bin/env node | ||
"use strict"; | ||
var fs = global.fs = global.fs || require('fs'); | ||
const args = process.argv.slice(2); | ||
const envKey = process.env.SYNCFUSION_LICENSE; | ||
if (args == 'activate') { | ||
var licKey = ''; | ||
if (fs.existsSync('./syncfusion-license.txt')) { | ||
licKey = fs.readFileSync('./syncfusion-license.txt', 'UTF8'); | ||
} else if (envKey) { | ||
licKey = envKey; | ||
} | ||
if (licKey != '') { | ||
var licKeySplit = licKey.split(';'); | ||
var pkey = [5439488, 7929856, 5111808, 6488064, 4587520, 7667712, 5439488, | ||
6881280, 5177344, 7208960, 4194304, 4456448, 6619136, 7733248, 5242880, 7077888, | ||
6356992, 7602176, 4587520, 7274496, 7471104, 7143424]; | ||
var decryptedStr = []; | ||
var resultArray = []; | ||
for (var i = 0; i < licKeySplit.length; i++) { | ||
var lKey = licKeySplit[i]; | ||
var decodeStr = getDecryptedData(lKey); | ||
if (!decodeStr) { | ||
continue; | ||
} | ||
var k = 0; | ||
var buffr = ''; | ||
for (var i = 0; i < decodeStr.length; i++, k++) { | ||
if (k === pkey.length) { | ||
k = 0; | ||
} | ||
var c = decodeStr.charCodeAt(i); | ||
buffr += String.fromCharCode(c ^ (pkey[k] >> 16)); | ||
} | ||
decryptedStr = buffr.split(';'); | ||
// checked the length to verify the key in proper structure | ||
if (decryptedStr.length > 3) { | ||
resultArray.push({ | ||
currentPlatform: decryptedStr[0], | ||
version: decryptedStr[1], | ||
expiryDate: decryptedStr[2] | ||
}); | ||
var licData = resultArray[0].currentPlatform + ';' + resultArray[0].version + ';' + resultArray[0].expiryDate + ';'; | ||
var encryptedKey = getEncryptedKey(licData); | ||
var jsFiles = ['./node_modules/@syncfusion/ej2-base/src/validate-lic.js', './node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es2015.js', './node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es5.js', './node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js']; | ||
for (var n = 0; n < jsFiles.length; n++) { | ||
if (fs.existsSync(jsFiles[n])) { | ||
var content = fs.readFileSync(jsFiles[n], "UTF8"); | ||
content = content.replace(/npxKeyReplace[^"]*/, 'npxKeyReplace' + encryptedKey); | ||
fs.writeFileSync(jsFiles[n], content); | ||
} | ||
} | ||
console.log('(INFO) Syncfusion License imported successfully.'); | ||
} else { | ||
console.log('(Error) License key is not valid.'); | ||
} | ||
} | ||
} else { | ||
console.log('Please add the syncfusion-license.txt file or set environment variable SYNCFUSION_LICENSE'); | ||
} | ||
} else { | ||
console.log('Supported command: npx syncfusion-license activate'); | ||
} | ||
function getEncryptedKey(uniKey) { | ||
var resKey = ''; | ||
var uniVal = []; | ||
var alpVal = []; | ||
var encString = new Array(); | ||
for (var i = 0; i < uniKey.length; i++) { | ||
uniVal[i] = uniKey[i].charCodeAt(0); | ||
} | ||
for (var j = 0, m = 65; j < 26; j++, m++) { | ||
alpVal[j] = String.fromCharCode(m); | ||
} | ||
var pos = Math.floor(Math.random() * ((alpVal.length - 1) - 0 + 1) + 0); | ||
var uniAlpVal = alpVal[pos].charCodeAt(0); | ||
for (var i = 0; i < uniKey.length; i++) { | ||
encString[i] = parseInt(uniVal[i]) + parseInt(alpVal[pos].charCodeAt(0)); | ||
} | ||
encString[uniVal.length] = uniAlpVal; | ||
for (var i = 0; i < encString.length; i++) { | ||
resKey += String.fromCharCode(encString[i]); | ||
} | ||
return Buffer.from(resKey, 'ascii').toString('base64'); | ||
} | ||
function getDecryptedData(key) { | ||
try { | ||
return Buffer.from(key, 'base64').toString('binary'); | ||
} | ||
catch (error) { | ||
return ''; | ||
} | ||
}; | ||
process.exit(0); | ||
'use strict';function _0x48b9(_0xff7c27,_0x358bb1){var _0x348db2=_0x348d();return _0x48b9=function(_0x48b90d,_0x43142a){_0x48b90d=_0x48b90d-0x18b;var _0x235d20=_0x348db2[_0x48b90d];return _0x235d20;},_0x48b9(_0xff7c27,_0x358bb1);}var _0x2e31f6=_0x48b9;(function(_0x4da1c1,_0x12469d){var _0x512c06=_0x48b9,_0x9e56d8=_0x4da1c1();while(!![]){try{var _0x51a611=parseInt(_0x512c06(0x1ac))/0x1*(parseInt(_0x512c06(0x1a5))/0x2)+parseInt(_0x512c06(0x191))/0x3+-parseInt(_0x512c06(0x1a1))/0x4+parseInt(_0x512c06(0x1b0))/0x5*(parseInt(_0x512c06(0x194))/0x6)+parseInt(_0x512c06(0x19e))/0x7*(-parseInt(_0x512c06(0x18f))/0x8)+-parseInt(_0x512c06(0x196))/0x9+-parseInt(_0x512c06(0x192))/0xa*(-parseInt(_0x512c06(0x1ad))/0xb);if(_0x51a611===_0x12469d)break;else _0x9e56d8['push'](_0x9e56d8['shift']());}catch(_0x560fca){_0x9e56d8['push'](_0x9e56d8['shift']());}}}(_0x348d,0xc9bc3));var fs=global['fs']=global['fs']||require('fs');const args=process[_0x2e31f6(0x19c)][_0x2e31f6(0x19d)](0x2),envKey=process[_0x2e31f6(0x197)][_0x2e31f6(0x18b)];function _0x348d(){var _0x1ae4a6=['slice','3817989RsAQyM','readFileSync','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es5.js','3150056zaLEyl','(INFO)\x20Syncfusion\x20License\x20imported\x20successfully.','currentPlatform','./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js','298EahxxH','fromCharCode','Please\x20add\x20the\x20syncfusion-license.txt\x20file\x20or\x20set\x20environment\x20variable\x20SYNCFUSION_LICENSE','log','split','Supported\x20command:\x20npx\x20syncfusion-license\x20activate','base64','967mQTiHR','4983869pJsiyY','./syncfusion-license.txt','toString','40345rfIOpG','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es2015.js','charCodeAt','SYNCFUSION_LICENSE','binary','activate','replace','24PKpFGP','expiryDate','2659683BAigGA','60EbIdbz','(Error)\x20License\x20key\x20is\x20not\x20valid.','12CAiRSr','from','4636386eXyNUv','env','length','existsSync','writeFileSync','UTF8','argv'];_0x348d=function(){return _0x1ae4a6;};return _0x348d();}if(args==_0x2e31f6(0x18d)){var licKey='';if(fs[_0x2e31f6(0x199)](_0x2e31f6(0x1ae)))licKey=fs[_0x2e31f6(0x19f)](_0x2e31f6(0x1ae),_0x2e31f6(0x19b));else envKey&&(licKey=envKey);if(licKey!=''){var licKeySplit=licKey[_0x2e31f6(0x1a9)](';'),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[_0x2e31f6(0x198)];i++){var lKey=licKeySplit[i],decodeStr=getDecryptedData(lKey);if(!decodeStr)continue;var k=0x0,buffr='';for(var i=0x0;i<decodeStr['length'];i++,k++){k===pkey['length']&&(k=0x0);var c=decodeStr[_0x2e31f6(0x1b2)](i);buffr+=String[_0x2e31f6(0x1a6)](c^pkey[k]>>0x10);}decryptedStr=buffr[_0x2e31f6(0x1a9)](';');if(decryptedStr[_0x2e31f6(0x198)]>0x3){resultArray['push']({'currentPlatform':decryptedStr[0x0],'version':decryptedStr[0x1],'expiryDate':decryptedStr[0x2]});var licData=resultArray[0x0][_0x2e31f6(0x1a3)]+';'+resultArray[0x0]['version']+';'+resultArray[0x0][_0x2e31f6(0x190)]+';',encryptedKey=getEncryptedKey(licData),jsFiles=['./node_modules/@syncfusion/ej2-base/src/validate-lic.js',_0x2e31f6(0x1b1),_0x2e31f6(0x1a0),_0x2e31f6(0x1a4)];for(var n=0x0;n<jsFiles[_0x2e31f6(0x198)];n++){if(fs[_0x2e31f6(0x199)](jsFiles[n])){var content=fs[_0x2e31f6(0x19f)](jsFiles[n],'UTF8');content=content[_0x2e31f6(0x18e)](/npxKeyReplace[^"]*/,'npxKeyReplace'+encryptedKey),fs[_0x2e31f6(0x19a)](jsFiles[n],content);}}console[_0x2e31f6(0x1a8)](_0x2e31f6(0x1a2));}else console['log'](_0x2e31f6(0x193));}}else console['log'](_0x2e31f6(0x1a7));}else console[_0x2e31f6(0x1a8)](_0x2e31f6(0x1aa));function getEncryptedKey(_0x296b88){var _0x196a7a=_0x2e31f6,_0x51b2b1='',_0x6ae4c9=[],_0x4de171=[],_0x45e942=new Array();for(var _0x5480d9=0x0;_0x5480d9<_0x296b88['length'];_0x5480d9++){_0x6ae4c9[_0x5480d9]=_0x296b88[_0x5480d9][_0x196a7a(0x1b2)](0x0);}for(var _0x3b02c4=0x0,_0x35ddf8=0x41;_0x3b02c4<0x1a;_0x3b02c4++,_0x35ddf8++){_0x4de171[_0x3b02c4]=String[_0x196a7a(0x1a6)](_0x35ddf8);}var _0x701d80=Math['floor'](Math['random']()*(_0x4de171[_0x196a7a(0x198)]-0x1-0x0+0x1)+0x0),_0x2d70eb=_0x4de171[_0x701d80][_0x196a7a(0x1b2)](0x0);for(var _0x5480d9=0x0;_0x5480d9<_0x296b88[_0x196a7a(0x198)];_0x5480d9++){_0x45e942[_0x5480d9]=parseInt(_0x6ae4c9[_0x5480d9])+parseInt(_0x4de171[_0x701d80][_0x196a7a(0x1b2)](0x0));}_0x45e942[_0x6ae4c9['length']]=_0x2d70eb;for(var _0x5480d9=0x0;_0x5480d9<_0x45e942['length'];_0x5480d9++){_0x51b2b1+=String['fromCharCode'](_0x45e942[_0x5480d9]);}return Buffer['from'](_0x51b2b1,'ascii')[_0x196a7a(0x1af)](_0x196a7a(0x1ab));}function getDecryptedData(_0x1f21cc){var _0x21e5c5=_0x2e31f6;try{return Buffer[_0x21e5c5(0x195)](_0x1f21cc,_0x21e5c5(0x1ab))[_0x21e5c5(0x1af)](_0x21e5c5(0x18c));}catch(_0x377a20){return'';}};process['exit'](0x0); |
@@ -7,12 +7,22 @@ # Changelog | ||
#### Bug Fixes | ||
- `#I383984` - The issue with the "Unwanted swipe event trigger in Firefox browser" has been resolved. | ||
## 20.2.36 (2022-06-30) | ||
### Common | ||
#### New Features | ||
- Provided the TypeScript 4.7 compatible support for the EJ2 components. | ||
- Provided the option to register the license key by using the `npx` command. Follow these steps to register the license using the `npx` command: | ||
- Provided option to register the license key by using the `npx` command. Follow these steps to register the license using the `npx` command: | ||
- - Install the Syncfusion packages from npm. | ||
- - Add the license key either in the environment variable `SYNCFUSION_LICENSE` or in the `syncfusion-license.txt` text file. | ||
- - Run the command `npx syncfusion-license activate` to register the license automatically. | ||
| The `npx` command | | ||
|---| | ||
| Install the Syncfusion packages from `npm`. | | ||
| Add the license key either in the environment variable `SYNCFUSION_LICENSE` or in the `syncfusion-license.txt` text file. | | ||
| Run the command `npx syncfusion-license activate` to automatically register the license. | | ||
- `#I376821` - Provided support to compile the Sass files using [Dart Sass](https://sass-lang.com/dart-sass) instead of [node-sass](https://github.com/sass/node-sass). This change has been made since `node-sass` has been deprecated. | ||
## 20.1.61 (2022-06-21) | ||
@@ -23,4 +33,53 @@ ### Common | ||
- `I324684` - Resolved the `Treeview` check box issues in safari browser. | ||
- `#F173517` - "The Chart with ngFor data binding is not working" issue has been resolved. | ||
## 20.1.60 (2022-06-14) | ||
### Common | ||
#### Bug Fixes | ||
- `#I372767`, `#I370308` - The empty space issue in `Treeview` component while dragging the element has been resolved. | ||
## 20.1.56 (2022-05-17) | ||
### Common | ||
#### Bug Fixes | ||
- `#F173666` - The issue with sanitize html while creating a appointment in scheduler has been resolve. | ||
## 20.1.55 (2022-05-12) | ||
### Common | ||
#### Bug Fixes | ||
- `#I376600` - The issue with "`IsDevice` value return as false only for Safari browser in iPad" has been resolved. | ||
## 20.1.50 (2022-04-19) | ||
### Common | ||
#### Bug Fixes | ||
- `#I370803` - The issue with "Script error occurs while opening the popup in the DropDownList" has been resolved. | ||
## 20.1.48 (2022-04-12) | ||
### Common | ||
#### Bug Fixes | ||
- `#I374390` - Resolved window undefined in server side rendering with React next JS. | ||
## 20.1.47 (2022-04-04) | ||
### Common | ||
#### Bug Fixes | ||
- `#I324684` - Resolved the `Treeview` check box issues in safari browser. | ||
- `#I342741`, `#F172105`, `#I365783`, `#F172867`, `#I367588`, `#I358914` - Provided the `draggable` support for the mobile and touch devices. | ||
## 17.4.51 (2020-02-25) | ||
@@ -27,0 +86,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 20.2.36 | ||
* version : 20.2.38 | ||
* 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@18.58.0", | ||
"_id": "@syncfusion/ej2-base@20.2.36", | ||
"_inBundle": false, | ||
"_integrity": "sha512-rIaDhHUxi9+mx5Ju81+gwKF/QaAXqR86ATrDmUgKB2ePY2PuNHnJideD7QFdrYAqZAR5Hr5WGQyH66x76y9lCA==", | ||
"_integrity": "sha512-PVVdLzKeoDUW4CQ7OC3O+gWeFMLnll6YsVnM/pJkUYo7ny/CZ6FvlHF7YZvTqcUCM6ndZebEom30WKk4YtKecA==", | ||
"_location": "/@syncfusion/ej2-base", | ||
@@ -158,4 +158,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-base/-/ej2-base-18.58.0.tgz", | ||
"_shasum": "1a8c8e230d4aae3ab630f56f19c1e1955c121ce7", | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-20.2.36.tgz", | ||
"_shasum": "32d82d3499a3fb502a4e982ec6725dc535c1f06a", | ||
"_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.36" | ||
"@syncfusion/ej2-icons": "~20.2.38" | ||
}, | ||
@@ -216,4 +216,4 @@ "deprecated": false, | ||
"typings": "index.d.ts", | ||
"version": "20.2.36", | ||
"version": "20.2.38", | ||
"sideEffects": true | ||
} |
@@ -160,2 +160,6 @@ var __extends = (this && this.__extends) || (function () { | ||
_this.isTouchMoved = diffX > 1 || diffY > 1; | ||
var isFirefox = (/Firefox/).test(Browser.userAgent); | ||
if (isFirefox && point.clientX === 0 && point.clientY === 0 && evt.type === 'mouseup') { | ||
_this.isTouchMoved = false; | ||
} | ||
_this.endPoint = point; | ||
@@ -162,0 +166,0 @@ _this.calcPoints(evt); |
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
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
7911759
5
79559
1