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

@jspreadsheet/client

Package Overview
Dependencies
Maintainers
0
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.11.0 to 11.11.1

24

dist/index.js
/**
* JSS cloud
* JSS client
* https://jspreadsheet.com/products/client

@@ -39,12 +39,12 @@ * @License: this plugin requires a license

$jscomp.asyncExecutePromiseGenerator=function(a){function b(e){return a.next(e)}function c(e){return a.throw(e)}return new Promise(function(e,f){function u(l){l.done?e(l.value):Promise.resolve(l.value).then(b,c).then(u,f)}u(a.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(a){return $jscomp.asyncExecutePromiseGenerator(a())};$jscomp.asyncExecutePromiseGeneratorProgram=function(a){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a)))};
(function(a,b){const c=a0_0x44a6;for(a=a();;)try{if(-parseInt(c(290))+parseInt(c(250))/2+-parseInt(c(283))/3*(-parseInt(c(253))/4)+parseInt(c(302))/5*(-parseInt(c(246))/6)+-parseInt(c(274))/7+-parseInt(c(238))/8+parseInt(c(243))/9*(parseInt(c(286))/10)===b)break;else a.push(a.shift())}catch(e){a.push(a.shift())}})(a0_0x6125,493903);function a0_0x44a6(a,b){const c=a0_0x6125();return a0_0x44a6=function(e,f){return c[e-219]},a0_0x44a6(a,b)}
(function(a,b){const c=a0_0x44a6;typeof exports===c(255)&&typeof module!==c(242)?module[c(254)]=b():"function"===typeof define&&define[c(249)]?define(b):a[c(247)]=b()})(this,function(){const a=a0_0x44a6;let b=null;const c={url:a(236),path:a(276)},e=function(d){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){const m=new JSZip;return m[a(224)](a(223),JSON[a(239)](d)),m[a(267)]({type:a(277)})})},f=function(d){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){const m=yield(yield JSZip.loadAsync(d))[a(224)](a(223))[a(294)](a(301));
return JSON[a(233)](m)})},u=function(d){const m={},w=[];let q=!1;d[a(245)]=!1;const v=function(g){alert(g);window[a(244)](window[a(234)].href,a(262))},t=function(){const g=w[a(220)]();if(g){var {requestInfo:n,callback:h}=g;e(n)[a(227)](r=>{d[a(291)].emit(a(266),r,function(p){t();p[a(232)]?("function"===typeof h&&h(p),p.data&&n[a(248)][a(268)](p.data)):k(p)})})}else q=!1,d.progress(!1)},k=function(g,n){!0===n&&d[a(221)][a(251)][a(293)](a(270));typeof g===a(301)&&(g={message:g});"function"===typeof c[a(272)]?
c[a(272)](g):console[a(228)](g)};m[a(292)]=function(g,n,h,r){if(typeof io==a(242))return!1;if(!d.ignoreCloud)if(d[a(291)])"setBorder"!==n&&d.progress(!0),g={requestInfo:{worksheet:g[a(258)][a(237)],method:n,args:h?Object[a(225)](h):[]},callback:r},w[a(284)](g),q||(q=!0,t());else console[a(228)](a(269))};m.onevent=function(g,n,h,r){if(g===a(252)&&typeof c.onbeforeloadimage===a(264))return c[a(252)](n,h,r)};return function(){if(typeof io==a(242))k(a(288),!0);else{let g=Object.assign({},{type:a(291),
guid:d[a(273)].guid},c[a(259)]);d[a(291)]=io(c[a(289)],{path:"/"+(c[a(279)]||"")+a(256),query:g});d[a(291)].on(a(261),n=>{k(n,!0)});d[a(291)].on(a(296),function(){d[a(221)].classList[a(219)]("disconnected")&&v(a(300))});d[a(291)].on(a(275),function(){d[a(221)][a(251)].add("disconnected")});d.socket.on(a(282),function(n){v(n[a(297)][0])});d[a(291)].on(a(266),function(n){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){var h=yield f(n);b[a(285)][a(229)]=!0;d.ignoreCloud=!0;d.ignorePersistence=
!0;let r=h[a(287)];var p=h[a(248)];p=d[a(240)](p);(p=(p=d[a(271)][p])?p:!1)?r===a(299)?p.setBorder(...h[a(297)],h[a(263)]):r===a(278)?p.resetBorders(h.user,!0):(h=h[a(297)]||[],typeof p[r]==a(264)&&p[r](...h)):typeof d[r]==a(264)&&d[r](...h[a(297)]);d[a(245)]=!1;d[a(230)]=!1;b.history[a(229)]=!1})})}}(),m},l=function(d){if("undefined"==typeof io)console[a(228)](a(288));else if(d){d[a(289)]&&(c[a(289)]=d[a(289)]);typeof d[a(279)]!==a(242)&&(c.path=d[a(279)]);d.auth&&(c[a(259)]=d[a(259)]);d.onerror&&
(c.onerror=d[a(272)]);d[a(280)]&&(c[a(280)]=d.onbeforecreate);d[a(298)]&&(c[a(298)]=d[a(298)]);d[a(252)]&&(c.onbeforeloadimage=d.onbeforeloadimage);var m=io(d.url,{path:"/"+(d[a(279)]||"")+a(256),query:Object.assign({},{type:a(291)},c[a(259)])}),w=function(q,v){let t;typeof q===a(301)?t=q:t=q[a(226)];m[a(235)](a(257),t,function(k){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){k=yield f(k);1===k[a(228)]?console[a(228)](k):(typeof k[a(273)]!==a(242)&&(k=k[a(273)]),"string"===typeof k&&
(k=JSON[a(233)](k)),v(k))})})};return l.load=function(q,v){w(q,function(t){const k=a0_0x44a6;typeof c[k(280)]==k(264)&&c[k(280)](t);v(t)})},{load:w,create:function(q,v){return new Promise(function(t,k){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){const g=a0_0x44a6;if(m){const n=yield e({guid:q,config:JSON.stringify(v)});m.emit(g(260),n,function(h){!1!==h?t(h):k(h)})}else console[g(228)]("Not connect to any server")})})},destroy:function(q,v){m?m[a(235)](a(265),q,v):console.error(a(241))},
disconnect:function(){m.disconnect();m=null}}}};return l[a(303)]=function(d,m){d[a(273)][a(226)]&&d.setPlugins({client:u})},l[a(295)]=function(d){d[a(291)]&&d[a(291)][a(275)]()},l[a(231)]=function(d){return d?c[a(289)]:c[a(289)]+c.path},l[a(281)]=function(){return c[a(279)]},l.load=function(){console[a(228)](a(222))},l[a(296)]=l,l.license=function(){!b&&(b=this)},l});
function a0_0x6125(){const a="worksheetId;3792424eZeDjb;stringify;getWorksheet;Not connect to any server;undefined;9YuNTPM;open;ignoreCloud;36hCHRXz;client;worksheet;amd;979566ZjuMxv;classList;onbeforeloadimage;291792fhwjRt;exports;object;socket.io/;load;options;auth;create;connect_error;_self;user;function;destroy;JSS;generateAsync;updateCells;JSS: socket not loaded;disconnected;worksheets;onerror;config;5588268onuoqa;disconnect;api/;arraybuffer;resetBorders;path;onbeforecreate;getServerPath;forceRefresh;3nMgZOW;push;history;13143410wyreiB;method;JSS: socket.io not found;url;106172eqcaAH;socket;persistence;add;async;ondestroy;connect;args;onbeforeload;setBorder;There is a connection issue that seems to be fixed. Reconnecting to your table...;string;3850LtqKWF;oninit;contains;shift;element;Not connect to the server;main.json;file;values;guid;then;error;ignore;ignorePersistence;getServerUrl;status;parse;location;emit;https://jspreadsheet.com/".split(";");a0_0x6125=
function(){return a};return a0_0x6125()};
(function(a,b){const c=a0_0x20fc;for(a=a();;)try{if(parseInt(c(420))/1+-parseInt(c(437))/2+-parseInt(c(457))/3+-parseInt(c(423))/4+parseInt(c(440))/5*(parseInt(c(415))/6)+-parseInt(c(424))/7*(parseInt(c(466))/8)+-parseInt(c(470))/9*(-parseInt(c(439))/10)===b)break;else a.push(a.shift())}catch(e){a.push(a.shift())}})(a0_0xc0a8,741851);
function a0_0xc0a8(){const a="disconnected;load;1090812pfydnp;JSS;onbeforeload;file;push;worksheet;getWorksheet;progress;onevent;18520JqEFvm;add;destroy;status;558jPGJNm;Not connect to any server;undefined;guid;license;connect_error;classList;async;options;shift;ignorePersistence;args;main.json;There is a connection issue that seems to be fixed. Reconnecting to your table...;Not connect to the server;api/;auth;forceRefresh;https://jspreadsheet.com/;arraybuffer;socket.io/;stringify;180CfiRGY;user;string;contains;ignore;1100757PiEnja;onbeforecreate;onbeforeloadimage;1941844TjXrRy;2163VkfmQz;JSS: socket.io not found;open;getServerPath;onerror;resetBorders;setBorder;socket;worksheetId;function;data;object;connect;1961416sVHuHA;history;344910hnhont;7960htuSNS;ignoreCloud;config;JSS: socket not loaded;emit;location;parse;getServerUrl;error;values;url;path;disconnect;ondestroy;element".split(";");a0_0xc0a8=
function(){return a};return a0_0xc0a8()}function a0_0x20fc(a,b){const c=a0_0xc0a8();return a0_0x20fc=function(e,f){return c[e-394]},a0_0x20fc(a,b)}
(function(a,b){typeof exports===a0_0x20fc(435)&&"undefined"!==typeof module?module.exports=b():"function"===typeof define&&define.amd?define(b):a.client=b()})(this,function(){const a=a0_0x20fc;let b=null;const c={url:a(411),path:a(408)},e=function(d){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){const m=new JSZip;return m.file(a(405),JSON[a(414)](d)),m.generateAsync({type:a(412)})})},f=function(d){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){const m=yield(yield JSZip.loadAsync(d))[a(460)](a(405))[a(400)](a(417));
return JSON[a(446)](m)})},u=function(d){const m={},w=[];let q=!1;d[a(441)]=!1;const v=function(g){alert(g);window[a(426)](window[a(445)].href,"_self")},t=function(){const g=w[a(402)]();if(g){var {requestInfo:n,callback:h}=g;e(n).then(r=>{d[a(431)][a(444)](a(458),r,function(p){t();p[a(469)]?(typeof h===a(433)&&h(p),p.data&&n[a(462)].updateCells(p[a(434)])):k(p)})})}else q=!1,d.progress(!1)},k=function(g,n){!0===n&&d[a(454)][a(399)][a(467)](a(455));typeof g===a(417)&&(g={message:g});typeof c.onerror===
a(433)?c.onerror(g):console[a(448)](g)};m.persistence=function(g,n,h,r){if(typeof io==a(395))return!1;d[a(441)]||(d[a(431)]?("setBorder"!==n&&d[a(464)](!0),g={requestInfo:{worksheet:g[a(401)][a(432)],method:n,args:h?Object[a(449)](h):[]},callback:r},w[a(461)](g),q||(q=!0,t())):console.error(a(443)))};m[a(465)]=function(g,n,h,r){if(g===a(422)&&typeof c[a(422)]===a(433))return c[a(422)](n,h,r)};return function(){if(typeof io==a(395))k("JSS: socket.io not found",!0);else{let g=Object.assign({},{type:a(431),
guid:d[a(442)][a(396)]},c[a(409)]);d[a(431)]=io(c[a(450)],{path:"/"+(c[a(451)]||"")+a(413),query:g});d[a(431)].on(a(398),n=>{k(n,!0)});d[a(431)].on(a(436),function(){d[a(454)][a(399)][a(418)](a(455))&&v(a(406))});d[a(431)].on(a(452),function(){d[a(454)][a(399)][a(467)](a(455))});d.socket.on(a(410),function(n){v(n[a(404)][0])});d[a(431)].on(a(458),function(n){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){var h=yield f(n);b[a(438)][a(419)]=!0;d.ignoreCloud=!0;d[a(403)]=!0;let r=h.method;
var p=h[a(462)];p=d[a(463)](p);if(p=(p=d.worksheets[p])?p:!1)if(r===a(430))p.setBorder(...h[a(404)],h[a(416)]);else if(r===a(429))p[a(429)](h[a(416)],!0);else h=h[a(404)]||[],typeof p[r]==a(433)&&p[r](...h);else typeof d[r]==a(433)&&d[r](...h[a(404)]);d[a(441)]=!1;d.ignorePersistence=!1;b[a(438)][a(419)]=!1})})}}(),m},l=function(d){if(typeof io==a(395))console[a(448)](a(425));else if(d){d[a(450)]&&(c[a(450)]=d[a(450)]);typeof d.path!==a(395)&&(c.path=d[a(451)]);d[a(409)]&&(c.auth=d[a(409)]);d.onerror&&
(c.onerror=d[a(428)]);d[a(421)]&&(c[a(421)]=d[a(421)]);d[a(459)]&&(c[a(459)]=d.onbeforeload);d[a(422)]&&(c[a(422)]=d[a(422)]);var m=io(d.url,{path:"/"+(d.path||"")+"socket.io/",query:Object.assign({},{type:a(431)},c[a(409)])}),w=function(q,v){let t;typeof q===a(417)?t=q:t=q.guid;m[a(444)](a(456),t,function(k){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){k=yield f(k);1===k[a(448)]?console[a(448)](k):(typeof k.config!==a(395)&&(k=k.config),"string"===typeof k&&(k=JSON.parse(k)),v(k))})})};
return l[a(456)]=function(q,v){w(q,function(t){const k=a0_0x20fc;typeof c[k(421)]==k(433)&&c[k(421)](t);v(t)})},{load:w,create:function(q,v){return new Promise(function(t,k){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){const g=a0_0x20fc;if(m){const n=yield e({guid:q,config:JSON[g(414)](v)});m[g(444)]("create",n,function(h){!1!==h?t(h):k(h)})}else console[g(448)](g(394))})})},destroy:function(q,v){m?m[a(444)](a(468),q,v):console[a(448)](a(394))},disconnect:function(){m.disconnect();
m=null}}}};return l.oninit=function(d,m){d[a(442)][a(396)]&&d.setPlugins({client:u})},l[a(453)]=function(d){d[a(431)]&&d[a(431)][a(452)]()},l[a(447)]=function(d){return d?c[a(450)]:c[a(450)]+c.path},l[a(427)]=function(){return c[a(451)]},l[a(456)]=function(){console[a(448)](a(407))},l.connect=l,l.onbeforeloadimage=function(){return c[a(422)](...arguments)},l[a(397)]=function(){!b&&(b=this)},l});

@@ -34,3 +34,3 @@ {

"types": "dist/index.d.ts",
"version": "11.11.0",
"version": "11.11.1",
"bugs": "https://github.com/jspreadsheet/pro/issues",

@@ -37,0 +37,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