New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@savks/react-helpers

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@savks/react-helpers - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

2

dist/hooks/useRequiredContext.js
import { useContext } from 'react';
function useRequiredContext(context, name) {
const payload = useContext(context);
if (!payload) {
if (payload === undefined) {
const displayName = name ?? context.displayName;

@@ -6,0 +6,0 @@ throw new Error(`Required${displayName ? ` "${displayName}" ` : ''}context not defined`);

{
"name": "@savks/react-helpers",
"version": "1.2.1",
"version": "1.3.0",
"description": "React helpers",

@@ -31,2 +31,5 @@ "license": "MIT",

},
"publishConfig": {
"access": "public"
},
"peerDependencies": {

@@ -33,0 +36,0 @@ "@reduxjs/toolkit": "^1.8.1",

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