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 1.11.6 to 1.11.7

160

parse v1.11/index.d.ts

@@ -17,3 +17,2 @@ // Type definitions for parse 1.11

declare namespace Parse {
let applicationId: string;

@@ -34,4 +33,3 @@ let javaScriptKey: string | undefined;

interface SuccessFailureOptions extends SuccessOption, ErrorOption {
}
interface SuccessFailureOptions extends SuccessOption, ErrorOption {}

@@ -62,4 +60,3 @@ interface SignUpOptions {

interface ScopeOptions extends SessionTokenOption, UseMasterKeyOption {
}
interface ScopeOptions extends SessionTokenOption, UseMasterKeyOption {}

@@ -91,4 +88,6 @@ interface SilentOption {

interface IPromise<T> {
then<U>(resolvedCallback: (...values: T[]) => IPromise<U>, rejectedCallback?: (reason: any) => IPromise<U>): IPromise<U>;
then<U>(
resolvedCallback: (...values: T[]) => IPromise<U>,
rejectedCallback?: (reason: any) => IPromise<U>,
): IPromise<U>;
then<U>(resolvedCallback: (...values: T[]) => U, rejectedCallback?: (reason: any) => IPromise<U>): IPromise<U>;

@@ -100,3 +99,2 @@ then<U>(resolvedCallback: (...values: T[]) => U, rejectedCallback?: (reason: any) => U): IPromise<U>;

class Promise<T> implements IPromise<T> {
static as<U>(resolvedValue: U): Promise<U>;

@@ -113,8 +111,8 @@ static error(error: any): Promise<any>;

resolve(result: any): void;
then<U>(resolvedCallback: (...values: T[]) => IPromise<U>,
rejectedCallback?: (reason: any) => IPromise<U>): IPromise<U>;
then<U>(resolvedCallback: (...values: T[]) => U,
rejectedCallback?: (reason: any) => IPromise<U>): IPromise<U>;
then<U>(resolvedCallback: (...values: T[]) => U,
rejectedCallback?: (reason: any) => U): IPromise<U>;
then<U>(
resolvedCallback: (...values: T[]) => IPromise<U>,
rejectedCallback?: (reason: any) => IPromise<U>,
): IPromise<U>;
then<U>(resolvedCallback: (...values: T[]) => U, rejectedCallback?: (reason: any) => IPromise<U>): IPromise<U>;
then<U>(resolvedCallback: (...values: T[]) => U, rejectedCallback?: (reason: any) => U): IPromise<U>;
catch<U>(resolvedCallback: (...values: T[]) => U, rejectedCallback?: (reason: any) => U): IPromise<U>;

@@ -152,3 +150,2 @@ }

class ACL extends BaseObject {
permissionsById: any;

@@ -186,3 +183,2 @@

/**

@@ -218,3 +214,2 @@ * A Parse.File is a local representation of a file that is saved to the Parse

class File {
constructor(name: string, data: any, type?: string);

@@ -224,3 +219,2 @@ name(): string;

save(options?: SuccessFailureOptions): Promise<File>;
}

@@ -252,3 +246,2 @@

class GeoPoint extends BaseObject {
latitude: number;

@@ -282,3 +275,2 @@ longitude: number;

class History {
handlers: any[];

@@ -303,3 +295,2 @@ interval: number;

class Relation<S extends Object = Object, T extends Object = Object> extends BaseObject {
parent: S;

@@ -349,3 +340,2 @@ key: string;

class Object extends BaseObject {
id: string;

@@ -410,13 +400,13 @@ createdAt: Date;

namespace Object {
interface DestroyOptions extends SuccessFailureOptions, WaitOption, ScopeOptions { }
interface DestroyOptions extends SuccessFailureOptions, WaitOption, ScopeOptions {}
interface DestroyAllOptions extends SuccessFailureOptions, ScopeOptions { }
interface DestroyAllOptions extends SuccessFailureOptions, ScopeOptions {}
interface FetchAllOptions extends SuccessFailureOptions, ScopeOptions { }
interface FetchAllOptions extends SuccessFailureOptions, ScopeOptions {}
interface FetchOptions extends SuccessFailureOptions, ScopeOptions { }
interface FetchOptions extends SuccessFailureOptions, ScopeOptions {}
interface SaveOptions extends SuccessFailureOptions, SilentOption, ScopeOptions, WaitOption { }
interface SaveOptions extends SuccessFailureOptions, SilentOption, ScopeOptions, WaitOption {}
interface SaveAllOptions extends SuccessFailureOptions, ScopeOptions { }
interface SaveAllOptions extends SuccessFailureOptions, ScopeOptions {}

@@ -433,3 +423,2 @@ interface SetOptions extends ErrorOption, SilentOption {

class Installation extends Object {
badge: any;

@@ -447,3 +436,2 @@ channels: string[];

appIdentifier: string;
}

@@ -475,3 +463,2 @@

class Collection<T> extends Events implements IBaseObject {
model: Object;

@@ -515,12 +502,11 @@ models: Object[];

interface CreateOptions extends SuccessFailureOptions, WaitOption, SilentOption, ScopeOptions {
}
interface CreateOptions extends SuccessFailureOptions, WaitOption, SilentOption, ScopeOptions {}
interface FetchOptions extends SuccessFailureOptions, SilentOption, ScopeOptions { }
interface FetchOptions extends SuccessFailureOptions, SilentOption, ScopeOptions {}
interface RemoveOptions extends SilentOption { }
interface RemoveOptions extends SilentOption {}
interface ResetOptions extends SilentOption { }
interface ResetOptions extends SilentOption {}
interface SortOptions extends SilentOption { }
interface SortOptions extends SilentOption {}
}

@@ -551,3 +537,2 @@

class Events {
static off(events: string[], callback?: Function, context?: any): Events;

@@ -564,3 +549,2 @@ static on(events: string[], callback?: Function, context?: any): Events;

unbind(eventName?: string, callback?: Function, context?: any): Events;
}

@@ -625,3 +609,2 @@

class Query<T extends Object = Object> extends BaseObject {
objectClass: any;

@@ -635,3 +618,3 @@ className: string;

aggregate(pipeline: Query.AggregationOptions|Query.AggregationOptions[]): Query<T>;
aggregate(pipeline: Query.AggregationOptions | Query.AggregationOptions[]): Query<T>;
addAscending(key: string): Query<T>;

@@ -680,4 +663,4 @@ addAscending(key: string[]): Query<T>;

withinGeoBox(key: string, southwest: GeoPoint, northeast: GeoPoint): Query<T>;
withinKilometers(key: string, point: GeoPoint, maxDistance: number): Query<T>;
withinMiles(key: string, point: GeoPoint, maxDistance: number): Query<T>;
withinKilometers(key: string, point: GeoPoint, maxDistance: number, sorted?: boolean): Query<T>;
withinMiles(key: string, point: GeoPoint, maxDistance: number, sorted?: boolean): Query<T>;
withinRadians(key: string, point: GeoPoint, maxDistance: number): Query<T>;

@@ -687,11 +670,11 @@ }

namespace Query {
interface EachOptions extends SuccessFailureOptions, ScopeOptions { }
interface CountOptions extends SuccessFailureOptions, ScopeOptions { }
interface FindOptions extends SuccessFailureOptions, ScopeOptions { }
interface FirstOptions extends SuccessFailureOptions, ScopeOptions { }
interface GetOptions extends SuccessFailureOptions, ScopeOptions { }
interface EachOptions extends SuccessFailureOptions, ScopeOptions {}
interface CountOptions extends SuccessFailureOptions, ScopeOptions {}
interface FindOptions extends SuccessFailureOptions, ScopeOptions {}
interface FirstOptions extends SuccessFailureOptions, ScopeOptions {}
interface GetOptions extends SuccessFailureOptions, ScopeOptions {}
// According to http://docs.parseplatform.org/rest/guide/#aggregate-queries
interface AggregationOptions {
group?: { objectId?: string, [key: string]: any };
group?: { objectId?: string; [key: string]: any };
match?: { [key: string]: any };

@@ -709,5 +692,5 @@ project?: { [key: string]: any };

interface FullTextOptions {
language?: string;
caseSensitive?: boolean;
diacriticSensitive?: boolean;
language?: string;
caseSensitive?: boolean;
diacriticSensitive?: boolean;
}

@@ -730,3 +713,2 @@ }

class Role extends Object {
constructor(name: string, acl: ACL);

@@ -767,3 +749,2 @@

class Router extends Events {
routes: Router.RouteMap;

@@ -804,3 +785,2 @@

class User extends Object {
static current(): User | undefined;

@@ -843,3 +823,2 @@ static signUp(username: string, password: string, attrs: any, options?: SignUpOptions): Promise<User>;

class View<T> extends Events {
model: any;

@@ -867,3 +846,2 @@ collection: any;

undelegateEvents(): any;
}

@@ -888,3 +866,2 @@

namespace Analytics {
function track(name: string, dimensions: any): Promise<any>;

@@ -899,3 +876,2 @@ }

namespace FacebookUtils {
function init(options?: any): void;

@@ -916,3 +892,2 @@ function isLinked(user: User): boolean;

namespace Cloud {
interface CookieOptions {

@@ -955,4 +930,4 @@ domain?: string;

success: (response: any) => void;
error (code: number, response: any): void;
error (response: any): void;
error(code: number, response: any): void;
error(response: any): void;
}

@@ -978,7 +953,7 @@

interface AfterSaveRequest extends TriggerRequest { }
interface AfterDeleteRequest extends TriggerRequest { }
interface BeforeDeleteRequest extends TriggerRequest { }
interface BeforeDeleteResponse extends FunctionResponse { }
interface BeforeSaveRequest extends TriggerRequest { }
interface AfterSaveRequest extends TriggerRequest {}
interface AfterDeleteRequest extends TriggerRequest {}
interface BeforeDeleteRequest extends TriggerRequest {}
interface BeforeDeleteResponse extends FunctionResponse {}
interface BeforeSaveRequest extends TriggerRequest {}
interface BeforeSaveResponse extends FunctionResponse {

@@ -994,14 +969,14 @@ success: () => void;

SecondaryPreferred = 'SECONDARY_PREFERRED',
Nearest = 'NEAREST'
Nearest = 'NEAREST',
}
interface BeforeFindRequest extends TriggerRequest {
query: Query
count: boolean
isGet: boolean
readPreference?: ReadPreferenceOption
query: Query;
count: boolean;
isGet: boolean;
readPreference?: ReadPreferenceOption;
}
interface AfterFindRequest extends TriggerRequest {
objects: Object[]
objects: Object[];
}

@@ -1015,3 +990,6 @@

function afterSave(arg1: any, func?: (request: AfterSaveRequest) => void): void;
function beforeDelete(arg1: any, func?: (request: BeforeDeleteRequest, response: BeforeDeleteResponse) => void): void;
function beforeDelete(
arg1: any,
func?: (request: BeforeDeleteRequest, response: BeforeDeleteResponse) => void,
): void;
function beforeSave(arg1: any, func?: (request: BeforeSaveRequest, response: BeforeSaveResponse) => void): void;

@@ -1026,3 +1004,3 @@ function beforeFind(arg1: any, func?: (request: BeforeFindRequest) => void): void;

interface RunOptions extends SuccessFailureOptions, ScopeOptions { }
interface RunOptions extends SuccessFailureOptions, ScopeOptions {}

@@ -1071,5 +1049,3 @@ /**

class Error {
code: ErrorCode;

@@ -1079,3 +1055,2 @@ message: string;

constructor(code: ErrorCode, message: string);
}

@@ -1087,3 +1062,2 @@

const enum ErrorCode {
OTHER_CAUSE = -1,

@@ -1143,3 +1117,3 @@ INTERNAL_SERVER_ERROR = 1,

FILE_READ_ERROR = 601,
X_DOMAIN_REQUEST = 602
X_DOMAIN_REQUEST = 602,
}

@@ -1160,3 +1134,2 @@

namespace Op {
interface BaseOperation extends IBaseObject {

@@ -1166,7 +1139,5 @@ objects(): any[];

interface Add extends BaseOperation {
}
interface Add extends BaseOperation {}
interface AddUnique extends BaseOperation {
}
interface AddUnique extends BaseOperation {}

@@ -1186,5 +1157,3 @@ interface Increment extends IBaseObject {

interface Unset extends IBaseObject {
}
interface Unset extends IBaseObject {}
}

@@ -1233,17 +1202,16 @@

function setAsyncStorage(AsyncStorage: any): void;
}
declare module "parse/node" {
declare module 'parse/node' {
export = Parse;
}
declare module "parse" {
import * as parse from "parse/node";
export = parse
declare module 'parse' {
import * as parse from 'parse/node';
export = parse;
}
declare module "parse/react-native" {
import * as parse from "parse/node";
export = parse
declare module 'parse/react-native' {
import * as parse from 'parse/node';
export = parse;
}

6

parse v1.11/package.json
{
"name": "@types/parse",
"version": "1.11.6",
"version": "1.11.7",
"description": "TypeScript definitions for parse",

@@ -50,4 +50,4 @@ "license": "MIT",

},
"typesPublisherContentHash": "fc1d32a33e544d609c81e2c65a61c8a1aa1d340be6be47560a1e8807d92b5022",
"typeScriptVersion": "3.0"
"typesPublisherContentHash": "095a3c0a7aa102b32b46f0593c190f2a03b70ec33a9dd94460ee55af774792bd",
"typeScriptVersion": "3.4"
}

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

### Additional Details
* Last updated: Sat, 11 Jul 2020 03:13:05 GMT
* Last updated: Wed, 20 Jan 2021 00:49:27 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/jquery](https://npmjs.com/package/@types/jquery), [@types/underscore](https://npmjs.com/package/@types/underscore)

@@ -14,0 +14,0 @@ * Global values: `Parse`

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