Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

liferay-npm-bundler-plugin-exclude-imports

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

liferay-npm-bundler-plugin-exclude-imports - npm Package Compare versions

Comparing version 2.6.2 to 2.7.0

6

lib/__tests__/index.test.js

@@ -13,2 +13,8 @@ 'use strict';

/**
* © 2017 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
it('empties files when package is listed in imports', function () {

@@ -15,0 +21,0 @@ var files = ['1.js', '2.js', '3.js'];

6

lib/index.js

@@ -8,6 +8,6 @@ 'use strict';

exports.default = function (_ref, _ref2) {
var pkg = _ref.pkg,
var config = _ref.config,
globalConfig = _ref.globalConfig,
config = _ref.config,
log = _ref.log;
log = _ref.log,
pkg = _ref.pkg;
var files = _ref2.files;

@@ -14,0 +14,0 @@

{
"name": "liferay-npm-bundler-plugin-exclude-imports",
"version": "2.6.2",
"version": "2.7.0",
"description": "A liferay-npm-bundler plugin to exclude imported dependencies.",

@@ -15,4 +15,4 @@ "main": "lib/index.js",

"dependencies": {
"liferay-npm-build-tools-common": "2.6.2"
"liferay-npm-build-tools-common": "2.7.0"
}
}

@@ -0,1 +1,7 @@

/**
* © 2017 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
import PluginLogger from 'liferay-npm-build-tools-common/lib/plugin-logger';

@@ -2,0 +8,0 @@ import plugin from '../index';

@@ -0,1 +1,7 @@

/**
* © 2017 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
import {unrollImportsConfig} from 'liferay-npm-build-tools-common/lib/imports';

@@ -6,3 +12,3 @@

*/
export default function({pkg, globalConfig, config, log}, {files}) {
export default function({config, globalConfig, log, pkg}, {files}) {
let imports = config.imports || globalConfig.imports || {};

@@ -9,0 +15,0 @@

Sorry, the diff of this file is not supported yet

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