Socket
Socket
Sign inDemoInstall

@rollup/plugin-node-resolve

Package Overview
Dependencies
Maintainers
4
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rollup/plugin-node-resolve - npm Package Compare versions

Comparing version 11.2.0 to 11.2.1

8

CHANGELOG.md
# @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 @@

10

dist/cjs/index.js

@@ -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) => {

2

package.json
{
"name": "@rollup/plugin-node-resolve",
"version": "11.2.0",
"version": "11.2.1",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc