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

react-figma

Package Overview
Dependencies
Maintainers
1
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-figma - npm Package Compare versions

Comparing version 0.0.50 to 0.0.51

2

package.json
{
"name": "react-figma",
"version": "0.0.50",
"version": "0.0.51",
"description": "Render React components to Figma",

@@ -5,0 +5,0 @@ "scripts": {

@@ -88,4 +88,6 @@ # React Figma

const handler = uiWorker({ yoga, fetch });
onmessage = event => {
uiWorker({ yoga })(event);
handler(event);
};

@@ -92,0 +94,0 @@ ```

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

export declare const uiWorker: ({ yoga, fetch }: {
yoga: any;
fetch: any;
}) => (event: any) => void;
interface TUIWorkerConfig {
yoga?: Object;
fetch?: (input: RequestInfo, init?: RequestInit) => Promise<Response>;
}
export declare const uiWorker: (config: TUIWorkerConfig) => (event: any) => void;
export {};

@@ -6,4 +6,12 @@ "use strict";

var fetchWorker_1 = require("./workers/fetchWorker");
exports.uiWorker = function (_a) {
var yoga = _a.yoga, fetch = _a.fetch;
exports.uiWorker = function (config) {
var yoga = config.yoga, fetch = config.fetch;
if (process.env.NODE_ENV !== 'production') {
if (typeof fetch !== 'function') {
console.warn("Fetch function don't passed to uiWorker: useFetch cannot work correctly");
}
if (typeof yoga !== 'object') {
console.warn("Yoga don't passed to uiWorker, auto-layout cannot work correctly");
}
}
return function (event) {

@@ -10,0 +18,0 @@ var message = event.data.pluginMessage;

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