Socket
Socket
Sign inDemoInstall

@mmit/validate

Package Overview
Dependencies
1
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.7 to 0.3.8

2

lib/validate/messages.js

@@ -32,3 +32,3 @@ export const DEFAULT_IS_TRUE_MESSAGE = () => 'The validated expression is false';

export const DEFAULT_MATCHES_JWT = (token) => () => `'${token}' is not a valid WebToken!`;
export const DEFAULT_MATCHES_LOCATION = (latitude, longitude) => () => `'${latitude}'/'${longitude}' is no a valid Location`;
export const DEFAULT_MATCHES_LOCATION = (latitude, longitude) => () => `'${latitude}'/'${longitude}' is not a valid Location`;
//# sourceMappingURL=messages.js.map
{
"name": "@mmit/validate",
"author": "Mike Mitterer",
"version": "0.3.7",
"version": "0.3.8",
"description": "Object validation for/in TS",

@@ -6,0 +6,0 @@ "keywords": [

@@ -75,2 +75,2 @@ type ErrorMessage = () => string;

export const DEFAULT_MATCHES_LOCATION: (latitude: number, longitude: number) => ErrorMessage = (latitude: number, longitude: number): ErrorMessage => (): string =>
`'${latitude}'/'${longitude}' is no a valid Location`;
`'${latitude}'/'${longitude}' is not a valid Location`;

@@ -321,3 +321,3 @@ /* tslint:disable:max-line-length */

expect((): { } => validate.isLocation(value.latitude, value.longitude))
.toThrow(new ArgumentError(`'${value.latitude}'/'${value.longitude}' is no a valid Location`))
.toThrow(new ArgumentError(`'${value.latitude}'/'${value.longitude}' is not a valid Location`))
})

@@ -324,0 +324,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc