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

gapi-oauth-react-hooks

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gapi-oauth-react-hooks - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

badges/coverage-branches.svg

0

hooks/use.gapi.config.hook.d.ts
/// <reference types="gapi" />
/// <reference types="gapi.auth2" />
export declare const useGapiConfig: () => gapi.auth2.ClientConfig;

@@ -0,0 +0,0 @@ import { useMemo } from "react";

@@ -0,0 +0,0 @@ /// <reference types="gapi.auth2" />

@@ -0,0 +0,0 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -0,0 +0,0 @@ /// <reference types="gapi.auth2" />

@@ -0,0 +0,0 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -0,0 +0,0 @@ import { GoogleAuthHookProps, useGoogleAuth } from "./hooks/use.google.auth.hook";

import { useGoogleAuth, } from "./hooks/use.google.auth.hook";
import { GapiConfig } from "./logic/gapi.config.logic";
export { useGoogleAuth, GapiConfig };

@@ -0,0 +0,0 @@ /// <reference types="gapi" />

@@ -0,0 +0,0 @@ export var gapiLoad = function (apiName, callback) {

@@ -0,0 +0,0 @@ /// <reference types="gapi" />

@@ -0,0 +0,0 @@ export var asPlainObject = function (profile) { return ({

@@ -0,0 +0,0 @@ export declare class GapiConfig {

@@ -0,0 +0,0 @@ var GapiConfig = /** @class */ (function () {

export declare const loadScript: (document: HTMLDocument, id: string, jsSrc: string, callback: () => void) => void;
export declare const removeScript: (document: HTMLDocument, id: string) => void;

@@ -0,0 +0,0 @@ export var loadScript = function (document, id, jsSrc, callback) {

10

package.json
{
"name": "gapi-oauth-react-hooks",
"version": "2.0.4",
"version": "2.0.5",
"repository": "https://github.com/jpb06/gapi-oauth-react-hooks.git",

@@ -22,2 +22,3 @@ "author": "jpb06 <jpb.06@outlook.com>",

"jsdom": "^16.4.0",
"node-jest-badges": "^1.0.8",
"react": "^16.13.1",

@@ -29,12 +30,13 @@ "react-test-renderer": "^16.13.1",

"scripts": {
"build": "del-cli ./dist && tsc",
"copy-package": "copyfiles package.json ./dist/",
"copy-readme": "copyfiles README.md ./dist/",
"copy-badges": "copyfiles ./badges/* ./dist/",
"build": "del-cli ./dist && tsc",
"postbuild": "yarn copy-package && yarn copy-badges && yarn copy-readme",
"test": "jest ---watch",
"test:cov": "jest --coverage --watchAll",
"test:silentcov": "jest --coverage --silent --runInBand --watchAll=false",
"test:badges": "yarn test:silentcov && jest-coverage-badges --output ./badges",
"package-publish": "yarn test:badges && yarn copy-badges && yarn build && yarn copy-package && yarn copy-readme && cd ./dist && yarn publish"
"test:ci": "jest --runInBand --ci",
"badges": "generateBadges"
}
}

@@ -0,0 +0,0 @@ # gapi-oauth-react-hooks

export declare type GapiState = "Loading" | "SignedIn" | "NotSignedIn" | "Errored";

@@ -0,0 +0,0 @@ export interface UserProfile {

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