Comparing version 6.3.2 to 6.3.3
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
6
27
0
116877
2599
- Removedis-boolean-object@^1.1.0
- Removedis-number-object@^1.0.4
- Removedis-string@^1.0.5
- Removedcall-bind@1.0.7(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedgopd@1.0.1(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhas-tostringtag@1.0.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedis-boolean-object@1.1.2(transitive)
- Removedis-number-object@1.0.7(transitive)
- Removedis-string@1.0.7(transitive)
- Removedset-function-length@1.2.2(transitive)