Skip to content

Commit

Permalink
Bumps @types/node, astro, esbuild, typescript to current latest
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Jun 19, 2022
1 parent b42122c commit 8edfc81
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
"terser": "5.14.1"
},
"devDependencies": {
"@types/node": "17.0.43",
"astro": "1.0.0-beta.46",
"esbuild": "0.14.43",
"typescript": "4.7.3"
"@types/node": "18.0.0",
"astro": "1.0.0-beta.47",
"esbuild": "0.14.46",
"typescript": "4.7.4"
}
}
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ const formatBytes = async (bytes: number, decimals = 2) => {
};

/**
* If the file type is supported by Sharp, then it will run the appropriate Sharp function with the
* options provided
* @param {any} sharpFile - The sharp object
* It takes a sharp file and an options object, and returns a buffer of the file if the file type is
* valid and the options object has a valid option for the file type
* @param {any} sharpFile - The sharp file object
* @param {IMG} options - IMG = {}
* @returns A function that takes two arguments, pipe and options.
* @returns A function that takes two arguments, sharpFile and options.
*/
const sharp = async (sharpFile: any, options: IMG = {}) => {
const fileType = sharpFile.options.input.file.split(".").pop();
Expand Down

0 comments on commit 8edfc81

Please sign in to comment.