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

react-json-syntax-highlighter

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-json-syntax-highlighter - npm Package Compare versions

Comparing version 0.1.15 to 0.2.0

dist/ReactJsonSyntaxHighlighter.css.map

3

dist/ReactJsonSyntaxHighlighter.min.js

@@ -1,1 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactJsonSyntaxHighlighter=t(require("react")):e.ReactJsonSyntaxHighlighter=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),u=n(o);t.default=u.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(3),u=n(o);r(2);var a=function(e){var t=e.obj;if(0===Object.keys(t).length)return null;var r=JSON.stringify(t,void 0,2);return r=r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),r=r.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,function(e){var t="number";return/^"/.test(e)?t=/:$/.test(e)?"key":"string":/true|false/.test(e)?t="boolean":/null/.test(e)&&(t="null"),"<span class='"+t+"'>"+e+"</span>"}),u.default.createElement("div",{className:"ReactJsonSyntaxHighlighter"},u.default.createElement("pre",{dangerouslySetInnerHTML:{__html:r}}))};a.propTypes={obj:o.PropTypes.object.isRequired},t.default=a},function(e,t){},function(t,r){t.exports=e}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactJsonSyntaxHighlighter=t(require("react")):e.ReactJsonSyntaxHighlighter=t(e.react)}("undefined"!=typeof self?self:this,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.default=r.a},function(e,t,n){"use strict";var r=n(3),o=n.n(r),u=n(4),i=n.n(u),a=n(9),s=(n.n(a),function(e){var t=e.obj;if(0===Object.keys(t).length)return null;var n=JSON.stringify(t,void 0,2);return n=(n=n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(e){var t="number";return/^"/.test(e)?t=/:$/.test(e)?"key":"string":/true|false/.test(e)?t="boolean":/null/.test(e)&&(t="null"),"<span class='"+t+"'>"+e+"</span>"}),o.a.createElement("div",{className:"ReactJsonSyntaxHighlighter"},o.a.createElement("pre",{dangerouslySetInnerHTML:{__html:n}}))});s.propTypes={obj:i.a.object.isRequired},t.a=s},function(t,n){t.exports=e},function(e,t,n){e.exports=n(5)()},function(e,t,n){"use strict";var r=n(6),o=n(7),u=n(8);e.exports=function(){function e(e,t,n,r,i,a){a!==u&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,u,i,a,s){if(r(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[n,o,u,i,a,s],l=0;(c=new Error(t.replace(/%s/g,function(){return f[l++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){}])});
//# sourceMappingURL=ReactJsonSyntaxHighlighter.min.js.map
{
"name": "react-json-syntax-highlighter",
"version": "0.1.15",
"version": "0.2.0",
"description": "Serialize javascript objects as highlighted, formatted json",
"main": "./dist/ReactJsonSyntaxHighlighter.min.js",
"scripts": {
"bundle": "webpack --config webpack.config.js",
"dev": "node ./playground/server.js",
"prepublish": "npm run bundle",
"test": "echo \"Error: no test specified\" && exit 1"
"start": "indoqa-dev-server indoqa-webpack-options.js",
"dist": "yarn run lint && indoqa-webpack ./indoqa-webpack-options.js",
"prepublish": "yarn run dist",
"lint": "indoqa-eslint ./src/main",
"test": "react-scripts test --env=jsdom"
},

@@ -30,30 +31,14 @@ "repository": {

"peerDependencies": {
"react": "^0.14.0 || ^15.0.0-0",
"react-dom": "^0.14.0 || ^15.0.0-0"
"react": "^0.14.0 || ^15.0.0-0 || ^16.4.0-0",
"react-dom": "^0.14.0 || ^15.0.0-0 || ^16.4.0-0"
},
"dependencies": {
"prop-types": "^15.6.1",
"react": "16.4.0",
"react-dom": "16.4.0"
},
"devDependencies": {
"autoprefixer": "6.3.6",
"autoprefixer-loader": "3.2.0",
"babel-core": "6.3.15",
"babel-eslint": "6.0.2",
"babel-loader": "6.2.0",
"babel-preset-es2015": "6.3.13",
"babel-preset-react": "6.3.13",
"babel-preset-react-hmre": "1.1.1",
"babel-register": "6.3.13",
"css-loader": "0.23.1",
"eslint": "2.5.3",
"eslint-config-indoqa": "1.0.14",
"eslint-plugin-react": "4.2.3",
"express": "4.13.4",
"extract-text-webpack-plugin": "1.0.1",
"react": "15.0.1",
"react-dom": "15.0.1",
"style-loader": "^0.13.1",
"stylus": "^0.54.2",
"stylus-loader": "^2.0.0",
"webpack": "1.13.0",
"webpack-dev-middleware": "1.6.1",
"webpack-hot-middleware": "2.10.0"
"indoqa-webpack": "1.2.0",
"react-scripts": "^1.1.4"
}
}

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