Socket
Socket
Sign inDemoInstall

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.6.3-alpha.126

LICENSE.md

46

lib/index.js

@@ -1,26 +0,20 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (_ref, _ref2) {
var pkg = _ref.pkg,
globalConfig = _ref.globalConfig,
config = _ref.config,
log = _ref.log;
var files = _ref2.files;
var imports = config.imports || globalConfig.imports || {};
imports = (0, _imports.unrollImportsConfig)(imports);
if (imports[pkg.name]) {
files.length = 0;
log.info('exclude-imports', 'Excluding package', pkg.id, 'from output as it is configured as an import.');
}
};
var _imports = require('liferay-npm-build-tools-common/lib/imports');
//# sourceMappingURL=index.js.map
"use strict";
/**
* © 2017 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
Object.defineProperty(exports, "__esModule", { value: true });
const imports_1 = require("liferay-npm-build-tools-common/lib/imports");
/**
* @return {void}
*/
function default_1({ config, globalConfig, log, pkg }, { files }) {
let imports = config.imports || globalConfig.imports || {};
imports = imports_1.unrollImportsConfig(imports);
if (imports[pkg.name]) {
files.length = 0;
log.info('exclude-imports', 'Excluding package', pkg.id, 'from output as it is configured as an import.');
}
}
exports.default = default_1;
{
"name": "liferay-npm-bundler-plugin-exclude-imports",
"version": "2.6.2",
"version": "2.6.3-alpha.126+f9a8cd2",
"description": "A liferay-npm-bundler plugin to exclude imported dependencies.",
"main": "lib/index.js",
"scripts": {
"build": "babel --source-maps -D -d lib src",
"prepublish": "npm run build"
"copyfiles": "node ../../scripts/copyfiles.js",
"build": "tsc && yarn copyfiles",
"prepublish": "yarn build"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-preset-env": "^1.6.1"
"dependencies": {
"liferay-npm-build-tools-common": "2.6.3-alpha.126+f9a8cd2"
},
"dependencies": {
"liferay-npm-build-tools-common": "2.6.2"
}
"gitHead": "f9a8cd23c70ecc6fff238bea906286c1c6cb2ecc"
}

@@ -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 @@

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