Socket
Socket
Sign inDemoInstall

rollup-plugin-node-resolve

Package Overview
Dependencies
3
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.6.0 to 1.7.0

4

CHANGELOG.md
# rollup-plugin-node-resolve changelog
## 1.7.0
* Allow relative IDs to be external ([#32](https://github.com/rollup/rollup-plugin-node-resolve/pull/32))
## 1.6.0

@@ -4,0 +8,0 @@

5

dist/rollup-plugin-node-resolve.cjs.js

@@ -37,5 +37,8 @@ 'use strict';

// scoped packages
if ( id[0] === '@' && parts.length ) {
// scoped packages
id += "/" + (parts.shift());
} else if ( id[0] === '.' ) {
// an import relative to the parent dir of the importer
id = path.resolve( importer, '..', importee );
}

@@ -42,0 +45,0 @@

@@ -33,5 +33,8 @@ import { resolve, dirname } from 'path';

// scoped packages
if ( id[0] === '@' && parts.length ) {
// scoped packages
id += "/" + (parts.shift());
} else if ( id[0] === '.' ) {
// an import relative to the parent dir of the importer
id = resolve( importer, '..', importee );
}

@@ -38,0 +41,0 @@

{
"name": "rollup-plugin-node-resolve",
"description": "Bundle third-party dependencies in node_modules",
"version": "1.6.0",
"version": "1.7.0",
"devDependencies": {

@@ -6,0 +6,0 @@ "buble": "^0.10.6",

@@ -28,5 +28,8 @@ import { dirname, resolve } from 'path';

// scoped packages
if ( id[0] === '@' && parts.length ) {
// scoped packages
id += `/${parts.shift()}`;
} else if ( id[0] === '.' ) {
// an import relative to the parent dir of the importer
id = resolve( importer, '..', importee );
}

@@ -33,0 +36,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc