Socket
Socket
Sign inDemoInstall

@tamagui/helpers

Package Overview
Dependencies
Maintainers
1
Versions
1098
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tamagui/helpers - npm Package Compare versions

Comparing version 1.108.0 to 1.108.1

18

dist/cjs/withStaticProperties.js

@@ -0,5 +1,6 @@

var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {

@@ -14,3 +15,10 @@ for (var name in all)

};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
mod
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
var withStaticProperties_exports = {};

@@ -21,8 +29,8 @@ __export(withStaticProperties_exports, {

module.exports = __toCommonJS(withStaticProperties_exports);
var import_react = require("react");
var import_react = __toESM(require("react"));
const Decorated = Symbol(), withStaticProperties = (component, staticProps) => {
const next = (() => {
if (component[Decorated]) {
const _ = (0, import_react.forwardRef)(
(props, ref) => (0, import_react.createElement)(component, { ...props, ref })
const _ = import_react.default.forwardRef(
(props, ref) => import_react.default.createElement(component, { ...props, ref })
);

@@ -29,0 +37,0 @@ for (const key in component) {

"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {

@@ -15,3 +16,10 @@ for (var name in all)

};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
mod
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
var withStaticProperties_exports = {};

@@ -22,3 +30,3 @@ __export(withStaticProperties_exports, {

module.exports = __toCommonJS(withStaticProperties_exports);
var import_react = require("react");
var import_react = __toESM(require("react"));
function _define_property(obj, key, value) {

@@ -65,4 +73,4 @@ return key in obj ? Object.defineProperty(obj, key, {

if (component[Decorated]) {
var _ = /* @__PURE__ */ (0, import_react.forwardRef)(function(props, ref) {
return /* @__PURE__ */ (0, import_react.createElement)(component, _object_spread_props(_object_spread({}, props), {
var _ = /* @__PURE__ */ import_react.default.forwardRef(function(props, ref) {
return /* @__PURE__ */ import_react.default.createElement(component, _object_spread_props(_object_spread({}, props), {
ref

@@ -69,0 +77,0 @@ }));

@@ -1,7 +0,7 @@

import { createElement, forwardRef } from "react";
import React from "react";
const Decorated = Symbol(), withStaticProperties = (component, staticProps) => {
const next = (() => {
if (component[Decorated]) {
const _ = forwardRef(
(props, ref) => createElement(component, { ...props, ref })
const _ = React.forwardRef(
(props, ref) => React.createElement(component, { ...props, ref })
);

@@ -8,0 +8,0 @@ for (const key in component) {

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

import { createElement, forwardRef } from "react";
import React from "react";
function _define_property(obj, key, value) {

@@ -43,4 +43,4 @@ return key in obj ? Object.defineProperty(obj, key, {

if (component[Decorated]) {
var _ = /* @__PURE__ */ forwardRef(function(props, ref) {
return /* @__PURE__ */ createElement(component, _object_spread_props(_object_spread({}, props), {
var _ = /* @__PURE__ */ React.forwardRef(function(props, ref) {
return /* @__PURE__ */ React.createElement(component, _object_spread_props(_object_spread({}, props), {
ref

@@ -47,0 +47,0 @@ }));

{
"name": "@tamagui/helpers",
"version": "1.108.0",
"version": "1.108.1",
"source": "src/index.ts",

@@ -22,7 +22,7 @@ "types": "./types/index.d.ts",

"dependencies": {
"@tamagui/constants": "1.108.0",
"@tamagui/simple-hash": "1.108.0"
"@tamagui/constants": "1.108.1",
"@tamagui/simple-hash": "1.108.1"
},
"devDependencies": {
"@tamagui/build": "1.108.0"
"@tamagui/build": "1.108.1"
},

@@ -29,0 +29,0 @@ "publishConfig": {

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