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

@fluentui/react-utilities

Package Overview
Dependencies
Maintainers
0
Versions
882
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluentui/react-utilities - npm Package Compare versions

Comparing version 0.0.0-nightly-20241119-0407.1 to 0.0.0-nightly-20241120-0406.1

3

dist/index.d.ts

@@ -1,2 +0,1 @@

import { DispatchWithoutAction } from 'react';
import * as React_2 from 'react';

@@ -874,3 +873,3 @@

*/
export declare function useForceUpdate(): DispatchWithoutAction;
export declare function useForceUpdate(): React_2.DispatchWithoutAction;

@@ -877,0 +876,0 @@ /**

@@ -11,5 +11,6 @@ "use strict";

});
const _react = require("react");
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
function isResolvedShorthand(shorthand) {
return shorthand !== null && typeof shorthand === 'object' && !Array.isArray(shorthand) && !(0, _react.isValidElement)(shorthand);
return shorthand !== null && typeof shorthand === 'object' && !Array.isArray(shorthand) && !_react.isValidElement(shorthand);
}

@@ -11,5 +11,6 @@ "use strict";

});
const _react = require("react");
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
function useForceUpdate() {
return (0, _react.useReducer)((x)=>x + 1, 0)[1];
return _react.useReducer((x)=>x + 1, 0)[1];
}

@@ -1,2 +0,2 @@

import { isValidElement } from 'react';
import * as React from 'react';
/**

@@ -32,3 +32,3 @@ * Guard method that validates if a shorthand is a slot

*/ export function isResolvedShorthand(shorthand) {
return shorthand !== null && typeof shorthand === 'object' && !Array.isArray(shorthand) && !isValidElement(shorthand);
return shorthand !== null && typeof shorthand === 'object' && !Array.isArray(shorthand) && !React.isValidElement(shorthand);
}

@@ -1,2 +0,2 @@

import { useReducer } from 'react';
import * as React from 'react';
/**

@@ -6,3 +6,3 @@ * @internal

*/ export function useForceUpdate() {
return useReducer((x)=>x + 1, 0)[1];
return React.useReducer((x)=>x + 1, 0)[1];
}
{
"name": "@fluentui/react-utilities",
"version": "0.0.0-nightly-20241119-0407.1",
"version": "0.0.0-nightly-20241120-0406.1",
"description": "A set of general React-specific utilities.",

@@ -20,4 +20,4 @@ "main": "lib-commonjs/index.js",

"dependencies": {
"@fluentui/keyboard-keys": "0.0.0-nightly-20241119-0407.1",
"@fluentui/react-shared-contexts": "0.0.0-nightly-20241119-0407.1",
"@fluentui/keyboard-keys": "0.0.0-nightly-20241120-0406.1",
"@fluentui/react-shared-contexts": "0.0.0-nightly-20241120-0406.1",
"@swc/helpers": "^0.5.1"

@@ -24,0 +24,0 @@ },

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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