imagemin
Advanced tools
Comparing version 7.0.0 to 7.0.1
'use strict'; | ||
const {promisify} = require('util'); | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const fs = require('graceful-fs'); | ||
const fileType = require('file-type'); | ||
@@ -6,0 +6,0 @@ const globby = require('globby'); |
{ | ||
"name": "imagemin", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"description": "Minify images seamlessly", | ||
@@ -30,2 +30,3 @@ "license": "MIT", | ||
"globby": "^10.0.0", | ||
"graceful-fs": "^4.2.2", | ||
"junk": "^3.1.0", | ||
@@ -32,0 +33,0 @@ "make-dir": "^3.0.0", |
@@ -5,3 +5,17 @@ # imagemin [![Build Status](https://travis-ci.org/imagemin/imagemin.svg?branch=master)](https://travis-ci.org/imagemin/imagemin) | ||
--- | ||
<div align="center"> | ||
<sup>Gumlet is helping make open source sustainable by sponsoring Sindre Sorhus.</sup> | ||
<a href="https://www.gumlet.com"> | ||
<div> | ||
<img src="https://sindresorhus.com/assets/thanks/gumlet-logo.svg" width="300"/> | ||
</div> | ||
<sup><b>Optimised Image Delivery made simple</b></sup> | ||
</a> | ||
</div> | ||
--- | ||
## Install | ||
@@ -33,3 +47,3 @@ | ||
console.log(files); | ||
//=> [{data: <Buffer 89 50 4e …>, path: 'build/images/foo.jpg'}, …] | ||
//=> [{data: <Buffer 89 50 4e …>, destinationPath: 'build/images/foo.jpg'}, …] | ||
})(); | ||
@@ -94,3 +108,10 @@ ``` | ||
## Hosted API | ||
We also provide a hosted API for imagemin which may simplify your use case. | ||
<a href="https://imagemin.saasify.sh"> | ||
<img src="https://badges.saasify.sh?text=View%20Hosted%20API" height="40"/> | ||
</a> | ||
## Related | ||
@@ -97,0 +118,0 @@ |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
6365
120
2
7
+ Addedgraceful-fs@^4.2.2
+ Added@types/node@20.14.8(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
- Removed@types/node@20.14.6(transitive)