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

rollup-plugin-multi-entry

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-multi-entry - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

23

dist/rollup-plugin-multi-entry.js
'use strict';
var path = require('path');
var matched = require('matched');

@@ -9,8 +8,8 @@

function multiEntry() {
var config = arguments.length <= 0 || arguments[0] === undefined ? null : arguments[0];
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
var include = [];
var exclude = [];
var exporter = function exporter(path$$) {
return 'export * from ' + JSON.stringify(path$$) + ';';
var exporter = function exporter(path) {
return 'export * from ' + JSON.stringify(path) + ';';
};

@@ -27,4 +26,4 @@

if (config.exports === false) {
exporter = function exporter(path$$) {
return 'import ' + JSON.stringify(path$$) + ';';
exporter = function exporter(path) {
return 'import ' + JSON.stringify(path) + ';';
};

@@ -41,6 +40,6 @@ }

options: function options(_options) {
if (_options.entry && _options.entry !== entry) {
configure(_options.entry);
if (_options.input && _options.input !== entry) {
configure(_options.input);
}
_options.entry = entry;
_options.input = entry;
},

@@ -61,6 +60,2 @@ resolveId: function resolveId(id) {

return matched.promise(patterns, { realpath: true }).then(function (paths) {
return paths.map(function (path$$) {
return path.resolve(path$$);
});
}).then(function (paths) {
return paths.map(exporter).join('\n');

@@ -73,2 +68,2 @@ });

module.exports = multiEntry;
module.exports = multiEntry;
{
"version": "2.0.1",
"version": "2.0.2",
"name": "rollup-plugin-multi-entry",

@@ -32,16 +32,17 @@ "description": "Allows specifying multiple entry points with rollup.",

"dependencies": {
"matched": "^0.4.3"
"matched": "^0.4.4"
},
"devDependencies": {
"babel-plugin-transform-flow-strip-types": "^6.8.0",
"babel-preset-es2015": "^6.9.0",
"babel-preset-es2015-rollup": "^1.1.1",
"babel-register": "^6.9.0",
"babelrc-rollup": "^1.1.0",
"flow-bin": "^0.27.0",
"mocha": "^3.0.0",
"rollup": "^0.33.0",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-flow-strip-types": "^6.14.0",
"babel-preset-es2015": "^6.14.0",
"babel-preset-es2015-rollup": "^1.2.0",
"babel-register": "^6.14.0",
"babelrc-rollup": "^3.0.0",
"flow-bin": "^0.31.1",
"mocha": "^3.0.2",
"rollup": "^0.49.2",
"rollup-plugin-babel": "^2.6.1",
"semantic-release": "^4.3.5"
}
}
}

@@ -35,3 +35,3 @@ # rollup-plugin-multi-entry

export default {
entry: 'test/**/*.js',
input: 'test/**/*.js',
plugins: [multiEntry()]

@@ -49,3 +49,3 @@ };

export default {
entry: 'just/one/file.js',
input: 'just/one/file.js',
plugins: [multiEntry()]

@@ -57,3 +57,3 @@ // ...

export default {
entry: 'a/glob/of/files/**/*.js',
input: 'a/glob/of/files/**/*.js',
plugins: [multiEntry()]

@@ -65,3 +65,3 @@ // ...

export default {
entry: ['an/array.js', 'of/files.js', 'or/globs/**/*.js'],
input: ['an/array.js', 'of/files.js', 'or/globs/**/*.js'],
plugins: [multiEntry()]

@@ -73,3 +73,3 @@ // ...

export default {
entry: {
input: {
include: ['files.js', 'and/globs/**/*.js', 'to/include.js'],

@@ -88,3 +88,3 @@ exclude: ['those/files.js', 'and/globs/*.to.be.excluded.js']

export default {
entry: 'src/*.js',
input: 'src/*.js',
plugins: [multiEntry({ exports: false })]

@@ -91,0 +91,0 @@ };

Sorry, the diff of this file is not supported yet

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