@radix-ui/react-context
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -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
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
7467
15
0