New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

myzod

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

myzod - npm Package Compare versions

Comparing version 1.0.0-alpha.4 to 1.0.0-alpha.5

50

libs/index.d.ts

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

import { StringType, NumberType, LiteralType, ObjectType, ArrayType, UnionType, PartialType, TupleType, DateType, LazyType, UndefinedType, NullType, EnumType, BooleanType, UnknownType, Literal, ObjectShape, ObjectOptions, AnyType, UnionOptions, PartialOpts, IntersectionResult, DeepPartialShape, PartialShape, Eval, ToUnion, keySignature, StringTypes, OptionalType, BigIntOptions, BigIntType } from './types';
import { ValidationError, Type, StringType, NumberType, LiteralType, ObjectType, ArrayType, UnionType, PartialType, TupleType, DateType, LazyType, UndefinedType, NullType, EnumType, BooleanType, UnknownType, Literal, ObjectShape, ObjectOptions, AnyType, UnionOptions, PartialOpts, IntersectionResult, DeepPartialShape, PartialShape, Eval, ToUnion, keySignature, StringTypes, OptionalType, BigIntOptions, BigIntType } from './types';
export { ValidationError, Type, Infer, keySignature } from './types';

@@ -61,3 +61,49 @@ export declare const string: (opts?: Partial<{

export { undefinedValue as undefined, nullValue as null, enumValue as enum };
declare const _default: any;
declare const _default: {
Type: typeof Type;
string: (opts?: Partial<{
pattern: RegExp;
min: number;
max: number;
predicate: (value: string) => boolean;
predicateErrMsg: string;
valid: string[];
}> | undefined) => StringType;
boolean: () => BooleanType;
number: (opts?: Partial<{
min: number;
max: number;
coerce: boolean;
}> | undefined) => NumberType;
bigint: (opts?: BigIntOptions | undefined) => BigIntType;
unknown: () => UnknownType;
literal: <T extends Literal>(literal: T) => LiteralType<T>;
literals: <T_1 extends Literal[]>(...args: T_1) => UnionType<ToLiteralUnion<T_1>>;
date: () => DateType;
object: <T_2 extends ObjectShape>(shape: T_2, opts?: ObjectOptions | undefined) => ObjectType<T_2>;
array: <T_3 extends AnyType>(schema: T_3, opts?: Partial<{
length: number;
min: number;
max: number;
unique: boolean;
}> | undefined) => ArrayType<T_3>;
union: <T_4 extends AnyType[]>(schemas: T_4, opts?: UnionOptions | undefined) => UnionType<T_4>;
intersection: <T_5 extends AnyType, K extends AnyType>(l: T_5, r: K) => IntersectionResult<T_5, K>;
record: <T_6 extends AnyType>(schema: T_6) => ObjectType<{
[keySignature]: T_6;
}>;
dictionary: <T_7 extends AnyType>(schema: T_7) => ObjectType<{
[keySignature]: T_7 extends OptionalType<any> ? T_7 : OptionalType<T_7>;
}>;
tuple: <T_8 extends [] | [AnyType, ...AnyType[]]>(schemas: T_8) => TupleType<T_8>;
partial: typeof partial;
pick: typeof pick;
omit: typeof omit;
lazy: <T_9 extends () => AnyType>(fn: T_9) => LazyType<T_9>;
undefined: () => UndefinedType;
null: () => NullType;
enum: <T_10>(e: T_10) => EnumType<T_10>;
ValidationError: typeof ValidationError;
keySignature: symbol;
};
export default _default;

@@ -51,2 +51,28 @@ "use strict";

// Support default imports
exports.default = Object.assign({}, this.exports);
exports.default = {
Type: types_1.Type,
string: exports.string,
boolean: exports.boolean,
number: exports.number,
bigint: exports.bigint,
unknown: exports.unknown,
literal: exports.literal,
literals: exports.literals,
date: exports.date,
object: exports.object,
array: exports.array,
union: exports.union,
intersection: exports.intersection,
record: exports.record,
dictionary: exports.dictionary,
tuple: exports.tuple,
partial,
pick,
omit,
lazy: exports.lazy,
undefined: undefinedValue,
null: nullValue,
enum: enumValue,
ValidationError: types_1.ValidationError,
keySignature: types_1.keySignature,
};

2

package.json
{
"name": "myzod",
"version": "1.0.0-alpha.4",
"version": "1.0.0-alpha.5",
"description": "",

@@ -5,0 +5,0 @@ "main": "./libs/index.js",

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