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

@types/joi

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/joi - npm Package Compare versions

Comparing version 10.6.1 to 10.6.2

15

joi v10/index.d.ts

@@ -11,2 +11,3 @@ // Type definitions for joi v10.6.0

// Youngrok Kim <https://github.com/rokoroku>
// Conan Lai <https://github.com/aconanlai>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -146,2 +147,13 @@ // TypeScript Version: 2.4

export interface WhenSchemaOptions {
/**
* the alternative schema type if the condition is true. Required if otherwise is missing.
*/
then?: SchemaLike;
/**
* the alternative schema type if the condition is false. Required if then is missing
*/
otherwise?: SchemaLike;
}
export interface ReferenceOptions {

@@ -332,2 +344,3 @@ separator?: string;

when(ref: Reference, options: WhenOptions): AlternativesSchema;
when(ref: Schema, options: WhenSchemaOptions): AlternativesSchema;

@@ -884,2 +897,3 @@ /**

when(ref: Reference, options: WhenOptions): this;
when(ref: Schema, options: WhenSchemaOptions): this;
}

@@ -1167,2 +1181,3 @@

export function when(ref: Reference, options: WhenOptions): AlternativesSchema;
export function when(ref: Schema, options: WhenSchemaOptions): AlternativesSchema;

@@ -1169,0 +1184,0 @@ /**

9

joi v10/package.json
{
"name": "@types/joi",
"version": "10.6.1",
"version": "10.6.2",
"description": "TypeScript definitions for joi",

@@ -46,2 +46,7 @@ "license": "MIT",

"githubUsername": "rokoroku"
},
{
"name": "Conan Lai",
"url": "https://github.com/aconanlai",
"githubUsername": "aconanlai"
}

@@ -56,4 +61,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "871dc9c15c39f03305b26dd273863770617d03863a4f4dd24d18725f2c3999aa",
"typesPublisherContentHash": "bfac8078c155397178f7c43cf87c24e20f57f4d405b4303fde202db4927b4ea7",
"typeScriptVersion": "2.4"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Wed, 06 Dec 2017 19:31:49 GMT
* Last updated: Thu, 19 Apr 2018 23:47:49 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by Bart van der Schoor <https://github.com/Bartvds>, Laurence Dougal Myers <https://github.com/laurence-myers>, Christopher Glantschnig <https://github.com/cglantschnig>, David Broder-Rodgers <https://github.com/DavidBR-SW>, Gael Magnan de Bornier <https://github.com/GaelMagnan>, Rytis Alekna <https://github.com/ralekna>, Pavel Ivanov <https://github.com/schfkt>, Youngrok Kim <https://github.com/rokoroku>.
These definitions were written by Bart van der Schoor <https://github.com/Bartvds>, Laurence Dougal Myers <https://github.com/laurence-myers>, Christopher Glantschnig <https://github.com/cglantschnig>, David Broder-Rodgers <https://github.com/DavidBR-SW>, Gael Magnan de Bornier <https://github.com/GaelMagnan>, Rytis Alekna <https://github.com/ralekna>, Pavel Ivanov <https://github.com/schfkt>, Youngrok Kim <https://github.com/rokoroku>, Conan Lai <https://github.com/aconanlai>.

Sorry, the diff of this file is not supported yet

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