├── .gitignore ├── .prettierignore ├── .prettierrc ├── LICENSE ├── README.md ├── dist ├── index.d.ts └── index.js ├── package-lock.json ├── package.json ├── src └── index.ts ├── test ├── data │ ├── fc-comp.tsx │ ├── forward-ref-multi.ts │ ├── forward-ref-multi.tsx │ ├── forward-ref.ts │ ├── forward-ref.tsx │ ├── func-comp-multi.ts │ ├── func-comp-multi.tsx │ ├── func-comp-nested-only-root.ts │ ├── func-comp-nested.ts │ ├── func-comp-nested.tsx │ ├── func-comp.ts │ ├── func-comp.tsx │ ├── pure-comp.ts │ ├── pure-comp.tsx │ ├── react-comp-existing.ts │ ├── react-comp-existing.tsx │ ├── react-comp-multiple.ts │ ├── react-comp-multiple.tsx │ ├── react-comp-nested-only-root.ts │ ├── react-comp-nested.ts │ ├── react-comp-nested.tsx │ ├── react-comp-no-prop-state.ts │ ├── react-comp-no-prop-state.tsx │ ├── react-comp-other-static.ts │ ├── react-comp-other-static.tsx │ ├── react-comp-unamed-default.ts │ ├── react-comp-unamed-default.tsx │ ├── react-comp.ts │ └── react-comp.tsx └── index-test.ts ├── tsconfig.json └── tslint.json /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Runtime data 9 | pids 10 | *.pid 11 | *.seed 12 | *.pid.lock 13 | 14 | # Directory for instrumented libs generated by jscoverage/JSCover 15 | lib-cov 16 | 17 | # Coverage directory used by tools like istanbul 18 | coverage 19 | 20 | # nyc test coverage 21 | .nyc_output 22 | 23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 24 | .grunt 25 | 26 | # Bower dependency directory (https://bower.io/) 27 | bower_components 28 | 29 | # node-waf configuration 30 | .lock-wscript 31 | 32 | # Compiled binary addons (https://nodejs.org/api/addons.html) 33 | build/Release 34 | 35 | # Dependency directories 36 | node_modules/ 37 | jspm_packages/ 38 | 39 | # TypeScript v1 declaration files 40 | typings/ 41 | 42 | # Optional npm cache directory 43 | .npm 44 | 45 | # Optional eslint cache 46 | .eslintcache 47 | 48 | # Optional REPL history 49 | .node_repl_history 50 | 51 | # Output of 'npm pack' 52 | *.tgz 53 | 54 | # Yarn Integrity file 55 | .yarn-integrity 56 | 57 | # dotenv environment variables file 58 | .env 59 | 60 | # next.js build output 61 | .next 62 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | test/data/*.ts 2 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "semi": false, 3 | "printWidth": 100, 4 | "singleQuote": true, 5 | "trailingComma": "es5" 6 | } 7 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Ludovic Cabre 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ts-react-display-name 2 | 3 | [![react version](https://img.shields.io/badge/React-16+-green.svg?style=flat-square)](https://github.com/facebook/react/) 4 | [![typescript version](https://img.shields.io/badge/TypeScript-3.6+-green.svg?style=flat-square)](https://www.typescriptlang.org/) 5 | 6 | Typescript transformer that adds displayName to React components. 7 | 8 | ## Setup 9 | 10 | ### Installation 11 | 12 | Install the library: 13 | 14 | ```bash 15 | npm install --save-dev ts-react-display-name 16 | ``` 17 | 18 | ### Webpack 19 | 20 | If you are using Webpack, import the tranformer: 21 | 22 | ```js 23 | const { addDisplayNameTransformer } = require('ts-react-display-name') 24 | ``` 25 | 26 | Then add it to ts-loader's options: 27 | 28 | ```js 29 | { 30 | test: /\.(tsx?)$/, 31 | loader: 'ts-loader', 32 | options: { 33 | getCustomTransformers: () => ({ 34 | before: [addDisplayNameTransformer()] 35 | }) 36 | } 37 | } 38 | ``` 39 | 40 | ### TTypeScript 41 | 42 | Add it to `plugins` in your `tsconfig.json` 43 | 44 | ```json 45 | { 46 | "compilerOptions": { 47 | "plugins": [ 48 | { 49 | "transform": "ts-react-display-name" 50 | } 51 | ] 52 | } 53 | } 54 | ``` 55 | 56 | ## Example 57 | 58 | Using this transformer, the following code: 59 | 60 | ```js 61 | // Function component 62 | const TestFuncComponent: React.FC<{}> = () =>

...

63 | 64 | // React component 65 | export class TestComponent extends React.Component<{}, {}> { 66 | render() { ... } 67 | } 68 | ``` 69 | 70 | Becomes: 71 | 72 | ```js 73 | // Function component 74 | const TestFuncComponent: React.FC<{}> = () =>

...

75 | TestFuncComponent.displayName = 'TestFuncComponent' 76 | 77 | // React component 78 | export class TestComponent extends React.Component<{}, {}> { 79 | static displayName = 'TestComponent' 80 | render() { ... } 81 | } 82 | 83 | // Factory component 84 | const TextFactoryComponent = React.forwardRef( 85 | (props, ref) =>

...

86 | ) 87 | TextFactoryComponent.displayName = 'TextFactoryComponent' 88 | ``` 89 | 90 | ## Advanced 91 | 92 | ### Options 93 | 94 | #### onlyFileRoot 95 | 96 | Looking for components everywhere in the typescript file can take time. This 97 | option reduces the scope of research to just the root of the file. Most of 98 | the time components are declared at the root so looking further isn't really 99 | worth it. 100 | 101 | - Default: false 102 | 103 | ```js 104 | addDisplayNameTransformer({ 105 | onlyFileRoot: true, 106 | }) 107 | ``` 108 | 109 | ```json 110 | { 111 | "transform": "ts-react-display-name", 112 | "onlyFileRoot": true 113 | } 114 | ``` 115 | 116 | #### funcTypes 117 | 118 | List of function types to add displayName to. Display names will only be added 119 | to functions _explicitly_ typed with one of those. 120 | 121 | If you import React as "R" then you will have to update this list to be 122 | ['R.FunctionComponent', 'R.FC']. This list needs to match exactly what is 123 | in the source code. 124 | 125 | - Default: ['React.FunctionComponent', 'React.FC'] 126 | 127 | ```js 128 | addDisplayNameTransformer({ 129 | funcTypes: ['React.FunctionComponent', 'React.FC'], 130 | }) 131 | ``` 132 | 133 | ```json 134 | { 135 | "transform": "ts-react-display-name", 136 | "funcTypes": ["React.FunctionComponent", "React.FC"] 137 | } 138 | ``` 139 | 140 | #### classTypes 141 | 142 | List of class types to add displayName to. Display names will only be added 143 | to classes _explicitly_ extending one of those. 144 | 145 | If you import React as "R" then you will have to update this list to be 146 | ['R.Component', 'R.PureComponent']. This list needs to match exactly what is 147 | in the source code. 148 | 149 | - Default: ['React.Component', 'React.PureComponent'] 150 | 151 | ```js 152 | addDisplayNameTransformer({ 153 | classTypes: ['React.Component', 'React.PureComponent'], 154 | }) 155 | ``` 156 | 157 | ```json 158 | { 159 | "transform": "ts-react-display-name", 160 | "classTypes": ["React.Component", "React.PureComponent"] 161 | } 162 | ``` 163 | 164 | #### factoryFuncs 165 | 166 | List of factory functions to add displayName to. Display names will only be added 167 | to variables _explicitly_ called with one of those. 168 | 169 | If you import React as "R" then you will have to update this list to be 170 | ['R.forwardRef', 'R.memo']. This list needs to match exactly what is 171 | in the source code. 172 | 173 | - Default: ['React.forwardRef', 'React.memo'] 174 | 175 | ```js 176 | addDisplayNameTransformer({ 177 | factoryFuncs: ['React.forwardRef', 'React.memo'], 178 | }) 179 | ``` 180 | 181 | ```json 182 | { 183 | "transform": "ts-react-display-name", 184 | "factoryFuncs": ["React.forwardRef", "React.memo"] 185 | } 186 | ``` 187 | 188 | ## Contributing to this project 189 | 190 | Feel free to contribute to this project and submit pull requests. 191 | 192 | Here are a couple useful commands: 193 | 194 | - `npm run test`: Runs tests and linters. 195 | - `npm run build`: Builds the library. 196 | 197 | ### Adding Unit test data 198 | 199 | 1. Add your origin test data file as `/test/data/xxx.tsx` 200 | 2. Paste your raw `/test/data/xxx.tsx` file into [Typescript Playround](https://www.typescriptlang.org/play/index.html?target=1&jsx=2) using the link settings, then add the displayName (function or static property) and save the generated output to `test/data/xxx.ts` 201 | 202 | ## TODOs 203 | 204 | - Try to find a better way to compare types (without converting to text 205 | using getText(sourceFile)) 206 | - Optionally detect if there is already a displayName for functional componments and don't override it. 207 | -------------------------------------------------------------------------------- /dist/index.d.ts: -------------------------------------------------------------------------------- 1 | import * as ts from 'typescript'; 2 | export interface AddDisplayNameOptions { 3 | /** 4 | * Only add displayName to components defined at the root of the file. 5 | * Setting this to true limits the scope of research for components to the root of the file. This 6 | * can dramatically speed things up. Usually components are deployed at the root of the file so 7 | * setting this to true is recommended. 8 | */ 9 | onlyFileRoot: boolean; 10 | /** 11 | * List of function types to add displayName to. 12 | * Default: ['React.FunctionComponent', 'React.FC'] 13 | */ 14 | funcTypes: string[]; 15 | /** 16 | * List of classes to add displayName to. 17 | * Default: ['React.Component', 'React.PureComponent'] 18 | */ 19 | classTypes: string[]; 20 | /** 21 | * List of factory functions to add displayName to. 22 | * Default: ['React.forwardRef', 'React.memo'] 23 | */ 24 | factoryFuncs: string[]; 25 | } 26 | /** 27 | * Factory method that creates a Transformer. 28 | */ 29 | export declare function addDisplayNameTransformer(options?: Partial): (ctx: ts.TransformationContext) => ts.Transformer; 30 | export default function (_program: ts.Program, options: AddDisplayNameOptions): (ctx: ts.TransformationContext) => ts.Transformer; 31 | -------------------------------------------------------------------------------- /dist/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | const path = require("path"); 4 | const ts = require("typescript"); 5 | /** 6 | * Creates an assignment statement. We assign the name of the given node to the property displayName 7 | * of that node (node.displayName = node.name). 8 | */ 9 | const createSetDisplayNameStatement = (node, sf) => { 10 | const name = ts.getNameOfDeclaration(node).getText(sf); 11 | const displayNameProp = ts.createPropertyAccess(node.name, 'displayName'); 12 | return ts.createAssignment(displayNameProp, ts.createStringLiteral(name)); 13 | }; 14 | /** 15 | * Creates a static class property named "displayName" and with value the name of the class. 16 | */ 17 | const createDisplayNameProperty = (node, sf) => { 18 | const declaration = ts.getNameOfDeclaration(node); 19 | const name = declaration ? declaration.getText(sf) : path.parse(sf.fileName).name; 20 | return ts.createProperty(undefined, ts.createModifiersFromModifierFlags(ts.ModifierFlags.Static), 'displayName', undefined, undefined, ts.createStringLiteral(name)); 21 | }; 22 | /** 23 | * Checks if a variable declaration is for a React.FunctionComponent/React.FC. 24 | */ 25 | const isFunctionComponent = (node, sf, options) => { 26 | if (node.type && ts.isTypeReferenceNode(node.type)) { 27 | const type = node.type.typeName.getText(sf); 28 | return options.funcTypes.some(funcType => funcType === type); 29 | } 30 | return false; 31 | }; 32 | /** 33 | * Checks if a variable declaration is for a React.FunctionComponent. 34 | */ 35 | const isReactComponent = (node, sf, options) => { 36 | return (node.heritageClauses && 37 | node.heritageClauses.some(heritageClause => heritageClause.types && 38 | heritageClause.types.some(type => { 39 | const typeStr = type.getText(sf); 40 | return options.classTypes.some(classType => typeStr.startsWith(classType)); 41 | }))); 42 | }; 43 | /** 44 | * Checks if a variable declaration is for a React.forwardRef/React.memo. 45 | */ 46 | const isFactoryComponent = (node, sf, options) => { 47 | if (ts.isCallExpression(node) && ts.isIdentifier(node.expression)) { 48 | const type = ts.getNameOfDeclaration(node.expression).getText(sf); 49 | return options.factoryFuncs.some(factoryType => factoryType === type); 50 | } 51 | if (ts.isPropertyAccessExpression(node) && 52 | ts.isIdentifier(node.expression) && 53 | ts.isIdentifier(node.name)) { 54 | const type = ts.getNameOfDeclaration(node.expression).getText(sf) + 55 | '.' + 56 | ts.getNameOfDeclaration(node.name).getText(sf); 57 | return options.factoryFuncs.some(factoryType => factoryType === type); 58 | } 59 | if (ts.isCallExpression(node.expression) || ts.isPropertyAccessExpression(node.expression)) { 60 | return isFactoryComponent(node.expression, sf, options); 61 | } 62 | return false; 63 | }; 64 | /** 65 | * Checks if `static displayName` is defined for class 66 | */ 67 | function isStaticDisplayNameDefined(classDeclaration) { 68 | return (classDeclaration.members.find(member => { 69 | try { 70 | return (member.kind === ts.SyntaxKind.PropertyDeclaration && 71 | member.modifiers.some(modifier => (modifier.kind & ts.ModifierFlags.Static) === ts.ModifierFlags.Static) && 72 | member.name.text === 'displayName'); 73 | } 74 | catch (e) { 75 | return false; 76 | } 77 | }) !== undefined); 78 | } 79 | /** 80 | * Recursive function that visits the nodes of the file. 81 | */ 82 | function visit(ctx, sf, options) { 83 | const visitor = (node) => { 84 | if (ts.isVariableStatement(node)) { 85 | const components = []; 86 | ts.forEachChild(node, (child1) => { 87 | if (ts.isVariableDeclarationList(child1)) { 88 | ts.forEachChild(child1, (child2) => { 89 | if (ts.isVariableDeclaration(child2)) { 90 | if (isFunctionComponent(child2, sf, options)) { 91 | components.push(child2); 92 | } 93 | else { 94 | ts.forEachChild(child2, (child3) => { 95 | if (ts.isCallExpression(child3) || ts.isPropertyAccessExpression(child3)) { 96 | if (isFactoryComponent(child3, sf, options)) { 97 | components.push(child2); 98 | } 99 | } 100 | }); 101 | } 102 | } 103 | }); 104 | } 105 | }); 106 | let result = node; 107 | if (!options.onlyFileRoot) { 108 | result = ts.visitEachChild(node, visitor, ctx); 109 | } 110 | if (components.length) { 111 | return [result, ...components.map(comp => createSetDisplayNameStatement(comp, sf))]; 112 | } 113 | else { 114 | return result; 115 | } 116 | } 117 | if (ts.isClassDeclaration(node) && isReactComponent(node, sf, options)) { 118 | const result = ts.visitEachChild(node, visitor, ctx); 119 | if (!isStaticDisplayNameDefined(result)) { 120 | const member = createDisplayNameProperty(node, sf); 121 | return ts.updateClassDeclaration(node, node.decorators, node.modifiers, node.name, node.typeParameters, node.heritageClauses, ts.createNodeArray([...result.members, member])); 122 | } 123 | return result; 124 | } 125 | if (!options.onlyFileRoot || ts.isSourceFile(node)) { 126 | return ts.visitEachChild(node, visitor, ctx); 127 | } 128 | else { 129 | return node; 130 | } 131 | }; 132 | return visitor; 133 | } 134 | /** 135 | * Factory method that creates a Transformer. 136 | */ 137 | function addDisplayNameTransformer(options = {}) { 138 | const optionsWithDefaults = { 139 | onlyFileRoot: false, 140 | funcTypes: ['React.FunctionComponent', 'React.FC'], 141 | classTypes: ['React.Component', 'React.PureComponent'], 142 | factoryFuncs: ['React.forwardRef', 'React.memo'], 143 | ...options, 144 | }; 145 | return (ctx) => { 146 | return (sf) => ts.visitNode(sf, visit(ctx, sf, optionsWithDefaults)); 147 | }; 148 | } 149 | exports.addDisplayNameTransformer = addDisplayNameTransformer; 150 | function default_1(_program, options) { 151 | return addDisplayNameTransformer(options); 152 | } 153 | exports.default = default_1; 154 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ts-react-display-name", 3 | "version": "1.2.2", 4 | "lockfileVersion": 2, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "version": "1.2.2", 9 | "license": "MIT", 10 | "devDependencies": { 11 | "@types/node": "^12.7.4", 12 | "@types/react": "^16.9.2", 13 | "chai": "^4.2.0", 14 | "mocha": "^6.2.0", 15 | "prettier": "^1.18.2", 16 | "react": "^16.9.0", 17 | "ts-node": "^8.3.0", 18 | "tslint": "^5.19.0", 19 | "tslint-config-prettier": "^1.18.0", 20 | "typescript": "^3.6.2" 21 | } 22 | }, 23 | "node_modules/@babel/code-frame": { 24 | "version": "7.5.5", 25 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", 26 | "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", 27 | "dev": true, 28 | "dependencies": { 29 | "@babel/highlight": "^7.0.0" 30 | } 31 | }, 32 | "node_modules/@babel/highlight": { 33 | "version": "7.5.0", 34 | "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", 35 | "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", 36 | "dev": true, 37 | "dependencies": { 38 | "chalk": "^2.0.0", 39 | "esutils": "^2.0.2", 40 | "js-tokens": "^4.0.0" 41 | } 42 | }, 43 | "node_modules/@types/node": { 44 | "version": "12.7.4", 45 | "resolved": "https://registry.npmjs.org/@types/node/-/node-12.7.4.tgz", 46 | "integrity": "sha512-W0+n1Y+gK/8G2P/piTkBBN38Qc5Q1ZSO6B5H3QmPCUewaiXOo2GCAWZ4ElZCcNhjJuBSUSLGFUJnmlCn5+nxOQ==", 47 | "dev": true 48 | }, 49 | "node_modules/@types/prop-types": { 50 | "version": "15.7.2", 51 | "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.2.tgz", 52 | "integrity": "sha512-f8JzJNWVhKtc9dg/dyDNfliTKNOJSLa7Oht/ElZdF/UbMUmAH3rLmAk3ODNjw0mZajDEgatA03tRjB4+Dp/tzA==", 53 | "dev": true 54 | }, 55 | "node_modules/@types/react": { 56 | "version": "16.9.2", 57 | "resolved": "https://registry.npmjs.org/@types/react/-/react-16.9.2.tgz", 58 | "integrity": "sha512-jYP2LWwlh+FTqGd9v7ynUKZzjj98T8x7Yclz479QdRhHfuW9yQ+0jjnD31eXSXutmBpppj5PYNLYLRfnZJvcfg==", 59 | "dev": true, 60 | "dependencies": { 61 | "@types/prop-types": "*", 62 | "csstype": "^2.2.0" 63 | } 64 | }, 65 | "node_modules/ansi-colors": { 66 | "version": "3.2.3", 67 | "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz", 68 | "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==", 69 | "dev": true, 70 | "engines": { 71 | "node": ">=6" 72 | } 73 | }, 74 | "node_modules/ansi-regex": { 75 | "version": "3.0.0", 76 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", 77 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", 78 | "dev": true, 79 | "engines": { 80 | "node": ">=4" 81 | } 82 | }, 83 | "node_modules/ansi-styles": { 84 | "version": "3.2.1", 85 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 86 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 87 | "dev": true, 88 | "dependencies": { 89 | "color-convert": "^1.9.0" 90 | }, 91 | "engines": { 92 | "node": ">=4" 93 | } 94 | }, 95 | "node_modules/arg": { 96 | "version": "4.1.1", 97 | "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.1.tgz", 98 | "integrity": "sha512-SlmP3fEA88MBv0PypnXZ8ZfJhwmDeIE3SP71j37AiXQBXYosPV0x6uISAaHYSlSVhmHOVkomen0tbGk6Anlebw==", 99 | "dev": true 100 | }, 101 | "node_modules/argparse": { 102 | "version": "1.0.10", 103 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 104 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 105 | "dev": true, 106 | "dependencies": { 107 | "sprintf-js": "~1.0.2" 108 | } 109 | }, 110 | "node_modules/assertion-error": { 111 | "version": "1.1.0", 112 | "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", 113 | "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", 114 | "dev": true, 115 | "engines": { 116 | "node": "*" 117 | } 118 | }, 119 | "node_modules/balanced-match": { 120 | "version": "1.0.0", 121 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 122 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", 123 | "dev": true 124 | }, 125 | "node_modules/brace-expansion": { 126 | "version": "1.1.11", 127 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 128 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 129 | "dev": true, 130 | "dependencies": { 131 | "balanced-match": "^1.0.0", 132 | "concat-map": "0.0.1" 133 | } 134 | }, 135 | "node_modules/browser-stdout": { 136 | "version": "1.3.1", 137 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", 138 | "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", 139 | "dev": true 140 | }, 141 | "node_modules/buffer-from": { 142 | "version": "1.1.1", 143 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", 144 | "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", 145 | "dev": true 146 | }, 147 | "node_modules/builtin-modules": { 148 | "version": "1.1.1", 149 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", 150 | "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", 151 | "dev": true, 152 | "engines": { 153 | "node": ">=0.10.0" 154 | } 155 | }, 156 | "node_modules/camelcase": { 157 | "version": "5.3.1", 158 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", 159 | "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", 160 | "dev": true, 161 | "engines": { 162 | "node": ">=6" 163 | } 164 | }, 165 | "node_modules/chai": { 166 | "version": "4.2.0", 167 | "resolved": "https://registry.npmjs.org/chai/-/chai-4.2.0.tgz", 168 | "integrity": "sha512-XQU3bhBukrOsQCuwZndwGcCVQHyZi53fQ6Ys1Fym7E4olpIqqZZhhoFJoaKVvV17lWQoXYwgWN2nF5crA8J2jw==", 169 | "dev": true, 170 | "dependencies": { 171 | "assertion-error": "^1.1.0", 172 | "check-error": "^1.0.2", 173 | "deep-eql": "^3.0.1", 174 | "get-func-name": "^2.0.0", 175 | "pathval": "^1.1.0", 176 | "type-detect": "^4.0.5" 177 | }, 178 | "engines": { 179 | "node": ">=4" 180 | } 181 | }, 182 | "node_modules/chalk": { 183 | "version": "2.4.2", 184 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 185 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 186 | "dev": true, 187 | "dependencies": { 188 | "ansi-styles": "^3.2.1", 189 | "escape-string-regexp": "^1.0.5", 190 | "supports-color": "^5.3.0" 191 | }, 192 | "engines": { 193 | "node": ">=4" 194 | } 195 | }, 196 | "node_modules/chalk/node_modules/supports-color": { 197 | "version": "5.5.0", 198 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 199 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 200 | "dev": true, 201 | "dependencies": { 202 | "has-flag": "^3.0.0" 203 | }, 204 | "engines": { 205 | "node": ">=4" 206 | } 207 | }, 208 | "node_modules/check-error": { 209 | "version": "1.0.2", 210 | "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", 211 | "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", 212 | "dev": true, 213 | "engines": { 214 | "node": "*" 215 | } 216 | }, 217 | "node_modules/cliui": { 218 | "version": "5.0.0", 219 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", 220 | "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", 221 | "dev": true, 222 | "dependencies": { 223 | "string-width": "^3.1.0", 224 | "strip-ansi": "^5.2.0", 225 | "wrap-ansi": "^5.1.0" 226 | } 227 | }, 228 | "node_modules/cliui/node_modules/ansi-regex": { 229 | "version": "4.1.0", 230 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 231 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 232 | "dev": true, 233 | "engines": { 234 | "node": ">=6" 235 | } 236 | }, 237 | "node_modules/cliui/node_modules/string-width": { 238 | "version": "3.1.0", 239 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 240 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 241 | "dev": true, 242 | "dependencies": { 243 | "emoji-regex": "^7.0.1", 244 | "is-fullwidth-code-point": "^2.0.0", 245 | "strip-ansi": "^5.1.0" 246 | }, 247 | "engines": { 248 | "node": ">=6" 249 | } 250 | }, 251 | "node_modules/cliui/node_modules/strip-ansi": { 252 | "version": "5.2.0", 253 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 254 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 255 | "dev": true, 256 | "dependencies": { 257 | "ansi-regex": "^4.1.0" 258 | }, 259 | "engines": { 260 | "node": ">=6" 261 | } 262 | }, 263 | "node_modules/color-convert": { 264 | "version": "1.9.3", 265 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 266 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 267 | "dev": true, 268 | "dependencies": { 269 | "color-name": "1.1.3" 270 | } 271 | }, 272 | "node_modules/color-name": { 273 | "version": "1.1.3", 274 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 275 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", 276 | "dev": true 277 | }, 278 | "node_modules/commander": { 279 | "version": "2.20.0", 280 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz", 281 | "integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==", 282 | "dev": true 283 | }, 284 | "node_modules/concat-map": { 285 | "version": "0.0.1", 286 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 287 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 288 | "dev": true 289 | }, 290 | "node_modules/csstype": { 291 | "version": "2.6.6", 292 | "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.6.tgz", 293 | "integrity": "sha512-RpFbQGUE74iyPgvr46U9t1xoQBM8T4BL8SxrN66Le2xYAPSaDJJKeztV3awugusb3g3G9iL8StmkBBXhcbbXhg==", 294 | "dev": true 295 | }, 296 | "node_modules/debug": { 297 | "version": "3.2.6", 298 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", 299 | "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", 300 | "dev": true, 301 | "dependencies": { 302 | "ms": "^2.1.1" 303 | } 304 | }, 305 | "node_modules/decamelize": { 306 | "version": "1.2.0", 307 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", 308 | "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", 309 | "dev": true, 310 | "engines": { 311 | "node": ">=0.10.0" 312 | } 313 | }, 314 | "node_modules/deep-eql": { 315 | "version": "3.0.1", 316 | "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", 317 | "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", 318 | "dev": true, 319 | "dependencies": { 320 | "type-detect": "^4.0.0" 321 | }, 322 | "engines": { 323 | "node": ">=0.12" 324 | } 325 | }, 326 | "node_modules/define-properties": { 327 | "version": "1.1.3", 328 | "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", 329 | "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", 330 | "dev": true, 331 | "dependencies": { 332 | "object-keys": "^1.0.12" 333 | }, 334 | "engines": { 335 | "node": ">= 0.4" 336 | } 337 | }, 338 | "node_modules/diff": { 339 | "version": "3.5.0", 340 | "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", 341 | "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", 342 | "dev": true, 343 | "engines": { 344 | "node": ">=0.3.1" 345 | } 346 | }, 347 | "node_modules/emoji-regex": { 348 | "version": "7.0.3", 349 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", 350 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", 351 | "dev": true 352 | }, 353 | "node_modules/es-abstract": { 354 | "version": "1.14.2", 355 | "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.14.2.tgz", 356 | "integrity": "sha512-DgoQmbpFNOofkjJtKwr87Ma5EW4Dc8fWhD0R+ndq7Oc456ivUfGOOP6oAZTTKl5/CcNMP+EN+e3/iUzgE0veZg==", 357 | "dev": true, 358 | "dependencies": { 359 | "es-to-primitive": "^1.2.0", 360 | "function-bind": "^1.1.1", 361 | "has": "^1.0.3", 362 | "has-symbols": "^1.0.0", 363 | "is-callable": "^1.1.4", 364 | "is-regex": "^1.0.4", 365 | "object-inspect": "^1.6.0", 366 | "object-keys": "^1.1.1", 367 | "string.prototype.trimleft": "^2.0.0", 368 | "string.prototype.trimright": "^2.0.0" 369 | }, 370 | "engines": { 371 | "node": ">= 0.4" 372 | } 373 | }, 374 | "node_modules/es-to-primitive": { 375 | "version": "1.2.0", 376 | "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz", 377 | "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==", 378 | "dev": true, 379 | "dependencies": { 380 | "is-callable": "^1.1.4", 381 | "is-date-object": "^1.0.1", 382 | "is-symbol": "^1.0.2" 383 | }, 384 | "engines": { 385 | "node": ">= 0.4" 386 | } 387 | }, 388 | "node_modules/escape-string-regexp": { 389 | "version": "1.0.5", 390 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 391 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", 392 | "dev": true, 393 | "engines": { 394 | "node": ">=0.8.0" 395 | } 396 | }, 397 | "node_modules/esprima": { 398 | "version": "4.0.1", 399 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 400 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 401 | "dev": true, 402 | "bin": { 403 | "esparse": "bin/esparse.js", 404 | "esvalidate": "bin/esvalidate.js" 405 | }, 406 | "engines": { 407 | "node": ">=4" 408 | } 409 | }, 410 | "node_modules/esutils": { 411 | "version": "2.0.3", 412 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 413 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 414 | "dev": true, 415 | "engines": { 416 | "node": ">=0.10.0" 417 | } 418 | }, 419 | "node_modules/find-up": { 420 | "version": "3.0.0", 421 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", 422 | "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", 423 | "dev": true, 424 | "dependencies": { 425 | "locate-path": "^3.0.0" 426 | }, 427 | "engines": { 428 | "node": ">=6" 429 | } 430 | }, 431 | "node_modules/flat": { 432 | "version": "4.1.1", 433 | "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.1.tgz", 434 | "integrity": "sha512-FmTtBsHskrU6FJ2VxCnsDb84wu9zhmO3cUX2kGFb5tuwhfXxGciiT0oRY+cck35QmG+NmGh5eLz6lLCpWTqwpA==", 435 | "dev": true, 436 | "dependencies": { 437 | "is-buffer": "~2.0.3" 438 | }, 439 | "bin": { 440 | "flat": "cli.js" 441 | } 442 | }, 443 | "node_modules/fs.realpath": { 444 | "version": "1.0.0", 445 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 446 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 447 | "dev": true 448 | }, 449 | "node_modules/function-bind": { 450 | "version": "1.1.1", 451 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 452 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", 453 | "dev": true 454 | }, 455 | "node_modules/get-caller-file": { 456 | "version": "2.0.5", 457 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 458 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 459 | "dev": true, 460 | "engines": { 461 | "node": "6.* || 8.* || >= 10.*" 462 | } 463 | }, 464 | "node_modules/get-func-name": { 465 | "version": "2.0.0", 466 | "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", 467 | "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", 468 | "dev": true, 469 | "engines": { 470 | "node": "*" 471 | } 472 | }, 473 | "node_modules/glob": { 474 | "version": "7.1.3", 475 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", 476 | "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", 477 | "dev": true, 478 | "dependencies": { 479 | "fs.realpath": "^1.0.0", 480 | "inflight": "^1.0.4", 481 | "inherits": "2", 482 | "minimatch": "^3.0.4", 483 | "once": "^1.3.0", 484 | "path-is-absolute": "^1.0.0" 485 | }, 486 | "engines": { 487 | "node": "*" 488 | } 489 | }, 490 | "node_modules/growl": { 491 | "version": "1.10.5", 492 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", 493 | "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", 494 | "dev": true, 495 | "engines": { 496 | "node": ">=4.x" 497 | } 498 | }, 499 | "node_modules/has": { 500 | "version": "1.0.3", 501 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 502 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 503 | "dev": true, 504 | "dependencies": { 505 | "function-bind": "^1.1.1" 506 | }, 507 | "engines": { 508 | "node": ">= 0.4.0" 509 | } 510 | }, 511 | "node_modules/has-flag": { 512 | "version": "3.0.0", 513 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 514 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", 515 | "dev": true, 516 | "engines": { 517 | "node": ">=4" 518 | } 519 | }, 520 | "node_modules/has-symbols": { 521 | "version": "1.0.0", 522 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", 523 | "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", 524 | "dev": true, 525 | "engines": { 526 | "node": ">= 0.4" 527 | } 528 | }, 529 | "node_modules/he": { 530 | "version": "1.2.0", 531 | "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", 532 | "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", 533 | "dev": true, 534 | "bin": { 535 | "he": "bin/he" 536 | } 537 | }, 538 | "node_modules/inflight": { 539 | "version": "1.0.6", 540 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 541 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 542 | "dev": true, 543 | "dependencies": { 544 | "once": "^1.3.0", 545 | "wrappy": "1" 546 | } 547 | }, 548 | "node_modules/inherits": { 549 | "version": "2.0.4", 550 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 551 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 552 | "dev": true 553 | }, 554 | "node_modules/is-buffer": { 555 | "version": "2.0.5", 556 | "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", 557 | "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==", 558 | "dev": true, 559 | "funding": [ 560 | { 561 | "type": "github", 562 | "url": "https://github.com/sponsors/feross" 563 | }, 564 | { 565 | "type": "patreon", 566 | "url": "https://www.patreon.com/feross" 567 | }, 568 | { 569 | "type": "consulting", 570 | "url": "https://feross.org/support" 571 | } 572 | ], 573 | "engines": { 574 | "node": ">=4" 575 | } 576 | }, 577 | "node_modules/is-callable": { 578 | "version": "1.1.4", 579 | "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", 580 | "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==", 581 | "dev": true, 582 | "engines": { 583 | "node": ">= 0.4" 584 | } 585 | }, 586 | "node_modules/is-date-object": { 587 | "version": "1.0.1", 588 | "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", 589 | "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", 590 | "dev": true, 591 | "engines": { 592 | "node": ">= 0.4" 593 | } 594 | }, 595 | "node_modules/is-fullwidth-code-point": { 596 | "version": "2.0.0", 597 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 598 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 599 | "dev": true, 600 | "engines": { 601 | "node": ">=4" 602 | } 603 | }, 604 | "node_modules/is-regex": { 605 | "version": "1.0.4", 606 | "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", 607 | "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", 608 | "dev": true, 609 | "dependencies": { 610 | "has": "^1.0.1" 611 | }, 612 | "engines": { 613 | "node": ">= 0.4" 614 | } 615 | }, 616 | "node_modules/is-symbol": { 617 | "version": "1.0.2", 618 | "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz", 619 | "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", 620 | "dev": true, 621 | "dependencies": { 622 | "has-symbols": "^1.0.0" 623 | }, 624 | "engines": { 625 | "node": ">= 0.4" 626 | } 627 | }, 628 | "node_modules/isexe": { 629 | "version": "2.0.0", 630 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 631 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", 632 | "dev": true 633 | }, 634 | "node_modules/js-tokens": { 635 | "version": "4.0.0", 636 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 637 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", 638 | "dev": true 639 | }, 640 | "node_modules/js-yaml": { 641 | "version": "3.13.1", 642 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", 643 | "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", 644 | "dev": true, 645 | "dependencies": { 646 | "argparse": "^1.0.7", 647 | "esprima": "^4.0.0" 648 | }, 649 | "bin": { 650 | "js-yaml": "bin/js-yaml.js" 651 | } 652 | }, 653 | "node_modules/locate-path": { 654 | "version": "3.0.0", 655 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", 656 | "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", 657 | "dev": true, 658 | "dependencies": { 659 | "p-locate": "^3.0.0", 660 | "path-exists": "^3.0.0" 661 | }, 662 | "engines": { 663 | "node": ">=6" 664 | } 665 | }, 666 | "node_modules/lodash": { 667 | "version": "4.17.21", 668 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 669 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", 670 | "dev": true 671 | }, 672 | "node_modules/log-symbols": { 673 | "version": "2.2.0", 674 | "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", 675 | "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", 676 | "dev": true, 677 | "dependencies": { 678 | "chalk": "^2.0.1" 679 | }, 680 | "engines": { 681 | "node": ">=4" 682 | } 683 | }, 684 | "node_modules/loose-envify": { 685 | "version": "1.4.0", 686 | "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", 687 | "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", 688 | "dev": true, 689 | "dependencies": { 690 | "js-tokens": "^3.0.0 || ^4.0.0" 691 | }, 692 | "bin": { 693 | "loose-envify": "cli.js" 694 | } 695 | }, 696 | "node_modules/make-error": { 697 | "version": "1.3.5", 698 | "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.5.tgz", 699 | "integrity": "sha512-c3sIjNUow0+8swNwVpqoH4YCShKNFkMaw6oH1mNS2haDZQqkeZFlHS3dhoeEbKKmJB4vXpJucU6oH75aDYeE9g==", 700 | "dev": true 701 | }, 702 | "node_modules/minimatch": { 703 | "version": "3.0.4", 704 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 705 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 706 | "dev": true, 707 | "dependencies": { 708 | "brace-expansion": "^1.1.7" 709 | }, 710 | "engines": { 711 | "node": "*" 712 | } 713 | }, 714 | "node_modules/minimist": { 715 | "version": "1.2.5", 716 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 717 | "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", 718 | "dev": true 719 | }, 720 | "node_modules/mkdirp": { 721 | "version": "0.5.4", 722 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.4.tgz", 723 | "integrity": "sha512-iG9AK/dJLtJ0XNgTuDbSyNS3zECqDlAhnQW4CsNxBG3LQJBbHmRX1egw39DmtOdCAqY+dKXV+sgPgilNWUKMVw==", 724 | "deprecated": "Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)", 725 | "dev": true, 726 | "dependencies": { 727 | "minimist": "^1.2.5" 728 | }, 729 | "bin": { 730 | "mkdirp": "bin/cmd.js" 731 | } 732 | }, 733 | "node_modules/mocha": { 734 | "version": "6.2.3", 735 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-6.2.3.tgz", 736 | "integrity": "sha512-0R/3FvjIGH3eEuG17ccFPk117XL2rWxatr81a57D+r/x2uTYZRbdZ4oVidEUMh2W2TJDa7MdAb12Lm2/qrKajg==", 737 | "dev": true, 738 | "dependencies": { 739 | "ansi-colors": "3.2.3", 740 | "browser-stdout": "1.3.1", 741 | "debug": "3.2.6", 742 | "diff": "3.5.0", 743 | "escape-string-regexp": "1.0.5", 744 | "find-up": "3.0.0", 745 | "glob": "7.1.3", 746 | "growl": "1.10.5", 747 | "he": "1.2.0", 748 | "js-yaml": "3.13.1", 749 | "log-symbols": "2.2.0", 750 | "minimatch": "3.0.4", 751 | "mkdirp": "0.5.4", 752 | "ms": "2.1.1", 753 | "node-environment-flags": "1.0.5", 754 | "object.assign": "4.1.0", 755 | "strip-json-comments": "2.0.1", 756 | "supports-color": "6.0.0", 757 | "which": "1.3.1", 758 | "wide-align": "1.1.3", 759 | "yargs": "13.3.2", 760 | "yargs-parser": "13.1.2", 761 | "yargs-unparser": "1.6.0" 762 | }, 763 | "bin": { 764 | "_mocha": "bin/_mocha", 765 | "mocha": "bin/mocha" 766 | }, 767 | "engines": { 768 | "node": ">= 6.0.0" 769 | } 770 | }, 771 | "node_modules/ms": { 772 | "version": "2.1.1", 773 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 774 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", 775 | "dev": true 776 | }, 777 | "node_modules/node-environment-flags": { 778 | "version": "1.0.5", 779 | "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.5.tgz", 780 | "integrity": "sha512-VNYPRfGfmZLx0Ye20jWzHUjyTW/c+6Wq+iLhDzUI4XmhrDd9l/FozXV3F2xOaXjvp0co0+v1YSR3CMP6g+VvLQ==", 781 | "dev": true, 782 | "dependencies": { 783 | "object.getownpropertydescriptors": "^2.0.3", 784 | "semver": "^5.7.0" 785 | } 786 | }, 787 | "node_modules/object-assign": { 788 | "version": "4.1.1", 789 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 790 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", 791 | "dev": true, 792 | "engines": { 793 | "node": ">=0.10.0" 794 | } 795 | }, 796 | "node_modules/object-inspect": { 797 | "version": "1.6.0", 798 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.6.0.tgz", 799 | "integrity": "sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ==", 800 | "dev": true 801 | }, 802 | "node_modules/object-keys": { 803 | "version": "1.1.1", 804 | "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", 805 | "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", 806 | "dev": true, 807 | "engines": { 808 | "node": ">= 0.4" 809 | } 810 | }, 811 | "node_modules/object.assign": { 812 | "version": "4.1.0", 813 | "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", 814 | "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", 815 | "dev": true, 816 | "dependencies": { 817 | "define-properties": "^1.1.2", 818 | "function-bind": "^1.1.1", 819 | "has-symbols": "^1.0.0", 820 | "object-keys": "^1.0.11" 821 | }, 822 | "engines": { 823 | "node": ">= 0.4" 824 | } 825 | }, 826 | "node_modules/object.getownpropertydescriptors": { 827 | "version": "2.0.3", 828 | "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", 829 | "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=", 830 | "dev": true, 831 | "dependencies": { 832 | "define-properties": "^1.1.2", 833 | "es-abstract": "^1.5.1" 834 | }, 835 | "engines": { 836 | "node": ">= 0.8" 837 | } 838 | }, 839 | "node_modules/once": { 840 | "version": "1.4.0", 841 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 842 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 843 | "dev": true, 844 | "dependencies": { 845 | "wrappy": "1" 846 | } 847 | }, 848 | "node_modules/p-limit": { 849 | "version": "2.3.0", 850 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", 851 | "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", 852 | "dev": true, 853 | "dependencies": { 854 | "p-try": "^2.0.0" 855 | }, 856 | "engines": { 857 | "node": ">=6" 858 | }, 859 | "funding": { 860 | "url": "https://github.com/sponsors/sindresorhus" 861 | } 862 | }, 863 | "node_modules/p-locate": { 864 | "version": "3.0.0", 865 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", 866 | "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", 867 | "dev": true, 868 | "dependencies": { 869 | "p-limit": "^2.0.0" 870 | }, 871 | "engines": { 872 | "node": ">=6" 873 | } 874 | }, 875 | "node_modules/p-try": { 876 | "version": "2.2.0", 877 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", 878 | "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", 879 | "dev": true, 880 | "engines": { 881 | "node": ">=6" 882 | } 883 | }, 884 | "node_modules/path-exists": { 885 | "version": "3.0.0", 886 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", 887 | "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", 888 | "dev": true, 889 | "engines": { 890 | "node": ">=4" 891 | } 892 | }, 893 | "node_modules/path-is-absolute": { 894 | "version": "1.0.1", 895 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 896 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 897 | "dev": true, 898 | "engines": { 899 | "node": ">=0.10.0" 900 | } 901 | }, 902 | "node_modules/path-parse": { 903 | "version": "1.0.6", 904 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", 905 | "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", 906 | "dev": true 907 | }, 908 | "node_modules/pathval": { 909 | "version": "1.1.0", 910 | "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.0.tgz", 911 | "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=", 912 | "dev": true, 913 | "engines": { 914 | "node": "*" 915 | } 916 | }, 917 | "node_modules/prettier": { 918 | "version": "1.18.2", 919 | "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.18.2.tgz", 920 | "integrity": "sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw==", 921 | "dev": true, 922 | "bin": { 923 | "prettier": "bin-prettier.js" 924 | }, 925 | "engines": { 926 | "node": ">=4" 927 | } 928 | }, 929 | "node_modules/prop-types": { 930 | "version": "15.7.2", 931 | "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz", 932 | "integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==", 933 | "dev": true, 934 | "dependencies": { 935 | "loose-envify": "^1.4.0", 936 | "object-assign": "^4.1.1", 937 | "react-is": "^16.8.1" 938 | } 939 | }, 940 | "node_modules/react": { 941 | "version": "16.9.0", 942 | "resolved": "https://registry.npmjs.org/react/-/react-16.9.0.tgz", 943 | "integrity": "sha512-+7LQnFBwkiw+BobzOF6N//BdoNw0ouwmSJTEm9cglOOmsg/TMiFHZLe2sEoN5M7LgJTj9oHH0gxklfnQe66S1w==", 944 | "dev": true, 945 | "dependencies": { 946 | "loose-envify": "^1.1.0", 947 | "object-assign": "^4.1.1", 948 | "prop-types": "^15.6.2" 949 | }, 950 | "engines": { 951 | "node": ">=0.10.0" 952 | } 953 | }, 954 | "node_modules/react-is": { 955 | "version": "16.9.0", 956 | "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.9.0.tgz", 957 | "integrity": "sha512-tJBzzzIgnnRfEm046qRcURvwQnZVXmuCbscxUO5RWrGTXpon2d4c8mI0D8WE6ydVIm29JiLB6+RslkIvym9Rjw==", 958 | "dev": true 959 | }, 960 | "node_modules/require-directory": { 961 | "version": "2.1.1", 962 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 963 | "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", 964 | "dev": true, 965 | "engines": { 966 | "node": ">=0.10.0" 967 | } 968 | }, 969 | "node_modules/require-main-filename": { 970 | "version": "2.0.0", 971 | "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", 972 | "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", 973 | "dev": true 974 | }, 975 | "node_modules/resolve": { 976 | "version": "1.12.0", 977 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", 978 | "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", 979 | "dev": true, 980 | "dependencies": { 981 | "path-parse": "^1.0.6" 982 | } 983 | }, 984 | "node_modules/semver": { 985 | "version": "5.7.1", 986 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 987 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", 988 | "dev": true, 989 | "bin": { 990 | "semver": "bin/semver" 991 | } 992 | }, 993 | "node_modules/set-blocking": { 994 | "version": "2.0.0", 995 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", 996 | "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", 997 | "dev": true 998 | }, 999 | "node_modules/source-map": { 1000 | "version": "0.6.1", 1001 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 1002 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", 1003 | "dev": true, 1004 | "engines": { 1005 | "node": ">=0.10.0" 1006 | } 1007 | }, 1008 | "node_modules/source-map-support": { 1009 | "version": "0.5.13", 1010 | "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", 1011 | "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", 1012 | "dev": true, 1013 | "dependencies": { 1014 | "buffer-from": "^1.0.0", 1015 | "source-map": "^0.6.0" 1016 | } 1017 | }, 1018 | "node_modules/sprintf-js": { 1019 | "version": "1.0.3", 1020 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 1021 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", 1022 | "dev": true 1023 | }, 1024 | "node_modules/string-width": { 1025 | "version": "2.1.1", 1026 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", 1027 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", 1028 | "dev": true, 1029 | "dependencies": { 1030 | "is-fullwidth-code-point": "^2.0.0", 1031 | "strip-ansi": "^4.0.0" 1032 | }, 1033 | "engines": { 1034 | "node": ">=4" 1035 | } 1036 | }, 1037 | "node_modules/string.prototype.trimleft": { 1038 | "version": "2.0.0", 1039 | "resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.0.0.tgz", 1040 | "integrity": "sha1-aLaqjhYsaoDnbjqKDC50cYbicf8=", 1041 | "dev": true, 1042 | "dependencies": { 1043 | "define-properties": "^1.1.2", 1044 | "function-bind": "^1.0.2" 1045 | }, 1046 | "engines": { 1047 | "node": ">= 0.4" 1048 | } 1049 | }, 1050 | "node_modules/string.prototype.trimright": { 1051 | "version": "2.0.0", 1052 | "resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.0.0.tgz", 1053 | "integrity": "sha1-q0pW2AKgH75yk+EehPJNyBZGYd0=", 1054 | "dev": true, 1055 | "dependencies": { 1056 | "define-properties": "^1.1.2", 1057 | "function-bind": "^1.0.2" 1058 | }, 1059 | "engines": { 1060 | "node": ">= 0.4" 1061 | } 1062 | }, 1063 | "node_modules/strip-ansi": { 1064 | "version": "4.0.0", 1065 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", 1066 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", 1067 | "dev": true, 1068 | "dependencies": { 1069 | "ansi-regex": "^3.0.0" 1070 | }, 1071 | "engines": { 1072 | "node": ">=4" 1073 | } 1074 | }, 1075 | "node_modules/strip-json-comments": { 1076 | "version": "2.0.1", 1077 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 1078 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", 1079 | "dev": true, 1080 | "engines": { 1081 | "node": ">=0.10.0" 1082 | } 1083 | }, 1084 | "node_modules/supports-color": { 1085 | "version": "6.0.0", 1086 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz", 1087 | "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", 1088 | "dev": true, 1089 | "dependencies": { 1090 | "has-flag": "^3.0.0" 1091 | }, 1092 | "engines": { 1093 | "node": ">=6" 1094 | } 1095 | }, 1096 | "node_modules/ts-node": { 1097 | "version": "8.3.0", 1098 | "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-8.3.0.tgz", 1099 | "integrity": "sha512-dyNS/RqyVTDcmNM4NIBAeDMpsAdaQ+ojdf0GOLqE6nwJOgzEkdRNzJywhDfwnuvB10oa6NLVG1rUJQCpRN7qoQ==", 1100 | "dev": true, 1101 | "dependencies": { 1102 | "arg": "^4.1.0", 1103 | "diff": "^4.0.1", 1104 | "make-error": "^1.1.1", 1105 | "source-map-support": "^0.5.6", 1106 | "yn": "^3.0.0" 1107 | }, 1108 | "bin": { 1109 | "ts-node": "dist/bin.js" 1110 | }, 1111 | "engines": { 1112 | "node": ">=4.2.0" 1113 | } 1114 | }, 1115 | "node_modules/ts-node/node_modules/diff": { 1116 | "version": "4.0.1", 1117 | "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", 1118 | "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", 1119 | "dev": true, 1120 | "engines": { 1121 | "node": ">=0.3.1" 1122 | } 1123 | }, 1124 | "node_modules/tslib": { 1125 | "version": "1.10.0", 1126 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", 1127 | "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", 1128 | "dev": true 1129 | }, 1130 | "node_modules/tslint": { 1131 | "version": "5.19.0", 1132 | "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.19.0.tgz", 1133 | "integrity": "sha512-1LwwtBxfRJZnUvoS9c0uj8XQtAnyhWr9KlNvDIdB+oXyT+VpsOAaEhEgKi1HrZ8rq0ki/AAnbGSv4KM6/AfVZw==", 1134 | "dev": true, 1135 | "dependencies": { 1136 | "@babel/code-frame": "^7.0.0", 1137 | "builtin-modules": "^1.1.1", 1138 | "chalk": "^2.3.0", 1139 | "commander": "^2.12.1", 1140 | "diff": "^3.2.0", 1141 | "glob": "^7.1.1", 1142 | "js-yaml": "^3.13.1", 1143 | "minimatch": "^3.0.4", 1144 | "mkdirp": "^0.5.1", 1145 | "resolve": "^1.3.2", 1146 | "semver": "^5.3.0", 1147 | "tslib": "^1.8.0", 1148 | "tsutils": "^2.29.0" 1149 | }, 1150 | "bin": { 1151 | "tslint": "bin/tslint" 1152 | }, 1153 | "engines": { 1154 | "node": ">=4.8.0" 1155 | } 1156 | }, 1157 | "node_modules/tslint-config-prettier": { 1158 | "version": "1.18.0", 1159 | "resolved": "https://registry.npmjs.org/tslint-config-prettier/-/tslint-config-prettier-1.18.0.tgz", 1160 | "integrity": "sha512-xPw9PgNPLG3iKRxmK7DWr+Ea/SzrvfHtjFt5LBl61gk2UBG/DB9kCXRjv+xyIU1rUtnayLeMUVJBcMX8Z17nDg==", 1161 | "dev": true, 1162 | "bin": { 1163 | "tslint-config-prettier-check": "bin/check.js" 1164 | }, 1165 | "engines": { 1166 | "node": ">=4.0.0" 1167 | } 1168 | }, 1169 | "node_modules/tsutils": { 1170 | "version": "2.29.0", 1171 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", 1172 | "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", 1173 | "dev": true, 1174 | "dependencies": { 1175 | "tslib": "^1.8.1" 1176 | } 1177 | }, 1178 | "node_modules/type-detect": { 1179 | "version": "4.0.8", 1180 | "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", 1181 | "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", 1182 | "dev": true, 1183 | "engines": { 1184 | "node": ">=4" 1185 | } 1186 | }, 1187 | "node_modules/typescript": { 1188 | "version": "3.6.2", 1189 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.6.2.tgz", 1190 | "integrity": "sha512-lmQ4L+J6mnu3xweP8+rOrUwzmN+MRAj7TgtJtDaXE5PMyX2kCrklhg3rvOsOIfNeAWMQWO2F1GPc1kMD2vLAfw==", 1191 | "dev": true, 1192 | "bin": { 1193 | "tsc": "bin/tsc", 1194 | "tsserver": "bin/tsserver" 1195 | }, 1196 | "engines": { 1197 | "node": ">=4.2.0" 1198 | } 1199 | }, 1200 | "node_modules/which": { 1201 | "version": "1.3.1", 1202 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", 1203 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", 1204 | "dev": true, 1205 | "dependencies": { 1206 | "isexe": "^2.0.0" 1207 | }, 1208 | "bin": { 1209 | "which": "bin/which" 1210 | } 1211 | }, 1212 | "node_modules/which-module": { 1213 | "version": "2.0.0", 1214 | "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", 1215 | "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", 1216 | "dev": true 1217 | }, 1218 | "node_modules/wide-align": { 1219 | "version": "1.1.3", 1220 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", 1221 | "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", 1222 | "dev": true, 1223 | "dependencies": { 1224 | "string-width": "^1.0.2 || 2" 1225 | } 1226 | }, 1227 | "node_modules/wrap-ansi": { 1228 | "version": "5.1.0", 1229 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", 1230 | "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", 1231 | "dev": true, 1232 | "dependencies": { 1233 | "ansi-styles": "^3.2.0", 1234 | "string-width": "^3.0.0", 1235 | "strip-ansi": "^5.0.0" 1236 | }, 1237 | "engines": { 1238 | "node": ">=6" 1239 | } 1240 | }, 1241 | "node_modules/wrap-ansi/node_modules/ansi-regex": { 1242 | "version": "4.1.0", 1243 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 1244 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 1245 | "dev": true, 1246 | "engines": { 1247 | "node": ">=6" 1248 | } 1249 | }, 1250 | "node_modules/wrap-ansi/node_modules/string-width": { 1251 | "version": "3.1.0", 1252 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 1253 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 1254 | "dev": true, 1255 | "dependencies": { 1256 | "emoji-regex": "^7.0.1", 1257 | "is-fullwidth-code-point": "^2.0.0", 1258 | "strip-ansi": "^5.1.0" 1259 | }, 1260 | "engines": { 1261 | "node": ">=6" 1262 | } 1263 | }, 1264 | "node_modules/wrap-ansi/node_modules/strip-ansi": { 1265 | "version": "5.2.0", 1266 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 1267 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 1268 | "dev": true, 1269 | "dependencies": { 1270 | "ansi-regex": "^4.1.0" 1271 | }, 1272 | "engines": { 1273 | "node": ">=6" 1274 | } 1275 | }, 1276 | "node_modules/wrappy": { 1277 | "version": "1.0.2", 1278 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1279 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 1280 | "dev": true 1281 | }, 1282 | "node_modules/y18n": { 1283 | "version": "4.0.3", 1284 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", 1285 | "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", 1286 | "dev": true 1287 | }, 1288 | "node_modules/yargs": { 1289 | "version": "13.3.2", 1290 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", 1291 | "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", 1292 | "dev": true, 1293 | "dependencies": { 1294 | "cliui": "^5.0.0", 1295 | "find-up": "^3.0.0", 1296 | "get-caller-file": "^2.0.1", 1297 | "require-directory": "^2.1.1", 1298 | "require-main-filename": "^2.0.0", 1299 | "set-blocking": "^2.0.0", 1300 | "string-width": "^3.0.0", 1301 | "which-module": "^2.0.0", 1302 | "y18n": "^4.0.0", 1303 | "yargs-parser": "^13.1.2" 1304 | } 1305 | }, 1306 | "node_modules/yargs-parser": { 1307 | "version": "13.1.2", 1308 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", 1309 | "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", 1310 | "dev": true, 1311 | "dependencies": { 1312 | "camelcase": "^5.0.0", 1313 | "decamelize": "^1.2.0" 1314 | } 1315 | }, 1316 | "node_modules/yargs-unparser": { 1317 | "version": "1.6.0", 1318 | "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.6.0.tgz", 1319 | "integrity": "sha512-W9tKgmSn0DpSatfri0nx52Joq5hVXgeLiqR/5G0sZNDoLZFOr/xjBUDcShCOGNsBnEMNo1KAMBkTej1Hm62HTw==", 1320 | "dev": true, 1321 | "dependencies": { 1322 | "flat": "^4.1.0", 1323 | "lodash": "^4.17.15", 1324 | "yargs": "^13.3.0" 1325 | }, 1326 | "engines": { 1327 | "node": ">=6" 1328 | } 1329 | }, 1330 | "node_modules/yargs/node_modules/ansi-regex": { 1331 | "version": "4.1.0", 1332 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 1333 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 1334 | "dev": true, 1335 | "engines": { 1336 | "node": ">=6" 1337 | } 1338 | }, 1339 | "node_modules/yargs/node_modules/string-width": { 1340 | "version": "3.1.0", 1341 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 1342 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 1343 | "dev": true, 1344 | "dependencies": { 1345 | "emoji-regex": "^7.0.1", 1346 | "is-fullwidth-code-point": "^2.0.0", 1347 | "strip-ansi": "^5.1.0" 1348 | }, 1349 | "engines": { 1350 | "node": ">=6" 1351 | } 1352 | }, 1353 | "node_modules/yargs/node_modules/strip-ansi": { 1354 | "version": "5.2.0", 1355 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 1356 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 1357 | "dev": true, 1358 | "dependencies": { 1359 | "ansi-regex": "^4.1.0" 1360 | }, 1361 | "engines": { 1362 | "node": ">=6" 1363 | } 1364 | }, 1365 | "node_modules/yn": { 1366 | "version": "3.1.1", 1367 | "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", 1368 | "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", 1369 | "dev": true, 1370 | "engines": { 1371 | "node": ">=6" 1372 | } 1373 | } 1374 | }, 1375 | "dependencies": { 1376 | "@babel/code-frame": { 1377 | "version": "7.5.5", 1378 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", 1379 | "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", 1380 | "dev": true, 1381 | "requires": { 1382 | "@babel/highlight": "^7.0.0" 1383 | } 1384 | }, 1385 | "@babel/highlight": { 1386 | "version": "7.5.0", 1387 | "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", 1388 | "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", 1389 | "dev": true, 1390 | "requires": { 1391 | "chalk": "^2.0.0", 1392 | "esutils": "^2.0.2", 1393 | "js-tokens": "^4.0.0" 1394 | } 1395 | }, 1396 | "@types/node": { 1397 | "version": "12.7.4", 1398 | "resolved": "https://registry.npmjs.org/@types/node/-/node-12.7.4.tgz", 1399 | "integrity": "sha512-W0+n1Y+gK/8G2P/piTkBBN38Qc5Q1ZSO6B5H3QmPCUewaiXOo2GCAWZ4ElZCcNhjJuBSUSLGFUJnmlCn5+nxOQ==", 1400 | "dev": true 1401 | }, 1402 | "@types/prop-types": { 1403 | "version": "15.7.2", 1404 | "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.2.tgz", 1405 | "integrity": "sha512-f8JzJNWVhKtc9dg/dyDNfliTKNOJSLa7Oht/ElZdF/UbMUmAH3rLmAk3ODNjw0mZajDEgatA03tRjB4+Dp/tzA==", 1406 | "dev": true 1407 | }, 1408 | "@types/react": { 1409 | "version": "16.9.2", 1410 | "resolved": "https://registry.npmjs.org/@types/react/-/react-16.9.2.tgz", 1411 | "integrity": "sha512-jYP2LWwlh+FTqGd9v7ynUKZzjj98T8x7Yclz479QdRhHfuW9yQ+0jjnD31eXSXutmBpppj5PYNLYLRfnZJvcfg==", 1412 | "dev": true, 1413 | "requires": { 1414 | "@types/prop-types": "*", 1415 | "csstype": "^2.2.0" 1416 | } 1417 | }, 1418 | "ansi-colors": { 1419 | "version": "3.2.3", 1420 | "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz", 1421 | "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==", 1422 | "dev": true 1423 | }, 1424 | "ansi-regex": { 1425 | "version": "3.0.0", 1426 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", 1427 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", 1428 | "dev": true 1429 | }, 1430 | "ansi-styles": { 1431 | "version": "3.2.1", 1432 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 1433 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 1434 | "dev": true, 1435 | "requires": { 1436 | "color-convert": "^1.9.0" 1437 | } 1438 | }, 1439 | "arg": { 1440 | "version": "4.1.1", 1441 | "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.1.tgz", 1442 | "integrity": "sha512-SlmP3fEA88MBv0PypnXZ8ZfJhwmDeIE3SP71j37AiXQBXYosPV0x6uISAaHYSlSVhmHOVkomen0tbGk6Anlebw==", 1443 | "dev": true 1444 | }, 1445 | "argparse": { 1446 | "version": "1.0.10", 1447 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 1448 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 1449 | "dev": true, 1450 | "requires": { 1451 | "sprintf-js": "~1.0.2" 1452 | } 1453 | }, 1454 | "assertion-error": { 1455 | "version": "1.1.0", 1456 | "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", 1457 | "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", 1458 | "dev": true 1459 | }, 1460 | "balanced-match": { 1461 | "version": "1.0.0", 1462 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 1463 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", 1464 | "dev": true 1465 | }, 1466 | "brace-expansion": { 1467 | "version": "1.1.11", 1468 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 1469 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 1470 | "dev": true, 1471 | "requires": { 1472 | "balanced-match": "^1.0.0", 1473 | "concat-map": "0.0.1" 1474 | } 1475 | }, 1476 | "browser-stdout": { 1477 | "version": "1.3.1", 1478 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", 1479 | "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", 1480 | "dev": true 1481 | }, 1482 | "buffer-from": { 1483 | "version": "1.1.1", 1484 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", 1485 | "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", 1486 | "dev": true 1487 | }, 1488 | "builtin-modules": { 1489 | "version": "1.1.1", 1490 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", 1491 | "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", 1492 | "dev": true 1493 | }, 1494 | "camelcase": { 1495 | "version": "5.3.1", 1496 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", 1497 | "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", 1498 | "dev": true 1499 | }, 1500 | "chai": { 1501 | "version": "4.2.0", 1502 | "resolved": "https://registry.npmjs.org/chai/-/chai-4.2.0.tgz", 1503 | "integrity": "sha512-XQU3bhBukrOsQCuwZndwGcCVQHyZi53fQ6Ys1Fym7E4olpIqqZZhhoFJoaKVvV17lWQoXYwgWN2nF5crA8J2jw==", 1504 | "dev": true, 1505 | "requires": { 1506 | "assertion-error": "^1.1.0", 1507 | "check-error": "^1.0.2", 1508 | "deep-eql": "^3.0.1", 1509 | "get-func-name": "^2.0.0", 1510 | "pathval": "^1.1.0", 1511 | "type-detect": "^4.0.5" 1512 | } 1513 | }, 1514 | "chalk": { 1515 | "version": "2.4.2", 1516 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 1517 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 1518 | "dev": true, 1519 | "requires": { 1520 | "ansi-styles": "^3.2.1", 1521 | "escape-string-regexp": "^1.0.5", 1522 | "supports-color": "^5.3.0" 1523 | }, 1524 | "dependencies": { 1525 | "supports-color": { 1526 | "version": "5.5.0", 1527 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1528 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1529 | "dev": true, 1530 | "requires": { 1531 | "has-flag": "^3.0.0" 1532 | } 1533 | } 1534 | } 1535 | }, 1536 | "check-error": { 1537 | "version": "1.0.2", 1538 | "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", 1539 | "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", 1540 | "dev": true 1541 | }, 1542 | "cliui": { 1543 | "version": "5.0.0", 1544 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", 1545 | "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", 1546 | "dev": true, 1547 | "requires": { 1548 | "string-width": "^3.1.0", 1549 | "strip-ansi": "^5.2.0", 1550 | "wrap-ansi": "^5.1.0" 1551 | }, 1552 | "dependencies": { 1553 | "ansi-regex": { 1554 | "version": "4.1.0", 1555 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 1556 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 1557 | "dev": true 1558 | }, 1559 | "string-width": { 1560 | "version": "3.1.0", 1561 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 1562 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 1563 | "dev": true, 1564 | "requires": { 1565 | "emoji-regex": "^7.0.1", 1566 | "is-fullwidth-code-point": "^2.0.0", 1567 | "strip-ansi": "^5.1.0" 1568 | } 1569 | }, 1570 | "strip-ansi": { 1571 | "version": "5.2.0", 1572 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 1573 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 1574 | "dev": true, 1575 | "requires": { 1576 | "ansi-regex": "^4.1.0" 1577 | } 1578 | } 1579 | } 1580 | }, 1581 | "color-convert": { 1582 | "version": "1.9.3", 1583 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 1584 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 1585 | "dev": true, 1586 | "requires": { 1587 | "color-name": "1.1.3" 1588 | } 1589 | }, 1590 | "color-name": { 1591 | "version": "1.1.3", 1592 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 1593 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", 1594 | "dev": true 1595 | }, 1596 | "commander": { 1597 | "version": "2.20.0", 1598 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz", 1599 | "integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==", 1600 | "dev": true 1601 | }, 1602 | "concat-map": { 1603 | "version": "0.0.1", 1604 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 1605 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 1606 | "dev": true 1607 | }, 1608 | "csstype": { 1609 | "version": "2.6.6", 1610 | "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.6.tgz", 1611 | "integrity": "sha512-RpFbQGUE74iyPgvr46U9t1xoQBM8T4BL8SxrN66Le2xYAPSaDJJKeztV3awugusb3g3G9iL8StmkBBXhcbbXhg==", 1612 | "dev": true 1613 | }, 1614 | "debug": { 1615 | "version": "3.2.6", 1616 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", 1617 | "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", 1618 | "dev": true, 1619 | "requires": { 1620 | "ms": "^2.1.1" 1621 | } 1622 | }, 1623 | "decamelize": { 1624 | "version": "1.2.0", 1625 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", 1626 | "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", 1627 | "dev": true 1628 | }, 1629 | "deep-eql": { 1630 | "version": "3.0.1", 1631 | "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", 1632 | "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", 1633 | "dev": true, 1634 | "requires": { 1635 | "type-detect": "^4.0.0" 1636 | } 1637 | }, 1638 | "define-properties": { 1639 | "version": "1.1.3", 1640 | "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", 1641 | "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", 1642 | "dev": true, 1643 | "requires": { 1644 | "object-keys": "^1.0.12" 1645 | } 1646 | }, 1647 | "diff": { 1648 | "version": "3.5.0", 1649 | "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", 1650 | "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", 1651 | "dev": true 1652 | }, 1653 | "emoji-regex": { 1654 | "version": "7.0.3", 1655 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", 1656 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", 1657 | "dev": true 1658 | }, 1659 | "es-abstract": { 1660 | "version": "1.14.2", 1661 | "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.14.2.tgz", 1662 | "integrity": "sha512-DgoQmbpFNOofkjJtKwr87Ma5EW4Dc8fWhD0R+ndq7Oc456ivUfGOOP6oAZTTKl5/CcNMP+EN+e3/iUzgE0veZg==", 1663 | "dev": true, 1664 | "requires": { 1665 | "es-to-primitive": "^1.2.0", 1666 | "function-bind": "^1.1.1", 1667 | "has": "^1.0.3", 1668 | "has-symbols": "^1.0.0", 1669 | "is-callable": "^1.1.4", 1670 | "is-regex": "^1.0.4", 1671 | "object-inspect": "^1.6.0", 1672 | "object-keys": "^1.1.1", 1673 | "string.prototype.trimleft": "^2.0.0", 1674 | "string.prototype.trimright": "^2.0.0" 1675 | } 1676 | }, 1677 | "es-to-primitive": { 1678 | "version": "1.2.0", 1679 | "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz", 1680 | "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==", 1681 | "dev": true, 1682 | "requires": { 1683 | "is-callable": "^1.1.4", 1684 | "is-date-object": "^1.0.1", 1685 | "is-symbol": "^1.0.2" 1686 | } 1687 | }, 1688 | "escape-string-regexp": { 1689 | "version": "1.0.5", 1690 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 1691 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", 1692 | "dev": true 1693 | }, 1694 | "esprima": { 1695 | "version": "4.0.1", 1696 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 1697 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 1698 | "dev": true 1699 | }, 1700 | "esutils": { 1701 | "version": "2.0.3", 1702 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 1703 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 1704 | "dev": true 1705 | }, 1706 | "find-up": { 1707 | "version": "3.0.0", 1708 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", 1709 | "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", 1710 | "dev": true, 1711 | "requires": { 1712 | "locate-path": "^3.0.0" 1713 | } 1714 | }, 1715 | "flat": { 1716 | "version": "4.1.1", 1717 | "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.1.tgz", 1718 | "integrity": "sha512-FmTtBsHskrU6FJ2VxCnsDb84wu9zhmO3cUX2kGFb5tuwhfXxGciiT0oRY+cck35QmG+NmGh5eLz6lLCpWTqwpA==", 1719 | "dev": true, 1720 | "requires": { 1721 | "is-buffer": "~2.0.3" 1722 | } 1723 | }, 1724 | "fs.realpath": { 1725 | "version": "1.0.0", 1726 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1727 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 1728 | "dev": true 1729 | }, 1730 | "function-bind": { 1731 | "version": "1.1.1", 1732 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 1733 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", 1734 | "dev": true 1735 | }, 1736 | "get-caller-file": { 1737 | "version": "2.0.5", 1738 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 1739 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 1740 | "dev": true 1741 | }, 1742 | "get-func-name": { 1743 | "version": "2.0.0", 1744 | "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", 1745 | "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", 1746 | "dev": true 1747 | }, 1748 | "glob": { 1749 | "version": "7.1.3", 1750 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", 1751 | "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", 1752 | "dev": true, 1753 | "requires": { 1754 | "fs.realpath": "^1.0.0", 1755 | "inflight": "^1.0.4", 1756 | "inherits": "2", 1757 | "minimatch": "^3.0.4", 1758 | "once": "^1.3.0", 1759 | "path-is-absolute": "^1.0.0" 1760 | } 1761 | }, 1762 | "growl": { 1763 | "version": "1.10.5", 1764 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", 1765 | "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", 1766 | "dev": true 1767 | }, 1768 | "has": { 1769 | "version": "1.0.3", 1770 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 1771 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 1772 | "dev": true, 1773 | "requires": { 1774 | "function-bind": "^1.1.1" 1775 | } 1776 | }, 1777 | "has-flag": { 1778 | "version": "3.0.0", 1779 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 1780 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", 1781 | "dev": true 1782 | }, 1783 | "has-symbols": { 1784 | "version": "1.0.0", 1785 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", 1786 | "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", 1787 | "dev": true 1788 | }, 1789 | "he": { 1790 | "version": "1.2.0", 1791 | "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", 1792 | "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", 1793 | "dev": true 1794 | }, 1795 | "inflight": { 1796 | "version": "1.0.6", 1797 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1798 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 1799 | "dev": true, 1800 | "requires": { 1801 | "once": "^1.3.0", 1802 | "wrappy": "1" 1803 | } 1804 | }, 1805 | "inherits": { 1806 | "version": "2.0.4", 1807 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1808 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1809 | "dev": true 1810 | }, 1811 | "is-buffer": { 1812 | "version": "2.0.5", 1813 | "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", 1814 | "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==", 1815 | "dev": true 1816 | }, 1817 | "is-callable": { 1818 | "version": "1.1.4", 1819 | "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", 1820 | "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==", 1821 | "dev": true 1822 | }, 1823 | "is-date-object": { 1824 | "version": "1.0.1", 1825 | "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", 1826 | "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", 1827 | "dev": true 1828 | }, 1829 | "is-fullwidth-code-point": { 1830 | "version": "2.0.0", 1831 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 1832 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 1833 | "dev": true 1834 | }, 1835 | "is-regex": { 1836 | "version": "1.0.4", 1837 | "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", 1838 | "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", 1839 | "dev": true, 1840 | "requires": { 1841 | "has": "^1.0.1" 1842 | } 1843 | }, 1844 | "is-symbol": { 1845 | "version": "1.0.2", 1846 | "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz", 1847 | "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", 1848 | "dev": true, 1849 | "requires": { 1850 | "has-symbols": "^1.0.0" 1851 | } 1852 | }, 1853 | "isexe": { 1854 | "version": "2.0.0", 1855 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1856 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", 1857 | "dev": true 1858 | }, 1859 | "js-tokens": { 1860 | "version": "4.0.0", 1861 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 1862 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", 1863 | "dev": true 1864 | }, 1865 | "js-yaml": { 1866 | "version": "3.13.1", 1867 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", 1868 | "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", 1869 | "dev": true, 1870 | "requires": { 1871 | "argparse": "^1.0.7", 1872 | "esprima": "^4.0.0" 1873 | } 1874 | }, 1875 | "locate-path": { 1876 | "version": "3.0.0", 1877 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", 1878 | "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", 1879 | "dev": true, 1880 | "requires": { 1881 | "p-locate": "^3.0.0", 1882 | "path-exists": "^3.0.0" 1883 | } 1884 | }, 1885 | "lodash": { 1886 | "version": "4.17.21", 1887 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 1888 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", 1889 | "dev": true 1890 | }, 1891 | "log-symbols": { 1892 | "version": "2.2.0", 1893 | "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", 1894 | "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", 1895 | "dev": true, 1896 | "requires": { 1897 | "chalk": "^2.0.1" 1898 | } 1899 | }, 1900 | "loose-envify": { 1901 | "version": "1.4.0", 1902 | "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", 1903 | "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", 1904 | "dev": true, 1905 | "requires": { 1906 | "js-tokens": "^3.0.0 || ^4.0.0" 1907 | } 1908 | }, 1909 | "make-error": { 1910 | "version": "1.3.5", 1911 | "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.5.tgz", 1912 | "integrity": "sha512-c3sIjNUow0+8swNwVpqoH4YCShKNFkMaw6oH1mNS2haDZQqkeZFlHS3dhoeEbKKmJB4vXpJucU6oH75aDYeE9g==", 1913 | "dev": true 1914 | }, 1915 | "minimatch": { 1916 | "version": "3.0.4", 1917 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 1918 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 1919 | "dev": true, 1920 | "requires": { 1921 | "brace-expansion": "^1.1.7" 1922 | } 1923 | }, 1924 | "minimist": { 1925 | "version": "1.2.5", 1926 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 1927 | "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", 1928 | "dev": true 1929 | }, 1930 | "mkdirp": { 1931 | "version": "0.5.4", 1932 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.4.tgz", 1933 | "integrity": "sha512-iG9AK/dJLtJ0XNgTuDbSyNS3zECqDlAhnQW4CsNxBG3LQJBbHmRX1egw39DmtOdCAqY+dKXV+sgPgilNWUKMVw==", 1934 | "dev": true, 1935 | "requires": { 1936 | "minimist": "^1.2.5" 1937 | } 1938 | }, 1939 | "mocha": { 1940 | "version": "6.2.3", 1941 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-6.2.3.tgz", 1942 | "integrity": "sha512-0R/3FvjIGH3eEuG17ccFPk117XL2rWxatr81a57D+r/x2uTYZRbdZ4oVidEUMh2W2TJDa7MdAb12Lm2/qrKajg==", 1943 | "dev": true, 1944 | "requires": { 1945 | "ansi-colors": "3.2.3", 1946 | "browser-stdout": "1.3.1", 1947 | "debug": "3.2.6", 1948 | "diff": "3.5.0", 1949 | "escape-string-regexp": "1.0.5", 1950 | "find-up": "3.0.0", 1951 | "glob": "7.1.3", 1952 | "growl": "1.10.5", 1953 | "he": "1.2.0", 1954 | "js-yaml": "3.13.1", 1955 | "log-symbols": "2.2.0", 1956 | "minimatch": "3.0.4", 1957 | "mkdirp": "0.5.4", 1958 | "ms": "2.1.1", 1959 | "node-environment-flags": "1.0.5", 1960 | "object.assign": "4.1.0", 1961 | "strip-json-comments": "2.0.1", 1962 | "supports-color": "6.0.0", 1963 | "which": "1.3.1", 1964 | "wide-align": "1.1.3", 1965 | "yargs": "13.3.2", 1966 | "yargs-parser": "13.1.2", 1967 | "yargs-unparser": "1.6.0" 1968 | } 1969 | }, 1970 | "ms": { 1971 | "version": "2.1.1", 1972 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 1973 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", 1974 | "dev": true 1975 | }, 1976 | "node-environment-flags": { 1977 | "version": "1.0.5", 1978 | "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.5.tgz", 1979 | "integrity": "sha512-VNYPRfGfmZLx0Ye20jWzHUjyTW/c+6Wq+iLhDzUI4XmhrDd9l/FozXV3F2xOaXjvp0co0+v1YSR3CMP6g+VvLQ==", 1980 | "dev": true, 1981 | "requires": { 1982 | "object.getownpropertydescriptors": "^2.0.3", 1983 | "semver": "^5.7.0" 1984 | } 1985 | }, 1986 | "object-assign": { 1987 | "version": "4.1.1", 1988 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1989 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", 1990 | "dev": true 1991 | }, 1992 | "object-inspect": { 1993 | "version": "1.6.0", 1994 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.6.0.tgz", 1995 | "integrity": "sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ==", 1996 | "dev": true 1997 | }, 1998 | "object-keys": { 1999 | "version": "1.1.1", 2000 | "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", 2001 | "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", 2002 | "dev": true 2003 | }, 2004 | "object.assign": { 2005 | "version": "4.1.0", 2006 | "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", 2007 | "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", 2008 | "dev": true, 2009 | "requires": { 2010 | "define-properties": "^1.1.2", 2011 | "function-bind": "^1.1.1", 2012 | "has-symbols": "^1.0.0", 2013 | "object-keys": "^1.0.11" 2014 | } 2015 | }, 2016 | "object.getownpropertydescriptors": { 2017 | "version": "2.0.3", 2018 | "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", 2019 | "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=", 2020 | "dev": true, 2021 | "requires": { 2022 | "define-properties": "^1.1.2", 2023 | "es-abstract": "^1.5.1" 2024 | } 2025 | }, 2026 | "once": { 2027 | "version": "1.4.0", 2028 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 2029 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 2030 | "dev": true, 2031 | "requires": { 2032 | "wrappy": "1" 2033 | } 2034 | }, 2035 | "p-limit": { 2036 | "version": "2.3.0", 2037 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", 2038 | "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", 2039 | "dev": true, 2040 | "requires": { 2041 | "p-try": "^2.0.0" 2042 | } 2043 | }, 2044 | "p-locate": { 2045 | "version": "3.0.0", 2046 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", 2047 | "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", 2048 | "dev": true, 2049 | "requires": { 2050 | "p-limit": "^2.0.0" 2051 | } 2052 | }, 2053 | "p-try": { 2054 | "version": "2.2.0", 2055 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", 2056 | "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", 2057 | "dev": true 2058 | }, 2059 | "path-exists": { 2060 | "version": "3.0.0", 2061 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", 2062 | "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", 2063 | "dev": true 2064 | }, 2065 | "path-is-absolute": { 2066 | "version": "1.0.1", 2067 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 2068 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 2069 | "dev": true 2070 | }, 2071 | "path-parse": { 2072 | "version": "1.0.6", 2073 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", 2074 | "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", 2075 | "dev": true 2076 | }, 2077 | "pathval": { 2078 | "version": "1.1.0", 2079 | "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.0.tgz", 2080 | "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=", 2081 | "dev": true 2082 | }, 2083 | "prettier": { 2084 | "version": "1.18.2", 2085 | "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.18.2.tgz", 2086 | "integrity": "sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw==", 2087 | "dev": true 2088 | }, 2089 | "prop-types": { 2090 | "version": "15.7.2", 2091 | "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz", 2092 | "integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==", 2093 | "dev": true, 2094 | "requires": { 2095 | "loose-envify": "^1.4.0", 2096 | "object-assign": "^4.1.1", 2097 | "react-is": "^16.8.1" 2098 | } 2099 | }, 2100 | "react": { 2101 | "version": "16.9.0", 2102 | "resolved": "https://registry.npmjs.org/react/-/react-16.9.0.tgz", 2103 | "integrity": "sha512-+7LQnFBwkiw+BobzOF6N//BdoNw0ouwmSJTEm9cglOOmsg/TMiFHZLe2sEoN5M7LgJTj9oHH0gxklfnQe66S1w==", 2104 | "dev": true, 2105 | "requires": { 2106 | "loose-envify": "^1.1.0", 2107 | "object-assign": "^4.1.1", 2108 | "prop-types": "^15.6.2" 2109 | } 2110 | }, 2111 | "react-is": { 2112 | "version": "16.9.0", 2113 | "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.9.0.tgz", 2114 | "integrity": "sha512-tJBzzzIgnnRfEm046qRcURvwQnZVXmuCbscxUO5RWrGTXpon2d4c8mI0D8WE6ydVIm29JiLB6+RslkIvym9Rjw==", 2115 | "dev": true 2116 | }, 2117 | "require-directory": { 2118 | "version": "2.1.1", 2119 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 2120 | "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", 2121 | "dev": true 2122 | }, 2123 | "require-main-filename": { 2124 | "version": "2.0.0", 2125 | "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", 2126 | "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", 2127 | "dev": true 2128 | }, 2129 | "resolve": { 2130 | "version": "1.12.0", 2131 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", 2132 | "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", 2133 | "dev": true, 2134 | "requires": { 2135 | "path-parse": "^1.0.6" 2136 | } 2137 | }, 2138 | "semver": { 2139 | "version": "5.7.1", 2140 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 2141 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", 2142 | "dev": true 2143 | }, 2144 | "set-blocking": { 2145 | "version": "2.0.0", 2146 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", 2147 | "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", 2148 | "dev": true 2149 | }, 2150 | "source-map": { 2151 | "version": "0.6.1", 2152 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 2153 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", 2154 | "dev": true 2155 | }, 2156 | "source-map-support": { 2157 | "version": "0.5.13", 2158 | "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", 2159 | "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", 2160 | "dev": true, 2161 | "requires": { 2162 | "buffer-from": "^1.0.0", 2163 | "source-map": "^0.6.0" 2164 | } 2165 | }, 2166 | "sprintf-js": { 2167 | "version": "1.0.3", 2168 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 2169 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", 2170 | "dev": true 2171 | }, 2172 | "string-width": { 2173 | "version": "2.1.1", 2174 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", 2175 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", 2176 | "dev": true, 2177 | "requires": { 2178 | "is-fullwidth-code-point": "^2.0.0", 2179 | "strip-ansi": "^4.0.0" 2180 | } 2181 | }, 2182 | "string.prototype.trimleft": { 2183 | "version": "2.0.0", 2184 | "resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.0.0.tgz", 2185 | "integrity": "sha1-aLaqjhYsaoDnbjqKDC50cYbicf8=", 2186 | "dev": true, 2187 | "requires": { 2188 | "define-properties": "^1.1.2", 2189 | "function-bind": "^1.0.2" 2190 | } 2191 | }, 2192 | "string.prototype.trimright": { 2193 | "version": "2.0.0", 2194 | "resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.0.0.tgz", 2195 | "integrity": "sha1-q0pW2AKgH75yk+EehPJNyBZGYd0=", 2196 | "dev": true, 2197 | "requires": { 2198 | "define-properties": "^1.1.2", 2199 | "function-bind": "^1.0.2" 2200 | } 2201 | }, 2202 | "strip-ansi": { 2203 | "version": "4.0.0", 2204 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", 2205 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", 2206 | "dev": true, 2207 | "requires": { 2208 | "ansi-regex": "^3.0.0" 2209 | } 2210 | }, 2211 | "strip-json-comments": { 2212 | "version": "2.0.1", 2213 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 2214 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", 2215 | "dev": true 2216 | }, 2217 | "supports-color": { 2218 | "version": "6.0.0", 2219 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz", 2220 | "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", 2221 | "dev": true, 2222 | "requires": { 2223 | "has-flag": "^3.0.0" 2224 | } 2225 | }, 2226 | "ts-node": { 2227 | "version": "8.3.0", 2228 | "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-8.3.0.tgz", 2229 | "integrity": "sha512-dyNS/RqyVTDcmNM4NIBAeDMpsAdaQ+ojdf0GOLqE6nwJOgzEkdRNzJywhDfwnuvB10oa6NLVG1rUJQCpRN7qoQ==", 2230 | "dev": true, 2231 | "requires": { 2232 | "arg": "^4.1.0", 2233 | "diff": "^4.0.1", 2234 | "make-error": "^1.1.1", 2235 | "source-map-support": "^0.5.6", 2236 | "yn": "^3.0.0" 2237 | }, 2238 | "dependencies": { 2239 | "diff": { 2240 | "version": "4.0.1", 2241 | "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", 2242 | "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", 2243 | "dev": true 2244 | } 2245 | } 2246 | }, 2247 | "tslib": { 2248 | "version": "1.10.0", 2249 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", 2250 | "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", 2251 | "dev": true 2252 | }, 2253 | "tslint": { 2254 | "version": "5.19.0", 2255 | "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.19.0.tgz", 2256 | "integrity": "sha512-1LwwtBxfRJZnUvoS9c0uj8XQtAnyhWr9KlNvDIdB+oXyT+VpsOAaEhEgKi1HrZ8rq0ki/AAnbGSv4KM6/AfVZw==", 2257 | "dev": true, 2258 | "requires": { 2259 | "@babel/code-frame": "^7.0.0", 2260 | "builtin-modules": "^1.1.1", 2261 | "chalk": "^2.3.0", 2262 | "commander": "^2.12.1", 2263 | "diff": "^3.2.0", 2264 | "glob": "^7.1.1", 2265 | "js-yaml": "^3.13.1", 2266 | "minimatch": "^3.0.4", 2267 | "mkdirp": "^0.5.1", 2268 | "resolve": "^1.3.2", 2269 | "semver": "^5.3.0", 2270 | "tslib": "^1.8.0", 2271 | "tsutils": "^2.29.0" 2272 | } 2273 | }, 2274 | "tslint-config-prettier": { 2275 | "version": "1.18.0", 2276 | "resolved": "https://registry.npmjs.org/tslint-config-prettier/-/tslint-config-prettier-1.18.0.tgz", 2277 | "integrity": "sha512-xPw9PgNPLG3iKRxmK7DWr+Ea/SzrvfHtjFt5LBl61gk2UBG/DB9kCXRjv+xyIU1rUtnayLeMUVJBcMX8Z17nDg==", 2278 | "dev": true 2279 | }, 2280 | "tsutils": { 2281 | "version": "2.29.0", 2282 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", 2283 | "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", 2284 | "dev": true, 2285 | "requires": { 2286 | "tslib": "^1.8.1" 2287 | } 2288 | }, 2289 | "type-detect": { 2290 | "version": "4.0.8", 2291 | "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", 2292 | "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", 2293 | "dev": true 2294 | }, 2295 | "typescript": { 2296 | "version": "3.6.2", 2297 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.6.2.tgz", 2298 | "integrity": "sha512-lmQ4L+J6mnu3xweP8+rOrUwzmN+MRAj7TgtJtDaXE5PMyX2kCrklhg3rvOsOIfNeAWMQWO2F1GPc1kMD2vLAfw==", 2299 | "dev": true 2300 | }, 2301 | "which": { 2302 | "version": "1.3.1", 2303 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", 2304 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", 2305 | "dev": true, 2306 | "requires": { 2307 | "isexe": "^2.0.0" 2308 | } 2309 | }, 2310 | "which-module": { 2311 | "version": "2.0.0", 2312 | "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", 2313 | "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", 2314 | "dev": true 2315 | }, 2316 | "wide-align": { 2317 | "version": "1.1.3", 2318 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", 2319 | "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", 2320 | "dev": true, 2321 | "requires": { 2322 | "string-width": "^1.0.2 || 2" 2323 | } 2324 | }, 2325 | "wrap-ansi": { 2326 | "version": "5.1.0", 2327 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", 2328 | "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", 2329 | "dev": true, 2330 | "requires": { 2331 | "ansi-styles": "^3.2.0", 2332 | "string-width": "^3.0.0", 2333 | "strip-ansi": "^5.0.0" 2334 | }, 2335 | "dependencies": { 2336 | "ansi-regex": { 2337 | "version": "4.1.0", 2338 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 2339 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 2340 | "dev": true 2341 | }, 2342 | "string-width": { 2343 | "version": "3.1.0", 2344 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 2345 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 2346 | "dev": true, 2347 | "requires": { 2348 | "emoji-regex": "^7.0.1", 2349 | "is-fullwidth-code-point": "^2.0.0", 2350 | "strip-ansi": "^5.1.0" 2351 | } 2352 | }, 2353 | "strip-ansi": { 2354 | "version": "5.2.0", 2355 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 2356 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 2357 | "dev": true, 2358 | "requires": { 2359 | "ansi-regex": "^4.1.0" 2360 | } 2361 | } 2362 | } 2363 | }, 2364 | "wrappy": { 2365 | "version": "1.0.2", 2366 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2367 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 2368 | "dev": true 2369 | }, 2370 | "y18n": { 2371 | "version": "4.0.3", 2372 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", 2373 | "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", 2374 | "dev": true 2375 | }, 2376 | "yargs": { 2377 | "version": "13.3.2", 2378 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", 2379 | "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", 2380 | "dev": true, 2381 | "requires": { 2382 | "cliui": "^5.0.0", 2383 | "find-up": "^3.0.0", 2384 | "get-caller-file": "^2.0.1", 2385 | "require-directory": "^2.1.1", 2386 | "require-main-filename": "^2.0.0", 2387 | "set-blocking": "^2.0.0", 2388 | "string-width": "^3.0.0", 2389 | "which-module": "^2.0.0", 2390 | "y18n": "^4.0.0", 2391 | "yargs-parser": "^13.1.2" 2392 | }, 2393 | "dependencies": { 2394 | "ansi-regex": { 2395 | "version": "4.1.0", 2396 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 2397 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 2398 | "dev": true 2399 | }, 2400 | "string-width": { 2401 | "version": "3.1.0", 2402 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 2403 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 2404 | "dev": true, 2405 | "requires": { 2406 | "emoji-regex": "^7.0.1", 2407 | "is-fullwidth-code-point": "^2.0.0", 2408 | "strip-ansi": "^5.1.0" 2409 | } 2410 | }, 2411 | "strip-ansi": { 2412 | "version": "5.2.0", 2413 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 2414 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 2415 | "dev": true, 2416 | "requires": { 2417 | "ansi-regex": "^4.1.0" 2418 | } 2419 | } 2420 | } 2421 | }, 2422 | "yargs-parser": { 2423 | "version": "13.1.2", 2424 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", 2425 | "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", 2426 | "dev": true, 2427 | "requires": { 2428 | "camelcase": "^5.0.0", 2429 | "decamelize": "^1.2.0" 2430 | } 2431 | }, 2432 | "yargs-unparser": { 2433 | "version": "1.6.0", 2434 | "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.6.0.tgz", 2435 | "integrity": "sha512-W9tKgmSn0DpSatfri0nx52Joq5hVXgeLiqR/5G0sZNDoLZFOr/xjBUDcShCOGNsBnEMNo1KAMBkTej1Hm62HTw==", 2436 | "dev": true, 2437 | "requires": { 2438 | "flat": "^4.1.0", 2439 | "lodash": "^4.17.15", 2440 | "yargs": "^13.3.0" 2441 | } 2442 | }, 2443 | "yn": { 2444 | "version": "3.1.1", 2445 | "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", 2446 | "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", 2447 | "dev": true 2448 | } 2449 | } 2450 | } 2451 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ts-react-display-name", 3 | "version": "1.2.2", 4 | "description": "Typescript transformer that adds displayName to React components", 5 | "keywords": [ 6 | "react", 7 | "typescript", 8 | "displayName", 9 | "transformer" 10 | ], 11 | "main": "dist/index.js", 12 | "types": "dist/index.d.ts", 13 | "scripts": { 14 | "test": "npm run lint && npm run unit-tests && npm run prettier-check", 15 | "unit-tests": "mocha --require ts-node/register test/{**/,}*-test.ts", 16 | "lint": "tslint -c tslint.json src/**/* test/**/*", 17 | "prettier-check": "prettier --config .prettierrc --check \"{{src,test}/**/*,*}.ts\"", 18 | "prettier": "prettier --config .prettierrc --write \"{{src,test}/**/*,*}.ts\"", 19 | "build": "tsc", 20 | "watch-tests": "mocha --watch --require ts-node/register test/{**/,}*-test.ts", 21 | "clean": "rm -fr dist" 22 | }, 23 | "repository": { 24 | "type": "git", 25 | "url": "git+https://github.com/lud2k/ts-react-display-name.git" 26 | }, 27 | "author": "Ludovic Cabre", 28 | "license": "MIT", 29 | "bugs": { 30 | "url": "https://github.com/lud2k/ts-react-display-name/issues" 31 | }, 32 | "homepage": "https://github.com/lud2k/ts-react-display-name#readme", 33 | "devDependencies": { 34 | "@types/node": "^12.7.4", 35 | "@types/react": "^16.9.2", 36 | "chai": "^4.2.0", 37 | "mocha": "^6.2.0", 38 | "prettier": "^1.18.2", 39 | "react": "^16.9.0", 40 | "ts-node": "^8.3.0", 41 | "tslint": "^5.19.0", 42 | "tslint-config-prettier": "^1.18.0", 43 | "typescript": "^3.6.2" 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | import * as path from 'path' 2 | import * as ts from 'typescript' 3 | 4 | export interface AddDisplayNameOptions { 5 | /** 6 | * Only add displayName to components defined at the root of the file. 7 | * Setting this to true limits the scope of research for components to the root of the file. This 8 | * can dramatically speed things up. Usually components are deployed at the root of the file so 9 | * setting this to true is recommended. 10 | */ 11 | onlyFileRoot: boolean 12 | /** 13 | * List of function types to add displayName to. 14 | * Default: ['React.FunctionComponent', 'React.FC'] 15 | */ 16 | funcTypes: string[] 17 | /** 18 | * List of classes to add displayName to. 19 | * Default: ['React.Component', 'React.PureComponent'] 20 | */ 21 | classTypes: string[] 22 | /** 23 | * List of factory functions to add displayName to. 24 | * Default: ['React.forwardRef', 'React.memo'] 25 | */ 26 | factoryFuncs: string[] 27 | } 28 | 29 | /** 30 | * Creates an assignment statement. We assign the name of the given node to the property displayName 31 | * of that node (node.displayName = node.name). 32 | */ 33 | const createSetDisplayNameStatement = (node: ts.VariableDeclaration, sf: ts.SourceFile) => { 34 | const name = ts.getNameOfDeclaration(node).getText(sf) 35 | const displayNameProp = ts.createPropertyAccess(node.name as ts.Expression, 'displayName') 36 | return ts.createAssignment(displayNameProp, ts.createStringLiteral(name)) 37 | } 38 | 39 | /** 40 | * Creates a static class property named "displayName" and with value the name of the class. 41 | */ 42 | const createDisplayNameProperty = (node: ts.ClassDeclaration, sf: ts.SourceFile) => { 43 | const declaration = ts.getNameOfDeclaration(node) 44 | const name: string = declaration ? declaration.getText(sf) : path.parse(sf.fileName).name 45 | return ts.createProperty( 46 | undefined, 47 | ts.createModifiersFromModifierFlags(ts.ModifierFlags.Static), 48 | 'displayName', 49 | undefined, 50 | undefined, 51 | ts.createStringLiteral(name) 52 | ) 53 | } 54 | 55 | /** 56 | * Checks if a variable declaration is for a React.FunctionComponent/React.FC. 57 | */ 58 | const isFunctionComponent = ( 59 | node: ts.VariableDeclaration, 60 | sf: ts.SourceFile, 61 | options: AddDisplayNameOptions 62 | ): boolean => { 63 | if (node.type && ts.isTypeReferenceNode(node.type)) { 64 | const type = node.type.typeName.getText(sf) 65 | return options.funcTypes.some(funcType => funcType === type) 66 | } 67 | return false 68 | } 69 | 70 | /** 71 | * Checks if a variable declaration is for a React.FunctionComponent. 72 | */ 73 | const isReactComponent = ( 74 | node: ts.ClassDeclaration, 75 | sf: ts.SourceFile, 76 | options: AddDisplayNameOptions 77 | ): boolean => { 78 | return ( 79 | node.heritageClauses && 80 | node.heritageClauses.some( 81 | heritageClause => 82 | heritageClause.types && 83 | heritageClause.types.some(type => { 84 | const typeStr = type.getText(sf) 85 | return options.classTypes.some(classType => typeStr.startsWith(classType)) 86 | }) 87 | ) 88 | ) 89 | } 90 | 91 | /** 92 | * Checks if a variable declaration is for a React.forwardRef/React.memo. 93 | */ 94 | const isFactoryComponent = ( 95 | node: ts.CallExpression | ts.PropertyAccessExpression, 96 | sf: ts.SourceFile, 97 | options: AddDisplayNameOptions 98 | ) => { 99 | if (ts.isCallExpression(node) && ts.isIdentifier(node.expression)) { 100 | const type = ts.getNameOfDeclaration(node.expression).getText(sf) 101 | return options.factoryFuncs.some(factoryType => factoryType === type) 102 | } 103 | if ( 104 | ts.isPropertyAccessExpression(node) && 105 | ts.isIdentifier(node.expression) && 106 | ts.isIdentifier(node.name) 107 | ) { 108 | const type = 109 | ts.getNameOfDeclaration(node.expression).getText(sf) + 110 | '.' + 111 | ts.getNameOfDeclaration(node.name).getText(sf) 112 | return options.factoryFuncs.some(factoryType => factoryType === type) 113 | } 114 | if (ts.isCallExpression(node.expression) || ts.isPropertyAccessExpression(node.expression)) { 115 | return isFactoryComponent(node.expression, sf, options) 116 | } 117 | return false 118 | } 119 | 120 | /** 121 | * Checks if `static displayName` is defined for class 122 | */ 123 | function isStaticDisplayNameDefined(classDeclaration: ts.ClassDeclaration): boolean { 124 | return ( 125 | classDeclaration.members.find(member => { 126 | try { 127 | return ( 128 | member.kind === ts.SyntaxKind.PropertyDeclaration && 129 | member.modifiers.some( 130 | modifier => (modifier.kind & ts.ModifierFlags.Static) === ts.ModifierFlags.Static 131 | ) && 132 | (member.name as ts.Identifier).text === 'displayName' 133 | ) 134 | } catch (e) { 135 | return false 136 | } 137 | }) !== undefined 138 | ) 139 | } 140 | 141 | /** 142 | * Recursive function that visits the nodes of the file. 143 | */ 144 | function visit(ctx: ts.TransformationContext, sf: ts.SourceFile, options: AddDisplayNameOptions) { 145 | const visitor: ts.Visitor = (node: ts.Node): ts.VisitResult => { 146 | if (ts.isVariableStatement(node)) { 147 | const components = [] 148 | ts.forEachChild(node, (child1: ts.Node) => { 149 | if (ts.isVariableDeclarationList(child1)) { 150 | ts.forEachChild(child1, (child2: ts.Node) => { 151 | if (ts.isVariableDeclaration(child2)) { 152 | if (isFunctionComponent(child2, sf, options)) { 153 | components.push(child2) 154 | } else { 155 | ts.forEachChild(child2, (child3: ts.Node) => { 156 | if (ts.isCallExpression(child3) || ts.isPropertyAccessExpression(child3)) { 157 | if (isFactoryComponent(child3, sf, options)) { 158 | components.push(child2) 159 | } 160 | } 161 | }) 162 | } 163 | } 164 | }) 165 | } 166 | }) 167 | let result = node 168 | if (!options.onlyFileRoot) { 169 | result = ts.visitEachChild(node, visitor, ctx) 170 | } 171 | if (components.length) { 172 | return [result, ...components.map(comp => createSetDisplayNameStatement(comp, sf))] 173 | } else { 174 | return result 175 | } 176 | } 177 | if (ts.isClassDeclaration(node) && isReactComponent(node, sf, options)) { 178 | const result = ts.visitEachChild(node, visitor, ctx) 179 | if (!isStaticDisplayNameDefined(result)) { 180 | const member = createDisplayNameProperty(node, sf) 181 | return ts.updateClassDeclaration( 182 | node, 183 | node.decorators, 184 | node.modifiers, 185 | node.name, 186 | node.typeParameters, 187 | node.heritageClauses, 188 | ts.createNodeArray([...result.members, member]) 189 | ) 190 | } 191 | return result 192 | } 193 | if (!options.onlyFileRoot || ts.isSourceFile(node)) { 194 | return ts.visitEachChild(node, visitor, ctx) 195 | } else { 196 | return node 197 | } 198 | } 199 | return visitor 200 | } 201 | 202 | /** 203 | * Factory method that creates a Transformer. 204 | */ 205 | export function addDisplayNameTransformer(options: Partial = {}) { 206 | const optionsWithDefaults = { 207 | onlyFileRoot: false, 208 | funcTypes: ['React.FunctionComponent', 'React.FC'], 209 | classTypes: ['React.Component', 'React.PureComponent'], 210 | factoryFuncs: ['React.forwardRef', 'React.memo'], 211 | ...options, 212 | } 213 | return (ctx: ts.TransformationContext): ts.Transformer => { 214 | return (sf: ts.SourceFile) => ts.visitNode(sf, visit(ctx, sf, optionsWithDefaults)) 215 | } 216 | } 217 | 218 | export default function(_program: ts.Program, options: AddDisplayNameOptions) { 219 | return addDisplayNameTransformer(options) 220 | } 221 | -------------------------------------------------------------------------------- /test/data/fc-comp.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | 3 | const TestComponent: React.FC<{}> = () =>

returned value

4 | -------------------------------------------------------------------------------- /test/data/forward-ref-multi.ts: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | var TestComponent1 = React.forwardRef(function (_props, ref) { return React.createElement("p", { ref: ref }, "returned value 1"); }), TestComponent2 = React.forwardRef(function (_props, ref) { return React.createElement("p", { ref: ref }, "returned value 2"); }); 3 | TestComponent1.displayName = "TestComponent1" 4 | TestComponent2.displayName = "TestComponent2" 5 | -------------------------------------------------------------------------------- /test/data/forward-ref-multi.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | 3 | const TestComponent1 = React.forwardRef((_props, ref) =>

returned value 1

), 4 | TestComponent2 = React.forwardRef((_props, ref) =>

returned value 2

) 5 | -------------------------------------------------------------------------------- /test/data/forward-ref.ts: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | var TestComponent = React.forwardRef(function (_props, ref) { return React.createElement("p", { ref: ref }, "returned value"); }); 3 | TestComponent.displayName = "TestComponent" 4 | -------------------------------------------------------------------------------- /test/data/forward-ref.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | 3 | const TestComponent = React.forwardRef((_props, ref) =>

returned value

) 4 | -------------------------------------------------------------------------------- /test/data/func-comp-multi.ts: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | var TestComponent1 = function () { return React.createElement("p", null, "returned value 1"); }, TestComponent2 = function () { return React.createElement("p", null, "returned value 2"); }; 3 | TestComponent1.displayName = "TestComponent1" 4 | TestComponent2.displayName = "TestComponent2" 5 | -------------------------------------------------------------------------------- /test/data/func-comp-multi.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | 3 | const TestComponent1: React.FunctionComponent<{}> = () =>

returned value 1

, 4 | TestComponent2: React.FunctionComponent<{}> = () =>

returned value 2

5 | -------------------------------------------------------------------------------- /test/data/func-comp-nested-only-root.ts: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | var TestComponent = function () { 3 | var TestComponentNested = function () { return React.createElement("p", null, "returned value nested"); }; 4 | return React.createElement("p", null, "returned value"); 5 | }; 6 | TestComponent.displayName = "TestComponent" 7 | -------------------------------------------------------------------------------- /test/data/func-comp-nested.ts: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | var TestComponent = function () { 3 | var TestComponentNested = function () { return React.createElement("p", null, "returned value nested"); }; 4 | TestComponentNested.displayName = "TestComponentNested" 5 | return React.createElement("p", null, "returned value"); 6 | }; 7 | TestComponent.displayName = "TestComponent" 8 | -------------------------------------------------------------------------------- /test/data/func-comp-nested.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | 3 | const TestComponent: React.FunctionComponent<{}> = () => { 4 | const TestComponentNested: React.FunctionComponent<{}> = () =>

returned value nested

5 | return

returned value

6 | } 7 | -------------------------------------------------------------------------------- /test/data/func-comp.ts: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | var TestComponent = function () { return React.createElement("p", null, "returned value"); }; 3 | TestComponent.displayName = "TestComponent" 4 | -------------------------------------------------------------------------------- /test/data/func-comp.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | 3 | const TestComponent: React.FunctionComponent<{}> = () =>

returned value

4 | -------------------------------------------------------------------------------- /test/data/pure-comp.ts: -------------------------------------------------------------------------------- 1 | var __extends = (this && this.__extends) || (function () { 2 | var extendStatics = function (d, b) { 3 | extendStatics = Object.setPrototypeOf || 4 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 5 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 6 | return extendStatics(d, b); 7 | }; 8 | return function (d, b) { 9 | extendStatics(d, b); 10 | function __() { this.constructor = d; } 11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 12 | }; 13 | })(); 14 | import * as React from 'react'; 15 | var TestComponent = /** @class */ (function (_super) { 16 | __extends(TestComponent, _super); 17 | function TestComponent() { 18 | return _super !== null && _super.apply(this, arguments) || this; 19 | } 20 | TestComponent.prototype.render = function () { 21 | return React.createElement("p", null, "returned value"); 22 | }; 23 | TestComponent.displayName = "TestComponent"; 24 | return TestComponent; 25 | }(React.PureComponent)); 26 | export { TestComponent }; 27 | -------------------------------------------------------------------------------- /test/data/pure-comp.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | 3 | export class TestComponent extends React.PureComponent<{}, {}> { 4 | render() { 5 | return

returned value

6 | } 7 | } 8 | -------------------------------------------------------------------------------- /test/data/react-comp-existing.ts: -------------------------------------------------------------------------------- 1 | var __extends = (this && this.__extends) || (function () { 2 | var extendStatics = function (d, b) { 3 | extendStatics = Object.setPrototypeOf || 4 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 5 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 6 | return extendStatics(d, b); 7 | }; 8 | return function (d, b) { 9 | extendStatics(d, b); 10 | function __() { this.constructor = d; } 11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 12 | }; 13 | })(); 14 | import * as React from 'react'; 15 | var TestComponent = /** @class */ (function (_super) { 16 | __extends(TestComponent, _super); 17 | function TestComponent() { 18 | return _super !== null && _super.apply(this, arguments) || this; 19 | } 20 | TestComponent.prototype.render = function () { 21 | return React.createElement("p", null, "returned value"); 22 | }; 23 | TestComponent.displayName = 'TestComponent'; 24 | return TestComponent; 25 | }(React.Component)); 26 | export { TestComponent }; 27 | -------------------------------------------------------------------------------- /test/data/react-comp-existing.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | 3 | export class TestComponent extends React.Component<{}, {}> { 4 | static displayName = 'TestComponent' 5 | render() { 6 | return

returned value

7 | } 8 | } 9 | -------------------------------------------------------------------------------- /test/data/react-comp-multiple.ts: -------------------------------------------------------------------------------- 1 | var __extends = (this && this.__extends) || (function () { 2 | var extendStatics = function (d, b) { 3 | extendStatics = Object.setPrototypeOf || 4 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 5 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 6 | return extendStatics(d, b); 7 | }; 8 | return function (d, b) { 9 | extendStatics(d, b); 10 | function __() { this.constructor = d; } 11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 12 | }; 13 | })(); 14 | import * as React from 'react'; 15 | var TestComponent = /** @class */ (function (_super) { 16 | __extends(TestComponent, _super); 17 | function TestComponent() { 18 | return _super !== null && _super.apply(this, arguments) || this; 19 | } 20 | TestComponent.prototype.render = function () { 21 | return React.createElement("p", null, "returned value"); 22 | }; 23 | TestComponent.displayName = "TestComponent"; 24 | return TestComponent; 25 | }(React.Component)); 26 | var TestComponentA = /** @class */ (function (_super) { 27 | __extends(TestComponentA, _super); 28 | function TestComponentA() { 29 | return _super !== null && _super.apply(this, arguments) || this; 30 | } 31 | TestComponentA.prototype.render = function () { 32 | return React.createElement("p", null, "returned value"); 33 | }; 34 | TestComponentA.displayName = "TestComponentA"; 35 | return TestComponentA; 36 | }(React.Component)); 37 | var TestComponentB = /** @class */ (function (_super) { 38 | __extends(TestComponentB, _super); 39 | function TestComponentB() { 40 | return _super !== null && _super.apply(this, arguments) || this; 41 | } 42 | TestComponentB.prototype.render = function () { 43 | return React.createElement("p", null, "returned value"); 44 | }; 45 | TestComponentB.displayName = 'TestComponentB'; 46 | return TestComponentB; 47 | }(React.Component)); 48 | -------------------------------------------------------------------------------- /test/data/react-comp-multiple.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | 3 | class TestComponent extends React.Component<{}, {}> { 4 | render() { 5 | return

returned value

6 | } 7 | } 8 | 9 | class TestComponentA extends React.Component<{}> { 10 | render() { 11 | return

returned value

12 | } 13 | } 14 | 15 | class TestComponentB extends React.Component<{}> { 16 | static displayName = 'TestComponentB' 17 | render() { 18 | return

returned value

19 | } 20 | } 21 | -------------------------------------------------------------------------------- /test/data/react-comp-nested-only-root.ts: -------------------------------------------------------------------------------- 1 | var __extends = (this && this.__extends) || (function () { 2 | var extendStatics = function (d, b) { 3 | extendStatics = Object.setPrototypeOf || 4 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 5 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 6 | return extendStatics(d, b); 7 | }; 8 | return function (d, b) { 9 | extendStatics(d, b); 10 | function __() { this.constructor = d; } 11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 12 | }; 13 | })(); 14 | import * as React from 'react'; 15 | var TestComponent = /** @class */ (function (_super) { 16 | __extends(TestComponent, _super); 17 | function TestComponent() { 18 | return _super !== null && _super.apply(this, arguments) || this; 19 | } 20 | TestComponent.prototype.render = function () { 21 | var TestComponentNested = /** @class */ (function (_super) { 22 | __extends(TestComponentNested, _super); 23 | function TestComponentNested() { 24 | return _super !== null && _super.apply(this, arguments) || this; 25 | } 26 | TestComponentNested.prototype.render = function () { 27 | return React.createElement("p", null, "returned value nested"); 28 | }; 29 | return TestComponentNested; 30 | }(React.Component)); 31 | return React.createElement(TestComponentNested, null); 32 | }; 33 | TestComponent.displayName = "TestComponent"; 34 | return TestComponent; 35 | }(React.Component)); 36 | export { TestComponent }; 37 | -------------------------------------------------------------------------------- /test/data/react-comp-nested.ts: -------------------------------------------------------------------------------- 1 | var __extends = (this && this.__extends) || (function () { 2 | var extendStatics = function (d, b) { 3 | extendStatics = Object.setPrototypeOf || 4 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 5 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 6 | return extendStatics(d, b); 7 | }; 8 | return function (d, b) { 9 | extendStatics(d, b); 10 | function __() { this.constructor = d; } 11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 12 | }; 13 | })(); 14 | import * as React from 'react'; 15 | var TestComponent = /** @class */ (function (_super) { 16 | __extends(TestComponent, _super); 17 | function TestComponent() { 18 | return _super !== null && _super.apply(this, arguments) || this; 19 | } 20 | TestComponent.prototype.render = function () { 21 | var TestComponentNested = /** @class */ (function (_super) { 22 | __extends(TestComponentNested, _super); 23 | function TestComponentNested() { 24 | return _super !== null && _super.apply(this, arguments) || this; 25 | } 26 | TestComponentNested.prototype.render = function () { 27 | return React.createElement("p", null, "returned value nested"); 28 | }; 29 | TestComponentNested.displayName = "TestComponentNested"; 30 | return TestComponentNested; 31 | }(React.Component)); 32 | return React.createElement(TestComponentNested, null); 33 | }; 34 | TestComponent.displayName = "TestComponent"; 35 | return TestComponent; 36 | }(React.Component)); 37 | export { TestComponent }; 38 | -------------------------------------------------------------------------------- /test/data/react-comp-nested.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | 3 | export class TestComponent extends React.Component<{}, {}> { 4 | render() { 5 | class TestComponentNested extends React.Component<{}, {}> { 6 | render() { 7 | return

returned value nested

8 | } 9 | } 10 | 11 | return 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /test/data/react-comp-no-prop-state.ts: -------------------------------------------------------------------------------- 1 | var __extends = (this && this.__extends) || (function () { 2 | var extendStatics = function (d, b) { 3 | extendStatics = Object.setPrototypeOf || 4 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 5 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 6 | return extendStatics(d, b); 7 | }; 8 | return function (d, b) { 9 | extendStatics(d, b); 10 | function __() { this.constructor = d; } 11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 12 | }; 13 | })(); 14 | import * as React from 'react'; 15 | var TestComponent = /** @class */ (function (_super) { 16 | __extends(TestComponent, _super); 17 | function TestComponent() { 18 | return _super !== null && _super.apply(this, arguments) || this; 19 | } 20 | TestComponent.prototype.render = function () { 21 | return React.createElement("p", null, "returned value"); 22 | }; 23 | TestComponent.displayName = "TestComponent"; 24 | return TestComponent; 25 | }(React.Component)); 26 | export { TestComponent }; 27 | -------------------------------------------------------------------------------- /test/data/react-comp-no-prop-state.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | 3 | export class TestComponent extends React.Component { 4 | render() { 5 | return

returned value

6 | } 7 | } 8 | -------------------------------------------------------------------------------- /test/data/react-comp-other-static.ts: -------------------------------------------------------------------------------- 1 | var __extends = (this && this.__extends) || (function () { 2 | var extendStatics = function (d, b) { 3 | extendStatics = Object.setPrototypeOf || 4 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 5 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 6 | return extendStatics(d, b); 7 | }; 8 | return function (d, b) { 9 | extendStatics(d, b); 10 | function __() { this.constructor = d; } 11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 12 | }; 13 | })(); 14 | import * as React from 'react'; 15 | var TestComponent = /** @class */ (function (_super) { 16 | __extends(TestComponent, _super); 17 | function TestComponent() { 18 | return _super !== null && _super.apply(this, arguments) || this; 19 | } 20 | TestComponent.prototype.render = function () { 21 | return React.createElement("p", null, "returned value"); 22 | }; 23 | TestComponent.other = 'other'; 24 | TestComponent.displayName = "TestComponent"; 25 | return TestComponent; 26 | }(React.Component)); 27 | export { TestComponent }; 28 | -------------------------------------------------------------------------------- /test/data/react-comp-other-static.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | 3 | export class TestComponent extends React.Component<{}, {}> { 4 | static other = 'other' 5 | 6 | render() { 7 | return

returned value

8 | } 9 | } 10 | -------------------------------------------------------------------------------- /test/data/react-comp-unamed-default.ts: -------------------------------------------------------------------------------- 1 | var __extends = (this && this.__extends) || (function () { 2 | var extendStatics = function (d, b) { 3 | extendStatics = Object.setPrototypeOf || 4 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 5 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 6 | return extendStatics(d, b); 7 | }; 8 | return function (d, b) { 9 | extendStatics(d, b); 10 | function __() { this.constructor = d; } 11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 12 | }; 13 | })(); 14 | import * as React from 'react'; 15 | var default_1 = /** @class */ (function (_super) { 16 | __extends(default_1, _super); 17 | function default_1() { 18 | return _super !== null && _super.apply(this, arguments) || this; 19 | } 20 | default_1.prototype.render = function () { 21 | return React.createElement("p", null, "returned value"); 22 | }; 23 | default_1.displayName = "react-comp-unamed-default"; 24 | return default_1; 25 | }(React.Component)); 26 | export default default_1; 27 | -------------------------------------------------------------------------------- /test/data/react-comp-unamed-default.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | 3 | export default class extends React.Component<{}, {}> { 4 | render() { 5 | return

returned value

6 | } 7 | } 8 | -------------------------------------------------------------------------------- /test/data/react-comp.ts: -------------------------------------------------------------------------------- 1 | var __extends = (this && this.__extends) || (function () { 2 | var extendStatics = function (d, b) { 3 | extendStatics = Object.setPrototypeOf || 4 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 5 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 6 | return extendStatics(d, b); 7 | }; 8 | return function (d, b) { 9 | extendStatics(d, b); 10 | function __() { this.constructor = d; } 11 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 12 | }; 13 | })(); 14 | import * as React from 'react'; 15 | var TestComponent = /** @class */ (function (_super) { 16 | __extends(TestComponent, _super); 17 | function TestComponent() { 18 | return _super !== null && _super.apply(this, arguments) || this; 19 | } 20 | TestComponent.prototype.render = function () { 21 | return React.createElement("p", null, "returned value"); 22 | }; 23 | TestComponent.displayName = "TestComponent"; 24 | return TestComponent; 25 | }(React.Component)); 26 | export { TestComponent }; 27 | -------------------------------------------------------------------------------- /test/data/react-comp.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | 3 | export class TestComponent extends React.Component<{}, {}> { 4 | render() { 5 | return

returned value

6 | } 7 | } 8 | -------------------------------------------------------------------------------- /test/index-test.ts: -------------------------------------------------------------------------------- 1 | import { describe, it } from 'mocha' 2 | import { expect } from 'chai' 3 | import * as fs from 'fs' 4 | import * as ts from 'typescript' 5 | import { addDisplayNameTransformer, AddDisplayNameOptions } from '../src' 6 | 7 | const file = (name: string) => fs.readFileSync('test/data/' + name).toString('utf-8') 8 | 9 | describe('index.ts', () => { 10 | const makeOptions = ( 11 | transformerOptions?: Partial 12 | ): ts.TranspileOptions => ({ 13 | compilerOptions: { module: ts.ModuleKind.ESNext, jsx: ts.JsxEmit.React }, 14 | transformers: { before: [addDisplayNameTransformer(transformerOptions)] }, 15 | }) 16 | const options = makeOptions() 17 | 18 | it('adds displayName to FunctionComponent', () => { 19 | const result = ts.transpileModule(file('func-comp.tsx'), options) 20 | expect(result.outputText).to.equal(file('func-comp.ts')) 21 | }) 22 | 23 | it('adds displayName to FC (shortcut for FunctionComponent)', () => { 24 | const result = ts.transpileModule(file('fc-comp.tsx'), options) 25 | expect(result.outputText).to.equal(file('func-comp.ts')) 26 | }) 27 | 28 | it('adds displayName to many FunctionComponent', () => { 29 | const result = ts.transpileModule(file('func-comp-multi.tsx'), options) 30 | expect(result.outputText).to.equal(file('func-comp-multi.ts')) 31 | }) 32 | 33 | it('adds displayName to nested FunctionComponent', () => { 34 | const result = ts.transpileModule(file('func-comp-nested.tsx'), options) 35 | expect(result.outputText).to.equal(file('func-comp-nested.ts')) 36 | }) 37 | 38 | it('does not add displayName to nested FunctionComponent if onlyFileRoot is set', () => { 39 | const onlyRootOptions = makeOptions({ onlyFileRoot: true }) 40 | const result = ts.transpileModule(file('func-comp-nested.tsx'), onlyRootOptions) 41 | expect(result.outputText).to.equal(file('func-comp-nested-only-root.ts')) 42 | }) 43 | 44 | it('adds displayName to classes extending React.Component', () => { 45 | const result = ts.transpileModule(file('react-comp.tsx'), options) 46 | expect(result.outputText).to.equal(file('react-comp.ts')) 47 | }) 48 | 49 | it('adds displayName to mulitple classes extending React.Component', () => { 50 | const result = ts.transpileModule(file('react-comp-multiple.tsx'), options) 51 | expect(result.outputText).to.equal(file('react-comp-multiple.ts')) 52 | }) 53 | 54 | it('adds displayName to classes extending React.Component containing other static prop', () => { 55 | const result = ts.transpileModule(file('react-comp-other-static.tsx'), options) 56 | expect(result.outputText).to.equal(file('react-comp-other-static.ts')) 57 | }) 58 | 59 | it('adds displayName to classes extending React.Component nested', () => { 60 | const result = ts.transpileModule(file('react-comp-nested.tsx'), options) 61 | expect(result.outputText).to.equal(file('react-comp-nested.ts')) 62 | }) 63 | 64 | it('does not add displayName to classes extending React.Component nested if onlyFileRoot is set', () => { 65 | const onlyRootOptions = makeOptions({ onlyFileRoot: true }) 66 | const result = ts.transpileModule(file('react-comp-nested.tsx'), onlyRootOptions) 67 | expect(result.outputText).to.equal(file('react-comp-nested-only-root.ts')) 68 | }) 69 | 70 | it('adds displayName to classes extending React.PureComponent', () => { 71 | const result = ts.transpileModule(file('pure-comp.tsx'), options) 72 | expect(result.outputText).to.equal(file('pure-comp.ts')) 73 | }) 74 | 75 | it('adds displayName to unamed default classes extending React.Component', () => { 76 | const result = ts.transpileModule(file('react-comp-unamed-default.tsx'), { 77 | ...options, 78 | fileName: 'react-comp-unamed-default.tsx', 79 | }) 80 | expect(result.outputText).to.equal(file('react-comp-unamed-default.ts')) 81 | }) 82 | 83 | it('does not add displayName to classes extending React.Component with static displayName', () => { 84 | const result = ts.transpileModule(file('react-comp-existing.tsx'), options) 85 | expect(result.outputText).to.equal(file('react-comp-existing.ts')) 86 | }) 87 | 88 | it('does not crash when no prop/state is declared on a React.Component', () => { 89 | const result = ts.transpileModule(file('react-comp-no-prop-state.tsx'), options) 90 | expect(result.outputText).to.equal(file('react-comp-no-prop-state.ts')) 91 | }) 92 | 93 | it('adds displayName to forwardRef', () => { 94 | const result = ts.transpileModule(file('forward-ref.tsx'), options) 95 | expect(result.outputText).to.equal(file('forward-ref.ts')) 96 | }) 97 | 98 | it('adds displayName to many forwardRef', () => { 99 | const result = ts.transpileModule(file('forward-ref-multi.tsx'), options) 100 | expect(result.outputText).to.equal(file('forward-ref-multi.ts')) 101 | }) 102 | }) 103 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "declarationDir": "dist", 4 | "outDir": "dist", 5 | "allowJs": false, 6 | "noImplicitAny": false, 7 | "noUnusedLocals": true, 8 | "noUnusedParameters": true, 9 | "declaration": true, 10 | "module": "commonjs", 11 | "target": "es2018", 12 | "types": ["node"], 13 | "moduleResolution": "node" 14 | }, 15 | "include": ["src/index.ts"] 16 | } 17 | -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "tslint:latest", 4 | "tslint-config-prettier" 5 | ], 6 | "linterOptions": { 7 | "exclude": ["test/data/*.ts"] 8 | }, 9 | "rules": { 10 | "quotemark": [true, "single", "avoid-escape"], 11 | "interface-name": [false], 12 | "variable-name": [ 13 | true, 14 | "ban-keywords", 15 | "check-format", 16 | "allow-pascal-case", 17 | "allow-leading-underscore" 18 | ], 19 | "indent": [true, "spaces", 2], 20 | "no-bitwise": false, 21 | "one-variable-per-declaration": [false], 22 | "eofline": false, 23 | "no-string-literal": false, 24 | "max-classes-per-file": [false], 25 | "no-inferrable-types": [true], 26 | "arrow-parens": false, 27 | "object-literal-sort-keys": false, 28 | "member-ordering": [false], 29 | "array-type": [true, "array"], 30 | "ordered-imports": [false], 31 | "no-implicit-dependencies": [true, "dev"], 32 | "trailing-comma": [false], 33 | "member-access": [false], 34 | "no-namespace": [false], 35 | "no-var-requires": false, // needed for requiring styles 36 | "space-before-function-paren": [false], 37 | "interface-over-type-literal": [false], 38 | "no-console": [true, "log", "info"], 39 | "no-empty-interface": [false], 40 | "object-literal-shorthand": [false] 41 | } 42 | } 43 | --------------------------------------------------------------------------------