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.5 to 0.0.6

16

package.json
{
"name": "react-jsbox",
"version": "0.0.5",
"version": "0.0.6",
"description": "This is a Custom React Renderer for writing JSBox apps in React.",

@@ -36,10 +36,2 @@ "keywords": [

]
],
"plugins": [
[
"@babel/plugin-transform-runtime",
{
"useESModules": false
}
]
]

@@ -55,5 +47,3 @@ },

"@babel/core": "^7.4.3",
"@babel/plugin-transform-runtime": "^7.4.3",
"@babel/preset-env": "^7.4.3",
"@babel/runtime": "^7.4.3",
"babel-eslint": "^10.0.1",

@@ -66,9 +56,9 @@ "babel-preset-minify": "^0.5.0",

"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-cleanup": "^3.1.1",
"rollup-plugin-commonjs": "^9.3.4",
"rollup-plugin-modify": "^3.0.0",
"rollup-plugin-node-resolve": "^4.2.3",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-uglify": "^6.0.2"
"rollup-plugin-replace": "^2.2.0"
},
"license": "MIT"
}

6

rollup.config.js

@@ -5,2 +5,3 @@ import resolve from 'rollup-plugin-node-resolve'

import replace from 'rollup-plugin-modify'
import cleanup from 'rollup-plugin-cleanup'
import pkg from './package.json'

@@ -22,8 +23,9 @@

runtimeHelpers: true,
exclude: ['node_modules/@babel/**'],
exclude: ['node_modules/@babel/**', /\/core-js\//],
presets: pkg.babel.presets,
plugins: pkg.babel.plugins
})
}),
cleanup()
]
}
]

@@ -16,6 +16,2 @@ export default class View {

exists(prop) {
return typeof prop !== 'undefined'
}
appendChild(child) {

@@ -38,7 +34,9 @@ this.getElement()

update(updatePayload, newProps) {
let element = this.getElement()
const element = this.getElement()
updatePayload.forEach(prop => {
element[prop] = newProps[prop]
element[prop] = Object.hasOwnProperty.call(newProps, prop)
? newProps[prop]
: null
})
}
}

@@ -18,5 +18,9 @@ import Reconciler from 'react-reconciler'

prepareForCommit() {},
prepareForCommit() {
// noop
},
resetAfterCommit() {},
resetAfterCommit() {
// noop
},

@@ -37,3 +41,2 @@ createInstance(type, props, internalInstanceHandle) {

return diffProps(oldProps, newProps)
// return true
},

@@ -103,3 +106,5 @@

commitMount(instance, updatePayload, type, oldProps, newProps) {},
commitMount(instance, updatePayload, type, oldProps, newProps) {
// noop
},

@@ -134,3 +139,5 @@ commitUpdate(instance, updatePayload, type, oldProps, newProps) {

resetTextContent() {},
resetTextContent() {
// noop
},

@@ -137,0 +144,0 @@ hideInstance(instance) {

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