Skip to content

Commit

Permalink
updated readme and version
Browse files Browse the repository at this point in the history
  • Loading branch information
ANKUR DWIVEDI authored and ANKUR DWIVEDI committed Jul 25, 2024
1 parent 8cfd263 commit 5475c8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@ imagekit.upload({
value: 'w-100'
}
]
}
},
checks={`"file.size" < "1mb"`} // To run server side checks before uploading files. Notice the quotes around file.size and 1mb.
}, function(error, result) {
if(error) console.log(error);
else console.log(result);
Expand All @@ -376,7 +377,8 @@ imagekit.upload({
value: 'w-100'
}
]
}
},
checks={`"file.size" < "1mb"`}
}).then(response => {
console.log(response);
}).catch(error => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "imagekit",
"version": "5.0.2",
"version": "5.1.0",
"description": "Offical NodeJS SDK for ImageKit.io integration",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down

0 comments on commit 5475c8c

Please sign in to comment.