New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@libs-jd/xlsx-parse-table

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libs-jd/xlsx-parse-table - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

dist/index.js

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

"use strict";function r(r,n){(null==n||n>r.length)&&(n=r.length);for(var t=0,e=Array(n);t<n;t++)e[t]=r[t];return e}function n(r,n){return function(r){if(Array.isArray(r))return r}(r)||function(r,n){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,o,a,u,i=[],f=!0,l=!1;try{if(a=(t=t.call(r)).next,0===n){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=a.call(t)).done)&&(i.push(e.value),i.length!==n);f=!0);}catch(r){l=!0,o=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(l)throw o}}return i}}(r,n)||t(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(n,t){if(n){if("string"==typeof n)return r(n,t);var e={}.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(n,t):void 0}}function e(r){for(var n=r.replace(/[0-9]/g,""),t=r.replace(/[^0-9]/g,""),e=0,o=0;o<n.length;o++)e=26*e+n.charCodeAt(o)-"A".charCodeAt(0);return[parseInt(t)-1,e]}function o(r){var n=function(r){for(var n=[],t=0;t<r[0].length-1;t++){for(var e=!0,o=0;o<r.length;o++)if(""!==r[o][t]){e=!1;break}e&&n.push(t)}return n}(r);if(0===n.length)return[r];var e,o=[],a=0,u=function(r,n){var e="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!e){if(Array.isArray(r)||(e=t(r))||n&&r&&"number"==typeof r.length){e&&(r=e);var o=0,a=function(){};return{s:a,n:function(){return o>=r.length?{done:!0}:{done:!1,value:r[o++]}},e:function(r){throw r},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,i=!0,f=!1;return{s:function(){e=e.call(r)},n:function(){var r=e.next();return i=r.done,r},e:function(r){f=!0,u=r},f:function(){try{i||null==e.return||e.return()}finally{if(f)throw u}}}}(n);try{var i=function(){var n=e.value;if(n>a){var t=r.map((function(r){return r.slice(a,n)}));o.push(t)}a=n+1};for(u.s();!(e=u.n()).done;)i()}catch(r){u.e(r)}finally{u.f()}if(a<r[0].length){var f=r.map((function(r){return r.slice(a)}));o.push(f)}return o.filter((function(r){return r.some((function(r){return r.some((function(r){return""!==r}))}))}))}function a(r){var t=function(r){var t=0,o=0;Object.keys(r).forEach((function(r){if(r.match(/^[A-Z]+[0-9]+$/)){var a=n(e(r),2),u=a[0],i=a[1];t=Math.max(t,u),o=Math.max(o,i)}}));var a=Array(t+1).fill().map((function(){return Array(o+1).fill("")}));return Object.entries(r).forEach((function(r){var t=n(r,2),o=t[0],u=t[1];if(o.match(/^[A-Z]+[0-9]+$/)){var i=n(e(o),2),f=i[0],l=i[1];a[f][l]=u.v||""}})),a}(r),a=function(r){for(var n=[],t=null,e=0;e<r.length;e++){var o=r[e].some((function(r){return""!==r}));o&&!t?t={startRow:e,endRow:e}:o&&t?t.endRow=e:!o&&t&&(n.push(t),t=null)}return t&&n.push(t),n}(t),u=a.map((function(r){return function(r,n){for(var t=[],e=1/0,o=-1,a=n.startRow;a<=n.endRow;a++)for(var u=0;u<r[a].length;u++)""!==r[a][u]&&(e=Math.min(e,u),o=Math.max(o,u));for(var i=n.startRow;i<=n.endRow;i++){var f=r[i].slice(e,o+1);t.push(f)}return t}(t,r)}));return u.flatMap((function(r){return o(r)}))}var u=Object.freeze({__proto__:null,parse:function(r){return a(r)}});module.exports=u;
"use strict";function r(r,n){(null==n||n>r.length)&&(n=r.length);for(var t=0,e=Array(n);t<n;t++)e[t]=r[t];return e}function n(r,n){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=o(r))||n&&r&&"number"==typeof r.length){t&&(r=t);var e=0,a=function(){};return{s:a,n:function(){return e>=r.length?{done:!0}:{done:!1,value:r[e++]}},e:function(r){throw r},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,i=!0,f=!1;return{s:function(){t=t.call(r)},n:function(){var r=t.next();return i=r.done,r},e:function(r){f=!0,u=r},f:function(){try{i||null==t.return||t.return()}finally{if(f)throw u}}}}function t(r,n){return function(r){if(Array.isArray(r))return r}(r)||function(r,n){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,o,a,u,i=[],f=!0,l=!1;try{if(a=(t=t.call(r)).next,0===n){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=a.call(t)).done)&&(i.push(e.value),i.length!==n);f=!0);}catch(r){l=!0,o=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(l)throw o}}return i}}(r,n)||o(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(n){return function(n){if(Array.isArray(n))return r(n)}(n)||function(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(n)||o(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(n,t){if(n){if("string"==typeof n)return r(n,t);var e={}.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(n,t):void 0}}function a(r){for(var n=r.replace(/[0-9]/g,""),t=r.replace(/[^0-9]/g,""),e=0,o=0;o<n.length;o++)e=26*e+n.charCodeAt(o)-"A".charCodeAt(0);return[parseInt(t)-1,e]}function u(r){var n=function(r){var n=0,e=0;Object.keys(r).forEach((function(r){if(r.match(/^[A-Z]+[0-9]+$/)){var o=t(a(r),2),u=o[0],i=o[1];n=Math.max(n,u),e=Math.max(e,i)}}));var o=Array(n+1).fill().map((function(){return Array(e+1).fill("")}));return Object.entries(r).forEach((function(r){var n=t(r,2),e=n[0],u=n[1];if(e.match(/^[A-Z]+[0-9]+$/)){var i=t(a(e),2),f=i[0],l=i[1];o[f][l]=u.v||""}})),o}(r);return i([n])}function i(r){var t,o=[],a=n(r);try{var u=function(){var r=t.value,a=function(r){for(var n=[],t=null,e=0;e<r.length;e++){var o=r[e].some((function(r){return""!==r}));o&&!t?t={startRow:e,endRow:e}:o&&t?t.endRow=e:!o&&t&&(n.push(t),t=null)}return t&&n.push(t),n}(r),u=a.map((function(n){return function(r,n){for(var t=[],e=1/0,o=-1,a=n.startRow;a<=n.endRow;a++)for(var u=0;u<r[a].length;u++)""!==r[a][u]&&(e=Math.min(e,u),o=Math.max(o,u));for(var i=n.startRow;i<=n.endRow;i++){var f=r[i].slice(e,o+1);t.push(f)}return t}(r,n)})).flatMap((function(r){return function(r){var t=function(r){for(var n=[],t=0;t<r[0].length-1;t++){for(var e=!0,o=0;o<r.length;o++)if(""!==r[o][t]){e=!1;break}e&&n.push(t)}return n}(r);if(0===t.length)return[r];var e,o=[],a=0,u=n(t);try{var i=function(){var n=e.value;if(n>a){var t=r.map((function(r){return r.slice(a,n)})).filter((function(r){return r.some((function(r){return""!==r}))}));o.push(t)}a=n+1};for(u.s();!(e=u.n()).done;)i()}catch(r){u.e(r)}finally{u.f()}if(a<r[0].length){var f=r.map((function(r){return r.slice(a)})).filter((function(r){return r.some((function(r){return""!==r}))}));o.push(f)}return o.filter((function(r){return r.some((function(r){return r.some((function(r){return""!==r}))}))}))}(r)}));o.push.apply(o,e(u))};for(a.s();!(t=a.n()).done;)u()}catch(r){a.e(r)}finally{a.f()}return o.length>r.length?i(o):o}var f=Object.freeze({__proto__:null,parse:function(r){return u(r)}});module.exports=f;
{
"name": "@libs-jd/xlsx-parse-table",
"description": "Modern Excel/XLSX parser and streaming capabilities",
"version": "1.0.5",
"version": "1.0.6",
"homepage": "https://github.com/jeet-dhandha/xlsx-parse-table",

@@ -6,0 +6,0 @@ "author": "Jeet Dhandha",

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