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

react-jsbox

Package Overview
Dependencies
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-jsbox - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

10

package.json
{
"name": "react-jsbox",
"version": "0.0.12",
"version": "0.0.13",
"description": "A Custom React Renderer for writing JSBox apps in React.",

@@ -46,4 +46,4 @@ "keywords": [

"devDependencies": {
"@babel/core": "^7.4.4",
"@babel/preset-env": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"babel-eslint": "^10.0.1",

@@ -53,5 +53,5 @@ "babel-preset-minify": "^0.5.0",

"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-import": "^2.17.2",
"eslint-plugin-import": "^2.17.3",
"eslint-plugin-jsbox": "^0.1.1",
"rollup": "^1.12.3",
"rollup": "^1.12.4",
"rollup-plugin-babel": "^4.3.2",

@@ -58,0 +58,0 @@ "rollup-plugin-cleanup": "^3.1.1",

export default class View {
constructor(type, props) {
const {layout, events} = props
const { layout, events } = props
this._element = $ui.create({

@@ -5,0 +5,0 @@ type,

@@ -7,3 +7,3 @@ export const emptyFunction = () => {}

export const {now} = Date
export const { now } = Date

@@ -42,3 +42,3 @@ // Based on react-three-fiber ((c) 2019 Paul Henschel, MIT).

].reduce((acc, prop) => {
let {[prop]: _, ...rest} = acc
let { [prop]: _, ...rest } = acc
return rest

@@ -45,0 +45,0 @@ }, newProps)

import Reconciler from 'react-reconciler'
import View from './Components/View'
import {filterProps, emptyObject, now} from './helper'
import { filterProps, emptyObject, now } from './helper'
const JSBoxRenderer = Reconciler({
getPublicInstance({element}) {
getPublicInstance({ element }) {
return element

@@ -95,6 +95,3 @@ },

appendChildToContainer(parentInstance, child) {
const parent =
typeof parentInstance.getElement === 'function'
? parentInstance.element
: parentInstance
const parent = parentInstance.element || parentInstance
parent.runtimeValue().$addSubview(child.element)

@@ -120,6 +117,3 @@ },

insertInContainerBefore(parentInstance, child, beforeChild) {
const parent =
typeof parentInstance.getElement === 'function'
? parentInstance.element
: parentInstance
const parent = parentInstance.element || parentInstance
parent

@@ -126,0 +120,0 @@ .runtimeValue()

Sorry, the diff of this file is too big to display

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