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

browserify-resolutions

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify-resolutions - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

11

index.js

@@ -187,2 +187,4 @@ var _ = require('lodash');

_.each(modules, function(sources) {
var resolvedSource;
if (sources.length < 2) {

@@ -193,5 +195,8 @@ // Found no dupes, bail.

// Let the first package we come across determine the version we resolve for.
// TODO?: Allow choosing a version, but that's more difficult.
var resolvedSource = sources.shift();
// Resolve the most shallow package (in terms of path length) as the "original".
// Otherwise, the bundle may be non-deterministic as the order of module-deps's
// package traversal currently isn't dependable.
// TODO?: Allow choosing a specific package version, but that's more difficult.
sources = _.sortBy(sources, 'length');
resolvedSource = sources.shift();
resolved[resolvedSource] = true;

@@ -198,0 +203,0 @@

{
"name": "browserify-resolutions",
"version": "1.0.4",
"version": "1.0.5",
"description": "A Browserify plugin that allows more explicit control of module deduping. It purges duplicate modules from the output bundle and prevents modules from loading several times.",

@@ -5,0 +5,0 @@ "main": "index.js",

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