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

@teambit/webpack.modules.config-mutator

Package Overview
Dependencies
Maintainers
16
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teambit/webpack.modules.config-mutator - npm Package Compare versions

Comparing version 0.0.159 to 0.0.160

dist/preview-1686280660969.js

5

config-mutator.ts

@@ -139,7 +139,8 @@ import { isObject, omit } from 'lodash';

// @ts-ignore
if (!this.raw.module.rules.find((r) => !!r.oneOf)) {
const moduleWithOneOf = this.raw.module.rules.find((r) => !!(r as RuleSetRule).oneOf);
if (!moduleWithOneOf) {
this.raw.module.rules.unshift({ oneOf: [] });
}
addToArray(this.raw.module.rules.find((r) => !!(r as RuleSetRule).oneOf) as RuleSetRule[], rule, opts);
addToArray(moduleWithOneOf.oneOf, rule, opts);
return this;

@@ -146,0 +147,0 @@ }

@@ -124,6 +124,7 @@ "use strict";

// @ts-ignore
if (!this.raw.module.rules.find((r) => !!r.oneOf)) {
const moduleWithOneOf = this.raw.module.rules.find((r) => !!r.oneOf);
if (!moduleWithOneOf) {
this.raw.module.rules.unshift({ oneOf: [] });
}
addToArray(this.raw.module.rules.find((r) => !!r.oneOf), rule, opts);
addToArray(moduleWithOneOf.oneOf, rule, opts);
return this;

@@ -130,0 +131,0 @@ }

4

package.json
{
"name": "@teambit/webpack.modules.config-mutator",
"version": "0.0.159",
"version": "0.0.160",
"homepage": "https://bit.cloud/teambit/webpack/modules/config-mutator",

@@ -9,3 +9,3 @@ "main": "dist/index.js",

"name": "modules/config-mutator",
"version": "0.0.159"
"version": "0.0.160"
},

@@ -12,0 +12,0 @@ "dependencies": {

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