New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

just-prune

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

just-prune - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

3

index.js

@@ -19,3 +19,4 @@ module.exports = prune;

var remnantPlusOne = str.slice(0, Math.max(0, length - end.length) + 1);
return remnantPlusOne.slice(0, remnantPlusOne.lastIndexOf(' ') || 0) + end;
var lastSpace = Math.max(0, remnantPlusOne.lastIndexOf(' '));
return remnantPlusOne.slice(0, lastSpace) + end;
}
{
"name": "just-prune",
"version": "1.0.0",
"version": "1.0.1",
"description": "prune a string with whole words and a custom suffix",

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