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.0 to 1.0.1

8

lib/formatters.js

@@ -49,3 +49,9 @@ "use strict";

if ((0, _moment.default)(departureDate).diff((0, _moment.default)(), 'seconds') <= 0) {
const momentDepartureDate = (0, _moment.default)(departureDate);
if (!momentDepartureDate.isValid()) {
throw new ValidationError('departure date is invalid');
}
if (momentDepartureDate.diff((0, _moment.default)(), 'seconds') <= 0) {
throw new ValidationError('departure date must be in the future');

@@ -52,0 +58,0 @@ }

6

package.json
{
"name": "@bluelilo/search-utils",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -8,6 +8,6 @@ "scripts": {

"prettier": "prettier --check 'src/**/*.js'",
"build": "rm -rf lib && babel src --out-dir lib",
"build": "rm -rf lib && babel src --out-dir lib --ignore '**/*.spec.js'",
"release": "release-it",
"prepublish": "npm run lint && npm run prettier && npm run build",
"test": "jest --coverage"
"test": "jest --coverage src"
},

@@ -14,0 +14,0 @@ "repository": {

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