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

yup

Package Overview
Dependencies
Maintainers
1
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yup - npm Package Compare versions

Comparing version 0.32.3 to 0.32.4

16

CHANGELOG.md

@@ -0,1 +1,17 @@

## [0.32.4](https://github.com/jquense/yup/compare/v0.32.3...v0.32.4) (2020-12-07)
### Bug Fixes
* **types:** rm base pick/omit types as they conflict with more specific ones ([14e2c8c](https://github.com/jquense/yup/commit/14e2c8c))
### Features
* add additional functions to Lazy class ([#1148](https://github.com/jquense/yup/issues/1148)) ([ecad1a3](https://github.com/jquense/yup/commit/ecad1a3))
## [0.32.3](https://github.com/jquense/yup/compare/v0.32.2...v0.32.3) (2020-12-07)

@@ -2,0 +18,0 @@

2

es/Lazy.d.ts

@@ -25,3 +25,5 @@ import type { Callback, ValidateOptions } from './types';

describe(): any;
isValid(value: any, options?: ValidateOptions<TContext>): Promise<boolean>;
isValidSync(value: any, options?: ValidateOptions<TContext>): boolean;
}
export default Lazy;

@@ -49,4 +49,12 @@ import isSchema from './util/isSchema';

isValid(value, options) {
return this._resolve(value, options).isValid(value, options);
}
isValidSync(value, options) {
return this._resolve(value, options).isValidSync(value, options);
}
}
export default Lazy;

4

es/object.d.ts

@@ -42,4 +42,4 @@ import { MixedLocale } from './locale';

shape<TNextShape extends ObjectShape>(additions: TNextShape, excludes?: [string, string][]): ObjectSchema<Assign<TShape, TNextShape>, TContext, TypeOfShape<Assign<TShape, TNextShape>> | Optionals<TIn>>;
pick<TKey extends keyof TShape>(keys: TKey[]): ObjectSchema<Pick<TShape, TKey>, TContext, TypeOfShape<Pick<TShape, TKey>> | Optionals<TIn>, AssertsShape<Pick<TShape, TKey>> | Optionals<TOut>>;
omit<TKey extends keyof TShape>(keys: TKey[]): ObjectSchema<Omit<TShape, TKey>, TContext, TypeOfShape<Omit<TShape, TKey>> | Optionals<TIn>, AssertsShape<Omit<TShape, TKey>> | Optionals<TOut>>;
pick(keys: string[]): any;
omit(keys: string[]): any;
from(from: string, to: keyof TShape, alias?: boolean): this;

@@ -46,0 +46,0 @@ noUnknown(noAllow?: boolean, message?: import("./types").Message<{}>): this;

@@ -25,3 +25,5 @@ import type { Callback, ValidateOptions } from './types';

describe(): any;
isValid(value: any, options?: ValidateOptions<TContext>): Promise<boolean>;
isValidSync(value: any, options?: ValidateOptions<TContext>): boolean;
}
export default Lazy;

@@ -60,2 +60,10 @@ "use strict";

isValid(value, options) {
return this._resolve(value, options).isValid(value, options);
}
isValidSync(value, options) {
return this._resolve(value, options).isValidSync(value, options);
}
}

@@ -62,0 +70,0 @@

@@ -42,4 +42,4 @@ import { MixedLocale } from './locale';

shape<TNextShape extends ObjectShape>(additions: TNextShape, excludes?: [string, string][]): ObjectSchema<Assign<TShape, TNextShape>, TContext, TypeOfShape<Assign<TShape, TNextShape>> | Optionals<TIn>>;
pick<TKey extends keyof TShape>(keys: TKey[]): ObjectSchema<Pick<TShape, TKey>, TContext, TypeOfShape<Pick<TShape, TKey>> | Optionals<TIn>, AssertsShape<Pick<TShape, TKey>> | Optionals<TOut>>;
omit<TKey extends keyof TShape>(keys: TKey[]): ObjectSchema<Omit<TShape, TKey>, TContext, TypeOfShape<Omit<TShape, TKey>> | Optionals<TIn>, AssertsShape<Omit<TShape, TKey>> | Optionals<TOut>>;
pick(keys: string[]): any;
omit(keys: string[]): any;
from(from: string, to: keyof TShape, alias?: boolean): this;

@@ -46,0 +46,0 @@ noUnknown(noAllow?: boolean, message?: import("./types").Message<{}>): this;

{
"name": "yup",
"version": "0.32.3",
"version": "0.32.4",
"description": "Dead simple Object schema validation",

@@ -5,0 +5,0 @@ "main": "lib/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