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

sigfile

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sigfile - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

2

dist/bluefile.js

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.bluefile=e():t.bluefile=e()}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){t.exports=r(1)},function(t,e,r){"use strict";function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}r.r(e),r.d(e,"BlueHeader",(function(){return A})),r.d(e,"BlueFileReader",(function(){return w}));var i=function(){function t(e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e instanceof ArrayBuffer||"number"!=typeof e?(this.buffer=e,this.u8=new Uint8Array(e)):(this.buffer=new ArrayBuffer(e/8),this.u8=new Uint8Array(this.buffer)),new Proxy(this,{get:function(t,e){return t[e]?t[e]:t.getBit(e)},set:function(t,e,r){var n=parseInt(e);return!isNaN(n)&&(t.setBit(e,r),!0)}})}var e,r,i;return e=t,(r=[{key:"getBit",value:function(t){return this.u8[t>>3]>>7-(7&t)&1}},{key:"setBit",value:function(t,e){var r=7&t;e?this.u8[t>>3]|=128>>r:this.u8[t>>3]&=~(128>>r)}},{key:"setArray",value:function(t){for(var e=t.length,r=0;r<e;r++)this.setBit(r,t[r])}},{key:"subarray",value:function(t,e){var r=[];t=(t=t||0)<0?0:t,e=(e=e||this.length)>this.length?this.length:e;for(var n=t;n<e;n++)r.push(this.getBit(n));return r}},{key:"length",get:function(){return 8*this.u8.byteLength}}])&&n(e.prototype,r),i&&n(e,i),t}();function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(t,e)}(t,e)||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 o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(t,e){var r=new Uint8Array(t);return void 0===s._applySupportsTypedArray&&(s._applySupportsTypedArray=void 0!==e?e:function(){try{var t=new Uint8Array(new ArrayBuffer(4));if(t[0]=66,t[1]=76,t[2]=85,t[3]=69,"BLUE"!==String.fromCharCode.apply(null,t))return!1}catch(t){return!1}return!0}()),s._applySupportsTypedArray?String.fromCharCode.apply(null,r):r.reduce((function(t,e){return t+String.fromCharCode(e)}),"")}function u(t){return t>=0&&t<31?1<<t:u[t]||(u[t]=Math.pow(2,t))}function l(t){var e=document.createElement("a");return e.href=t,{source:t,protocol:e.protocol.replace(":",""),host:e.hostname,port:e.port,query:e.search,params:function(){for(var t={},r=e.search.replace(/^\?/,"").split("&"),n=r.length,i=0;i<n;i++)if(r[i]){var a=r[i].split("=");t[a[0]]=a[1]}return t}(),file:(e.pathname.match(/\/([^/?#]+)$/i)||[null,""])[1],hash:e.hash.replace("#",""),path:e.pathname.replace(/^([^/])/,"/$1"),relative:(e.href.match(/tps?:\/\/[^/]+(.+)/)||[null,""])[1],segments:e.pathname.replace(/^\//,"").split("/")}}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var c=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.header_class=e,this.options=r}var e,r,n;return e=t,(r=[{key:"_read",value:function(t,e,r){var n=this,i=new FileReader,a=void 0===t.webkitSlice?"slice":"webkitSlice",o=r?t[a](0,512):t;i.onloadend=function(t){return function(r){if(r.target.error)e(null);else{var a=i.result,o=new n.header_class(a,n.options);o.file=t,o.file_name=t.name,e(o)}}}(t),i.readAsArrayBuffer(o)}},{key:"readheader",value:function(t,e){this._read(t,e,!0)}},{key:"read",value:function(t,e){this._read(t,e,!1)}},{key:"read_http",value:function(t,e){var r=this,n=new XMLHttpRequest;return n.open("GET",t,!0),n.responseType="arraybuffer",n.overrideMimeType("text/plain; charset=x-user-defined"),n.onload=function(i){if(4!==n.readyState||200!==n.status&&0!==n.status)e(null);else{var a=null;if(n.response){a=n.response;var o=new r.header_class(a,r.options),s=l(t);o.file_name=s.file,e(o)}else n.responseText&&function(t,e,r){r=r||1024;var n=0,i=new ArrayBuffer(t.length),a=new Uint8Array(i);setTimeout((function o(){for(var s=n+r;n<s;n++)a[n]=255&t.charCodeAt(n);n>=t.length?e(i):setTimeout(o,0)}),0)}(n.responseText,(function(n){var i=new r.header_class(n,r.options),a=l(t);i.file_name=a.file,e(i)}))}},n.onerror=function(t){e(null)},n.send(null),n}}])&&f(e.prototype,r),n&&f(e,n),t}();function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.bluefile=e():t.bluefile=e()}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){t.exports=r(1)},function(t,e,r){"use strict";function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}r.r(e),r.d(e,"BlueHeader",(function(){return A})),r.d(e,"BlueFileReader",(function(){return w}));var i=function(){function t(e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e instanceof ArrayBuffer||"number"!=typeof e?(this.buffer=e,this.u8=new Uint8Array(e)):(this.buffer=new ArrayBuffer(e/8),this.u8=new Uint8Array(this.buffer)),new Proxy(this,{get:function(t,e){return t[e]?t[e]:t.getBit(e)},set:function(t,e,r){var n=parseInt(e);return!isNaN(n)&&(t.setBit(e,r),!0)}})}var e,r,i;return e=t,(r=[{key:"set",value:function(t){this.setArray(t)}},{key:"getBit",value:function(t){return this.u8[t>>3]>>7-(7&t)&1}},{key:"setBit",value:function(t,e){var r=7&t;e?this.u8[t>>3]|=128>>r:this.u8[t>>3]&=~(128>>r)}},{key:"setArray",value:function(t){for(var e=t.length,r=0;r<e;r++)this.setBit(r,t[r])}},{key:"subarray",value:function(t,e){var r=[];t=(t=t||0)<0?0:t,e=(e=e||this.length)>this.length?this.length:e;for(var n=t;n<e;n++)r.push(this.getBit(n));return r}},{key:"length",get:function(){return 8*this.u8.byteLength}}])&&n(e.prototype,r),i&&n(e,i),t}();function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(t,e)}(t,e)||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 o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(t,e){var r=new Uint8Array(t);return void 0===s._applySupportsTypedArray&&(s._applySupportsTypedArray=void 0!==e?e:function(){try{var t=new Uint8Array(new ArrayBuffer(4));if(t[0]=66,t[1]=76,t[2]=85,t[3]=69,"BLUE"!==String.fromCharCode.apply(null,t))return!1}catch(t){return!1}return!0}()),s._applySupportsTypedArray?String.fromCharCode.apply(null,r):r.reduce((function(t,e){return t+String.fromCharCode(e)}),"")}function u(t){return t>=0&&t<31?1<<t:u[t]||(u[t]=Math.pow(2,t))}function l(t){var e=document.createElement("a");return e.href=t,{source:t,protocol:e.protocol.replace(":",""),host:e.hostname,port:e.port,query:e.search,params:function(){for(var t={},r=e.search.replace(/^\?/,"").split("&"),n=r.length,i=0;i<n;i++)if(r[i]){var a=r[i].split("=");t[a[0]]=a[1]}return t}(),file:(e.pathname.match(/\/([^/?#]+)$/i)||[null,""])[1],hash:e.hash.replace("#",""),path:e.pathname.replace(/^([^/])/,"/$1"),relative:(e.href.match(/tps?:\/\/[^/]+(.+)/)||[null,""])[1],segments:e.pathname.replace(/^\//,"").split("/")}}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var c=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.header_class=e,this.options=r}var e,r,n;return e=t,(r=[{key:"_read",value:function(t,e,r){var n=this,i=new FileReader,a=void 0===t.webkitSlice?"slice":"webkitSlice",o=r?t[a](0,512):t;i.onloadend=function(t){return function(r){if(r.target.error)e(null);else{var a=i.result,o=new n.header_class(a,n.options);o.file=t,o.file_name=t.name,e(o)}}}(t),i.readAsArrayBuffer(o)}},{key:"readheader",value:function(t,e){this._read(t,e,!0)}},{key:"read",value:function(t,e){this._read(t,e,!1)}},{key:"read_http",value:function(t,e){var r=this,n=new XMLHttpRequest;return n.open("GET",t,!0),n.responseType="arraybuffer",n.overrideMimeType("text/plain; charset=x-user-defined"),n.onload=function(i){if(4!==n.readyState||200!==n.status&&0!==n.status)e(null);else{var a=null;if(n.response){a=n.response;var o=new r.header_class(a,r.options),s=l(t);o.file_name=s.file,e(o)}else n.responseText&&function(t,e,r){r=r||1024;var n=0,i=new ArrayBuffer(t.length),a=new Uint8Array(i);setTimeout((function o(){for(var s=n+r;n<s;n++)a[n]=255&t.charCodeAt(n);n>=t.length?e(i):setTimeout(o,0)}),0)}(n.responseText,(function(n){var i=new r.header_class(n,r.options),a=l(t);i.file_name=a.file,e(i)}))}},n.onerror=function(t){e(null)},n.send(null),n}}])&&f(e.prototype,r),n&&f(e,n),t}();function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}
/**

@@ -3,0 +3,0 @@ * @license apache-2.0

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.sigfile=e():t.sigfile=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t){t.exports=JSON.parse('{"a":"0.1.6"}')},function(t,e,n){t.exports=n(2)},function(t,e,n){"use strict";n.r(e),n.d(e,"bluefile",(function(){return r})),n.d(e,"matfile",(function(){return i})),n.d(e,"version",(function(){return F.a}));var r={};n.r(r),n.d(r,"BlueHeader",(function(){return w})),n.d(r,"BlueFileReader",(function(){return I}));var i={};function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n.r(i),n.d(i,"MatHeader",(function(){return C})),n.d(i,"MatFileReader",(function(){return L}));var o=function(){function t(e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e instanceof ArrayBuffer||"number"!=typeof e?(this.buffer=e,this.u8=new Uint8Array(e)):(this.buffer=new ArrayBuffer(e/8),this.u8=new Uint8Array(this.buffer)),new Proxy(this,{get:function(t,e){return t[e]?t[e]:t.getBit(e)},set:function(t,e,n){var r=parseInt(e);return!isNaN(r)&&(t.setBit(e,n),!0)}})}var e,n,r;return e=t,(n=[{key:"getBit",value:function(t){return this.u8[t>>3]>>7-(7&t)&1}},{key:"setBit",value:function(t,e){var n=7&t;e?this.u8[t>>3]|=128>>n:this.u8[t>>3]&=~(128>>n)}},{key:"setArray",value:function(t){for(var e=t.length,n=0;n<e;n++)this.setBit(n,t[n])}},{key:"subarray",value:function(t,e){var n=[];t=(t=t||0)<0?0:t,e=(e=e||this.length)>this.length?this.length:e;for(var r=t;r<e;r++)n.push(this.getBit(r));return n}},{key:"length",get:function(){return 8*this.u8.byteLength}}])&&a(e.prototype,n),r&&a(e,r),t}();function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){i=!0,a=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t,e)||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 u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.sigfile=e():t.sigfile=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t){t.exports=JSON.parse('{"a":"0.1.8"}')},function(t,e,n){t.exports=n(2)},function(t,e,n){"use strict";n.r(e),n.d(e,"bluefile",(function(){return r})),n.d(e,"matfile",(function(){return i})),n.d(e,"version",(function(){return F.a}));var r={};n.r(r),n.d(r,"BlueHeader",(function(){return w})),n.d(r,"BlueFileReader",(function(){return I}));var i={};function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n.r(i),n.d(i,"MatHeader",(function(){return C})),n.d(i,"MatFileReader",(function(){return L}));var o=function(){function t(e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e instanceof ArrayBuffer||"number"!=typeof e?(this.buffer=e,this.u8=new Uint8Array(e)):(this.buffer=new ArrayBuffer(e/8),this.u8=new Uint8Array(this.buffer)),new Proxy(this,{get:function(t,e){return t[e]?t[e]:t.getBit(e)},set:function(t,e,n){var r=parseInt(e);return!isNaN(r)&&(t.setBit(e,n),!0)}})}var e,n,r;return e=t,(n=[{key:"set",value:function(t){this.setArray(t)}},{key:"getBit",value:function(t){return this.u8[t>>3]>>7-(7&t)&1}},{key:"setBit",value:function(t,e){var n=7&t;e?this.u8[t>>3]|=128>>n:this.u8[t>>3]&=~(128>>n)}},{key:"setArray",value:function(t){for(var e=t.length,n=0;n<e;n++)this.setBit(n,t[n])}},{key:"subarray",value:function(t,e){var n=[];t=(t=t||0)<0?0:t,e=(e=e||this.length)>this.length?this.length:e;for(var r=t;r<e;r++)n.push(this.getBit(r));return n}},{key:"length",get:function(){return 8*this.u8.byteLength}}])&&a(e.prototype,n),r&&a(e,r),t}();function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){i=!0,a=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t,e)||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 u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}
/**

@@ -3,0 +3,0 @@ * @license apache-2.0

@@ -5,3 +5,3 @@ {

"license": "Apache-2.0",
"version": "0.1.7",
"version": "0.1.8",
"homepage": "https://lgsinnovations.github.io/sigfile",

@@ -8,0 +8,0 @@ "main": "dist/sigfile.js",

Sorry, the diff of this file is not supported yet

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