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

@types/gapi

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/gapi - npm Package Compare versions

Comparing version 0.0.29 to 0.0.30

46

gapi/index.d.ts

@@ -130,23 +130,3 @@ // Type definitions for Google API Client

declare namespace gapi.client {
/**
* Loads the client library interface to a particular API. If a callback is not provided, a promise is returned.
* @param name The name of the API to load.
* @param version The version of the API to load.
* @return promise The promise that get's resolved after the request is finished.
*/
export function load(name: string, version: string): Promise<void>
/**
* Loads the client library interface to a particular API. The new API interface will be in the form gapi.client.api.collection.method.
* @param name The name of the API to load.
* @param version The version of the API to load
* @param callback the function that is called once the API interface is loaded
* @param url optional, the url of your app - if using Google's APIs, don't set it
*/
export function load(name: string, version: string, callback: () => any, url?: string): void;
/**
* Creates a HTTP request for making RESTful requests.
* An object encapsulating the various arguments for this method.
*/
export function request(args: {
interface RequestOptions {
/**

@@ -176,4 +156,26 @@ * The URL to handle the request

callback?: () => any;
}): HttpRequest<any>;
}
/**
* Loads the client library interface to a particular API. If a callback is not provided, a promise is returned.
* @param name The name of the API to load.
* @param version The version of the API to load.
* @return promise The promise that get's resolved after the request is finished.
*/
export function load(name: string, version: string): Promise<void>
/**
* Loads the client library interface to a particular API. The new API interface will be in the form gapi.client.api.collection.method.
* @param name The name of the API to load.
* @param version The version of the API to load
* @param callback the function that is called once the API interface is loaded
* @param url optional, the url of your app - if using Google's APIs, don't set it
*/
export function load(name: string, version: string, callback: () => any, url?: string): void;
/**
* Creates a HTTP request for making RESTful requests.
* An object encapsulating the various arguments for this method.
*/
export function request(args: RequestOptions): HttpRequest<any>;
/**
* Creates an RPC Request directly. The method name and version identify the method to be executed and the RPC params are provided upon RPC creation.

@@ -180,0 +182,0 @@ * @param method The method to be executed.

{
"name": "@types/gapi",
"version": "0.0.29",
"version": "0.0.30",
"description": "TypeScript definitions for Google API Client",

@@ -14,4 +14,5 @@ "license": "MIT",

"dependencies": {},
"peerDependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "bc74517bb45b2e2ca0d6da06a4ae6885aeeab38297821d0af2d1273374e3e8a4"
"typesPublisherContentHash": "cff1d054c1aaef57773b1be1663ab0a79cad95b94c8f1d2a25de29bc46495d65"
}

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

Additional Details
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT
* Last updated: Tue, 22 Nov 2016 23:38:10 GMT
* File structure: Global

@@ -14,0 +14,0 @@ * Library Dependencies: none

@@ -6,4 +6,4 @@ {

"moduleDependencies": [],
"libraryMajorVersion": "0",
"libraryMinorVersion": "0",
"libraryMajorVersion": 0,
"libraryMinorVersion": 0,
"libraryName": "Google API Client",

@@ -23,3 +23,3 @@ "typingsPackageName": "gapi",

"hasPackageJson": false,
"contentHash": "bc74517bb45b2e2ca0d6da06a4ae6885aeeab38297821d0af2d1273374e3e8a4"
"contentHash": "cff1d054c1aaef57773b1be1663ab0a79cad95b94c8f1d2a25de29bc46495d65"
}
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