Skip to content

Commit

Permalink
fix: change postinstall to prepare and add as const to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlescure committed Oct 1, 2020
1 parent 369f9f7 commit 8f8a5cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const options = {
salt: '2f0ijf2039j23r09j2fg45o9ng98um4o',
iterations: 10,
keylen: 256 / 8, // must be equivalent to 16, 24 or 32 bytes
digest: 'sha512', // one of: 'md5' | 'sha1' | 'sha224' | 'sha256' | 'sha384' | 'sha512' | 'rmd160' | 'ripemd160'
digest: 'sha512' as const, // one of: 'md5' | 'sha1' | 'sha224' | 'sha256' | 'sha384' | 'sha512' | 'rmd160' | 'ripemd160'
};

const {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "string-crypto",
"version": "1.0.0",
"version": "1.0.1",
"description": "Small and and simple (yet secure) library to encrypt and decrypt strings using PBKDF2 for key derivation and AES (defaulted to 256-bit / SHA512)",
"main": "dist/index.js",
"author": "Jean M. Lescure",
Expand All @@ -9,7 +9,7 @@
"scripts": {
"build": "rollup -c",
"dev": "concurrently \"rollup -cw\" \"nodemon --inspect runkit.js\"",
"postinstall": "yarn link && yarn link string-crypto"
"prepare": "yarn link && yarn link string-crypto"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^15.0.0",
Expand Down

0 comments on commit 8f8a5cb

Please sign in to comment.