@bundle-stats/utils
Advanced tools
Comparing version 1.0.0-rc.2 to 1.0.0-rc.3
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
102252
2923