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.6 to 4.0.7

2

dist/schemas/ObjectSchema.js

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

required(props) {
return new ObjectSchema({ props, required: true });
return new ObjectSchema({ props, required: true, value: {} });
},

@@ -104,0 +104,0 @@ optional(props) {

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

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

@@ -134,3 +134,3 @@ /* eslint-disable no-dupe-class-members */

required<S extends { [prop: string]: Schema }>(props: S): ObjectSchema<S, true> {
return new ObjectSchema({ props, required: true });
return new ObjectSchema({ props, required: true, value: {} as SchemasType<S> });
},

@@ -137,0 +137,0 @@ optional<S extends { [prop: string]: Schema }>(props: S): ObjectSchema<S, false> {

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