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

@radix-ui/react-context

Package Overview
Dependencies
Maintainers
5
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radix-ui/react-context - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

2

dist/index.js

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

var e,t,r=(e={},t=require("react"),Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})})),e);exports.createContext=function(e){const t=r.createContext(null);function n(e){const{children:n,...u}=e,o=r.useMemo((()=>u),Object.values(u));return r.createElement(t.Provider,{value:o},n)}return n.displayName=e+"Provider",[n,function(n){const u=r.useContext(t);if(null===u)throw new Error(`\`${n}\` must be used within \`${e}\``);return u}]};
var e,t,r=(e={},t=require("react"),Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})})),e);exports.createContext=function(e){const t=/*#__PURE__*/r.createContext(null);function n(e){const{children:n,...u}=e,o=r.useMemo((()=>u),Object.values(u));/*#__PURE__*/return r.createElement(t.Provider,{value:o},n)}return n.displayName=e+"Provider",[n,function(n){const u=r.useContext(t);if(null===u)throw new Error(`\`${n}\` must be used within \`${e}\``);return u}]};
//# sourceMappingURL=index.js.map

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

import*as e from"react";export function createContext(t){const r=e.createContext(null);function n(t){const{children:n,...o}=t,u=e.useMemo((()=>o),Object.values(o));return e.createElement(r.Provider,{value:u},n)}return n.displayName=t+"Provider",[n,function(n){const o=e.useContext(r);if(null===o)throw new Error(`\`${n}\` must be used within \`${t}\``);return o}]}
import*as e from"react";export function createContext(t){const r=/*#__PURE__*/e.createContext(null);function n(t){const{children:n,...o}=t,u=e.useMemo((()=>o),Object.values(o));/*#__PURE__*/return e.createElement(r.Provider,{value:u},n)}return n.displayName=t+"Provider",[n,function(n){const o=e.useContext(r);if(null===o)throw new Error(`\`${n}\` must be used within \`${t}\``);return o}]}
//# sourceMappingURL=index.module.js.map
{
"name": "@radix-ui/react-context",
"version": "0.0.4",
"version": "0.0.5",
"license": "MIT",

@@ -5,0 +5,0 @@ "source": "src/index.ts",

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