@reach/utils
Advanced tools
Comparing version 0.13.2 to 0.14.0
@@ -52,8 +52,2 @@ import * as React from "react"; | ||
/** | ||
* Ponyfill for the global object in some environments. | ||
* | ||
* @link https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 | ||
*/ | ||
export declare const ponyfillGlobal: any; | ||
/** | ||
* Passes or assigns an arbitrary value to a ref function or object. | ||
@@ -60,0 +54,0 @@ * |
@@ -108,12 +108,2 @@ 'use strict'; | ||
/** | ||
* Ponyfill for the global object in some environments. | ||
* | ||
* @link https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 | ||
*/ | ||
var ponyfillGlobal = typeof window != "undefined" && window.Math == Math ? window : typeof self != "undefined" && self.Math == Math ? self : | ||
/*#__PURE__*/ | ||
// eslint-disable-next-line no-new-func | ||
Function("return this")(); | ||
/** | ||
* Passes or assigns an arbitrary value to a ref function or object. | ||
@@ -713,3 +703,2 @@ * | ||
exports.noop = noop; | ||
exports.ponyfillGlobal = ponyfillGlobal; | ||
exports.stateToAttributeString = stateToAttributeString; | ||
@@ -716,0 +705,0 @@ exports.useCallbackProp = useCallbackProp; |
@@ -85,12 +85,2 @@ 'use strict'; | ||
/** | ||
* Ponyfill for the global object in some environments. | ||
* | ||
* @link https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 | ||
*/ | ||
var ponyfillGlobal = typeof window != "undefined" && window.Math == Math ? window : typeof self != "undefined" && self.Math == Math ? self : | ||
/*#__PURE__*/ | ||
// eslint-disable-next-line no-new-func | ||
Function("return this")(); | ||
/** | ||
* Passes or assigns an arbitrary value to a ref function or object. | ||
@@ -629,3 +619,2 @@ * | ||
exports.noop = noop; | ||
exports.ponyfillGlobal = ponyfillGlobal; | ||
exports.stateToAttributeString = stateToAttributeString; | ||
@@ -632,0 +621,0 @@ exports.useCallbackProp = useCallbackProp; |
@@ -80,12 +80,2 @@ import * as React from 'react'; | ||
/** | ||
* Ponyfill for the global object in some environments. | ||
* | ||
* @link https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 | ||
*/ | ||
var ponyfillGlobal = typeof window != "undefined" && window.Math == Math ? window : typeof self != "undefined" && self.Math == Math ? self : | ||
/*#__PURE__*/ | ||
// eslint-disable-next-line no-new-func | ||
Function("return this")(); | ||
/** | ||
* Passes or assigns an arbitrary value to a ref function or object. | ||
@@ -665,2 +655,2 @@ * | ||
export { assignRef, boolOrBoolString, canUseDOM, checkStyles, cloneValidElement, createNamedContext, forwardRefWithAs, getDocumentDimensions, getElementComputedStyle, getOwnerDocument, getOwnerWindow, getScrollPosition, getScrollbarOffset, isBoolean, isFunction, isNumber, isRightClick, isString, makeId, memoWithAs, noop, ponyfillGlobal, stateToAttributeString, useCallbackProp, useCheckStyles, useConstant, useControlledState, useControlledSwitchWarning, useEventCallback, useEventListener, useFocusChange, useForceUpdate, useForkedRef, useIsomorphicLayoutEffect, useLazyRef, usePrevious, useStableCallback, useStateLogger, useUpdateEffect, warning, wrapEvent }; | ||
export { assignRef, boolOrBoolString, canUseDOM, checkStyles, cloneValidElement, createNamedContext, forwardRefWithAs, getDocumentDimensions, getElementComputedStyle, getOwnerDocument, getOwnerWindow, getScrollPosition, getScrollbarOffset, isBoolean, isFunction, isNumber, isRightClick, isString, makeId, memoWithAs, noop, stateToAttributeString, useCallbackProp, useCheckStyles, useConstant, useControlledState, useControlledSwitchWarning, useEventCallback, useEventListener, useFocusChange, useForceUpdate, useForkedRef, useIsomorphicLayoutEffect, useLazyRef, usePrevious, useStableCallback, useStateLogger, useUpdateEffect, warning, wrapEvent }; |
{ | ||
"name": "@reach/utils", | ||
"version": "0.13.2", | ||
"version": "0.14.0", | ||
"description": "Internal, shared utilities for Reach UI.", | ||
"author": "React Training <hello@reacttraining.com>", | ||
"license": "MIT", | ||
"sideEffects": false, | ||
"repository": { | ||
@@ -36,3 +37,3 @@ "type": "git", | ||
], | ||
"gitHead": "9e2a19717eb581722e9af99b0f8f3d976de9a55f" | ||
"gitHead": "80f6ca5f8d25a10887e2bd34d60094402b9bc0a7" | ||
} |
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
0
77199
2186