Socket
Socket
Sign inDemoInstall

pad

Package Overview
Dependencies
3
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.2 to 2.2.3

4

CHANGELOG.md
# Changelog
## Version 2.2.3
* wcwidth: pass configuration
## Version 2.2.2

@@ -5,0 +9,0 @@

2

lib/es5/index.js

@@ -48,3 +48,3 @@ "use strict";

padlength = options.fixed_width ? length - (textnocolors || text).length : length - wcwidth(textnocolors || text, options.wcwidth_options);
padlength = options.fixed_width ? length - (textnocolors || text).length : length - wcwidth.config(options.wcwidth_options)(textnocolors || text);

@@ -51,0 +51,0 @@ if (padlength < 0) {

@@ -35,3 +35,3 @@ // Generated by CoffeeScript 2.3.2

}
padlength = options.fixed_width ? length - (textnocolors || text).length : length - wcwidth(textnocolors || text, options.wcwidth_options);
padlength = options.fixed_width ? length - (textnocolors || text).length : length - wcwidth.config(options.wcwidth_options)(textnocolors || text);
if (padlength < 0) {

@@ -38,0 +38,0 @@ if (options.strip) {

{
"name": "pad",
"description": "Left and right string padding",
"version": "2.2.2",
"version": "2.2.3",
"author": "David Worms <david@adaltas.com>",

@@ -6,0 +6,0 @@ "contributors": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc