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.2 to 4.0.3

3

dist/index.d.ts

@@ -1,3 +0,2 @@

export { NullIfOptional, FalseIfOptional, EmptyIfOptional, DeepPartial, UnknownObject } from "./types";
export { SchemaOptions, ValidateFlags, Schema, SchemaType, Schemas, SchemasType } from "./Schema";
export * from "./Schema";
export * from "./schemas/ArraySchema";

@@ -4,0 +3,0 @@ export * from "./schemas/BooleanSchema";

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

Object.defineProperty(exports, "__esModule", { value: true });
// Export all schemas.
// Export schemas.
__export(require("./schemas/ArraySchema"));

@@ -9,0 +9,0 @@ __export(require("./schemas/BooleanSchema"));

@@ -61,4 +61,4 @@ import type { Invalid } from "./Invalid";

/** Convert a `Schemas` into its resulting type. */
export declare type SchemasType<S extends Schemas> = Readonly<{
export declare type SchemasType<S extends Schemas> = {
[K in keyof S]: SchemaType<S[K]>;
}>;
};
{
"name": "schemaglobin",
"description": "Validate user-entered data.",
"version": "4.0.2",
"version": "4.0.3",
"repository": "https://github.com/dhoulb/schemaglobin",

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

@@ -1,6 +0,5 @@

// Export all types.
export { NullIfOptional, FalseIfOptional, EmptyIfOptional, DeepPartial, UnknownObject } from "./types";
export { SchemaOptions, ValidateFlags, Schema, SchemaType, Schemas, SchemasType } from "./Schema";
// Export schema.
export * from "./Schema";
// Export all schemas.
// Export schemas.
export * from "./schemas/ArraySchema";

@@ -7,0 +6,0 @@ export * from "./schemas/BooleanSchema";

@@ -64,2 +64,2 @@ import type { Invalid } from "./Invalid";

/** Convert a `Schemas` into its resulting type. */
export type SchemasType<S extends Schemas> = Readonly<{ [K in keyof S]: SchemaType<S[K]> }>;
export type SchemasType<S extends Schemas> = { [K in keyof S]: SchemaType<S[K]> };

@@ -1,2 +0,2 @@

import { map, string, number, boolean, Schema, NumberSchema, MapSchema, Invalid } from "../../src";
import { map, string, number, boolean, NumberSchema, MapSchema, Invalid } from "../../src";

@@ -3,0 +3,0 @@ // Tests.

@@ -1,2 +0,3 @@

import { object, number, StringSchema, NumberSchema, BooleanSchema, ObjectSchema, Invalid, DeepPartial } from "../../src";
import { object, number, StringSchema, NumberSchema, BooleanSchema, ObjectSchema, Invalid } from "../../src";
import { DeepPartial } from "../../src/types";

@@ -3,0 +4,0 @@ // Tests.

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