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

react-htmlcontent

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-htmlcontent - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

codealike.json

10

dist/index.js

@@ -24,4 +24,2 @@ "use strict";

require("@babel/polyfill");
var _react = _interopRequireDefault(require("react"));

@@ -33,3 +31,3 @@

var _mem = _interopRequireDefault(require("mem"));
var _lruMemoize = _interopRequireDefault(require("lru-memoize"));

@@ -55,8 +53,8 @@ var containsHtmlPatt = /(<[A-z]+[^>]*>)(.*?)(<\/[A-z]+>)/g;

}
} else {
return '';
}
return '';
};
var enhanceTypo = (0, _mem.default)(_enhanceTypo);
var enhanceTypo = (0, _lruMemoize.default)(50)(_enhanceTypo);
/**

@@ -63,0 +61,0 @@ * Component for displaying HTML content

111

package.json
{
"name": "react-htmlcontent",
"version": "1.1.1",
"description": "React HTMLContent Component",
"repository": {
"type": "git",
"url": "https://git.siteone.cz/frack/react-htmlcontent.git"
},
"license": "MIT",
"scripts": {
"prepublish": ". ./.scripts/prepublish.sh",
"lint": "eslint src",
"lintfix": "eslint src --fix",
"testonly": "mocha --require .scripts/mocha_runner ./test/**/*.js",
"test": "npm run lint && npm run testonly",
"test-watch": "npm run testonly -- --watch --watch-extensions js",
"storybook": "start-storybook -p 6006",
"publish-storybook": "bash .scripts/publish_storybook.sh",
"build-storybook": "build-storybook"
},
"devDependencies": {
"@babel/cli": "^7.4.3",
"@babel/core": "^7.4.3",
"@babel/plugin-transform-runtime": "^7.4.3",
"@babel/plugin-transform-spread": "7.2.2",
"@babel/preset-env": "^7.4.3",
"@babel/preset-react": "^7.0.0",
"@babel/preset-stage-0": "^7.0.0",
"@babel/runtime": "^7.4.3",
"@storybook/react": "^5.0.10",
"babel-eslint": "^10.0.1",
"babel-loader": "^8.0.5",
"chai": "^4.2.0",
"enzyme": "^3.9.0",
"eslint": "^5.16.0",
"eslint-config-frack": "^2.2.3",
"git-url-parse": "^11.1.2",
"jest": "^24.7.1",
"jsdom": "^15.0.0",
"mocha": "^6.1.4",
"react": "^16.8.6",
"react-addons-test-utils": "^15.6.2",
"react-dom": "^16.8.6",
"sinon": "^7.3.2"
},
"peerDependencies": {
"react": "^16.8.6"
},
"dependencies": {
"@babel/preset-flow": "^7.0.0",
"core-js": "2",
"mem": "^4.3.0"
},
"main": "dist/index.js",
"engines": {
"npm": "^3.0.0"
}
"name": "react-htmlcontent",
"version": "1.2.0",
"description": "React HTMLContent Component",
"repository": {
"type": "git",
"url": "https://git.siteone.cz/frack/react-htmlcontent.git"
},
"license": "MIT",
"scripts": {
"prepublish": ". ./.scripts/prepublish.sh",
"lint": "eslint src",
"lintfix": "eslint src --fix",
"testonly": "mocha --require .scripts/mocha_runner ./test/**/*.js",
"test": "npm run lint && npm run testonly",
"test-watch": "npm run testonly -- --watch --watch-extensions js",
"storybook": "start-storybook -p 6006",
"publish-storybook": "bash .scripts/publish_storybook.sh",
"build-storybook": "build-storybook"
},
"devDependencies": {
"@babel/cli": "^7.5.0",
"@babel/core": "^7.5.4",
"@babel/plugin-transform-runtime": "^7.5.0",
"@babel/plugin-transform-spread": "7.2.2",
"@babel/preset-env": "^7.5.4",
"@babel/preset-react": "^7.0.0",
"@babel/preset-stage-0": "^7.0.0",
"@babel/runtime": "^7.5.4",
"@storybook/react": "^5.1.9",
"babel-eslint": "^10.0.2",
"babel-loader": "^8.0.6",
"chai": "^4.2.0",
"enzyme": "^3.10.0",
"eslint": "^6.0.1",
"eslint-config-frack": "^2.2.3",
"git-url-parse": "^11.1.2",
"jest": "^24.8.0",
"jsdom": "^15.1.1",
"mocha": "^6.1.4",
"react": "^16.8.6",
"react-addons-test-utils": "^15.6.2",
"react-dom": "^16.8.6",
"sinon": "^7.3.2",
"@babel/preset-flow": "^7.0.0",
"core-js": "3.1.4",
"lru-memoize": "1.1.0"
},
"peerDependencies": {
"react": "^16.8.6"
},
"dependencies": {},
"main": "dist/index.js",
"engines": {
"npm": "^3.0.0"
}
}
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