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

react-resize-detector

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-resize-detector - npm Package Compare versions

Comparing version 0.6.0 to 1.1.0

30

package.json
{
"author": "Vitalii Maslianok <maslianok@gmail.com> (https://github.com/maslianok)",
"version": "0.6.0",
"version": "1.1.0",
"bugs": {

@@ -9,3 +9,3 @@ "url": "https://github.com/maslianok/react-resize-detector/issues"

"peerDependencies": {
"react": "^0.14.7 || ^15.0.0"
"react": "^0.14.7 || ^15.0.0 || ^16.0.0"
},

@@ -15,5 +15,8 @@ "devDependencies": {

"babel-eslint": "^7.2.3",
"babel-plugin-transform-class-properties": "6.24.1",
"babel-plugin-transform-object-assign": "^6.5.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"chai": "4.1.2",
"chai-spies": "0.7.1",
"eslint": "^4.5.0",

@@ -24,3 +27,7 @@ "eslint-config-airbnb": "^15.1.0",

"eslint-plugin-react": "^7.3.0",
"react": "^15.6.1",
"isparta": "4.0.0",
"jsdom": "11.3.0",
"mocha": "4.0.0",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"rimraf": "^2.6.1"

@@ -32,12 +39,7 @@ },

"homepage": "https://github.com/maslianok/react-resize-detector",
"keywords": [
"react",
"resize",
"detector"
],
"keywords": ["react", "resize", "detector"],
"license": "MIT",
"main": "lib/index.js",
"maintainers": [
"maslianok <maslianok@gmail.com>"
],
"maintainers": ["maslianok <maslianok@gmail.com>"],
"contributors": ["James J. Womack (@james_womack)"],
"name": "react-resize-detector",

@@ -49,6 +51,8 @@ "repository": {

"scripts": {
"build": "babel --presets=react,es2015 --plugins=transform-object-assign src --out-dir lib",
"build":
"babel --presets=react,es2015 --plugins=transform-object-assign,transform-class-properties src --out-dir lib",
"clean": "rimraf lib",
"lint": "eslint -c .eslintrc src",
"prepublish": "npm run lint && npm run clean && npm run build",
"prepublishOnly": "npm run lint && npm run clean && npm run build",
"test": "npm run test:cov",
"test:cov": "babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha -- --recursive",

@@ -55,0 +59,0 @@ "test:watch": "NODE_ENV=test mocha --compilers js:babel/register --recursive --watch"

@@ -20,8 +20,11 @@ # React resize detector

cd react-resize-detector/example
npm install && npm start
npm i && npm start
```
## Installation
`npm i react-resize-detector --save`
`npm i react-resize-detector`
## Running the tests
`npm t`
## Example

@@ -38,3 +41,3 @@ ```javascript

...
<ReactResizeDetector handleWidth handleHeight onResize={this._onResize.bind(this)} />
<ReactResizeDetector handleWidth handleHeight onResize={this._onResize} />
</div>

@@ -44,3 +47,3 @@ );

_onResize() {
_onResize = () => {
...

@@ -47,0 +50,0 @@ }

Sorry, the diff of this file is not supported yet

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