Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-base

Package Overview
Dependencies
Maintainers
0
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 26.2.5 to 26.2.10

2

bin/syncfusion-license.js
#! /usr/bin/env node
'use strict';function _0x4f16(_0x22853f,_0x2b22ac){var _0x4083f5=_0x4083();return _0x4f16=function(_0x4f16a8,_0x9163e8){_0x4f16a8=_0x4f16a8-0x120;var _0x2605da=_0x4083f5[_0x4f16a8];return _0x2605da;},_0x4f16(_0x22853f,_0x2b22ac);}var _0x1be2bf=_0x4f16;(function(_0x319f56,_0x56d7bb){var _0x3d406b=_0x4f16,_0x24a4a2=_0x319f56();while(!![]){try{var _0x523d38=parseInt(_0x3d406b(0x138))/0x1*(-parseInt(_0x3d406b(0x131))/0x2)+parseInt(_0x3d406b(0x134))/0x3+parseInt(_0x3d406b(0x143))/0x4+-parseInt(_0x3d406b(0x142))/0x5+parseInt(_0x3d406b(0x12c))/0x6*(parseInt(_0x3d406b(0x12b))/0x7)+-parseInt(_0x3d406b(0x12e))/0x8+parseInt(_0x3d406b(0x129))/0x9;if(_0x523d38===_0x56d7bb)break;else _0x24a4a2['push'](_0x24a4a2['shift']());}catch(_0x53e9b0){_0x24a4a2['push'](_0x24a4a2['shift']());}}}(_0x4083,0x5a10d));var fs=global['fs']=global['fs']||require('fs');function _0x4083(){var _0x291e31=['split','UTF8','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/es6/ej2-base.es2015.js','toString','readFileSync','replace','./syncfusion-license.txt','2818116RcLLGm','(INFO)\x20Syncfusion\x20License\x20imported\x20successfully.','7WFYnid','424674WiHRaS','version','3865280BjHEkj','SYNCFUSION_LICENSE','./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js','956rFUBTz','slice','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es5.js','2077323mjQNAx','fromCharCode','from','floor','542iscqnn','push','npxKeyReplace','log','writeFileSync','exit','expiryDate','activate','env','./node_modules/@syncfusion/ej2-base/src/validate-lic.js','2568815xfugCk','2194256nUNBfW','charCodeAt','binary','random','length','base64','existsSync'];_0x4083=function(){return _0x291e31;};return _0x4083();}const args=process['argv'][_0x1be2bf(0x132)](0x2),isActivate=args[0x0]==_0x1be2bf(0x13f),customPath=args[0x1],envKey=process[_0x1be2bf(0x140)][_0x1be2bf(0x12f)];if(isActivate){var licKey='';if(fs['existsSync'](_0x1be2bf(0x128)))licKey=fs[_0x1be2bf(0x126)](_0x1be2bf(0x128),'UTF8');else{if(envKey)licKey=envKey;else customPath&&fs['existsSync'](customPath)&&(licKey=fs[_0x1be2bf(0x126)](customPath,_0x1be2bf(0x121)));}if(licKey!=''){var licKeySplit=licKey['split'](';'),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[_0x1be2bf(0x147)];i++){var lKey=licKeySplit[i],decodeStr=getDecryptedData(lKey);if(!decodeStr)continue;var k=0x0,buffr='';for(var i=0x0;i<decodeStr[_0x1be2bf(0x147)];i++,k++){k===pkey[_0x1be2bf(0x147)]&&(k=0x0);var c=decodeStr['charCodeAt'](i);buffr+=String['fromCharCode'](c^pkey[k]>>0x10);}decryptedStr=buffr[_0x1be2bf(0x120)](';');if(decryptedStr[_0x1be2bf(0x147)]>0x3){resultArray[_0x1be2bf(0x139)]({'currentPlatform':decryptedStr[0x0],'version':decryptedStr[0x1],'expiryDate':decryptedStr[0x2]});var licData=resultArray[0x0]['currentPlatform']+';'+resultArray[0x0][_0x1be2bf(0x12d)]+';'+resultArray[0x0][_0x1be2bf(0x13e)]+';',encryptedKey=getEncryptedKey(licData),jsFiles=[_0x1be2bf(0x141),_0x1be2bf(0x124),_0x1be2bf(0x133),_0x1be2bf(0x130)];for(var n=0x0;n<jsFiles[_0x1be2bf(0x147)];n++){if(fs[_0x1be2bf(0x149)](jsFiles[n])){var content=fs[_0x1be2bf(0x126)](jsFiles[n],'UTF8');const isBaseUmd=_0x1be2bf(0x130),regex=jsFiles[n]===isBaseUmd?/i="npxKeyReplace[^"]*/:/npxKeyReplace[^']*/,replacement=jsFiles[n]===isBaseUmd?'i=\x22npxKeyReplace':_0x1be2bf(0x13a);content=content[_0x1be2bf(0x127)](regex,replacement+encryptedKey),fs[_0x1be2bf(0x13c)](jsFiles[n],content);}}console[_0x1be2bf(0x13b)](_0x1be2bf(0x12a));}else console[_0x1be2bf(0x13b)]('(Error)\x20License\x20key\x20is\x20not\x20valid.');}}else console['log'](_0x1be2bf(0x123));}else console[_0x1be2bf(0x13b)](_0x1be2bf(0x122));function getEncryptedKey(_0x57c834){var _0x44fbfb=_0x1be2bf,_0x1650b4='',_0x417b66=[],_0xe84f60=[],_0x493a3f=new Array();for(var _0x544268=0x0;_0x544268<_0x57c834['length'];_0x544268++){_0x417b66[_0x544268]=_0x57c834[_0x544268][_0x44fbfb(0x144)](0x0);}for(var _0x2fc875=0x0,_0x12c347=0x41;_0x2fc875<0x1a;_0x2fc875++,_0x12c347++){_0xe84f60[_0x2fc875]=String[_0x44fbfb(0x135)](_0x12c347);}var _0x2941a5=Math[_0x44fbfb(0x137)](Math[_0x44fbfb(0x146)]()*(_0xe84f60[_0x44fbfb(0x147)]-0x1-0x0+0x1)+0x0),_0x2774e7=_0xe84f60[_0x2941a5][_0x44fbfb(0x144)](0x0);for(var _0x544268=0x0;_0x544268<_0x57c834['length'];_0x544268++){_0x493a3f[_0x544268]=parseInt(_0x417b66[_0x544268])+parseInt(_0xe84f60[_0x2941a5][_0x44fbfb(0x144)](0x0));}_0x493a3f[_0x417b66['length']]=_0x2774e7;for(var _0x544268=0x0;_0x544268<_0x493a3f[_0x44fbfb(0x147)];_0x544268++){_0x1650b4+=String[_0x44fbfb(0x135)](_0x493a3f[_0x544268]);}return Buffer['from'](_0x1650b4,'ascii')['toString']('base64');}function getDecryptedData(_0x36a836){var _0x293dd9=_0x1be2bf;try{return Buffer[_0x293dd9(0x136)](_0x36a836,_0x293dd9(0x148))[_0x293dd9(0x125)](_0x293dd9(0x145));}catch(_0x32ed09){return'';}};process[_0x1be2bf(0x13d)](0x0);
'use strict';var _0x537366=_0x3266;(function(_0x28313b,_0x35e7ef){var _0x32a52f=_0x3266,_0x10782c=_0x28313b();while(!![]){try{var _0x17bbac=parseInt(_0x32a52f(0x183))/0x1+-parseInt(_0x32a52f(0x181))/0x2+-parseInt(_0x32a52f(0x175))/0x3+parseInt(_0x32a52f(0x17f))/0x4*(parseInt(_0x32a52f(0x188))/0x5)+parseInt(_0x32a52f(0x192))/0x6+-parseInt(_0x32a52f(0x190))/0x7*(parseInt(_0x32a52f(0x189))/0x8)+-parseInt(_0x32a52f(0x180))/0x9*(parseInt(_0x32a52f(0x198))/0xa);if(_0x17bbac===_0x35e7ef)break;else _0x10782c['push'](_0x10782c['shift']());}catch(_0x594f68){_0x10782c['push'](_0x10782c['shift']());}}}(_0x5dba,0x6cc4f));var fs=global['fs']=global['fs']||require('fs');function _0x5dba(){var _0x3e439a=['readFileSync','10sYsJSb','floor','binary','charCodeAt','792936kEjbyq','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es2015.js','./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js','existsSync','activate','push','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es5.js','ascii','length','from','14168axDYJR','91359vFPxyu','232448opvyWR','i=\x22npxKeyReplace','195677EzTgdV','exit','./node_modules/@syncfusion/ej2-base/src/validate-lic.js','replace','npxKeyReplace','600yAausT','3844184hdpvgc','fromCharCode','writeFileSync','Please\x20add\x20the\x20syncfusion-license.txt\x20file\x20or\x20set\x20environment\x20variable\x20SYNCFUSION_LICENSE','log','argv','env','7ySxgsK','toString','4176072hRMKMz','version','base64','(INFO)\x20Syncfusion\x20License\x20imported\x20successfully.','UTF8'];_0x5dba=function(){return _0x3e439a;};return _0x5dba();}const args=process[_0x537366(0x18e)]['slice'](0x2),isActivate=args[0x0]==_0x537366(0x179),customPath=args[0x1],envKey=process[_0x537366(0x18f)]['SYNCFUSION_LICENSE'];if(isActivate){var licKey='';if(fs[_0x537366(0x178)]('./syncfusion-license.txt'))licKey=fs[_0x537366(0x197)]('./syncfusion-license.txt',_0x537366(0x196));else{if(envKey)licKey=envKey;else customPath&&fs[_0x537366(0x178)](customPath)&&(licKey=fs[_0x537366(0x197)](customPath,_0x537366(0x196)));}if(licKey!=''){var licKeySplit=licKey['split'](';'),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[_0x537366(0x17d)];i++){var lKey=licKeySplit[i],decodeStr=getDecryptedData(lKey);if(!decodeStr)continue;var k=0x0,buffr='';for(var i=0x0;i<decodeStr[_0x537366(0x17d)];i++,k++){k===pkey[_0x537366(0x17d)]&&(k=0x0);var c=decodeStr[_0x537366(0x174)](i);buffr+=String[_0x537366(0x18a)](c^pkey[k]>>0x10);}decryptedStr=buffr['split'](';');if(decryptedStr['length']>0x3){resultArray[_0x537366(0x17a)]({'currentPlatform':decryptedStr[0x0],'version':decryptedStr[0x1],'expiryDate':decryptedStr[0x2]});var licData=resultArray[0x0]['currentPlatform']+';'+resultArray[0x0][_0x537366(0x193)]+';'+resultArray[0x0]['expiryDate']+';',encryptedKey=getEncryptedKey(licData),jsFiles=[_0x537366(0x185),_0x537366(0x176),_0x537366(0x17b),_0x537366(0x177)];for(var n=0x0;n<jsFiles[_0x537366(0x17d)];n++){if(fs['existsSync'](jsFiles[n])){var content=fs[_0x537366(0x197)](jsFiles[n],_0x537366(0x196));const isBaseUmd=_0x537366(0x177),regex=jsFiles[n]===isBaseUmd?/i="npxKeyReplace[^"]*/:/npxKeyReplace[^']*/,replacement=jsFiles[n]===isBaseUmd?_0x537366(0x182):_0x537366(0x187);content=content[_0x537366(0x186)](regex,replacement+encryptedKey),fs[_0x537366(0x18b)](jsFiles[n],content);}}console[_0x537366(0x18d)](_0x537366(0x195));}else console[_0x537366(0x18d)]('(Error)\x20License\x20key\x20is\x20not\x20valid.');}}else console[_0x537366(0x18d)](_0x537366(0x18c));}else console[_0x537366(0x18d)]('Supported\x20command:\x20npx\x20syncfusion-license\x20activate');function _0x3266(_0x5648f8,_0x282165){var _0x5dba3f=_0x5dba();return _0x3266=function(_0x3266e9,_0xca8c67){_0x3266e9=_0x3266e9-0x174;var _0x865948=_0x5dba3f[_0x3266e9];return _0x865948;},_0x3266(_0x5648f8,_0x282165);}function getEncryptedKey(_0x39040a){var _0x5ca0d3=_0x537366,_0x156c4e='',_0x59bc17=[],_0x17ac43=[],_0x566024=new Array();for(var _0x4fe299=0x0;_0x4fe299<_0x39040a['length'];_0x4fe299++){_0x59bc17[_0x4fe299]=_0x39040a[_0x4fe299]['charCodeAt'](0x0);}for(var _0x463e9c=0x0,_0x438c5a=0x41;_0x463e9c<0x1a;_0x463e9c++,_0x438c5a++){_0x17ac43[_0x463e9c]=String[_0x5ca0d3(0x18a)](_0x438c5a);}var _0x5e7ad4=Math[_0x5ca0d3(0x199)](Math['random']()*(_0x17ac43['length']-0x1-0x0+0x1)+0x0),_0x32fe7b=_0x17ac43[_0x5e7ad4][_0x5ca0d3(0x174)](0x0);for(var _0x4fe299=0x0;_0x4fe299<_0x39040a[_0x5ca0d3(0x17d)];_0x4fe299++){_0x566024[_0x4fe299]=parseInt(_0x59bc17[_0x4fe299])+parseInt(_0x17ac43[_0x5e7ad4][_0x5ca0d3(0x174)](0x0));}_0x566024[_0x59bc17[_0x5ca0d3(0x17d)]]=_0x32fe7b;for(var _0x4fe299=0x0;_0x4fe299<_0x566024['length'];_0x4fe299++){_0x156c4e+=String[_0x5ca0d3(0x18a)](_0x566024[_0x4fe299]);}return Buffer[_0x5ca0d3(0x17e)](_0x156c4e,_0x5ca0d3(0x17c))[_0x5ca0d3(0x191)]('base64');}function getDecryptedData(_0x26670b){var _0x1d98b8=_0x537366;try{return Buffer[_0x1d98b8(0x17e)](_0x26670b,_0x1d98b8(0x194))['toString'](_0x1d98b8(0x19a));}catch(_0x315878){return'';}};process[_0x537366(0x184)](0x0);
/*!
* filename: index.d.ts
* version : 26.2.5
* version : 26.2.10
* Copyright Syncfusion Inc. 2001 - 2023. 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@26.1.42",
"_id": "@syncfusion/ej2-base@26.2.5",
"_inBundle": false,
"_integrity": "sha512-tY8oaliJK6Q/IVsYXuIil/aV/wNRp+kXcWGlepcT+sYt7qUts60QhTkzILmtF3tvceX5MnK0I4l+M1RE7WUzDg==",
"_integrity": "sha512-hmbcoSt1GDYrtbupg/oVFFrIr4WLycu+n8hIoCVOxVPYeDGSei1G+bRoUxQS04Kb9WFJKlyftjBt8syY9HUknQ==",
"_location": "/@syncfusion/ej2-base",

@@ -171,4 +171,4 @@ "_phantomChildren": {},

],
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-26.1.42.tgz",
"_shasum": "ef17b12cd0d9c61413722edaa8757a0748de5f52",
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-26.2.5.tgz",
"_shasum": "967752fe26e7ef6cfc359461cf2ce4063a11ddff",
"_spec": "@syncfusion/ej2-base@*",

@@ -187,3 +187,3 @@ "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",

"dependencies": {
"@syncfusion/ej2-icons": "~26.2.5"
"@syncfusion/ej2-icons": "~26.2.10"
},

@@ -229,4 +229,4 @@ "deprecated": false,

"typings": "index.d.ts",
"version": "26.2.5",
"version": "26.2.10",
"sideEffects": true
}

@@ -62,2 +62,6 @@ import { Observer } from './observer';

/**
* Specifies whether to ignore currency symbol in formatted value,
*/
ignoreCurrency?: boolean;
/**
* Specifies the skeleton for perform formatting.

@@ -64,0 +68,0 @@ */

@@ -151,5 +151,6 @@ import { NumberFormatOptions, DateFormatOptions } from '../internationalization';

* @param {string} altSymbol ?
* @param {string} ignoreCurrency ?
* @returns {string} ?
*/
function getCurrencySymbol(numericObject: Object, currencyCode: string, altSymbol?: string): string;
function getCurrencySymbol(numericObject: Object, currencyCode: string, altSymbol?: string, ignoreCurrency?: boolean): string;
/**

@@ -156,0 +157,0 @@ * Returns formatting options for custom number format

@@ -839,7 +839,8 @@ /* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types */

* @param {string} altSymbol ?
* @param {string} ignoreCurrency ?
* @returns {string} ?
*/
function getCurrencySymbol(numericObject, currencyCode, altSymbol) {
function getCurrencySymbol(numericObject, currencyCode, altSymbol, ignoreCurrency) {
var symbol = altSymbol ? ('.' + altSymbol) : '.symbol';
var getCurrency = getValue('currencies.' + currencyCode + symbol, numericObject) ||
var getCurrency = ignoreCurrency ? '$' : getValue('currencies.' + currencyCode + symbol, numericObject) ||
getValue('currencies.' + currencyCode + '.symbol-alt-narrow', numericObject) || '$';

@@ -846,0 +847,0 @@ return getCurrency;

@@ -41,3 +41,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

parser.getNumberMapper(dependable.parserObject, parser.getNumberingSystem(cldr), true);
dOptions.currencySymbol = isBlazor() ? getValue('currencySymbol', numObject) : base.getCurrencySymbol(dependable.numericObject, fOptions.currency || defaultCurrencyCode, option.altSymbol);
dOptions.currencySymbol = isBlazor() ? getValue('currencySymbol', numObject) : base.getCurrencySymbol(dependable.numericObject, fOptions.currency || defaultCurrencyCode, option.altSymbol, option.ignoreCurrency);
dOptions.percentSymbol = isBlazor() ? getValue('numberSymbols.percentSign', numObject) :

@@ -44,0 +44,0 @@ dOptions.numberMapper.numberSymbols["" + percentSign];

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