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

@yamada-ui/utils

Package Overview
Dependencies
Maintainers
1
Versions
527
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yamada-ui/utils - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3-dev-20240115161423

dist/chunk-PSDLSK34.mjs

5

dist/index.js

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

errorMessage = "useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",
name
name,
defaultValue
} = {}) => {
const Context = React.createContext(void 0);
const Context = React.createContext(defaultValue);
Context.displayName = name;

@@ -324,0 +325,0 @@ const useContext2 = () => {

@@ -14,9 +14,10 @@ import * as React from 'react';

type MaybeRenderProp<Y> = React.ReactNode | ((props: Y) => React.ReactNode);
type Options = {
type Options<ContextType extends any = any> = {
strict?: boolean;
errorMessage?: string;
name?: string;
defaultValue?: ContextType;
};
type CreateContextReturn<T> = [React.Provider<T>, () => T, React.Context<T>];
declare const createContext: <ContextType extends unknown = any>({ strict, errorMessage, name, }?: Options) => CreateContextReturn<ContextType>;
declare const createContext: <ContextType extends unknown = any>({ strict, errorMessage, name, defaultValue, }?: Options<ContextType>) => CreateContextReturn<ContextType>;
declare const useSafeLayoutEffect: typeof React.useLayoutEffect;

@@ -23,0 +24,0 @@ declare const useUnmountEffect: (callback: () => void) => void;

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

errorMessage = "useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",
name
name,
defaultValue
} = {}) => {
const Context = React.createContext(void 0);
const Context = React.createContext(defaultValue);
Context.displayName = name;

@@ -71,0 +72,0 @@ const useContext2 = () => {

2

package.json
{
"name": "@yamada-ui/utils",
"version": "1.0.2",
"version": "1.0.3-dev-20240115161423",
"description": "Yamada UI utils",

@@ -5,0 +5,0 @@ "keywords": [

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

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

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