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

@bundle-stats/utils

Package Overview
Dependencies
Maintainers
1
Versions
482
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bundle-stats/utils - npm Package Compare versions

Comparing version 1.0.0-rc.2 to 1.0.0-rc.3

4

lib-esm/jobs/create.js

@@ -14,2 +14,4 @@ "use strict";

var _extractData = require("../utils/extract-data");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -31,3 +33,3 @@

if (rawData) {
(0, _set2.default)(agg, `rawData.${rawDataPath}`, rawData);
(0, _set2.default)(agg, `rawData.${rawDataPath}`, (0, _extractData.extractDataFromWebpackStats)(rawData));
}

@@ -34,0 +36,0 @@

@@ -12,2 +12,4 @@ "use strict";

var _extractData = require("../utils/extract-data");
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

@@ -27,3 +29,3 @@

if (rawData) {
(0, _lodash.set)(agg, `rawData.${rawDataPath}`, rawData);
(0, _lodash.set)(agg, `rawData.${rawDataPath}`, (0, _extractData.extractDataFromWebpackStats)(rawData));
}

@@ -30,0 +32,0 @@

{
"name": "@bundle-stats/utils",
"version": "1.0.0-rc.2",
"version": "1.0.0-rc.3",
"description": "BundleStats utils",

@@ -17,3 +17,3 @@ "main": "lib/index.js",

"build-esm": "rm -fr ./lib-esm && babel -D src -d lib-esm --ignore **/__tests__/** --config-file=./.babelrc.esm.js",
"lint": "eslint ./",
"lint": "eslint . --cache --cache-location ./node_modules/.eslintcache",
"prepublishOnly": "npm run lint && npm test && npm run build",

@@ -20,0 +20,0 @@ "test": "jest src"

import { get, set } from 'lodash';
import { createStats, createStatsSummary } from '../stats';
import { extractDataFromWebpackStats } from '../utils/extract-data';

@@ -18,3 +19,3 @@ const RAW_DATA_IDS = [

if (rawData) {
set(agg, `rawData.${rawDataPath}`, rawData);
set(agg, `rawData.${rawDataPath}`, extractDataFromWebpackStats(rawData));
}

@@ -21,0 +22,0 @@

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