@mole-inc/cwebp-bin
Advanced tools
Comparing version 6.0.2 to 6.0.3
@@ -5,2 +5,9 @@ # Changelog | ||
### [6.0.3](https://github.com/mole-inc/cwebp-bin/compare/v6.0.2...v6.0.3) (2020-04-30) | ||
### Bug Fixes | ||
* make vendor directory ([4096d2e](https://github.com/mole-inc/cwebp-bin/commit/4096d2e7898bf59d1cdc3777545b977e20dff7d1)) | ||
### [6.0.2](https://github.com/mole-inc/cwebp-bin/compare/v6.0.1...v6.0.2) (2020-04-24) | ||
@@ -7,0 +14,0 @@ |
@@ -45,3 +45,12 @@ 'use strict'; | ||
}); | ||
const target = path.join(__dirname, '../vendor', use); | ||
const vendor = path.join(__dirname, '../vendor'); | ||
await promisify(fs.mkdir)(vendor).catch(error => { | ||
if (error.code === 'EEXIST') { | ||
return; | ||
} | ||
log.warn(error.message); | ||
throw error; | ||
}); | ||
const target = path.join(vendor, use); | ||
await promisify(fs.symlink)(systemBin, target).catch(error => { | ||
@@ -48,0 +57,0 @@ if (error.code === 'EEXIST') { |
{ | ||
"name": "@mole-inc/cwebp-bin", | ||
"version": "6.0.2", | ||
"version": "6.0.3", | ||
"description": "cwebp wrapper that makes it seamlessly", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -7,4 +7,5 @@ # cwebp-bin ![Node CI](https://github.com/mole-inc/cwebp-bin/workflows/Node%20CI/badge.svg) | ||
[![Downloads](https://badgen.net/npm/dm/@mole-inc/cwebp)](https://www.npmjs.com/package/@mole-inc/cwebp) | ||
[![Version](https://badgen.net/npm/v/@mole-inc/cwebp)](https://www.npmjs.com/package/@mole-inc/cwebp) | ||
[![Downloads](https://badgen.net/npm/dm/@mole-inc/cwebp-bin)](https://www.npmjs.com/package/@mole-inc/cwebp-bin) | ||
[![Version](https://badgen.net/npm/v/@mole-inc/cwebp-bin)](https://www.npmjs.com/package/@mole-inc/cwebp-bin) | ||
[![codecov](https://codecov.io/gh/mole-inc/cwebp-bin/branch/master/graph/badge.svg)](https://codecov.io/gh/mole-inc/cwebp-bin) | ||
@@ -49,2 +50,2 @@ ## Install | ||
see LICENSE file and vendor/cwebp-license.txt file. | ||
see license file and vendor/cwebp-license.txt file. |
7655
86
50