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

string-kit

Package Overview
Dependencies
Maintainers
1
Versions
221
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string-kit - npm Package Compare versions

Comparing version 0.18.2 to 0.18.3

20

lib/unicode.js

@@ -128,2 +128,18 @@ /*

// Return a string that does not exceed the character limit
unicode.truncateLength = unicode.truncate = ( str , limit ) => {
var position = 0 , length = 0 ;
for ( let char of str ) {
if ( length === limit ) { return str.slice( 0 , position ) ; }
length ++ ;
position += char.length ;
}
// The string remains unchanged
return str ;
} ;
// Return the width of a string in a terminal/monospace font

@@ -159,5 +175,3 @@ unicode.width = str => {

// Return a string that does not exceed the limit.
// Return a string that does not exceed the width limit (taking wide-char into considerations)
unicode.widthLimit = // DEPRECATED

@@ -164,0 +178,0 @@ unicode.truncateWidth = ( str , limit ) => {

2

package.json
{
"name": "string-kit",
"version": "0.18.2",
"version": "0.18.3",
"engines": {

@@ -5,0 +5,0 @@ "node": ">=14.15.0"

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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