inspectpack
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -41,3 +41,3 @@ "use strict"; | ||
// Mutate sizes. | ||
const codeSrc = toParseable(_.find({ id: parseInt(idx, 10) })(codes).code); | ||
const codeSrc = toParseable(_.find({ id: idx })(codes).code); | ||
const fullSize = codeSrc.length; | ||
@@ -44,0 +44,0 @@ const minSrc = minified ? uglify.minify(codeSrc, { |
@@ -5,3 +5,3 @@ "use strict"; | ||
const _ = require("lodash/fp"); | ||
const parse = require("../utils/parser"); | ||
const parse = require("../parser"); | ||
@@ -143,6 +143,3 @@ /** | ||
// More than one unique of _any_ means missed duplicates. | ||
meta.uniqIdxs = _.flow( | ||
_.map((i) => { return parseInt(i, 10); }), | ||
_.uniq | ||
)([].concat( | ||
meta.uniqIdxs = _.uniq([].concat( | ||
_.keys(meta.codeIdxs), | ||
@@ -149,0 +146,0 @@ _.keys(meta.singleRefIdxs), |
@@ -7,4 +7,4 @@ "use strict"; | ||
const Promise = require("bluebird"); | ||
const mkdirp = Promise.promisify(require("mkdirp")); | ||
const pify = require("pify"); | ||
const mkdirp = pify(require("mkdirp")); | ||
const toPairs = require("lodash/fp/toPairs"); | ||
@@ -14,5 +14,5 @@ | ||
const readFile = Promise.promisify(fs.readFile); | ||
const writeFile = Promise.promisify(fs.writeFile); | ||
const access = Promise.promisify(fs.access); | ||
const readFile = pify(fs.readFile); | ||
const writeFile = pify(fs.writeFile); | ||
const access = pify(fs.access); | ||
@@ -19,0 +19,0 @@ // Function adapted from: |
{ | ||
"name": "inspectpack", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "An inspection tool for Webpack frontend JavaScript bundles.", | ||
@@ -20,6 +20,7 @@ "main": "lib/index.js", | ||
"scripts": { | ||
"benchmark": "node benchmarks/index.js", | ||
"lint-server": "eslint --color lib bin", | ||
"lint-test": "eslint --color 'test/**/*.spec.js'", | ||
"lint": "npm run lint-server && npm run lint-test", | ||
"check": "npm run lint && npm run test", | ||
"check": "npm run lint && npm run test && npm run benchmark", | ||
"test": "mocha 'test/**/*.spec.js'" | ||
@@ -31,5 +32,5 @@ }, | ||
"babylon": "^6.7.0", | ||
"bluebird": "^3.5.0", | ||
"lodash": "^4.6.1", | ||
"mkdirp": "^0.5.1", | ||
"pify": "^2.3.0", | ||
"uglify-js": "^2.6.2", | ||
@@ -44,2 +45,4 @@ "workerpool": "https://github.com/FormidableLabs/workerpool#71d4e17", | ||
"babel-eslint": "^7.2.1", | ||
"beautify-benchmark": "^0.2.4", | ||
"benchmark": "^2.1.4", | ||
"chai": "^3.5.0", | ||
@@ -51,5 +54,5 @@ "eslint": "^3.18.0", | ||
"eslint-plugin-lodash-fp": "^2.1.3", | ||
"inspectpack-test-fixtures": "^1.0.0", | ||
"inspectpack-test-fixtures": "^1.1.0", | ||
"mocha": "^3.2.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
210427
37
2849
11
6
+ Addedpify@^2.3.0
- Removedbluebird@^3.5.0
- Removedbluebird@3.7.2(transitive)