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

html2react

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html2react - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

test/get-props-from-attributes.test.js

8

lib/get-props-from-attributes.js

@@ -86,3 +86,11 @@ 'use strict';

switch (lowerPropName) {
case 'checked':
case 'defaultchecked':
case 'readonly':
case 'disabled':
return true;
}
return attrValue;
}

14

package.json
{
"name": "html2react",
"version": "1.0.2",
"version": "1.0.3",
"description": "Utility for turning raw HTML into React elements",

@@ -9,3 +9,3 @@ "main": "lib/index.js",

"prepublish": "not-in-install && npm prune && npm test && npm run build || in-install",
"test": "echo \"Error: no test specified\" && exit 0"
"test": "jest"
},

@@ -29,7 +29,12 @@ "repository": {

"babel-cli": "^6.10.1",
"babel-jest": "^19.0.0",
"babel-preset-es2015": "^6.9.0",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-1": "^6.5.0",
"in-publish": "^2.0.0",
"jest": "^19.0.2",
"react": "^15.4.0",
"react-dom": "^15.4.0"
"react-dom": "^15.4.0",
"react-test-renderer": "^15.5.4",
"regenerator-runtime": "^0.10.3"
},

@@ -39,3 +44,6 @@ "peerDependencies": {

"react-dom": "^15.4.0"
},
"jest": {
"testRegex": "test/.*\\.test\\.js"
}
}

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