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

schemaglobin

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

schemaglobin - npm Package Compare versions

Comparing version 4.0.3 to 4.0.4

2

dist/schemas/NumberSchema.js

@@ -121,3 +121,3 @@ "use strict";

exports.number = Object.assign((options = {}) => new NumberSchema(options), {
required: new NumberSchema({ required: true }),
required: new NumberSchema({ required: true, value: 0 }),
optional: new NumberSchema({ required: false }),

@@ -124,0 +124,0 @@ // Note: Timestamp is limited to four-digit years: 0000–9999

{
"name": "schemaglobin",
"description": "Validate user-entered data.",
"version": "4.0.3",
"version": "4.0.4",
"repository": "https://github.com/dhoulb/schemaglobin",

@@ -6,0 +6,0 @@ "author": "Dave Houlbrooke <dave@shax.com>",

@@ -166,3 +166,3 @@ import type { Schema, SchemaOptions } from "../Schema";

} = Object.assign(<T extends number, R extends boolean = false>(options: NumberOptions<T, R> = {}): NumberSchema<T, R> => new NumberSchema(options), {
required: new NumberSchema({ required: true }),
required: new NumberSchema({ required: true, value: 0 }),
optional: new NumberSchema({ required: false }),

@@ -169,0 +169,0 @@ // Note: Timestamp is limited to four-digit years: 0000–9999

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