Merge pull request #22 from ritz078/helmet

added meta tags
This commit is contained in:
Ritesh Kumar authored and GitHub committed 2017-09-01 18:19:21 +05:30
commit 4b654672cb
14 files changed
+699 -264

No files matched your search

+1 -1
View File
@@ -3,5 +3,5 @@
node_modules
.idea
out
yarn-error.log
+32 -31
View File
@@ -13,11 +13,11 @@ if (isBrowser) {
require("codemirror-graphql/mode");
require("codemirror/mode/javascript/javascript");
require("codemirror/mode/xml/xml");
require("codemirror/mode/jsx/jsx")
require("codemirror/mode/css/css")
require("codemirror/mode/rust/rust")
require("codemirror/mode/sql/sql")
require("codemirror/mode/clike/clike")
require("codemirror/mode/jsx/jsx");
require("codemirror/mode/css/css");
require("codemirror/mode/rust/rust");
require("codemirror/mode/sql/sql");
require("codemirror/mode/clike/clike");
}
const prettifyMap = {
@@ -29,23 +29,23 @@ const prettifyMap = {
const modeMapping = {
javascript: {
name: 'javascript'
name: "javascript"
},
json: {
name: 'javascript',
name: "javascript",
json: true
},
typescript: {
name: 'javascript',
name: "javascript",
typescript: true
},
html: {
name: 'xml',
name: "xml",
htmlMode: true
},
mysql: 'text/x-mysql',
scala: 'text/x-scala'
}
mysql: "text/x-mysql",
scala: "text/x-scala"
};
type Props = {
leftMode: ?string,
@@ -262,7 +262,7 @@ export default class ConversionPanel extends PureComponent {
}
.btn:hover {
background-color: #2380ca;
background-color: #0490ff;
}
.header {
@@ -281,6 +281,7 @@ export default class ConversionPanel extends PureComponent {
.title {
padding-left: 4px;
color: #666;
font-weight: normal;
}
`}</style>
@@ -295,7 +296,8 @@ export default class ConversionPanel extends PureComponent {
overflow: hidden;
}
.react-codemirror2, .CodeMirror {
.react-codemirror2,
.CodeMirror {
display: flex;
flex: 1;
width: 100%;
@@ -303,7 +305,7 @@ export default class ConversionPanel extends PureComponent {
}
.CodeMirror {
height: calc(100%)
height: calc(100%);
}
.right .CodeMirror-scroll {
@@ -351,15 +353,14 @@ export default class ConversionPanel extends PureComponent {
<div className={leftClass}>
<div style={{ display: "contents" }}>
<div className="header">
<div className="title">{leftTitle}</div>
<h4 className="title">{leftTitle}</h4>
<button className="btn" onClick={this.prettifyCode}>
Prettify
</button>
</div>
{isBrowser && (
<CodeMirror
onValueChange={(editor, metadata, value) =>
this.onChange(value)}
onChange={(editor, metadata, value) => this.onChange(value)}
value={value}
options={{
mode: modeMapping[leftMode] || leftMode,
@@ -372,10 +373,10 @@ export default class ConversionPanel extends PureComponent {
isBrowser && (
<div style={{ display: "contents" }}>
<div className="header">
<div className="title">{splitTitle}</div>
<h4 className="title">{splitTitle}</h4>
</div>
<CodeMirror
onValueChange={(editor, metadata, value) =>
onChange={(editor, metadata, value) =>
this.onChange(this.state.value, value)}
value={splitValue}
options={{
@@ -388,7 +389,7 @@ export default class ConversionPanel extends PureComponent {
</div>
<div className="section right">
<div className="header">
<div className="title">{rightTitle}</div>
<h4 className="title">{rightTitle}</h4>
{onCheckboxChange && (
<label htmlFor="#text">
<input
@@ -406,20 +407,20 @@ export default class ConversionPanel extends PureComponent {
</div>
{isBrowser && (
<CodeMirror
value={
prettifyRightPanel ? (
value={
prettifyRightPanel ? (
window.js_beautify(resultValue, { e4x: true })
) : (
resultValue
)
}
options={{
readOnly: true,
mode: modeMapping[rightMode] || rightMode,
...codeMirrorOptions,
lineNumbers: false
}}
/>
}
options={{
readOnly: true,
mode: modeMapping[rightMode] || rightMode,
...codeMirrorOptions,
lineNumbers: false
}}
/>
)}
</div>
</div>
+14 -145
View File
@@ -9,6 +9,7 @@ import FuzzyPicker, { FuzzyWrapper } from "react-fuzzy-picker";
import Collapse, { Panel } from "rc-collapse";
import flatten from "lodash/flatten";
import findIndex from "lodash/findIndex";
import { categorizedRoutes, routes, activeRouteData } from "../utils/routes";
NProgress.configure({ showSpinner: false });
@@ -20,137 +21,6 @@ Router.onRouteChangeStart = url => {
Router.onRouteChangeComplete = () => NProgress.done();
Router.onRouteChangeError = () => NProgress.done();
const x = [
{
category: "React",
iconName: "icon-reactjs",
content: [
{
label: "JSON to React PropTypes",
path: "/"
},
{
label: "HTML to JSX",
path: "/html-to-jsx"
},
{
label: "CSS to JS Objects",
path: "/css-to-js"
}
]
},
{
category: "JavaScript",
iconName: "icon-javascript",
content: [
{
label: "JSON to Flow Types",
path: "/json-to-flow-types"
},
{
label: "JSON to Typescript Interface",
path: "/json-to-ts-interface"
},
{
label: "JSON to MobX-State-Tree Model",
path: "/json-to-mobx-state-tree"
}
]
},
{
category: "Rust",
iconName: "icon-rust",
content: [
{
label: "JSON to Rust Serde",
path: "/json-to-rust-serde"
}
]
},
{
category: "Databases",
iconName: "icon-database",
content: [
{
label: "JSON to Mongoose Schema",
path: "/json-to-mongoose"
},
{
label: "JSON to Big Query Schema",
path: "/json-to-big-query"
},
{
label: "JSON to MySQL",
path: "/json-to-mysql"
}
]
},
{
category: "Scala",
iconName: "icon-scala",
content: [
{
label: "JSON to Scala Case Class",
path: "/json-to-scala-case-class"
}
]
},
{
category: "GraphQL",
icon: (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400">
<path
fill="#ffffff"
d="M57.468 302.66l-14.376-8.3 160.15-277.38 14.376 8.3z"
/>
<path fill="#ffffff" d="M39.8 272.2h320.3v16.6H39.8z" />
<path
fill="#ffffff"
d="M206.348 374.026l-160.21-92.5 8.3-14.376 160.21 92.5zM345.522 132.947l-160.21-92.5 8.3-14.376 160.21 92.5z"
/>
<path
fill="#ffffff"
d="M54.482 132.883l-8.3-14.375 160.21-92.5 8.3 14.376z"
/>
<path
fill="#ffffff"
d="M342.568 302.663l-160.15-277.38 14.376-8.3 160.15 277.38zM52.5 107.5h16.6v185H52.5zM330.9 107.5h16.6v185h-16.6z"
/>
<path
fill="#ffffff"
d="M203.522 367l-7.25-12.558 139.34-80.45 7.25 12.557z"
/>
<path
fill="#ffffff"
d="M369.5 297.9c-9.6 16.7-31 22.4-47.7 12.8-16.7-9.6-22.4-31-12.8-47.7 9.6-16.7 31-22.4 47.7-12.8 16.8 9.7 22.5 31 12.8 47.7M90.9 137c-9.6 16.7-31 22.4-47.7 12.8-16.7-9.6-22.4-31-12.8-47.7 9.6-16.7 31-22.4 47.7-12.8 16.7 9.7 22.4 31 12.8 47.7M30.5 297.9c-9.6-16.7-3.9-38 12.8-47.7 16.7-9.6 38-3.9 47.7 12.8 9.6 16.7 3.9 38-12.8 47.7-16.8 9.6-38.1 3.9-47.7-12.8M309.1 137c-9.6-16.7-3.9-38 12.8-47.7 16.7-9.6 38-3.9 47.7 12.8 9.6 16.7 3.9 38-12.8 47.7-16.7 9.6-38.1 3.9-47.7-12.8M200 395.8c-19.3 0-34.9-15.6-34.9-34.9 0-19.3 15.6-34.9 34.9-34.9 19.3 0 34.9 15.6 34.9 34.9 0 19.2-15.6 34.9-34.9 34.9M200 74c-19.3 0-34.9-15.6-34.9-34.9 0-19.3 15.6-34.9 34.9-34.9 19.3 0 34.9 15.6 34.9 34.9 0 19.3-15.6 34.9-34.9 34.9"
/>
</svg>
),
content: [
{
label: "GraphQL to TypeScript",
path: "/graphql-to-typescript"
},
{
label: "GraphQL to Flow",
path: "/graphql-to-flow"
}
]
},
{
category: "XML",
iconName: "icon-html",
content: [
{
label: "XML to JSON",
path: "/xml-to-json"
}
]
}
];
const routes = flatten(x.map(a => a.content));
function Logo() {
return (
<svg
@@ -216,10 +86,6 @@ export default class Layout extends PureComponent {
}
componentWillMount() {
this.setKey(this.props.pathname)
}
componentDidMount() {
this.setKey(this.props.pathname);
}
@@ -230,7 +96,7 @@ export default class Layout extends PureComponent {
setKey = pathname => {
this.setState({
activeKey: `${findIndex(
x,
categorizedRoutes,
o => o.content.filter(a => a.path === pathname).length
) + 1}`
});
@@ -243,21 +109,25 @@ export default class Layout extends PureComponent {
};
render() {
const { label, desc } = activeRouteData(this.props.pathname);
return (
<div className="main-wrapper">
<Head>
<title>Transform | All important transforms at one place.</title>
<meta
rel="description"
content="An online utility to convert a JSON object to prop-types, Typescript Interface, Rust serde or flow types. It also converts your CSS into JS and HTML into JSX."
/>
<title>{label}</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/png" href="/static/favicon.png" />
<meta
name="google-site-verification"
content="bjJSOEahdert-7mwVScrwTTUVR3nSe0bEj5YjevUNn0"
/>
<link rel="icon" type="image/png" href="/static/favicon.png" />
<meta name="description" content={desc} />
<link rel="stylesheet" type="text/css" href="/static/nprogress.css" />
<link rel="stylesheet" type="text/css" href="/static/codemirror.css" />
<link
rel="stylesheet"
type="text/css"
href="/static/codemirror.css"
/>
<link
rel="stylesheet"
type="text/css"
@@ -352,7 +222,6 @@ export default class Layout extends PureComponent {
`}</style>
<style jsx global>{`
.Collapsible__trigger {
color: whitesmoke;
font-family: "Lato", sans-serif;
@@ -420,7 +289,7 @@ export default class Layout extends PureComponent {
activeKey={this.state.activeKey}
defaultActiveKey={this.state.activeKey}
>
{x.map((route, i) => {
{categorizedRoutes.map((route, i) => {
return (
<Panel
key={i + 1}
+11
View File
@@ -2,6 +2,7 @@ const BabiliPlugin = require("babili-webpack-plugin")
const webpack = require("webpack")
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')
const { ANALYZE } = process.env
const glob = require("glob")
module.exports = {
webpack: (config, { dev }) => {
@@ -37,5 +38,15 @@ module.exports = {
}
return config;
},
exportPathMap() {
const pathMap = {}
glob.sync('pages/**/*.js', { ignore: 'pages/_document.js' }).forEach(s => {
const path = s.split(/(pages|\.)/)[2].replace(/^\/index$/, '/')
console.log(path)
pathMap[path] = { page: path }
})
return pathMap
}
};
+10 -8
View File
@@ -5,11 +5,12 @@
"main": "index.js",
"scripts": {
"start": "next start",
"build": "next build",
"build": "rm -rf out && next build && next export",
"dev": "next dev",
"addContributor": "all-contributors add",
"analyze": "cross-env ANALYZE=1 next build",
"format": "prettier --write **/*.js",
"deploy": "yarn build && cd out && now",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
@@ -19,34 +20,35 @@
"@tsuyoshiwada/htmltojsx": "^0.0.4",
"apollo-codegen": "0.17.0-alpha.1",
"babel-standalone": "^6.26.0",
"babili-webpack-plugin": "^0.1.2",
"classnames": "^2.2.5",
"codemirror": "^5.29.0",
"codemirror-graphql": "^0.6.11",
"copy-text-to-clipboard": "^1.0.3",
"css-loader": "^0.28.7",
"css-to-react-native": "^2.0.4",
"generate-schema": "^2.5.1",
"graphql": "^0.10.5",
"is-in-browser": "^1.1.3",
"json2dts": "^0.0.2",
"lodash": "^4.17.4",
"next": "^3.1.0",
"next": "^3.2.1",
"nprogress": "^0.2.0",
"prop-types": "^15.5.10",
"rc-collapse": "^1.7.6",
"react": "^15.6.1",
"react-codemirror2": "^0.0.14",
"react-codemirror2": "^1.0.0",
"react-dom": "^15.6.1",
"react-fuzzy-picker": "^0.5.1",
"react-github-corner": "^1.0.0",
"stringify-object": "^3.2.0",
"style-loader": "^0.18.2",
"webpack-bundle-analyzer": "^2.9.0",
"xml-js": "^1.4.1"
},
"devDependencies": {
"all-contributors-cli": "^4.4.0",
"prettier": "^1.6.1"
"babili-webpack-plugin": "^0.1.2",
"css-loader": "^0.28.7",
"glob": "^7.1.2",
"prettier": "^1.6.1",
"style-loader": "^0.18.2",
"webpack-bundle-analyzer": "^2.9.0"
}
}
-1
View File
@@ -58,7 +58,6 @@ export default class Css2Js extends PureComponent {
return (
<Layout pathname={this.props.url.pathname}>
<ConversionPanel
url={this.props.url}
leftTitle="CSS"
rightTitle="JavaScript"
leftMode="css"
+1 -1
View File
@@ -23,7 +23,7 @@ export default class Json2Ts extends PureComponent {
url={this.props.url}
prettifyRightPanel={false}
splitLeft={true}
splitMode={'graphql'}
splitMode={"graphql"}
splitTitle={"Query"}
splitValue={dummyQuery}
/>
+1 -1
View File
@@ -23,7 +23,7 @@ export default class Json2Ts extends PureComponent {
url={this.props.url}
prettifyRightPanel={false}
splitLeft={true}
splitMode={'graphql'}
splitMode={"graphql"}
splitTitle={"Query"}
splitValue={dummyQuery}
/>
+1 -1
View File
@@ -33,7 +33,7 @@ export default class Main extends PureComponent {
getTransformedValue={this.getTransformedValue}
name={"prop_types"}
defaultText={defaultText}
onCheckboxChange={(checked, cb) =>
onCheckboxChange={(checked, cb) =>
this.setState({ isImmutable: checked }, cb)}
checkboxText="Immutable Proptypes"
/>
+396
View File
@@ -0,0 +1,396 @@
/* BASICS */
.CodeMirror {
/* Set height, width, borders, and global font properties here */
font: 14px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
height: 300px;
color: black;
direction: ltr;
}
/* PADDING */
.CodeMirror-lines {
padding: 4px 0; /* Vertical padding around content */
}
.CodeMirror pre {
padding: 0 4px; /* Horizontal padding of content */
}
.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
background-color: white; /* The little square between H and V scrollbars */
}
/* GUTTER */
.CodeMirror-gutters {
border-right: 1px solid #ddd;
background-color: #f7f7f7;
white-space: nowrap;
}
.CodeMirror-linenumbers {}
.CodeMirror-linenumber {
padding: 0 3px 0 5px;
min-width: 20px;
text-align: right;
color: #999;
white-space: nowrap;
}
.CodeMirror-guttermarker { color: black; }
.CodeMirror-guttermarker-subtle { color: #999; }
/* CURSOR */
.CodeMirror-cursor {
border-left: 1px solid black;
border-right: none;
width: 0;
}
/* Shown when moving in bi-directional text */
.CodeMirror div.CodeMirror-secondarycursor {
border-left: 1px solid silver;
}
.cm-fat-cursor .CodeMirror-cursor {
width: auto;
border: 0 !important;
background: #7e7;
}
.cm-fat-cursor div.CodeMirror-cursors {
z-index: 1;
}
.cm-animate-fat-cursor {
width: auto;
border: 0;
-webkit-animation: blink 1.06s steps(1) infinite;
-moz-animation: blink 1.06s steps(1) infinite;
animation: blink 1.06s steps(1) infinite;
background-color: #7e7;
}
@-moz-keyframes blink {
0% {}
50% { background-color: transparent; }
100% {}
}
@-webkit-keyframes blink {
0% {}
50% { background-color: transparent; }
100% {}
}
@keyframes blink {
0% {}
50% { background-color: transparent; }
100% {}
}
/* Can style cursor different in overwrite (non-insert) mode */
.CodeMirror-overwrite .CodeMirror-cursor {}
.cm-tab { display: inline-block; text-decoration: inherit; }
.CodeMirror-rulers {
position: absolute;
left: 0; right: 0; top: -50px; bottom: -20px;
overflow: hidden;
}
.CodeMirror-ruler {
border-left: 1px solid #ccc;
top: 0; bottom: 0;
position: absolute;
}
/* DEFAULT THEME */
.cm-s-chrome-devtools .cm-header {color: blue;}
.cm-s-chrome-devtools .cm-quote {color: #090;}
.cm-negative {color: #d44;}
.cm-positive {color: #292;}
.cm-header, .cm-strong {font-weight: bold;}
.cm-em {font-style: italic;}
.cm-link {text-decoration: underline;}
.cm-strikethrough {text-decoration: line-through;}
.cm-s-chrome-devtools .cm-keyword {color: #708;}
.cm-s-chrome-devtools .cm-atom {color: #219;}
.cm-s-chrome-devtools .cm-number {color: #164;}
.cm-s-chrome-devtools .cm-def {color: #00f;}
.cm-s-chrome-devtools .cm-variable,
.cm-s-chrome-devtools .cm-punctuation,
.cm-s-chrome-devtools .cm-property,
.cm-s-chrome-devtools .cm-operator {}
.cm-s-chrome-devtools .cm-variable-2 {color: #05a;}
.cm-s-chrome-devtools .cm-variable-3, .cm-s-chrome-devtools .cm-type {color: #085;}
.cm-s-chrome-devtools .cm-comment {color: #a50;}
.cm-s-chrome-devtools .cm-string {color: #a11;}
.cm-s-chrome-devtools .cm-string-2 {color: #f50;}
.cm-s-chrome-devtools .cm-meta {color: #555;}
.cm-s-chrome-devtools .cm-qualifier {color: #555;}
.cm-s-chrome-devtools .cm-builtin {color: #30a;}
.cm-s-chrome-devtools .cm-bracket {color: #997;}
.cm-s-chrome-devtools .cm-hr {color: #999;}
.cm-s-chrome-devtools .cm-link {color: #00c;}
.cm-s-chrome-devtools .cm-error {color: #f00;}
.cm-invalidchar {color: #f00;}
.CodeMirror-composing { border-bottom: 2px solid; }
/* Default styles for common addons */
div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
.CodeMirror-activeline-background {background: #e8f2ff;}
/* STOP */
/* The rest of this file contains styles related to the mechanics of
the editor. You probably shouldn't touch them. */
.CodeMirror {
position: relative;
overflow: hidden;
background: white;
}
.CodeMirror-scroll {
overflow: scroll !important; /* Things will break if this is overridden */
/* 30px is the magic margin used to hide the element's real scrollbars */
/* See overflow: hidden in .CodeMirror */
margin-bottom: -30px; margin-right: -30px;
padding-bottom: 30px;
height: 100%;
outline: none; /* Prevent dragging from highlighting the element */
position: relative;
}
.CodeMirror-sizer {
position: relative;
border-right: 30px solid transparent;
}
/* The fake, visible scrollbars. Used to force redraw during scrolling
before actual scrolling happens, thus preventing shaking and
flickering artifacts. */
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
position: absolute;
z-index: 6;
display: none;
}
.CodeMirror-vscrollbar {
right: 0; top: 0;
overflow-x: hidden;
overflow-y: scroll;
}
.CodeMirror-hscrollbar {
bottom: 0; left: 0;
overflow-y: hidden;
overflow-x: scroll;
}
.CodeMirror-scrollbar-filler {
right: 0; bottom: 0;
}
.CodeMirror-gutter-filler {
left: 0; bottom: 0;
}
.CodeMirror-gutters {
position: absolute; left: 0; top: 0;
min-height: 100%;
z-index: 3;
}
.CodeMirror-gutter {
white-space: normal;
height: 100%;
display: inline-block;
vertical-align: top;
margin-bottom: -30px;
}
.CodeMirror-gutter-wrapper {
position: absolute;
z-index: 4;
background: none !important;
border: none !important;
}
.CodeMirror-gutter-background {
position: absolute;
top: 0; bottom: 0;
z-index: 4;
}
.CodeMirror-gutter-elt {
position: absolute;
cursor: default;
z-index: 4;
}
.CodeMirror-gutter-wrapper ::selection { background-color: transparent }
.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }
.CodeMirror-lines {
cursor: text;
min-height: 1px; /* prevents collapsing before first draw */
}
.CodeMirror pre {
/* Reset some styles that the rest of the page might have set */
-moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
border-width: 0;
background: transparent;
font-family: inherit;
font-size: inherit;
margin: 0;
white-space: pre;
word-wrap: normal;
line-height: inherit;
color: inherit;
z-index: 2;
position: relative;
overflow: visible;
-webkit-tap-highlight-color: transparent;
-webkit-font-variant-ligatures: contextual;
font-variant-ligatures: contextual;
}
.CodeMirror-wrap pre {
word-wrap: break-word;
white-space: pre-wrap;
word-break: normal;
}
.CodeMirror-linebackground {
position: absolute;
left: 0; right: 0; top: 0; bottom: 0;
z-index: 0;
}
.CodeMirror-linewidget {
position: relative;
z-index: 2;
overflow: auto;
}
.CodeMirror-widget {}
.CodeMirror-rtl pre { direction: rtl; }
.CodeMirror-code {
outline: none;
}
/* Force content-box sizing for the elements where we expect it */
.CodeMirror-scroll,
.CodeMirror-sizer,
.CodeMirror-gutter,
.CodeMirror-gutters,
.CodeMirror-linenumber {
-moz-box-sizing: content-box;
box-sizing: content-box;
}
.CodeMirror-measure {
position: absolute;
width: 100%;
height: 0;
overflow: hidden;
visibility: hidden;
}
.CodeMirror-cursor {
position: absolute;
pointer-events: none;
}
.CodeMirror-measure pre { position: static; }
div.CodeMirror-cursors {
visibility: hidden;
position: relative;
z-index: 3;
}
div.CodeMirror-dragcursors {
visibility: visible;
}
.CodeMirror-focused div.CodeMirror-cursors {
visibility: visible;
}
.CodeMirror-selected { background: #d9d9d9; }
.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
.CodeMirror-crosshair { cursor: crosshair; }
.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }
.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }
.cm-searching {
background-color: #ffa;
background-color: rgba(255, 255, 0, .4);
}
/* Used to force a border model for a node */
.cm-force-border { padding-right: .1px; }
@media print {
/* Hide the cursor when printing */
.CodeMirror div.CodeMirror-cursors {
visibility: hidden;
}
}
/* See issue #2901 */
.cm-tab-wrap-hack:after { content: ''; }
/* Help users use markselection to safely style text background */
span.CodeMirror-selectedtext { background: none; }
.cm-s-chrome-devtools {
background: #FFFFFF;
color: #000000;
}
.cm-s-chrome-devtools .CodeMirror-lines {
padding: 8px 0;
}
.cm-s-chrome-devtools .CodeMirror-gutters {
background-color: #FFFFFF;
padding-right: 14px;
z-index: 3;
border: none;
border-right: 1px solid #eeeeee;
}
.cm-s-chrome-devtools div.CodeMirror-cursor {
border-left: 3px solid #000000;
}
.cm-s-chrome-devtools .CodeMirror-activeline-background {
background: #0000001A;
}
.cm-s-chrome-devtools .CodeMirror-selected {
background: #BAD6FD;
}
.cm-s-chrome-devtools .cm-string {
color: #C41A16;
}
.cm-s-chrome-devtools .cm-number {
color: null;
}
.cm-s-chrome-devtools .cm-keyword {
color: #AA0D91;
}
.cm-s-chrome-devtools .cm-atom {
color: null;
}
.cm-s-chrome-devtools .cm-variable {
color: #000000;
}
.cm-s-chrome-devtools .cm-comment {
color: #007400;
}
.cm-s-chrome-devtools .cm-variable-2 {
color: #881280;
}
.cm-s-chrome-devtools .cm-property {
color: null;
}
.cm-s-chrome-devtools .cm-operator {
color: #AA0D91;
}
.cm-s-chrome-devtools .cm-tag {
color: #AA0D91
}
.cm-s-chrome-devtools .cm-attribute {
color: #866A04
}
@@ -69,9 +69,11 @@ export default function({ types: t }) {
},
VariableDeclaration(path) {
path.insertBefore(t.identifier(`import ImmutablePropTypes from 'react-immutable-proptypes'
path.insertBefore(
t.identifier(`import ImmutablePropTypes from 'react-immutable-proptypes'
import PropTypes from 'prop-types
`))
`)
);
},
Program(path) {
+6 -4
View File
@@ -77,12 +77,14 @@ export default function({ types: t }) {
},
VariableDeclaration(path) {
path.insertBefore(t.identifier(
`import PropTypes from 'prop-types'
`))
path.insertBefore(
t.identifier(
`import PropTypes from 'prop-types'
`
)
);
},
ObjectExpression(path) {
if (
t.isVariableDeclarator(path.parent) ||
+162
View File
@@ -0,0 +1,162 @@
import flatten from "lodash/flatten";
import find from "lodash/find";
function GraphQLIcon() {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400">
<path
fill="#ffffff"
d="M57.468 302.66l-14.376-8.3 160.15-277.38 14.376 8.3z"
/>
<path fill="#ffffff" d="M39.8 272.2h320.3v16.6H39.8z" />
<path
fill="#ffffff"
d="M206.348 374.026l-160.21-92.5 8.3-14.376 160.21 92.5zM345.522 132.947l-160.21-92.5 8.3-14.376 160.21 92.5z"
/>
<path
fill="#ffffff"
d="M54.482 132.883l-8.3-14.375 160.21-92.5 8.3 14.376z"
/>
<path
fill="#ffffff"
d="M342.568 302.663l-160.15-277.38 14.376-8.3 160.15 277.38zM52.5 107.5h16.6v185H52.5zM330.9 107.5h16.6v185h-16.6z"
/>
<path
fill="#ffffff"
d="M203.522 367l-7.25-12.558 139.34-80.45 7.25 12.557z"
/>
<path
fill="#ffffff"
d="M369.5 297.9c-9.6 16.7-31 22.4-47.7 12.8-16.7-9.6-22.4-31-12.8-47.7 9.6-16.7 31-22.4 47.7-12.8 16.8 9.7 22.5 31 12.8 47.7M90.9 137c-9.6 16.7-31 22.4-47.7 12.8-16.7-9.6-22.4-31-12.8-47.7 9.6-16.7 31-22.4 47.7-12.8 16.7 9.7 22.4 31 12.8 47.7M30.5 297.9c-9.6-16.7-3.9-38 12.8-47.7 16.7-9.6 38-3.9 47.7 12.8 9.6 16.7 3.9 38-12.8 47.7-16.8 9.6-38.1 3.9-47.7-12.8M309.1 137c-9.6-16.7-3.9-38 12.8-47.7 16.7-9.6 38-3.9 47.7 12.8 9.6 16.7 3.9 38-12.8 47.7-16.7 9.6-38.1 3.9-47.7-12.8M200 395.8c-19.3 0-34.9-15.6-34.9-34.9 0-19.3 15.6-34.9 34.9-34.9 19.3 0 34.9 15.6 34.9 34.9 0 19.2-15.6 34.9-34.9 34.9M200 74c-19.3 0-34.9-15.6-34.9-34.9 0-19.3 15.6-34.9 34.9-34.9 19.3 0 34.9 15.6 34.9 34.9 0 19.3-15.6 34.9-34.9 34.9"
/>
</svg>
);
}
export const categorizedRoutes = [
{
category: "React",
iconName: "icon-reactjs",
content: [
{
label: "JSON to React PropTypes",
path: "/",
desc:
"An online utility to convert a JSON object to prop-types, Typescript Interface, Rust serde or flow types. It also converts your CSS into JS and HTML into JSX."
},
{
label: "HTML to JSX",
path: "/html-to-jsx",
desc:
"An online REPL for converting HTML to JSX with proper support for SVG."
},
{
label: "CSS to JS Objects",
path: "/css-to-js",
desc:
"An online REPL for converting CSS to JS object. It also gives style optimized for React Native."
}
]
},
{
category: "JavaScript",
iconName: "icon-javascript",
content: [
{
label: "JSON to Flow Types",
path: "/json-to-flow-types",
desc: "An online REPL for converting JSON to generate Flow Types."
},
{
label: "JSON to Typescript Interface",
path: "/json-to-ts-interface",
desc:
"An online REPL for converting JSON to generate TypeScript Interface."
},
{
label: "JSON to MobX-State-Tree Model",
path: "/json-to-mobx-state-tree",
desc: "An online REPL for converting JSON to generate Mobx State Tree."
}
]
},
{
category: "Rust",
iconName: "icon-rust",
content: [
{
label: "JSON to Rust Serde",
path: "/json-to-rust-serde",
desc: "An online REPL for converting JSON to Rust Serde Structs."
}
]
},
{
category: "Databases",
iconName: "icon-database",
content: [
{
label: "JSON to Mongoose Schema",
path: "/json-to-mongoose",
desc: "An online REPL to generate Mongoose Schema from JSON."
},
{
label: "JSON to Big Query Schema",
path: "/json-to-big-query",
desc: "An online REPL to generate Big Query Schema from JSON."
},
{
label: "JSON to MySQL",
path: "/json-to-mysql",
desc:
"An online REPL to generate MySQL table generation code from JSON."
}
]
},
{
category: "Scala",
iconName: "icon-scala",
content: [
{
label: "JSON to Scala Case Class",
path: "/json-to-scala-case-class",
desc: "An online REPL to generate Scala Case Class from JSON."
}
]
},
{
category: "GraphQL",
icon: <GraphQLIcon />,
content: [
{
label: "GraphQL to TypeScript",
path: "/graphql-to-typescript",
desc:
"An online REPL to generate TypeScript type annotations based on a GraphQL schema and query documents."
},
{
label: "GraphQL to Flow",
path: "/graphql-to-flow",
desc:
"An online REPL to generate Flow type annotations based on a GraphQL schema and query documents."
}
]
},
{
category: "XML",
iconName: "icon-html",
content: [
{
label: "XML to JSON",
path: "/xml-to-json",
desc: "An online REPL to generate basic JSON from a XML."
}
]
}
];
export const routes = flatten(categorizedRoutes.map(a => a.content));
export function activeRouteData(pathname) {
return find(routes, o => o.path === pathname);
}
+60 -69
View File
@@ -15,10 +15,10 @@ abbrev@1:
resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.0.tgz#d0554c2256636e2f56e7c2e5ad183f859428d81f"
accepts@~1.3.3:
version "1.3.3"
resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.3.tgz#c3ca7434938648c3e0d9c1e328dd68b622c284ca"
version "1.3.4"
resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.4.tgz#86246758c7dd6d21a6474ff084a4740ec05eb21f"
dependencies:
mime-types "~2.1.11"
mime-types "~2.1.16"
negotiator "0.6.1"
acorn-dynamic-import@^2.0.0:
@@ -772,16 +772,16 @@ babel-plugin-transform-inline-consecutive-adds@^0.1.2:
resolved "https://registry.yarnpkg.com/babel-plugin-transform-inline-consecutive-adds/-/babel-plugin-transform-inline-consecutive-adds-0.1.2.tgz#5442e9f1c19c78a7899f8a4dee6fd481f61001f5"
babel-plugin-transform-member-expression-literals@^6.8.4:
version "6.8.4"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-member-expression-literals/-/babel-plugin-transform-member-expression-literals-6.8.4.tgz#05679bc40596b91293401959aa1620ab1b2be437"
version "6.8.5"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-member-expression-literals/-/babel-plugin-transform-member-expression-literals-6.8.5.tgz#e06ae305cf48d819822e93a70d79269f04d89eec"
babel-plugin-transform-merge-sibling-variables@^6.8.5:
version "6.8.5"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-merge-sibling-variables/-/babel-plugin-transform-merge-sibling-variables-6.8.5.tgz#03abdf107c61241913eb268ddede6d5bc541862c"
version "6.8.6"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-merge-sibling-variables/-/babel-plugin-transform-merge-sibling-variables-6.8.6.tgz#6d21efa5ee4981f71657fae716f9594bb2622aef"
babel-plugin-transform-minify-booleans@^6.8.2:
version "6.8.2"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-minify-booleans/-/babel-plugin-transform-minify-booleans-6.8.2.tgz#8451579f706e702c1e1ab2756de5c8ea369cf07c"
version "6.8.3"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-minify-booleans/-/babel-plugin-transform-minify-booleans-6.8.3.tgz#5906ed776d3718250519abf1bace44b0b613ddf9"
babel-plugin-transform-object-rest-spread@6.22.0:
version "6.22.0"
@@ -791,8 +791,8 @@ babel-plugin-transform-object-rest-spread@6.22.0:
babel-runtime "^6.22.0"
babel-plugin-transform-property-literals@^6.8.4:
version "6.8.4"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-property-literals/-/babel-plugin-transform-property-literals-6.8.4.tgz#6ad311110b80a192a56efb5ddf4fe3ca6f7a61da"
version "6.8.5"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-property-literals/-/babel-plugin-transform-property-literals-6.8.5.tgz#67ed5930b34805443452c8b9690c7ebe1e206c40"
dependencies:
esutils "^2.0.2"
@@ -841,12 +841,12 @@ babel-plugin-transform-regexp-constructors@^0.1.1:
resolved "https://registry.yarnpkg.com/babel-plugin-transform-regexp-constructors/-/babel-plugin-transform-regexp-constructors-0.1.1.tgz#312ab7487cc88a1c62ee25ea1b6087e89b87799c"
babel-plugin-transform-remove-console@^6.8.4:
version "6.8.4"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-remove-console/-/babel-plugin-transform-remove-console-6.8.4.tgz#41fddac19a729a4c3dd7ef2964eac07b096f9a8f"
version "6.8.5"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-remove-console/-/babel-plugin-transform-remove-console-6.8.5.tgz#fde9d2d3d725530b0fadd8d31078402410386810"
babel-plugin-transform-remove-debugger@^6.8.4:
version "6.8.4"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-remove-debugger/-/babel-plugin-transform-remove-debugger-6.8.4.tgz#f85704a08adaa71b55d77005b5b94e9b9df21f6e"
version "6.8.5"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-remove-debugger/-/babel-plugin-transform-remove-debugger-6.8.5.tgz#809584d412bf918f071fdf41e1fdb15ea89cdcd5"
babel-plugin-transform-remove-undefined@^0.1.2:
version "0.1.2"
@@ -859,8 +859,8 @@ babel-plugin-transform-runtime@6.22.0:
babel-runtime "^6.22.0"
babel-plugin-transform-simplify-comparison-operators@^6.8.4:
version "6.8.4"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-simplify-comparison-operators/-/babel-plugin-transform-simplify-comparison-operators-6.8.4.tgz#2aa24a262d664c8cb3e125a306c798d7a2de08d5"
version "6.8.5"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-simplify-comparison-operators/-/babel-plugin-transform-simplify-comparison-operators-6.8.5.tgz#a838786baf40cc33a93b95ae09e05591227e43bf"
babel-plugin-transform-strict-mode@^6.24.1:
version "6.24.1"
@@ -870,8 +870,8 @@ babel-plugin-transform-strict-mode@^6.24.1:
babel-types "^6.24.1"
babel-plugin-transform-undefined-to-void@^6.8.2:
version "6.8.2"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-undefined-to-void/-/babel-plugin-transform-undefined-to-void-6.8.2.tgz#fe2b1d294eb05e87524eb93724dea6e2c3d66fa1"
version "6.8.3"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-undefined-to-void/-/babel-plugin-transform-undefined-to-void-6.8.3.tgz#fc52707f6ee1ddc71bb91b0d314fbefdeef9beb4"
babel-preset-babili@^0.1.4:
version "0.1.4"
@@ -1713,18 +1713,18 @@ date-now@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b"
debug@2.6.7, debug@^2.1.1:
version "2.6.7"
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.7.tgz#92bad1f6d05bbb6bba22cca88bcd0ec894c2861e"
dependencies:
ms "2.0.0"
debug@2.6.8, debug@^2.2.0, debug@^2.6.8:
version "2.6.8"
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.8.tgz#e731531ca2ede27d188222427da17821d68ff4fc"
dependencies:
ms "2.0.0"
debug@^2.1.1:
version "2.6.7"
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.7.tgz#92bad1f6d05bbb6bba22cca88bcd0ec894c2861e"
dependencies:
ms "2.0.0"
decamelize@^1.0.0, decamelize@^1.1.1, decamelize@^1.1.2:
version "1.2.0"
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
@@ -1775,7 +1775,7 @@ delegates@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a"
depd@1.1.1, depd@~1.1.0, depd@~1.1.1:
depd@1.1.1, depd@~1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.1.tgz#5783b4e1c459f06fa5ca27f991f3d06e7a310359"
@@ -2073,8 +2073,8 @@ expand-range@^1.8.1:
fill-range "^2.1.0"
express@^4.15.2:
version "4.15.3"
resolved "https://registry.yarnpkg.com/express/-/express-4.15.3.tgz#bab65d0f03aa80c358408972fc700f916944b662"
version "4.15.4"
resolved "https://registry.yarnpkg.com/express/-/express-4.15.4.tgz#032e2253489cf8fce02666beca3d11ed7a2daed1"
dependencies:
accepts "~1.3.3"
array-flatten "1.1.1"
@@ -2082,23 +2082,23 @@ express@^4.15.2:
content-type "~1.0.2"
cookie "0.3.1"
cookie-signature "1.0.6"
debug "2.6.7"
depd "~1.1.0"
debug "2.6.8"
depd "~1.1.1"
encodeurl "~1.0.1"
escape-html "~1.0.3"
etag "~1.8.0"
finalhandler "~1.0.3"
finalhandler "~1.0.4"
fresh "0.5.0"
merge-descriptors "1.0.1"
methods "~1.1.2"
on-finished "~2.3.0"
parseurl "~1.3.1"
path-to-regexp "0.1.7"
proxy-addr "~1.1.4"
qs "6.4.0"
proxy-addr "~1.1.5"
qs "6.5.0"
range-parser "~1.2.0"
send "0.15.3"
serve-static "1.12.3"
send "0.15.4"
serve-static "1.12.4"
setprototypeof "1.0.3"
statuses "~1.3.1"
type-is "~1.6.15"
@@ -2171,7 +2171,7 @@ fill-range@^2.1.0:
repeat-element "^1.1.2"
repeat-string "^1.5.2"
finalhandler@~1.0.3:
finalhandler@~1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.0.4.tgz#18574f2e7c4b98b8ae3b230c21f201f31bdb3fb7"
dependencies:
@@ -2547,6 +2547,10 @@ hoek@2.x.x:
version "2.16.3"
resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed"
hoist-non-react-statics@^2.2.2:
version "2.3.1"
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.3.1.tgz#343db84c6018c650778898240135a1420ee22ce0"
home-or-tmp@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8"
@@ -2588,7 +2592,7 @@ http-errors@~1.4.0:
inherits "2.0.1"
statuses ">= 1.2.1 < 2"
http-errors@~1.6.1, http-errors@~1.6.2:
http-errors@~1.6.2:
version "1.6.2"
resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.2.tgz#0a002cc85707192a7e7946ceedc11155f60ec736"
dependencies:
@@ -3176,7 +3180,7 @@ mime-db@~1.29.0:
version "1.29.0"
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.29.0.tgz#48d26d235589651704ac5916ca06001914266878"
mime-types@^2.1.12, mime-types@~2.1.11, mime-types@~2.1.15, mime-types@~2.1.7:
mime-types@^2.1.12, mime-types@~2.1.15, mime-types@~2.1.16, mime-types@~2.1.7:
version "2.1.16"
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.16.tgz#2b858a52e5ecd516db897ac2be87487830698e23"
dependencies:
@@ -3271,9 +3275,9 @@ negotiator@0.6.1:
version "0.6.1"
resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.1.tgz#2b327184e8992101177b28563fb5e7102acd0ca9"
next@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/next/-/next-3.1.0.tgz#8dfff9b89cfb95ba29cf43107dd0b7ff3a4f5d01"
next@^3.2.1:
version "3.2.1"
resolved "https://registry.yarnpkg.com/next/-/next-3.2.1.tgz#6d694823ac6e74e9be4553117144a6402220490f"
dependencies:
ansi-html "0.0.7"
babel-core "6.25.0"
@@ -3300,6 +3304,7 @@ next@^3.1.0:
friendly-errors-webpack-plugin "1.5.0"
glob "7.1.1"
glob-promise "3.1.0"
hoist-non-react-statics "^2.2.2"
htmlescape "1.1.1"
http-status "1.0.1"
json-loader "0.5.4"
@@ -4019,7 +4024,7 @@ prop-types@15.5.10, prop-types@15.x, prop-types@^15.5.10, prop-types@^15.5.4, pr
fbjs "^0.8.9"
loose-envify "^1.3.1"
proxy-addr@~1.1.4:
proxy-addr@~1.1.5:
version "1.1.5"
resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-1.1.5.tgz#71c0ee3b102de3f202f3b64f608d173fcba1a918"
dependencies:
@@ -4056,7 +4061,11 @@ q@^1.1.2:
version "1.5.0"
resolved "https://registry.yarnpkg.com/q/-/q-1.5.0.tgz#dd01bac9d06d30e6f219aecb8253ee9ebdc308f1"
qs@6.4.0, qs@~6.4.0:
qs@6.5.0:
version "6.5.0"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.0.tgz#8d04954d364def3efc55b5a0793e1e2c8b1e6e49"
qs@~6.4.0:
version "6.4.0"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233"
@@ -4118,9 +4127,9 @@ rc@^1.1.7:
minimist "^1.2.0"
strip-json-comments "~2.0.1"
react-codemirror2@^0.0.14:
version "0.0.14"
resolved "https://registry.yarnpkg.com/react-codemirror2/-/react-codemirror2-0.0.14.tgz#5e232f3af8d00549a624a0721279f574edc84a57"
react-codemirror2@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/react-codemirror2/-/react-codemirror2-1.0.0.tgz#b529a6c5c91219f92c751f43a17721cdaf36b05f"
dependencies:
codemirror "5.29.0"
@@ -4462,25 +4471,7 @@ schema-utils@^0.3.0:
version "5.4.1"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.4.1.tgz#e059c09d8571f0540823733433505d3a2f00b18e"
send@0.15.3:
version "0.15.3"
resolved "https://registry.yarnpkg.com/send/-/send-0.15.3.tgz#5013f9f99023df50d1bd9892c19e3defd1d53309"
dependencies:
debug "2.6.7"
depd "~1.1.0"
destroy "~1.0.4"
encodeurl "~1.0.1"
escape-html "~1.0.3"
etag "~1.8.0"
fresh "0.5.0"
http-errors "~1.6.1"
mime "1.3.4"
ms "2.0.0"
on-finished "~2.3.0"
range-parser "~1.2.0"
statuses "~1.3.1"
send@^0.15.3:
send@0.15.4, send@^0.15.3:
version "0.15.4"
resolved "https://registry.yarnpkg.com/send/-/send-0.15.4.tgz#985faa3e284b0273c793364a35c6737bd93905b9"
dependencies:
@@ -4505,14 +4496,14 @@ sentence-case@^2.1.0:
no-case "^2.2.0"
upper-case-first "^1.1.2"
serve-static@1.12.3:
version "1.12.3"
resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.12.3.tgz#9f4ba19e2f3030c547f8af99107838ec38d5b1e2"
serve-static@1.12.4:
version "1.12.4"
resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.12.4.tgz#9b6aa98eeb7253c4eedc4c1f6fdbca609901a961"
dependencies:
encodeurl "~1.0.1"
escape-html "~1.0.3"
parseurl "~1.3.1"
send "0.15.3"
send "0.15.4"
set-blocking@^2.0.0, set-blocking@~2.0.0:
version "2.0.0"