Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-base

Package Overview
Dependencies
Maintainers
3
Versions
205
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-base - npm Package Compare versions

Comparing version 23.1.38 to 23.1.40

ReadMe.md

2

bin/syncfusion-license.js
#! /usr/bin/env node
'use strict';var _0x4e4d4f=_0x15fe;function _0x15fe(_0x2c3b82,_0x318f6e){var _0x5ec6f6=_0x5ec6();return _0x15fe=function(_0x15feea,_0x37ee49){_0x15feea=_0x15feea-0x14f;var _0x5a7bc9=_0x5ec6f6[_0x15feea];return _0x5a7bc9;},_0x15fe(_0x2c3b82,_0x318f6e);}function _0x5ec6(){var _0x5822bb=['binary','./node_modules/@syncfusion/ej2-base/src/validate-lic.js','5043078ZwEqFJ','charCodeAt','18adryuf','40264LqgVgN','toString','split','existsSync','10550470HQysAP','slice','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es2015.js','./syncfusion-license.txt','random','currentPlatform','argv','3654285DcYxHF','703016qTkueQ','9bwsCzN','log','184SFXseB','floor','replace','env','./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js','Supported\x20command:\x20npx\x20syncfusion-license\x20activate','push','fromCharCode','1236289bIMinF','writeFileSync','SYNCFUSION_LICENSE','readFileSync','Please\x20add\x20the\x20syncfusion-license.txt\x20file\x20or\x20set\x20environment\x20variable\x20SYNCFUSION_LICENSE','from','(Error)\x20License\x20key\x20is\x20not\x20valid.','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es5.js','2463310YqgYHH','version','UTF8','base64','length'];_0x5ec6=function(){return _0x5822bb;};return _0x5ec6();}(function(_0x215a1b,_0x5ea789){var _0x113d92=_0x15fe,_0x2f83b7=_0x215a1b();while(!![]){try{var _0x2c781b=-parseInt(_0x113d92(0x159))/0x1+-parseInt(_0x113d92(0x161))/0x2+-parseInt(_0x113d92(0x14f))/0x3*(parseInt(_0x113d92(0x177))/0x4)+parseInt(_0x113d92(0x176))/0x5+parseInt(_0x113d92(0x168))/0x6+-parseInt(_0x113d92(0x16b))/0x7*(-parseInt(_0x113d92(0x151))/0x8)+parseInt(_0x113d92(0x16a))/0x9*(parseInt(_0x113d92(0x16f))/0xa);if(_0x2c781b===_0x5ea789)break;else _0x2f83b7['push'](_0x2f83b7['shift']());}catch(_0x10e2c0){_0x2f83b7['push'](_0x2f83b7['shift']());}}}(_0x5ec6,0xc7d7a));var fs=global['fs']=global['fs']||require('fs');const args=process[_0x4e4d4f(0x175)][_0x4e4d4f(0x170)](0x2),envKey=process[_0x4e4d4f(0x154)][_0x4e4d4f(0x15b)];if(args=='activate'){var licKey='';if(fs[_0x4e4d4f(0x16e)](_0x4e4d4f(0x172)))licKey=fs[_0x4e4d4f(0x15c)](_0x4e4d4f(0x172),_0x4e4d4f(0x163));else envKey&&(licKey=envKey);if(licKey!=''){var licKeySplit=licKey[_0x4e4d4f(0x16d)](';'),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[_0x4e4d4f(0x165)];i++){var lKey=licKeySplit[i],decodeStr=getDecryptedData(lKey);if(!decodeStr)continue;var k=0x0,buffr='';for(var i=0x0;i<decodeStr[_0x4e4d4f(0x165)];i++,k++){k===pkey[_0x4e4d4f(0x165)]&&(k=0x0);var c=decodeStr['charCodeAt'](i);buffr+=String[_0x4e4d4f(0x158)](c^pkey[k]>>0x10);}decryptedStr=buffr['split'](';');if(decryptedStr[_0x4e4d4f(0x165)]>0x3){resultArray[_0x4e4d4f(0x157)]({'currentPlatform':decryptedStr[0x0],'version':decryptedStr[0x1],'expiryDate':decryptedStr[0x2]});var licData=resultArray[0x0][_0x4e4d4f(0x174)]+';'+resultArray[0x0][_0x4e4d4f(0x162)]+';'+resultArray[0x0]['expiryDate']+';',encryptedKey=getEncryptedKey(licData),jsFiles=[_0x4e4d4f(0x167),_0x4e4d4f(0x171),_0x4e4d4f(0x160),_0x4e4d4f(0x155)];for(var n=0x0;n<jsFiles[_0x4e4d4f(0x165)];n++){if(fs['existsSync'](jsFiles[n])){var content=fs[_0x4e4d4f(0x15c)](jsFiles[n],_0x4e4d4f(0x163)),regex=jsFiles[n]===_0x4e4d4f(0x155)?/npxKeyReplace[^"]*/:/npxKeyReplace[^']*/;content=content[_0x4e4d4f(0x153)](regex,'npxKeyReplace'+encryptedKey),fs[_0x4e4d4f(0x15a)](jsFiles[n],content);}}console['log']('(INFO)\x20Syncfusion\x20License\x20imported\x20successfully.');}else console['log'](_0x4e4d4f(0x15f));}}else console[_0x4e4d4f(0x150)](_0x4e4d4f(0x15d));}else console['log'](_0x4e4d4f(0x156));function getEncryptedKey(_0x114ba9){var _0x1a44e3=_0x4e4d4f,_0x58da48='',_0x26f9a9=[],_0x3f30bb=[],_0x3efcef=new Array();for(var _0x5281bd=0x0;_0x5281bd<_0x114ba9[_0x1a44e3(0x165)];_0x5281bd++){_0x26f9a9[_0x5281bd]=_0x114ba9[_0x5281bd][_0x1a44e3(0x169)](0x0);}for(var _0x39365e=0x0,_0x213701=0x41;_0x39365e<0x1a;_0x39365e++,_0x213701++){_0x3f30bb[_0x39365e]=String[_0x1a44e3(0x158)](_0x213701);}var _0x2d4a92=Math[_0x1a44e3(0x152)](Math[_0x1a44e3(0x173)]()*(_0x3f30bb['length']-0x1-0x0+0x1)+0x0),_0x335b09=_0x3f30bb[_0x2d4a92][_0x1a44e3(0x169)](0x0);for(var _0x5281bd=0x0;_0x5281bd<_0x114ba9[_0x1a44e3(0x165)];_0x5281bd++){_0x3efcef[_0x5281bd]=parseInt(_0x26f9a9[_0x5281bd])+parseInt(_0x3f30bb[_0x2d4a92][_0x1a44e3(0x169)](0x0));}_0x3efcef[_0x26f9a9[_0x1a44e3(0x165)]]=_0x335b09;for(var _0x5281bd=0x0;_0x5281bd<_0x3efcef['length'];_0x5281bd++){_0x58da48+=String[_0x1a44e3(0x158)](_0x3efcef[_0x5281bd]);}return Buffer['from'](_0x58da48,'ascii')[_0x1a44e3(0x16c)](_0x1a44e3(0x164));}function getDecryptedData(_0x158360){var _0x484937=_0x4e4d4f;try{return Buffer[_0x484937(0x15e)](_0x158360,_0x484937(0x164))[_0x484937(0x16c)](_0x484937(0x166));}catch(_0x16b00e){return'';}};process['exit'](0x0);
'use strict';var _0x4d6277=_0x3c4f;(function(_0x574d04,_0x5c2719){var _0x32a6d6=_0x3c4f,_0x53c47d=_0x574d04();while(!![]){try{var _0x35ce9a=-parseInt(_0x32a6d6(0x1a2))/0x1*(parseInt(_0x32a6d6(0x195))/0x2)+-parseInt(_0x32a6d6(0x1a5))/0x3*(parseInt(_0x32a6d6(0x1a0))/0x4)+-parseInt(_0x32a6d6(0x192))/0x5+parseInt(_0x32a6d6(0x1b3))/0x6*(-parseInt(_0x32a6d6(0x1ad))/0x7)+-parseInt(_0x32a6d6(0x1b4))/0x8*(parseInt(_0x32a6d6(0x1a1))/0x9)+-parseInt(_0x32a6d6(0x1b5))/0xa*(parseInt(_0x32a6d6(0x19f))/0xb)+parseInt(_0x32a6d6(0x1bc))/0xc*(parseInt(_0x32a6d6(0x1a8))/0xd);if(_0x35ce9a===_0x5c2719)break;else _0x53c47d['push'](_0x53c47d['shift']());}catch(_0x54dc1f){_0x53c47d['push'](_0x53c47d['shift']());}}}(_0x2765,0x56ca3));var fs=global['fs']=global['fs']||require('fs');function _0x3c4f(_0x382273,_0x90df1a){var _0x27650c=_0x2765();return _0x3c4f=function(_0x3c4f25,_0x4003cc){_0x3c4f25=_0x3c4f25-0x192;var _0x5d4fee=_0x27650c[_0x3c4f25];return _0x5d4fee;},_0x3c4f(_0x382273,_0x90df1a);}const args=process[_0x4d6277(0x19d)][_0x4d6277(0x1b2)](0x2),envKey=process['env'][_0x4d6277(0x1a7)];if(args=='activate'){var licKey='';if(fs['existsSync'](_0x4d6277(0x198)))licKey=fs['readFileSync'](_0x4d6277(0x198),'UTF8');else envKey&&(licKey=envKey);if(licKey!=''){var licKeySplit=licKey[_0x4d6277(0x199)](';'),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[_0x4d6277(0x1ac)];i++){var lKey=licKeySplit[i],decodeStr=getDecryptedData(lKey);if(!decodeStr)continue;var k=0x0,buffr='';for(var i=0x0;i<decodeStr[_0x4d6277(0x1ac)];i++,k++){k===pkey[_0x4d6277(0x1ac)]&&(k=0x0);var c=decodeStr['charCodeAt'](i);buffr+=String[_0x4d6277(0x1b0)](c^pkey[k]>>0x10);}decryptedStr=buffr[_0x4d6277(0x199)](';');if(decryptedStr[_0x4d6277(0x1ac)]>0x3){resultArray['push']({'currentPlatform':decryptedStr[0x0],'version':decryptedStr[0x1],'expiryDate':decryptedStr[0x2]});var licData=resultArray[0x0][_0x4d6277(0x1ae)]+';'+resultArray[0x0][_0x4d6277(0x1b6)]+';'+resultArray[0x0]['expiryDate']+';',encryptedKey=getEncryptedKey(licData),jsFiles=[_0x4d6277(0x19a),_0x4d6277(0x1bb),_0x4d6277(0x1b9),'./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js'];for(var n=0x0;n<jsFiles[_0x4d6277(0x1ac)];n++){if(fs[_0x4d6277(0x1a4)](jsFiles[n])){var content=fs[_0x4d6277(0x1af)](jsFiles[n],_0x4d6277(0x19e)),regex=jsFiles[n]===_0x4d6277(0x1b8)?/npxKeyReplace[^"]*/:/npxKeyReplace[^']*/;content=content[_0x4d6277(0x1a3)](regex,_0x4d6277(0x1aa)+encryptedKey),fs[_0x4d6277(0x19b)](jsFiles[n],content);}}console[_0x4d6277(0x1b7)](_0x4d6277(0x19c));}else console[_0x4d6277(0x1b7)](_0x4d6277(0x197));}}else console[_0x4d6277(0x1b7)](_0x4d6277(0x1a9));}else console['log'](_0x4d6277(0x1a6));function getEncryptedKey(_0xf7bfb5){var _0x81dcda=_0x4d6277,_0xb952c5='',_0x40b753=[],_0x36722b=[],_0x2ad8d6=new Array();for(var _0x305e91=0x0;_0x305e91<_0xf7bfb5[_0x81dcda(0x1ac)];_0x305e91++){_0x40b753[_0x305e91]=_0xf7bfb5[_0x305e91][_0x81dcda(0x1ab)](0x0);}for(var _0x1119e6=0x0,_0x43a82e=0x41;_0x1119e6<0x1a;_0x1119e6++,_0x43a82e++){_0x36722b[_0x1119e6]=String[_0x81dcda(0x1b0)](_0x43a82e);}var _0x4a6bf6=Math[_0x81dcda(0x194)](Math['random']()*(_0x36722b['length']-0x1-0x0+0x1)+0x0),_0x5379e1=_0x36722b[_0x4a6bf6][_0x81dcda(0x1ab)](0x0);for(var _0x305e91=0x0;_0x305e91<_0xf7bfb5[_0x81dcda(0x1ac)];_0x305e91++){_0x2ad8d6[_0x305e91]=parseInt(_0x40b753[_0x305e91])+parseInt(_0x36722b[_0x4a6bf6][_0x81dcda(0x1ab)](0x0));}_0x2ad8d6[_0x40b753[_0x81dcda(0x1ac)]]=_0x5379e1;for(var _0x305e91=0x0;_0x305e91<_0x2ad8d6[_0x81dcda(0x1ac)];_0x305e91++){_0xb952c5+=String[_0x81dcda(0x1b0)](_0x2ad8d6[_0x305e91]);}return Buffer[_0x81dcda(0x1b1)](_0xb952c5,'ascii')[_0x81dcda(0x193)](_0x81dcda(0x196));}function getDecryptedData(_0x245b59){var _0x509260=_0x4d6277;try{return Buffer['from'](_0x245b59,_0x509260(0x196))[_0x509260(0x193)]('binary');}catch(_0x1a65bd){return'';}};function _0x2765(){var _0x27e935=['78FxEsNu','replace','existsSync','1252956agXlrS','Supported\x20command:\x20npx\x20syncfusion-license\x20activate','SYNCFUSION_LICENSE','13vLIXNN','Please\x20add\x20the\x20syncfusion-license.txt\x20file\x20or\x20set\x20environment\x20variable\x20SYNCFUSION_LICENSE','npxKeyReplace','charCodeAt','length','538125AOmXrs','currentPlatform','readFileSync','fromCharCode','from','slice','42dTRmeG','536BKJxqb','30hjXbXM','version','log','./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es5.js','exit','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es2015.js','35889060SKClNj','2097535ThbMiX','toString','floor','11848tfXSJw','base64','(Error)\x20License\x20key\x20is\x20not\x20valid.','./syncfusion-license.txt','split','./node_modules/@syncfusion/ej2-base/src/validate-lic.js','writeFileSync','(INFO)\x20Syncfusion\x20License\x20imported\x20successfully.','argv','UTF8','1433729cMyUov','4hVxyBO','54657FxhGUa'];_0x2765=function(){return _0x27e935;};return _0x2765();}process[_0x4d6277(0x1ba)](0x0);

@@ -9,2 +9,10 @@ # Changelog

- `#I495294` - The issue with content sanitization in the tooltip component has been resolved.
## 23.1.38 (2023-09-26)
### Common
#### Bug Fixes
- `#I493496` - Up loader file name with special character issue has been fixed.

@@ -11,0 +19,0 @@

@@ -1,10 +0,1 @@

/*!
* filename: index.d.ts
* version : 23.1.38
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
* Use of this code is subject to the terms of our license.
* A copy of the current license can be obtained at any time by e-mailing
* licensing@syncfusion.com. Any infringement will be prosecuted under
* applicable laws.
*/
import * as _base from '@syncfusion/ej2-base';

@@ -11,0 +2,0 @@

{
"_from": "@syncfusion/ej2-base@*",
"_id": "@syncfusion/ej2-base@23.1.36",
"_inBundle": false,
"_integrity": "sha512-ur5hus1QokU6hi3FLOhO/jCvvQkYWy52M7yhCsaMR2mMFQ+0hVqUPjJ5kdk6c7Gy/b5LBzmdpw6PL58KL1nHUg==",
"_location": "/@syncfusion/ej2-base",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@syncfusion/ej2-base@*",
"name": "@syncfusion/ej2-base",
"escapedName": "@syncfusion%2fej2-base",
"scope": "@syncfusion",
"rawSpec": "*",
"saveSpec": null,
"fetchSpec": "*"
},
"_requiredBy": [
"/",
"/@syncfusion/ej2",
"/@syncfusion/ej2-angular-base",
"/@syncfusion/ej2-angular-calendars",
"/@syncfusion/ej2-angular-charts",
"/@syncfusion/ej2-angular-circulargauge",
"/@syncfusion/ej2-angular-diagrams",
"/@syncfusion/ej2-angular-documenteditor",
"/@syncfusion/ej2-angular-dropdowns",
"/@syncfusion/ej2-angular-filemanager",
"/@syncfusion/ej2-angular-gantt",
"/@syncfusion/ej2-angular-grids",
"/@syncfusion/ej2-angular-image-editor",
"/@syncfusion/ej2-angular-inputs",
"/@syncfusion/ej2-angular-maps",
"/@syncfusion/ej2-angular-pdfviewer",
"/@syncfusion/ej2-angular-pivotview",
"/@syncfusion/ej2-angular-popups",
"/@syncfusion/ej2-angular-progressbar",
"/@syncfusion/ej2-angular-querybuilder",
"/@syncfusion/ej2-angular-ribbon",
"/@syncfusion/ej2-angular-schedule",
"/@syncfusion/ej2-angular-spreadsheet",
"/@syncfusion/ej2-barcode-generator",
"/@syncfusion/ej2-buttons",
"/@syncfusion/ej2-calendars",
"/@syncfusion/ej2-charts",
"/@syncfusion/ej2-circulargauge",
"/@syncfusion/ej2-data",
"/@syncfusion/ej2-diagrams",
"/@syncfusion/ej2-documenteditor",
"/@syncfusion/ej2-drawings",
"/@syncfusion/ej2-dropdowns",
"/@syncfusion/ej2-excel-export",
"/@syncfusion/ej2-filemanager",
"/@syncfusion/ej2-gantt",
"/@syncfusion/ej2-grids",
"/@syncfusion/ej2-heatmap",
"/@syncfusion/ej2-image-editor",
"/@syncfusion/ej2-inplace-editor",
"/@syncfusion/ej2-inputs",
"/@syncfusion/ej2-kanban",
"/@syncfusion/ej2-layouts",
"/@syncfusion/ej2-lineargauge",
"/@syncfusion/ej2-lists",
"/@syncfusion/ej2-maps",
"/@syncfusion/ej2-navigations",
"/@syncfusion/ej2-notifications",
"/@syncfusion/ej2-pdf",
"/@syncfusion/ej2-pdfviewer",
"/@syncfusion/ej2-pivotview",
"/@syncfusion/ej2-popups",
"/@syncfusion/ej2-progressbar",
"/@syncfusion/ej2-querybuilder",
"/@syncfusion/ej2-react-base",
"/@syncfusion/ej2-react-calendars",
"/@syncfusion/ej2-react-charts",
"/@syncfusion/ej2-react-circulargauge",
"/@syncfusion/ej2-react-diagrams",
"/@syncfusion/ej2-react-documenteditor",
"/@syncfusion/ej2-react-dropdowns",
"/@syncfusion/ej2-react-filemanager",
"/@syncfusion/ej2-react-gantt",
"/@syncfusion/ej2-react-grids",
"/@syncfusion/ej2-react-image-editor",
"/@syncfusion/ej2-react-inputs",
"/@syncfusion/ej2-react-maps",
"/@syncfusion/ej2-react-pdfviewer",
"/@syncfusion/ej2-react-pivotview",
"/@syncfusion/ej2-react-popups",
"/@syncfusion/ej2-react-progressbar",
"/@syncfusion/ej2-react-querybuilder",
"/@syncfusion/ej2-react-ribbon",
"/@syncfusion/ej2-react-schedule",
"/@syncfusion/ej2-react-spreadsheet",
"/@syncfusion/ej2-ribbon",
"/@syncfusion/ej2-richtexteditor",
"/@syncfusion/ej2-schedule",
"/@syncfusion/ej2-splitbuttons",
"/@syncfusion/ej2-spreadsheet",
"/@syncfusion/ej2-svg-base",
"/@syncfusion/ej2-treegrid",
"/@syncfusion/ej2-treemap",
"/@syncfusion/ej2-vue-base",
"/@syncfusion/ej2-vue-calendars",
"/@syncfusion/ej2-vue-charts",
"/@syncfusion/ej2-vue-circulargauge",
"/@syncfusion/ej2-vue-diagrams",
"/@syncfusion/ej2-vue-documenteditor",
"/@syncfusion/ej2-vue-dropdowns",
"/@syncfusion/ej2-vue-filemanager",
"/@syncfusion/ej2-vue-gantt",
"/@syncfusion/ej2-vue-grids",
"/@syncfusion/ej2-vue-image-editor",
"/@syncfusion/ej2-vue-inputs",
"/@syncfusion/ej2-vue-maps",
"/@syncfusion/ej2-vue-pdfviewer",
"/@syncfusion/ej2-vue-pivotview",
"/@syncfusion/ej2-vue-popups",
"/@syncfusion/ej2-vue-progressbar",
"/@syncfusion/ej2-vue-querybuilder",
"/@syncfusion/ej2-vue-ribbon",
"/@syncfusion/ej2-vue-schedule",
"/@syncfusion/ej2-vue-spreadsheet"
],
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-23.1.36.tgz",
"_shasum": "2d04974b81487ea7e2e6ba9510111549f49d1958",
"_spec": "@syncfusion/ej2-base@*",
"_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
"author": {
"name": "Syncfusion Inc."
},
"bin": {
"syncfusion-license": "bin/syncfusion-license.js"
},
"bugs": {
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/issues"
},
"bundleDependencies": false,
"dependencies": {
"@syncfusion/ej2-icons": "~23.1.36"
},
"deprecated": false,
"description": "A common package of Essential JS 2 base libraries, methods and class definitions",
"devDependencies": {},
"es2015": "./dist/es6/ej2-base.es5.js",
"homepage": "https://www.syncfusion.com/javascript-ui-controls",
"keywords": [
"ej2",
"syncfusion",
"ej2-base",
"web-components",
"typescript",
"base",
"common",
"core",
"library",
"ajax",
"animation",
"internationalization",
"drag",
"drop",
"drag-drop",
"template",
"template-engine",
"rtl",
"right-to-left",
"persistence",
"state-persistence",
"theme",
"styles"
],
"license": "SEE LICENSE IN license",
"main": "./dist/ej2-base.umd.min.js",
"module": "./index.js",
"name": "@syncfusion/ej2-base",
"repository": {
"type": "git",
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
},
"typings": "index.d.ts",
"version": "23.1.38",
"sideEffects": true
}
"_from": "@syncfusion/ej2-base@*",
"_id": "@syncfusion/ej2-base@23.1.36",
"_inBundle": false,
"_integrity": "sha512-ur5hus1QokU6hi3FLOhO/jCvvQkYWy52M7yhCsaMR2mMFQ+0hVqUPjJ5kdk6c7Gy/b5LBzmdpw6PL58KL1nHUg==",
"_location": "/@syncfusion/ej2-base",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@syncfusion/ej2-base@*",
"name": "@syncfusion/ej2-base",
"escapedName": "@syncfusion%2fej2-base",
"scope": "@syncfusion",
"rawSpec": "*",
"saveSpec": null,
"fetchSpec": "*"
},
"_requiredBy": [
"/",
"/@syncfusion/ej2",
"/@syncfusion/ej2-angular-base",
"/@syncfusion/ej2-angular-calendars",
"/@syncfusion/ej2-angular-charts",
"/@syncfusion/ej2-angular-circulargauge",
"/@syncfusion/ej2-angular-diagrams",
"/@syncfusion/ej2-angular-documenteditor",
"/@syncfusion/ej2-angular-dropdowns",
"/@syncfusion/ej2-angular-filemanager",
"/@syncfusion/ej2-angular-gantt",
"/@syncfusion/ej2-angular-grids",
"/@syncfusion/ej2-angular-image-editor",
"/@syncfusion/ej2-angular-inputs",
"/@syncfusion/ej2-angular-maps",
"/@syncfusion/ej2-angular-pdfviewer",
"/@syncfusion/ej2-angular-pivotview",
"/@syncfusion/ej2-angular-popups",
"/@syncfusion/ej2-angular-progressbar",
"/@syncfusion/ej2-angular-querybuilder",
"/@syncfusion/ej2-angular-ribbon",
"/@syncfusion/ej2-angular-schedule",
"/@syncfusion/ej2-angular-spreadsheet",
"/@syncfusion/ej2-barcode-generator",
"/@syncfusion/ej2-buttons",
"/@syncfusion/ej2-calendars",
"/@syncfusion/ej2-charts",
"/@syncfusion/ej2-circulargauge",
"/@syncfusion/ej2-data",
"/@syncfusion/ej2-diagrams",
"/@syncfusion/ej2-documenteditor",
"/@syncfusion/ej2-drawings",
"/@syncfusion/ej2-dropdowns",
"/@syncfusion/ej2-excel-export",
"/@syncfusion/ej2-filemanager",
"/@syncfusion/ej2-gantt",
"/@syncfusion/ej2-grids",
"/@syncfusion/ej2-heatmap",
"/@syncfusion/ej2-image-editor",
"/@syncfusion/ej2-inplace-editor",
"/@syncfusion/ej2-inputs",
"/@syncfusion/ej2-kanban",
"/@syncfusion/ej2-layouts",
"/@syncfusion/ej2-lineargauge",
"/@syncfusion/ej2-lists",
"/@syncfusion/ej2-maps",
"/@syncfusion/ej2-navigations",
"/@syncfusion/ej2-notifications",
"/@syncfusion/ej2-pdf",
"/@syncfusion/ej2-pdfviewer",
"/@syncfusion/ej2-pivotview",
"/@syncfusion/ej2-popups",
"/@syncfusion/ej2-progressbar",
"/@syncfusion/ej2-querybuilder",
"/@syncfusion/ej2-react-base",
"/@syncfusion/ej2-react-calendars",
"/@syncfusion/ej2-react-charts",
"/@syncfusion/ej2-react-circulargauge",
"/@syncfusion/ej2-react-diagrams",
"/@syncfusion/ej2-react-documenteditor",
"/@syncfusion/ej2-react-dropdowns",
"/@syncfusion/ej2-react-filemanager",
"/@syncfusion/ej2-react-gantt",
"/@syncfusion/ej2-react-grids",
"/@syncfusion/ej2-react-image-editor",
"/@syncfusion/ej2-react-inputs",
"/@syncfusion/ej2-react-maps",
"/@syncfusion/ej2-react-pdfviewer",
"/@syncfusion/ej2-react-pivotview",
"/@syncfusion/ej2-react-popups",
"/@syncfusion/ej2-react-progressbar",
"/@syncfusion/ej2-react-querybuilder",
"/@syncfusion/ej2-react-ribbon",
"/@syncfusion/ej2-react-schedule",
"/@syncfusion/ej2-react-spreadsheet",
"/@syncfusion/ej2-ribbon",
"/@syncfusion/ej2-richtexteditor",
"/@syncfusion/ej2-schedule",
"/@syncfusion/ej2-splitbuttons",
"/@syncfusion/ej2-spreadsheet",
"/@syncfusion/ej2-svg-base",
"/@syncfusion/ej2-treegrid",
"/@syncfusion/ej2-treemap",
"/@syncfusion/ej2-vue-base",
"/@syncfusion/ej2-vue-calendars",
"/@syncfusion/ej2-vue-charts",
"/@syncfusion/ej2-vue-circulargauge",
"/@syncfusion/ej2-vue-diagrams",
"/@syncfusion/ej2-vue-documenteditor",
"/@syncfusion/ej2-vue-dropdowns",
"/@syncfusion/ej2-vue-filemanager",
"/@syncfusion/ej2-vue-gantt",
"/@syncfusion/ej2-vue-grids",
"/@syncfusion/ej2-vue-image-editor",
"/@syncfusion/ej2-vue-inputs",
"/@syncfusion/ej2-vue-maps",
"/@syncfusion/ej2-vue-pdfviewer",
"/@syncfusion/ej2-vue-pivotview",
"/@syncfusion/ej2-vue-popups",
"/@syncfusion/ej2-vue-progressbar",
"/@syncfusion/ej2-vue-querybuilder",
"/@syncfusion/ej2-vue-ribbon",
"/@syncfusion/ej2-vue-schedule",
"/@syncfusion/ej2-vue-spreadsheet"
],
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-23.1.36.tgz",
"_shasum": "2d04974b81487ea7e2e6ba9510111549f49d1958",
"_spec": "@syncfusion/ej2-base@*",
"_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
"author": {
"name": "Syncfusion Inc."
},
"bin": {
"syncfusion-license": "bin/syncfusion-license.js"
},
"bugs": {
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/issues"
},
"bundleDependencies": false,
"dependencies": {
"@syncfusion/ej2-icons": "~23.1.36"
},
"deprecated": false,
"description": "A common package of Essential JS 2 base libraries, methods and class definitions",
"devDependencies": {},
"es2015": "./dist/es6/ej2-base.es5.js",
"homepage": "https://www.syncfusion.com/javascript-ui-controls",
"keywords": [
"ej2",
"syncfusion",
"ej2-base",
"web-components",
"typescript",
"base",
"common",
"core",
"library",
"ajax",
"animation",
"internationalization",
"drag",
"drop",
"drag-drop",
"template",
"template-engine",
"rtl",
"right-to-left",
"persistence",
"state-persistence",
"theme",
"styles"
],
"license": "SEE LICENSE IN license",
"main": "./dist/ej2-base.umd.min.js",
"module": "./index.js",
"name": "@syncfusion/ej2-base",
"repository": {
"type": "git",
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
},
"typings": "index.d.ts",
"version": "23.1.40",
"sideEffects": true
}

@@ -34,2 +34,3 @@ interface BeforeSanitizeHtml {

static serializeValue(item: BeforeSanitizeHtml, value: string): string;
private static sanitizeQuotes;
private static removeElement;

@@ -36,0 +37,0 @@ private static removeXssTags;

@@ -131,3 +131,3 @@ /**

this.wrapElement = document.createElement('div');
this.wrapElement.innerHTML = value;
this.wrapElement.innerHTML = this.sanitizeQuotes(value);
this.removeXssTags();

@@ -140,2 +140,43 @@ this.removeJsEvents();

};
SanitizeHtmlHelper.sanitizeQuotes = function (input) {
var sanityChars = [96, 39, 34];
var escape = 92;
var sanitizedValue = '';
var quoteCounts = {
96: 0,
39: 0,
34: 0
};
var isPreviousCharBackslash = false;
for (var i = 0; i < input.length; i++) {
var currentChar = input.charCodeAt(i);
if (sanityChars.indexOf(currentChar) !== -1 && !isPreviousCharBackslash) {
quoteCounts[currentChar + '']++;
}
isPreviousCharBackslash = currentChar === escape;
}
try {
// Replace the quotes which has total count is in odd number
// Previous char is not backslash, open parenthesis and
// Next is not close parenthesis
for (var i = 0; i < input.length; i++) {
var currentChar = input.charCodeAt(i);
var previousChar = i > 0 ? input.charCodeAt(i - 1) : null;
var nextChar = i < input.length - 1 ? input.charCodeAt(i + 1) : null;
if (sanityChars.indexOf(currentChar) !== -1 && previousChar !== escape) {
if (quoteCounts[currentChar + ''] % 2 === 1 && previousChar !== 40 && nextChar !== 41) {
sanitizedValue += String.fromCharCode(escape);
}
sanitizedValue += input[i + ''];
}
else {
sanitizedValue += input[i + ''];
}
}
return sanitizedValue;
}
catch (error) {
return input;
}
};
SanitizeHtmlHelper.removeElement = function () {

@@ -142,0 +183,0 @@ // Removes an element's attibute to avoid html tag validation

Sorry, the diff of this file is too big to display

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc