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

inspectpack

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inspectpack - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

benchmarks/index.js

2

lib/actions/duplicates.js

@@ -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

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