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

@types/parse

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/parse - npm Package Compare versions

Comparing version 2.10.17 to 2.10.18

32

parse/index.d.ts

@@ -24,2 +24,3 @@ // Type definitions for parse 2.10

// Jerome De Leon <https://github.com/JeromeDeLeon>
// Kent Robin Haugen <https://github.com/kentrh>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -184,2 +185,25 @@ // TypeScript Version: 3.5

/**
* Interface declaration for Authentication Providers
* https://parseplatform.org/Parse-SDK-JS/api/master/AuthProvider.html
*/
interface AuthProvider {
/**
* Called when _linkWith isn't passed authData. Handle your own authentication here.
*/
authenticate: () => void;
/**
* (Optional) Called when service is unlinked. Handle any cleanup here.
*/
deauthenticate?: () => void;
/**
* Unique identifier for this Auth Provider.
*/
getAuthType: () => string;
/**
* Called when auth data is syncronized. Can be used to determine if authData is still valid
*/
restoreAuthentication: () => boolean;
}
interface BaseAttributes {

@@ -855,4 +879,6 @@ createdAt: Date;

linkWith(user: User, authData: AuthData, options: FullOptions): Promise<User>;
_linkWith(provider: any, options: { authData?: AuthData }, saveOpts?: FullOptions): Promise<User>;
linkWith: (provider: string | AuthProvider, options: { authData?: AuthData }, saveOpts?: FullOptions) => Promise<this>;
_linkWith: (provider: string | AuthProvider, options: { authData?: AuthData }, saveOpts?: FullOptions) => Promise<this>;
_isLinked: (provider: string | AuthProvider) => boolean;
_unlinkFrom: (provider: string | AuthProvider, options?: FullOptions) => Promise<this>;
}

@@ -874,2 +900,4 @@ interface UserConstructor extends ObjectStatic {

enableUnsafeCurrentUser(): void;
logInWith: (provider: string | AuthProvider, options: { authData?: AuthData }, saveOpts?: FullOptions) => Promise<User>;
_registerAuthenticationProvider: (provider: AuthProvider) => void;
}

@@ -876,0 +904,0 @@ const User: UserConstructor;

9

parse/package.json
{
"name": "@types/parse",
"version": "2.10.17",
"version": "2.10.18",
"description": "TypeScript definitions for parse",

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

"githubUsername": "JeromeDeLeon"
},
{
"name": "Kent Robin Haugen",
"url": "https://github.com/kentrh",
"githubUsername": "kentrh"
}

@@ -132,4 +137,4 @@ ],

},
"typesPublisherContentHash": "ff8db34f08e649fba7f973b90f988098616b883c23587e3112bd6348428bc15f",
"typesPublisherContentHash": "669900a2fb6d70e0e623ca9e32f675f0de4ef4380b964d8ef9cc409c6edc960d",
"typeScriptVersion": "3.5"
}

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

### Additional Details
* Last updated: Wed, 26 Feb 2020 00:31:14 GMT
* Last updated: Tue, 03 Mar 2020 18:42:33 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/node](https://npmjs.com/package/@types/node)

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

# Credits
These definitions were written by [ Ullisen Media Group](https://github.com/ullisenmedia), [David Poetzsch-Heffter](https://github.com/dpoetzsch), [Cedric Kemp](https://github.com/jaeggerr), [Flavio Negrão](https://github.com/flavionegrao), [Wes Grimes](https://github.com/wesleygrimes), [Otherwise SAS](https://github.com/owsas), [Andrew Goldis](https://github.com/agoldis), [Alexandre Hétu Rivard](https://github.com/AlexandreHetu), [Diamond Lewis](https://github.com/dplewis), [Jong Eun Lee](https://github.com/yomybaby), [Colin Ulin](https://github.com/pocketcolin), [Robert Helms](https://github.com/rdhelms), [Julien Quere](https://github.com/jlnquere), [Yago Tomé](https://github.com/yagotome), [Thibault MOCELLIN](https://github.com/tybi), [Raschid JF Rafaelly](https://github.com/RaschidJFR), [Jeff Gu Kang](https://github.com/jeffgukang), [Bui Tan Loc](https://github.com/buitanloc), [Linus Unnebäck](https://github.com/LinusU), [Patrick O'Sullivan](https://github.com/REPTILEHAUS), and [Jerome De Leon](https://github.com/JeromeDeLeon).
These definitions were written by [ Ullisen Media Group](https://github.com/ullisenmedia), [David Poetzsch-Heffter](https://github.com/dpoetzsch), [Cedric Kemp](https://github.com/jaeggerr), [Flavio Negrão](https://github.com/flavionegrao), [Wes Grimes](https://github.com/wesleygrimes), [Otherwise SAS](https://github.com/owsas), [Andrew Goldis](https://github.com/agoldis), [Alexandre Hétu Rivard](https://github.com/AlexandreHetu), [Diamond Lewis](https://github.com/dplewis), [Jong Eun Lee](https://github.com/yomybaby), [Colin Ulin](https://github.com/pocketcolin), [Robert Helms](https://github.com/rdhelms), [Julien Quere](https://github.com/jlnquere), [Yago Tomé](https://github.com/yagotome), [Thibault MOCELLIN](https://github.com/tybi), [Raschid JF Rafaelly](https://github.com/RaschidJFR), [Jeff Gu Kang](https://github.com/jeffgukang), [Bui Tan Loc](https://github.com/buitanloc), [Linus Unnebäck](https://github.com/LinusU), [Patrick O'Sullivan](https://github.com/REPTILEHAUS), [Jerome De Leon](https://github.com/JeromeDeLeon), and [Kent Robin Haugen](https://github.com/kentrh).

@@ -157,2 +157,25 @@ /// <reference types="node" />

/**
* Interface declaration for Authentication Providers
* https://parseplatform.org/Parse-SDK-JS/api/master/AuthProvider.html
*/
interface AuthProvider {
/**
* Called when _linkWith isn't passed authData. Handle your own authentication here.
*/
authenticate: () => void;
/**
* (Optional) Called when service is unlinked. Handle any cleanup here.
*/
deauthenticate?: () => void;
/**
* Unique identifier for this Auth Provider.
*/
getAuthType: () => string;
/**
* Called when auth data is syncronized. Can be used to determine if authData is still valid
*/
restoreAuthentication: () => boolean;
}
interface BaseAttributes {

@@ -828,4 +851,5 @@ createdAt: Date;

linkWith(user: User, authData: AuthData, options: FullOptions): Promise<User>;
_linkWith(provider: any, options: { authData?: AuthData }, saveOpts?: FullOptions): Promise<User>;
linkWith: (provider: string | AuthProvider, options: { authData?: AuthData }, saveOpts?: FullOptions) => Promise<this>;
_isLinked: (provider: string | AuthProvider) => boolean;
_unlinkFrom: (provider: string | AuthProvider, options?: FullOptions) => Promise<this>;
}

@@ -847,2 +871,4 @@ interface UserConstructor extends ObjectStatic {

enableUnsafeCurrentUser(): void;
logInWith: (provider: string | AuthProvider, options: { authData?: AuthData }, saveOpts?: FullOptions) => Promise<User>;
_registerAuthenticationProvider: (provider: AuthProvider) => void;
}

@@ -849,0 +875,0 @@ const User: UserConstructor;

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