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.5 to 0.32.6

11

CHANGELOG.md

@@ -0,1 +1,12 @@

## [0.32.6](https://github.com/jquense/yup/compare/v0.32.5...v0.32.6) (2020-12-08)
### Bug Fixes
* mixed() is the the base class ([7f8591d](https://github.com/jquense/yup/commit/7f8591d)), closes [#1156](https://github.com/jquense/yup/issues/1156)
## [0.32.5](https://github.com/jquense/yup/compare/v0.32.4...v0.32.5) (2020-12-07)

@@ -2,0 +13,0 @@

14

es/mixed.d.ts

@@ -5,9 +5,3 @@ import type { MixedLocale } from './locale';

import BaseSchema from './schema';
export declare function create<TType = any>(): MixedSchema<TType | undefined, Record<string, any>, TType | undefined>;
export declare namespace create {
var prototype: MixedSchema<any, any, any>;
}
export default class MixedSchema<TType = any, TContext = AnyObject, TOut = TType> extends BaseSchema<TType, TContext, TOut> {
}
export default interface MixedSchema<TType = any, TContext = AnyObject, TOut = TType> {
declare class MixedSchema<TType = any, TContext = AnyObject, TOut = TType> extends BaseSchema<TType, TContext, TOut> {
default<TNextDefault extends Maybe<TType>>(def: TNextDefault | (() => TNextDefault)): TNextDefault extends undefined ? MixedSchema<TType | undefined, TContext> : MixedSchema<Defined<TType>, TContext>;

@@ -22,1 +16,7 @@ concat(schema: this): this;

}
declare const Mixed: typeof MixedSchema;
export default Mixed;
export declare function create<TType = any>(): MixedSchema<TType | undefined, Record<string, any>, TType | undefined>;
export declare namespace create {
var prototype: MixedSchema<any, any, any>;
}
import BaseSchema from './schema';
const Mixed = BaseSchema;
export default Mixed;
export function create() {
return new MixedSchema();
}
export default class MixedSchema extends BaseSchema {}
create.prototype = MixedSchema.prototype;
return new Mixed();
} // XXX: this is using the Base schema so that `addMethod(mixed)` works as a base class
create.prototype = Mixed.prototype;

@@ -5,9 +5,3 @@ import type { MixedLocale } from './locale';

import BaseSchema from './schema';
export declare function create<TType = any>(): MixedSchema<TType | undefined, Record<string, any>, TType | undefined>;
export declare namespace create {
var prototype: MixedSchema<any, any, any>;
}
export default class MixedSchema<TType = any, TContext = AnyObject, TOut = TType> extends BaseSchema<TType, TContext, TOut> {
}
export default interface MixedSchema<TType = any, TContext = AnyObject, TOut = TType> {
declare class MixedSchema<TType = any, TContext = AnyObject, TOut = TType> extends BaseSchema<TType, TContext, TOut> {
default<TNextDefault extends Maybe<TType>>(def: TNextDefault | (() => TNextDefault)): TNextDefault extends undefined ? MixedSchema<TType | undefined, TContext> : MixedSchema<Defined<TType>, TContext>;

@@ -22,1 +16,7 @@ concat(schema: this): this;

}
declare const Mixed: typeof MixedSchema;
export default Mixed;
export declare function create<TType = any>(): MixedSchema<TType | undefined, Record<string, any>, TType | undefined>;
export declare namespace create {
var prototype: MixedSchema<any, any, any>;
}

@@ -13,9 +13,11 @@ "use strict";

const Mixed = _schema.default;
var _default = Mixed;
exports.default = _default;
function create() {
return new MixedSchema();
}
return new Mixed();
} // XXX: this is using the Base schema so that `addMethod(mixed)` works as a base class
class MixedSchema extends _schema.default {}
exports.default = MixedSchema;
create.prototype = MixedSchema.prototype;
create.prototype = Mixed.prototype;
{
"name": "yup",
"version": "0.32.5",
"version": "0.32.6",
"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