Skip to content

Commit 1b9770e

Browse files
committed
Cleanup distributions
1 parent 48dd75f commit 1b9770e

7 files changed

Lines changed: 59 additions & 50 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules/
22
npm-debug.log
33
.idea/
44
doco/
5+
src/bcrypt.c

dist/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
Distributions
22
=============
3-
bcrypt.js is available either without a random fallback or with ISAAC:
3+
bcrypt.js is available as the following distributions:
44

5-
### Standard
6-
7-
This version relies on the crypto module under node.js and the Web Crypto API in the browser, providing you with the
8-
option to specify a random fallback for browser environments that do not support the Web Crypto API natively (use
9-
`bcrypt.setRandomFallback`).
10-
11-
* **[bcrypt.js](https://github.com/dcodeIO/bcrypt.js/blob/master/dist/bcrypt.js)**
5+
* **[bcrypt.js](https://github.com/dcodeIO/bcrypt.js/blob/master/dist/bcrypt.js)**
126
contains the commented source code.
137

14-
* **[bcrypt.min.js](https://github.com/dcodeIO/bcrypt.js/blob/master/dist/bcrypt.min.js)**
8+
* **[bcrypt.min.js](https://github.com/dcodeIO/bcrypt.js/blob/master/dist/bcrypt.min.js)**
159
has been compiled with Closure Compiler using advanced optimizations.
10+
11+
* **[bcrypt.min.map](https://github.com/dcodeIO/bcrypt.js/blob/master/dist/bcrypt.min.map)**
12+
contains the source map generated by Closure Compiler.
13+
14+
* **[bcrypt.min.js.gz](https://github.com/dcodeIO/bcrypt.js/blob/master/dist/bcrypt.min.js.gz)**
15+
has also been gzipped using `-9`.

dist/bcrypt-isaac.min.js

Whitespace-only changes.

dist/bcrypt.min.js

Lines changed: 39 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bcrypt.min.js.gz

9.24 KB
Binary file not shown.

dist/bcrypt.min.map

Lines changed: 8 additions & 0 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
"scripts": {
4646
"test": "node node_modules/testjs/bin/testjs",
4747
"build": "node scripts/build.js",
48-
"compile": "ccjs dist/bcrypt.js --compilation_level=ADVANCED_OPTIMIZATIONS --externs=externs/minimal-env.js --output_wrapper=\"(function(){%output%})();\" > dist/bcrypt.min.js",
48+
"compile": "node node_modules/closurecompiler/bin/ccjs dist/bcrypt.js --compilation_level=ADVANCED_OPTIMIZATIONS --create_source_map=dist/bcrypt.min.map --externs=externs/minimal-env.js --output_wrapper=\"(function(){%output%})();\" > dist/bcrypt.min.js",
49+
"compress": "gzip -c -9 dist/bcrypt.min.js > dist/bcrypt.min.js.gz",
4950
"make": "npm run-script build && npm run-script compile && npm test"
5051
}
5152
}

0 commit comments

Comments
 (0)