Skip to content

Commit 8f8a5cb

Browse files
committed
fix: change postinstall to prepare and add as const to readme
1 parent 369f9f7 commit 8f8a5cb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const options = {
4242
salt: '2f0ijf2039j23r09j2fg45o9ng98um4o',
4343
iterations: 10,
4444
keylen: 256 / 8, // must be equivalent to 16, 24 or 32 bytes
45-
digest: 'sha512', // one of: 'md5' | 'sha1' | 'sha224' | 'sha256' | 'sha384' | 'sha512' | 'rmd160' | 'ripemd160'
45+
digest: 'sha512' as const, // one of: 'md5' | 'sha1' | 'sha224' | 'sha256' | 'sha384' | 'sha512' | 'rmd160' | 'ripemd160'
4646
};
4747

4848
const {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "string-crypto",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"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)",
55
"main": "dist/index.js",
66
"author": "Jean M. Lescure",
@@ -9,7 +9,7 @@
99
"scripts": {
1010
"build": "rollup -c",
1111
"dev": "concurrently \"rollup -cw\" \"nodemon --inspect runkit.js\"",
12-
"postinstall": "yarn link && yarn link string-crypto"
12+
"prepare": "yarn link && yarn link string-crypto"
1313
},
1414
"devDependencies": {
1515
"@rollup/plugin-commonjs": "^15.0.0",

0 commit comments

Comments
 (0)