Socket
Socket
Sign inDemoInstall

@bundle-stats/plugin-webpack-filter

Package Overview
Dependencies
Maintainers
2
Versions
294
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bundle-stats/plugin-webpack-filter - npm Package Compare versions

Comparing version 3.2.1-alpha.0 to 3.2.1-beta.3

10

CHANGELOG.md

@@ -6,3 +6,3 @@ # Change Log

## [3.2.1-alpha.0](https://github.com/relative-ci/bundle-stats/compare/v3.2.0...v3.2.1-alpha.0) (2021-10-27)
## [3.2.1-beta.3](https://github.com/relative-ci/bundle-stats/compare/v3.2.0...v3.2.1-beta.3) (2021-11-21)

@@ -15,2 +15,10 @@ **Note:** Version bump only for package @bundle-stats/plugin-webpack-filter

# [3.2.0-beta.2](https://github.com/relative-ci/bundle-stats/compare/v3.2.0...v3.2.0-beta.2) (2021-11-21)
**Note:** Version bump only for package @bundle-stats/plugin-webpack-filter
# [3.2.0](https://github.com/relative-ci/bundle-stats/compare/v3.1.3...v3.2.0) (2021-10-13)

@@ -17,0 +25,0 @@

26

lib/index.js

@@ -17,19 +17,19 @@ "use strict";

const pathIgnorePattern = new RegExp(options.pathIgnorePattern || PATH_IGNORE_PATTERN);
const builtAt = get_1.default('builtAt')(source);
const hash = get_1.default('hash')(source);
const assets = flow_1.default([
get_1.default('assets'),
map_1.default(pick_1.default(['name', 'size'])),
filter_1.default(({ name }) => name && !pathIgnorePattern.test(name)),
const builtAt = (0, get_1.default)('builtAt')(source);
const hash = (0, get_1.default)('hash')(source);
const assets = (0, flow_1.default)([
(0, get_1.default)('assets'),
(0, map_1.default)((0, pick_1.default)(['name', 'size'])),
(0, filter_1.default)(({ name }) => name && !pathIgnorePattern.test(name)),
])(source);
const entrypoints = flow_1.default([
get_1.default('entrypoints'),
const entrypoints = (0, flow_1.default)([
(0, get_1.default)('entrypoints'),
toPairs_1.default,
map_1.default(([key, value]) => [key, pick_1.default('assets')(value)]),
(0, map_1.default)(([key, value]) => [key, (0, pick_1.default)('assets')(value)]),
fromPairs_1.default,
])(source);
const chunks = flow_1.default([
get_1.default('chunks'),
map_1.default(pick_1.default(['id', 'entry', 'initial', 'files', 'names'])),
filter_1.default(({ id }) => id !== null && typeof id !== 'undefined'),
const chunks = (0, flow_1.default)([
(0, get_1.default)('chunks'),
(0, map_1.default)((0, pick_1.default)(['id', 'entry', 'initial', 'files', 'names'])),
(0, filter_1.default)(({ id }) => id !== null && typeof id !== 'undefined'),
])(source);

@@ -36,0 +36,0 @@ const modules = (_a = source === null || source === void 0 ? void 0 : source.modules) === null || _a === void 0 ? void 0 : _a.map(({ name, size, chunks: moduleChunks, modules: concatenatedModules }) => ({

{
"name": "@bundle-stats/plugin-webpack-filter",
"version": "3.2.1-alpha.0",
"version": "3.2.1-beta.3",
"description": "BundleStats webpack filter plugin",

@@ -38,12 +38,12 @@ "main": "lib/index.js",

"devDependencies": {
"@types/jest": "26.0.24",
"@types/lodash": "4.14.176",
"@types/jest": "27.0.3",
"@types/lodash": "4.14.177",
"@types/webpack": "5.28.0",
"core-js": "3.19.0",
"jest": "26.6.3",
"jest-cli": "26.6.3",
"core-js": "3.19.1",
"jest": "27.3.1",
"jest-cli": "27.3.1",
"jest-date-mock": "1.0.8",
"lodash": "4.17.21",
"regenerator-runtime": "0.13.7",
"ts-jest": "26.5.6"
"regenerator-runtime": "0.13.9",
"ts-jest": "27.0.7"
},

@@ -54,3 +54,3 @@ "peerDependencies": {

},
"gitHead": "fdb4b6931ebbc35ad469608725603cde5ecab9b7"
"gitHead": "dc8af1ca0a607ef6443ceaa9311b2c0ae1e0037b"
}
import filter from './index';
/* eslint-disable import/no-relative-packages */
import webpackStats from '../../utils/__fixtures__/webpack-stats-1';

@@ -7,2 +8,3 @@ import webpackStatsExtracted from '../../utils/__fixtures__/webpack-stats-1.extracted';

import webpackStatsConcatenatedModulesExtracted from '../../utils/__fixtures__/webpack-stats-3.extracted';
/* eslint-enable import/no-relative-packages */

@@ -9,0 +11,0 @@ describe('Webpack filter', () => {

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