Socket
Socket
Sign inDemoInstall

table

Package Overview
Dependencies
17
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.7.0 to 3.7.1

2

dist/alignString.js

@@ -86,2 +86,4 @@ 'use strict';

if (subjectWidth > containerWidth) {
// console.log('subjectWidth', subjectWidth, 'containerWidth', containerWidth, 'subject', subject);
throw new Error('Subject parameter value width cannot be greater than the container width.');

@@ -88,0 +90,0 @@ }

3

dist/wrapWord.js

@@ -37,3 +37,4 @@ 'use strict';

re = new RegExp('^.{1,' + size + '}(\\s+|$|\\\\|/|,|\\.|;|\-|_)');
// https://regex101.com/r/gY5kZ1/1
re = new RegExp('(^.{1,' + size + '}(\\s+|$))|(^.{1,' + (size - 1) + '}(\\\\|/|_|\\.|,|;|\-))');

@@ -40,0 +41,0 @@ do {

{
"name": "table",
"version": "3.7.0",
"version": "3.7.1",
"description": "Formats data into a string table.",

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

@@ -76,2 +76,4 @@ import _ from 'lodash';

if (subjectWidth > containerWidth) {
// console.log('subjectWidth', subjectWidth, 'containerWidth', containerWidth, 'subject', subject);
throw new Error(`Subject parameter value width cannot be greater than the container width.`);

@@ -78,0 +80,0 @@ }

@@ -20,3 +20,4 @@ import _ from 'lodash';

re = new RegExp('^.{1,' + size + '}(\\s+|$|\\\\|/|,|\\.|;|\-|_)');
// https://regex101.com/r/gY5kZ1/1
re = new RegExp('(^.{1,' + size + '}(\\s+|$))|(^.{1,' + (size - 1) + '}(\\\\|/|_|\\.|,|;|\-))')

@@ -23,0 +24,0 @@ do {

@@ -30,2 +30,7 @@ import {

});
context('a special character after the length of a container', () => {
it('does not include special character', () => {
expect(wrapWord('aa-bbbbb-cccc', 5)).to.deep.equal(['aa-', 'bbbbb', '-cccc']);
});
});
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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