Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jspreadsheet/client

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jspreadsheet/client - npm Package Compare versions

Comparing version 11.0.1 to 11.0.2

26

dist/index.js

@@ -11,12 +11,16 @@ /**

(function(a,n){const c=a0_0xb01c;for(a=a();;)try{if(parseInt(c(386))/1*(-parseInt(c(384))/2)+-parseInt(c(396))/3*(parseInt(c(408))/4)+parseInt(c(391))/5+-parseInt(c(414))/6*(-parseInt(c(375))/7)+parseInt(c(433))/8+parseInt(c(374))/9*(-parseInt(c(392))/10)+parseInt(c(359))/11===n)break;else a.push(a.shift())}catch(r){a.push(a.shift())}})(a0_0x18af,625885);function a0_0xb01c(a,n){const c=a0_0x18af();return a0_0xb01c=function(r,l){return c[r-352]},a0_0xb01c(a,n)}
function a0_0x18af(){const a="log;1kzGdIL;undefined;JSS: socket not loaded;contains;error;772030PvFiQZ;1963030Ubatvy;options;worksheetId;history;85197uHQpHe;push;title;ignoreCloud;resetBorders;https://jspreadsheet.com/;socket;head;JSS;socket.io/;open;get;12JKQZJQ;setBorder;show;function;url;method;6jeoHqG;worksheet;connect;add;onbeforeloadimage;JSS: socket.io not found;onchangetitle;args;classList;ignorePersistence;amd;create;location;load;user;config;exports;string;onbeforecreate;6616752OSlXxA;_self;guid;socket.io/socket.io.js;forceRefresh;fromEntries;json;removeMerge;oninit;token;disconnect;stringify;script;emit;shift;values;344509LCrVya;hide;notification;status;api/;object;Not connect to any server;ignore;path;createElement;map;type;disconnected;text/javascript;onevent;9CuLues;6688199joQiEp;ondestroy;element;onbeforeload;data;loading;ajax;setPlugins;progress;2121782JhVehN".split(";");a0_0x18af=
function(){return a};return a0_0x18af()}
(function(a,n){const c=a0_0xb01c;typeof exports===c(364)&&typeof module!==c(387)?module[c(430)]=n():typeof define===c(411)&&define[c(424)]?define(n):a.client=n()})(this,function(){const a=a0_0xb01c;let n=null;const c={url:a(401),path:a(363)},r=function(b){const f={};b[a(399)]=!1;const p=function(d){alert(d);window[a(406)](window[a(426)].href,a(434))},m=function(d){d=b.getWorksheet(d);return(d=b.worksheets[d])?d:!1},e=[];let q=!1;const t=function(){const d=e[a(357)]();if(d){var {requestInfo:g,callback:h}=
d;b[a(402)][a(356)]("JSS",g,function(k){t();const {status:u}=k;delete k[a(362)];u?"function"===typeof h?h(k):k.data&&g.worksheet.updateCells(k[a(379)]):(k[a(390)]=!0,jSuites[a(361)](k))})}else q=!1};f.persistence=function(d,g,h,k){if(typeof io==a(387))return!1;if(!b[a(399)])if(b.socket)g===a(440)&&(h=[Object.keys(h[a(379)])]),"setBorder"!==g&&b[a(383)](!0),d={requestInfo:{worksheet:d[a(393)][a(394)],method:g,args:h?Object[a(358)](h):[]},callback:k},e[a(397)](d),q||(q=!0,t());else console[a(390)](a(388))};
f[a(373)]=function(d,g,h,k){if(d===a(418)&&"function"===typeof c.onbeforeloadimage)return c[a(418)](g,h,k)};return function(){typeof io==a(387)?(b[a(377)][a(422)][a(417)](a(371)),console[a(390)]("JSS: socket.io not found")):(b[a(402)]=io(c[a(412)],{path:"/"+c[a(367)]+a(405),query:{room:b[a(429)][a(435)],token:c[a(352)]}}),b[a(402)].on("connect",function(){b[a(377)].classList[a(389)](a(371))&&p("There is a connection issue that seems to be fixed. Reconnecting to your table...")}),b[a(402)].on(a(353),
function(){b[a(377)].classList.add(a(371))}),b[a(402)].on(a(398),function(d){typeof c.onchangetitle===a(411)&&c[a(420)](d[a(421)][0])}),b[a(402)].on(a(437),function(d){p(d.args[0])}),b[a(402)].on(a(404),function(d){n[a(395)][a(366)]=!0;b.ignoreCloud=!0;b.ignorePersistence=!0;let g=d[a(413)],h=m(d[a(415)]);if(h)if("setBorder"===g)h[a(409)](...d[a(421)],d[a(428)]);else if(g===a(400))h[a(400)](d[a(428)],!0);else{let k;g===a(440)?k=[Object[a(438)](d.args[0][a(369)](u=>[u,!0]))]:k=d[a(421)]||[];typeof h[g]==
a(411)&&h[g](...k)}else"function"==typeof b[g]&&b[g](...d.args);b.ignoreCloud=!1;b[a(423)]=!1;n[a(395)][a(366)]=!1}))}(),f},l=function(b){b&&(b[a(412)]&&(c[a(412)]=b[a(412)]),b[a(367)]&&(c.path=b[a(367)]),b[a(352)]&&(c[a(352)]=b[a(352)]),b[a(420)]&&(c[a(420)]=b.onchangetitle),b[a(432)]&&(c.onbeforecreate=b[a(432)]),b[a(378)]&&(c[a(378)]=b[a(378)]),b[a(418)]&&(c[a(418)]=b[a(418)]))};return l.license=function(){!n&&(n=this)},l[a(441)]=function(b,f){b[a(429)][a(435)]&&b[a(382)]({client:r})},l[a(376)]=
function(b){b[a(402)]&&b[a(402)].disconnect()},l.getServerUrl=function(b){return b?c[a(412)]:c[a(412)]+c.path},l.getServerPath=function(){return c[a(367)]},l[a(427)]=function(b,f){if(typeof io===a(387)){jSuites.loading[a(410)]();let p=c[a(412)]+c.path+a(436),m=document[a(403)],e=document[a(368)](a(355));e[a(370)]=a(372);e.src=p;e.onload=function(){l[a(407)](b,f);jSuites[a(380)][a(360)]()};m.appendChild(e)}else l[a(407)](b,f)},l[a(407)]=function(b,f){let p=c[a(412)]+c[a(367)]+b.guid;if(typeof c[a(378)]==
a(411)){var m=c[a(378)](p);m&&(p=m)}m=function(e){1===e.error?jSuites[a(361)](e):(typeof c[a(432)]==a(411)&&c[a(432)](e),typeof e[a(429)]!==a(387)&&(e=e[a(429)]),typeof e===a(431)&&(e=JSON.parse(e)),f(e))};c[a(402)]?c.socket[a(356)](a(427),b[a(435)],m):jSuites[a(381)]({url:p,method:"GET",dataType:a(439),beforeSend:function(e){c[a(352)]&&e.setRequestHeader("Authorization","Bearer "+c[a(352)])},success:m,error:function(){console[a(385)](arguments)}})},l[a(416)]=function(b){b&&l(b);let f=null;typeof io==
a(387)?console[a(390)](a(419)):(f=io(b[a(412)],{path:"/"+b[a(367)]+a(405),query:{token:b.token||""}}),c[a(402)]=f);return{create:function(p,m){return new Promise(function(e,q){q=a0_0xb01c;f?f.emit(q(425),{guid:p,config:JSON[q(354)](m)},function(t){e(t)}):console[q(390)](q(365))})},destroy:function(p,m){f?f.emit("destroy",p,m):console[a(390)](a(365))},disconnect:function(){f[a(353)]();f=null},getSocket:function(){return f}}},l});
if (! io && typeof(require) === 'function') {
var io = require('socket.io-client');
}
function a0_0x55d4(a,n){const c=a0_0x3d65();return a0_0x55d4=function(r,l){return c[r-244]},a0_0x55d4(a,n)}
function a0_0x3d65(){const a="head;text/javascript;JSS: socket not loaded;JSS;api/;log;JSS: socket.io not found;8FMNoXf;socket.io/socket.io.js;connect;amd;2445849Nnlknz;title;removeMerge;onchangetitle;onbeforeload;500606XMnlMR;setPlugins;36ezQubk;getServerPath;loading;object;onbeforeloadimage;function;keys;values;hide;push;5697595Hfktor;setBorder;ondestroy;worksheetId;ignorePersistence;ignoreCloud;6cxuhsN;193724JVWwXx;parse;history;stringify;Authorization;exports;socket;ignore;getWorksheet;https://jspreadsheet.com/;path;location;socket.io/;data;href;status;onload;get;string;1780964EbOiPj;disconnect;open;type;method;token;worksheets;progress;url;worksheet;forceRefresh;config;emit;There is a connection issue that seems to be fixed. Reconnecting to your table...;createElement;disconnected;args;json;31059910sBNZqB;undefined;appendChild;classList;user;load;element;add;401715vemBFv;resetBorders;onbeforecreate;onevent;notification;error;guid;oninit;destroy".split(";");a0_0x3d65=
function(){return a};return a0_0x3d65()}(function(a,n){const c=a0_0x55d4;for(a=a();;)try{if(parseInt(c(263))/1+parseInt(c(314))/2+parseInt(c(316))/3*(parseInt(c(244))/4)+parseInt(c(326))/5*(parseInt(c(332))/6)+parseInt(c(309))/7+-parseInt(c(305))/8*(parseInt(c(289))/9)+-parseInt(c(281))/10===n)break;else a.push(a.shift())}catch(r){a.push(a.shift())}})(a0_0x3d65,950739);
(function(a,n){const c=a0_0x55d4;typeof exports===c(319)&&typeof module!==c(282)?module[c(249)]=n():typeof define===c(321)&&define[c(308)]?define(n):a.client=n()})(this,function(){const a=a0_0x55d4;let n=null;const c={url:a(253),path:a(302)},r=function(b){const f={};b[a(331)]=!1;const p=function(d){alert(d);window[a(265)](window[a(255)][a(258)],"_self")},m=function(d){d=b[a(252)](d);return(d=b[a(269)][d])?d:!1},e=[];let q=!1;const t=function(){const d=e.shift();if(d){var {requestInfo:g,callback:h}=
d;b[a(250)][a(275)](a(301),g,function(k){t();const {status:u}=k;delete k[a(259)];u?"function"===typeof h?h(k):k[a(257)]&&g[a(272)].updateCells(k[a(257)]):(k[a(294)]=!0,jSuites[a(293)](k))})}else q=!1};f.persistence=function(d,g,h,k){if(typeof io==a(282))return!1;if(!b.ignoreCloud)if(b.socket)g===a(311)&&(h=[Object[a(322)](h[a(257)])]),"setBorder"!==g&&b[a(270)](!0),d={requestInfo:{worksheet:d.options[a(329)],method:g,args:h?Object[a(323)](h):[]},callback:k},e[a(325)](d),q||(q=!0,t());else console[a(294)](a(300))};
f[a(292)]=function(d,g,h,k){if(d===a(320)&&typeof c.onbeforeloadimage===a(321))return c[a(320)](g,h,k)};return function(){typeof io==a(282)?(b[a(287)][a(284)].add(a(278)),console.error(a(304))):(b[a(250)]=io(c.url,{path:"/"+c[a(254)]+a(256),query:{room:b[a(274)][a(295)],token:c[a(268)]}}),b[a(250)].on("connect",function(){b[a(287)][a(284)].contains(a(278))&&p(a(276))}),b.socket.on(a(264),function(){b[a(287)][a(284)][a(288)](a(278))}),b.socket.on(a(310),function(d){typeof c[a(312)]===a(321)&&c[a(312)](d[a(279)][0])}),
b[a(250)].on(a(273),function(d){p(d[a(279)][0])}),b[a(250)].on(a(301),function(d){n[a(246)][a(251)]=!0;b[a(331)]=!0;b[a(330)]=!0;let g=d[a(267)],h=m(d[a(272)]);if(h)if(g===a(327))h[a(327)](...d[a(279)],d[a(285)]);else if("resetBorders"===g)h[a(290)](d[a(285)],!0);else{let k;g===a(311)?k=[Object.fromEntries(d[a(279)][0].map(u=>[u,!0]))]:k=d.args||[];"function"==typeof h[g]&&h[g](...k)}else typeof b[g]==a(321)&&b[g](...d.args);b[a(331)]=!1;b[a(330)]=!1;n[a(246)][a(251)]=!1}))}(),f},l=function(b){b&&
(b[a(271)]&&(c[a(271)]=b[a(271)]),b[a(254)]&&(c[a(254)]=b[a(254)]),b[a(268)]&&(c[a(268)]=b.token),b[a(312)]&&(c[a(312)]=b.onchangetitle),b[a(291)]&&(c[a(291)]=b[a(291)]),b.onbeforeload&&(c[a(313)]=b[a(313)]),b[a(320)]&&(c[a(320)]=b[a(320)]))};return l.license=function(){!n&&(n=this)},l[a(296)]=function(b,f){b[a(274)][a(295)]&&b[a(315)]({client:r})},l[a(328)]=function(b){b[a(250)]&&b[a(250)].disconnect()},l.getServerUrl=function(b){return b?c[a(271)]:c[a(271)]+c[a(254)]},l[a(317)]=function(){return c.path},
l[a(286)]=function(b,f){if(typeof io===a(282)){jSuites[a(318)].show();let p=c[a(271)]+c.path+a(306),m=document[a(298)],e=document[a(277)]("script");e[a(266)]=a(299);e.src=p;e[a(260)]=function(){l.get(b,f);jSuites[a(318)][a(324)]()};m[a(283)](e)}else l.get(b,f)},l[a(261)]=function(b,f){let p=c[a(271)]+c[a(254)]+b[a(295)];if(typeof c.onbeforeload==a(321)){var m=c.onbeforeload(p);m&&(p=m)}m=function(e){1===e.error?jSuites.notification(e):(typeof c[a(291)]==a(321)&&c[a(291)](e),typeof e[a(274)]!==a(282)&&
(e=e.config),typeof e===a(262)&&(e=JSON[a(245)](e)),f(e))};c[a(250)]?c[a(250)].emit(a(286),b[a(295)],m):jSuites.ajax({url:p,method:"GET",dataType:a(280),beforeSend:function(e){c.token&&e.setRequestHeader(a(248),"Bearer "+c.token)},success:m,error:function(){console[a(303)](arguments)}})},l[a(307)]=function(b){b&&l(b);let f=null;"undefined"==typeof io?console[a(294)](a(304)):(f=io(b[a(271)],{path:"/"+b[a(254)]+a(256),query:{token:b[a(268)]||""}}),c.socket=f);return{create:function(p,m){return new Promise(function(e,
q){q=a0_0x55d4;f?f[q(275)]("create",{guid:p,config:JSON[q(247)](m)},function(t){e(t)}):console[q(294)]("Not connect to any server")})},destroy:function(p,m){f?f[a(275)](a(297),p,m):console[a(294)]("Not connect to any server")},disconnect:function(){f[a(264)]();f=null},getSocket:function(){return f}}},l});

@@ -32,3 +32,3 @@ {

"main": "dist/index.js",
"version": "11.0.1",
"version": "11.0.2",
"bugs": "https://github.com/jspreadsheet/pro/issues",

@@ -35,0 +35,0 @@ "homepage": "https://github.com/jspreadsheet/pro",

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