diff --git a/components/ConversionPanel.js b/components/ConversionPanel.js index d362ace..8952a28 100644 --- a/components/ConversionPanel.js +++ b/components/ConversionPanel.js @@ -1,58 +1,58 @@ -import React, { PureComponent } from 'react' -import cn from 'classnames' -import isBrowser from 'is-in-browser' -import copy from 'copy-text-to-clipboard' -import unfetch from 'unfetch' -import loadWorker from '../utils/loadWorker' +import React, { PureComponent } from "react"; +import cn from "classnames"; +import isBrowser from "is-in-browser"; +import copy from "copy-text-to-clipboard"; +import unfetch from "unfetch"; +import loadWorker from "../utils/loadWorker"; -let CodeMirror +let CodeMirror; if (isBrowser) { - CodeMirror = require('react-codemirror2').default + CodeMirror = require("react-codemirror2").default; - 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/go/go') + 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/go/go"); } const prettierParsers = { - css: 'postcss', - javascript: 'babylon', - jsx: 'babylon', - graphql: 'graphql', - json: 'json', - typescript: 'typescript', - flow: 'flow' -} + css: "postcss", + javascript: "babylon", + jsx: "babylon", + graphql: "graphql", + json: "json", + typescript: "typescript", + flow: "flow" +}; 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 }, flow: { - name: 'javascript', + name: "javascript", typescript: true }, - mysql: 'text/x-mysql', - scala: 'text/x-scala' -} + mysql: "text/x-mysql", + scala: "text/x-scala" +}; type Props = { leftMode: ?string, @@ -73,188 +73,205 @@ type Props = { fetchButtonText: ?string, getTransformedValue: Function, extensions: ?(string[]) -} +}; -function UploadIcon () { +function UploadIcon() { return ( - - + + - ) + ); +} + +function ClearIcon() { + return ( + + + + ); } export default class ConversionPanel extends PureComponent { - props: Props + props: Props; - constructor (props) { - super(props) + constructor(props) { + super(props); this.state = { - resultValue: '', + resultValue: "", value: props.defaultText, - splitValue: '', - info: '', - infoType: '', + splitValue: "", + info: "", + infoType: "", isPrettierAvailable: true - } + }; } static defaultProps = { - leftMode: 'javascript', - rightMode: 'javascript', - pathname: '/', + leftMode: "javascript", + rightMode: "javascript", + pathname: "/", prettifyRightPanel: true, splitLeft: false, showFetchButton: true, - fetchButtonText: 'Fetch JSON from URL', - extensions: ['.json'] - } + fetchButtonText: "Fetch JSON from URL", + extensions: [".json"] + }; - componentDidMount () { - const { defaultText, splitValue } = this.props + componentDidMount() { + const { defaultText, splitValue } = this.props; - this.onChange(defaultText, splitValue) + this.onChange(defaultText, splitValue); - const { worker, promiseWorker } = loadWorker('prettier.js') - this.worker = worker - this.promiseWorker = promiseWorker + const { worker, promiseWorker } = loadWorker("prettier.js"); + this.worker = worker; + this.promiseWorker = promiseWorker; - this.worker.onmessage = this.setPrettierAvailability + this.worker.onmessage = this.setPrettierAvailability; } setPrettierAvailability = ({ data }) => { if (!data.available || this.state.isPrettierAvailable === data.available) { - return + return; } this.setState({ isPrettierAvailable: data.available - }) - } + }); + }; passCodeToWorker = (code, mode, section) => { this.promiseWorker.postMessage({ code, mode, section }).then(response => { - const { available, prettyCode, section } = response + const { available, prettyCode, section } = response; this.setState({ isPrettierAvailable: available, [section]: prettyCode - }) - }) - } + }); + }); + }; + + clearText = () => { + this.setState({ + value: "" + }); + }; fetchJSON = async () => { - const url = window.prompt('Enter URL to fetch JSON from a remote server.') - if (!url) return + const url = window.prompt("Enter URL to fetch JSON from a remote server."); + if (!url) return; try { - const res = await unfetch(url) - const json = await res.json() - this.onChange(JSON.stringify(json, null, 2)) + const res = await unfetch(url); + const json = await res.json(); + this.onChange(JSON.stringify(json, null, 2)); } catch (e) { this.setState({ info: e.message, - infoType: 'error' - }) + infoType: "error" + }); } - } + }; onChange = async (newValue, leftSplitValue) => { - const { prettifyRightPanel, rightMode } = this.props + const { prettifyRightPanel, rightMode } = this.props; - const nValue = newValue || this.state.value + const nValue = newValue || this.state.value; const splitValue = - leftSplitValue && typeof leftSplitValue === 'string' + leftSplitValue && typeof leftSplitValue === "string" ? leftSplitValue - : this.state.splitValue + : this.state.splitValue; try { - let code = await this.props.getTransformedValue(nValue, splitValue) - code = code.prettyCode || code + let code = await this.props.getTransformedValue(nValue, splitValue); + code = code.prettyCode || code; if (prettifyRightPanel) { - this.passCodeToWorker(code, rightMode, 'resultValue') + this.passCodeToWorker(code, rightMode, "resultValue"); } else { this.setState({ resultValue: code - }) + }); } this.setState({ - info: '', - infoType: '' - }) + info: "", + infoType: "" + }); } catch (e) { this.setState({ info: e.message, - infoType: 'error' - }) + infoType: "error" + }); } this.setState({ value: nValue, splitValue: splitValue - }) - } + }); + }; toggleCheckbox = e => { - const checked = e.currentTarget.checked + const checked = e.currentTarget.checked; if (this.props.onCheckboxChange) { this.props.onCheckboxChange(checked, () => { - this.onChange() - }) + this.onChange(); + }); } - } + }; prettifyCode = () => { - if (!this.state.isPrettierAvailable) return - const { leftMode } = this.props - const { value } = this.state + if (!this.state.isPrettierAvailable) return; + const { leftMode } = this.props; + const { value } = this.state; - this.passCodeToWorker(value, leftMode, 'value') - } + this.passCodeToWorker(value, leftMode, "value"); + }; prettifySplitCode = () => { - if (!this.state.isPrettierAvailable) return - const { splitMode } = this.props - const { splitValue } = this.state + if (!this.state.isPrettierAvailable) return; + const { splitMode } = this.props; + const { splitValue } = this.state; - this.passCodeToWorker(splitValue, splitMode, 'splitValue') - } + this.passCodeToWorker(splitValue, splitMode, "splitValue"); + }; copyCode = () => { - const { resultValue } = this.state + const { resultValue } = this.state; - copy(resultValue) + copy(resultValue); this.setState({ - info: 'Code copied to clipboard.', - infoType: 'success' - }) - } + info: "Code copied to clipboard.", + infoType: "success" + }); + }; getPrettifyClass = () => { - return cn('btn', { + return cn("btn", { disabled: !this.state.isPrettierAvailable - }) - } + }); + }; loadFile = e => { - const file = e.target.files[0] - const reader = new FileReader() - reader.readAsText(file, 'utf-8') + const file = e.target.files[0]; + const reader = new FileReader(); + reader.readAsText(file, "utf-8"); reader.onload = () => { - this.onChange(reader.result) - } - } + this.onChange(reader.result); + }; + }; - render () { + render() { const { leftMode, rightMode, @@ -269,35 +286,35 @@ export default class ConversionPanel extends PureComponent { showFetchButton, fetchButtonText, extensions - } = this.props - const { infoType, resultValue, value, info, splitValue } = this.state + } = this.props; + const { infoType, resultValue, value, info, splitValue } = this.state; - const leftClass = cn('section left', { + const leftClass = cn("section left", { split: splitLeft - }) + }); const codeMirrorOptions = { lineNumbers: true, - theme: 'chrome-devtools', + theme: "chrome-devtools", lineWrapping: true, scrollbarStyle: null - } + }; // hide success footer bannner after 2 seconds. Let other types be visible until fixed. - clearTimeout(this.footerTimeout) - if (infoType === 'success') { + clearTimeout(this.footerTimeout); + if (infoType === "success") { this.footerTimeout = setTimeout( () => this.setState({ - info: '', - infoType: '' + info: "", + infoType: "" }), 2000 - ) + ); } return ( -
+
-
+
-
-
-

{leftTitle}

+
+
+

{leftTitle}

- {leftMode === 'json' && + {leftMode === "json" && showFetchButton && ( - )} @@ -529,6 +571,12 @@ export default class ConversionPanel extends PureComponent { )}
+ +
+ {" "} + +
+ {isBrowser && ( this.onChange(value)} @@ -542,12 +590,12 @@ export default class ConversionPanel extends PureComponent { {extensions && extensions.length > 0 && ( -
{splitLeft && isBrowser && ( -
-
-

{splitTitle}

+
+
+

{splitTitle}

{prettierParsers[splitMode] && (
-
-
-
-

{rightTitle}

+
+
+
+

{rightTitle}

{onCheckboxChange && ( -
@@ -613,12 +661,12 @@ export default class ConversionPanel extends PureComponent {
- {infoType !== '' && ( + {infoType !== "" && (
- {info} + {info}
)}
- ) + ); } } diff --git a/components/Layout.js b/components/Layout.js index d130b4b..f8ae13c 100644 --- a/components/Layout.js +++ b/components/Layout.js @@ -1,87 +1,87 @@ -import React, { PureComponent, Component } from 'react' -import isBrowser from 'is-in-browser' -import Link from 'next/link' -import Head from 'next/head' -import NProgress from 'nprogress' -import Router from 'next/router' -import GithubCorner from 'react-github-corner' -import FuzzyPicker, { FuzzyWrapper } from 'react-fuzzy-picker' -import Collapse, { Panel } from 'rc-collapse' -import findIndex from 'lodash/findIndex' -import { categorizedRoutes, routes, activeRouteData } from '../utils/routes' +import React, { PureComponent, Component } from "react"; +import isBrowser from "is-in-browser"; +import Link from "next/link"; +import Head from "next/head"; +import NProgress from "nprogress"; +import Router from "next/router"; +import GithubCorner from "react-github-corner"; +import FuzzyPicker, { FuzzyWrapper } from "react-fuzzy-picker"; +import Collapse, { Panel } from "rc-collapse"; +import findIndex from "lodash/findIndex"; +import { categorizedRoutes, routes, activeRouteData } from "../utils/routes"; -NProgress.configure({ showSpinner: false }) +NProgress.configure({ showSpinner: false }); Router.onRouteChangeStart = url => { - if (url.indexOf('code=') === -1) { - NProgress.start() + if (url.indexOf("code=") === -1) { + NProgress.start(); } -} -Router.onRouteChangeComplete = () => NProgress.done() -Router.onRouteChangeError = () => NProgress.done() +}; +Router.onRouteChangeComplete = () => NProgress.done(); +Router.onRouteChangeError = () => NProgress.done(); -function Logo () { +function Logo() { return ( - + - ) + ); } class CodeSponsor extends Component { - shouldComponentUpdate () { - return false + shouldComponentUpdate() { + return false; } - render () { + render() { return (
-
+
- ) + ); } } diff --git a/components/PoweredBy.js b/components/PoweredBy.js index 00d5a6a..bde3021 100644 --- a/components/PoweredBy.js +++ b/components/PoweredBy.js @@ -1,32 +1,32 @@ -import React from 'react' -import { activeRouteData } from '../utils/routes' +import React from "react"; +import { activeRouteData } from "../utils/routes"; -function GitHub () { +function GitHub() { return ( - ) + ); } -export default function ({ pathname }) { - const { packageName, packageUrl } = activeRouteData(pathname) +export default function({ pathname }) { + const { packageName, packageUrl } = activeRouteData(pathname); return ( - + - - + + {packageName} - ) + ); } diff --git a/next.config.js b/next.config.js index 34b374e..913685b 100644 --- a/next.config.js +++ b/next.config.js @@ -1,44 +1,40 @@ -const BabiliPlugin = require("babili-webpack-plugin") -const webpack = require("webpack") -const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer') -const { ANALYZE } = process.env -const glob = require("glob") -const SWPrecacheWebpackPlugin = require("sw-precache-webpack-plugin") +const BabiliPlugin = require("babili-webpack-plugin"); +const webpack = require("webpack"); +const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer"); +const { ANALYZE } = process.env; +const glob = require("glob"); +const SWPrecacheWebpackPlugin = require("sw-precache-webpack-plugin"); module.exports = { webpack: (config, { dev }) => { - config.plugins = config.plugins.filter(plugin => plugin.constructor.name !== 'UglifyJsPlugin'); + config.plugins = config.plugins.filter( + plugin => plugin.constructor.name !== "UglifyJsPlugin" + ); config.node = { - fs: 'empty' - } + fs: "empty" + }; - config.module.rules.push( - { - test: /\.css$/, - use: [ 'style-loader', 'css-loader' ] - } - ) + config.module.rules.push({ + test: /\.css$/, + use: ["style-loader", "css-loader"] + }); - config.plugins.push( - new webpack.DefinePlugin({IN_BROWSER: true}) - ) + config.plugins.push(new webpack.DefinePlugin({ IN_BROWSER: true })); config.resolve.alias = { - 'babel-core': 'babel-standalone' - } + "babel-core": "babel-standalone" + }; if (!dev) { - config.plugins.push( - new BabiliPlugin() - ) + config.plugins.push(new BabiliPlugin()); config.plugins.push( new SWPrecacheWebpackPlugin({ minify: true, staticFileGlobsIgnorePatterns: [/\.next\//], staticFileGlobs: [ - 'static/**/*' // Precache all static files by default + "static/**/*" // Precache all static files by default ], runtimeCaching: [ { @@ -47,27 +43,29 @@ module.exports = { } ] }) - ) + ); } if (ANALYZE) { - config.plugins.push(new BundleAnalyzerPlugin({ - analyzerMode: 'server', - analyzerPort: 8888, - openAnalyzer: true - })) + config.plugins.push( + new BundleAnalyzerPlugin({ + analyzerMode: "server", + analyzerPort: 8888, + openAnalyzer: true + }) + ); } 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 + 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; } }; diff --git a/package.json b/package.json index 7fbf73d..c881b3c 100644 --- a/package.json +++ b/package.json @@ -10,13 +10,13 @@ "dev": "next dev", "addContributor": "all-contributors add", "analyze": "cross-env ANALYZE=1 next build", - "format": "prettier-standard **/*.js", + "format": "prettier --write **/*.js", "deploy": "yarn build && cd transform && now", "test": "echo \"Error: no test specified\" && exit 1", "precommit": "lint-staged" }, "lint-staged": { - "**/*.{js,json,css}": ["prettier-standard", "git add"] + "**/*.{js,json,css}": ["prettier --write", "git add"] }, "keywords": [], "author": { @@ -50,7 +50,6 @@ "lodash": "^4.17.4", "next": "4.0.0-beta.2", "nprogress": "^0.2.0", - "prettier": "^1.8.2", "promise-worker": "^1.1.1", "prop-types": "^15.6.0", "rc-collapse": "^1.7.6", @@ -75,7 +74,7 @@ "glob": "^7.1.2", "husky": "^0.14.3", "lint-staged": "^4.2.3", - "prettier-standard": "^7.0.3", + "prettier": "^1.8.2", "style-loader": "^0.19.0", "sw-precache-webpack-plugin": "^0.11.4", "webpack-bundle-analyzer": "^2.9.0", diff --git a/pages/css-to-emotion.js b/pages/css-to-emotion.js index 2df54b1..7fb8a19 100644 --- a/pages/css-to-emotion.js +++ b/pages/css-to-emotion.js @@ -1,8 +1,8 @@ -import React, { PureComponent } from 'react' -import Layout from '../components/Layout' -import ConversionPanel from '../components/ConversionPanel' -import PoweredBy from '../components/PoweredBy' -import { convertCssForEmotion } from 'css-in-js-generator/lib/convertCssForEmotion' +import React, { PureComponent } from "react"; +import Layout from "../components/Layout"; +import ConversionPanel from "../components/ConversionPanel"; +import PoweredBy from "../components/PoweredBy"; +import { convertCssForEmotion } from "css-in-js-generator/lib/convertCssForEmotion"; const defaultText = ` *, @@ -97,40 +97,40 @@ select.form-control:not([size]):not([multiple]) { color: #868e96; opacity: 1; } -` +`; export default class extends PureComponent { state = { isRn: false - } + }; getTransformedValue = code => { - const emotionCode = convertCssForEmotion(code) + const emotionCode = convertCssForEmotion(code); return emotionCode.replace( /injectGlobal`([\n\w\W]*)`/gi, (match, group) => { return `injectGlobal\` -${group.replace(/[\r\n]+/g, '\n\n')} - \`` +${group.replace(/[\r\n]+/g, "\n\n")} + \``; } - ) - } + ); + }; - render () { + render() { return ( - ) + ); } } diff --git a/pages/css-to-js.js b/pages/css-to-js.js index 3885314..14498f9 100644 --- a/pages/css-to-js.js +++ b/pages/css-to-js.js @@ -1,8 +1,8 @@ -import React, { PureComponent } from 'react' -import Layout from '../components/Layout' -import ConversionPanel from '../components/ConversionPanel' -import loadWorker from '../utils/loadWorker' -import PoweredBy from '../components/PoweredBy' +import React, { PureComponent } from "react"; +import Layout from "../components/Layout"; +import ConversionPanel from "../components/ConversionPanel"; +import loadWorker from "../utils/loadWorker"; +import PoweredBy from "../components/PoweredBy"; const defaultText = `.main-wrapper { flex-direction: row; @@ -24,37 +24,37 @@ li { color: whitesmoke; line-height: 44px; } -` +`; export default class extends PureComponent { state = { isRn: false - } + }; getTransformedValue = code => { - this.promiseWorker = loadWorker('css-to-js.js', this).promiseWorker - return this.promiseWorker.postMessage({ code, isRn: this.state.isRn }) - } + this.promiseWorker = loadWorker("css-to-js.js", this).promiseWorker; + return this.promiseWorker.postMessage({ code, isRn: this.state.isRn }); + }; - render () { + render() { return ( this.setState({ isRn: checked }, cb) } - checkboxText='React Native' + checkboxText="React Native" extensions={null} /> - ) + ); } } diff --git a/pages/graphql-to-flow.js b/pages/graphql-to-flow.js index 6c0ff0a..93febc8 100644 --- a/pages/graphql-to-flow.js +++ b/pages/graphql-to-flow.js @@ -1,39 +1,42 @@ -import React, { PureComponent } from 'react' -import Layout from '../components/Layout' -import ConversionPanel from '../components/ConversionPanel' -import { dummySchema, dummyQuery } from '../utils/graphql-schema' -import loadWorker from '../utils/loadWorker' +import React, { PureComponent } from "react"; +import Layout from "../components/Layout"; +import ConversionPanel from "../components/ConversionPanel"; +import { dummySchema, dummyQuery } from "../utils/graphql-schema"; +import loadWorker from "../utils/loadWorker"; export default class extends PureComponent { getTransformedValue = (newValue, splitValue) => { - this.promiseWorker = loadWorker('graphql-to-flow-ts.js', this).promiseWorker + this.promiseWorker = loadWorker( + "graphql-to-flow-ts.js", + this + ).promiseWorker; return this.promiseWorker.postMessage({ schema: newValue, query: splitValue, - convertTo: 'flow' - }) - } + convertTo: "flow" + }); + }; - render () { + render() { return ( - ) + ); } } diff --git a/pages/graphql-to-typescript.js b/pages/graphql-to-typescript.js index e7fdf92..3c077fb 100644 --- a/pages/graphql-to-typescript.js +++ b/pages/graphql-to-typescript.js @@ -1,39 +1,42 @@ -import React, { PureComponent } from 'react' -import Layout from '../components/Layout' -import ConversionPanel from '../components/ConversionPanel' -import { dummySchema, dummyQuery } from '../utils/graphql-schema' -import loadWorker from '../utils/loadWorker' +import React, { PureComponent } from "react"; +import Layout from "../components/Layout"; +import ConversionPanel from "../components/ConversionPanel"; +import { dummySchema, dummyQuery } from "../utils/graphql-schema"; +import loadWorker from "../utils/loadWorker"; export default class Json2Ts extends PureComponent { getTransformedValue = (newValue, splitValue) => { - this.promiseWorker = loadWorker('graphql-to-flow-ts.js', this).promiseWorker + this.promiseWorker = loadWorker( + "graphql-to-flow-ts.js", + this + ).promiseWorker; return this.promiseWorker.postMessage({ schema: newValue, query: splitValue, - convertTo: 'typescript' - }) - } + convertTo: "typescript" + }); + }; - render () { + render() { return ( - ) + ); } } diff --git a/pages/html-to-jsx.js b/pages/html-to-jsx.js index 5e1e709..81e6925 100644 --- a/pages/html-to-jsx.js +++ b/pages/html-to-jsx.js @@ -1,58 +1,58 @@ -import React, { PureComponent } from 'react' -import HTMLtoJSX from '@tsuyoshiwada/htmltojsx' -import Layout from '../components/Layout' -import ConversionPanel from '../components/ConversionPanel' -import isSvg from 'is-svg' -import svgo from 'transform-svg-to-native/dist/svgo' +import React, { PureComponent } from "react"; +import HTMLtoJSX from "@tsuyoshiwada/htmltojsx"; +import Layout from "../components/Layout"; +import ConversionPanel from "../components/ConversionPanel"; +import isSvg from "is-svg"; +import svgo from "transform-svg-to-native/dist/svgo"; const converter = new HTMLtoJSX({ createClass: false -}) +}); const defaultText = ` -` +`; export default class Css2Js extends PureComponent { state = { shouldOptimize: true - } + }; convertHtmlToJsx = html => { if (isSvg(html) && this.state.shouldOptimize) { return new Promise(resolve => { svgo.optimize(html, result => { - resolve(converter.convert(result.data)) - }) - }) + resolve(converter.convert(result.data)); + }); + }); } - return converter.convert(html) - } + return converter.convert(html); + }; getTransformedValue = async (newValue: string) => { - return this.convertHtmlToJsx(newValue) - } + return this.convertHtmlToJsx(newValue); + }; - render () { + render() { return ( this.setState({ shouldOptimize: checked }, cb) } /> - ) + ); } } diff --git a/pages/index.js b/pages/index.js index 6a08571..12c2cbe 100644 --- a/pages/index.js +++ b/pages/index.js @@ -1,58 +1,58 @@ -import React, { PureComponent } from 'react' -import Layout from '../components/Layout' -import defaultText from '../utils/dummy-json' -import merge from 'lodash/merge' -import loadWorker from '../utils/loadWorker' +import React, { PureComponent } from "react"; +import Layout from "../components/Layout"; +import defaultText from "../utils/dummy-json"; +import merge from "lodash/merge"; +import loadWorker from "../utils/loadWorker"; -import ConversionPanel from '../components/ConversionPanel' +import ConversionPanel from "../components/ConversionPanel"; export default class Main extends PureComponent { state = { isImmutable: false - } + }; getTransformedValue = newValue => { - let code = JSON.parse(newValue) - if (typeof code !== 'object' || Array.isArray(code)) { - code = merge({}, ...code) + let code = JSON.parse(newValue); + if (typeof code !== "object" || Array.isArray(code)) { + code = merge({}, ...code); } - code = 'const propTypes = ' + JSON.stringify(code) - this.promiseWorker = loadWorker('json-to-proptypes.js', this).promiseWorker + code = "const propTypes = " + JSON.stringify(code); + this.promiseWorker = loadWorker("json-to-proptypes.js", this).promiseWorker; return this.promiseWorker.postMessage({ isImmutable: this.state.isImmutable, code - }) - } + }); + }; - componentDidMount () { - if ('serviceWorker' in navigator) { + componentDidMount() { + if ("serviceWorker" in navigator) { navigator.serviceWorker - .register('/service-worker.js') + .register("/service-worker.js") .then(registration => { - console.log('service worker registration successful') + console.log("service worker registration successful"); }) .catch(err => { - console.warn('service worker registration failed') - }) + console.warn("service worker registration failed"); + }); } } - render () { + render() { return ( this.setState({ isImmutable: checked }, cb) } - checkboxText='Immutable Proptypes' + checkboxText="Immutable Proptypes" /> - ) + ); } } diff --git a/pages/js-object-to-json.js b/pages/js-object-to-json.js index cf04ec2..035af96 100644 --- a/pages/js-object-to-json.js +++ b/pages/js-object-to-json.js @@ -1,31 +1,31 @@ -import React, { PureComponent } from 'react' -import Layout from '../components/Layout' -import stringify from 'stringify-object' -import ConversionPanel from '../components/ConversionPanel' -import text from '../utils/dummy-object-json' +import React, { PureComponent } from "react"; +import Layout from "../components/Layout"; +import stringify from "stringify-object"; +import ConversionPanel from "../components/ConversionPanel"; +import text from "../utils/dummy-object-json"; -const defaultText = stringify(eval(`(${text})`)) +const defaultText = stringify(eval(`(${text})`)); export default class extends PureComponent { getTransformedValue = newValue => { - return JSON.stringify(eval('(' + newValue + ')'), null, 2) - } + return JSON.stringify(eval("(" + newValue + ")"), null, 2); + }; - render () { + render() { return ( - ) + ); } } diff --git a/pages/json-schema-to-rust-serde.js b/pages/json-schema-to-rust-serde.js index 49a410f..51b0547 100644 --- a/pages/json-schema-to-rust-serde.js +++ b/pages/json-schema-to-rust-serde.js @@ -1,32 +1,32 @@ -import React, { PureComponent } from 'react' -import Layout from '../components/Layout' -import ConversionPanel from '../components/ConversionPanel' -import json from '../utils/dummy-json-schema' -import loadWorker from '../utils/loadWorker' +import React, { PureComponent } from "react"; +import Layout from "../components/Layout"; +import ConversionPanel from "../components/ConversionPanel"; +import json from "../utils/dummy-json-schema"; +import loadWorker from "../utils/loadWorker"; export default class Json2Ts extends PureComponent { getTransformedValue = code => { this.promiseWorker = loadWorker( - 'json-schema-to-rust-serde.js', + "json-schema-to-rust-serde.js", this - ).promiseWorker - return this.promiseWorker.postMessage(code) - } + ).promiseWorker; + return this.promiseWorker.postMessage(code); + }; - render () { + render() { return ( - ) + ); } } diff --git a/pages/json-schema-to-ts.js b/pages/json-schema-to-ts.js index 34b75fe..a49543a 100644 --- a/pages/json-schema-to-ts.js +++ b/pages/json-schema-to-ts.js @@ -1,29 +1,29 @@ -import React, { PureComponent } from 'react' -import Layout from '../components/Layout' -import ConversionPanel from '../components/ConversionPanel' -import { compile } from 'json-schema-to-typescript' -import json from '../utils/dummy-json-schema' -import PoweredBy from '../components/PoweredBy' +import React, { PureComponent } from "react"; +import Layout from "../components/Layout"; +import ConversionPanel from "../components/ConversionPanel"; +import { compile } from "json-schema-to-typescript"; +import json from "../utils/dummy-json-schema"; +import PoweredBy from "../components/PoweredBy"; export default class Json2Ts extends PureComponent { - getTransformedValue = code => compile(eval('(' + code + ')')) + getTransformedValue = code => compile(eval("(" + code + ")")); - render () { + render() { return ( - ) + ); } } diff --git a/pages/json-to-big-query.js b/pages/json-to-big-query.js index f3e92de..551e33c 100644 --- a/pages/json-to-big-query.js +++ b/pages/json-to-big-query.js @@ -1,32 +1,32 @@ -import React, { PureComponent } from 'react' -import { bigquery } from 'generate-schema' -import stringify from 'stringify-object' -import Layout from '../components/Layout' -import ConversionPanel from '../components/ConversionPanel' -import PoweredBy from '../components/PoweredBy' -import defaultText from '../utils/dummy-object-json' +import React, { PureComponent } from "react"; +import { bigquery } from "generate-schema"; +import stringify from "stringify-object"; +import Layout from "../components/Layout"; +import ConversionPanel from "../components/ConversionPanel"; +import PoweredBy from "../components/PoweredBy"; +import defaultText from "../utils/dummy-object-json"; export default class Json2Ts extends PureComponent { getTransformedValue = newValue => { - const value = JSON.parse(newValue) - return stringify(bigquery(value)) - } + const value = JSON.parse(newValue); + return stringify(bigquery(value)); + }; - render () { + render() { return ( - ) + ); } } diff --git a/pages/json-to-flow-types.js b/pages/json-to-flow-types.js index 344dee3..311b530 100644 --- a/pages/json-to-flow-types.js +++ b/pages/json-to-flow-types.js @@ -1,28 +1,28 @@ -import React, { PureComponent } from 'react' -import dynamic from 'next/dynamic' -import Layout from '../components/Layout' -import ConversionPanel from '../components/ConversionPanel' -import defaultText from '../utils/dummy-json' -import transform from 'transform-json-types' +import React, { PureComponent } from "react"; +import dynamic from "next/dynamic"; +import Layout from "../components/Layout"; +import ConversionPanel from "../components/ConversionPanel"; +import defaultText from "../utils/dummy-json"; +import transform from "transform-json-types"; export default class Json2Ts extends PureComponent { - getTransformedValue = code => transform(code) + getTransformedValue = code => transform(code); - render () { + render() { return ( - ) + ); } } diff --git a/pages/json-to-go.js b/pages/json-to-go.js index d757661..d880e3d 100644 --- a/pages/json-to-go.js +++ b/pages/json-to-go.js @@ -1,30 +1,30 @@ -import React, { PureComponent } from 'react' -import Layout from '../components/Layout' -import ConversionPanel from '../components/ConversionPanel' -import defaultText from '../utils/dummy-json' -import json2go from '../utils/json-to-go' -import gofmt from 'gofmt.js' -import PoweredBy from '../components/PoweredBy' +import React, { PureComponent } from "react"; +import Layout from "../components/Layout"; +import ConversionPanel from "../components/ConversionPanel"; +import defaultText from "../utils/dummy-json"; +import json2go from "../utils/json-to-go"; +import gofmt from "gofmt.js"; +import PoweredBy from "../components/PoweredBy"; export default class extends PureComponent { - getTransformedValue = code => gofmt(json2go(code).go) + getTransformedValue = code => gofmt(json2go(code).go); - render () { + render() { return ( - ) + ); } } diff --git a/pages/json-to-mobx-state-tree.js b/pages/json-to-mobx-state-tree.js index 7f7ca53..9044640 100644 --- a/pages/json-to-mobx-state-tree.js +++ b/pages/json-to-mobx-state-tree.js @@ -1,34 +1,34 @@ -import React, { PureComponent } from 'react' -import plugin from '../utils/babel-plugin-js-to-mobx-state-tree' -import Layout from '../components/Layout' -import { transform } from 'babel-standalone' -import defaultText from '../utils/dummy-json' +import React, { PureComponent } from "react"; +import plugin from "../utils/babel-plugin-js-to-mobx-state-tree"; +import Layout from "../components/Layout"; +import { transform } from "babel-standalone"; +import defaultText from "../utils/dummy-json"; -import ConversionPanel from '../components/ConversionPanel' +import ConversionPanel from "../components/ConversionPanel"; export default class Main extends PureComponent { getTransformedValue = newValue => { - newValue = 'const MyModel = ' + newValue + newValue = "const MyModel = " + newValue; const { code } = transform(newValue, { - presets: ['es2015'], + presets: ["es2015"], plugins: [plugin] - }) - return code - } + }); + return code; + }; - render () { + render() { return ( - ) + ); } } diff --git a/pages/json-to-mongoose.js b/pages/json-to-mongoose.js index 18db6b3..382e60f 100644 --- a/pages/json-to-mongoose.js +++ b/pages/json-to-mongoose.js @@ -1,33 +1,33 @@ -import React, { PureComponent } from 'react' -import { mongoose } from 'generate-schema' -import stringify from 'stringify-object' -import Layout from '../components/Layout' -import ConversionPanel from '../components/ConversionPanel' -import PoweredBy from '../components/PoweredBy' -import defaultText from '../utils/dummy-object-json' +import React, { PureComponent } from "react"; +import { mongoose } from "generate-schema"; +import stringify from "stringify-object"; +import Layout from "../components/Layout"; +import ConversionPanel from "../components/ConversionPanel"; +import PoweredBy from "../components/PoweredBy"; +import defaultText from "../utils/dummy-object-json"; export default class Json2Ts extends PureComponent { getTransformedValue = newValue => { - const value = JSON.parse(newValue) - return stringify(mongoose(value)) - } + const value = JSON.parse(newValue); + return stringify(mongoose(value)); + }; - render () { + render() { return ( - ) + ); } } diff --git a/pages/json-to-mysql.js b/pages/json-to-mysql.js index f2913e0..415ca97 100644 --- a/pages/json-to-mysql.js +++ b/pages/json-to-mysql.js @@ -1,32 +1,32 @@ -import React, { PureComponent } from 'react' -import { mysql } from 'generate-schema' -import Layout from '../components/Layout' -import PoweredBy from '../components/PoweredBy' -import ConversionPanel from '../components/ConversionPanel' -import defaultText from '../utils/dummy-json' +import React, { PureComponent } from "react"; +import { mysql } from "generate-schema"; +import Layout from "../components/Layout"; +import PoweredBy from "../components/PoweredBy"; +import ConversionPanel from "../components/ConversionPanel"; +import defaultText from "../utils/dummy-json"; export default class Json2Ts extends PureComponent { getTransformedValue = newValue => { - const value = JSON.parse(newValue) - return mysql(value) - } + const value = JSON.parse(newValue); + return mysql(value); + }; - render () { + render() { return ( - ) + ); } } diff --git a/pages/json-to-rust-serde.js b/pages/json-to-rust-serde.js index 1c530c5..1a1fab3 100644 --- a/pages/json-to-rust-serde.js +++ b/pages/json-to-rust-serde.js @@ -1,29 +1,29 @@ -import React, { PureComponent } from 'react' -import Layout from '../components/Layout' -import ConversionPanel from '../components/ConversionPanel' -import defaultText from '../utils/dummy-json' -import transform from 'transform-json-types' +import React, { PureComponent } from "react"; +import Layout from "../components/Layout"; +import ConversionPanel from "../components/ConversionPanel"; +import defaultText from "../utils/dummy-json"; +import transform from "transform-json-types"; export default class Json2Ts extends PureComponent { getTransformedValue = code => transform(code, { - lang: 'rust-serde' - }) + lang: "rust-serde" + }); - render () { + render() { return ( - ) + ); } } diff --git a/pages/json-to-scala-case-class.js b/pages/json-to-scala-case-class.js index f7d37bb..db86deb 100644 --- a/pages/json-to-scala-case-class.js +++ b/pages/json-to-scala-case-class.js @@ -1,29 +1,29 @@ -import React, { PureComponent } from 'react' -import Layout from '../components/Layout' -import ConversionPanel from '../components/ConversionPanel' -import defaultText from '../utils/dummy-json' -import transform from 'transform-json-types' +import React, { PureComponent } from "react"; +import Layout from "../components/Layout"; +import ConversionPanel from "../components/ConversionPanel"; +import defaultText from "../utils/dummy-json"; +import transform from "transform-json-types"; export default class extends PureComponent { getTransformedValue = code => transform(code, { - lang: 'scala' - }) + lang: "scala" + }); - render () { + render() { return ( - ) + ); } } diff --git a/pages/json-to-ts-interface.js b/pages/json-to-ts-interface.js index 9008a6a..f14a220 100644 --- a/pages/json-to-ts-interface.js +++ b/pages/json-to-ts-interface.js @@ -1,31 +1,31 @@ -import React, { PureComponent } from 'react' -import dynamic from 'next/dynamic' -import Layout from '../components/Layout' -import ConversionPanel from '../components/ConversionPanel' -import defaultText from '../utils/dummy-json' -import transform from 'transform-json-types' +import React, { PureComponent } from "react"; +import dynamic from "next/dynamic"; +import Layout from "../components/Layout"; +import ConversionPanel from "../components/ConversionPanel"; +import defaultText from "../utils/dummy-json"; +import transform from "transform-json-types"; export default class Json2Ts extends PureComponent { getTransformedValue = code => transform(code, { - lang: 'typescript' - }) + lang: "typescript" + }); - render () { + render() { return ( - ) + ); } } diff --git a/pages/svg-to-react-native.js b/pages/svg-to-react-native.js index c194e30..6579621 100644 --- a/pages/svg-to-react-native.js +++ b/pages/svg-to-react-native.js @@ -1,40 +1,40 @@ -import React, { PureComponent } from 'react' -import convertSvgString from 'transform-svg-to-native' -import Layout from '../components/Layout' -import ConversionPanel from '../components/ConversionPanel' -import isSvg from 'is-svg' -import svgo from 'transform-svg-to-native/dist/svgo' +import React, { PureComponent } from "react"; +import convertSvgString from "transform-svg-to-native"; +import Layout from "../components/Layout"; +import ConversionPanel from "../components/ConversionPanel"; +import isSvg from "is-svg"; +import svgo from "transform-svg-to-native/dist/svgo"; const defaultText = ` -` +`; export default class Svg2ReactNative extends PureComponent { getTransformedValue = async (newValue: string) => { if (!isSvg(newValue)) { - throw new Error('Please provide a valid SVG markup.') + throw new Error("Please provide a valid SVG markup."); } return new Promise(resolve => convertSvgString(newValue, code => resolve(code)) - ) - } + ); + }; - render () { + render() { return ( - ) + ); } } diff --git a/pages/xml-to-json.js b/pages/xml-to-json.js index 4c4596c..e3da701 100644 --- a/pages/xml-to-json.js +++ b/pages/xml-to-json.js @@ -1,8 +1,8 @@ -import React, { PureComponent } from 'react' -import { xml2json } from 'xml-js' -import Layout from '../components/Layout' -import ConversionPanel from '../components/ConversionPanel' -import PoweredBy from '../components/PoweredBy' +import React, { PureComponent } from "react"; +import { xml2json } from "xml-js"; +import Layout from "../components/Layout"; +import ConversionPanel from "../components/ConversionPanel"; +import PoweredBy from "../components/PoweredBy"; const text = ` Tove @@ -10,12 +10,12 @@ const text = ` Reminder Don't forget me this weekend! -` +`; export default class extends PureComponent { state = { isCompactMode: true - } + }; getTransformedValue = newValue => { return JSON.stringify( @@ -24,30 +24,30 @@ export default class extends PureComponent { compact: this.state.isCompactMode }) ) - ) - } + ); + }; - render () { + render() { return ( this.setState({ isCompactMode: checked }, cb) } - checkboxText='Compact Mode' + checkboxText="Compact Mode" initialCheckboxValue={this.state.isCompactMode} extensions={null} /> - ) + ); } } diff --git a/utils/babel-plugin-js-to-immutable-prop-types.js b/utils/babel-plugin-js-to-immutable-prop-types.js index f153d59..dc12c9c 100644 --- a/utils/babel-plugin-js-to-immutable-prop-types.js +++ b/utils/babel-plugin-js-to-immutable-prop-types.js @@ -1,28 +1,28 @@ -import uniqBy from 'lodash/uniqBy' -import isEmpty from 'lodash/isEmpty' +import uniqBy from "lodash/uniqBy"; +import isEmpty from "lodash/isEmpty"; /** * This is a babel plugin that converts an object to ImmutablePropTypes * @param t * @returns {{visitor: {ArrayExpression: (function(*)), NullLiteral: (function(*)), StringLiteral: (function(*)), NumericLiteral: (function(*)), ArrowFunctionExpression: (function(*)), FunctionExpression: (function(*)), BooleanLiteral: (function(*)), Program: (function(*, *)), ObjectExpression: (function(*))}}} */ -export default function ({ types: t }) { +export default function({ types: t }) { return { visitor: { - ArrayExpression (path) { - if (t.isCallExpression(path.parent)) return - let uniqueElements = uniqBy(path.node.elements, 'type') + ArrayExpression(path) { + if (t.isCallExpression(path.parent)) return; + let uniqueElements = uniqBy(path.node.elements, "type"); if (t.isObjectExpression(uniqueElements[0])) { uniqueElements = [ t.callExpression( t.memberExpression( - t.identifier('ImmutablePropTypes'), - t.identifier('mapContains') + t.identifier("ImmutablePropTypes"), + t.identifier("mapContains") ), uniqueElements ) - ] + ]; } if ( @@ -32,78 +32,78 @@ export default function ({ types: t }) { path.replaceWith( t.callExpression( t.memberExpression( - t.identifier('ImmutablePropTypes'), - t.identifier('listOf') + t.identifier("ImmutablePropTypes"), + t.identifier("listOf") ), uniqueElements ) - ) + ); } else { - path.replaceWith(t.identifier('ImmutablePropTypes.list')) + path.replaceWith(t.identifier("ImmutablePropTypes.list")); } }, - NullLiteral (path) { - path.replaceWith(t.identifier('PropTypes.any')) + NullLiteral(path) { + path.replaceWith(t.identifier("PropTypes.any")); }, - StringLiteral (path) { - if (path.parentKey === 'key') return - path.replaceWith(t.identifier(`PropTypes.string`)) + StringLiteral(path) { + if (path.parentKey === "key") return; + path.replaceWith(t.identifier(`PropTypes.string`)); }, - NumericLiteral (path) { - path.replaceWith(t.identifier('PropTypes.number')) + NumericLiteral(path) { + path.replaceWith(t.identifier("PropTypes.number")); }, - ArrowFunctionExpression (path) { - path.replaceWith(t.identifier('PropTypes.func')) + ArrowFunctionExpression(path) { + path.replaceWith(t.identifier("PropTypes.func")); }, - FunctionExpression (path) { - path.replaceWith(t.identifier('PropTypes.func')) + FunctionExpression(path) { + path.replaceWith(t.identifier("PropTypes.func")); }, - BooleanLiteral (path) { - path.replaceWith(t.identifier('PropTypes.bool')) + BooleanLiteral(path) { + path.replaceWith(t.identifier("PropTypes.bool")); }, - VariableDeclaration (path) { + VariableDeclaration(path) { path.insertBefore( t.identifier( `import ImmutablePropTypes from 'react-immutable-proptypes'` ) - ) + ); }, - Program (path) { + Program(path) { path.traverse({ - enter (path) { - t.removeComments(path.node) + enter(path) { + t.removeComments(path.node); } - }) + }); }, - ObjectExpression (path) { + ObjectExpression(path) { if ( t.isVariableDeclarator(path.parent) || t.isCallExpression(path.parent) ) { - return + return; } - const elements = [path.node] + const elements = [path.node]; path.replaceWith( t.callExpression( t.memberExpression( - t.identifier('ImmutablePropTypes'), - t.identifier('mapContains') + t.identifier("ImmutablePropTypes"), + t.identifier("mapContains") ), elements ) - ) + ); } } - } + }; } diff --git a/utils/babel-plugin-js-to-mobx-state-tree.js b/utils/babel-plugin-js-to-mobx-state-tree.js index c740463..a18f1d0 100644 --- a/utils/babel-plugin-js-to-mobx-state-tree.js +++ b/utils/babel-plugin-js-to-mobx-state-tree.js @@ -1,25 +1,25 @@ -import uniqBy from 'lodash/uniqBy' -import isEmpty from 'lodash/isEmpty' +import uniqBy from "lodash/uniqBy"; +import isEmpty from "lodash/isEmpty"; /** * This is a babel plugin that converts an object to PropTypes * @param t * @returns {{visitor: {ArrayExpression: (function(*)), NullLiteral: (function(*)), StringLiteral: (function(*)), NumericLiteral: (function(*)), ArrowFunctionExpression: (function(*)), FunctionExpression: (function(*)), BooleanLiteral: (function(*)), Program: (function(*, *)), ObjectExpression: (function(*))}}} */ -export default function ({ types: t }) { +export default function({ types: t }) { return { visitor: { - ArrayExpression (path) { + ArrayExpression(path) { // if (t.isCallExpression(path.parent)) return; - let uniqueElements = uniqBy(path.node.elements, 'type') + let uniqueElements = uniqBy(path.node.elements, "type"); if (t.isObjectExpression(uniqueElements[0])) { uniqueElements = [ t.callExpression( - t.memberExpression(t.identifier('t'), t.identifier('model')), + t.memberExpression(t.identifier("t"), t.identifier("model")), uniqueElements ) - ] + ]; } if ( @@ -28,66 +28,66 @@ export default function ({ types: t }) { ) { path.replaceWith( t.callExpression( - t.memberExpression(t.identifier('t'), t.identifier('array')), + t.memberExpression(t.identifier("t"), t.identifier("array")), uniqueElements ) - ) + ); } else { - path.replaceWith(t.identifier('t.array')) + path.replaceWith(t.identifier("t.array")); } }, - NullLiteral (path) { - path.replaceWith(t.identifier('t.null')) + NullLiteral(path) { + path.replaceWith(t.identifier("t.null")); }, - StringLiteral (path) { - if (path.parentKey === 'key') return - path.replaceWith(t.identifier(`t.string`)) + StringLiteral(path) { + if (path.parentKey === "key") return; + path.replaceWith(t.identifier(`t.string`)); }, - NumericLiteral (path) { - path.replaceWith(t.identifier('t.number')) + NumericLiteral(path) { + path.replaceWith(t.identifier("t.number")); }, - ArrowFunctionExpression (path) { - path.replaceWith(t.identifier('t.frozen')) + ArrowFunctionExpression(path) { + path.replaceWith(t.identifier("t.frozen")); }, - FunctionExpression (path) { - path.replaceWith(t.identifier('t.frozen')) + FunctionExpression(path) { + path.replaceWith(t.identifier("t.frozen")); }, - BooleanLiteral (path) { - path.replaceWith(t.identifier('t.boolean')) + BooleanLiteral(path) { + path.replaceWith(t.identifier("t.boolean")); }, - Program (path) { + Program(path) { path.traverse({ - enter (path) { - t.removeComments(path.node) + enter(path) { + t.removeComments(path.node); } - }) + }); }, - ObjectProperty (path) { + ObjectProperty(path) { if (t.isStringLiteral(path.node.key)) { - path.node.key = t.identifier(path.node.key.value) + path.node.key = t.identifier(path.node.key.value); } }, - ObjectExpression (path) { - if (t.isCallExpression(path.parent)) return + ObjectExpression(path) { + if (t.isCallExpression(path.parent)) return; - const elements = [path.node] + const elements = [path.node]; path.replaceWith( t.callExpression( - t.memberExpression(t.identifier('t'), t.identifier('model')), + t.memberExpression(t.identifier("t"), t.identifier("model")), elements ) - ) + ); } } - } + }; } diff --git a/utils/dummy-json-schema.js b/utils/dummy-json-schema.js index 7c1b051..a0a9e9a 100644 --- a/utils/dummy-json-schema.js +++ b/utils/dummy-json-schema.js @@ -29,6 +29,6 @@ const json = `{ } }, "required": ["firstName", "lastName"] -}` +}`; -export default json +export default json; diff --git a/utils/dummy-json.js b/utils/dummy-json.js index 91620d6..0d6e6a0 100644 --- a/utils/dummy-json.js +++ b/utils/dummy-json.js @@ -41,6 +41,6 @@ const x = `{ } ] } - ` + `; -export default x +export default x; diff --git a/utils/dummy-object-json.js b/utils/dummy-object-json.js index f45653a..6a0e532 100644 --- a/utils/dummy-object-json.js +++ b/utils/dummy-object-json.js @@ -16,6 +16,6 @@ const y = `{ "index": true, "required": true } -}` +}`; -export default y +export default y; diff --git a/utils/graphql-schema.js b/utils/graphql-schema.js index d269227..a08e3e8 100644 --- a/utils/graphql-schema.js +++ b/utils/graphql-schema.js @@ -2,55 +2,55 @@ const x = { data: { __schema: { queryType: { - name: 'Query' + name: "Query" }, mutationType: { - name: 'Mutation' + name: "Mutation" }, subscriptionType: null, types: [ { - kind: 'OBJECT', - name: 'Query', + kind: "OBJECT", + name: "Query", description: - 'The query type, represents all of the entry points into our object graph', + "The query type, represents all of the entry points into our object graph", fields: [ { - name: 'hero', - description: '', + name: "hero", + description: "", args: [ { - name: 'episode', - description: '', + name: "episode", + description: "", type: { - kind: 'ENUM', - name: 'Episode', + kind: "ENUM", + name: "Episode", ofType: null }, defaultValue: null } ], type: { - kind: 'INTERFACE', - name: 'Character', + kind: "INTERFACE", + name: "Character", ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: 'reviews', - description: '', + name: "reviews", + description: "", args: [ { - name: 'episode', - description: '', + name: "episode", + description: "", type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'ENUM', - name: 'Episode', + kind: "ENUM", + name: "Episode", ofType: null } }, @@ -58,11 +58,11 @@ const x = { } ], type: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'OBJECT', - name: 'Review', + kind: "OBJECT", + name: "Review", ofType: null } }, @@ -70,26 +70,26 @@ const x = { deprecationReason: null }, { - name: 'search', - description: '', + name: "search", + description: "", args: [ { - name: 'text', - description: '', + name: "text", + description: "", type: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null }, defaultValue: null } ], type: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'UNION', - name: 'SearchResult', + kind: "UNION", + name: "SearchResult", ofType: null } }, @@ -97,18 +97,18 @@ const x = { deprecationReason: null }, { - name: 'character', - description: '', + name: "character", + description: "", args: [ { - name: 'id', - description: '', + name: "id", + description: "", type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'ID', + kind: "SCALAR", + name: "ID", ofType: null } }, @@ -116,26 +116,26 @@ const x = { } ], type: { - kind: 'INTERFACE', - name: 'Character', + kind: "INTERFACE", + name: "Character", ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: 'droid', - description: '', + name: "droid", + description: "", args: [ { - name: 'id', - description: '', + name: "id", + description: "", type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'ID', + kind: "SCALAR", + name: "ID", ofType: null } }, @@ -143,26 +143,26 @@ const x = { } ], type: { - kind: 'OBJECT', - name: 'Droid', + kind: "OBJECT", + name: "Droid", ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: 'human', - description: '', + name: "human", + description: "", args: [ { - name: 'id', - description: '', + name: "id", + description: "", type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'ID', + kind: "SCALAR", + name: "ID", ofType: null } }, @@ -170,26 +170,26 @@ const x = { } ], type: { - kind: 'OBJECT', - name: 'Human', + kind: "OBJECT", + name: "Human", ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: 'starship', - description: '', + name: "starship", + description: "", args: [ { - name: 'id', - description: '', + name: "id", + description: "", type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'ID', + kind: "SCALAR", + name: "ID", ofType: null } }, @@ -197,8 +197,8 @@ const x = { } ], type: { - kind: 'OBJECT', - name: 'Starship', + kind: "OBJECT", + name: "Starship", ofType: null }, isDeprecated: false, @@ -211,31 +211,31 @@ const x = { possibleTypes: null }, { - kind: 'ENUM', - name: 'Episode', - description: 'The episodes in the Star Wars trilogy', + kind: "ENUM", + name: "Episode", + description: "The episodes in the Star Wars trilogy", fields: null, inputFields: null, interfaces: null, enumValues: [ { - name: 'NEWHOPE', + name: "NEWHOPE", description: - 'Star Wars Episode IV: A New Hope, released in 1977.', + "Star Wars Episode IV: A New Hope, released in 1977.", isDeprecated: false, deprecationReason: null }, { - name: 'EMPIRE', + name: "EMPIRE", description: - 'Star Wars Episode V: The Empire Strikes Back, released in 1980.', + "Star Wars Episode V: The Empire Strikes Back, released in 1980.", isDeprecated: false, deprecationReason: null }, { - name: 'JEDI', + name: "JEDI", description: - 'Star Wars Episode VI: Return of the Jedi, released in 1983.', + "Star Wars Episode VI: Return of the Jedi, released in 1983.", isDeprecated: false, deprecationReason: null } @@ -243,20 +243,20 @@ const x = { possibleTypes: null }, { - kind: 'INTERFACE', - name: 'Character', - description: 'A character from the Star Wars universe', + kind: "INTERFACE", + name: "Character", + description: "A character from the Star Wars universe", fields: [ { - name: 'id', - description: 'The ID of the character', + name: "id", + description: "The ID of the character", args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'ID', + kind: "SCALAR", + name: "ID", ofType: null } }, @@ -264,15 +264,15 @@ const x = { deprecationReason: null }, { - name: 'name', - description: 'The name of the character', + name: "name", + description: "The name of the character", args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null } }, @@ -280,16 +280,16 @@ const x = { deprecationReason: null }, { - name: 'friends', + name: "friends", description: - 'The friends of the character, or an empty list if they have none', + "The friends of the character, or an empty list if they have none", args: [], type: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'INTERFACE', - name: 'Character', + kind: "INTERFACE", + name: "Character", ofType: null } }, @@ -297,37 +297,37 @@ const x = { deprecationReason: null }, { - name: 'friendsConnection', + name: "friendsConnection", description: - 'The friends of the character exposed as a connection with edges', + "The friends of the character exposed as a connection with edges", args: [ { - name: 'first', - description: '', + name: "first", + description: "", type: { - kind: 'SCALAR', - name: 'Int', + kind: "SCALAR", + name: "Int", ofType: null }, defaultValue: null }, { - name: 'after', - description: '', + name: "after", + description: "", type: { - kind: 'SCALAR', - name: 'ID', + kind: "SCALAR", + name: "ID", ofType: null }, defaultValue: null } ], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'OBJECT', - name: 'FriendsConnection', + kind: "OBJECT", + name: "FriendsConnection", ofType: null } }, @@ -335,18 +335,18 @@ const x = { deprecationReason: null }, { - name: 'appearsIn', - description: 'The movies this character appears in', + name: "appearsIn", + description: "The movies this character appears in", args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'ENUM', - name: 'Episode', + kind: "ENUM", + name: "Episode", ofType: null } } @@ -360,20 +360,20 @@ const x = { enumValues: null, possibleTypes: [ { - kind: 'OBJECT', - name: 'Human', + kind: "OBJECT", + name: "Human", ofType: null }, { - kind: 'OBJECT', - name: 'Droid', + kind: "OBJECT", + name: "Droid", ofType: null } ] }, { - kind: 'SCALAR', - name: 'ID', + kind: "SCALAR", + name: "ID", description: 'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.', fields: null, @@ -383,10 +383,10 @@ const x = { possibleTypes: null }, { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", description: - 'The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.', + "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.", fields: null, inputFields: null, interfaces: null, @@ -394,10 +394,10 @@ const x = { possibleTypes: null }, { - kind: 'SCALAR', - name: 'Int', + kind: "SCALAR", + name: "Int", description: - 'The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. ', + "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. ", fields: null, inputFields: null, interfaces: null, @@ -405,32 +405,32 @@ const x = { possibleTypes: null }, { - kind: 'OBJECT', - name: 'FriendsConnection', + kind: "OBJECT", + name: "FriendsConnection", description: "A connection object for a character's friends", fields: [ { - name: 'totalCount', - description: 'The total number of friends', + name: "totalCount", + description: "The total number of friends", args: [], type: { - kind: 'SCALAR', - name: 'Int', + kind: "SCALAR", + name: "Int", ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: 'edges', + name: "edges", description: "The edges for each of the character's friends.", args: [], type: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'OBJECT', - name: 'FriendsEdge', + kind: "OBJECT", + name: "FriendsEdge", ofType: null } }, @@ -438,16 +438,16 @@ const x = { deprecationReason: null }, { - name: 'friends', + name: "friends", description: - 'A list of the friends, as a convenience when edges are not needed.', + "A list of the friends, as a convenience when edges are not needed.", args: [], type: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'INTERFACE', - name: 'Character', + kind: "INTERFACE", + name: "Character", ofType: null } }, @@ -455,15 +455,15 @@ const x = { deprecationReason: null }, { - name: 'pageInfo', - description: 'Information for paginating this connection', + name: "pageInfo", + description: "Information for paginating this connection", args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'OBJECT', - name: 'PageInfo', + kind: "OBJECT", + name: "PageInfo", ofType: null } }, @@ -477,20 +477,20 @@ const x = { possibleTypes: null }, { - kind: 'OBJECT', - name: 'FriendsEdge', + kind: "OBJECT", + name: "FriendsEdge", description: "An edge object for a character's friends", fields: [ { - name: 'cursor', - description: 'A cursor used for pagination', + name: "cursor", + description: "A cursor used for pagination", args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'ID', + kind: "SCALAR", + name: "ID", ofType: null } }, @@ -498,12 +498,12 @@ const x = { deprecationReason: null }, { - name: 'node', - description: 'The character represented by this friendship edge', + name: "node", + description: "The character represented by this friendship edge", args: [], type: { - kind: 'INTERFACE', - name: 'Character', + kind: "INTERFACE", + name: "Character", ofType: null }, isDeprecated: false, @@ -516,44 +516,44 @@ const x = { possibleTypes: null }, { - kind: 'OBJECT', - name: 'PageInfo', - description: 'Information for paginating this connection', + kind: "OBJECT", + name: "PageInfo", + description: "Information for paginating this connection", fields: [ { - name: 'startCursor', - description: '', + name: "startCursor", + description: "", args: [], type: { - kind: 'SCALAR', - name: 'ID', + kind: "SCALAR", + name: "ID", ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: 'endCursor', - description: '', + name: "endCursor", + description: "", args: [], type: { - kind: 'SCALAR', - name: 'ID', + kind: "SCALAR", + name: "ID", ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: 'hasNextPage', - description: '', + name: "hasNextPage", + description: "", args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'Boolean', + kind: "SCALAR", + name: "Boolean", ofType: null } }, @@ -567,10 +567,10 @@ const x = { possibleTypes: null }, { - kind: 'SCALAR', - name: 'Boolean', + kind: "SCALAR", + name: "Boolean", description: - 'The `Boolean` scalar type represents `true` or `false`.', + "The `Boolean` scalar type represents `true` or `false`.", fields: null, inputFields: null, interfaces: null, @@ -578,20 +578,20 @@ const x = { possibleTypes: null }, { - kind: 'OBJECT', - name: 'Review', - description: 'Represents a review for a movie', + kind: "OBJECT", + name: "Review", + description: "Represents a review for a movie", fields: [ { - name: 'stars', - description: 'The number of stars this review gave, 1-5', + name: "stars", + description: "The number of stars this review gave, 1-5", args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'Int', + kind: "SCALAR", + name: "Int", ofType: null } }, @@ -599,12 +599,12 @@ const x = { deprecationReason: null }, { - name: 'commentary', - description: 'Comment about the movie', + name: "commentary", + description: "Comment about the movie", args: [], type: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null }, isDeprecated: false, @@ -617,46 +617,46 @@ const x = { possibleTypes: null }, { - kind: 'UNION', - name: 'SearchResult', - description: '', + kind: "UNION", + name: "SearchResult", + description: "", fields: null, inputFields: null, interfaces: null, enumValues: null, possibleTypes: [ { - kind: 'OBJECT', - name: 'Human', + kind: "OBJECT", + name: "Human", ofType: null }, { - kind: 'OBJECT', - name: 'Droid', + kind: "OBJECT", + name: "Droid", ofType: null }, { - kind: 'OBJECT', - name: 'Starship', + kind: "OBJECT", + name: "Starship", ofType: null } ] }, { - kind: 'OBJECT', - name: 'Human', - description: 'A humanoid creature from the Star Wars universe', + kind: "OBJECT", + name: "Human", + description: "A humanoid creature from the Star Wars universe", fields: [ { - name: 'id', - description: 'The ID of the human', + name: "id", + description: "The ID of the human", args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'ID', + kind: "SCALAR", + name: "ID", ofType: null } }, @@ -664,15 +664,15 @@ const x = { deprecationReason: null }, { - name: 'name', - description: 'What this human calls themselves', + name: "name", + description: "What this human calls themselves", args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null } }, @@ -680,63 +680,63 @@ const x = { deprecationReason: null }, { - name: 'homePlanet', - description: 'The home planet of the human, or null if unknown', + name: "homePlanet", + description: "The home planet of the human, or null if unknown", args: [], type: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: 'height', - description: 'Height in the preferred unit, default is meters', + name: "height", + description: "Height in the preferred unit, default is meters", args: [ { - name: 'unit', - description: '', + name: "unit", + description: "", type: { - kind: 'ENUM', - name: 'LengthUnit', + kind: "ENUM", + name: "LengthUnit", ofType: null }, - defaultValue: 'METER' + defaultValue: "METER" } ], type: { - kind: 'SCALAR', - name: 'Float', + kind: "SCALAR", + name: "Float", ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: 'mass', - description: 'Mass in kilograms, or null if unknown', + name: "mass", + description: "Mass in kilograms, or null if unknown", args: [], type: { - kind: 'SCALAR', - name: 'Float', + kind: "SCALAR", + name: "Float", ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: 'friends', + name: "friends", description: "This human's friends, or an empty list if they have none", args: [], type: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'INTERFACE', - name: 'Character', + kind: "INTERFACE", + name: "Character", ofType: null } }, @@ -744,37 +744,37 @@ const x = { deprecationReason: null }, { - name: 'friendsConnection', + name: "friendsConnection", description: - 'The friends of the human exposed as a connection with edges', + "The friends of the human exposed as a connection with edges", args: [ { - name: 'first', - description: '', + name: "first", + description: "", type: { - kind: 'SCALAR', - name: 'Int', + kind: "SCALAR", + name: "Int", ofType: null }, defaultValue: null }, { - name: 'after', - description: '', + name: "after", + description: "", type: { - kind: 'SCALAR', - name: 'ID', + kind: "SCALAR", + name: "ID", ofType: null }, defaultValue: null } ], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'OBJECT', - name: 'FriendsConnection', + kind: "OBJECT", + name: "FriendsConnection", ofType: null } }, @@ -782,18 +782,18 @@ const x = { deprecationReason: null }, { - name: 'appearsIn', - description: 'The movies this human appears in', + name: "appearsIn", + description: "The movies this human appears in", args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'ENUM', - name: 'Episode', + kind: "ENUM", + name: "Episode", ofType: null } } @@ -802,16 +802,16 @@ const x = { deprecationReason: null }, { - name: 'starships', + name: "starships", description: - 'A list of starships this person has piloted, or an empty list if none', + "A list of starships this person has piloted, or an empty list if none", args: [], type: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'OBJECT', - name: 'Starship', + kind: "OBJECT", + name: "Starship", ofType: null } }, @@ -822,8 +822,8 @@ const x = { inputFields: null, interfaces: [ { - kind: 'INTERFACE', - name: 'Character', + kind: "INTERFACE", + name: "Character", ofType: null } ], @@ -831,22 +831,22 @@ const x = { possibleTypes: null }, { - kind: 'ENUM', - name: 'LengthUnit', - description: 'Units of height', + kind: "ENUM", + name: "LengthUnit", + description: "Units of height", fields: null, inputFields: null, interfaces: null, enumValues: [ { - name: 'METER', - description: 'The standard unit around the world', + name: "METER", + description: "The standard unit around the world", isDeprecated: false, deprecationReason: null }, { - name: 'FOOT', - description: 'Primarily used in the United States', + name: "FOOT", + description: "Primarily used in the United States", isDeprecated: false, deprecationReason: null } @@ -854,10 +854,10 @@ const x = { possibleTypes: null }, { - kind: 'SCALAR', - name: 'Float', + kind: "SCALAR", + name: "Float", description: - 'The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). ', + "The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). ", fields: null, inputFields: null, interfaces: null, @@ -865,20 +865,20 @@ const x = { possibleTypes: null }, { - kind: 'OBJECT', - name: 'Starship', - description: '', + kind: "OBJECT", + name: "Starship", + description: "", fields: [ { - name: 'id', - description: 'The ID of the starship', + name: "id", + description: "The ID of the starship", args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'ID', + kind: "SCALAR", + name: "ID", ofType: null } }, @@ -886,15 +886,15 @@ const x = { deprecationReason: null }, { - name: 'name', - description: 'The name of the starship', + name: "name", + description: "The name of the starship", args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null } }, @@ -902,47 +902,47 @@ const x = { deprecationReason: null }, { - name: 'length', - description: 'Length of the starship, along the longest axis', + name: "length", + description: "Length of the starship, along the longest axis", args: [ { - name: 'unit', - description: '', + name: "unit", + description: "", type: { - kind: 'ENUM', - name: 'LengthUnit', + kind: "ENUM", + name: "LengthUnit", ofType: null }, - defaultValue: 'METER' + defaultValue: "METER" } ], type: { - kind: 'SCALAR', - name: 'Float', + kind: "SCALAR", + name: "Float", ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: 'coordinates', - description: '', + name: "coordinates", + description: "", args: [], type: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'Float', + kind: "SCALAR", + name: "Float", ofType: null } } @@ -959,21 +959,21 @@ const x = { possibleTypes: null }, { - kind: 'OBJECT', - name: 'Droid', + kind: "OBJECT", + name: "Droid", description: - 'An autonomous mechanical character in the Star Wars universe', + "An autonomous mechanical character in the Star Wars universe", fields: [ { - name: 'id', - description: 'The ID of the droid', + name: "id", + description: "The ID of the droid", args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'ID', + kind: "SCALAR", + name: "ID", ofType: null } }, @@ -981,15 +981,15 @@ const x = { deprecationReason: null }, { - name: 'name', - description: 'What others call this droid', + name: "name", + description: "What others call this droid", args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null } }, @@ -997,16 +997,16 @@ const x = { deprecationReason: null }, { - name: 'friends', + name: "friends", description: "This droid's friends, or an empty list if they have none", args: [], type: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'INTERFACE', - name: 'Character', + kind: "INTERFACE", + name: "Character", ofType: null } }, @@ -1014,37 +1014,37 @@ const x = { deprecationReason: null }, { - name: 'friendsConnection', + name: "friendsConnection", description: - 'The friends of the droid exposed as a connection with edges', + "The friends of the droid exposed as a connection with edges", args: [ { - name: 'first', - description: '', + name: "first", + description: "", type: { - kind: 'SCALAR', - name: 'Int', + kind: "SCALAR", + name: "Int", ofType: null }, defaultValue: null }, { - name: 'after', - description: '', + name: "after", + description: "", type: { - kind: 'SCALAR', - name: 'ID', + kind: "SCALAR", + name: "ID", ofType: null }, defaultValue: null } ], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'OBJECT', - name: 'FriendsConnection', + kind: "OBJECT", + name: "FriendsConnection", ofType: null } }, @@ -1052,18 +1052,18 @@ const x = { deprecationReason: null }, { - name: 'appearsIn', - description: 'The movies this droid appears in', + name: "appearsIn", + description: "The movies this droid appears in", args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'ENUM', - name: 'Episode', + kind: "ENUM", + name: "Episode", ofType: null } } @@ -1072,12 +1072,12 @@ const x = { deprecationReason: null }, { - name: 'primaryFunction', + name: "primaryFunction", description: "This droid's primary function", args: [], type: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null }, isDeprecated: false, @@ -1087,8 +1087,8 @@ const x = { inputFields: null, interfaces: [ { - kind: 'INTERFACE', - name: 'Character', + kind: "INTERFACE", + name: "Character", ofType: null } ], @@ -1096,34 +1096,34 @@ const x = { possibleTypes: null }, { - kind: 'OBJECT', - name: 'Mutation', + kind: "OBJECT", + name: "Mutation", description: - 'The mutation type, represents all updates we can make to our data', + "The mutation type, represents all updates we can make to our data", fields: [ { - name: 'createReview', - description: '', + name: "createReview", + description: "", args: [ { - name: 'episode', - description: '', + name: "episode", + description: "", type: { - kind: 'ENUM', - name: 'Episode', + kind: "ENUM", + name: "Episode", ofType: null }, defaultValue: null }, { - name: 'review', - description: '', + name: "review", + description: "", type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'INPUT_OBJECT', - name: 'ReviewInput', + kind: "INPUT_OBJECT", + name: "ReviewInput", ofType: null } }, @@ -1131,8 +1131,8 @@ const x = { } ], type: { - kind: 'OBJECT', - name: 'Review', + kind: "OBJECT", + name: "Review", ofType: null }, isDeprecated: false, @@ -1145,42 +1145,42 @@ const x = { possibleTypes: null }, { - kind: 'INPUT_OBJECT', - name: 'ReviewInput', + kind: "INPUT_OBJECT", + name: "ReviewInput", description: - 'The input object sent when someone is creating a new review', + "The input object sent when someone is creating a new review", fields: null, inputFields: [ { - name: 'stars', - description: '0-5 stars', + name: "stars", + description: "0-5 stars", type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'Int', + kind: "SCALAR", + name: "Int", ofType: null } }, defaultValue: null }, { - name: 'commentary', - description: 'Comment about the movie, optional', + name: "commentary", + description: "Comment about the movie, optional", type: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null }, defaultValue: null }, { - name: 'favorite_color', - description: 'Favorite color, optional', + name: "favorite_color", + description: "Favorite color, optional", type: { - kind: 'INPUT_OBJECT', - name: 'ColorInput', + kind: "INPUT_OBJECT", + name: "ColorInput", ofType: null }, defaultValue: null @@ -1191,48 +1191,48 @@ const x = { possibleTypes: null }, { - kind: 'INPUT_OBJECT', - name: 'ColorInput', - description: 'The input object sent when passing in a color', + kind: "INPUT_OBJECT", + name: "ColorInput", + description: "The input object sent when passing in a color", fields: null, inputFields: [ { - name: 'red', - description: '', + name: "red", + description: "", type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'Int', + kind: "SCALAR", + name: "Int", ofType: null } }, defaultValue: null }, { - name: 'green', - description: '', + name: "green", + description: "", type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'Int', + kind: "SCALAR", + name: "Int", ofType: null } }, defaultValue: null }, { - name: 'blue', - description: '', + name: "blue", + description: "", type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'Int', + kind: "SCALAR", + name: "Int", ofType: null } }, @@ -1244,27 +1244,27 @@ const x = { possibleTypes: null }, { - kind: 'OBJECT', - name: '__Schema', + kind: "OBJECT", + name: "__Schema", description: - 'A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.', + "A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.", fields: [ { - name: 'types', - description: 'A list of all types supported by this server.', + name: "types", + description: "A list of all types supported by this server.", args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'OBJECT', - name: '__Type', + kind: "OBJECT", + name: "__Type", ofType: null } } @@ -1274,15 +1274,15 @@ const x = { deprecationReason: null }, { - name: 'queryType', - description: 'The type that query operations will be rooted at.', + name: "queryType", + description: "The type that query operations will be rooted at.", args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'OBJECT', - name: '__Type', + kind: "OBJECT", + name: "__Type", ofType: null } }, @@ -1290,47 +1290,47 @@ const x = { deprecationReason: null }, { - name: 'mutationType', + name: "mutationType", description: - 'If this server supports mutation, the type that mutation operations will be rooted at.', + "If this server supports mutation, the type that mutation operations will be rooted at.", args: [], type: { - kind: 'OBJECT', - name: '__Type', + kind: "OBJECT", + name: "__Type", ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: 'subscriptionType', + name: "subscriptionType", description: - 'If this server support subscription, the type that subscription operations will be rooted at.', + "If this server support subscription, the type that subscription operations will be rooted at.", args: [], type: { - kind: 'OBJECT', - name: '__Type', + kind: "OBJECT", + name: "__Type", ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: 'directives', - description: 'A list of all directives supported by this server.', + name: "directives", + description: "A list of all directives supported by this server.", args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'OBJECT', - name: '__Directive', + kind: "OBJECT", + name: "__Directive", ofType: null } } @@ -1346,21 +1346,21 @@ const x = { possibleTypes: null }, { - kind: 'OBJECT', - name: '__Type', + kind: "OBJECT", + name: "__Type", description: - 'The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.', + "The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.", fields: [ { - name: 'kind', + name: "kind", description: null, args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'ENUM', - name: '__TypeKind', + kind: "ENUM", + name: "__TypeKind", ofType: null } }, @@ -1368,53 +1368,53 @@ const x = { deprecationReason: null }, { - name: 'name', + name: "name", description: null, args: [], type: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: 'description', + name: "description", description: null, args: [], type: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: 'fields', + name: "fields", description: null, args: [ { - name: 'includeDeprecated', + name: "includeDeprecated", description: null, type: { - kind: 'SCALAR', - name: 'Boolean', + kind: "SCALAR", + name: "Boolean", ofType: null }, - defaultValue: 'false' + defaultValue: "false" } ], type: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'OBJECT', - name: '__Field', + kind: "OBJECT", + name: "__Field", ofType: null } } @@ -1423,18 +1423,18 @@ const x = { deprecationReason: null }, { - name: 'interfaces', + name: "interfaces", description: null, args: [], type: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'OBJECT', - name: '__Type', + kind: "OBJECT", + name: "__Type", ofType: null } } @@ -1443,18 +1443,18 @@ const x = { deprecationReason: null }, { - name: 'possibleTypes', + name: "possibleTypes", description: null, args: [], type: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'OBJECT', - name: '__Type', + kind: "OBJECT", + name: "__Type", ofType: null } } @@ -1463,29 +1463,29 @@ const x = { deprecationReason: null }, { - name: 'enumValues', + name: "enumValues", description: null, args: [ { - name: 'includeDeprecated', + name: "includeDeprecated", description: null, type: { - kind: 'SCALAR', - name: 'Boolean', + kind: "SCALAR", + name: "Boolean", ofType: null }, - defaultValue: 'false' + defaultValue: "false" } ], type: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'OBJECT', - name: '__EnumValue', + kind: "OBJECT", + name: "__EnumValue", ofType: null } } @@ -1494,18 +1494,18 @@ const x = { deprecationReason: null }, { - name: 'inputFields', + name: "inputFields", description: null, args: [], type: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'OBJECT', - name: '__InputValue', + kind: "OBJECT", + name: "__InputValue", ofType: null } } @@ -1514,12 +1514,12 @@ const x = { deprecationReason: null }, { - name: 'ofType', + name: "ofType", description: null, args: [], type: { - kind: 'OBJECT', - name: '__Type', + kind: "OBJECT", + name: "__Type", ofType: null }, isDeprecated: false, @@ -1532,66 +1532,66 @@ const x = { possibleTypes: null }, { - kind: 'ENUM', - name: '__TypeKind', + kind: "ENUM", + name: "__TypeKind", description: - 'An enum describing what kind of type a given `__Type` is.', + "An enum describing what kind of type a given `__Type` is.", fields: null, inputFields: null, interfaces: null, enumValues: [ { - name: 'SCALAR', - description: 'Indicates this type is a scalar.', + name: "SCALAR", + description: "Indicates this type is a scalar.", isDeprecated: false, deprecationReason: null }, { - name: 'OBJECT', + name: "OBJECT", description: - 'Indicates this type is an object. `fields` and `interfaces` are valid fields.', + "Indicates this type is an object. `fields` and `interfaces` are valid fields.", isDeprecated: false, deprecationReason: null }, { - name: 'INTERFACE', + name: "INTERFACE", description: - 'Indicates this type is an interface. `fields` and `possibleTypes` are valid fields.', + "Indicates this type is an interface. `fields` and `possibleTypes` are valid fields.", isDeprecated: false, deprecationReason: null }, { - name: 'UNION', + name: "UNION", description: - 'Indicates this type is a union. `possibleTypes` is a valid field.', + "Indicates this type is a union. `possibleTypes` is a valid field.", isDeprecated: false, deprecationReason: null }, { - name: 'ENUM', + name: "ENUM", description: - 'Indicates this type is an enum. `enumValues` is a valid field.', + "Indicates this type is an enum. `enumValues` is a valid field.", isDeprecated: false, deprecationReason: null }, { - name: 'INPUT_OBJECT', + name: "INPUT_OBJECT", description: - 'Indicates this type is an input object. `inputFields` is a valid field.', + "Indicates this type is an input object. `inputFields` is a valid field.", isDeprecated: false, deprecationReason: null }, { - name: 'LIST', + name: "LIST", description: - 'Indicates this type is a list. `ofType` is a valid field.', + "Indicates this type is a list. `ofType` is a valid field.", isDeprecated: false, deprecationReason: null }, { - name: 'NON_NULL', + name: "NON_NULL", description: - 'Indicates this type is a non-null. `ofType` is a valid field.', + "Indicates this type is a non-null. `ofType` is a valid field.", isDeprecated: false, deprecationReason: null } @@ -1599,21 +1599,21 @@ const x = { possibleTypes: null }, { - kind: 'OBJECT', - name: '__Field', + kind: "OBJECT", + name: "__Field", description: - 'Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.', + "Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.", fields: [ { - name: 'name', + name: "name", description: null, args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null } }, @@ -1621,33 +1621,33 @@ const x = { deprecationReason: null }, { - name: 'description', + name: "description", description: null, args: [], type: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: 'args', + name: "args", description: null, args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'OBJECT', - name: '__InputValue', + kind: "OBJECT", + name: "__InputValue", ofType: null } } @@ -1657,15 +1657,15 @@ const x = { deprecationReason: null }, { - name: 'type', + name: "type", description: null, args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'OBJECT', - name: '__Type', + kind: "OBJECT", + name: "__Type", ofType: null } }, @@ -1673,15 +1673,15 @@ const x = { deprecationReason: null }, { - name: 'isDeprecated', + name: "isDeprecated", description: null, args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'Boolean', + kind: "SCALAR", + name: "Boolean", ofType: null } }, @@ -1689,12 +1689,12 @@ const x = { deprecationReason: null }, { - name: 'deprecationReason', + name: "deprecationReason", description: null, args: [], type: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null }, isDeprecated: false, @@ -1707,21 +1707,21 @@ const x = { possibleTypes: null }, { - kind: 'OBJECT', - name: '__InputValue', + kind: "OBJECT", + name: "__InputValue", description: - 'Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.', + "Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.", fields: [ { - name: 'name', + name: "name", description: null, args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null } }, @@ -1729,27 +1729,27 @@ const x = { deprecationReason: null }, { - name: 'description', + name: "description", description: null, args: [], type: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: 'type', + name: "type", description: null, args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'OBJECT', - name: '__Type', + kind: "OBJECT", + name: "__Type", ofType: null } }, @@ -1757,13 +1757,13 @@ const x = { deprecationReason: null }, { - name: 'defaultValue', + name: "defaultValue", description: - 'A GraphQL-formatted string representing the default value for this input value.', + "A GraphQL-formatted string representing the default value for this input value.", args: [], type: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null }, isDeprecated: false, @@ -1776,21 +1776,21 @@ const x = { possibleTypes: null }, { - kind: 'OBJECT', - name: '__EnumValue', + kind: "OBJECT", + name: "__EnumValue", description: - 'One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.', + "One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.", fields: [ { - name: 'name', + name: "name", description: null, args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null } }, @@ -1798,27 +1798,27 @@ const x = { deprecationReason: null }, { - name: 'description', + name: "description", description: null, args: [], type: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: 'isDeprecated', + name: "isDeprecated", description: null, args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'Boolean', + kind: "SCALAR", + name: "Boolean", ofType: null } }, @@ -1826,12 +1826,12 @@ const x = { deprecationReason: null }, { - name: 'deprecationReason', + name: "deprecationReason", description: null, args: [], type: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null }, isDeprecated: false, @@ -1844,21 +1844,21 @@ const x = { possibleTypes: null }, { - kind: 'OBJECT', - name: '__Directive', + kind: "OBJECT", + name: "__Directive", description: "A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.", fields: [ { - name: 'name', + name: "name", description: null, args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null } }, @@ -1866,33 +1866,33 @@ const x = { deprecationReason: null }, { - name: 'description', + name: "description", description: null, args: [], type: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: 'locations', + name: "locations", description: null, args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'ENUM', - name: '__DirectiveLocation', + kind: "ENUM", + name: "__DirectiveLocation", ofType: null } } @@ -1902,21 +1902,21 @@ const x = { deprecationReason: null }, { - name: 'args', + name: "args", description: null, args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'LIST', + kind: "LIST", name: null, ofType: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'OBJECT', - name: '__InputValue', + kind: "OBJECT", + name: "__InputValue", ofType: null } } @@ -1926,52 +1926,52 @@ const x = { deprecationReason: null }, { - name: 'onOperation', + name: "onOperation", description: null, args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'Boolean', + kind: "SCALAR", + name: "Boolean", ofType: null } }, isDeprecated: true, - deprecationReason: 'Use `locations`.' + deprecationReason: "Use `locations`." }, { - name: 'onFragment', + name: "onFragment", description: null, args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'Boolean', + kind: "SCALAR", + name: "Boolean", ofType: null } }, isDeprecated: true, - deprecationReason: 'Use `locations`.' + deprecationReason: "Use `locations`." }, { - name: 'onField', + name: "onField", description: null, args: [], type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'Boolean', + kind: "SCALAR", + name: "Boolean", ofType: null } }, isDeprecated: true, - deprecationReason: 'Use `locations`.' + deprecationReason: "Use `locations`." } ], inputFields: null, @@ -1980,121 +1980,121 @@ const x = { possibleTypes: null }, { - kind: 'ENUM', - name: '__DirectiveLocation', + kind: "ENUM", + name: "__DirectiveLocation", description: - 'A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.', + "A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.", fields: null, inputFields: null, interfaces: null, enumValues: [ { - name: 'QUERY', - description: 'Location adjacent to a query operation.', + name: "QUERY", + description: "Location adjacent to a query operation.", isDeprecated: false, deprecationReason: null }, { - name: 'MUTATION', - description: 'Location adjacent to a mutation operation.', + name: "MUTATION", + description: "Location adjacent to a mutation operation.", isDeprecated: false, deprecationReason: null }, { - name: 'SUBSCRIPTION', - description: 'Location adjacent to a subscription operation.', + name: "SUBSCRIPTION", + description: "Location adjacent to a subscription operation.", isDeprecated: false, deprecationReason: null }, { - name: 'FIELD', - description: 'Location adjacent to a field.', + name: "FIELD", + description: "Location adjacent to a field.", isDeprecated: false, deprecationReason: null }, { - name: 'FRAGMENT_DEFINITION', - description: 'Location adjacent to a fragment definition.', + name: "FRAGMENT_DEFINITION", + description: "Location adjacent to a fragment definition.", isDeprecated: false, deprecationReason: null }, { - name: 'FRAGMENT_SPREAD', - description: 'Location adjacent to a fragment spread.', + name: "FRAGMENT_SPREAD", + description: "Location adjacent to a fragment spread.", isDeprecated: false, deprecationReason: null }, { - name: 'INLINE_FRAGMENT', - description: 'Location adjacent to an inline fragment.', + name: "INLINE_FRAGMENT", + description: "Location adjacent to an inline fragment.", isDeprecated: false, deprecationReason: null }, { - name: 'SCHEMA', - description: 'Location adjacent to a schema definition.', + name: "SCHEMA", + description: "Location adjacent to a schema definition.", isDeprecated: false, deprecationReason: null }, { - name: 'SCALAR', - description: 'Location adjacent to a scalar definition.', + name: "SCALAR", + description: "Location adjacent to a scalar definition.", isDeprecated: false, deprecationReason: null }, { - name: 'OBJECT', - description: 'Location adjacent to an object type definition.', + name: "OBJECT", + description: "Location adjacent to an object type definition.", isDeprecated: false, deprecationReason: null }, { - name: 'FIELD_DEFINITION', - description: 'Location adjacent to a field definition.', + name: "FIELD_DEFINITION", + description: "Location adjacent to a field definition.", isDeprecated: false, deprecationReason: null }, { - name: 'ARGUMENT_DEFINITION', - description: 'Location adjacent to an argument definition.', + name: "ARGUMENT_DEFINITION", + description: "Location adjacent to an argument definition.", isDeprecated: false, deprecationReason: null }, { - name: 'INTERFACE', - description: 'Location adjacent to an interface definition.', + name: "INTERFACE", + description: "Location adjacent to an interface definition.", isDeprecated: false, deprecationReason: null }, { - name: 'UNION', - description: 'Location adjacent to a union definition.', + name: "UNION", + description: "Location adjacent to a union definition.", isDeprecated: false, deprecationReason: null }, { - name: 'ENUM', - description: 'Location adjacent to an enum definition.', + name: "ENUM", + description: "Location adjacent to an enum definition.", isDeprecated: false, deprecationReason: null }, { - name: 'ENUM_VALUE', - description: 'Location adjacent to an enum value definition.', + name: "ENUM_VALUE", + description: "Location adjacent to an enum value definition.", isDeprecated: false, deprecationReason: null }, { - name: 'INPUT_OBJECT', + name: "INPUT_OBJECT", description: - 'Location adjacent to an input object type definition.', + "Location adjacent to an input object type definition.", isDeprecated: false, deprecationReason: null }, { - name: 'INPUT_FIELD_DEFINITION', + name: "INPUT_FIELD_DEFINITION", description: - 'Location adjacent to an input object field definition.', + "Location adjacent to an input object field definition.", isDeprecated: false, deprecationReason: null } @@ -2104,20 +2104,20 @@ const x = { ], directives: [ { - name: 'skip', + name: "skip", description: - 'Directs the executor to skip this field or fragment when the `if` argument is true.', - locations: ['FIELD', 'FRAGMENT_SPREAD', 'INLINE_FRAGMENT'], + "Directs the executor to skip this field or fragment when the `if` argument is true.", + locations: ["FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT"], args: [ { - name: 'if', - description: 'Skipped when true.', + name: "if", + description: "Skipped when true.", type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'Boolean', + kind: "SCALAR", + name: "Boolean", ofType: null } }, @@ -2126,20 +2126,20 @@ const x = { ] }, { - name: 'include', + name: "include", description: - 'Directs the executor to include this field or fragment only when the `if` argument is true.', - locations: ['FIELD', 'FRAGMENT_SPREAD', 'INLINE_FRAGMENT'], + "Directs the executor to include this field or fragment only when the `if` argument is true.", + locations: ["FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT"], args: [ { - name: 'if', - description: 'Included when true.', + name: "if", + description: "Included when true.", type: { - kind: 'NON_NULL', + kind: "NON_NULL", name: null, ofType: { - kind: 'SCALAR', - name: 'Boolean', + kind: "SCALAR", + name: "Boolean", ofType: null } }, @@ -2148,18 +2148,18 @@ const x = { ] }, { - name: 'deprecated', + name: "deprecated", description: - 'Marks an element of a GraphQL schema as no longer supported.', - locations: ['FIELD_DEFINITION', 'ENUM_VALUE'], + "Marks an element of a GraphQL schema as no longer supported.", + locations: ["FIELD_DEFINITION", "ENUM_VALUE"], args: [ { - name: 'reason', + name: "reason", description: - 'Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted in [Markdown](https://daringfireball.net/projects/markdown/).', + "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted in [Markdown](https://daringfireball.net/projects/markdown/).", type: { - kind: 'SCALAR', - name: 'String', + kind: "SCALAR", + name: "String", ofType: null }, defaultValue: '"No longer supported"' @@ -2169,9 +2169,9 @@ const x = { ] } } -} +}; -export const dummySchema = JSON.stringify(x, null, 2) +export const dummySchema = JSON.stringify(x, null, 2); export const dummyQuery = `query HeroAndFriendsNames { hero { @@ -2184,4 +2184,4 @@ fragment heroFriends on Character { friends { name } -}` +}`; diff --git a/utils/json-to-go.js b/utils/json-to-go.js index 112bd2d..382ed8d 100644 --- a/utils/json-to-go.js +++ b/utils/json-to-go.js @@ -7,227 +7,227 @@ A simple utility to translate JSON into a Go type definition. */ -function jsonToGo (json, typename) { - let data - let scope - let go = '' - let tabs = 0 +function jsonToGo(json, typename) { + let data; + let scope; + let go = ""; + let tabs = 0; try { - data = JSON.parse(json.replace(/\.0/g, '.1')) // hack that forces floats to stay as floats - scope = data + data = JSON.parse(json.replace(/\.0/g, ".1")); // hack that forces floats to stay as floats + scope = data; } catch (e) { return { - go: '', + go: "", error: e.message - } + }; } - typename = format(typename || 'AutoGenerated') - append('type ' + typename + ' ') + typename = format(typename || "AutoGenerated"); + append("type " + typename + " "); - parseScope(scope) + parseScope(scope); - return { go: go } + return { go: go }; - function parseScope (scope) { - let keyname - if (typeof scope === 'object' && scope !== null) { + function parseScope(scope) { + let keyname; + if (typeof scope === "object" && scope !== null) { if (Array.isArray(scope)) { - let i + let i; let sliceType, - scopeLength = scope.length + scopeLength = scope.length; for (i = 0; i < scopeLength; i++) { - const thisType = goType(scope[i]) - if (!sliceType) sliceType = thisType + const thisType = goType(scope[i]); + if (!sliceType) sliceType = thisType; else if (sliceType !== thisType) { - sliceType = mostSpecificPossibleGoType(thisType, sliceType) - if (sliceType === 'interface{}') break + sliceType = mostSpecificPossibleGoType(thisType, sliceType); + if (sliceType === "interface{}") break; } } - append('[]') - if (sliceType === 'struct') { - let k - let keys - const allFields = {} + append("[]"); + if (sliceType === "struct") { + let k; + let keys; + const allFields = {}; // for each field counts how many times appears for (i = 0; i < scopeLength; i++) { - keys = Object.keys(scope[i]) + keys = Object.keys(scope[i]); for (k in keys) { - keyname = keys[k] + keyname = keys[k]; if (!(keyname in allFields)) { allFields[keyname] = { value: scope[i][keyname], count: 0 - } + }; } - allFields[keyname].count++ + allFields[keyname].count++; } } // create a common struct with all fields found in the current array // omitempty dict indicates if a field is optional - keys = Object.keys(allFields) + keys = Object.keys(allFields); let struct = {}, - omitempty = {} + omitempty = {}; for (k in keys) { - keyname = keys[k] - let elem = allFields[keyname] + keyname = keys[k]; + let elem = allFields[keyname]; - struct[keyname] = elem.value - omitempty[keyname] = elem.count !== scopeLength + struct[keyname] = elem.value; + omitempty[keyname] = elem.count !== scopeLength; } - parseStruct(struct, omitempty) // finally parse the struct !! - } else if (sliceType === 'slice') { - parseScope(scope[0]) - } else append(sliceType || 'interface{}') + parseStruct(struct, omitempty); // finally parse the struct !! + } else if (sliceType === "slice") { + parseScope(scope[0]); + } else append(sliceType || "interface{}"); } else { - parseStruct(scope) + parseStruct(scope); } - } else append(goType(scope)) + } else append(goType(scope)); } - function parseStruct (scope, omitempty) { - append('struct {\n') - ++tabs - const keys = Object.keys(scope) + function parseStruct(scope, omitempty) { + append("struct {\n"); + ++tabs; + const keys = Object.keys(scope); for (const i in keys) { - const keyname = keys[i] - indent(tabs) - append(format(keyname) + ' ') - parseScope(scope[keyname]) + const keyname = keys[i]; + indent(tabs); + append(format(keyname) + " "); + parseScope(scope[keyname]); - append(' `json:"' + keyname) + append(' `json:"' + keyname); if (omitempty && omitempty[keyname] === true) { - append(',omitempty') + append(",omitempty"); } - append('"`\n') + append('"`\n'); } - indent(--tabs) - append('}') + indent(--tabs); + append("}"); } - function indent (tabs) { - for (let i = 0; i < tabs; i++) go += '\t' + function indent(tabs) { + for (let i = 0; i < tabs; i++) go += "\t"; } - function append (str) { - go += str + function append(str) { + go += str; } // Sanitizes and formats a string to make an appropriate identifier in Go - function format (str) { - if (!str) return '' - else if (str.match(/^\d+$/)) str = 'Num' + str + function format(str) { + if (!str) return ""; + else if (str.match(/^\d+$/)) str = "Num" + str; else if (str.charAt(0).match(/\d/)) { const numbers = { - '0': 'Zero_', - '1': 'One_', - '2': 'Two_', - '3': 'Three_', - '4': 'Four_', - '5': 'Five_', - '6': 'Six_', - '7': 'Seven_', - '8': 'Eight_', - '9': 'Nine_' - } - str = numbers[str.charAt(0)] + str.substr(1) + "0": "Zero_", + "1": "One_", + "2": "Two_", + "3": "Three_", + "4": "Four_", + "5": "Five_", + "6": "Six_", + "7": "Seven_", + "8": "Eight_", + "9": "Nine_" + }; + str = numbers[str.charAt(0)] + str.substr(1); } - return toProperCase(str).replace(/[^a-z0-9]/gi, '') || 'NAMING_FAILED' + return toProperCase(str).replace(/[^a-z0-9]/gi, "") || "NAMING_FAILED"; } // Determines the most appropriate Go type - function goType (val) { - if (val === null) return 'interface{}' + function goType(val) { + if (val === null) return "interface{}"; switch (typeof val) { - case 'string': + case "string": if (/\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?(\+\d\d:\d\d|Z)/.test(val)) { - return 'time.Time' - } else return 'string' - case 'number': + return "time.Time"; + } else return "string"; + case "number": if (val % 1 === 0) { - if (val > -2147483648 && val < 2147483647) return 'int' - else return 'int64' - } else return 'float64' - case 'boolean': - return 'bool' - case 'object': - if (Array.isArray(val)) return 'slice' - return 'struct' + if (val > -2147483648 && val < 2147483647) return "int"; + else return "int64"; + } else return "float64"; + case "boolean": + return "bool"; + case "object": + if (Array.isArray(val)) return "slice"; + return "struct"; default: - return 'interface{}' + return "interface{}"; } } // Given two types, returns the more specific of the two - function mostSpecificPossibleGoType (typ1, typ2) { - if (typ1.substr(0, 5) === 'float' && typ2.substr(0, 3) === 'int') { - return typ1 - } else if (typ1.substr(0, 3) === 'int' && typ2.substr(0, 5) === 'float') { - return typ1 - } else return 'interface{}' + function mostSpecificPossibleGoType(typ1, typ2) { + if (typ1.substr(0, 5) === "float" && typ2.substr(0, 3) === "int") { + return typ1; + } else if (typ1.substr(0, 3) === "int" && typ2.substr(0, 5) === "float") { + return typ1; + } else return "interface{}"; } // Proper cases a string according to Go conventions - function toProperCase (str) { + function toProperCase(str) { // https://github.com/golang/lint/blob/39d15d55e9777df34cdffde4f406ab27fd2e60c0/lint.go#L695-L731 const commonInitialisms = [ - 'API', - 'ASCII', - 'CPU', - 'CSS', - 'DNS', - 'EOF', - 'GUID', - 'HTML', - 'HTTP', - 'HTTPS', - 'ID', - 'IP', - 'JSON', - 'LHS', - 'QPS', - 'RAM', - 'RHS', - 'RPC', - 'SLA', - 'SMTP', - 'SSH', - 'TCP', - 'TLS', - 'TTL', - 'UDP', - 'UI', - 'UID', - 'UUID', - 'URI', - 'URL', - 'UTF8', - 'VM', - 'XML', - 'XSRF', - 'XSS' - ] + "API", + "ASCII", + "CPU", + "CSS", + "DNS", + "EOF", + "GUID", + "HTML", + "HTTP", + "HTTPS", + "ID", + "IP", + "JSON", + "LHS", + "QPS", + "RAM", + "RHS", + "RPC", + "SLA", + "SMTP", + "SSH", + "TCP", + "TLS", + "TTL", + "UDP", + "UI", + "UID", + "UUID", + "URI", + "URL", + "UTF8", + "VM", + "XML", + "XSRF", + "XSS" + ]; return str - .replace(/(^|[^a-zA-Z])([a-z]+)/g, function (unused, sep, frag) { + .replace(/(^|[^a-zA-Z])([a-z]+)/g, function(unused, sep, frag) { if (commonInitialisms.indexOf(frag.toUpperCase()) >= 0) { - return sep + frag.toUpperCase() - } else return sep + frag[0].toUpperCase() + frag.substr(1).toLowerCase() + return sep + frag.toUpperCase(); + } else return sep + frag[0].toUpperCase() + frag.substr(1).toLowerCase(); }) - .replace(/([A-Z])([a-z]+)/g, function (unused, sep, frag) { + .replace(/([A-Z])([a-z]+)/g, function(unused, sep, frag) { if (commonInitialisms.indexOf(sep + frag.toUpperCase()) >= 0) { - return (sep + frag).toUpperCase() - } else return sep + frag - }) + return (sep + frag).toUpperCase(); + } else return sep + frag; + }); } } -module.exports = jsonToGo +module.exports = jsonToGo; diff --git a/utils/loadWorker.js b/utils/loadWorker.js index 0b3e13a..77339f8 100644 --- a/utils/loadWorker.js +++ b/utils/loadWorker.js @@ -1,9 +1,9 @@ -export default function (fileName, self) { - if (self && self.promiseWorker) return { promiseWorker: self.promiseWorker } - const PromiseWorker = require('promise-worker') - const MyWorker = require(`worker-loader?inline!../workers/${fileName}`) - const worker = new MyWorker() - const promiseWorker = new PromiseWorker(worker) +export default function(fileName, self) { + if (self && self.promiseWorker) return { promiseWorker: self.promiseWorker }; + const PromiseWorker = require("promise-worker"); + const MyWorker = require(`worker-loader?inline!../workers/${fileName}`); + const worker = new MyWorker(); + const promiseWorker = new PromiseWorker(worker); - return { worker, promiseWorker } + return { worker, promiseWorker }; } diff --git a/utils/routes.js b/utils/routes.js index 7474313..554e323 100644 --- a/utils/routes.js +++ b/utils/routes.js @@ -1,218 +1,218 @@ -import flatten from 'lodash/flatten' -import find from 'lodash/find' +import flatten from "lodash/flatten"; +import find from "lodash/find"; -function GraphQLIcon () { +function GraphQLIcon() { return ( - + - + - ) + ); } export const categorizedRoutes = [ { - category: 'React', - iconName: 'icon-reactjs', + category: "React", + iconName: "icon-reactjs", content: [ { - label: 'JSON to React PropTypes', - path: '/', - title: 'Transform | All important transforms at one place.', + label: "JSON to React PropTypes", + path: "/", + title: "Transform | All important transforms at one place.", 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.' + "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/SVG to JSX', - path: '/html-to-jsx', + label: "HTML/SVG to JSX", + path: "/html-to-jsx", desc: - 'An online REPL for converting HTML to JSX with proper support for SVG.' + "An online REPL for converting HTML to JSX with proper support for SVG." }, { - label: 'SVG to React Native', - path: '/svg-to-react-native', + label: "SVG to React Native", + path: "/svg-to-react-native", desc: - 'An online REPL for converting SVG to React Native compatible equivalent.' + "An online REPL for converting SVG to React Native compatible equivalent." }, { - label: 'CSS to JS Objects', - path: '/css-to-js', + 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.', - packageName: 'transform-css-to-js', - packageUrl: 'https://github.com/transform-it/transform-css-to-js' + "An online REPL for converting CSS to JS object. It also gives style optimized for React Native.", + packageName: "transform-css-to-js", + packageUrl: "https://github.com/transform-it/transform-css-to-js" }, { - label: 'CSS to Emotion', - path: '/css-to-emotion', - desc: 'An online REPL for converting CSS to Emotion compatible code.', - packageName: 'css-in-js-generator', - packageUrl: 'https://github.com/brikou/CSS-in-JS-generator', + label: "CSS to Emotion", + path: "/css-to-emotion", + desc: "An online REPL for converting CSS to Emotion compatible code.", + packageName: "css-in-js-generator", + packageUrl: "https://github.com/brikou/CSS-in-JS-generator", beta: true } ] }, { - category: 'JavaScript', - iconName: 'icon-javascript', + 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 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', + label: "JSON to Typescript Interface", + path: "/json-to-ts-interface", desc: - 'An online REPL for converting JSON to generate TypeScript Interface.' + "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.' + 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." }, { - label: 'JS Object to JSON', - path: '/js-object-to-json', - desc: 'An online REPL for converting JS Object to JSON.' + label: "JS Object to JSON", + path: "/js-object-to-json", + desc: "An online REPL for converting JS Object to JSON." }, { - label: 'JSON Schema to TypeScript', - path: '/json-schema-to-ts', + label: "JSON Schema to TypeScript", + path: "/json-schema-to-ts", desc: - 'An online REPL for converting JSON Schema to TypeScript Interface.', - packageName: 'json-schema-to-typescript', - packageUrl: 'https://github.com/bcherny/json-schema-to-typescript' + "An online REPL for converting JSON Schema to TypeScript Interface.", + packageName: "json-schema-to-typescript", + packageUrl: "https://github.com/bcherny/json-schema-to-typescript" } ] }, { - category: 'Rust', - iconName: 'icon-rust', + 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.' + label: "JSON to Rust Serde", + path: "/json-to-rust-serde", + desc: "An online REPL for converting JSON to Rust Serde Structs." }, { - label: 'JSON Schema to Rust Serde', - path: '/json-schema-to-rust-serde', - desc: 'An online REPL for converting JSON Schema to Rust Serde Structs.' + label: "JSON Schema to Rust Serde", + path: "/json-schema-to-rust-serde", + desc: "An online REPL for converting JSON Schema to Rust Serde Structs." } ] }, { - category: 'Databases', - iconName: 'icon-database', + 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.', - packageName: 'generate-schema', - packageUrl: 'https://github.com/nijikokun/generate-schema' + label: "JSON to Mongoose Schema", + path: "/json-to-mongoose", + desc: "An online REPL to generate Mongoose Schema from JSON.", + packageName: "generate-schema", + packageUrl: "https://github.com/nijikokun/generate-schema" }, { - label: 'JSON to Big Query Schema', - path: '/json-to-big-query', - desc: 'An online REPL to generate Big Query Schema from JSON.', - packageName: 'generate-schema', - packageUrl: 'https://github.com/nijikokun/generate-schema' + label: "JSON to Big Query Schema", + path: "/json-to-big-query", + desc: "An online REPL to generate Big Query Schema from JSON.", + packageName: "generate-schema", + packageUrl: "https://github.com/nijikokun/generate-schema" }, { - label: 'JSON to MySQL', - path: '/json-to-mysql', + label: "JSON to MySQL", + path: "/json-to-mysql", desc: - 'An online REPL to generate MySQL table generation code from JSON.', - packageName: 'generate-schema', - packageUrl: 'https://github.com/nijikokun/generate-schema' + "An online REPL to generate MySQL table generation code from JSON.", + packageName: "generate-schema", + packageUrl: "https://github.com/nijikokun/generate-schema" } ] }, { - category: 'Scala', - iconName: 'icon-scala', + 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.' + 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', + category: "GraphQL", icon: , content: [ { - label: 'GraphQL to TypeScript', - path: '/graphql-to-typescript', + 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.' + "An online REPL to generate TypeScript type annotations based on a GraphQL schema and query documents." }, { - label: 'GraphQL to Flow', - path: '/graphql-to-flow', + 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.' + "An online REPL to generate Flow type annotations based on a GraphQL schema and query documents." } ] }, { - category: 'Go', - iconName: 'icon-go', + category: "Go", + iconName: "icon-go", content: [ { - label: 'JSON to Go Struct', - path: '/json-to-go', - desc: 'An online REPL to generate Go Struct from JSON.', - packageName: 'json-to-go', - packageUrl: 'https://github.com/mholt/json-to-go' + label: "JSON to Go Struct", + path: "/json-to-go", + desc: "An online REPL to generate Go Struct from JSON.", + packageName: "json-to-go", + packageUrl: "https://github.com/mholt/json-to-go" } ] }, { - category: 'XML', - iconName: 'icon-html', + 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.', - packageName: 'xml-js', - packageUrl: 'https://github.com/nashwaan/xml-js' + label: "XML to JSON", + path: "/xml-to-json", + desc: "An online REPL to generate basic JSON from a XML.", + packageName: "xml-js", + packageUrl: "https://github.com/nashwaan/xml-js" } ] } -] +]; -export const routes = flatten(categorizedRoutes.map(a => a.content)) +export const routes = flatten(categorizedRoutes.map(a => a.content)); -export function activeRouteData (pathname) { - return find(routes, o => o.path === pathname) +export function activeRouteData(pathname) { + return find(routes, o => o.path === pathname); } diff --git a/workers/css-to-js.js b/workers/css-to-js.js index 9698bdf..3cefc5c 100644 --- a/workers/css-to-js.js +++ b/workers/css-to-js.js @@ -1,10 +1,10 @@ -import registerPromiseWorker from 'promise-worker/register' -import cssToJS from 'transform-css-to-js' +import registerPromiseWorker from "promise-worker/register"; +import cssToJS from "transform-css-to-js"; registerPromiseWorker( message => new Promise(resolve => { - const { isRn, code } = message - resolve(`const styles = ${cssToJS(code, isRn)}`) + const { isRn, code } = message; + resolve(`const styles = ${cssToJS(code, isRn)}`); }) -) +); diff --git a/workers/graphql-to-flow-ts.js b/workers/graphql-to-flow-ts.js index 75628b2..32b3fa3 100644 --- a/workers/graphql-to-flow-ts.js +++ b/workers/graphql-to-flow-ts.js @@ -1,10 +1,10 @@ -import transform from 'transform-graphql-type-annotations' -import registerPromiseWorker from 'promise-worker/register' +import transform from "transform-graphql-type-annotations"; +import registerPromiseWorker from "promise-worker/register"; registerPromiseWorker( message => new Promise(resolve => { - const { query, schema, convertTo } = message - resolve(transform(schema, query, convertTo)) + const { query, schema, convertTo } = message; + resolve(transform(schema, query, convertTo)); }) -) +); diff --git a/workers/json-schema-to-rust-serde.js b/workers/json-schema-to-rust-serde.js index ac92b1b..d423792 100644 --- a/workers/json-schema-to-rust-serde.js +++ b/workers/json-schema-to-rust-serde.js @@ -1,10 +1,10 @@ -import registerPromiseWorker from 'promise-worker/register' -import transform from 'transform-json-types' -import jsf from 'json-schema-faker' +import registerPromiseWorker from "promise-worker/register"; +import transform from "transform-json-types"; +import jsf from "json-schema-faker"; jsf.option({ alwaysFakeOptionals: true -}) +}); registerPromiseWorker( code => @@ -12,9 +12,9 @@ registerPromiseWorker( jsf.resolve(JSON.parse(code)).then(_json => { resolve( transform(_json, { - lang: 'rust-serde' + lang: "rust-serde" }) - ) - }) + ); + }); }) -) +); diff --git a/workers/json-to-proptypes.js b/workers/json-to-proptypes.js index d738d42..d595b86 100644 --- a/workers/json-to-proptypes.js +++ b/workers/json-to-proptypes.js @@ -1,19 +1,19 @@ -import { transform } from 'babel-standalone' -import jsonToProptypes from 'babel-plugin-json-to-proptypes' -import immutablePropsPlugin from '../utils/babel-plugin-js-to-immutable-prop-types' -import registerPromiseWorker from 'promise-worker/register' +import { transform } from "babel-standalone"; +import jsonToProptypes from "babel-plugin-json-to-proptypes"; +import immutablePropsPlugin from "../utils/babel-plugin-js-to-immutable-prop-types"; +import registerPromiseWorker from "promise-worker/register"; registerPromiseWorker( message => new Promise(resolve => { - const { isImmutable, code } = message - const plugin = isImmutable ? immutablePropsPlugin : jsonToProptypes + const { isImmutable, code } = message; + const plugin = isImmutable ? immutablePropsPlugin : jsonToProptypes; const newCode = transform(code, { plugins: [plugin] - }).code + }).code; resolve(`import PropTypes from "prop-types"; - ${newCode}`) + ${newCode}`); }) -) +); diff --git a/workers/prettier.js b/workers/prettier.js index c72d8eb..ed3b9c8 100644 --- a/workers/prettier.js +++ b/workers/prettier.js @@ -1,46 +1,46 @@ -import registerPromiseWorker from 'promise-worker/register' +import registerPromiseWorker from "promise-worker/register"; try { - importScripts('https://bundle.run/prettier@1.6.1') + importScripts("https://bundle.run/prettier@1.6.1"); } catch (e) { - self.postMessage({ available: false }) + self.postMessage({ available: false }); } const prettierParsers = { - css: 'postcss', - javascript: 'babylon', - jsx: 'babylon', - graphql: 'graphql', - json: 'json', - typescript: 'typescript', - flow: 'flow' -} + css: "postcss", + javascript: "babylon", + jsx: "babylon", + graphql: "graphql", + json: "json", + typescript: "typescript", + flow: "flow" +}; if (self.prettier) { - postMessage({ available: true }) + postMessage({ available: true }); } -function getPrettyCode (data) { - const { code, mode, section } = data +function getPrettyCode(data) { + const { code, mode, section } = data; const prettyCode = self.prettier && prettierParsers[mode] && code ? self.prettier.format(code, { - parser: prettierParsers[mode], - printWidth: 70 - }) - : code + parser: prettierParsers[mode], + printWidth: 70 + }) + : code; - return { available: !!self.prettier, prettyCode, section } + return { available: !!self.prettier, prettyCode, section }; } registerPromiseWorker( message => new Promise(resolve => { - resolve(getPrettyCode(message)) + resolve(getPrettyCode(message)); }) -) +); -onmessage = function ({ data }) { - postMessage(getPrettyCode(data)) -} +onmessage = function({ data }) { + postMessage(getPrettyCode(data)); +}; diff --git a/yarn.lock b/yarn.lock index de02cfd..65da53c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -45,10 +45,6 @@ lodash "^4.17.4" pify "^3.0.0" -"@sheerun/eslint-config-standard@^10.2.1": - version "10.2.1" - resolved "https://registry.yarnpkg.com/@sheerun/eslint-config-standard/-/eslint-config-standard-10.2.1.tgz#7d73397369c396b3625cab6ec313f6d4208300ef" - "@tsuyoshiwada/htmltojsx@^0.0.4": version "0.0.4" resolved "https://registry.yarnpkg.com/@tsuyoshiwada/htmltojsx/-/htmltojsx-0.0.4.tgz#73e86b580183ba680f53bc53e84f19d3378f8857" @@ -91,16 +87,6 @@ acorn-dynamic-import@^2.0.0: dependencies: acorn "^4.0.3" -acorn-jsx@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-3.0.1.tgz#afdf9488fb1ecefc8348f6fb22f464e32a58b36b" - dependencies: - acorn "^3.0.4" - -acorn@^3.0.4: - version "3.3.0" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a" - acorn@^4.0.3: version "4.0.13" resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.13.tgz#105495ae5361d697bd195c825192e1ad7f253787" @@ -124,10 +110,6 @@ ajv-keywords@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-2.1.0.tgz#a296e17f7bfae7c1ce4f7e0de53d29cb32162df0" -ajv-keywords@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-2.1.1.tgz#617997fc5f60576894c435f940d819e135b80762" - ajv@^4.9.1: version "4.11.8" resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" @@ -135,7 +117,7 @@ ajv@^4.9.1: co "^4.6.0" json-stable-stringify "^1.0.1" -ajv@^5.0.0, ajv@^5.1.0, ajv@^5.2.0, ajv@^5.2.3: +ajv@^5.0.0: version "5.3.0" resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.3.0.tgz#4414ff74a50879c208ee5fdc826e32c303549eda" dependencies: @@ -144,6 +126,15 @@ ajv@^5.0.0, ajv@^5.1.0, ajv@^5.2.0, ajv@^5.2.3: fast-json-stable-stringify "^2.0.0" json-schema-traverse "^0.3.0" +ajv@^5.1.0: + version "5.4.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.4.0.tgz#32d1cf08dbc80c432f426f12e10b2511f6b46474" + dependencies: + co "^4.6.0" + fast-deep-equal "^1.0.0" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.3.0" + ajv@^5.1.5: version "5.2.2" resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.2.2.tgz#47c68d69e86f5d953103b0074a9430dc63da5e39" @@ -173,16 +164,16 @@ all-contributors-cli@^4.4.0: yargs "^4.7.0" all-contributors-cli@^4.5.0: - version "4.8.0" - resolved "https://registry.yarnpkg.com/all-contributors-cli/-/all-contributors-cli-4.8.0.tgz#6de1980abe9746ef3e8e2c8d77bf2e2ea198c3f9" + version "4.9.1" + resolved "https://registry.yarnpkg.com/all-contributors-cli/-/all-contributors-cli-4.9.1.tgz#8120b652bcbaca37e125386c775895e0dcaa5cd3" dependencies: async "^2.0.0-rc.1" chalk "^2.3.0" - inquirer "^3.0.1" + inquirer "^4.0.0" lodash "^4.11.2" - pify "^2.3.0" + pify "^3.0.0" request "^2.72.0" - yargs "^4.7.0" + yargs "^10.0.3" alphanum-sort@^1.0.1, alphanum-sort@^1.0.2: version "1.0.2" @@ -222,7 +213,7 @@ ansi-styles@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" -ansi-styles@^3.0.0, ansi-styles@^3.1.0, ansi-styles@^3.2.0: +ansi-styles@^3.1.0, ansi-styles@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.0.tgz#c159b8d5be0f9e5a6f346dab94f16ce022161b88" dependencies: @@ -406,14 +397,6 @@ axios@^0.16.2: follow-redirects "^1.2.3" is-buffer "^1.1.5" -babel-code-frame@7.0.0-beta.0: - version "7.0.0-beta.0" - resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-7.0.0-beta.0.tgz#418a7b5f3f7dc9a4670e61b1158b4c5661bec98d" - dependencies: - chalk "^2.0.0" - esutils "^2.0.2" - js-tokens "^3.0.0" - babel-code-frame@^6.11.0, babel-code-frame@^6.20.0, babel-code-frame@^6.22.0, babel-code-frame@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" @@ -470,15 +453,6 @@ babel-core@^6.24.1: slash "^1.0.0" source-map "^0.5.0" -babel-eslint@>=7.2.3: - version "8.0.1" - resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-8.0.1.tgz#5d718be7a328625d006022eb293ed3008cbd6346" - dependencies: - babel-code-frame "7.0.0-beta.0" - babel-traverse "7.0.0-beta.0" - babel-types "7.0.0-beta.0" - babylon "7.0.0-beta.22" - babel-generator@6.26.0, babel-generator@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.0.tgz#ac1ae20070b79f6e3ca1d3269613053774f20dc5" @@ -555,15 +529,6 @@ babel-helper-flip-expressions@^0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/babel-helper-flip-expressions/-/babel-helper-flip-expressions-0.1.2.tgz#77f6652f9de9c42401d827bd46ebd2109e3ef18a" -babel-helper-function-name@7.0.0-beta.0: - version "7.0.0-beta.0" - resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-7.0.0-beta.0.tgz#d1b6779b647e5c5c31ebeb05e13b998e4d352d56" - dependencies: - babel-helper-get-function-arity "7.0.0-beta.0" - babel-template "7.0.0-beta.0" - babel-traverse "7.0.0-beta.0" - babel-types "7.0.0-beta.0" - babel-helper-function-name@^6.24.1: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" @@ -574,12 +539,6 @@ babel-helper-function-name@^6.24.1: babel-traverse "^6.24.1" babel-types "^6.24.1" -babel-helper-get-function-arity@7.0.0-beta.0: - version "7.0.0-beta.0" - resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-7.0.0-beta.0.tgz#9d1ab7213bb5efe1ef1638a8ea1489969b5a8b6e" - dependencies: - babel-types "7.0.0-beta.0" - babel-helper-get-function-arity@^6.24.1: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d" @@ -665,10 +624,6 @@ babel-loader@7.1.2: loader-utils "^1.0.2" mkdirp "^0.5.1" -babel-messages@7.0.0-beta.0: - version "7.0.0-beta.0" - resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-7.0.0-beta.0.tgz#6df01296e49fc8fbd0637394326a167f36da817b" - babel-messages@^6.23.0, babel-messages@^6.8.0: version "6.23.0" resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" @@ -1210,7 +1165,7 @@ babel-register@^6.24.1, babel-register@^6.26.0: mkdirp "^0.5.1" source-map-support "^0.4.15" -babel-runtime@6.26.0, babel-runtime@^6.18.0, babel-runtime@^6.20.0, babel-runtime@^6.23.0, babel-runtime@^6.26.0: +babel-runtime@6.26.0, babel-runtime@^6.18.0, babel-runtime@^6.20.0, babel-runtime@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" dependencies: @@ -1238,15 +1193,6 @@ babel-template@6.26.0, babel-template@^6.26.0: babylon "^6.18.0" lodash "^4.17.4" -babel-template@7.0.0-beta.0: - version "7.0.0-beta.0" - resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-7.0.0-beta.0.tgz#85083cf9e4395d5e48bf5154d7a8d6991cafecfb" - dependencies: - babel-traverse "7.0.0-beta.0" - babel-types "7.0.0-beta.0" - babylon "7.0.0-beta.22" - lodash "^4.2.0" - babel-template@^6.24.1, babel-template@^6.25.0, babel-template@^6.7.0: version "6.25.0" resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.25.0.tgz#665241166b7c2aa4c619d71e192969552b10c071" @@ -1271,20 +1217,6 @@ babel-traverse@6.21.0: invariant "^2.2.0" lodash "^4.2.0" -babel-traverse@7.0.0-beta.0: - version "7.0.0-beta.0" - resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-7.0.0-beta.0.tgz#da14be9b762f62a2f060db464eaafdd8cd072a41" - dependencies: - babel-code-frame "7.0.0-beta.0" - babel-helper-function-name "7.0.0-beta.0" - babel-messages "7.0.0-beta.0" - babel-types "7.0.0-beta.0" - babylon "7.0.0-beta.22" - debug "^3.0.1" - globals "^10.0.0" - invariant "^2.2.0" - lodash "^4.2.0" - babel-traverse@^6.24.1, babel-traverse@^6.25.0, babel-traverse@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" @@ -1308,14 +1240,6 @@ babel-types@6.23.0: lodash "^4.2.0" to-fast-properties "^1.0.1" -babel-types@7.0.0-beta.0: - version "7.0.0-beta.0" - resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-7.0.0-beta.0.tgz#eb8b6e556470e6dcc4aef982d79ad229469b5169" - dependencies: - esutils "^2.0.2" - lodash "^4.2.0" - to-fast-properties "^2.0.0" - babel-types@^6.19.0, babel-types@^6.21.0, babel-types@^6.24.1, babel-types@^6.25.0, babel-types@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" @@ -1337,10 +1261,6 @@ babylon@6.14.1: version "6.14.1" resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.14.1.tgz#956275fab72753ad9b3435d7afe58f8bf0a29815" -babylon@7.0.0-beta.22: - version "7.0.0-beta.22" - resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.22.tgz#74f0ad82ed7c7c3cfeab74cf684f815104161b65" - babylon@^6.11.0, babylon@^6.17.2, babylon@^6.18.0: version "6.18.0" resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" @@ -1574,16 +1494,6 @@ call-me-maybe@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/call-me-maybe/-/call-me-maybe-1.0.1.tgz#26d208ea89e37b5cbde60250a15f031c16a4d66b" -caller-path@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-0.1.0.tgz#94085ef63581ecd3daa92444a8fe94e82577751f" - dependencies: - callsites "^0.2.0" - -callsites@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/callsites/-/callsites-0.2.0.tgz#afab96262910a7f33c19a5775825c69f34e350ca" - camel-case@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/camel-case/-/camel-case-3.0.0.tgz#ca3c3688a4e9cf3a4cda777dc4dcbc713249cf73" @@ -1695,6 +1605,10 @@ change-case@^3.0.1: upper-case "^1.1.1" upper-case-first "^1.1.0" +chardet@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.4.0.tgz#0bbe1355ac44d7a3ed4a925707c4ef70f8190f6c" + "charenc@>= 0.0.1": version "0.0.2" resolved "https://registry.yarnpkg.com/charenc/-/charenc-0.0.2.tgz#c0a1d2f3a7092e03774bfa83f14c0fc5790a8667" @@ -1725,10 +1639,6 @@ cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: inherits "^2.0.1" safe-buffer "^5.0.1" -circular-json@^0.3.1: - version "0.3.3" - resolved "https://registry.yarnpkg.com/circular-json/-/circular-json-0.3.3.tgz#815c99ea84f6809529d2f45791bdf82711352d66" - clap@^1.0.9: version "1.2.3" resolved "https://registry.yarnpkg.com/clap/-/clap-1.2.3.tgz#4f36745b32008492557f46412d66d50cb99bce51" @@ -1832,8 +1742,8 @@ codemirror-graphql@^0.6.11: graphql-language-service-parser "0.0.15" codemirror@^5.30.0: - version "5.31.0" - resolved "https://registry.yarnpkg.com/codemirror/-/codemirror-5.31.0.tgz#ecf3d057eb74174147066bfc7c5f37b4c4e07df2" + version "5.32.0" + resolved "https://registry.yarnpkg.com/codemirror/-/codemirror-5.32.0.tgz#cb6ff5d8ef36d0b10f031130e2d9ebeee92c902e" color-convert@^1.3.0: version "1.9.0" @@ -1889,15 +1799,13 @@ commander@2.9.0: dependencies: graceful-readlink ">= 1.0.0" -commander@^2.11.0, commander@^2.7.1, commander@^2.9.0, commander@~2.11.0: +commander@^2.11.0, commander@^2.7.1, commander@~2.11.0: version "2.11.0" resolved "https://registry.yarnpkg.com/commander/-/commander-2.11.0.tgz#157152fd1e7a6c8d98a5b715cf376df928004563" -common-tags@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/common-tags/-/common-tags-1.4.0.tgz#1187be4f3d4cf0c0427d43f74eef1f73501614c0" - dependencies: - babel-runtime "^6.18.0" +commander@^2.9.0: + version "2.12.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.12.1.tgz#468635c4168d06145b9323356d1da84d14ac4a7a" commondir@^1.0.1: version "1.0.1" @@ -1924,7 +1832,7 @@ concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" -concat-stream@^1.5.2, concat-stream@^1.6.0: +concat-stream@^1.5.2: version "1.6.0" resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.0.tgz#0aac662fd52be78964d5532f694784e70110acf7" dependencies: @@ -2119,7 +2027,7 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: safe-buffer "^5.0.1" sha.js "^2.4.8" -cross-spawn@5.1.0, cross-spawn@^5.0.1, cross-spawn@^5.1.0: +cross-spawn@5.1.0, cross-spawn@^5.0.1: version "5.1.0" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" dependencies: @@ -2332,7 +2240,7 @@ debug@^2.1.1, debug@^2.2.0: dependencies: ms "2.0.0" -debug@^3.0.0, debug@^3.0.1: +debug@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" dependencies: @@ -2346,10 +2254,6 @@ deep-extend@^0.4.0, deep-extend@~0.4.0: version "0.4.2" resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.2.tgz#48b699c27e334bf89f10892be432f6e4c7d34a7f" -deep-is@~0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" - define-properties@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.2.tgz#83a73f2fea569898fb737193c8f873caf6d45c94" @@ -2372,7 +2276,7 @@ del@3.0.0: pify "^3.0.0" rimraf "^2.2.8" -del@^2.0.2, del@^2.2.0, del@^2.2.2: +del@^2.2.0, del@^2.2.2: version "2.2.2" resolved "https://registry.yarnpkg.com/del/-/del-2.2.2.tgz#c12c981d067846c84bcaf862cff930d907ffd1a8" dependencies: @@ -2438,17 +2342,6 @@ discontinuous-range@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/discontinuous-range/-/discontinuous-range-1.0.0.tgz#e38331f0844bba49b9a9cb71c771585aab1bc65a" -dlv@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/dlv/-/dlv-1.1.0.tgz#fee1a7c43f63be75f3f679e85262da5f102764a7" - -doctrine@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.0.0.tgz#c73d8d2909d22291e1a007a395804da8b665fe63" - dependencies: - esutils "^2.0.2" - isarray "^1.0.0" - dom-serializer@0: version "0.1.0" resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.1.0.tgz#073c697546ce0780ce23be4a28e293e40bc30c82" @@ -2691,62 +2584,6 @@ escope@^3.6.0: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint-scope@^3.7.1: - version "3.7.1" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.1.tgz#3d63c3edfda02e06e01a452ad88caacc7cdcb6e8" - dependencies: - esrecurse "^4.1.0" - estraverse "^4.1.1" - -eslint@^4.5.0, eslint@^4.7.2: - version "4.10.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.10.0.tgz#f25d0d7955c81968c2309aa5c9a229e045176bb7" - dependencies: - ajv "^5.2.0" - babel-code-frame "^6.22.0" - chalk "^2.1.0" - concat-stream "^1.6.0" - cross-spawn "^5.1.0" - debug "^3.0.1" - doctrine "^2.0.0" - eslint-scope "^3.7.1" - espree "^3.5.1" - esquery "^1.0.0" - estraverse "^4.2.0" - esutils "^2.0.2" - file-entry-cache "^2.0.0" - functional-red-black-tree "^1.0.1" - glob "^7.1.2" - globals "^9.17.0" - ignore "^3.3.3" - imurmurhash "^0.1.4" - inquirer "^3.0.6" - is-resolvable "^1.0.0" - js-yaml "^3.9.1" - json-stable-stringify "^1.0.1" - levn "^0.3.0" - lodash "^4.17.4" - minimatch "^3.0.2" - mkdirp "^0.5.1" - natural-compare "^1.4.0" - optionator "^0.8.2" - path-is-inside "^1.0.2" - pluralize "^7.0.0" - progress "^2.0.0" - require-uncached "^1.0.3" - semver "^5.3.0" - strip-ansi "^4.0.0" - strip-json-comments "~2.0.1" - table "^4.0.1" - text-table "~0.2.0" - -espree@^3.5.1: - version "3.5.1" - resolved "https://registry.yarnpkg.com/espree/-/espree-3.5.1.tgz#0c988b8ab46db53100a1954ae4ba995ddd27d87e" - dependencies: - acorn "^5.1.1" - acorn-jsx "^3.0.0" - esprima@^2.6.0: version "2.7.3" resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" @@ -2755,12 +2592,6 @@ esprima@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.0.tgz#4499eddcd1110e0b218bacf2fa7f7f59f55ca804" -esquery@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.0.0.tgz#cfba8b57d7fba93f17298a8a006a04cda13d80fa" - dependencies: - estraverse "^4.0.0" - esrecurse@^4.1.0: version "4.2.0" resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.0.tgz#fa9568d98d3823f9a41d91e902dcab9ea6e5b163" @@ -2768,7 +2599,7 @@ esrecurse@^4.1.0: estraverse "^4.1.0" object-assign "^4.0.1" -estraverse@^4.0.0, estraverse@^4.1.0, estraverse@^4.1.1, estraverse@^4.2.0: +estraverse@^4.1.0, estraverse@^4.1.1: version "4.2.0" resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" @@ -2878,11 +2709,11 @@ extend@3, extend@~3.0.0, extend@~3.0.1: resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" external-editor@^2.0.4: - version "2.0.5" - resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-2.0.5.tgz#52c249a3981b9ba187c7cacf5beb50bf1d91a6bc" + version "2.1.0" + resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-2.1.0.tgz#3d026a21b7f95b5726387d4200ac160d372c3b48" dependencies: + chardet "^0.4.0" iconv-lite "^0.4.17" - jschardet "^1.4.2" tmp "^0.0.33" extglob@^0.3.1: @@ -2903,10 +2734,6 @@ fast-json-stable-stringify@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" -fast-levenshtein@~2.0.4: - version "2.0.6" - resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" - fastparse@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/fastparse/-/fastparse-1.1.1.tgz#d1e2643b38a94d7583b479060e6c4affc94071f8" @@ -2948,13 +2775,6 @@ figures@^2.0.0: dependencies: escape-string-regexp "^1.0.5" -file-entry-cache@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-2.0.0.tgz#c392990c3e684783d838b8c84a45d8a048458361" - dependencies: - flat-cache "^1.2.1" - object-assign "^4.0.1" - file-name@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/file-name/-/file-name-0.1.0.tgz#12b122f120f9c34dbc176c1ab81a548aced6def7" @@ -3025,15 +2845,6 @@ find-up@^2.0.0, find-up@^2.1.0: dependencies: locate-path "^2.0.0" -flat-cache@^1.2.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-1.3.0.tgz#d3030b32b38154f4e3b7e9c709f490f7ef97c481" - dependencies: - circular-json "^0.3.1" - del "^2.0.2" - graceful-fs "^4.1.2" - write "^0.2.1" - flatten@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782" @@ -3157,10 +2968,6 @@ function-bind@^1.0.2, function-bind@^1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" -functional-red-black-tree@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" - fuzzysearch@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/fuzzysearch/-/fuzzysearch-1.0.3.tgz#dffc80f6d6b04223f2226aa79dd194231096d008" @@ -3189,8 +2996,8 @@ generate-object-property@^1.1.0: is-property "^1.0.0" generate-schema@^2.5.1: - version "2.5.1" - resolved "https://registry.yarnpkg.com/generate-schema/-/generate-schema-2.5.1.tgz#73c8ddd07dfeb47e0becd43c4e93a93b2d67f18a" + version "2.6.0" + resolved "https://registry.yarnpkg.com/generate-schema/-/generate-schema-2.6.0.tgz#9ac037550fd4243783a9f7681d39bee8870bcec2" dependencies: commander "^2.9.0" type-of-is "^3.4.0" @@ -3217,10 +3024,6 @@ get-stdin@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe" -get-stdin@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-5.0.1.tgz#122e161591e21ff4c52530305693f20e6393a398" - get-stream@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" @@ -3329,17 +3132,6 @@ glob@^6.0.1: once "^1.3.0" path-is-absolute "^1.0.0" -glob@~7.0.6: - version "7.0.6" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.0.6.tgz#211bafaf49e525b8cd93260d14ab136152b3f57a" - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.2" - once "^1.3.0" - path-is-absolute "^1.0.0" - global@^4.3.0: version "4.3.2" resolved "https://registry.yarnpkg.com/global/-/global-4.3.2.tgz#e76989268a6c74c38908b1305b10fc0e394e9d0f" @@ -3347,11 +3139,7 @@ global@^4.3.0: min-document "^2.19.0" process "~0.5.1" -globals@^10.0.0: - version "10.2.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-10.2.0.tgz#69490789091fcaa7f7d512c668c8eb73894a4ef2" - -globals@^9.0.0, globals@^9.17.0, globals@^9.18.0: +globals@^9.0.0, globals@^9.18.0: version "9.18.0" resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" @@ -3702,10 +3490,6 @@ ieee754@^1.1.4: version "1.1.8" resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.8.tgz#be33d40ac10ef1926701f6f08a2d86fbfd1ad3e4" -ignore@^3.3.3: - version "3.3.7" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.7.tgz#612289bfb3c220e186a58118618d5be8c1bab021" - immediate@~3.0.5: version "3.0.6" resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b" @@ -3726,7 +3510,7 @@ indent-string@^2.1.0: dependencies: repeating "^2.0.0" -indent-string@^3.0.0, indent-string@^3.1.0, indent-string@^3.2.0: +indent-string@^3.0.0: version "3.2.0" resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-3.2.0.tgz#4a5fd6d27cc332f37e5419a504dbb837105c9289" @@ -3761,7 +3545,7 @@ ini@^1.2.0, ini@^1.3.2, ini@^1.3.4, ini@~1.3.0: version "1.3.4" resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.4.tgz#0537cb79daf59b59a1a517dff706c86ec039162e" -inquirer@^3.0.1, inquirer@^3.0.6: +inquirer@^3.0.1: version "3.3.0" resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-3.3.0.tgz#9dd2f2ad765dcab1ff0443b491442a20ba227dc9" dependencies: @@ -3780,6 +3564,25 @@ inquirer@^3.0.1, inquirer@^3.0.6: strip-ansi "^4.0.0" through "^2.3.6" +inquirer@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-4.0.0.tgz#56c6354ae4e6201917027249bbd7667fca2cc031" + dependencies: + ansi-escapes "^3.0.0" + chalk "^2.0.0" + cli-cursor "^2.1.0" + cli-width "^2.0.0" + external-editor "^2.0.4" + figures "^2.0.0" + lodash "^4.3.0" + mute-stream "0.0.7" + run-async "^2.2.0" + rx-lite "^4.0.8" + rx-lite-aggregates "^4.0.8" + string-width "^2.1.0" + strip-ansi "^4.0.0" + through "^2.3.6" + interpret@^1.0.0: version "1.0.3" resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.3.tgz#cbc35c62eeee73f19ab7b10a801511401afc0f90" @@ -3965,12 +3768,6 @@ is-regexp@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069" -is-resolvable@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.0.0.tgz#8df57c61ea2e3c501408d100fb013cf8d6e0cc62" - dependencies: - tryit "^1.0.1" - is-retry-allowed@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz#11a060568b67339444033d0125a61a20d564fb34" @@ -4090,10 +3887,6 @@ jsbn@~0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" -jschardet@^1.4.2: - version "1.6.0" - resolved "https://registry.yarnpkg.com/jschardet/-/jschardet-1.6.0.tgz#c7d1a71edcff2839db2f9ec30fc5d5ebd3c1a678" - jsdom-no-contextify@~3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/jsdom-no-contextify/-/jsdom-no-contextify-3.1.0.tgz#0d8beaf610c2ff23894f54dfa7f89dd22fd0f7ab" @@ -4249,13 +4042,6 @@ leven@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580" -levn@^0.3.0, levn@~0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" - dependencies: - prelude-ls "~1.1.2" - type-check "~0.3.2" - lie@^3.0.2: version "3.1.1" resolved "https://registry.yarnpkg.com/lie/-/lie-3.1.1.tgz#9a436b2cc7746ca59de7a41fa469b3efb76bd87e" @@ -4454,10 +4240,6 @@ lodash.memoize@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" -lodash.merge@^4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.0.tgz#69884ba144ac33fe699737a6086deffadd0f89c5" - lodash.restparam@^3.0.0: version "3.6.1" resolved "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805" @@ -4479,10 +4261,6 @@ lodash.templatesettings@^4.0.0: dependencies: lodash._reinterpolate "~3.0.0" -lodash.unescape@4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/lodash.unescape/-/lodash.unescape-4.0.1.tgz#bf2249886ce514cda112fae9218cdc065211fc9c" - lodash.uniq@^4.5.0: version "4.5.0" resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" @@ -4514,17 +4292,6 @@ log-update@^1.0.2: ansi-escapes "^1.0.0" cli-cursor "^1.0.2" -loglevel-colored-level-prefix@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/loglevel-colored-level-prefix/-/loglevel-colored-level-prefix-1.0.0.tgz#6a40218fdc7ae15fc76c3d0f3e676c465388603e" - dependencies: - chalk "^1.1.3" - loglevel "^1.4.1" - -loglevel@^1.4.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/loglevel/-/loglevel-1.5.1.tgz#189078c94ab9053ee215a0acdbf24244ea0f6502" - longest@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" @@ -4585,12 +4352,6 @@ make-dir@^1.0.0: dependencies: pify "^2.3.0" -make-plural@~3.0.6: - version "3.0.6" - resolved "https://registry.yarnpkg.com/make-plural/-/make-plural-3.0.6.tgz#2033a03bac290b8f3bb91258f65b9df7e8b01ca7" - optionalDependencies: - minimist "^1.2.0" - map-obj@^1.0.0, map-obj@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" @@ -4651,7 +4412,7 @@ memory-fs@^0.4.0, memory-fs@~0.4.1: errno "^0.1.3" readable-stream "^2.0.1" -meow@3.7.0, meow@^3.3.0, meow@^3.7.0: +meow@^3.3.0, meow@^3.7.0: version "3.7.0" resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb" dependencies: @@ -4670,20 +4431,6 @@ merge-descriptors@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" -messageformat-parser@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/messageformat-parser/-/messageformat-parser-1.1.0.tgz#13ba2250a76bbde8e0fca0dbb3475f95c594a90a" - -messageformat@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/messageformat/-/messageformat-1.0.2.tgz#908f4691f29ff28dae35c45436a24cff93402388" - dependencies: - glob "~7.0.6" - make-plural "~3.0.6" - messageformat-parser "^1.0.0" - nopt "~3.0.6" - reserved-words "^0.1.1" - methods@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" @@ -4816,10 +4563,6 @@ nan@^2.3.0: version "2.7.0" resolved "https://registry.yarnpkg.com/nan/-/nan-2.7.0.tgz#d95bf721ec877e08db276ed3fc6eb78f9083ad46" -natural-compare@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" - ncp@~2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ncp/-/ncp-2.0.0.tgz#195a21d6c46e361d2fb1281ba38b91e9df7bdbb3" @@ -4983,7 +4726,7 @@ nopt@~1.0.10: dependencies: abbrev "1" -nopt@~3.0.1, nopt@~3.0.6: +nopt@~3.0.1: version "3.0.6" resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9" dependencies: @@ -5178,17 +4921,6 @@ optimist@^0.6.1: minimist "~0.0.1" wordwrap "~0.0.2" -optionator@^0.8.2: - version "0.8.2" - resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" - dependencies: - deep-is "~0.1.3" - fast-levenshtein "~2.0.4" - levn "~0.3.0" - prelude-ls "~1.1.2" - type-check "~0.3.2" - wordwrap "~1.0.0" - ora@^0.2.3: version "0.2.3" resolved "https://registry.yarnpkg.com/ora/-/ora-0.2.3.tgz#37527d220adcd53c39b73571d754156d5db657a4" @@ -5342,7 +5074,7 @@ path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" -path-is-inside@^1.0.1, path-is-inside@^1.0.2: +path-is-inside@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" @@ -5449,10 +5181,6 @@ pkg-up@2.0.0: dependencies: find-up "^2.1.0" -pluralize@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-7.0.0.tgz#298b89df8b93b0221dbf421ad2b1b1ea23fc6777" - postcss-calc@^5.2.0: version "5.3.1" resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-5.3.1.tgz#77bae7ca928ad85716e2fda42f261bf7c1d65b5e" @@ -5715,10 +5443,6 @@ postcss@^6.0.1: source-map "^0.5.7" supports-color "^4.4.0" -prelude-ls@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" - prepend-http@^1.0.0, prepend-http@^1.0.1: version "1.0.4" resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" @@ -5727,45 +5451,7 @@ preserve@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" -prettier-eslint@^8.1.1: - version "8.2.1" - resolved "https://registry.yarnpkg.com/prettier-eslint/-/prettier-eslint-8.2.1.tgz#cd66cf8b1a2c2fce2217f1b28474809031b9a77c" - dependencies: - common-tags "^1.4.0" - dlv "^1.1.0" - eslint "^4.5.0" - indent-string "^3.2.0" - lodash.merge "^4.6.0" - loglevel-colored-level-prefix "^1.0.0" - prettier "^1.7.1" - pretty-format "^20.0.3" - require-relative "^0.8.7" - typescript "^2.5.1" - typescript-eslint-parser "^8.0.0" - -prettier-standard@^7.0.3: - version "7.0.3" - resolved "https://registry.yarnpkg.com/prettier-standard/-/prettier-standard-7.0.3.tgz#c9ec97dc1d3270f9d567652ae9412166f91d8643" - dependencies: - "@sheerun/eslint-config-standard" "^10.2.1" - babel-eslint ">=7.2.3" - babel-runtime "^6.23.0" - chalk "^1.1.3" - eslint "^4.7.2" - find-up "^2.1.0" - get-stdin "^5.0.1" - glob "^7.1.2" - ignore "^3.3.3" - indent-string "^3.1.0" - lodash.memoize "^4.1.2" - loglevel-colored-level-prefix "^1.0.0" - meow "3.7.0" - messageformat "^1.0.2" - prettier "1.7.x" - prettier-eslint "^8.1.1" - rxjs "^5.4.0" - -prettier@1.7.4, prettier@1.7.x, prettier@^1.6.1, prettier@^1.7.1: +prettier@1.7.4, prettier@^1.6.1: version "1.7.4" resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.7.4.tgz#5e8624ae9363c80f95ec644584ecdf55d74f93fa" @@ -5777,13 +5463,6 @@ pretty-bytes@^4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-4.0.2.tgz#b2bf82e7350d65c6c33aa95aaa5a4f6327f61cd9" -pretty-format@^20.0.3: - version "20.0.3" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-20.0.3.tgz#020e350a560a1fe1a98dc3beb6ccffb386de8b14" - dependencies: - ansi-regex "^2.1.1" - ansi-styles "^3.0.0" - pretty-format@^21.2.1: version "21.2.1" resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-21.2.1.tgz#ae5407f3cf21066cd011aa1ba5fce7b6a2eddb36" @@ -5811,10 +5490,6 @@ process@~0.5.1: version "0.5.2" resolved "https://registry.yarnpkg.com/process/-/process-0.5.2.tgz#1638d8a8e34c2f440a91db95ab9aeb677fc185cf" -progress@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.0.tgz#8a1be366bf8fc23db2bd23f10c6fe920b4389d1f" - promise-worker@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/promise-worker/-/promise-worker-1.1.1.tgz#c2b75d045d249625c02264e2dff9ad22e031c69b" @@ -6374,21 +6049,6 @@ require-relative@^0.8.7: version "0.8.7" resolved "https://registry.yarnpkg.com/require-relative/-/require-relative-0.8.7.tgz#7999539fc9e047a37928fa196f8e1563dabd36de" -require-uncached@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/require-uncached/-/require-uncached-1.0.3.tgz#4e0d56d6c9662fd31e43011c4b95aa49955421d3" - dependencies: - caller-path "^0.1.0" - resolve-from "^1.0.0" - -reserved-words@^0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/reserved-words/-/reserved-words-0.1.2.tgz#00a0940f98cd501aeaaac316411d9adc52b31ab1" - -resolve-from@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-1.0.1.tgz#26cbfe935d1aeeeabb29bc3fe5aeb01e93d44226" - resolve-from@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" @@ -6482,7 +6142,7 @@ rx-lite@*, rx-lite@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-4.0.8.tgz#0b1e11af8bc44836f04a6407e92da42467b79444" -rxjs@^5.0.0-beta.11, rxjs@^5.4.0: +rxjs@^5.0.0-beta.11: version "5.5.2" resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.5.2.tgz#28d403f0071121967f18ad665563255d54236ac3" dependencies: @@ -6531,7 +6191,7 @@ semver-diff@^2.0.0: dependencies: semver "^5.0.3" -"semver@2 >=2.2.1 || 3.x || 4 || 5", "semver@2 || 3 || 4 || 5", semver@5.4.1, semver@^5.0.1, semver@^5.0.3, semver@^5.1.0, semver@^5.2.0, semver@^5.3.0, semver@^5.4.1: +"semver@2 >=2.2.1 || 3.x || 4 || 5", "semver@2 || 3 || 4 || 5", semver@^5.0.1, semver@^5.0.3, semver@^5.1.0, semver@^5.2.0, semver@^5.3.0, semver@^5.4.1: version "5.4.1" resolved "https://registry.yarnpkg.com/semver/-/semver-5.4.1.tgz#e059c09d8571f0540823733433505d3a2f00b18e" @@ -6658,12 +6318,6 @@ slice-ansi@0.0.4: version "0.0.4" resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-0.0.4.tgz#edbf8903f66f7ce2f8eafd6ceed65e264c831b35" -slice-ansi@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-1.0.0.tgz#044f1a49d8842ff307aad6b505ed178bd950134d" - dependencies: - is-fullwidth-code-point "^2.0.0" - slide@^1.1.3, slide@^1.1.5: version "1.1.6" resolved "https://registry.yarnpkg.com/slide/-/slide-1.1.6.tgz#56eb027d65b4d2dce6cb2e2d32c4d4afc9e1d707" @@ -6853,7 +6507,7 @@ string-width@^1.0.1, string-width@^1.0.2: is-fullwidth-code-point "^1.0.0" strip-ansi "^3.0.0" -string-width@^2.0.0, string-width@^2.1.0, string-width@^2.1.1: +string-width@^2.0.0, string-width@^2.1.0: version "2.1.1" resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" dependencies: @@ -7027,17 +6681,6 @@ symbol@^0.2.1: version "0.2.3" resolved "https://registry.yarnpkg.com/symbol/-/symbol-0.2.3.tgz#3b9873b8a901e47c6efe21526a3ac372ef28bbc7" -table@^4.0.1: - version "4.0.2" - resolved "https://registry.yarnpkg.com/table/-/table-4.0.2.tgz#a33447375391e766ad34d3486e6e2aedc84d2e36" - dependencies: - ajv "^5.2.3" - ajv-keywords "^2.1.0" - chalk "^2.1.0" - lodash "^4.17.4" - slice-ansi "1.0.0" - string-width "^2.1.1" - tapable@^0.2.7: version "0.2.8" resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.2.8.tgz#99372a5c999bf2df160afc0d74bed4f47948cd22" @@ -7067,10 +6710,6 @@ text-extensions@^1.0.0: version "1.6.0" resolved "https://registry.yarnpkg.com/text-extensions/-/text-extensions-1.6.0.tgz#771561b26022783a45f5b6c2e78ad6e7de9fe322" -text-table@~0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" - thenify-all@^1.0.0: version "1.6.0" resolved "https://registry.yarnpkg.com/thenify-all/-/thenify-all-1.6.0.tgz#1a1918d402d8fc3f98fbf234db0bcc8cc10e9726" @@ -7136,10 +6775,6 @@ to-fast-properties@^1.0.1, to-fast-properties@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" -to-fast-properties@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" - touch@3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/touch/-/touch-3.1.0.tgz#fe365f5f75ec9ed4e56825e0bb76d24ab74af83b" @@ -7225,10 +6860,6 @@ trim-right@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" -tryit@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/tryit/-/tryit-1.0.3.tgz#393be730a9446fd1ead6da59a014308f36c289cb" - tslib@^1.7.1: version "1.8.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.8.0.tgz#dc604ebad64bcbf696d613da6c954aa0e7ea1eb6" @@ -7251,12 +6882,6 @@ tweetnacl@^0.14.3, tweetnacl@~0.14.0: version "0.14.5" resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" -type-check@~0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" - dependencies: - prelude-ls "~1.1.2" - type-is@~1.6.15: version "1.6.15" resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.15.tgz#cab10fb4909e441c82842eafe1ad646c81804410" @@ -7272,17 +6897,6 @@ typedarray@^0.0.6: version "0.0.6" resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" -typescript-eslint-parser@^8.0.0: - version "8.0.1" - resolved "https://registry.yarnpkg.com/typescript-eslint-parser/-/typescript-eslint-parser-8.0.1.tgz#e8cac537d996e16c3dbb0d7c4d509799e67afe0c" - dependencies: - lodash.unescape "4.0.1" - semver "5.4.1" - -typescript@^2.5.1: - version "2.5.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.5.3.tgz#df3dcdc38f3beb800d4bc322646b04a3f6ca7f0d" - ua-parser-js@^0.7.9: version "0.7.17" resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.17.tgz#e9ec5f9498b9ec910e7ae3ac626a805c4d09ecac" @@ -7601,10 +7215,6 @@ wordwrap@~0.0.2: version "0.0.3" resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" -wordwrap@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" - worker-loader@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/worker-loader/-/worker-loader-1.1.0.tgz#8cf21869a07add84d66f821d948d23c1eb98e809" @@ -7642,12 +7252,6 @@ write-file-webpack-plugin@4.2.0: mkdirp "^0.5.1" moment "^2.11.2" -write@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/write/-/write-0.2.1.tgz#5fc03828e264cea3fe91455476f7a3c566cb0757" - dependencies: - mkdirp "^0.5.1" - ws@^3.3.1: version "3.3.1" resolved "https://registry.yarnpkg.com/ws/-/ws-3.3.1.tgz#d97e34dee06a1190c61ac1e95f43cb60b78cf939" @@ -7663,8 +7267,8 @@ xdg-basedir@^2.0.0: os-homedir "^1.0.0" xml-js@^1.5.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/xml-js/-/xml-js-1.5.1.tgz#cae6cfbcaa9a25774ac1ddfcc62d9a06cc6be965" + version "1.5.2" + resolved "https://registry.yarnpkg.com/xml-js/-/xml-js-1.5.2.tgz#234780d012b49a19093dbd464228d06303fddc23" dependencies: sax "^1.2.4" @@ -7705,6 +7309,29 @@ yargs-parser@^7.0.0: dependencies: camelcase "^4.1.0" +yargs-parser@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-8.0.0.tgz#21d476330e5a82279a4b881345bf066102e219c6" + dependencies: + camelcase "^4.1.0" + +yargs@^10.0.3: + version "10.0.3" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-10.0.3.tgz#6542debd9080ad517ec5048fb454efe9e4d4aaae" + dependencies: + cliui "^3.2.0" + decamelize "^1.1.1" + find-up "^2.1.0" + get-caller-file "^1.0.1" + os-locale "^2.0.0" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^2.0.0" + which-module "^2.0.0" + y18n "^3.2.1" + yargs-parser "^8.0.0" + yargs@^4.7.0: version "4.8.1" resolved "https://registry.yarnpkg.com/yargs/-/yargs-4.8.1.tgz#c0c42924ca4aaa6b0e6da1739dfb216439f9ddc0"