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 1.1.6-beta to 1.1.6

dist/react-jsbox.js.map

64

package.json
{
"name": "react-jsbox",
"version": "1.1.6-beta",
"version": "1.1.6",
"description": "A custom React renderer for writing JSBox apps in React.",

@@ -13,5 +13,25 @@ "keywords": [

"main": "dist/react-jsbox.js",
"module": "dist/react-jsbox.module.js",
"umd:main": "dist/react-jsbox.umd.js",
"source": "src/index.js",
"files": [
"src",
"dist"
],
"exports": {
".": {
"browser": "./dist/react-jsbox.module.js",
"umd": "./dist/react-jsbox.umd.js",
"import": "./dist/react-jsbox.mjs",
"require": "./dist/react-jsbox.js"
},
"./package.json": "./package.json",
"./": "./"
},
"scripts": {
"dev": "rollup -c -w",
"build": "rollup -c",
"prepare": "run-s build",
"build": "npm-run-all --parallel build:*",
"build:core": "microbundle build --raw",
"build:core-min": "microbundle build --raw -f iife src/cjs.js -o dist/react-jsbox.min.js",
"dev": "microbundle watch --raw --format cjs",
"prepublishOnly": "npm run build"

@@ -22,36 +42,24 @@ },

"peerDependencies": {
"react": "^16.13.1"
},
"dependencies": {
"react": "^16.13.1",
"react-reconciler": "^0.25.1"
},
"devDependencies": {
"@babel/core": "^7.10.3",
"@babel/plugin-proposal-class-properties": "^7.10.1",
"@babel/plugin-proposal-decorators": "^7.10.3",
"@babel/plugin-transform-runtime": "^7.10.3",
"@babel/preset-env": "^7.10.3",
"@babel/preset-react": "^7.10.1",
"@babel/runtime": "^7.10.3",
"@babel/core": "^7.10.4",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-transform-runtime": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"@babel/preset-react": "^7.10.4",
"@babel/runtime": "^7.10.4",
"babel-eslint": "^10.1.0",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"babel-preset-minify": "^0.5.1",
"eslint": "^7.3.1",
"eslint-plugin-babel": "^5.3.0",
"eslint": "^7.4.0",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsbox": "^0.1.1",
"eslint-plugin-react-hooks": "^4.0.4",
"husky": "^4.2.5",
"react": "^16.13.1",
"rollup": "^2.18.1",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-cleanup": "^3.1.1",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-modify": "^3.0.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-progress": "^1.1.2",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-terser": "^6.1.0"
"eslint-plugin-react-hooks": "^4.0.5",
"microbundle": "^0.12.2",
"npm-run-all": "^4.1.5",
"react": "^16.13.1"
},
"license": "MIT"
}

@@ -36,3 +36,2 @@ import {hasOwnProperty} from '../helper'

const element = this.element
if (hasOwnProperty.call(updatePayload, 'animate')) {

@@ -42,3 +41,2 @@ this._animate = updatePayload.animate

}
if (this._animate) {

@@ -52,3 +50,2 @@ const {duration = 0.4, damping = 0, velocity = 0, options = 0, completion = () => {}} = this._animate

})
this.showOverlay()
},

@@ -64,28 +61,3 @@ damping,

})
this.showOverlay()
}
showOverlay() {
if (!global.__REACT_JSBOX_HIGHLIGHT_UPDATES__) {
return
}
const {cornerRadius, smoothCorners, size} = this.element
const overlayView = $ui.create({
type: 'view',
props: {
frame: $rect(0, 0, size.width, size.height),
alpha: 0.8,
cornerRadius,
smoothCorners,
bgcolor: $color('clear'),
borderColor: $color('#37afa9'),
borderWidth: 2,
userInteractionEnabled: false
}
})
this.element.add(overlayView)
setTimeout(() => {
overlayView.remove()
}, 300)
}
}

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