New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rollup-plugin-npm

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-npm - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

4

CHANGELOG.md
# rollup-plugin-npm changelog
## 1.2.1
* Support scoped packages in `skip` option ([#15](https://github.com/rollup/rollup-plugin-npm/issues/15))
## 1.2.0

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

@@ -27,2 +27,7 @@ 'use strict';

// scoped packages
if (id[0] === '@' && parts.length) {
id += '/' + parts.shift();
}
if (~skip.indexOf(id)) return null;

@@ -29,0 +34,0 @@

@@ -22,2 +22,7 @@ import { resolve, dirname } from 'path';

// scoped packages
if (id[0] === '@' && parts.length) {
id += '/' + parts.shift();
}
if (~skip.indexOf(id)) return null;

@@ -24,0 +29,0 @@

2

package.json
{
"name": "rollup-plugin-npm",
"description": "Bundle third-party dependencies in node_modules",
"version": "1.2.0",
"version": "1.2.1",
"devDependencies": {

@@ -6,0 +6,0 @@ "babel-preset-es2015": "^6.3.13",

@@ -19,5 +19,10 @@ import { dirname, resolve } from 'path';

resolveId ( importee, importer ) {
const parts = importee.split( /[\/\\]/ );
const id = parts.shift();
let parts = importee.split( /[\/\\]/ );
let id = parts.shift();
// scoped packages
if ( id[0] === '@' && parts.length ) {
id += `/${parts.shift()}`;
}
if ( ~skip.indexOf(id) ) return null;

@@ -24,0 +29,0 @@

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