Socket
Socket
Sign inDemoInstall

table

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

table - npm Package Compare versions

Comparing version 6.3.2 to 6.3.3

8

dist/alignString.js

@@ -6,4 +6,2 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const is_number_object_1 = __importDefault(require("is-number-object"));
const is_string_1 = __importDefault(require("is-string"));
const string_width_1 = __importDefault(require("string-width"));

@@ -37,6 +35,6 @@ const alignLeft = (subject, width) => {

exports.default = (subject, containerWidth, alignment) => {
if (!is_string_1.default(subject)) {
if (typeof subject !== 'string') {
throw new TypeError('Subject parameter value must be a string.');
}
if (!is_number_object_1.default(containerWidth)) {
if (typeof containerWidth !== 'number') {
throw new TypeError('Container width parameter value must be a number.');

@@ -48,3 +46,3 @@ }

}
if (!is_string_1.default(alignment)) {
if (typeof alignment !== 'string') {
throw new TypeError('Alignment parameter value must be a string.');

@@ -51,0 +49,0 @@ }

@@ -6,6 +6,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const is_string_1 = __importDefault(require("is-string"));
const wrapCell_1 = __importDefault(require("./wrapCell"));
exports.default = (value, columnWidth, useWrapWord = false) => {
if (!is_string_1.default(value)) {
if (typeof value !== 'string') {
throw new TypeError('Value must be a string.');

@@ -12,0 +11,0 @@ }

@@ -6,4 +6,2 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const is_boolean_object_1 = __importDefault(require("is-boolean-object"));
const is_number_object_1 = __importDefault(require("is-number-object"));
const calculateCellHeight_1 = __importDefault(require("./calculateCellHeight"));

@@ -19,6 +17,6 @@ /**

cells.forEach((value, index1) => {
if (!is_number_object_1.default(config.columns[index1].width)) {
if (typeof config.columns[index1].width !== 'number') {
throw new TypeError('column[index].width must be a number.');
}
if (!is_boolean_object_1.default(config.columns[index1].wrapWord)) {
if (config.columns[index1].wrapWord !== true && config.columns[index1].wrapWord !== false) {
throw new TypeError('column[index].wrapWord must be a boolean.');

@@ -25,0 +23,0 @@ }

@@ -9,5 +9,2 @@ {

"ajv": "^8.0.1",
"is-boolean-object": "^1.1.0",
"is-number-object": "^1.0.4",
"is-string": "^1.0.5",
"lodash.clonedeep": "^4.5.0",

@@ -41,4 +38,2 @@ "lodash.flatten": "^4.4.0",

"lodash.mapvalues": "^4.6.0",
"lodash.random": "^3.2.0",
"lodash.sample": "^4.2.1",
"mkdirp": "^1.0.4",

@@ -100,3 +95,3 @@ "mocha": "^8.2.1",

},
"version": "6.3.2"
"version": "6.3.3"
}
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