Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bluelilo/search-utils

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bluelilo/search-utils - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

11

lib/formatters.js

@@ -143,7 +143,8 @@ "use strict";

if (starRating) {
starRating = Number(starRating);
if (!Number.isInteger(starRating) || starRating < 1 || starRating > 5) {
throw new ValidationError('starRating must be an integer from 1 to 5');
}
starRating = [].concat(starRating).map(Number);
starRating.forEach(starRating => {
if (!Number.isInteger(starRating) || starRating < 1 || starRating > 5) {
throw new ValidationError('starRating must be an integer from 1 to 5');
}
});
}

@@ -150,0 +151,0 @@

{
"name": "@bluelilo/search-utils",
"version": "1.0.1",
"version": "1.1.0",
"description": "",

@@ -5,0 +5,0 @@ "scripts": {

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