@rollup/plugin-node-resolve
Advanced tools
Comparing version 11.2.0 to 11.2.1
# @rollup/plugin-node-resolve ChangeLog | ||
## v11.2.1 | ||
_2021-03-26_ | ||
### Bugfixes | ||
- fix: fs.exists is incorrectly promisified (#835) | ||
## v11.2.0 | ||
@@ -4,0 +12,0 @@ |
@@ -24,6 +24,14 @@ 'use strict'; | ||
const exists = util.promisify(fs__default['default'].exists); | ||
const access = util.promisify(fs__default['default'].access); | ||
const readFile = util.promisify(fs__default['default'].readFile); | ||
const realpath = util.promisify(fs__default['default'].realpath); | ||
const stat = util.promisify(fs__default['default'].stat); | ||
async function exists(filePath) { | ||
try { | ||
await access(filePath); | ||
return true; | ||
} catch { | ||
return false; | ||
} | ||
} | ||
@@ -30,0 +38,0 @@ const onError = (error) => { |
@@ -11,6 +11,14 @@ import path, { dirname, resolve, extname, normalize, sep } from 'path'; | ||
const exists = promisify(fs.exists); | ||
const access = promisify(fs.access); | ||
const readFile = promisify(fs.readFile); | ||
const realpath = promisify(fs.realpath); | ||
const stat = promisify(fs.stat); | ||
async function exists(filePath) { | ||
try { | ||
await access(filePath); | ||
return true; | ||
} catch { | ||
return false; | ||
} | ||
} | ||
@@ -17,0 +25,0 @@ const onError = (error) => { |
{ | ||
"name": "@rollup/plugin-node-resolve", | ||
"version": "11.2.0", | ||
"version": "11.2.1", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
87285
1955