Socket
Socket
Sign inDemoInstall

@youjs/react

Package Overview
Dependencies
6
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.4 to 1.5.0

6

dist/render.d.ts

@@ -6,3 +6,5 @@ import { FunctionComponent } from 'react';

}, knownElements: {
[key: string]: FunctionComponent<{}>;
}, key?: any) => any;
[key: string]: FunctionComponent<{
theme: string;
}>;
}, theme: string, key?: any) => any;

@@ -5,5 +5,6 @@ "use strict";

const react_1 = require("react");
const renderComponent = (element, knownElements, key) => {
const renderComponent = (element, knownElements, theme, key) => {
if (element.__typename in knownElements) {
return (0, react_1.createElement)(knownElements[element.__typename], {
theme,
key,

@@ -14,3 +15,3 @@ ...element,

? element.children
: element.children.map((child, key) => (0, exports.renderComponent)(child, knownElements, key))));
: element.children.map((child, key) => (0, exports.renderComponent)(child, knownElements, theme, key))));
}

@@ -17,0 +18,0 @@ else

{
"name": "@youjs/react",
"private": false,
"version": "1.4.4",
"version": "1.5.0",
"repository": {

@@ -33,3 +33,3 @@ "type": "git",

"@types/react-dom": "^18.0.11",
"jest": "^29.4.3",
"jest": "^29.5.0",
"prettier": "^2.8.4",

@@ -42,5 +42,5 @@ "ts-jest": "^29.0.5",

"dependencies": {
"@youjs/core": "^1.4.3",
"@youjs/core": "^1.4.4",
"prop-types": "^15.8.1"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc