@stdlib/string-lowercase
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -24,2 +24,3 @@ /** | ||
var isString = require( '@stdlib/assert-is-string' ).isPrimitive; | ||
var format = require( '@stdlib/string-format' ); | ||
@@ -33,3 +34,3 @@ | ||
* @param {string} str - string to convert | ||
* @throws {TypeError} must provide a primitive string | ||
* @throws {TypeError} must provide a string | ||
* @returns {string} lowercase string | ||
@@ -43,3 +44,3 @@ * | ||
if ( !isString( str ) ) { | ||
throw new TypeError( 'invalid argument. Must provide a primitive string. Value: `'+str+'`.' ); | ||
throw new TypeError( format( 'invalid argument. Must provide a string. Value: `%s`.', str ) ); | ||
} | ||
@@ -46,0 +47,0 @@ return str.toLowerCase(); |
{ | ||
"name": "@stdlib/string-lowercase", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Convert a string to lowercase.", | ||
@@ -47,3 +47,4 @@ "license": "Apache-2.0", | ||
"@stdlib/process-read-stdin": "^0.0.x", | ||
"@stdlib/streams-node-stdin": "^0.0.x" | ||
"@stdlib/streams-node-stdin": "^0.0.x", | ||
"@stdlib/string-format": "^0.0.x" | ||
}, | ||
@@ -50,0 +51,0 @@ "devDependencies": { |
@@ -210,4 +210,4 @@ <!-- | ||
[test-image]: https://github.com/stdlib-js/string-lowercase/actions/workflows/test.yml/badge.svg | ||
[test-url]: https://github.com/stdlib-js/string-lowercase/actions/workflows/test.yml | ||
[test-image]: https://github.com/stdlib-js/string-lowercase/actions/workflows/test.yml/badge.svg?branch=v0.0.9 | ||
[test-url]: https://github.com/stdlib-js/string-lowercase/actions/workflows/test.yml?query=branch:v0.0.9 | ||
@@ -224,2 +224,9 @@ [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/string-lowercase/main.svg | ||
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg | ||
[chat-url]: https://gitter.im/stdlib-js/stdlib/ | ||
[stdlib]: https://github.com/stdlib-js/stdlib | ||
[stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors | ||
[umd]: https://github.com/umdjs/umd | ||
@@ -231,10 +238,4 @@ [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules | ||
[esm-url]: https://github.com/stdlib-js/string-lowercase/tree/esm | ||
[branches-url]: https://github.com/stdlib-js/string-lowercase/blob/main/branches.md | ||
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg | ||
[chat-url]: https://gitter.im/stdlib-js/stdlib/ | ||
[stdlib]: https://github.com/stdlib-js/stdlib | ||
[stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors | ||
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/string-lowercase/main/LICENSE | ||
@@ -241,0 +242,0 @@ |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
1
157
253
25136
6
1
+ Added@stdlib/string-format@^0.0.x