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

de-dupe

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

de-dupe - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

yarn.lock

8

cli.js

@@ -75,3 +75,11 @@ 'use strict';

var stringKeysToReplace = [];
var minLength = typeof this.options.minLength === 'undefined' ? -1 : this.options.minLength;
var minInstances = typeof this.options.minInstances === 'undefined' ? -1 : this.options.minInstances;
stringMap.forEach(function (values, key) {
if (key.length < minLength) {
return;
}
if (values.length < minInstances) {
return;
}
values = values.sort(function (a, b) {

@@ -78,0 +86,0 @@ var start1 = a.getStart();

@@ -73,3 +73,11 @@ 'use strict';

var stringKeysToReplace = [];
var minLength = typeof this.options.minLength === 'undefined' ? -1 : this.options.minLength;
var minInstances = typeof this.options.minInstances === 'undefined' ? -1 : this.options.minInstances;
stringMap.forEach(function (values, key) {
if (key.length < minLength) {
return;
}
if (values.length < minInstances) {
return;
}
values = values.sort(function (a, b) {

@@ -76,0 +84,0 @@ var start1 = a.getStart();

2

package.json
{
"name": "de-dupe",
"bin": ".bin/de-dupe",
"version": "1.0.0",
"version": "1.0.1",
"description": "Deduplicate strings from javascript assets",

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

@@ -132,3 +132,13 @@ import {

const minLength = typeof this.options.minLength === 'undefined' ? -1 : this.options.minLength;
const minInstances = typeof this.options.minInstances === 'undefined' ? -1 : this.options.minInstances;
stringMap.forEach((values, key) => {
if (key.length < minLength) {
return;
}
if (values.length < minInstances) {
return;
}
values = values.sort((a, b) => {

@@ -135,0 +145,0 @@ const start1 = a.getStart();

@@ -75,3 +75,11 @@ 'use strict';

var stringKeysToReplace = [];
var minLength = typeof this.options.minLength === 'undefined' ? -1 : this.options.minLength;
var minInstances = typeof this.options.minInstances === 'undefined' ? -1 : this.options.minInstances;
stringMap.forEach(function (values, key) {
if (key.length < minLength) {
return;
}
if (values.length < minInstances) {
return;
}
values = values.sort(function (a, b) {

@@ -78,0 +86,0 @@ var start1 = a.getStart();

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