js-crc32/bits/00_header.js

28 lines
808 B
JavaScript
Raw Permalink Normal View History

/* crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
2014-06-16 21:27:47 +00:00
/* vim: set ts=2: */
/*exported CRC32 */
2018-01-17 21:27:59 +00:00
/*:: declare var DO_NOT_EXPORT_CRC:?boolean; */
/*:: declare function define(cb:()=>any):void; */
var CRC32/*:CRC32Module*/;
(function (factory/*:(a:any)=>void*/)/*:void*/ {
/*jshint ignore:start */
2018-01-17 21:27:59 +00:00
/*eslint-disable */
2015-05-06 22:27:03 +00:00
if(typeof DO_NOT_EXPORT_CRC === 'undefined') {
if('object' === typeof exports) {
factory(exports);
} else if ('function' === typeof define && define.amd) {
define(function () {
2018-01-17 21:27:59 +00:00
var module/*:CRC32Module*/ = /*::(*/{}/*:: :any)*/;
2015-05-06 22:27:03 +00:00
factory(module);
return module;
});
} else {
2018-01-17 21:27:59 +00:00
factory(CRC32 = /*::(*/{}/*:: :any)*/);
2015-05-06 22:27:03 +00:00
}
} else {
2018-01-17 21:27:59 +00:00
factory(CRC32 = /*::(*/{}/*:: :any)*/);
2015-05-06 22:27:03 +00:00
}
2018-01-17 21:27:59 +00:00
/*eslint-enable */
/*jshint ignore:end */
2018-01-17 21:27:59 +00:00
}(function(CRC32/*:CRC32Module*/) {