diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..d5be5ab --- /dev/null +++ b/.npmignore @@ -0,0 +1,10 @@ +node_modules +misc/ +perf/ +bits/ +ctest/ +test.js +.travis.yml +.jscs.json +perf.txt +Makefile diff --git a/bits/01_version.js b/bits/01_version.js index 426934a..73f41d5 100644 --- a/bits/01_version.js +++ b/bits/01_version.js @@ -1 +1 @@ -CRC32.version = '0.2.1'; +CRC32.version = '0.2.2'; diff --git a/crc32.js b/crc32.js index d3651d3..ea4527b 100644 --- a/crc32.js +++ b/crc32.js @@ -2,7 +2,7 @@ /* vim: set ts=2: */ var CRC32 = {}; (function(CRC32) { -CRC32.version = '0.2.1'; +CRC32.version = '0.2.2'; /* see perf/crc32table.js */ function signed_crc_table() { var c, table = new Array(256); diff --git a/ctest/crc32.js b/ctest/crc32.js index d3651d3..ea4527b 100644 --- a/ctest/crc32.js +++ b/ctest/crc32.js @@ -2,7 +2,7 @@ /* vim: set ts=2: */ var CRC32 = {}; (function(CRC32) { -CRC32.version = '0.2.1'; +CRC32.version = '0.2.2'; /* see perf/crc32table.js */ function signed_crc_table() { var c, table = new Array(256); diff --git a/ctest/fixtures.js b/ctest/fixtures.js index efdc607..7e26305 100644 --- a/ctest/fixtures.js +++ b/ctest/fixtures.js @@ -34,13 +34,16 @@ function u3(str) { return js_crc32_old.str(str); } var ntests, len_max, do_bstr, do_buf, do_ustr; switch(process.env.MODE) { - case "A": ntests = 100000; len_max = 256; break; - case "B": ntests = 10000; len_max = 1024; break; - case "C": ntests = 10000; len_max = 4096; break; - case "D": ntests = 1000; len_max = 16384; break; - case "E": ntests = 1000; len_max = 65536; break; - case "F": ntests = 100; len_max = 262144; break; - default: ntests = 10000; len_max = 1024; break; + case "A": ntests = 100000; len_max = 256; break; + case "B": ntests = 10000; len_max = 1024; break; + case "C": ntests = 10000; len_max = 4096; break; + case "D": ntests = 1000; len_max = 16384; break; + case "E": ntests = 1000; len_max = 65536; break; + case "F": ntests = 100; len_max = 262144; break; + case "G": ntests = 100; len_max = 1048576; break; + case "H": ntests = 10; len_max = 4194304; break; + case "I": ntests = 10; len_max = 16777216; break; + default: ntests = 10000; len_max = 1024; break; } if(process.argv === 2) do_bstr = do_buf = do_ustr = true; diff --git a/package.json b/package.json index 38f9af2..c0879b5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "crc-32", - "version": "0.2.1", + "version": "0.2.2", "author": "sheetjs", "description": "Pure-JS CRC-32", "keywords": [ "crc32", "checksum", "crc" ],