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

@shopware-ag/webpack-plugin-injector

Package Overview
Dependencies
Maintainers
5
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopware-ag/webpack-plugin-injector - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

10

index.js

@@ -81,3 +81,3 @@ const { join, isAbsolute } = require('path');

if (typeof this.filePath === 'string') {
content = WebpackPluginInjector.getPluginDefinitionContent(this.filePath);
content = this.getPluginDefinitionContent(this.filePath);
} else {

@@ -122,7 +122,6 @@ content = this.filePath;

*
* @static
* @param {String} definitionFile
* @return {Object}
*/
static getPluginDefinitionContent(definitionFile) {
getPluginDefinitionContent(definitionFile) {
const fullPathDefinitionFile = resolveFromRootPath(definitionFile);

@@ -162,3 +161,3 @@

if (pluginDefinition[section] && pluginDefinition[section].entryFilePath) {
const plugin = WebpackPluginInjector.getPluginConfig(pluginName, pluginDefinition, section);
const plugin = this.getPluginConfig(pluginName, pluginDefinition, section);
plugins[section].push(plugin);

@@ -176,3 +175,2 @@ }

*
* @static
* @param {String} pluginName

@@ -183,3 +181,3 @@ * @param {Object} pluginDefinition

*/
static getPluginConfig(pluginName, pluginDefinition, section) {
getPluginConfig(pluginName, pluginDefinition, section) {
const basePath = resolveFromRootPath(pluginDefinition.basePath);

@@ -186,0 +184,0 @@ const hasCustomWebpackConfig = (pluginDefinition[section].webpack !== null);

2

package.json
{
"name": "@shopware-ag/webpack-plugin-injector",
"version": "1.0.1",
"version": "1.0.2",
"description": "Injects Shopware Plugins into a Webpack config",

@@ -5,0 +5,0 @@ "main": "index.js",

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