react-use
Advanced tools
Comparing version 15.3.1 to 15.3.2
import { RefObject } from 'react'; | ||
export interface FullScreenOptions { | ||
video?: RefObject<HTMLVideoElement>; | ||
video?: RefObject<HTMLVideoElement & { | ||
webkitEnterFullscreen?: () => void; | ||
webkitExitFullscreen?: () => void; | ||
}>; | ||
onClose?: (error?: Error) => void; | ||
@@ -5,0 +8,0 @@ } |
@@ -5,3 +5,4 @@ /* eslint-disable */ | ||
import useIsomorphicLayoutEffect from './useIsomorphicLayoutEffect'; | ||
var noop = function () { }; | ||
var noop = function () { | ||
}; | ||
var useFullscreen = function (ref, on, options) { | ||
@@ -58,3 +59,4 @@ if (options === void 0) { options = {}; } | ||
} | ||
catch (_a) { } | ||
catch (_a) { | ||
} | ||
} | ||
@@ -61,0 +63,0 @@ else if (video && video.current && video.current.webkitExitFullscreen) { |
import { RefObject } from 'react'; | ||
export interface FullScreenOptions { | ||
video?: RefObject<HTMLVideoElement>; | ||
video?: RefObject<HTMLVideoElement & { | ||
webkitEnterFullscreen?: () => void; | ||
webkitExitFullscreen?: () => void; | ||
}>; | ||
onClose?: (error?: Error) => void; | ||
@@ -5,0 +8,0 @@ } |
@@ -8,3 +8,4 @@ "use strict"; | ||
var useIsomorphicLayoutEffect_1 = tslib_1.__importDefault(require("./useIsomorphicLayoutEffect")); | ||
var noop = function () { }; | ||
var noop = function () { | ||
}; | ||
var useFullscreen = function (ref, on, options) { | ||
@@ -61,3 +62,4 @@ if (options === void 0) { options = {}; } | ||
} | ||
catch (_a) { } | ||
catch (_a) { | ||
} | ||
} | ||
@@ -64,0 +66,0 @@ else if (video && video.current && video.current.webkitExitFullscreen) { |
{ | ||
"name": "react-use", | ||
"version": "15.3.1", | ||
"version": "15.3.2", | ||
"description": "Collection of React Hooks", | ||
@@ -85,6 +85,6 @@ "main": "lib/index.js", | ||
"@testing-library/react-hooks": "3.3.0", | ||
"@types/jest": "25.2.3", | ||
"@types/jest": "26.0.3", | ||
"@types/react": "16.9.11", | ||
"@typescript-eslint/eslint-plugin": "2.34.0", | ||
"@typescript-eslint/parser": "2.34.0", | ||
"@typescript-eslint/eslint-plugin": "3.4.0", | ||
"@typescript-eslint/parser": "3.4.0", | ||
"babel-core": "6.26.3", | ||
@@ -100,7 +100,7 @@ "babel-eslint": "10.1.0", | ||
"eslint-plugin-react": "7.20.1", | ||
"eslint-plugin-react-hooks": "3.0.0", | ||
"fork-ts-checker-webpack-plugin": "4.1.6", | ||
"gh-pages": "2.2.0", | ||
"eslint-plugin-react-hooks": "4.0.4", | ||
"fork-ts-checker-webpack-plugin": "5.0.5", | ||
"gh-pages": "3.1.0", | ||
"husky": "4.2.5", | ||
"jest": "25.5.4", | ||
"jest": "26.1.0", | ||
"jest-localstorage-mock": "2.4.2", | ||
@@ -124,3 +124,3 @@ "keyboardjs": "2.6.3", | ||
"ts-jest": "26.1.1", | ||
"ts-loader": "6.2.2", | ||
"ts-loader": "7.0.5", | ||
"ts-node": "8.10.2", | ||
@@ -127,0 +127,0 @@ "typescript": "3.8.3" |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
489014
9749