Socket
Socket
Sign inDemoInstall

@types/passport

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/passport - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

36

passport/index.d.ts

@@ -13,3 +13,3 @@ // Type definitions for Passport 1.0

import { IncomingMessage } from 'http';
import { IncomingMessage } from "http";

@@ -94,3 +94,3 @@ declare global {

import express = require('express');
import express = require("express");

@@ -627,11 +627,11 @@ declare namespace passport {

*/
Authenticator: { new (): Authenticator };
Authenticator: { new(): Authenticator };
/**
* Create a new `Authenticator` object.
*/
Passport: PassportStatic['Authenticator'];
Passport: PassportStatic["Authenticator"];
/**
* Creates an instance of `Strategy`.
*/
Strategy: { new (): Strategy & StrategyCreatedStatic };
Strategy: { new(): Strategy & StrategyCreatedStatic };
strategies: {

@@ -672,4 +672,4 @@ /**

SessionStrategy: {
new (deserializeUser: DeserializeUserFunction): SessionStrategy;
new (options: SessionStrategyOptions, deserializeUser: DeserializeUserFunction): SessionStrategy;
new(deserializeUser: DeserializeUserFunction): SessionStrategy;
new(options: SessionStrategyOptions, deserializeUser: DeserializeUserFunction): SessionStrategy;
};

@@ -694,3 +694,3 @@ };

*/
readonly name: 'session';
readonly name: "session";
/**

@@ -726,3 +726,3 @@ * Authenticate request based on current session data.

*/
authenticate(req: IncomingMessage, options?: Pick<AuthenticateOptions, 'pauseStream'>): void;
authenticate(req: IncomingMessage, options?: Pick<AuthenticateOptions, "pauseStream">): void;
}

@@ -785,17 +785,17 @@

| {
familyName: string;
givenName: string;
middleName?: string | undefined;
}
familyName: string;
givenName: string;
middleName?: string | undefined;
}
| undefined;
emails?:
| Array<{
value: string;
type?: string | undefined;
}>
value: string;
type?: string | undefined;
}>
| undefined;
photos?:
| Array<{
value: string;
}>
value: string;
}>
| undefined;

@@ -802,0 +802,0 @@ }

{
"name": "@types/passport",
"version": "1.0.12",
"version": "1.0.13",
"description": "TypeScript definitions for Passport",

@@ -55,4 +55,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport",

},
"typesPublisherContentHash": "6a4620746face1f14c30cb75cd941d37e259cdb72ba08ad6f49a2d40416f6414",
"typeScriptVersion": "4.2"
"typesPublisherContentHash": "0c796288b8bc20bbbbcde57bbb9e8651e6f8eee32ed57ce2482a80bc1f478754",
"typeScriptVersion": "4.5"
}

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

### Additional Details
* Last updated: Thu, 16 Feb 2023 02:32:42 GMT
* Last updated: Sun, 24 Sep 2023 06:37:27 GMT
* Dependencies: [@types/express](https://npmjs.com/package/@types/express)

@@ -14,0 +14,0 @@ * Global values: none

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