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

@uspk-ui/react-utils

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uspk-ui/react-utils - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

21

dist/index.cjs.js
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;

@@ -18,2 +20,6 @@ var __export = (target, all) => {

};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

@@ -31,2 +37,5 @@

// ../../../react-shim.js
var import_react = __toESM(require("react"));
// src/refs.ts

@@ -54,3 +63,3 @@ var import_utils = require("@uspk-ui/utils");

// src/context.ts
var import_react = require("react");
var import_react2 = require("react");
function createContext(options = {}) {

@@ -62,7 +71,7 @@ const {

} = options;
const Context = (0, import_react.createContext)(void 0);
const Context = (0, import_react2.createContext)(void 0);
Context.displayName = name;
function useContext() {
var _a;
const context = (0, import_react.useContext)(Context);
const context = (0, import_react2.useContext)(Context);
if (!context && strict) {

@@ -84,6 +93,6 @@ const error = new Error(errorMessage);

// src/children.ts
var import_react2 = require("react");
var import_react3 = require("react");
function getValidChildren(children) {
return import_react2.Children.toArray(children).filter(
(child) => (0, import_react2.isValidElement)(child)
return import_react3.Children.toArray(children).filter(
(child) => (0, import_react3.isValidElement)(child)
);

@@ -90,0 +99,0 @@ }

@@ -0,1 +1,4 @@

// ../../../react-shim.js
import React from "react";
// src/refs.ts

@@ -2,0 +5,0 @@ import { isFunction } from "@uspk-ui/utils";

{
"name": "@uspk-ui/react-utils",
"version": "2.1.0",
"version": "2.1.1",
"description": "React utilities and helpers for Uspk UI",

@@ -31,3 +31,3 @@ "keywords": [

"dependencies": {
"@uspk-ui/utils": "1.0.0"
"@uspk-ui/utils": "1.0.1"
},

@@ -34,0 +34,0 @@ "peerDependencies": {

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