From 3203b0d1333f823ea2c42b380eb22d2e8ccdcc8b Mon Sep 17 00:00:00 2001 From: Harrison Favour Date: Mon, 26 Nov 2018 14:33:07 +0000 Subject: [PATCH] dist file for the cell unlocking changes --- Makefile | 6 +- bits/66_wscommon.js | 8 +- dist/shim.min.js | 3 +- dist/xlsx.core.min.js | 18 +- dist/xlsx.core.min.js.map | 1 + dist/xlsx.core.min.map | 1 - dist/xlsx.extendscript.js | 1174 +- dist/xlsx.full.min.js | 24 +- dist/xlsx.full.min.js.map | 1 + dist/xlsx.full.min.map | 1 - dist/xlsx.js | 1174 +- dist/xlsx.min.js | 15 +- dist/xlsx.min.js.map | 1 + dist/xlsx.min.map | 1 - xlsx.flow.js | 8 +- xlsx.js | 51836 +++++++++++++++--------------------- 16 files changed, 22549 insertions(+), 31723 deletions(-) create mode 100644 dist/xlsx.core.min.js.map delete mode 100644 dist/xlsx.core.min.map create mode 100644 dist/xlsx.full.min.js.map delete mode 100644 dist/xlsx.full.min.map create mode 100644 dist/xlsx.min.js.map delete mode 100644 dist/xlsx.min.map diff --git a/Makefile b/Makefile index 797e3cf..4542254 100644 --- a/Makefile +++ b/Makefile @@ -57,11 +57,11 @@ dist: dist-deps $(TARGET) bower.json ## Prepare JS files for distribution <$(TARGET) sed "s/require('stream')/{}/g;s/require('....*')/undefined/g" > dist/$(TARGET) cp LICENSE dist/ uglifyjs shim.js $(UGLIFYOPTS) -o dist/shim.min.js --preamble "$$(head -n 1 bits/00_header.js)" - uglifyjs $(DISTHDR) dist/$(TARGET) $(UGLIFYOPTS) -o dist/$(LIB).min.js --source-map dist/$(LIB).min.map --preamble "$$(head -n 1 bits/00_header.js)" + uglifyjs $(DISTHDR) dist/$(TARGET) $(UGLIFYOPTS) -o dist/$(LIB).min.js --source-map --preamble "$$(head -n 1 bits/00_header.js)" misc/strip_sourcemap.sh dist/$(LIB).min.js - uglifyjs $(DISTHDR) $(REQS) dist/$(TARGET) $(UGLIFYOPTS) -o dist/$(LIB).core.min.js --source-map dist/$(LIB).core.min.map --preamble "$$(head -n 1 bits/00_header.js)" + uglifyjs $(DISTHDR) $(REQS) dist/$(TARGET) $(UGLIFYOPTS) -o dist/$(LIB).core.min.js --source-map --preamble "$$(head -n 1 bits/00_header.js)" misc/strip_sourcemap.sh dist/$(LIB).core.min.js - uglifyjs $(DISTHDR) $(REQS) $(ADDONS) dist/$(TARGET) $(AUXTARGETS) $(UGLIFYOPTS) -o dist/$(LIB).full.min.js --source-map dist/$(LIB).full.min.map --preamble "$$(head -n 1 bits/00_header.js)" + uglifyjs $(DISTHDR) $(REQS) $(ADDONS) dist/$(TARGET) $(AUXTARGETS) $(UGLIFYOPTS) -o dist/$(LIB).full.min.js --source-map --preamble "$$(head -n 1 bits/00_header.js)" misc/strip_sourcemap.sh dist/$(LIB).full.min.js cat <(head -n 1 bits/00_header.js) shim.js $(DISTHDR) $(REQS) dist/$(TARGET) > dist/$(LIB).extendscript.js diff --git a/bits/66_wscommon.js b/bits/66_wscommon.js index 1c0ebca..5a41a73 100644 --- a/bits/66_wscommon.js +++ b/bits/66_wscommon.js @@ -91,7 +91,7 @@ function get_cell_style(styles /*:Array*/ , cell /*:Cell*/ , opts) { break; } } - if (cell.p && !styles.find(s => !!s.applyProtection)) { + if (cell.p && !styles.find(function(s){ return !!s.applyProtection; })) { styles[styles.length] = { numFmtId: z, fontId: 0, @@ -112,8 +112,8 @@ function get_cell_style(styles /*:Array*/ , cell /*:Cell*/ , opts) { } } if (result == undefined) { - let length = styles.length; - styles[length] = { + var len = styles.length; + styles[len] = { numFmtId: z, fontId: 0, fillId: 0, @@ -121,7 +121,7 @@ function get_cell_style(styles /*:Array*/ , cell /*:Cell*/ , opts) { xfId: 0, applyNumberFormat: 1 }; - result = length; + result = len; } return result; } diff --git a/dist/shim.min.js b/dist/shim.min.js index a421ac0..e81e0b8 100644 --- a/dist/shim.min.js +++ b/dist/shim.min.js @@ -1,2 +1 @@ -/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */ -if(!Object.keys)Object.keys=function(){var t=Object.prototype.hasOwnProperty,e=!{toString:null}.propertyIsEnumerable("toString"),r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],i=r.length;return function(n){if(typeof n!=="object"&&typeof n!=="function"||n===null)throw new TypeError("Object.keys called on non-object");var o=[];for(var a in n)if(t.call(n,a))o.push(a);if(e)for(var l=0;l=0;--e)if(!t.charAt(e).match(/^\s/))return t.slice(0,e+1);return""};if(!Array.prototype.forEach)Array.prototype.forEach=function(t){var e=this.length>>>0,r=arguments[1]||void 0;for(var i=0;i>>0,r=arguments[1]||void 0,i=new Array(e);for(var n=0;n>>0,r=arguments[1]|0||0;for(r<0&&(r+=e)<0&&(r=0);r>>0,r=e-1;for(;r>=0;--r)if(this[r]===t)return r;return-1};if(!Array.isArray)Array.isArray=function(t){return Object.prototype.toString.call(t)==="[object Array]"};if(!Date.prototype.toISOString)Date.prototype.toISOString=function(){function t(t,e){return("0000000"+t).slice(-(e||2))}return function e(){var e=this.getUTCFullYear(),r="";if(e>9999)r="+"+t(e,6);else if(e<0)r="-"+t(-e,6);else r=t(e,4);return[r,t(this.getUTCMonth()+1),t(this.getUTCDate())].join("-")+"T"+[t(this.getUTCHours()),t(this.getUTCMinutes()),t(this.getUTCSeconds())].join(":")+"."+t(this.getUTCMilliseconds(),3)+"Z"}}();if(typeof ArrayBuffer!=="undefined"&&!ArrayBuffer.prototype.slice)ArrayBuffer.prototype.slice=function(t,e){if(t==null)t=0;if(t<0){t+=this.byteLength;if(t<0)t=0}if(t>=this.byteLength)return new Uint8Array(0);if(e==null)e=this.byteLength;if(e<0){e+=this.byteLength;if(e<0)e=0}if(e>this.byteLength)e=this.byteLength;if(t>e)return new Uint8Array(0);var r=new ArrayBuffer(e-t);var i=new Uint8Array(r);var n=new Uint8Array(this,t,e-t);if(i.set)i.set(n);else while(t<=--e)i[e-t]=n[e];return r};if(typeof Uint8Array!=="undefined"&&!Uint8Array.prototype.slice)Uint8Array.prototype.slice=function(t,e){if(t==null)t=0;if(t<0){t+=this.length;if(t<0)t=0}if(t>=this.length)return new Uint8Array(0);if(e==null)e=this.length;if(e<0){e+=this.length;if(e<0)e=0}if(e>this.length)e=this.length;if(t>e)return new Uint8Array(0);var r=new Uint8Array(e-t);while(t<=--e)r[e-t]=this[e];return r};var IE_SaveFile=function(){try{if(typeof IE_SaveFile_Impl=="undefined")document.write(['