version bump 0.2.2: streamlined node module
This commit is contained in:
parent
370bee1ad6
commit
5cc2f712b1
10
.npmignore
Normal file
10
.npmignore
Normal file
@ -0,0 +1,10 @@
|
||||
node_modules
|
||||
misc/
|
||||
perf/
|
||||
bits/
|
||||
ctest/
|
||||
test.js
|
||||
.travis.yml
|
||||
.jscs.json
|
||||
perf.txt
|
||||
Makefile
|
@ -1 +1 @@
|
||||
CRC32.version = '0.2.1';
|
||||
CRC32.version = '0.2.2';
|
||||
|
2
crc32.js
2
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);
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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" ],
|
||||
|
Loading…
Reference in New Issue
Block a user