Skip to content

Commit 2d20276

Browse files
committed
Actually build .min.js.gz
1 parent 9323764 commit 2d20276

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ Besides incorporating a salt to protect against rainbow table attacks, bcrypt is
1212
iteration count can be increased to make it slower, so it remains resistant to brute-force search attacks even with
1313
increasing computation power. ([see](http://en.wikipedia.org/wiki/Bcrypt))
1414

15-
While bcrypt.js is compatible to the C++ bcrypt binding, it is written in pure JavaScript and thus slower ([about 25%
16-
](https://github.com/dcodeIO/bcrypt.js/wiki/Benchmark)), effectively reducing the number of iterations that can be
15+
While bcrypt.js is compatible to the C++ bcrypt binding, it is written in pure JavaScript and thus slower ([about 30%](https://github.com/dcodeIO/bcrypt.js/wiki/Benchmark)), effectively reducing the number of iterations that can be
1716
processed in an equal time span.
1817

1918
The maximum input length is 72 bytes (note that UTF8 encoded characters use up to 4 bytes) and the length of generated

dist/bcrypt.min.js.gz

-17 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@
4242
"build": "node scripts/build.js",
4343
"compile": "node node_modules/closurecompiler/bin/ccjs dist/bcrypt.js --compilation_level=SIMPLE_OPTIMIZATIONS --create_source_map=dist/bcrypt.min.map > dist/bcrypt.min.js",
4444
"compress": "gzip -c -9 dist/bcrypt.min.js > dist/bcrypt.min.js.gz",
45-
"make": "npm run-script build && npm run-script compile && npm test"
45+
"make": "npm run build && npm run compile && npm run compress && npm test"
4646
}
4747
}

0 commit comments

Comments
 (0)