use-react-screenshot-fix
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -83,4 +83,3 @@ import { useState } from 'react'; | ||
*/ | ||
var takeScreenShot = function takeScreenShot(node) { | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var takeScreenShot = function takeScreenShot(node, options) { | ||
if (!node) { | ||
@@ -87,0 +86,0 @@ throw new Error('You should provide correct html node.'); |
@@ -89,4 +89,3 @@ 'use strict'; | ||
*/ | ||
var takeScreenShot = function takeScreenShot(node) { | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var takeScreenShot = function takeScreenShot(node, options) { | ||
if (!node) { | ||
@@ -93,0 +92,0 @@ throw new Error('You should provide correct html node.'); |
{ | ||
"name": "use-react-screenshot-fix", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "hook which allows to create screenshots", | ||
@@ -5,0 +5,0 @@ "author": "vre2h", |
@@ -25,3 +25,3 @@ import { useState } from 'react' | ||
*/ | ||
const takeScreenShot = (node, options = {}) => { | ||
const takeScreenShot = (node, options) => { | ||
if (!node) { | ||
@@ -28,0 +28,0 @@ throw new Error('You should provide correct html node.') |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
2340857
36477