├── example ├── .gitignore ├── index.html ├── .babelrc ├── index.js ├── dummy.svg ├── package.json ├── webpack.config.js ├── rollup.config.js ├── her.svg ├── image.svg └── yarn.lock ├── packages ├── react-svg-core │ ├── README.md │ ├── tsconfig.json │ ├── src │ │ ├── index.ts │ │ └── svgo.ts │ └── package.json ├── lodash.isplainobject.d.ts ├── babel-plugin-react-svg │ ├── tsconfig.json │ ├── src │ │ ├── camelize.ts │ │ ├── css-to-obj.ts │ │ └── index.ts │ ├── package.json │ └── README.md ├── react-svg-loader │ ├── tsconfig.json │ ├── src │ │ └── loader.ts │ ├── package.json │ └── README.md ├── react-svg-loader-cli │ ├── tsconfig.json │ ├── package.json │ ├── README.md │ └── src │ │ └── cli.ts ├── rollup-plugin-react-svg │ ├── tsconfig.json │ ├── src │ │ └── index.ts │ ├── README.md │ └── package.json ├── tsconfig.json ├── babel-core.d.ts ├── tsconfig.settings.json └── svgo.d.ts ├── tsconfig.json ├── .eslintignore ├── .github ├── FUNDING.yml └── workflows │ └── lint-test.yml ├── .gitignore ├── lerna.json ├── tests ├── resources │ ├── dummy.svg │ ├── config.yaml │ ├── config.json │ ├── config.js │ └── dummy2.svg ├── css-to-obj.ts ├── svgo.ts ├── cli.ts └── loader.ts ├── .eslintrc ├── LICENSE ├── .travis.yml ├── README.md ├── package.json └── CHANGELOG.md /example/.gitignore: -------------------------------------------------------------------------------- 1 | public 2 | -------------------------------------------------------------------------------- /packages/react-svg-core/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/lodash.isplainobject.d.ts: -------------------------------------------------------------------------------- 1 | declare module "lodash.isplainobject"; 2 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./packages/tsconfig.settings.json" 3 | } 4 | -------------------------------------------------------------------------------- /example/index.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | lib 2 | *.svg.react.js 3 | coverage 4 | flow-typed 5 | node_modules 6 | example/public/ 7 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # You can add one username per supported platform and one custom link 2 | patreon: boopathi 3 | open_collective: boopathi 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | npm-debug.log 3 | lib 4 | *.svg.react.js 5 | coverage 6 | .vscode 7 | .nyc_output 8 | *.log 9 | *.tsbuildinfo 10 | -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- 1 | { 2 | "packages": [ 3 | "packages/*" 4 | ], 5 | "useWorkspaces": true, 6 | "npmClient": "yarn", 7 | "version": "3.0.3" 8 | } 9 | -------------------------------------------------------------------------------- /example/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | "react", 4 | [ 5 | "es2015", 6 | { 7 | "modules": false 8 | } 9 | ] 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /packages/babel-plugin-react-svg/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.settings.json", 3 | "compilerOptions": { 4 | "outDir": "lib", 5 | "rootDir": "src" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /packages/react-svg-loader/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.settings.json", 3 | "compilerOptions": { 4 | "outDir": "lib", 5 | "rootDir": "src" 6 | }, 7 | "references": [{ "path": "../react-svg-core" }] 8 | } 9 | -------------------------------------------------------------------------------- /packages/react-svg-core/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.settings.json", 3 | "compilerOptions": { 4 | "outDir": "lib", 5 | "rootDir": "src" 6 | }, 7 | "references": [{ "path": "../babel-plugin-react-svg" }] 8 | } 9 | -------------------------------------------------------------------------------- /packages/react-svg-loader-cli/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.settings.json", 3 | "compilerOptions": { 4 | "outDir": "lib", 5 | "rootDir": "src" 6 | }, 7 | "references": [{ "path": "../react-svg-loader" }] 8 | } 9 | -------------------------------------------------------------------------------- /packages/rollup-plugin-react-svg/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.settings.json", 3 | "compilerOptions": { 4 | "outDir": "lib", 5 | "rootDir": "src" 6 | }, 7 | "references": [{ "path": "../react-svg-core" }] 8 | } 9 | -------------------------------------------------------------------------------- /tests/resources/dummy.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /packages/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "files": [], 3 | "references": [ 4 | { "path": "babel-plugin-react-svg" }, 5 | { "path": "react-svg-core" }, 6 | { "path": "react-svg-loader" }, 7 | { "path": "react-svg-loader-cli" }, 8 | { "path": "rollup-plugin-react-svg" } 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /packages/babel-plugin-react-svg/src/camelize.ts: -------------------------------------------------------------------------------- 1 | export function hyphenToCamel(name: string) { 2 | return name.replace(/-([a-z])/g, g => g[1].toUpperCase()); 3 | } 4 | 5 | export function namespaceToCamel(namespace: string, name: string) { 6 | return namespace + name.charAt(0).toUpperCase() + name.slice(1); 7 | } 8 | -------------------------------------------------------------------------------- /packages/babel-core.d.ts: -------------------------------------------------------------------------------- 1 | declare module "@babel/core" { 2 | interface BabelCore { 3 | types: BabelTypes; 4 | } 5 | 6 | interface BabelTypes { 7 | [method: string]: (...args: any[]) => any; 8 | } 9 | 10 | export function transformSync(...args: any[]): any; 11 | 12 | export default BabelCore; 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/config.yaml: -------------------------------------------------------------------------------- 1 | multipass: true 2 | 3 | plugins: 4 | - removeDoctype 5 | - removeXMLProcInst 6 | - removeComments 7 | - removeMetadata 8 | - removeEditorsNSData 9 | - cleanupAttrs 10 | - minifyStyles 11 | - convertStyleToAttrs 12 | - cleanupIDs 13 | - removeRasterImages 14 | 15 | js2svg: 16 | pretty: true 17 | -------------------------------------------------------------------------------- /tests/resources/config.json: -------------------------------------------------------------------------------- 1 | { "multipass": true, 2 | "plugins": 3 | [ "removeDoctype", 4 | "removeXMLProcInst", 5 | "removeComments", 6 | "removeMetadata", 7 | "removeEditorsNSData", 8 | "cleanupAttrs", 9 | "minifyStyles", 10 | "convertStyleToAttrs", 11 | "cleanupIDs", 12 | "removeRasterImages" ], 13 | "js2svg": { "pretty": true } } 14 | -------------------------------------------------------------------------------- /tests/resources/config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | multipass: true, 3 | plugins: [ 4 | "removeDoctype", 5 | "removeXMLProcInst", 6 | "removeComments", 7 | "removeMetadata", 8 | "removeEditorsNSData", 9 | "cleanupAttrs", 10 | "minifyStyles", 11 | "convertStyleToAttrs", 12 | "cleanupIDs", 13 | "removeRasterImages" 14 | ], 15 | js2svg: { pretty: true } 16 | }; 17 | -------------------------------------------------------------------------------- /example/index.js: -------------------------------------------------------------------------------- 1 | /* global document */ 2 | import React from "react"; 3 | import ReactDOM from "react-dom"; 4 | import Her from "./her.svg"; 5 | import Pic from "./image.svg"; 6 | import Dummy from "./dummy.svg"; 7 | 8 | let Root = ( 9 |
10 | 11 | 12 | 13 |
14 | ); 15 | 16 | ReactDOM.render(Root, document.getElementById("test")); 17 | -------------------------------------------------------------------------------- /packages/tsconfig.settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | // compulsory settings for TS Project references 4 | "composite": true, 5 | "declaration": true, 6 | "declarationMap": true, 7 | "sourceMap": true, 8 | 9 | // our settings 10 | "alwaysStrict": true, 11 | "esModuleInterop": true, 12 | "module": "commonjs", 13 | "target": "es2016", 14 | "downlevelIteration": true 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /packages/babel-plugin-react-svg/src/css-to-obj.ts: -------------------------------------------------------------------------------- 1 | export default function cssToObj(css: string): any { 2 | let o: any = {}; 3 | if (typeof css !== "undefined") { 4 | let elements = css.split(";"); 5 | elements 6 | .filter(el => !!el) 7 | .map(el => { 8 | let s = el.split(":"), 9 | key = s.shift().trim(), 10 | value = s.join(":").trim(); 11 | o[key] = value; 12 | }); 13 | } 14 | return o; 15 | } 16 | -------------------------------------------------------------------------------- /example/dummy.svg: -------------------------------------------------------------------------------- 1 | 8 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /packages/react-svg-loader/src/loader.ts: -------------------------------------------------------------------------------- 1 | import loaderUtils from "loader-utils"; 2 | import { optimize, transform } from "react-svg-core"; 3 | 4 | export default function(content: string) { 5 | const loaderOpts = loaderUtils.getOptions(this) || {}; 6 | 7 | const cb = this.async(); 8 | 9 | Promise.resolve(String(content)) 10 | .then(optimize(loaderOpts.svgo)) 11 | .then(transform({ jsx: loaderOpts.jsx })) 12 | .then((result: any) => cb(null, result.code)) 13 | .catch(err => cb(err)); 14 | } 15 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "parser": "@typescript-eslint/parser", 3 | "parserOptions": { 4 | "project": "./packages/tsconfig.json", 5 | "sourceType": "module" 6 | }, 7 | "plugins": ["react", "prettier", "@typescript-eslint"], 8 | "env": { 9 | "node": true, 10 | "es6": true 11 | }, 12 | "settings": { 13 | "react": { 14 | "version": "detect" 15 | } 16 | }, 17 | "rules": { 18 | "prettier/prettier": "error" 19 | }, 20 | "extends": [ 21 | "eslint:recommended", 22 | "plugin:react/recommended", 23 | "plugin:@typescript-eslint/eslint-recommended" 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "author": "boopathi", 7 | "scripts": { 8 | "build": "webpack --config webpack.config.js", 9 | "watch": "webpack --config webpack.config.js --watch" 10 | }, 11 | "dependencies": { 12 | "babel-core": "^6.26.0", 13 | "babel-loader": "^7.1.2", 14 | "react": "^16.0.0", 15 | "react-dom": "^16.0.0", 16 | "rollup": "^0.50.0", 17 | "rollup-plugin-babel": "^3.0.2", 18 | "rollup-plugin-commonjs": "^8.2.1", 19 | "rollup-plugin-node-resolve": "^3.0.0", 20 | "rollup-plugin-replace": "^2.0.0", 21 | "webpack": "3.6.0" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /example/webpack.config.js: -------------------------------------------------------------------------------- 1 | const reactSvgLoader = require.resolve("../packages/react-svg-loader"); 2 | const path = require("path"); 3 | 4 | module.exports = { 5 | entry: "./index.js", 6 | output: { 7 | path: path.join(__dirname, "public"), 8 | filename: "bundle.js" 9 | }, 10 | module: { 11 | rules: [ 12 | { 13 | test: /\.svg$/, 14 | exclude: /node_modules/, 15 | use: [ 16 | "babel-loader", 17 | { 18 | loader: reactSvgLoader, // 'react-svg' 19 | query: { 20 | svgo: { 21 | pretty: true, 22 | plugins: [{ removeStyleElement: true }] 23 | } 24 | } 25 | } 26 | ] 27 | }, 28 | { 29 | test: /\.js$/, 30 | loader: "babel-loader", 31 | exclude: /node_modules/ 32 | } 33 | ] 34 | } 35 | }; 36 | -------------------------------------------------------------------------------- /packages/rollup-plugin-react-svg/src/index.ts: -------------------------------------------------------------------------------- 1 | import * as fs from "fs"; 2 | import * as path from "path"; 3 | import { transform, optimize } from "react-svg-core"; 4 | import { createFilter } from "rollup-pluginutils"; 5 | 6 | type PluginOpts = { 7 | include?: any; 8 | exclude?: any; 9 | svgo?: any; 10 | jsx?: boolean; 11 | }; 12 | 13 | export default function reactSvgLoadPlugin(options: PluginOpts = {}): any { 14 | const filter = createFilter(options.include, options.exclude); 15 | 16 | return { 17 | name: "react-svg", 18 | load(id: string) { 19 | if (!filter(id) || path.extname(id) !== ".svg") return; 20 | 21 | const contents = fs.readFileSync(id); 22 | 23 | return Promise.resolve(String(contents)) 24 | .then(optimize(options.svgo)) 25 | .then(transform({ jsx: options.jsx })) 26 | .then((result: any) => result.code); 27 | } 28 | }; 29 | } 30 | -------------------------------------------------------------------------------- /packages/react-svg-loader/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-svg-loader", 3 | "version": "3.0.3", 4 | "description": "Optimize svg and load it as a React Component", 5 | "keywords": [ 6 | "loader", 7 | "react", 8 | "react-svg-loader", 9 | "webpack", 10 | "webpack-loader" 11 | ], 12 | "homepage": "https://github.com/boopathi/react-svg-loader/tree/master/packages/react-svg-loader", 13 | "bugs": { 14 | "url": "https://github.com/boopathi/react-svg-loader/issues" 15 | }, 16 | "repository": { 17 | "type": "git", 18 | "url": "git+https://github.com/boopathi/react-svg-loader.git" 19 | }, 20 | "license": "MIT", 21 | "author": "boopathi", 22 | "files": [ 23 | "lib", 24 | "README.md" 25 | ], 26 | "main": "lib/loader.js", 27 | "dependencies": { 28 | "loader-utils": "^1.2.3", 29 | "react-svg-core": "^3.0.3" 30 | }, 31 | "engines": { 32 | "node": ">=8" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /packages/rollup-plugin-react-svg/README.md: -------------------------------------------------------------------------------- 1 | # rollup-plugin-react-svg 2 | 3 | Load SVG images as React Components 4 | 5 | ## Install 6 | 7 | ```sh 8 | npm i rollup-plugin-react-svg --save-dev 9 | 10 | # or with yarn 11 | 12 | yarn add rollup-plugin-react-svg --dev 13 | ``` 14 | 15 | ## Usage 16 | 17 | ```js 18 | // rollup.config.js 19 | import reactSvg from "rollup-plugin-react-svg"; 20 | 21 | export default { 22 | ...opts, 23 | plugins: [ 24 | ...plugins, 25 | 26 | reactSvg({ 27 | // svgo options 28 | svgo: { 29 | plugins: [], // passed to svgo 30 | multipass: true 31 | }, 32 | 33 | // whether to output jsx 34 | jsx: false, 35 | 36 | // include: string 37 | include: null, 38 | 39 | // exclude: string 40 | exclude: null 41 | }) 42 | ] 43 | } 44 | ``` 45 | 46 | ## LICENSE 47 | 48 | [MIT](https://github.com/boopathi/react-svg-loader/blob/master/LICENSE) 49 | -------------------------------------------------------------------------------- /tests/css-to-obj.ts: -------------------------------------------------------------------------------- 1 | import test from "tape"; 2 | import cssToObj from "../packages/babel-plugin-react-svg/src/css-to-obj"; 3 | 4 | test("no entry check", function(t) { 5 | let css = ""; 6 | let o = cssToObj(css); 7 | t.equal(Object.keys(o).length, 0); 8 | t.end(); 9 | }); 10 | 11 | test("single entry check", function(t) { 12 | let css = "text-align: center"; 13 | let o = cssToObj(css); 14 | t.equal(o["text-align"], "center"); 15 | t.equal(Object.keys(o).length, 1); 16 | t.end(); 17 | }); 18 | 19 | test("multiple entries check", function(t) { 20 | let url = "https://example.com/image.svg"; 21 | let css = `width: 50px; height: 50px; text-align: center; background:url(${url})`; 22 | let o = cssToObj(css); 23 | t.equal(Object.keys(o).length, 4); 24 | t.equal(o.width, "50px"); 25 | t.equal(o.height, "50px"); 26 | t.equal(o["text-align"], "center"); 27 | t.equal(o.background, `url(${url})`); 28 | t.end(); 29 | }); 30 | -------------------------------------------------------------------------------- /example/rollup.config.js: -------------------------------------------------------------------------------- 1 | import babel from "rollup-plugin-babel"; 2 | import nodeResolve from "rollup-plugin-node-resolve"; 3 | import cjs from "rollup-plugin-commonjs"; 4 | import replace from "rollup-plugin-replace"; 5 | 6 | import reactSvg from "rollup-plugin-react-svg"; 7 | 8 | export default { 9 | input: "index.js", 10 | output: { 11 | format: "iife", 12 | file: "public/bundle.js" 13 | }, 14 | plugins: [ 15 | babel({ 16 | exclude: "node_modules/**" 17 | }), 18 | nodeResolve(), 19 | cjs(), 20 | replace({ 21 | "process.env.NODE_ENV": JSON.stringify("production") 22 | }), 23 | 24 | // USAGE: 25 | reactSvg({ 26 | // svgo options 27 | svgo: { 28 | plugins: [], // passed to svgo 29 | multipass: true 30 | }, 31 | 32 | // whether to output jsx 33 | jsx: false, 34 | 35 | include: null, 36 | 37 | exclude: null 38 | }) 39 | ] 40 | }; 41 | -------------------------------------------------------------------------------- /packages/rollup-plugin-react-svg/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rollup-plugin-react-svg", 3 | "version": "3.0.3", 4 | "description": "Optimize svg and load it as a React Component", 5 | "keywords": [ 6 | "loader", 7 | "react", 8 | "react-svg-loader", 9 | "rollup", 10 | "rollup-plugin" 11 | ], 12 | "homepage": "https://github.com/boopathi/react-svg-loader/tree/master/packages/rollup-plugin-react-svg", 13 | "bugs": { 14 | "url": "https://github.com/boopathi/react-svg-loader/issues" 15 | }, 16 | "repository": { 17 | "type": "git", 18 | "url": "git+https://github.com/boopathi/react-svg-loader.git" 19 | }, 20 | "license": "MIT", 21 | "author": "boopathi", 22 | "files": [ 23 | "lib", 24 | "README.md" 25 | ], 26 | "main": "lib/index.js", 27 | "dependencies": { 28 | "react-svg-core": "^3.0.3", 29 | "rollup-pluginutils": "^2.8.1" 30 | }, 31 | "engines": { 32 | "node": ">=8" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /.github/workflows/lint-test.yml: -------------------------------------------------------------------------------- 1 | name: react-svg-loader 2 | 3 | on: [push] 4 | 5 | jobs: 6 | lint: 7 | name: Lint 8 | runs-on: ubuntu-latest 9 | steps: 10 | - uses: actions/checkout@v1 11 | - name: Setup Node 12 for Lint 12 | uses: actions/setup-node@v1 13 | with: 14 | node-version: 12 15 | - name: Lint 16 | run: | 17 | yarn 18 | yarn lint 19 | env: 20 | CI: true 21 | build: 22 | name: Build 23 | runs-on: ubuntu-latest 24 | strategy: 25 | matrix: 26 | node-version: [8.x, 10.x, 12.x] 27 | steps: 28 | - uses: actions/checkout@v1 29 | - name: Use Node.js ${{ matrix.node-version }} 30 | uses: actions/setup-node@v1 31 | with: 32 | node-version: ${{ matrix.node-version }} 33 | - name: npm install, build, and test 34 | run: | 35 | yarn 36 | yarn build 37 | yarn test 38 | env: 39 | CI: true 40 | -------------------------------------------------------------------------------- /packages/react-svg-core/src/index.ts: -------------------------------------------------------------------------------- 1 | import Svgo from "svgo"; 2 | import { transformSync as babelTransform } from "@babel/core"; 3 | import plugin from "babel-plugin-react-svg"; 4 | 5 | import { validateAndFix } from "./svgo"; 6 | 7 | // SVGO Optimize 8 | export function optimize(opts: any = {}): (content: string) => Promise { 9 | opts = validateAndFix(opts); 10 | const svgo = new Svgo(opts); 11 | 12 | return (content: string) => svgo.optimize(content).then(data => data.data); 13 | } 14 | 15 | // Babel Transform 16 | export function transform({ jsx = false }: { jsx?: boolean } = {}): ( 17 | content: string 18 | ) => string { 19 | return content => 20 | babelTransform(content, { 21 | babelrc: false, 22 | configFile: false, 23 | presets: [jsx ? void 0 : require.resolve("@babel/preset-react")].filter( 24 | Boolean 25 | ), 26 | plugins: [require.resolve("@babel/plugin-syntax-jsx"), plugin] 27 | }); 28 | } 29 | -------------------------------------------------------------------------------- /packages/babel-plugin-react-svg/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "babel-plugin-react-svg", 3 | "version": "3.0.3", 4 | "description": "Babel plugin to transform svg to react component", 5 | "keywords": [ 6 | "babel", 7 | "babel-plugin", 8 | "react", 9 | "react-svg-loader", 10 | "svg", 11 | "webpack", 12 | "webpack-loader" 13 | ], 14 | "homepage": "https://github.com/boopathi/react-svg-loader/tree/master/packages/babel-plugin-react-svg", 15 | "bugs": { 16 | "url": "https://github.com/boopathi/react-svg-loader/issues" 17 | }, 18 | "repository": { 19 | "type": "git", 20 | "url": "git+https://github.com/boopathi/react-svg-loader.git" 21 | }, 22 | "license": "MIT", 23 | "author": "boopathi", 24 | "files": [ 25 | "lib", 26 | "README.md" 27 | ], 28 | "main": "lib/index.js", 29 | "peerDependencies": { 30 | "@babel/plugin-syntax-jsx": "^7.2.0" 31 | }, 32 | "engines": { 33 | "node": ">=8" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /tests/svgo.ts: -------------------------------------------------------------------------------- 1 | import { validateAndFix } from "../packages/react-svg-core/src/svgo"; 2 | import test from "tape"; 3 | 4 | test("fills essential plugins and default plugins when empty", function(t) { 5 | let opts: any = {}; 6 | opts = validateAndFix(opts); 7 | t.equal(opts.plugins.length, 4); 8 | t.end(); 9 | }); 10 | 11 | test("enable disabled essential plugins", function(t) { 12 | let opts: any = { 13 | full: true, 14 | plugins: ["removeDoctype", { removeComments: false }] 15 | }; 16 | opts = validateAndFix(opts); 17 | t.equal(opts.plugins.length, 4); 18 | t.equal(opts.plugins[1].removeComments, true); 19 | t.end(); 20 | }); 21 | 22 | test("default plugins are set by default", t => { 23 | let opts: any = {}; 24 | opts = validateAndFix(opts); 25 | t.assert( 26 | opts.plugins.find( 27 | p => 28 | Object.prototype.hasOwnProperty.call(p, "removeViewBox") && 29 | p.removeViewBox === false 30 | ) 31 | ); 32 | t.end(); 33 | }); 34 | -------------------------------------------------------------------------------- /packages/react-svg-loader-cli/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-svg-loader-cli", 3 | "version": "3.0.3", 4 | "description": "react-svg-loader cli", 5 | "keywords": [ 6 | "cli", 7 | "commandline", 8 | "react", 9 | "react-svg-loader" 10 | ], 11 | "homepage": "https://github.com/boopathi/react-svg-loader/tree/master/packages/react-svg-loader-cli", 12 | "bugs": { 13 | "url": "https://github.com/boopathi/react-svg-loader/issues" 14 | }, 15 | "repository": { 16 | "type": "git", 17 | "url": "git+https://github.com/boopathi/react-svg-loader.git" 18 | }, 19 | "license": "MIT", 20 | "author": "boopathi", 21 | "files": [ 22 | "bin", 23 | "lib", 24 | "README.md" 25 | ], 26 | "main": "lib/loader.js", 27 | "bin": { 28 | "svg2react": "./lib/cli.js" 29 | }, 30 | "dependencies": { 31 | "lodash.isplainobject": "^4.0.6", 32 | "react-svg-loader": "^3.0.3", 33 | "yargs": "^13.2.4" 34 | }, 35 | "engines": { 36 | "node": ">=8" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /packages/react-svg-core/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-svg-core", 3 | "version": "3.0.3", 4 | "description": "Core for react-svg-loader", 5 | "keywords": [ 6 | "react-svg-loader" 7 | ], 8 | "homepage": "https://github.com/boopathi/react-svg-loader/tree/master/packages/react-svg-core", 9 | "bugs": { 10 | "url": "https://github.com/boopathi/react-svg-loader/issues" 11 | }, 12 | "repository": { 13 | "type": "git", 14 | "url": "git+https://github.com/boopathi/react-svg-loader.git" 15 | }, 16 | "license": "MIT", 17 | "author": "boopathi", 18 | "files": [ 19 | "lib", 20 | "README.md" 21 | ], 22 | "main": "lib/index.js", 23 | "dependencies": { 24 | "@babel/core": "^7.5.4", 25 | "@babel/plugin-syntax-jsx": "^7.2.0", 26 | "@babel/preset-react": "^7.0.0", 27 | "babel-plugin-react-svg": "^3.0.3", 28 | "lodash.clonedeep": "^4.5.0", 29 | "lodash.isplainobject": "^4.0.6", 30 | "svgo": "^1.3.2" 31 | }, 32 | "engines": { 33 | "node": ">=8" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015-present, Boopathi Rajaa 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 | -------------------------------------------------------------------------------- /packages/react-svg-loader-cli/README.md: -------------------------------------------------------------------------------- 1 | # react-svg-loader-cli 2 | 3 | Provides CLI: `svg2react` 4 | 5 | CLI of [react-svg-loader](/packages/react-svg-loader) 6 | 7 | ## Install 8 | 9 | ```sh 10 | npm i react-svg-loader-cli --save-dev 11 | 12 | # or with yarn 13 | 14 | yarn add react-svg-loader-cli --dev 15 | ``` 16 | 17 | Install it globally, 18 | 19 | ```sh 20 | npm i -g react-svg-loader-cli 21 | 22 | # or with yarn 23 | 24 | yarn global add react-svg-loader-cli 25 | ``` 26 | 27 | ## Usage (svg2react) 28 | 29 | Use this CLI to convert svg files to react components. This is helpful when you'd want to customize your svg component by hand. 30 | 31 | ```sh 32 | `npm bin`/svg2react file1.svg file2.svg 33 | ``` 34 | 35 | and the following files will be emitted 36 | 37 | + `file1.svg.react.js` 38 | + `file2.svg.react.js` 39 | 40 | in the **SAME directory** as the files 41 | 42 | ## CLI Options 43 | 44 | + `--jsx`: Outputs JSX code instead of compiling it to JavaScript using babel-preset-react 45 | + `--stdout`: Outputs to STDOUT 46 | + `--svgo `: Supports SVGO Config YAML / JSON / JS 47 | + `--svgo.plugins <...plugins>`: Takes in an array of plugins that need to be enabled 48 | + `--svgo.plugins. `: - Enable/Disable the plugin 49 | + `--svgo.floatPrecision $N`: Set floatPrecision to `N` for SVGO. SVGO supports 1-8. 50 | 51 | ``` 52 | `npm bin`/svg2react file1.svg --jsx --stdout 53 | ``` 54 | 55 | ## LICENSE 56 | 57 | [MIT](https://github.com/boopathi/react-svg-loader/blob/master/LICENSE) 58 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | cache: yarn 4 | 5 | stages: 6 | - lint 7 | - test 8 | - name: publish 9 | if: (branch = master) AND (repo = boopathi/react-svg-loader) 10 | 11 | jobs: 12 | include: 13 | - stage: lint 14 | node_js: "12" 15 | script: yarn lint 16 | - stage: publish 17 | node_js: "12" 18 | script: 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc' 19 | deploy: 20 | provider: script 21 | script: npm run publish-master 22 | skip_cleanup: true 23 | api_key: $NPM_TOKEN 24 | 25 | env: 26 | global: 27 | - CC_TEST_REPORTER_ID=9f4bef923b520da4cbdb209f004a8db49b215fc0f443efd2a1698585e65c21cb 28 | 29 | node_js: 30 | - "12" 31 | - "10" 32 | - "8" 33 | 34 | before_install: 35 | - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.16.0 36 | - export PATH=$HOME/.yarn/bin:$PATH 37 | - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter 38 | - chmod +x ./cc-test-reporter 39 | 40 | before_script: 41 | - yarn clean 42 | - yarn build 43 | - "./cc-test-reporter before-build" 44 | 45 | script: 46 | - yarn cover 47 | 48 | after_script: 49 | - "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT" 50 | 51 | addons: 52 | code_climate: 53 | repo_token: 54 | secure: hU3p2PlR6A4ZdTDzkYsKpXbuFsgdgSTDBW+b+SSs7ePpz1hbY86oYCP6SLNB87qMwM97oFae21/mGGQhrwc6lQiDNNYLM5C4twypjHk1sbXfyCtIOvJI9EjlxqOtPy1/FJ7jzeCSm9zts/r7IhNrEJpvA8Usg8hX9agI1W2Wy006sKplmhE7WNIhr9iikkhMVlIftWy4/nWDDQ66DiRh526VMi5ruv8jp22zeH3Nj6DrE3pCfj6+NXbNLYuP7KqGRDN9WWUrVOSHGwa215SOP9GYocNXoqhdgbWiestMpyj3GLOfHAqitw7Sdem9+yyPf1x9cMfuSYLddjIGEhLo6AE5KjjI86njycX2/di8ykMNXyevZEuKN3W7rcuVW817FC7ehEpjPphPHTsuku8nwtJlGSgCbNWffq+k+kc421Nm92TAWkdIBtqaG2dX6pBE420BaMNlT7FxqEDznzWuKbFh+Hcdx7RHbfJbWfAJEvztGEN6jKLjSq+T58d6Q6PSs1pjUxe/wPrw9oksem6lKGNxzlbV2/89WSfU5p57NBOlIuTr3Tt5//PlHeStgeVNWF/zkJQzqk8DnE38fD+EALX7sU8kirO2gtD71F7ZzuDZ06agPQoM7hgtDBaKt/GC4OZsxVli8MZlG80yPXaIe8E3tpxYSG7Uw4bPQSGM3xc= 55 | -------------------------------------------------------------------------------- /packages/react-svg-loader/README.md: -------------------------------------------------------------------------------- 1 | # react-svg-loader 2 | 3 | ## Install 4 | 5 | ```sh 6 | npm i react-svg-loader --save-dev 7 | ``` 8 | 9 | or 10 | 11 | ```sh 12 | yarn add react-svg-loader --dev 13 | ``` 14 | 15 | ## Usage 16 | 17 | ```js 18 | // without webpack loader config 19 | import Image1 from 'react-svg-loader!./image1.svg'; 20 | 21 | // or if you're passing all .svg files via react-svg-loader, 22 | import Image2 from './image1.svg'; 23 | 24 | // and use it like any other React Component 25 | 26 | 27 | ``` 28 | 29 | ### Loader output 30 | 31 | By default the loader outputs ES2015 code (with JSX compiled to JavaScript using babel-preset-react). You can combine it with [babel-loader](https://github.com/babel/babel-loader) + [babel-preset-env](https://github.com/babel/babel-preset-env) to compile it down to your target. 32 | 33 | ```js 34 | // In your webpack config 35 | { 36 | test: /\.svg$/, 37 | use: [ 38 | { 39 | loader: "babel-loader" 40 | }, 41 | { 42 | loader: "react-svg-loader", 43 | options: { 44 | jsx: true // true outputs JSX tags 45 | } 46 | } 47 | ] 48 | } 49 | ``` 50 | 51 | ### SVGO options 52 | 53 | ```js 54 | { 55 | test: /\.svg$/, 56 | use: [ 57 | "babel-loader", 58 | { 59 | loader: "react-svg-loader", 60 | options: { 61 | svgo: { 62 | plugins: [ 63 | { removeTitle: false } 64 | ], 65 | floatPrecision: 2 66 | } 67 | } 68 | } 69 | ] 70 | } 71 | ``` 72 | 73 | ## Internals 74 | 75 |

76 | Input SVG 77 |

78 |

79 |

80 | SVG Optimize using SVGO 81 |

82 |

83 |

84 | Babel Transform with preset=react and plugin=svgToComponent 85 |

86 | 87 | ## Assumptions and Other gotchas 88 | 89 | + Root element is always `` 90 | + SVG is optimized using SVGO 91 | 92 | ## LICENSE 93 | 94 | [MIT](https://github.com/boopathi/react-svg-loader/blob/master/LICENSE) 95 | -------------------------------------------------------------------------------- /packages/react-svg-core/src/svgo.ts: -------------------------------------------------------------------------------- 1 | // validates svgo opts 2 | // to contain minimal set of plugins that will strip some stuff 3 | // for the babylon JSX parser to work 4 | 5 | import isPlainObject from "lodash.isplainobject"; 6 | import cloneDeep from "lodash.clonedeep"; 7 | 8 | const essentialPlugins = { 9 | removeDoctype: true, 10 | removeComments: true, 11 | removeStyleElement: true 12 | }; 13 | 14 | // If not explicitly set by the user, then set this value 15 | const pluginDefaults = { 16 | removeViewBox: false 17 | }; 18 | 19 | interface SvgoPlugin { 20 | [key: string]: any; 21 | } 22 | 23 | function getPlugin( 24 | pluginLike: string | SvgoPlugin, 25 | value: boolean = true 26 | ): [string, SvgoPlugin] { 27 | if (typeof pluginLike === "string") { 28 | return [ 29 | pluginLike, 30 | { 31 | [pluginLike]: value 32 | } 33 | ]; 34 | } 35 | const pluginName = Object.keys(pluginLike)[0]; 36 | return [pluginName, pluginLike]; 37 | } 38 | 39 | export function validateAndFix(opts: any = {}) { 40 | if (!isPlainObject(opts)) 41 | throw new Error("Expected options.svgo to be Object."); 42 | 43 | let cleanOpts = cloneDeep(opts); 44 | 45 | const plugins = new Map(); 46 | 47 | // add user input plugins to the map 48 | if (Array.isArray(cleanOpts.plugins)) { 49 | for (const plugin of cleanOpts.plugins) { 50 | const p = getPlugin(plugin); 51 | plugins.set(p[0], p[1]); 52 | } 53 | } 54 | 55 | for (let plugin in essentialPlugins) { 56 | if (hop(essentialPlugins, plugin)) { 57 | const p = getPlugin(plugin, essentialPlugins[plugin]); 58 | // overwrite 59 | plugins.set(p[0], p[1]); 60 | } 61 | } 62 | 63 | for (let plugin in pluginDefaults) { 64 | if (hop(pluginDefaults, plugin)) { 65 | const p = getPlugin(plugin, pluginDefaults[plugin]); 66 | // do not overwrite 67 | const existingPlugin = plugins.get(p[0]); 68 | if (existingPlugin == null) { 69 | plugins.set(p[0], p[1]); 70 | } 71 | } 72 | } 73 | 74 | cleanOpts.plugins = []; 75 | for (const [, plugin] of plugins) { 76 | cleanOpts.plugins.push(plugin); 77 | } 78 | 79 | return cleanOpts; 80 | } 81 | 82 | function hop(o, key) { 83 | return Object.prototype.hasOwnProperty.call(o, key); 84 | } 85 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-svg-loader 2 | 3 | [![Backers on Open Collective](https://opencollective.com/react-svg-loader/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/react-svg-loader/sponsors/badge.svg)](#sponsors) [![Build Status](https://travis-ci.org/boopathi/react-svg-loader.svg?branch=master)](https://travis-ci.org/boopathi/react-svg-loader) [![npm version](https://badge.fury.io/js/react-svg-loader.svg)](https://badge.fury.io/js/react-svg-loader) [![Code Climate](https://codeclimate.com/github/boopathi/react-svg-loader/badges/gpa.svg)](https://codeclimate.com/github/boopathi/react-svg-loader) [![Test Coverage](https://codeclimate.com/github/boopathi/react-svg-loader/badges/coverage.svg)](https://codeclimate.com/github/boopathi/react-svg-loader/coverage) 4 | 5 | ## Packages 6 | 7 | - [babel-plugin-react-svg](/packages/babel-plugin-react-svg) 8 | - [react-svg-core](/packages/react-svg-core) 9 | - [react-svg-loader](/packages/react-svg-loader) 10 | - [react-svg-loader-cli](/packages/react-svg-loader-cli) 11 | - [rollup-plugin-react-svg](/packages/rollup-plugin-react-svg) 12 | 13 | ## Versions 14 | 15 | ### Current 16 | 17 | VERSION: `3.x` (master) 18 | 19 | Refer [CHANGELOG](CHANGELOG.md) 20 | 21 | ### v2.x 22 | 23 | [branch=v2](https://github.com/boopathi/react-svg-loader/tree/v2) 24 | 25 | ### v1.x 26 | 27 | [branch=v1](https://github.com/boopathi/react-svg-loader/tree/v1) 28 | 29 | ### v0.1.x 30 | 31 | [branch=v0.1](https://github.com/boopathi/react-svg-loader/tree/v0.1) 32 | 33 | ## Contrubitors 34 | 35 | This project exists thanks to all the people who contribute. 36 | 37 | 38 | 39 | ## Backers 40 | 41 | Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/react-svg-loader)] 42 | 43 | 44 | 45 | ## Sponsors 46 | 47 | Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/react-svg-loader#sponsor)] 48 | 49 | ## LICENSE 50 | 51 | [MIT](https://github.com/boopathi/react-svg-loader/blob/master/LICENSE) 52 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-svg-loader", 3 | "version": "3.0.0", 4 | "private": true, 5 | "description": "Optimize svg and load it as a React Component", 6 | "keywords": [ 7 | "loader", 8 | "react", 9 | "react-svg-loader", 10 | "webpack", 11 | "webpack-loader" 12 | ], 13 | "homepage": "https://github.com/boopathi/react-svg-loader#readme", 14 | "bugs": { 15 | "url": "https://github.com/boopathi/react-svg-loader/issues" 16 | }, 17 | "repository": { 18 | "type": "git", 19 | "url": "git+https://github.com/boopathi/react-svg-loader.git" 20 | }, 21 | "license": "MIT", 22 | "author": "boopathi", 23 | "workspaces": [ 24 | "packages/*" 25 | ], 26 | "scripts": { 27 | "build": "tsc -b packages", 28 | "clean": "yarn build --clean && rm -rf example/public coverage .nyc_output", 29 | "cover": "NODE_ENV=test nyc --reporter=lcov ts-node ./node_modules/tape/bin/tape tests/*.ts", 30 | "eslint": "eslint .", 31 | "lint": "yarn eslint", 32 | "publish-master": "lerna publish -c --yes -m 'chore(nightly): publish %s'", 33 | "test": "NODE_ENV=test ts-node ./node_modules/tape/bin/tape tests/*.ts | faucet", 34 | "watch": "yarn build --watch" 35 | }, 36 | "devDependencies": { 37 | "@babel/core": "^7.5.4", 38 | "@babel/preset-env": "^7.5.4", 39 | "@babel/preset-flow": "^7.0.0", 40 | "@babel/register": "^7.4.4", 41 | "@types/lodash.clonedeep": "^4.5.6", 42 | "@types/node": "^12.6.2", 43 | "@types/tape": "^4.2.33", 44 | "@typescript-eslint/eslint-plugin": "^1.11.0", 45 | "@typescript-eslint/parser": "^1.11.0", 46 | "babel-plugin-add-module-exports": "^1.0.2", 47 | "babel-plugin-istanbul": "^5.1.4", 48 | "chalk": "^2.4.2", 49 | "eslint": "^6.0.1", 50 | "eslint-plugin-prettier": "^3.1.0", 51 | "eslint-plugin-react": "^7.14.2", 52 | "faucet": "0.0.1", 53 | "lerna": "^3.15.0", 54 | "nyc": "^14.1.1", 55 | "prettier": "^1.18.2", 56 | "react": "^16.8.6", 57 | "react-dom": "^16.8.6", 58 | "react-test-renderer": "^16.8.6", 59 | "tap-nyc": "^1.0.3", 60 | "tape": "^4.11.0", 61 | "ts-node": "^8.3.0", 62 | "typescript": "^3.5.3" 63 | }, 64 | "nyc": { 65 | "all": true, 66 | "include": [ 67 | "packages/**" 68 | ], 69 | "extension": [ 70 | ".ts" 71 | ] 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /example/her.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /packages/babel-plugin-react-svg/README.md: -------------------------------------------------------------------------------- 1 | # babel-plugin-react-svg 2 | 3 | A plugin that converts svg to a react component. Used in [react-svg-loader](/packages/react-svg-loader) 4 | 5 | ## Install 6 | 7 | ```sh 8 | npm i babel-plugin-react-svg --save-dev 9 | 10 | # or with yarn 11 | 12 | yarn add babel-plugin-react-svg --dev 13 | ``` 14 | 15 | ## Example 16 | 17 | Input SVG: 18 | 19 | ```html 20 | 21 | 22 | 23 | ``` 24 | 25 | Output React Component: 26 | 27 | ```js 28 | import React from "react"; 29 | export default ({ styles = {}, ...props}) => 34 | 35 | ; 36 | ``` 37 | 38 | ## Transformations 39 | 40 | Going from bottom up, the following transformations are applied and the same can be checked in the partly annotated source - [babel-plugin](src/plugin.js) 41 | 42 | #### 1. Hyphenated attributes to camelCase 43 | 44 | ```html 45 | 46 | 47 | 48 | ``` 49 | 50 | is transformed to 51 | 52 | ```html 53 | 54 | 55 | 56 | ``` 57 | 58 | #### 2. Style attr string to object 59 | 60 | React expects style attribute value to be an object. Also, Hyphenated style names are converted to camel case. 61 | 62 | ```html 63 | 64 | 65 | 66 | ``` 67 | 68 | is transformed to 69 | 70 | ```html 71 | 72 | 73 | 74 | ``` 75 | 76 | #### 3. Propagate props to root element 77 | 78 | The props passed to the output component is passed on to the root SVG node and the props already defined are overridden by the props passed. 79 | 80 | ```html 81 | 82 | ... 83 | 84 | ``` 85 | 86 | is transformed to 87 | 88 | ```html 89 | 90 | ... 91 | 92 | ``` 93 | 94 | #### 4. class to className & class values to styles prop 95 | 96 | ```html 97 | 98 | ``` 99 | 100 | is transformed to 101 | 102 | ```jsx 103 | 104 | ``` 105 | 106 | #### 5. export React.Component 107 | 108 | The loader should now export the svg component. And this is done by wrapping it in an ArrowFunctionExpression. 109 | 110 | ```html 111 | ... 112 | ``` 113 | 114 | is transformed to 115 | 116 | ```js 117 | import React from 'react'; 118 | export default ({ styles = {}, ...props }) => ...; 119 | ``` 120 | 121 | ## Assumptions and Other gotchas 122 | 123 | + Root element is always `` 124 | + SVG is optimized using SVGO 125 | 126 | ## LICENSE 127 | 128 | [MIT](https://github.com/boopathi/react-svg-loader/blob/master/LICENSE) 129 | -------------------------------------------------------------------------------- /packages/react-svg-loader-cli/src/cli.ts: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | import loader from "react-svg-loader"; 4 | import * as fs from "fs"; 5 | import yargs from "yargs"; 6 | import yaml from "js-yaml"; 7 | import * as path from "path"; 8 | import isPlainObject from "lodash.isplainobject"; 9 | 10 | function makeFilename(filename: string) { 11 | return filename + ".react.js"; 12 | } 13 | 14 | function handlePath(configFile: string) { 15 | switch (path.extname(configFile)) { 16 | case ".yaml": 17 | return yaml.safeLoad(fs.readFileSync(configFile).toString()); 18 | case ".json": 19 | return JSON.parse(fs.readFileSync(configFile).toString()); 20 | case ".js": 21 | return require(path.join(process.cwd(), configFile)); 22 | default: 23 | throw new Error("Unsupported config file format."); 24 | } 25 | } 26 | 27 | function getArgv() { 28 | return ( 29 | yargs 30 | .usage("Usage: $0 [files] [options]") 31 | .option("jsx", { 32 | describe: "Output JSX instead of applying babel-preset-react", 33 | boolean: true, 34 | default: false 35 | }) 36 | .option("stdout", { 37 | describe: "Print output to stdout", 38 | boolean: true, 39 | default: false 40 | }) 41 | // svgo options 42 | .option("svgo", { 43 | describe: "Path to YAML or JS or JSON config file for SVGO" 44 | }) 45 | .demand(1) 46 | .version(require("../package.json").version) 47 | .help("h") 48 | .alias("h", "help").argv 49 | ); 50 | } 51 | 52 | function getSVGOOpts(argv) { 53 | let svgoOpts: any = {}; 54 | 55 | if (typeof argv.svgo === "string") { 56 | svgoOpts = handlePath(argv.svgo); 57 | } else if (isPlainObject(argv.svgo)) { 58 | svgoOpts = argv.svgo; 59 | // convert plugin object to array of objects 60 | if (isPlainObject(svgoOpts.plugins)) { 61 | svgoOpts.plugins = Object.keys(svgoOpts.plugins).map(key => { 62 | return { [key]: svgoOpts.plugins[key] === "false" ? false : true }; 63 | }); 64 | } else if (typeof svgoOpts.plugins === "string") { 65 | svgoOpts.plugins = [svgoOpts.plugins]; 66 | } 67 | } 68 | 69 | return svgoOpts; 70 | } 71 | 72 | function getLoaderContext({ argv, query, file }) { 73 | return { 74 | query, 75 | addDependency() {}, 76 | async() { 77 | return function(err, result) { 78 | /* eslint-disable no-console */ 79 | if (err) console.error("REACT-SVG-LOADER ERROR", file, err.stack); 80 | else if (argv["stdout"]) console.log(result); 81 | else fs.writeFileSync(makeFilename(file), result); 82 | /* eslint-enable */ 83 | }; 84 | } 85 | }; 86 | } 87 | 88 | function run() { 89 | const argv = getArgv(); 90 | const svgoOpts = getSVGOOpts(argv); 91 | 92 | argv._.map(file => { 93 | const source = fs.readFileSync(file); 94 | 95 | const query = { 96 | svgo: svgoOpts, 97 | jsx: argv.jsx 98 | }; 99 | 100 | loader.apply(getLoaderContext({ argv, query, file }), [source]); 101 | }); 102 | } 103 | 104 | if (require.main === module) { 105 | run(); 106 | } 107 | -------------------------------------------------------------------------------- /tests/cli.ts: -------------------------------------------------------------------------------- 1 | import test from "tape"; 2 | import { execFile } from "child_process"; 3 | import path from "path"; 4 | 5 | function exec(...args) { 6 | return new Promise((resolve, reject) => { 7 | execFile( 8 | "node", 9 | [ 10 | path.join(__dirname, "../packages/react-svg-loader-cli/lib/cli.js"), 11 | "--stdout" 12 | ].concat(args), 13 | { 14 | cwd: path.join(__dirname, "resources") 15 | }, 16 | function(err, stdout, stderr) { 17 | if (err) { 18 | /* eslint-disable no-console */ 19 | console.error(stderr); 20 | /* eslint-enable */ 21 | return reject(err); 22 | } 23 | resolve(stdout); 24 | } 25 | ); 26 | }); 27 | } 28 | 29 | function occurence(content) { 30 | let occ: any = {}; 31 | occ.import = content.match(/import\sReact/g); 32 | occ.export = content.match(/export\sdefault/g); 33 | occ.import = occ.import ? occ.import.length : 0; 34 | occ.export = occ.export ? occ.export.length : 0; 35 | return occ; 36 | } 37 | 38 | function testOccurence(t, content, n) { 39 | let o = occurence(content); 40 | t.equal(o.import, n); 41 | t.equal(o.export, n); 42 | } 43 | 44 | test("accept single argument", function(t) { 45 | exec("dummy.svg") 46 | .then(r => { 47 | testOccurence(t, r, 1); 48 | t.end(); 49 | }) 50 | .catch(t.end); 51 | }); 52 | 53 | test("accept multiple arguments", function(t) { 54 | exec("dummy.svg", "dummy2.svg") 55 | .then(r => { 56 | testOccurence(t, r, 2); 57 | t.end(); 58 | }) 59 | .catch(t.end); 60 | }); 61 | 62 | test("pass options to svgo", function(t) { 63 | Promise.all([ 64 | exec("dummy.svg", "--jsx"), 65 | exec("dummy.svg", "--svgo.js2svg.pretty", "--jsx"), 66 | exec("dummy2.svg", "--svgo.floatPrecision", "1"), 67 | exec("dummy2.svg", "--svgo.floatPrecision", "8") 68 | ]) 69 | .then(r => { 70 | t.notEqual(r[0], r[1]); 71 | t.notEqual(r[2], r[3]); 72 | t.end(); 73 | }) 74 | .catch(t.end); 75 | }); 76 | 77 | test("disable svgo plugin", function(t) { 78 | Promise.all([ 79 | exec("dummy.svg", "--svgo.plugins.sortAttrs", "true"), 80 | exec("dummy.svg", "--svgo.plugins.sortAttrs", "false") 81 | ]) 82 | .then(r => { 83 | t.notEqual(r[0], r[1]); 84 | t.end(); 85 | }) 86 | .catch(t.end); 87 | }); 88 | 89 | test("pass multiple svgo plugin options", function(t) { 90 | Promise.all([ 91 | exec( 92 | "dummy.svg", 93 | "--svgo.plugins.convertStyleToAttrs", 94 | "false", 95 | "--svgo.plugins.sortAttrs", 96 | "true" 97 | ), 98 | exec("dummy.svg", "--svgo.plugins.convertStyleToAttrs", "false") 99 | ]) 100 | .then(r => { 101 | t.notEqual(r[0], r[1]); 102 | t.end(); 103 | }) 104 | .catch(t.end); 105 | }); 106 | 107 | test("plugins options in svgo", function(t) { 108 | Promise.all([exec("dummy.svg"), exec("dummy.svg", "--svgo.full")]) 109 | .then(r => { 110 | t.notEqual(r[0], r[1]); 111 | t.end(); 112 | }) 113 | .catch(t.end); 114 | }); 115 | 116 | test("accepts yaml/json/js input", function(t) { 117 | Promise.all([ 118 | exec("dummy.svg", "--svgo", "config.yaml"), 119 | exec("dummy.svg", "--svgo", "config.json"), 120 | exec("dummy.svg", "--svgo", "config.js") 121 | ]) 122 | .then(r => { 123 | t.equal(r[0], r[1]); 124 | t.equal(r[1], r[2]); 125 | t.end(); 126 | }) 127 | .catch(t.end); 128 | }); 129 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 3.0.3 4 | 5 | - Ignore babel config files during transformation [#264](https://github.com/boopathi/react-svg-loader/pull/264) 6 | 7 | ## 3.0.1 8 | 9 | - Fix `package.json` version updates ([27bce4a](https://github.com/boopathi/react-svg-loader/commit/27bce4a34c1d9e184619a34c2e3f7ce5bfa019a6)) 10 | 11 | ## 3.0.0 12 | 13 | - Drop Node 6. Run tests on Node 8, 10, and 12 14 | - Upgrade dependencies 15 | 16 | Fixes: 17 | 18 | - Close svgo object instead of mutating it ([#250](https://github.com/boopathi/react-svg-loader/pull/250)) 19 | - Compatibility between babel 6 and 7 for `t.restElement` and `t.restProperty` ([#244](https://github.com/boopathi/react-svg-loader/pull/244)) 20 | - Update to use fully resolved paths for babel plugins ([#209](https://github.com/boopathi/react-svg-loader/pull/209)) 21 | 22 | ## 2.1.0 23 | 24 | ### Rollup plugin 25 | 26 | Two new packages - 27 | 28 | - [react-svg-core](/packages/react-svg-core) - shared between webpack loader and rollup plugin 29 | - [rollup-plugin-react-svg](/packages/rollup-plugin-react-svg) - rollup plugin to load `.svg` files as react components 30 | 31 | ## 2.0.0 32 | 33 | ### Drops Node 0.12 support & webpack 1 support 34 | 35 | Tests are run on Node 4, 6, and 8 36 | 37 | ### Output change from component class to arrow function 38 | 39 | Previously, the output of the react-svg-loader was - 40 | 41 | ```js 42 | import React from "react"; 43 | export default class SVG extends React.Component { 44 | render() { 45 | return {svgContent}; 46 | } 47 | } 48 | ``` 49 | 50 | and now it is - 51 | 52 | ```js 53 | import React from "react"; 54 | export default props => {svgContent}; 55 | ``` 56 | 57 | ### Overridable classnames (to use with css-modules) 58 | 59 | Previously, class values are NOT transformed. Now they are transformed such that the output component can be used with css-modules 60 | 61 | ```js 62 | 63 | ``` 64 | 65 | is transformed to 66 | 67 | ```js 68 | 69 | ``` 70 | 71 | So, you can pass/override some styles in the svg, for example - 72 | 73 | ```js 74 | import Image from "react-svg-loader!./image.svg"; 75 | import styles from "./styles.css"; // with css-modules 76 | 77 | const imageStyles = { 78 | foo: styles.foo, 79 | bar: styles.bar 80 | }; 81 | 82 | let component = ; 83 | ``` 84 | 85 | ### Drop option `es5` 86 | 87 | Previously, you could do, 88 | 89 | ```js 90 | { 91 | loader: "react-svg-loader", 92 | options: { 93 | es5: true 94 | } 95 | } 96 | ``` 97 | 98 | and get output transpiled to ES5 using babel-preset-es2015. 99 | 100 | This is now deprecated and the **recommended** way to use react-svg-loader is to use it with [babel-loader](https://github.com/babel/babel-loader) 101 | 102 | ```js 103 | { 104 | test: /\.svg$/, 105 | use: [ 106 | "babel-loader", 107 | "react-svg-loader" 108 | ] 109 | } 110 | ``` 111 | 112 | and with [babel-preset-env](https://github.com/babel/babel-preset-env) in `.babelrc`: 113 | 114 | ```json 115 | { 116 | "presets": [ 117 | [ 118 | "env", 119 | { 120 | "target": { 121 | "browsers": "IE > 11" 122 | } 123 | } 124 | ] 125 | ] 126 | } 127 | ``` 128 | 129 | #### Move to 3 packages 130 | 131 | Now react-svg-loader is split into 3 packages 132 | 133 | - [babel-plugin-react-svg](/packages/babel-plugin-react-svg) 134 | - [react-svg-loader](/packages/react-svg-loader) 135 | - [react-svg-loader-cli](/packages/react-svg-loader-cli) 136 | -------------------------------------------------------------------------------- /packages/babel-plugin-react-svg/src/index.ts: -------------------------------------------------------------------------------- 1 | import cssToObj from "./css-to-obj"; 2 | import { hyphenToCamel, namespaceToCamel } from "./camelize"; 3 | import BabelCore from "@babel/core"; 4 | 5 | export default function(babel: BabelCore) { 6 | const t = babel.types; 7 | const restElement = t.restElement ? t.restElement : t.restProperty; 8 | 9 | const createClass = (className: string) => 10 | t.logicalExpression( 11 | "||", 12 | t.memberExpression( 13 | /* object = */ t.identifier("styles"), 14 | /* property = */ t.stringLiteral(className), 15 | /* computed = */ true 16 | ), 17 | t.stringLiteral(className) 18 | ); 19 | 20 | const attrVisitor = { 21 | JSXAttribute(path: any) { 22 | const name = path.get("name"); 23 | const value = path.get("value"); 24 | 25 | if (name.isJSXNamespacedName()) { 26 | // converts 27 | // 28 | // to 29 | // 30 | name.replaceWith( 31 | t.jSXIdentifier( 32 | namespaceToCamel( 33 | path.node.name.namespace.name, 34 | path.node.name.name.name 35 | ) 36 | ) 37 | ); 38 | } else if (name.isJSXIdentifier()) { 39 | if (name.node.name === "class") { 40 | // converts 41 | // 42 | // to 43 | // 44 | name.replaceWith(t.jSXIdentifier("className")); 45 | 46 | // converts 47 | // className="foo bar" 48 | // to 49 | // className={(styles["foo"] || "foo") + " " + (styles["bar"] || "bar")} 50 | let classes = value.node.value.split(/\s/); 51 | 52 | if (classes.length > 0) { 53 | let expr = createClass(classes[0]); 54 | for (let i = 1; i < classes.length; i++) { 55 | expr = t.binaryExpression( 56 | "+", 57 | // (props.styles["foo"] || "foo") + " " 58 | t.binaryExpression("+", expr, t.stringLiteral(" ")), 59 | // (props.styles["bar"] || "bar") 60 | createClass(classes[i]) 61 | ); 62 | } 63 | value.replaceWith(t.jSXExpressionContainer(expr)); 64 | } 65 | } 66 | 67 | // converts 68 | // 69 | // to 70 | // 71 | if (name.node.name === "style") { 72 | let csso = cssToObj(value.node.value); 73 | let properties = Object.keys(csso).map(prop => 74 | t.objectProperty( 75 | t.identifier(hyphenToCamel(prop)), 76 | t.stringLiteral(csso[prop]) 77 | ) 78 | ); 79 | value.replaceWith( 80 | t.jSXExpressionContainer(t.objectExpression(properties)) 81 | ); 82 | } 83 | 84 | // converts 85 | // 86 | // to 87 | // 88 | if (!/^(data-|aria-)/.test(name.node.name)) { 89 | name.replaceWith(t.jSXIdentifier(hyphenToCamel(path.node.name.name))); 90 | } 91 | } 92 | } 93 | }; 94 | 95 | // returns 96 | // export default (props) => ${input_svg_node} 97 | const getExport = function(svg) { 98 | return t.exportDefaultDeclaration( 99 | t.arrowFunctionExpression( 100 | [ 101 | t.objectPattern([ 102 | t.objectProperty( 103 | t.identifier("styles"), 104 | t.assignmentPattern( 105 | t.identifier("styles"), 106 | t.objectExpression([]) 107 | ), 108 | false, 109 | true 110 | ), 111 | restElement(t.identifier("props")) 112 | ]) 113 | ], 114 | svg 115 | ) 116 | ); 117 | }; 118 | 119 | // converts 120 | // 121 | // to 122 | // 123 | // after passing through attributes visitors 124 | const svgVisitor = { 125 | JSXOpeningElement(path: any) { 126 | if (path.node.name.name.toLowerCase() === "svg") { 127 | // add spread props 128 | path.node.attributes.push(t.jSXSpreadAttribute(t.identifier("props"))); 129 | } 130 | } 131 | }; 132 | 133 | // converts 134 | // 135 | // to 136 | // import React from 'react'; 137 | // export default props => ; 138 | // after passing through other visitors 139 | const svgExpressionVisitor = { 140 | ExpressionStatement(path: any) { 141 | if (!path.get("expression").isJSXElement()) return; 142 | if (path.get("expression.openingElement.name").node.name !== "svg") 143 | return; 144 | path.replaceWith(getExport(path.get("expression").node)); 145 | } 146 | }; 147 | 148 | const programVisitor = { 149 | Program(path: any) { 150 | // add import react statement 151 | path.node.body.unshift( 152 | t.importDeclaration( 153 | [t.importDefaultSpecifier(t.identifier("React"))], 154 | t.stringLiteral("react") 155 | ) 156 | ); 157 | } 158 | }; 159 | 160 | return { 161 | visitor: Object.assign( 162 | {}, 163 | programVisitor, 164 | svgExpressionVisitor, 165 | svgVisitor, 166 | attrVisitor 167 | ) 168 | }; 169 | } 170 | -------------------------------------------------------------------------------- /tests/loader.ts: -------------------------------------------------------------------------------- 1 | import reactSVGLoader from "../packages/react-svg-loader/src/loader"; 2 | import React from "react"; 3 | import ShallowRenderer from "react-test-renderer/shallow"; 4 | import test from "tape"; 5 | import vm from "vm"; 6 | import { transform } from "@babel/core"; 7 | 8 | function loader(content: string, query?: any) { 9 | return new Promise(function(resolve, reject) { 10 | let context = { 11 | query, 12 | cacheable() {}, 13 | addDependency() {}, 14 | async() { 15 | return function(err, result) { 16 | if (err) return reject(err); 17 | 18 | let exports = {}; 19 | let sandbox: any = { module: { exports }, exports, require }; 20 | vm.runInNewContext( 21 | transform(result, { 22 | babelrc: false, 23 | configFile: false, 24 | presets: [ 25 | [ 26 | "@babel/preset-env", 27 | { 28 | targets: { ie: 11 } 29 | } 30 | ], 31 | "@babel/preset-react" 32 | ] 33 | }).code, 34 | sandbox 35 | ); 36 | resolve(sandbox.exports.default); 37 | }; 38 | } 39 | }; 40 | reactSVGLoader.apply(context, [content]); 41 | }); 42 | } 43 | 44 | function render(element) { 45 | let r = new ShallowRenderer(); 46 | r.render(element); 47 | return r.getRenderOutput(); 48 | } 49 | 50 | test("empty svg tag", function(t) { 51 | t.plan(1); 52 | 53 | loader(``) 54 | .then(component => render(React.createElement(component))) 55 | .then(r => { 56 | t.equal(r.type, "svg"); 57 | }) 58 | .catch(t.end); 59 | }); 60 | 61 | test("svg tag with some props", function(t) { 62 | t.plan(4); 63 | 64 | loader(``) 65 | .then(component => render(React.createElement(component))) 66 | .then(r => { 67 | t.equal(r.type, "svg", "tag check"); 68 | t.assert(Object.keys(r.props).length > 1, "assert props exists"); 69 | t.equal(r.props.width, "50", "width prop check"); 70 | t.equal(r.props.height, "50", "height prop check"); 71 | }) 72 | .catch(t.end); 73 | }); 74 | 75 | test("passing props to empty svg tag", function(t) { 76 | t.plan(4); 77 | 78 | loader(``) 79 | // pass in number - comes out as number, 80 | // pass in string - comes out as string 81 | .then(component => 82 | render(React.createElement(component, { width: 100, height: "100" })) 83 | ) 84 | .then(r => { 85 | t.equal(r.type, "svg", "tag check"); 86 | t.assert(Object.keys(r.props).length > 1, "assert props exists"); 87 | t.equal(r.props.width, 100, "width prop check"); 88 | t.equal(r.props.height, "100", "height prop check"); 89 | }) 90 | .catch(t.end); 91 | }); 92 | 93 | test("overriding props of an svg", function(t) { 94 | t.plan(4); 95 | 96 | loader(``) 97 | .then(component => 98 | render(React.createElement(component, { width: 100, height: "100" })) 99 | ) 100 | .then(r => { 101 | t.equal(r.type, "svg", "tag check"); 102 | t.assert(Object.keys(r.props).length > 1, "assert props exists"); 103 | t.equal(r.props.width, 100, "width prop check"); 104 | t.equal(r.props.height, "100", "height prop check"); 105 | }) 106 | .catch(t.end); 107 | }); 108 | 109 | test("compression: namespace attr", function(t) { 110 | t.plan(1); 111 | 112 | loader(``) 113 | .then(component => render(React.createElement(component))) 114 | .then(r => { 115 | t.equal(Object.keys(r.props).length, 0, "namespace props are stripped"); 116 | }) 117 | .catch(t.end); 118 | }); 119 | 120 | test("should not convert data-* and aria-* props", function(t) { 121 | t.plan(2); 122 | 123 | loader(``, { 124 | svgo: { 125 | plugins: [{ removeUnknownsAndDefaults: false }] 126 | } 127 | }) 128 | .then(component => render(React.createElement(component))) 129 | .then(r => { 130 | t.notEqual( 131 | Object.keys(r.props).indexOf("data-foo"), 132 | -1, 133 | "data-* shouldn't be camelCased" 134 | ); 135 | t.notEqual( 136 | Object.keys(r.props).indexOf("aria-label"), 137 | -1, 138 | "aria-* shouldn't be camelCased" 139 | ); 140 | }) 141 | .catch(t.end); 142 | }); 143 | 144 | const circle = ` 145 | 146 | 147 | 148 | `; 149 | 150 | test("converts attr from hyphen to camel", function(t) { 151 | loader(circle) 152 | .then(c => { 153 | let r = render(React.createElement(c)); 154 | t.ok(r.props.pointerEvents, "contains pointerEvents"); 155 | t.notOk(r.props["pointer-events"], "does not contain pointer-events"); 156 | t.end(); 157 | }) 158 | .catch(t.end); 159 | }); 160 | 161 | test("style attr of root svg", function(t) { 162 | loader(circle) 163 | .then(c => { 164 | let r = render(React.createElement(c)); 165 | t.ok(r.props.style, "contains style attr"); 166 | t.equal(typeof r.props.style, "object", "style attr is an object"); 167 | t.ok(r.props.style.width, "contains width"); 168 | t.ok(r.props.style.textAlign, "contains textAlign"); 169 | t.notOk(r.props.style["text-align"], "does not contain text-align"); 170 | t.end(); 171 | }) 172 | .catch(t.end); 173 | }); 174 | 175 | test("converts class to className", function(t) { 176 | loader(circle) 177 | .then(c => { 178 | let r = render(React.createElement(c)); 179 | t.ok(r.props.className, "contains className"); 180 | t.notOk(r.props.class, "does not contain class"); 181 | t.end(); 182 | }) 183 | .catch(t.end); 184 | }); 185 | 186 | test("converts attr of children from hyphen to camel", function(t) { 187 | loader(circle) 188 | .then(c => { 189 | let r = render(React.createElement(c)); 190 | let props = r.props.children.props; 191 | t.ok(props.strokeWidth, "contains strokeWidth"); 192 | t.notOk(props["stroke-width"], "does not contain stroke-width"); 193 | t.end(); 194 | }) 195 | .catch(t.end); 196 | }); 197 | 198 | test("style attr of children", function(t) { 199 | loader(circle) 200 | .then(c => { 201 | let r = render(React.createElement(c)); 202 | let props = r.props.children.props; 203 | t.ok(props.style, "contais style attr"); 204 | t.equal(typeof props.style, "object", "style attr is an object"); 205 | t.ok(props.style.textAlign, "contains textAlign"); 206 | t.notOk(props.style["text-align"], "does not contain text-align"); 207 | t.end(); 208 | }) 209 | .catch(t.end); 210 | }); 211 | -------------------------------------------------------------------------------- /example/image.svg: -------------------------------------------------------------------------------- 1 | 2 | 19 | 21 | 22 | 24 | image/svg+xml 25 | 27 | 28 | 29 | 30 | 50 | 52 | 55 | 59 | 63 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /tests/resources/dummy2.svg: -------------------------------------------------------------------------------- 1 | 2 | 19 | 21 | 22 | 24 | image/svg+xml 25 | 27 | 28 | 29 | 30 | 50 | 52 | 55 | 59 | 63 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /packages/svgo.d.ts: -------------------------------------------------------------------------------- 1 | // Copy of SVGO because typescript was annoying 2 | // complaining falsely about esModuleInterop even though 3 | // it was set to true 4 | 5 | // Type definitions for svgo 1.2 6 | // Project: https://github.com/svg/svgo 7 | // Definitions by: Bradley Ayers 8 | // Gilad Gray 9 | // Aankhen 10 | // Jan Karres 11 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped 12 | // TypeScript Version: 2.2 13 | 14 | interface PluginCleanupAttrs { 15 | cleanupAttrs: boolean | object; 16 | } 17 | 18 | interface PluginInlineStyles { 19 | cleanupAttrs: boolean | object; 20 | } 21 | 22 | interface PluginRemoveDoctype { 23 | removeDoctype: boolean | object; 24 | } 25 | 26 | interface PluginRemoveXMLProcInst { 27 | removeXMLProcInst: boolean | object; 28 | } 29 | 30 | interface PluginRemoveComments { 31 | removeComments: boolean | object; 32 | } 33 | 34 | interface PluginRemoveMetadata { 35 | removeMetadata: boolean | object; 36 | } 37 | 38 | interface PluginRemoveTitle { 39 | removeTitle: boolean | object; 40 | } 41 | 42 | interface PluginRemoveDesc { 43 | removeDesc: boolean | object; 44 | } 45 | 46 | interface PluginRemoveUselessDefs { 47 | removeUselessDefs: boolean | object; 48 | } 49 | 50 | interface PluginRemoveXMLNS { 51 | removeXMLNS: boolean | object; 52 | } 53 | 54 | interface PluginRemoveEditorsNSData { 55 | removeEditorsNSData: boolean | object; 56 | } 57 | 58 | interface PluginRemoveEmptyAttrs { 59 | removeEmptyAttrs: boolean | object; 60 | } 61 | 62 | interface PluginRemoveHiddenElems { 63 | removeHiddenElems: boolean | object; 64 | } 65 | 66 | interface PluginRemoveEmptyText { 67 | removeEmptyText: boolean | object; 68 | } 69 | 70 | interface PluginRemoveEmptyContainers { 71 | removeEmptyContainers: boolean | object; 72 | } 73 | 74 | interface PluginRemoveViewBox { 75 | removeViewBox: boolean | object; 76 | } 77 | 78 | interface PluginCleanupEnableBackground { 79 | cleanupEnableBackground: boolean | object; 80 | } 81 | 82 | interface PluginMinifyStyles { 83 | minifyStyles: boolean | object; 84 | } 85 | 86 | interface PluginConvertStyleToAttrs { 87 | convertStyleToAttrs: boolean | object; 88 | } 89 | 90 | interface PluginConvertColors { 91 | convertColors: boolean | object; 92 | } 93 | 94 | interface PluginConvertPathData { 95 | convertPathData: boolean | object; 96 | } 97 | 98 | interface PluginConvertTransform { 99 | convertTransform: boolean | object; 100 | } 101 | 102 | interface PluginRemoveUnknownsAndDefaults { 103 | removeUnknownsAndDefaults: boolean | object; 104 | } 105 | 106 | interface PluginRemoveNonInheritableGroupAttrs { 107 | removeNonInheritableGroupAttrs: boolean | object; 108 | } 109 | 110 | interface PluginRemoveUselessStrokeAndFill { 111 | removeUselessStrokeAndFill: boolean | object; 112 | } 113 | 114 | interface PluginRemoveUnusedNS { 115 | removeUnusedNS: boolean | object; 116 | } 117 | 118 | interface PluginPrefixIds { 119 | removeUnusedNS: boolean | object; 120 | } 121 | 122 | interface PluginCleanupIDs { 123 | cleanupIDs: boolean | object; 124 | } 125 | 126 | interface PluginCleanupNumericValues { 127 | cleanupNumericValues: boolean | object; 128 | } 129 | 130 | interface PluginCleanupListOfValues { 131 | cleanupListOfValues: boolean | object; 132 | } 133 | 134 | interface PluginMoveElemsAttrsToGroup { 135 | moveElemsAttrsToGroup: boolean | object; 136 | } 137 | 138 | interface PluginMoveGroupAttrsToElems { 139 | moveGroupAttrsToElems: boolean | object; 140 | } 141 | 142 | interface PluginCollapseGroups { 143 | collapseGroups: boolean | object; 144 | } 145 | 146 | interface PluginRemoveRasterImages { 147 | removeRasterImages: boolean | object; 148 | } 149 | 150 | interface PluginMergePaths { 151 | mergePaths: boolean | object; 152 | } 153 | 154 | interface PluginConvertShapeToPath { 155 | convertShapeToPath: boolean | object; 156 | } 157 | 158 | interface PluginSortAttrs { 159 | sortAttrs: boolean | object; 160 | } 161 | 162 | interface PluginRemoveDimensions { 163 | removeDimensions: boolean | object; 164 | } 165 | 166 | interface PluginRemoveAttrs { 167 | removeAttrs: boolean | object; 168 | } 169 | 170 | interface PluginRemoveAttributesBySelector { 171 | removeAttributesBySelector: boolean | object; 172 | } 173 | 174 | interface PluginRemoveElementsByAttr { 175 | removeElementsByAttr: boolean | object; 176 | } 177 | 178 | interface PluginAddClassesToSVGElement { 179 | addClassesToSVGElement: boolean | object; 180 | } 181 | 182 | interface PluginAddAttributesToSVGElement { 183 | addAttributesToSVGElement: boolean | object; 184 | } 185 | 186 | interface PluginRemoveOffCanvasPaths { 187 | removeOffCanvasPaths: boolean | object; 188 | } 189 | 190 | interface PluginRemoveStyleElement { 191 | removeStyleElement: boolean | object; 192 | } 193 | 194 | interface PluginRemoveScriptElement { 195 | removeScriptElement: boolean | object; 196 | } 197 | 198 | interface PluginReusePaths { 199 | reusePaths: boolean | object; 200 | } 201 | 202 | interface SvgInfo { 203 | path?: string; 204 | } 205 | 206 | interface OptimizedSvg { 207 | data: string; 208 | info: object; 209 | } 210 | 211 | declare class SVGO { 212 | constructor(options?: SVGO.Options); 213 | optimize(svgString: string, info?: SvgInfo): Promise; 214 | } 215 | 216 | declare namespace SVGO { 217 | type PluginConfig = 218 | | PluginCleanupAttrs 219 | | PluginInlineStyles 220 | | PluginRemoveDoctype 221 | | PluginRemoveXMLProcInst 222 | | PluginRemoveComments 223 | | PluginRemoveMetadata 224 | | PluginRemoveTitle 225 | | PluginRemoveDesc 226 | | PluginRemoveUselessDefs 227 | | PluginRemoveXMLNS 228 | | PluginRemoveEditorsNSData 229 | | PluginRemoveEmptyAttrs 230 | | PluginRemoveHiddenElems 231 | | PluginRemoveEmptyText 232 | | PluginRemoveEmptyContainers 233 | | PluginRemoveViewBox 234 | | PluginCleanupEnableBackground 235 | | PluginMinifyStyles 236 | | PluginConvertStyleToAttrs 237 | | PluginConvertColors 238 | | PluginConvertPathData 239 | | PluginConvertTransform 240 | | PluginRemoveUnknownsAndDefaults 241 | | PluginRemoveNonInheritableGroupAttrs 242 | | PluginRemoveUselessStrokeAndFill 243 | | PluginRemoveUnusedNS 244 | | PluginPrefixIds 245 | | PluginCleanupIDs 246 | | PluginCleanupNumericValues 247 | | PluginCleanupListOfValues 248 | | PluginMoveElemsAttrsToGroup 249 | | PluginMoveGroupAttrsToElems 250 | | PluginCollapseGroups 251 | | PluginRemoveRasterImages 252 | | PluginMergePaths 253 | | PluginConvertShapeToPath 254 | | PluginSortAttrs 255 | | PluginRemoveDimensions 256 | | PluginRemoveAttrs 257 | | PluginRemoveAttributesBySelector 258 | | PluginRemoveElementsByAttr 259 | | PluginAddClassesToSVGElement 260 | | PluginAddAttributesToSVGElement 261 | | PluginRemoveOffCanvasPaths 262 | | PluginRemoveStyleElement 263 | | PluginRemoveScriptElement 264 | | PluginReusePaths; 265 | 266 | interface Js2SvgOptions { 267 | /** @default '' */ 270 | doctypeEnd?: string; 271 | /** @default '' */ 274 | procInstEnd?: string; 275 | /** @default '<' */ 276 | tagOpenStart?: string; 277 | /** @default '>' */ 278 | tagOpenEnd?: string; 279 | /** @default '' */ 282 | tagCloseEnd?: string; 283 | /** @default '<' */ 284 | tagShortStart?: string; 285 | /** @default '/>' */ 286 | tagShortEnd?: string; 287 | /** @default '="' */ 288 | attrStart?: string; 289 | /** @default '"' */ 290 | attrEnd?: string; 291 | /** @default '' */ 294 | commentEnd?: string; 295 | /** @default '' */ 296 | cdataStart?: string; 297 | /** @default '' */ 298 | cdataEnd?: string; 299 | /** @default '' */ 300 | textStart?: string; 301 | /** @default '' */ 302 | textEnd?: string; 303 | /** @default 4 */ 304 | indent?: number; 305 | /** @default /[&'"<>]/g */ 306 | regEntities?: RegExp; 307 | /** @default /[&"<>]/g */ 308 | regValEntities?: RegExp; 309 | /** @default encodeEntity */ 310 | encodeEntity?: (char?: string) => string; 311 | /** @default false */ 312 | pretty?: boolean; 313 | /** @default true */ 314 | useShortTags?: boolean; 315 | } 316 | 317 | interface Svg2JsOptions { 318 | /** @default true */ 319 | strict?: boolean; 320 | /** @default false */ 321 | trim?: boolean; 322 | /** @default true */ 323 | normalize?: boolean; 324 | /** @default true */ 325 | lowercase?: boolean; 326 | /** @default true */ 327 | xmlns?: boolean; 328 | /** @default true */ 329 | position?: boolean; 330 | } 331 | 332 | interface Options { 333 | /** Output as Data URI string. */ 334 | datauri?: "base64" | "enc" | "unenc"; 335 | 336 | /** Precision of floating point numbers. Will be passed to each plugin that suppors this param. */ 337 | floatPrecision?: number; 338 | 339 | /** Use full set of plugins. */ 340 | full?: boolean; 341 | 342 | /** Options for rendering optimized SVG from AST. */ 343 | js2svg?: Js2SvgOptions; 344 | 345 | /** 346 | * Individual plugin configurations. 347 | * For specific options, see plugin source in https://github.com/svg/svgo/tree/master/plugins. 348 | */ 349 | plugins?: PluginConfig[]; 350 | 351 | /** Options for parsing original SVG into AST. */ 352 | svg2js?: Svg2JsOptions; 353 | } 354 | } 355 | 356 | // FIXME: The part that's changed from the original implementation 357 | declare module "svgo" { 358 | export default SVGO; 359 | } 360 | -------------------------------------------------------------------------------- /example/yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | abbrev@1: 6 | version "1.1.1" 7 | resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" 8 | 9 | acorn-dynamic-import@^2.0.0: 10 | version "2.0.2" 11 | resolved "https://registry.yarnpkg.com/acorn-dynamic-import/-/acorn-dynamic-import-2.0.2.tgz#c752bd210bef679501b6c6cb7fc84f8f47158cc4" 12 | dependencies: 13 | acorn "^4.0.3" 14 | 15 | acorn@^4.0.3: 16 | version "4.0.13" 17 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.13.tgz#105495ae5361d697bd195c825192e1ad7f253787" 18 | 19 | acorn@^5.0.0, acorn@^5.1.1: 20 | version "5.1.2" 21 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.1.2.tgz#911cb53e036807cf0fa778dc5d370fbd864246d7" 22 | 23 | ajv-keywords@^2.0.0: 24 | version "2.1.0" 25 | resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-2.1.0.tgz#a296e17f7bfae7c1ce4f7e0de53d29cb32162df0" 26 | 27 | ajv@^4.9.1: 28 | version "4.11.8" 29 | resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" 30 | dependencies: 31 | co "^4.6.0" 32 | json-stable-stringify "^1.0.1" 33 | 34 | ajv@^5.1.5: 35 | version "5.2.3" 36 | resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.2.3.tgz#c06f598778c44c6b161abafe3466b81ad1814ed2" 37 | dependencies: 38 | co "^4.6.0" 39 | fast-deep-equal "^1.0.0" 40 | json-schema-traverse "^0.3.0" 41 | json-stable-stringify "^1.0.1" 42 | 43 | align-text@^0.1.1, align-text@^0.1.3: 44 | version "0.1.4" 45 | resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" 46 | dependencies: 47 | kind-of "^3.0.2" 48 | longest "^1.0.1" 49 | repeat-string "^1.5.2" 50 | 51 | ansi-regex@^2.0.0: 52 | version "2.1.1" 53 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" 54 | 55 | ansi-regex@^3.0.0: 56 | version "3.0.0" 57 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" 58 | 59 | ansi-styles@^2.2.1: 60 | version "2.2.1" 61 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" 62 | 63 | anymatch@^1.3.0: 64 | version "1.3.2" 65 | resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a" 66 | dependencies: 67 | micromatch "^2.1.5" 68 | normalize-path "^2.0.0" 69 | 70 | aproba@^1.0.3: 71 | version "1.2.0" 72 | resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" 73 | 74 | are-we-there-yet@~1.1.2: 75 | version "1.1.4" 76 | resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz#bb5dca382bb94f05e15194373d16fd3ba1ca110d" 77 | dependencies: 78 | delegates "^1.0.0" 79 | readable-stream "^2.0.6" 80 | 81 | arr-diff@^2.0.0: 82 | version "2.0.0" 83 | resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" 84 | dependencies: 85 | arr-flatten "^1.0.1" 86 | 87 | arr-flatten@^1.0.1: 88 | version "1.1.0" 89 | resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" 90 | 91 | array-unique@^0.2.1: 92 | version "0.2.1" 93 | resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" 94 | 95 | asap@~2.0.3: 96 | version "2.0.6" 97 | resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" 98 | 99 | asn1.js@^4.0.0: 100 | version "4.9.1" 101 | resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.9.1.tgz#48ba240b45a9280e94748990ba597d216617fd40" 102 | dependencies: 103 | bn.js "^4.0.0" 104 | inherits "^2.0.1" 105 | minimalistic-assert "^1.0.0" 106 | 107 | asn1@~0.2.3: 108 | version "0.2.4" 109 | resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" 110 | dependencies: 111 | safer-buffer "~2.1.0" 112 | 113 | assert-plus@1.0.0, assert-plus@^1.0.0: 114 | version "1.0.0" 115 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" 116 | 117 | assert-plus@^0.2.0: 118 | version "0.2.0" 119 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" 120 | 121 | assert@^1.1.1: 122 | version "1.4.1" 123 | resolved "https://registry.yarnpkg.com/assert/-/assert-1.4.1.tgz#99912d591836b5a6f5b345c0f07eefc08fc65d91" 124 | dependencies: 125 | util "0.10.3" 126 | 127 | async-each@^1.0.0: 128 | version "1.0.1" 129 | resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" 130 | 131 | async@^2.1.2: 132 | version "2.5.0" 133 | resolved "https://registry.yarnpkg.com/async/-/async-2.5.0.tgz#843190fd6b7357a0b9e1c956edddd5ec8462b54d" 134 | dependencies: 135 | lodash "^4.14.0" 136 | 137 | asynckit@^0.4.0: 138 | version "0.4.0" 139 | resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" 140 | 141 | aws-sign2@~0.6.0: 142 | version "0.6.0" 143 | resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" 144 | 145 | aws4@^1.2.1: 146 | version "1.6.0" 147 | resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e" 148 | 149 | babel-code-frame@^6.26.0: 150 | version "6.26.0" 151 | resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" 152 | dependencies: 153 | chalk "^1.1.3" 154 | esutils "^2.0.2" 155 | js-tokens "^3.0.2" 156 | 157 | babel-core@^6.26.0: 158 | version "6.26.0" 159 | resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.0.tgz#af32f78b31a6fcef119c87b0fd8d9753f03a0bb8" 160 | dependencies: 161 | babel-code-frame "^6.26.0" 162 | babel-generator "^6.26.0" 163 | babel-helpers "^6.24.1" 164 | babel-messages "^6.23.0" 165 | babel-register "^6.26.0" 166 | babel-runtime "^6.26.0" 167 | babel-template "^6.26.0" 168 | babel-traverse "^6.26.0" 169 | babel-types "^6.26.0" 170 | babylon "^6.18.0" 171 | convert-source-map "^1.5.0" 172 | debug "^2.6.8" 173 | json5 "^0.5.1" 174 | lodash "^4.17.4" 175 | minimatch "^3.0.4" 176 | path-is-absolute "^1.0.1" 177 | private "^0.1.7" 178 | slash "^1.0.0" 179 | source-map "^0.5.6" 180 | 181 | babel-generator@^6.26.0: 182 | version "6.26.0" 183 | resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.0.tgz#ac1ae20070b79f6e3ca1d3269613053774f20dc5" 184 | dependencies: 185 | babel-messages "^6.23.0" 186 | babel-runtime "^6.26.0" 187 | babel-types "^6.26.0" 188 | detect-indent "^4.0.0" 189 | jsesc "^1.3.0" 190 | lodash "^4.17.4" 191 | source-map "^0.5.6" 192 | trim-right "^1.0.1" 193 | 194 | babel-helpers@^6.24.1: 195 | version "6.24.1" 196 | resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" 197 | dependencies: 198 | babel-runtime "^6.22.0" 199 | babel-template "^6.24.1" 200 | 201 | babel-loader@^7.1.2: 202 | version "7.1.2" 203 | resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-7.1.2.tgz#f6cbe122710f1aa2af4d881c6d5b54358ca24126" 204 | dependencies: 205 | find-cache-dir "^1.0.0" 206 | loader-utils "^1.0.2" 207 | mkdirp "^0.5.1" 208 | 209 | babel-messages@^6.23.0: 210 | version "6.23.0" 211 | resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" 212 | dependencies: 213 | babel-runtime "^6.22.0" 214 | 215 | babel-register@^6.26.0: 216 | version "6.26.0" 217 | resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071" 218 | dependencies: 219 | babel-core "^6.26.0" 220 | babel-runtime "^6.26.0" 221 | core-js "^2.5.0" 222 | home-or-tmp "^2.0.0" 223 | lodash "^4.17.4" 224 | mkdirp "^0.5.1" 225 | source-map-support "^0.4.15" 226 | 227 | babel-runtime@^6.22.0, babel-runtime@^6.26.0: 228 | version "6.26.0" 229 | resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" 230 | dependencies: 231 | core-js "^2.4.0" 232 | regenerator-runtime "^0.11.0" 233 | 234 | babel-template@^6.24.1, babel-template@^6.26.0: 235 | version "6.26.0" 236 | resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" 237 | dependencies: 238 | babel-runtime "^6.26.0" 239 | babel-traverse "^6.26.0" 240 | babel-types "^6.26.0" 241 | babylon "^6.18.0" 242 | lodash "^4.17.4" 243 | 244 | babel-traverse@^6.26.0: 245 | version "6.26.0" 246 | resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" 247 | dependencies: 248 | babel-code-frame "^6.26.0" 249 | babel-messages "^6.23.0" 250 | babel-runtime "^6.26.0" 251 | babel-types "^6.26.0" 252 | babylon "^6.18.0" 253 | debug "^2.6.8" 254 | globals "^9.18.0" 255 | invariant "^2.2.2" 256 | lodash "^4.17.4" 257 | 258 | babel-types@^6.26.0: 259 | version "6.26.0" 260 | resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" 261 | dependencies: 262 | babel-runtime "^6.26.0" 263 | esutils "^2.0.2" 264 | lodash "^4.17.4" 265 | to-fast-properties "^1.0.3" 266 | 267 | babylon@^6.18.0: 268 | version "6.18.0" 269 | resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" 270 | 271 | balanced-match@^1.0.0: 272 | version "1.0.0" 273 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" 274 | 275 | base64-js@^1.0.2: 276 | version "1.2.1" 277 | resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.2.1.tgz#a91947da1f4a516ea38e5b4ec0ec3773675e0886" 278 | 279 | bcrypt-pbkdf@^1.0.0: 280 | version "1.0.2" 281 | resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" 282 | dependencies: 283 | tweetnacl "^0.14.3" 284 | 285 | big.js@^3.1.3: 286 | version "3.2.0" 287 | resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.2.0.tgz#a5fc298b81b9e0dca2e458824784b65c52ba588e" 288 | 289 | binary-extensions@^1.0.0: 290 | version "1.10.0" 291 | resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.10.0.tgz#9aeb9a6c5e88638aad171e167f5900abe24835d0" 292 | 293 | block-stream@*: 294 | version "0.0.9" 295 | resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" 296 | dependencies: 297 | inherits "~2.0.0" 298 | 299 | bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0: 300 | version "4.11.8" 301 | resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" 302 | 303 | boom@2.x.x: 304 | version "2.10.1" 305 | resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" 306 | dependencies: 307 | hoek "2.x.x" 308 | 309 | brace-expansion@^1.1.7: 310 | version "1.1.11" 311 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" 312 | dependencies: 313 | balanced-match "^1.0.0" 314 | concat-map "0.0.1" 315 | 316 | braces@^1.8.2: 317 | version "1.8.5" 318 | resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" 319 | dependencies: 320 | expand-range "^1.8.1" 321 | preserve "^0.2.0" 322 | repeat-element "^1.1.2" 323 | 324 | brorand@^1.0.1: 325 | version "1.1.0" 326 | resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" 327 | 328 | browser-resolve@^1.11.0: 329 | version "1.11.2" 330 | resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.2.tgz#8ff09b0a2c421718a1051c260b32e48f442938ce" 331 | dependencies: 332 | resolve "1.1.7" 333 | 334 | browserify-aes@^1.0.0, browserify-aes@^1.0.4: 335 | version "1.0.8" 336 | resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.0.8.tgz#c8fa3b1b7585bb7ba77c5560b60996ddec6d5309" 337 | dependencies: 338 | buffer-xor "^1.0.3" 339 | cipher-base "^1.0.0" 340 | create-hash "^1.1.0" 341 | evp_bytestokey "^1.0.3" 342 | inherits "^2.0.1" 343 | safe-buffer "^5.0.1" 344 | 345 | browserify-cipher@^1.0.0: 346 | version "1.0.0" 347 | resolved "https://registry.yarnpkg.com/browserify-cipher/-/browserify-cipher-1.0.0.tgz#9988244874bf5ed4e28da95666dcd66ac8fc363a" 348 | dependencies: 349 | browserify-aes "^1.0.4" 350 | browserify-des "^1.0.0" 351 | evp_bytestokey "^1.0.0" 352 | 353 | browserify-des@^1.0.0: 354 | version "1.0.0" 355 | resolved "https://registry.yarnpkg.com/browserify-des/-/browserify-des-1.0.0.tgz#daa277717470922ed2fe18594118a175439721dd" 356 | dependencies: 357 | cipher-base "^1.0.1" 358 | des.js "^1.0.0" 359 | inherits "^2.0.1" 360 | 361 | browserify-rsa@^4.0.0: 362 | version "4.0.1" 363 | resolved "https://registry.yarnpkg.com/browserify-rsa/-/browserify-rsa-4.0.1.tgz#21e0abfaf6f2029cf2fafb133567a701d4135524" 364 | dependencies: 365 | bn.js "^4.1.0" 366 | randombytes "^2.0.1" 367 | 368 | browserify-sign@^4.0.0: 369 | version "4.0.4" 370 | resolved "https://registry.yarnpkg.com/browserify-sign/-/browserify-sign-4.0.4.tgz#aa4eb68e5d7b658baa6bf6a57e630cbd7a93d298" 371 | dependencies: 372 | bn.js "^4.1.1" 373 | browserify-rsa "^4.0.0" 374 | create-hash "^1.1.0" 375 | create-hmac "^1.1.2" 376 | elliptic "^6.0.0" 377 | inherits "^2.0.1" 378 | parse-asn1 "^5.0.0" 379 | 380 | browserify-zlib@^0.1.4: 381 | version "0.1.4" 382 | resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.1.4.tgz#bb35f8a519f600e0fa6b8485241c979d0141fb2d" 383 | dependencies: 384 | pako "~0.2.0" 385 | 386 | buffer-xor@^1.0.3: 387 | version "1.0.3" 388 | resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" 389 | 390 | buffer@^4.3.0: 391 | version "4.9.1" 392 | resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.1.tgz#6d1bb601b07a4efced97094132093027c95bc298" 393 | dependencies: 394 | base64-js "^1.0.2" 395 | ieee754 "^1.1.4" 396 | isarray "^1.0.0" 397 | 398 | builtin-modules@^1.0.0, builtin-modules@^1.1.0: 399 | version "1.1.1" 400 | resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" 401 | 402 | builtin-status-codes@^3.0.0: 403 | version "3.0.0" 404 | resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" 405 | 406 | camelcase@^1.0.2: 407 | version "1.2.1" 408 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" 409 | 410 | camelcase@^4.1.0: 411 | version "4.1.0" 412 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" 413 | 414 | caseless@~0.12.0: 415 | version "0.12.0" 416 | resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" 417 | 418 | center-align@^0.1.1: 419 | version "0.1.3" 420 | resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" 421 | dependencies: 422 | align-text "^0.1.3" 423 | lazy-cache "^1.0.3" 424 | 425 | chalk@^1.1.3: 426 | version "1.1.3" 427 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" 428 | dependencies: 429 | ansi-styles "^2.2.1" 430 | escape-string-regexp "^1.0.2" 431 | has-ansi "^2.0.0" 432 | strip-ansi "^3.0.0" 433 | supports-color "^2.0.0" 434 | 435 | chokidar@^1.7.0: 436 | version "1.7.0" 437 | resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468" 438 | dependencies: 439 | anymatch "^1.3.0" 440 | async-each "^1.0.0" 441 | glob-parent "^2.0.0" 442 | inherits "^2.0.1" 443 | is-binary-path "^1.0.0" 444 | is-glob "^2.0.0" 445 | path-is-absolute "^1.0.0" 446 | readdirp "^2.0.0" 447 | optionalDependencies: 448 | fsevents "^1.0.0" 449 | 450 | cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: 451 | version "1.0.4" 452 | resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" 453 | dependencies: 454 | inherits "^2.0.1" 455 | safe-buffer "^5.0.1" 456 | 457 | cliui@^2.1.0: 458 | version "2.1.0" 459 | resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" 460 | dependencies: 461 | center-align "^0.1.1" 462 | right-align "^0.1.1" 463 | wordwrap "0.0.2" 464 | 465 | cliui@^3.2.0: 466 | version "3.2.0" 467 | resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d" 468 | dependencies: 469 | string-width "^1.0.1" 470 | strip-ansi "^3.0.1" 471 | wrap-ansi "^2.0.0" 472 | 473 | co@^4.6.0: 474 | version "4.6.0" 475 | resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" 476 | 477 | code-point-at@^1.0.0: 478 | version "1.1.0" 479 | resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" 480 | 481 | combined-stream@^1.0.5, combined-stream@~1.0.5: 482 | version "1.0.5" 483 | resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009" 484 | dependencies: 485 | delayed-stream "~1.0.0" 486 | 487 | commondir@^1.0.1: 488 | version "1.0.1" 489 | resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" 490 | 491 | concat-map@0.0.1: 492 | version "0.0.1" 493 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 494 | 495 | console-browserify@^1.1.0: 496 | version "1.1.0" 497 | resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10" 498 | dependencies: 499 | date-now "^0.1.4" 500 | 501 | console-control-strings@^1.0.0, console-control-strings@~1.1.0: 502 | version "1.1.0" 503 | resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" 504 | 505 | constants-browserify@^1.0.0: 506 | version "1.0.0" 507 | resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" 508 | 509 | convert-source-map@^1.5.0: 510 | version "1.5.0" 511 | resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.0.tgz#9acd70851c6d5dfdd93d9282e5edf94a03ff46b5" 512 | 513 | core-js@^1.0.0: 514 | version "1.2.7" 515 | resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" 516 | 517 | core-js@^2.4.0, core-js@^2.5.0: 518 | version "2.5.1" 519 | resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.1.tgz#ae6874dc66937789b80754ff5428df66819ca50b" 520 | 521 | core-util-is@1.0.2, core-util-is@~1.0.0: 522 | version "1.0.2" 523 | resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" 524 | 525 | create-ecdh@^4.0.0: 526 | version "4.0.0" 527 | resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.0.tgz#888c723596cdf7612f6498233eebd7a35301737d" 528 | dependencies: 529 | bn.js "^4.1.0" 530 | elliptic "^6.0.0" 531 | 532 | create-hash@^1.1.0, create-hash@^1.1.2: 533 | version "1.1.3" 534 | resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.1.3.tgz#606042ac8b9262750f483caddab0f5819172d8fd" 535 | dependencies: 536 | cipher-base "^1.0.1" 537 | inherits "^2.0.1" 538 | ripemd160 "^2.0.0" 539 | sha.js "^2.4.0" 540 | 541 | create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: 542 | version "1.1.6" 543 | resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.6.tgz#acb9e221a4e17bdb076e90657c42b93e3726cf06" 544 | dependencies: 545 | cipher-base "^1.0.3" 546 | create-hash "^1.1.0" 547 | inherits "^2.0.1" 548 | ripemd160 "^2.0.0" 549 | safe-buffer "^5.0.1" 550 | sha.js "^2.4.8" 551 | 552 | cross-spawn@^5.0.1: 553 | version "5.1.0" 554 | resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" 555 | dependencies: 556 | lru-cache "^4.0.1" 557 | shebang-command "^1.2.0" 558 | which "^1.2.9" 559 | 560 | cryptiles@2.x.x: 561 | version "2.0.5" 562 | resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" 563 | dependencies: 564 | boom "2.x.x" 565 | 566 | crypto-browserify@^3.11.0: 567 | version "3.11.1" 568 | resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.11.1.tgz#948945efc6757a400d6e5e5af47194d10064279f" 569 | dependencies: 570 | browserify-cipher "^1.0.0" 571 | browserify-sign "^4.0.0" 572 | create-ecdh "^4.0.0" 573 | create-hash "^1.1.0" 574 | create-hmac "^1.1.0" 575 | diffie-hellman "^5.0.0" 576 | inherits "^2.0.1" 577 | pbkdf2 "^3.0.3" 578 | public-encrypt "^4.0.0" 579 | randombytes "^2.0.0" 580 | 581 | d@1: 582 | version "1.0.0" 583 | resolved "https://registry.yarnpkg.com/d/-/d-1.0.0.tgz#754bb5bfe55451da69a58b94d45f4c5b0462d58f" 584 | dependencies: 585 | es5-ext "^0.10.9" 586 | 587 | dashdash@^1.12.0: 588 | version "1.14.1" 589 | resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" 590 | dependencies: 591 | assert-plus "^1.0.0" 592 | 593 | date-now@^0.1.4: 594 | version "0.1.4" 595 | resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" 596 | 597 | debug@^2.2.0, debug@^2.6.8: 598 | version "2.6.9" 599 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" 600 | dependencies: 601 | ms "2.0.0" 602 | 603 | decamelize@^1.0.0, decamelize@^1.1.1: 604 | version "1.2.0" 605 | resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" 606 | 607 | deep-extend@~0.4.0: 608 | version "0.4.2" 609 | resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.2.tgz#48b699c27e334bf89f10892be432f6e4c7d34a7f" 610 | 611 | delayed-stream@~1.0.0: 612 | version "1.0.0" 613 | resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" 614 | 615 | delegates@^1.0.0: 616 | version "1.0.0" 617 | resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" 618 | 619 | des.js@^1.0.0: 620 | version "1.0.0" 621 | resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.0.tgz#c074d2e2aa6a8a9a07dbd61f9a15c2cd83ec8ecc" 622 | dependencies: 623 | inherits "^2.0.1" 624 | minimalistic-assert "^1.0.0" 625 | 626 | detect-indent@^4.0.0: 627 | version "4.0.0" 628 | resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" 629 | dependencies: 630 | repeating "^2.0.0" 631 | 632 | diffie-hellman@^5.0.0: 633 | version "5.0.2" 634 | resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.2.tgz#b5835739270cfe26acf632099fded2a07f209e5e" 635 | dependencies: 636 | bn.js "^4.1.0" 637 | miller-rabin "^4.0.0" 638 | randombytes "^2.0.0" 639 | 640 | domain-browser@^1.1.1: 641 | version "1.1.7" 642 | resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.1.7.tgz#867aa4b093faa05f1de08c06f4d7b21fdf8698bc" 643 | 644 | ecc-jsbn@~0.1.1: 645 | version "0.1.2" 646 | resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" 647 | dependencies: 648 | jsbn "~0.1.0" 649 | safer-buffer "^2.1.0" 650 | 651 | elliptic@^6.0.0: 652 | version "6.4.0" 653 | resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.4.0.tgz#cac9af8762c85836187003c8dfe193e5e2eae5df" 654 | dependencies: 655 | bn.js "^4.4.0" 656 | brorand "^1.0.1" 657 | hash.js "^1.0.0" 658 | hmac-drbg "^1.0.0" 659 | inherits "^2.0.1" 660 | minimalistic-assert "^1.0.0" 661 | minimalistic-crypto-utils "^1.0.0" 662 | 663 | emojis-list@^2.0.0: 664 | version "2.1.0" 665 | resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" 666 | 667 | encoding@^0.1.11: 668 | version "0.1.12" 669 | resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb" 670 | dependencies: 671 | iconv-lite "~0.4.13" 672 | 673 | enhanced-resolve@^3.4.0: 674 | version "3.4.1" 675 | resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-3.4.1.tgz#0421e339fd71419b3da13d129b3979040230476e" 676 | dependencies: 677 | graceful-fs "^4.1.2" 678 | memory-fs "^0.4.0" 679 | object-assign "^4.0.1" 680 | tapable "^0.2.7" 681 | 682 | errno@^0.1.3: 683 | version "0.1.4" 684 | resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.4.tgz#b896e23a9e5e8ba33871fc996abd3635fc9a1c7d" 685 | dependencies: 686 | prr "~0.0.0" 687 | 688 | error-ex@^1.2.0: 689 | version "1.3.1" 690 | resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc" 691 | dependencies: 692 | is-arrayish "^0.2.1" 693 | 694 | es5-ext@^0.10.14, es5-ext@^0.10.9, es5-ext@~0.10.14: 695 | version "0.10.30" 696 | resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.30.tgz#7141a16836697dbabfaaaeee41495ce29f52c939" 697 | dependencies: 698 | es6-iterator "2" 699 | es6-symbol "~3.1" 700 | 701 | es6-iterator@2, es6-iterator@^2.0.1, es6-iterator@~2.0.1: 702 | version "2.0.1" 703 | resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.1.tgz#8e319c9f0453bf575d374940a655920e59ca5512" 704 | dependencies: 705 | d "1" 706 | es5-ext "^0.10.14" 707 | es6-symbol "^3.1" 708 | 709 | es6-map@^0.1.3: 710 | version "0.1.5" 711 | resolved "https://registry.yarnpkg.com/es6-map/-/es6-map-0.1.5.tgz#9136e0503dcc06a301690f0bb14ff4e364e949f0" 712 | dependencies: 713 | d "1" 714 | es5-ext "~0.10.14" 715 | es6-iterator "~2.0.1" 716 | es6-set "~0.1.5" 717 | es6-symbol "~3.1.1" 718 | event-emitter "~0.3.5" 719 | 720 | es6-set@~0.1.5: 721 | version "0.1.5" 722 | resolved "https://registry.yarnpkg.com/es6-set/-/es6-set-0.1.5.tgz#d2b3ec5d4d800ced818db538d28974db0a73ccb1" 723 | dependencies: 724 | d "1" 725 | es5-ext "~0.10.14" 726 | es6-iterator "~2.0.1" 727 | es6-symbol "3.1.1" 728 | event-emitter "~0.3.5" 729 | 730 | es6-symbol@3.1.1, es6-symbol@^3.1, es6-symbol@^3.1.1, es6-symbol@~3.1, es6-symbol@~3.1.1: 731 | version "3.1.1" 732 | resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.1.tgz#bf00ef4fdab6ba1b46ecb7b629b4c7ed5715cc77" 733 | dependencies: 734 | d "1" 735 | es5-ext "~0.10.14" 736 | 737 | es6-weak-map@^2.0.1: 738 | version "2.0.2" 739 | resolved "https://registry.yarnpkg.com/es6-weak-map/-/es6-weak-map-2.0.2.tgz#5e3ab32251ffd1538a1f8e5ffa1357772f92d96f" 740 | dependencies: 741 | d "1" 742 | es5-ext "^0.10.14" 743 | es6-iterator "^2.0.1" 744 | es6-symbol "^3.1.1" 745 | 746 | escape-string-regexp@^1.0.2: 747 | version "1.0.5" 748 | resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" 749 | 750 | escope@^3.6.0: 751 | version "3.6.0" 752 | resolved "https://registry.yarnpkg.com/escope/-/escope-3.6.0.tgz#e01975e812781a163a6dadfdd80398dc64c889c3" 753 | dependencies: 754 | es6-map "^0.1.3" 755 | es6-weak-map "^2.0.1" 756 | esrecurse "^4.1.0" 757 | estraverse "^4.1.1" 758 | 759 | esrecurse@^4.1.0: 760 | version "4.2.0" 761 | resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.0.tgz#fa9568d98d3823f9a41d91e902dcab9ea6e5b163" 762 | dependencies: 763 | estraverse "^4.1.0" 764 | object-assign "^4.0.1" 765 | 766 | estraverse@^4.1.0, estraverse@^4.1.1: 767 | version "4.2.0" 768 | resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" 769 | 770 | estree-walker@^0.2.1: 771 | version "0.2.1" 772 | resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.2.1.tgz#bdafe8095383d8414d5dc2ecf4c9173b6db9412e" 773 | 774 | estree-walker@^0.3.0: 775 | version "0.3.1" 776 | resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.3.1.tgz#e6b1a51cf7292524e7237c312e5fe6660c1ce1aa" 777 | 778 | estree-walker@^0.5.0: 779 | version "0.5.0" 780 | resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.5.0.tgz#aae3b57c42deb8010e349c892462f0e71c5dd1aa" 781 | 782 | esutils@^2.0.2: 783 | version "2.0.2" 784 | resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" 785 | 786 | event-emitter@~0.3.5: 787 | version "0.3.5" 788 | resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.5.tgz#df8c69eef1647923c7157b9ce83840610b02cc39" 789 | dependencies: 790 | d "1" 791 | es5-ext "~0.10.14" 792 | 793 | events@^1.0.0: 794 | version "1.1.1" 795 | resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924" 796 | 797 | evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: 798 | version "1.0.3" 799 | resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02" 800 | dependencies: 801 | md5.js "^1.3.4" 802 | safe-buffer "^5.1.1" 803 | 804 | execa@^0.7.0: 805 | version "0.7.0" 806 | resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" 807 | dependencies: 808 | cross-spawn "^5.0.1" 809 | get-stream "^3.0.0" 810 | is-stream "^1.1.0" 811 | npm-run-path "^2.0.0" 812 | p-finally "^1.0.0" 813 | signal-exit "^3.0.0" 814 | strip-eof "^1.0.0" 815 | 816 | expand-brackets@^0.1.4: 817 | version "0.1.5" 818 | resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" 819 | dependencies: 820 | is-posix-bracket "^0.1.0" 821 | 822 | expand-range@^1.8.1: 823 | version "1.8.2" 824 | resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" 825 | dependencies: 826 | fill-range "^2.1.0" 827 | 828 | extend@~3.0.0: 829 | version "3.0.2" 830 | resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" 831 | 832 | extglob@^0.3.1: 833 | version "0.3.2" 834 | resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" 835 | dependencies: 836 | is-extglob "^1.0.0" 837 | 838 | extsprintf@1.3.0, extsprintf@^1.2.0: 839 | version "1.3.0" 840 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" 841 | 842 | fast-deep-equal@^1.0.0: 843 | version "1.0.0" 844 | resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz#96256a3bc975595eb36d82e9929d060d893439ff" 845 | 846 | fbjs@^0.8.16: 847 | version "0.8.16" 848 | resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.16.tgz#5e67432f550dc41b572bf55847b8aca64e5337db" 849 | dependencies: 850 | core-js "^1.0.0" 851 | isomorphic-fetch "^2.1.1" 852 | loose-envify "^1.0.0" 853 | object-assign "^4.1.0" 854 | promise "^7.1.1" 855 | setimmediate "^1.0.5" 856 | ua-parser-js "^0.7.9" 857 | 858 | filename-regex@^2.0.0: 859 | version "2.0.1" 860 | resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" 861 | 862 | fill-range@^2.1.0: 863 | version "2.2.3" 864 | resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723" 865 | dependencies: 866 | is-number "^2.1.0" 867 | isobject "^2.0.0" 868 | randomatic "^1.1.3" 869 | repeat-element "^1.1.2" 870 | repeat-string "^1.5.2" 871 | 872 | find-cache-dir@^1.0.0: 873 | version "1.0.0" 874 | resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-1.0.0.tgz#9288e3e9e3cc3748717d39eade17cf71fc30ee6f" 875 | dependencies: 876 | commondir "^1.0.1" 877 | make-dir "^1.0.0" 878 | pkg-dir "^2.0.0" 879 | 880 | find-up@^2.0.0, find-up@^2.1.0: 881 | version "2.1.0" 882 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" 883 | dependencies: 884 | locate-path "^2.0.0" 885 | 886 | for-in@^1.0.1: 887 | version "1.0.2" 888 | resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" 889 | 890 | for-own@^0.1.4: 891 | version "0.1.5" 892 | resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" 893 | dependencies: 894 | for-in "^1.0.1" 895 | 896 | forever-agent@~0.6.1: 897 | version "0.6.1" 898 | resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" 899 | 900 | form-data@~2.1.1: 901 | version "2.1.4" 902 | resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" 903 | dependencies: 904 | asynckit "^0.4.0" 905 | combined-stream "^1.0.5" 906 | mime-types "^2.1.12" 907 | 908 | fs.realpath@^1.0.0: 909 | version "1.0.0" 910 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" 911 | 912 | fsevents@^1.0.0: 913 | version "1.1.2" 914 | resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.1.2.tgz#3282b713fb3ad80ede0e9fcf4611b5aa6fc033f4" 915 | dependencies: 916 | nan "^2.3.0" 917 | node-pre-gyp "^0.6.36" 918 | 919 | fstream-ignore@^1.0.5: 920 | version "1.0.5" 921 | resolved "https://registry.yarnpkg.com/fstream-ignore/-/fstream-ignore-1.0.5.tgz#9c31dae34767018fe1d249b24dada67d092da105" 922 | dependencies: 923 | fstream "^1.0.0" 924 | inherits "2" 925 | minimatch "^3.0.0" 926 | 927 | fstream@^1.0.0, fstream@^1.0.10, fstream@^1.0.2: 928 | version "1.0.12" 929 | resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.12.tgz#4e8ba8ee2d48be4f7d0de505455548eae5932045" 930 | dependencies: 931 | graceful-fs "^4.1.2" 932 | inherits "~2.0.0" 933 | mkdirp ">=0.5 0" 934 | rimraf "2" 935 | 936 | gauge@~2.7.3: 937 | version "2.7.4" 938 | resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" 939 | dependencies: 940 | aproba "^1.0.3" 941 | console-control-strings "^1.0.0" 942 | has-unicode "^2.0.0" 943 | object-assign "^4.1.0" 944 | signal-exit "^3.0.0" 945 | string-width "^1.0.1" 946 | strip-ansi "^3.0.1" 947 | wide-align "^1.1.0" 948 | 949 | get-caller-file@^1.0.1: 950 | version "1.0.2" 951 | resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5" 952 | 953 | get-stream@^3.0.0: 954 | version "3.0.0" 955 | resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" 956 | 957 | getpass@^0.1.1: 958 | version "0.1.7" 959 | resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" 960 | dependencies: 961 | assert-plus "^1.0.0" 962 | 963 | glob-base@^0.3.0: 964 | version "0.3.0" 965 | resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" 966 | dependencies: 967 | glob-parent "^2.0.0" 968 | is-glob "^2.0.0" 969 | 970 | glob-parent@^2.0.0: 971 | version "2.0.0" 972 | resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" 973 | dependencies: 974 | is-glob "^2.0.0" 975 | 976 | glob@^7.1.3: 977 | version "7.1.4" 978 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" 979 | dependencies: 980 | fs.realpath "^1.0.0" 981 | inflight "^1.0.4" 982 | inherits "2" 983 | minimatch "^3.0.4" 984 | once "^1.3.0" 985 | path-is-absolute "^1.0.0" 986 | 987 | globals@^9.18.0: 988 | version "9.18.0" 989 | resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" 990 | 991 | graceful-fs@^4.1.2: 992 | version "4.2.2" 993 | resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.2.tgz#6f0952605d0140c1cfdb138ed005775b92d67b02" 994 | 995 | har-schema@^1.0.5: 996 | version "1.0.5" 997 | resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e" 998 | 999 | har-validator@~4.2.1: 1000 | version "4.2.1" 1001 | resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a" 1002 | dependencies: 1003 | ajv "^4.9.1" 1004 | har-schema "^1.0.5" 1005 | 1006 | has-ansi@^2.0.0: 1007 | version "2.0.0" 1008 | resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" 1009 | dependencies: 1010 | ansi-regex "^2.0.0" 1011 | 1012 | has-flag@^2.0.0: 1013 | version "2.0.0" 1014 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" 1015 | 1016 | has-unicode@^2.0.0: 1017 | version "2.0.1" 1018 | resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" 1019 | 1020 | hash-base@^2.0.0: 1021 | version "2.0.2" 1022 | resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-2.0.2.tgz#66ea1d856db4e8a5470cadf6fce23ae5244ef2e1" 1023 | dependencies: 1024 | inherits "^2.0.1" 1025 | 1026 | hash-base@^3.0.0: 1027 | version "3.0.4" 1028 | resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.0.4.tgz#5fc8686847ecd73499403319a6b0a3f3f6ae4918" 1029 | dependencies: 1030 | inherits "^2.0.1" 1031 | safe-buffer "^5.0.1" 1032 | 1033 | hash.js@^1.0.0, hash.js@^1.0.3: 1034 | version "1.1.3" 1035 | resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.3.tgz#340dedbe6290187151c1ea1d777a3448935df846" 1036 | dependencies: 1037 | inherits "^2.0.3" 1038 | minimalistic-assert "^1.0.0" 1039 | 1040 | hawk@3.1.3, hawk@~3.1.3: 1041 | version "3.1.3" 1042 | resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" 1043 | dependencies: 1044 | boom "2.x.x" 1045 | cryptiles "2.x.x" 1046 | hoek "2.x.x" 1047 | sntp "1.x.x" 1048 | 1049 | hmac-drbg@^1.0.0: 1050 | version "1.0.1" 1051 | resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" 1052 | dependencies: 1053 | hash.js "^1.0.3" 1054 | minimalistic-assert "^1.0.0" 1055 | minimalistic-crypto-utils "^1.0.1" 1056 | 1057 | hoek@2.x.x: 1058 | version "2.16.3" 1059 | resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" 1060 | 1061 | home-or-tmp@^2.0.0: 1062 | version "2.0.0" 1063 | resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" 1064 | dependencies: 1065 | os-homedir "^1.0.0" 1066 | os-tmpdir "^1.0.1" 1067 | 1068 | hosted-git-info@^2.1.4: 1069 | version "2.5.0" 1070 | resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.5.0.tgz#6d60e34b3abbc8313062c3b798ef8d901a07af3c" 1071 | 1072 | http-signature@~1.1.0: 1073 | version "1.1.1" 1074 | resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" 1075 | dependencies: 1076 | assert-plus "^0.2.0" 1077 | jsprim "^1.2.2" 1078 | sshpk "^1.7.0" 1079 | 1080 | https-browserify@0.0.1: 1081 | version "0.0.1" 1082 | resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-0.0.1.tgz#3f91365cabe60b77ed0ebba24b454e3e09d95a82" 1083 | 1084 | iconv-lite@~0.4.13: 1085 | version "0.4.19" 1086 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b" 1087 | 1088 | ieee754@^1.1.4: 1089 | version "1.1.8" 1090 | resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.8.tgz#be33d40ac10ef1926701f6f08a2d86fbfd1ad3e4" 1091 | 1092 | indexof@0.0.1: 1093 | version "0.0.1" 1094 | resolved "https://registry.yarnpkg.com/indexof/-/indexof-0.0.1.tgz#82dc336d232b9062179d05ab3293a66059fd435d" 1095 | 1096 | inflight@^1.0.4: 1097 | version "1.0.6" 1098 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" 1099 | dependencies: 1100 | once "^1.3.0" 1101 | wrappy "1" 1102 | 1103 | inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.0, inherits@~2.0.1, inherits@~2.0.3: 1104 | version "2.0.4" 1105 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" 1106 | 1107 | inherits@2.0.1: 1108 | version "2.0.1" 1109 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1" 1110 | 1111 | ini@~1.3.0: 1112 | version "1.3.4" 1113 | resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.4.tgz#0537cb79daf59b59a1a517dff706c86ec039162e" 1114 | 1115 | interpret@^1.0.0: 1116 | version "1.0.4" 1117 | resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.4.tgz#820cdd588b868ffb191a809506d6c9c8f212b1b0" 1118 | 1119 | invariant@^2.2.2: 1120 | version "2.2.2" 1121 | resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360" 1122 | dependencies: 1123 | loose-envify "^1.0.0" 1124 | 1125 | invert-kv@^1.0.0: 1126 | version "1.0.0" 1127 | resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" 1128 | 1129 | is-arrayish@^0.2.1: 1130 | version "0.2.1" 1131 | resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" 1132 | 1133 | is-binary-path@^1.0.0: 1134 | version "1.0.1" 1135 | resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" 1136 | dependencies: 1137 | binary-extensions "^1.0.0" 1138 | 1139 | is-buffer@^1.1.5: 1140 | version "1.1.5" 1141 | resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.5.tgz#1f3b26ef613b214b88cbca23cc6c01d87961eecc" 1142 | 1143 | is-builtin-module@^1.0.0: 1144 | version "1.0.0" 1145 | resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" 1146 | dependencies: 1147 | builtin-modules "^1.0.0" 1148 | 1149 | is-dotfile@^1.0.0: 1150 | version "1.0.3" 1151 | resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" 1152 | 1153 | is-equal-shallow@^0.1.3: 1154 | version "0.1.3" 1155 | resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" 1156 | dependencies: 1157 | is-primitive "^2.0.0" 1158 | 1159 | is-extendable@^0.1.1: 1160 | version "0.1.1" 1161 | resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" 1162 | 1163 | is-extglob@^1.0.0: 1164 | version "1.0.0" 1165 | resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" 1166 | 1167 | is-finite@^1.0.0: 1168 | version "1.0.2" 1169 | resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" 1170 | dependencies: 1171 | number-is-nan "^1.0.0" 1172 | 1173 | is-fullwidth-code-point@^1.0.0: 1174 | version "1.0.0" 1175 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" 1176 | dependencies: 1177 | number-is-nan "^1.0.0" 1178 | 1179 | is-fullwidth-code-point@^2.0.0: 1180 | version "2.0.0" 1181 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" 1182 | 1183 | is-glob@^2.0.0, is-glob@^2.0.1: 1184 | version "2.0.1" 1185 | resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" 1186 | dependencies: 1187 | is-extglob "^1.0.0" 1188 | 1189 | is-module@^1.0.0: 1190 | version "1.0.0" 1191 | resolved "https://registry.yarnpkg.com/is-module/-/is-module-1.0.0.tgz#3258fb69f78c14d5b815d664336b4cffb6441591" 1192 | 1193 | is-number@^2.1.0: 1194 | version "2.1.0" 1195 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" 1196 | dependencies: 1197 | kind-of "^3.0.2" 1198 | 1199 | is-number@^3.0.0: 1200 | version "3.0.0" 1201 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" 1202 | dependencies: 1203 | kind-of "^3.0.2" 1204 | 1205 | is-posix-bracket@^0.1.0: 1206 | version "0.1.1" 1207 | resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" 1208 | 1209 | is-primitive@^2.0.0: 1210 | version "2.0.0" 1211 | resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" 1212 | 1213 | is-stream@^1.0.1, is-stream@^1.1.0: 1214 | version "1.1.0" 1215 | resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" 1216 | 1217 | is-typedarray@~1.0.0: 1218 | version "1.0.0" 1219 | resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" 1220 | 1221 | isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: 1222 | version "1.0.0" 1223 | resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" 1224 | 1225 | isexe@^2.0.0: 1226 | version "2.0.0" 1227 | resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" 1228 | 1229 | isobject@^2.0.0: 1230 | version "2.1.0" 1231 | resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" 1232 | dependencies: 1233 | isarray "1.0.0" 1234 | 1235 | isomorphic-fetch@^2.1.1: 1236 | version "2.2.1" 1237 | resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" 1238 | dependencies: 1239 | node-fetch "^1.0.1" 1240 | whatwg-fetch ">=0.10.0" 1241 | 1242 | isstream@~0.1.2: 1243 | version "0.1.2" 1244 | resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" 1245 | 1246 | js-tokens@^3.0.0, js-tokens@^3.0.2: 1247 | version "3.0.2" 1248 | resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" 1249 | 1250 | jsbn@~0.1.0: 1251 | version "0.1.1" 1252 | resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" 1253 | 1254 | jsesc@^1.3.0: 1255 | version "1.3.0" 1256 | resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" 1257 | 1258 | json-loader@^0.5.4: 1259 | version "0.5.7" 1260 | resolved "https://registry.yarnpkg.com/json-loader/-/json-loader-0.5.7.tgz#dca14a70235ff82f0ac9a3abeb60d337a365185d" 1261 | 1262 | json-schema-traverse@^0.3.0: 1263 | version "0.3.1" 1264 | resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz#349a6d44c53a51de89b40805c5d5e59b417d3340" 1265 | 1266 | json-schema@0.2.3: 1267 | version "0.2.3" 1268 | resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" 1269 | 1270 | json-stable-stringify@^1.0.1: 1271 | version "1.0.1" 1272 | resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" 1273 | dependencies: 1274 | jsonify "~0.0.0" 1275 | 1276 | json-stringify-safe@~5.0.1: 1277 | version "5.0.1" 1278 | resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" 1279 | 1280 | json5@^0.5.0, json5@^0.5.1: 1281 | version "0.5.1" 1282 | resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" 1283 | 1284 | jsonify@~0.0.0: 1285 | version "0.0.0" 1286 | resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" 1287 | 1288 | jsprim@^1.2.2: 1289 | version "1.4.1" 1290 | resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" 1291 | dependencies: 1292 | assert-plus "1.0.0" 1293 | extsprintf "1.3.0" 1294 | json-schema "0.2.3" 1295 | verror "1.10.0" 1296 | 1297 | kind-of@^3.0.2: 1298 | version "3.2.2" 1299 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" 1300 | dependencies: 1301 | is-buffer "^1.1.5" 1302 | 1303 | kind-of@^4.0.0: 1304 | version "4.0.0" 1305 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" 1306 | dependencies: 1307 | is-buffer "^1.1.5" 1308 | 1309 | lazy-cache@^1.0.3: 1310 | version "1.0.4" 1311 | resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" 1312 | 1313 | lcid@^1.0.0: 1314 | version "1.0.0" 1315 | resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" 1316 | dependencies: 1317 | invert-kv "^1.0.0" 1318 | 1319 | load-json-file@^2.0.0: 1320 | version "2.0.0" 1321 | resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8" 1322 | dependencies: 1323 | graceful-fs "^4.1.2" 1324 | parse-json "^2.2.0" 1325 | pify "^2.0.0" 1326 | strip-bom "^3.0.0" 1327 | 1328 | loader-runner@^2.3.0: 1329 | version "2.3.0" 1330 | resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.3.0.tgz#f482aea82d543e07921700d5a46ef26fdac6b8a2" 1331 | 1332 | loader-utils@^1.0.2, loader-utils@^1.1.0: 1333 | version "1.1.0" 1334 | resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.1.0.tgz#c98aef488bcceda2ffb5e2de646d6a754429f5cd" 1335 | dependencies: 1336 | big.js "^3.1.3" 1337 | emojis-list "^2.0.0" 1338 | json5 "^0.5.0" 1339 | 1340 | locate-path@^2.0.0: 1341 | version "2.0.0" 1342 | resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" 1343 | dependencies: 1344 | p-locate "^2.0.0" 1345 | path-exists "^3.0.0" 1346 | 1347 | lodash@^4.14.0, lodash@^4.17.4: 1348 | version "4.17.14" 1349 | resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.14.tgz#9ce487ae66c96254fe20b599f21b6816028078ba" 1350 | 1351 | longest@^1.0.1: 1352 | version "1.0.1" 1353 | resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" 1354 | 1355 | loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.1: 1356 | version "1.3.1" 1357 | resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" 1358 | dependencies: 1359 | js-tokens "^3.0.0" 1360 | 1361 | lru-cache@^4.0.1: 1362 | version "4.1.1" 1363 | resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.1.tgz#622e32e82488b49279114a4f9ecf45e7cd6bba55" 1364 | dependencies: 1365 | pseudomap "^1.0.2" 1366 | yallist "^2.1.2" 1367 | 1368 | magic-string@^0.22.4: 1369 | version "0.22.4" 1370 | resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.22.4.tgz#31039b4e40366395618c1d6cf8193c53917475ff" 1371 | dependencies: 1372 | vlq "^0.2.1" 1373 | 1374 | make-dir@^1.0.0: 1375 | version "1.0.0" 1376 | resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.0.0.tgz#97a011751e91dd87cfadef58832ebb04936de978" 1377 | dependencies: 1378 | pify "^2.3.0" 1379 | 1380 | md5.js@^1.3.4: 1381 | version "1.3.4" 1382 | resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.4.tgz#e9bdbde94a20a5ac18b04340fc5764d5b09d901d" 1383 | dependencies: 1384 | hash-base "^3.0.0" 1385 | inherits "^2.0.1" 1386 | 1387 | mem@^1.1.0: 1388 | version "1.1.0" 1389 | resolved "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76" 1390 | dependencies: 1391 | mimic-fn "^1.0.0" 1392 | 1393 | memory-fs@^0.4.0, memory-fs@~0.4.1: 1394 | version "0.4.1" 1395 | resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552" 1396 | dependencies: 1397 | errno "^0.1.3" 1398 | readable-stream "^2.0.1" 1399 | 1400 | micromatch@^2.1.5, micromatch@^2.3.11: 1401 | version "2.3.11" 1402 | resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" 1403 | dependencies: 1404 | arr-diff "^2.0.0" 1405 | array-unique "^0.2.1" 1406 | braces "^1.8.2" 1407 | expand-brackets "^0.1.4" 1408 | extglob "^0.3.1" 1409 | filename-regex "^2.0.0" 1410 | is-extglob "^1.0.0" 1411 | is-glob "^2.0.1" 1412 | kind-of "^3.0.2" 1413 | normalize-path "^2.0.1" 1414 | object.omit "^2.0.0" 1415 | parse-glob "^3.0.4" 1416 | regex-cache "^0.4.2" 1417 | 1418 | miller-rabin@^4.0.0: 1419 | version "4.0.1" 1420 | resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d" 1421 | dependencies: 1422 | bn.js "^4.0.0" 1423 | brorand "^1.0.1" 1424 | 1425 | mime-db@~1.30.0: 1426 | version "1.30.0" 1427 | resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.30.0.tgz#74c643da2dd9d6a45399963465b26d5ca7d71f01" 1428 | 1429 | mime-types@^2.1.12, mime-types@~2.1.7: 1430 | version "2.1.17" 1431 | resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.17.tgz#09d7a393f03e995a79f8af857b70a9e0ab16557a" 1432 | dependencies: 1433 | mime-db "~1.30.0" 1434 | 1435 | mimic-fn@^1.0.0: 1436 | version "1.1.0" 1437 | resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.1.0.tgz#e667783d92e89dbd342818b5230b9d62a672ad18" 1438 | 1439 | minimalistic-assert@^1.0.0: 1440 | version "1.0.0" 1441 | resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz#702be2dda6b37f4836bcb3f5db56641b64a1d3d3" 1442 | 1443 | minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: 1444 | version "1.0.1" 1445 | resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" 1446 | 1447 | minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4: 1448 | version "3.0.4" 1449 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" 1450 | dependencies: 1451 | brace-expansion "^1.1.7" 1452 | 1453 | minimist@0.0.8: 1454 | version "0.0.8" 1455 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" 1456 | 1457 | minimist@^1.2.0: 1458 | version "1.2.0" 1459 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" 1460 | 1461 | "mkdirp@>=0.5 0", mkdirp@^0.5.1, mkdirp@~0.5.0: 1462 | version "0.5.1" 1463 | resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" 1464 | dependencies: 1465 | minimist "0.0.8" 1466 | 1467 | ms@2.0.0: 1468 | version "2.0.0" 1469 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" 1470 | 1471 | nan@^2.3.0: 1472 | version "2.7.0" 1473 | resolved "https://registry.yarnpkg.com/nan/-/nan-2.7.0.tgz#d95bf721ec877e08db276ed3fc6eb78f9083ad46" 1474 | 1475 | node-fetch@^1.0.1: 1476 | version "1.7.3" 1477 | resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" 1478 | dependencies: 1479 | encoding "^0.1.11" 1480 | is-stream "^1.0.1" 1481 | 1482 | node-libs-browser@^2.0.0: 1483 | version "2.0.0" 1484 | resolved "https://registry.yarnpkg.com/node-libs-browser/-/node-libs-browser-2.0.0.tgz#a3a59ec97024985b46e958379646f96c4b616646" 1485 | dependencies: 1486 | assert "^1.1.1" 1487 | browserify-zlib "^0.1.4" 1488 | buffer "^4.3.0" 1489 | console-browserify "^1.1.0" 1490 | constants-browserify "^1.0.0" 1491 | crypto-browserify "^3.11.0" 1492 | domain-browser "^1.1.1" 1493 | events "^1.0.0" 1494 | https-browserify "0.0.1" 1495 | os-browserify "^0.2.0" 1496 | path-browserify "0.0.0" 1497 | process "^0.11.0" 1498 | punycode "^1.2.4" 1499 | querystring-es3 "^0.2.0" 1500 | readable-stream "^2.0.5" 1501 | stream-browserify "^2.0.1" 1502 | stream-http "^2.3.1" 1503 | string_decoder "^0.10.25" 1504 | timers-browserify "^2.0.2" 1505 | tty-browserify "0.0.0" 1506 | url "^0.11.0" 1507 | util "^0.10.3" 1508 | vm-browserify "0.0.4" 1509 | 1510 | node-pre-gyp@^0.6.36: 1511 | version "0.6.38" 1512 | resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.38.tgz#e92a20f83416415bb4086f6d1fb78b3da73d113d" 1513 | dependencies: 1514 | hawk "3.1.3" 1515 | mkdirp "^0.5.1" 1516 | nopt "^4.0.1" 1517 | npmlog "^4.0.2" 1518 | rc "^1.1.7" 1519 | request "2.81.0" 1520 | rimraf "^2.6.1" 1521 | semver "^5.3.0" 1522 | tar "^2.2.1" 1523 | tar-pack "^3.4.0" 1524 | 1525 | nopt@^4.0.1: 1526 | version "4.0.1" 1527 | resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" 1528 | dependencies: 1529 | abbrev "1" 1530 | osenv "^0.1.4" 1531 | 1532 | normalize-package-data@^2.3.2: 1533 | version "2.4.0" 1534 | resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" 1535 | dependencies: 1536 | hosted-git-info "^2.1.4" 1537 | is-builtin-module "^1.0.0" 1538 | semver "2 || 3 || 4 || 5" 1539 | validate-npm-package-license "^3.0.1" 1540 | 1541 | normalize-path@^2.0.0, normalize-path@^2.0.1: 1542 | version "2.1.1" 1543 | resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" 1544 | dependencies: 1545 | remove-trailing-separator "^1.0.1" 1546 | 1547 | npm-run-path@^2.0.0: 1548 | version "2.0.2" 1549 | resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" 1550 | dependencies: 1551 | path-key "^2.0.0" 1552 | 1553 | npmlog@^4.0.2: 1554 | version "4.1.2" 1555 | resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" 1556 | dependencies: 1557 | are-we-there-yet "~1.1.2" 1558 | console-control-strings "~1.1.0" 1559 | gauge "~2.7.3" 1560 | set-blocking "~2.0.0" 1561 | 1562 | number-is-nan@^1.0.0: 1563 | version "1.0.1" 1564 | resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" 1565 | 1566 | oauth-sign@~0.8.1: 1567 | version "0.8.2" 1568 | resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" 1569 | 1570 | object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: 1571 | version "4.1.1" 1572 | resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" 1573 | 1574 | object.omit@^2.0.0: 1575 | version "2.0.1" 1576 | resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" 1577 | dependencies: 1578 | for-own "^0.1.4" 1579 | is-extendable "^0.1.1" 1580 | 1581 | once@^1.3.0, once@^1.3.3: 1582 | version "1.4.0" 1583 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" 1584 | dependencies: 1585 | wrappy "1" 1586 | 1587 | os-browserify@^0.2.0: 1588 | version "0.2.1" 1589 | resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.2.1.tgz#63fc4ccee5d2d7763d26bbf8601078e6c2e0044f" 1590 | 1591 | os-homedir@^1.0.0: 1592 | version "1.0.2" 1593 | resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" 1594 | 1595 | os-locale@^2.0.0: 1596 | version "2.1.0" 1597 | resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-2.1.0.tgz#42bc2900a6b5b8bd17376c8e882b65afccf24bf2" 1598 | dependencies: 1599 | execa "^0.7.0" 1600 | lcid "^1.0.0" 1601 | mem "^1.1.0" 1602 | 1603 | os-tmpdir@^1.0.0, os-tmpdir@^1.0.1: 1604 | version "1.0.2" 1605 | resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" 1606 | 1607 | osenv@^0.1.4: 1608 | version "0.1.4" 1609 | resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.4.tgz#42fe6d5953df06c8064be6f176c3d05aaaa34644" 1610 | dependencies: 1611 | os-homedir "^1.0.0" 1612 | os-tmpdir "^1.0.0" 1613 | 1614 | p-finally@^1.0.0: 1615 | version "1.0.0" 1616 | resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" 1617 | 1618 | p-limit@^1.1.0: 1619 | version "1.1.0" 1620 | resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.1.0.tgz#b07ff2d9a5d88bec806035895a2bab66a27988bc" 1621 | 1622 | p-locate@^2.0.0: 1623 | version "2.0.0" 1624 | resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" 1625 | dependencies: 1626 | p-limit "^1.1.0" 1627 | 1628 | pako@~0.2.0: 1629 | version "0.2.9" 1630 | resolved "https://registry.yarnpkg.com/pako/-/pako-0.2.9.tgz#f3f7522f4ef782348da8161bad9ecfd51bf83a75" 1631 | 1632 | parse-asn1@^5.0.0: 1633 | version "5.1.0" 1634 | resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.0.tgz#37c4f9b7ed3ab65c74817b5f2480937fbf97c712" 1635 | dependencies: 1636 | asn1.js "^4.0.0" 1637 | browserify-aes "^1.0.0" 1638 | create-hash "^1.1.0" 1639 | evp_bytestokey "^1.0.0" 1640 | pbkdf2 "^3.0.3" 1641 | 1642 | parse-glob@^3.0.4: 1643 | version "3.0.4" 1644 | resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" 1645 | dependencies: 1646 | glob-base "^0.3.0" 1647 | is-dotfile "^1.0.0" 1648 | is-extglob "^1.0.0" 1649 | is-glob "^2.0.0" 1650 | 1651 | parse-json@^2.2.0: 1652 | version "2.2.0" 1653 | resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" 1654 | dependencies: 1655 | error-ex "^1.2.0" 1656 | 1657 | path-browserify@0.0.0: 1658 | version "0.0.0" 1659 | resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.0.tgz#a0b870729aae214005b7d5032ec2cbbb0fb4451a" 1660 | 1661 | path-exists@^3.0.0: 1662 | version "3.0.0" 1663 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" 1664 | 1665 | path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: 1666 | version "1.0.1" 1667 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" 1668 | 1669 | path-key@^2.0.0: 1670 | version "2.0.1" 1671 | resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" 1672 | 1673 | path-parse@^1.0.5: 1674 | version "1.0.5" 1675 | resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1" 1676 | 1677 | path-type@^2.0.0: 1678 | version "2.0.0" 1679 | resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73" 1680 | dependencies: 1681 | pify "^2.0.0" 1682 | 1683 | pbkdf2@^3.0.3: 1684 | version "3.0.14" 1685 | resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.14.tgz#a35e13c64799b06ce15320f459c230e68e73bade" 1686 | dependencies: 1687 | create-hash "^1.1.2" 1688 | create-hmac "^1.1.4" 1689 | ripemd160 "^2.0.1" 1690 | safe-buffer "^5.0.1" 1691 | sha.js "^2.4.8" 1692 | 1693 | performance-now@^0.2.0: 1694 | version "0.2.0" 1695 | resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5" 1696 | 1697 | pify@^2.0.0, pify@^2.3.0: 1698 | version "2.3.0" 1699 | resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" 1700 | 1701 | pkg-dir@^2.0.0: 1702 | version "2.0.0" 1703 | resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b" 1704 | dependencies: 1705 | find-up "^2.1.0" 1706 | 1707 | preserve@^0.2.0: 1708 | version "0.2.0" 1709 | resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" 1710 | 1711 | private@^0.1.7: 1712 | version "0.1.7" 1713 | resolved "https://registry.yarnpkg.com/private/-/private-0.1.7.tgz#68ce5e8a1ef0a23bb570cc28537b5332aba63ef1" 1714 | 1715 | process-nextick-args@~1.0.6: 1716 | version "1.0.7" 1717 | resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3" 1718 | 1719 | process@^0.11.0: 1720 | version "0.11.10" 1721 | resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" 1722 | 1723 | promise@^7.1.1: 1724 | version "7.3.1" 1725 | resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf" 1726 | dependencies: 1727 | asap "~2.0.3" 1728 | 1729 | prop-types@^15.6.0: 1730 | version "15.6.0" 1731 | resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.0.tgz#ceaf083022fc46b4a35f69e13ef75aed0d639856" 1732 | dependencies: 1733 | fbjs "^0.8.16" 1734 | loose-envify "^1.3.1" 1735 | object-assign "^4.1.1" 1736 | 1737 | prr@~0.0.0: 1738 | version "0.0.0" 1739 | resolved "https://registry.yarnpkg.com/prr/-/prr-0.0.0.tgz#1a84b85908325501411853d0081ee3fa86e2926a" 1740 | 1741 | pseudomap@^1.0.2: 1742 | version "1.0.2" 1743 | resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" 1744 | 1745 | public-encrypt@^4.0.0: 1746 | version "4.0.0" 1747 | resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.0.tgz#39f699f3a46560dd5ebacbca693caf7c65c18cc6" 1748 | dependencies: 1749 | bn.js "^4.1.0" 1750 | browserify-rsa "^4.0.0" 1751 | create-hash "^1.1.0" 1752 | parse-asn1 "^5.0.0" 1753 | randombytes "^2.0.1" 1754 | 1755 | punycode@1.3.2: 1756 | version "1.3.2" 1757 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" 1758 | 1759 | punycode@^1.2.4, punycode@^1.4.1: 1760 | version "1.4.1" 1761 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" 1762 | 1763 | qs@~6.4.0: 1764 | version "6.4.0" 1765 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" 1766 | 1767 | querystring-es3@^0.2.0: 1768 | version "0.2.1" 1769 | resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" 1770 | 1771 | querystring@0.2.0: 1772 | version "0.2.0" 1773 | resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" 1774 | 1775 | randomatic@^1.1.3: 1776 | version "1.1.7" 1777 | resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.7.tgz#c7abe9cc8b87c0baa876b19fde83fd464797e38c" 1778 | dependencies: 1779 | is-number "^3.0.0" 1780 | kind-of "^4.0.0" 1781 | 1782 | randombytes@^2.0.0, randombytes@^2.0.1: 1783 | version "2.0.5" 1784 | resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.0.5.tgz#dc009a246b8d09a177b4b7a0ae77bc570f4b1b79" 1785 | dependencies: 1786 | safe-buffer "^5.1.0" 1787 | 1788 | rc@^1.1.7: 1789 | version "1.2.1" 1790 | resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.1.tgz#2e03e8e42ee450b8cb3dce65be1bf8974e1dfd95" 1791 | dependencies: 1792 | deep-extend "~0.4.0" 1793 | ini "~1.3.0" 1794 | minimist "^1.2.0" 1795 | strip-json-comments "~2.0.1" 1796 | 1797 | react-dom@^16.0.0: 1798 | version "16.0.1" 1799 | resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.0.1.tgz#bd2fc18d2bb81645cb807bb27a03a14d8b796e6d" 1800 | dependencies: 1801 | fbjs "^0.8.16" 1802 | loose-envify "^1.1.0" 1803 | object-assign "^4.1.1" 1804 | prop-types "^15.6.0" 1805 | 1806 | react@^16.0.0: 1807 | version "16.0.0" 1808 | resolved "https://registry.yarnpkg.com/react/-/react-16.0.0.tgz#ce7df8f1941b036f02b2cca9dbd0cb1f0e855e2d" 1809 | dependencies: 1810 | fbjs "^0.8.16" 1811 | loose-envify "^1.1.0" 1812 | object-assign "^4.1.1" 1813 | prop-types "^15.6.0" 1814 | 1815 | read-pkg-up@^2.0.0: 1816 | version "2.0.0" 1817 | resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be" 1818 | dependencies: 1819 | find-up "^2.0.0" 1820 | read-pkg "^2.0.0" 1821 | 1822 | read-pkg@^2.0.0: 1823 | version "2.0.0" 1824 | resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8" 1825 | dependencies: 1826 | load-json-file "^2.0.0" 1827 | normalize-package-data "^2.3.2" 1828 | path-type "^2.0.0" 1829 | 1830 | readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@^2.0.6, readable-stream@^2.1.4, readable-stream@^2.2.6: 1831 | version "2.3.3" 1832 | resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.3.tgz#368f2512d79f9d46fdfc71349ae7878bbc1eb95c" 1833 | dependencies: 1834 | core-util-is "~1.0.0" 1835 | inherits "~2.0.3" 1836 | isarray "~1.0.0" 1837 | process-nextick-args "~1.0.6" 1838 | safe-buffer "~5.1.1" 1839 | string_decoder "~1.0.3" 1840 | util-deprecate "~1.0.1" 1841 | 1842 | readdirp@^2.0.0: 1843 | version "2.1.0" 1844 | resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" 1845 | dependencies: 1846 | graceful-fs "^4.1.2" 1847 | minimatch "^3.0.2" 1848 | readable-stream "^2.0.2" 1849 | set-immediate-shim "^1.0.1" 1850 | 1851 | regenerator-runtime@^0.11.0: 1852 | version "0.11.0" 1853 | resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.0.tgz#7e54fe5b5ccd5d6624ea6255c3473be090b802e1" 1854 | 1855 | regex-cache@^0.4.2: 1856 | version "0.4.4" 1857 | resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" 1858 | dependencies: 1859 | is-equal-shallow "^0.1.3" 1860 | 1861 | remove-trailing-separator@^1.0.1: 1862 | version "1.1.0" 1863 | resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" 1864 | 1865 | repeat-element@^1.1.2: 1866 | version "1.1.2" 1867 | resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" 1868 | 1869 | repeat-string@^1.5.2: 1870 | version "1.6.1" 1871 | resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" 1872 | 1873 | repeating@^2.0.0: 1874 | version "2.0.1" 1875 | resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" 1876 | dependencies: 1877 | is-finite "^1.0.0" 1878 | 1879 | request@2.81.0: 1880 | version "2.81.0" 1881 | resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" 1882 | dependencies: 1883 | aws-sign2 "~0.6.0" 1884 | aws4 "^1.2.1" 1885 | caseless "~0.12.0" 1886 | combined-stream "~1.0.5" 1887 | extend "~3.0.0" 1888 | forever-agent "~0.6.1" 1889 | form-data "~2.1.1" 1890 | har-validator "~4.2.1" 1891 | hawk "~3.1.3" 1892 | http-signature "~1.1.0" 1893 | is-typedarray "~1.0.0" 1894 | isstream "~0.1.2" 1895 | json-stringify-safe "~5.0.1" 1896 | mime-types "~2.1.7" 1897 | oauth-sign "~0.8.1" 1898 | performance-now "^0.2.0" 1899 | qs "~6.4.0" 1900 | safe-buffer "^5.0.1" 1901 | stringstream "~0.0.4" 1902 | tough-cookie "~2.3.0" 1903 | tunnel-agent "^0.6.0" 1904 | uuid "^3.0.0" 1905 | 1906 | require-directory@^2.1.1: 1907 | version "2.1.1" 1908 | resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" 1909 | 1910 | require-main-filename@^1.0.1: 1911 | version "1.0.1" 1912 | resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" 1913 | 1914 | resolve@1.1.7: 1915 | version "1.1.7" 1916 | resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" 1917 | 1918 | resolve@^1.1.6, resolve@^1.4.0: 1919 | version "1.4.0" 1920 | resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.4.0.tgz#a75be01c53da25d934a98ebd0e4c4a7312f92a86" 1921 | dependencies: 1922 | path-parse "^1.0.5" 1923 | 1924 | right-align@^0.1.1: 1925 | version "0.1.3" 1926 | resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" 1927 | dependencies: 1928 | align-text "^0.1.1" 1929 | 1930 | rimraf@2, rimraf@^2.5.1, rimraf@^2.6.1: 1931 | version "2.7.1" 1932 | resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" 1933 | dependencies: 1934 | glob "^7.1.3" 1935 | 1936 | ripemd160@^2.0.0, ripemd160@^2.0.1: 1937 | version "2.0.1" 1938 | resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.1.tgz#0f4584295c53a3628af7e6d79aca21ce57d1c6e7" 1939 | dependencies: 1940 | hash-base "^2.0.0" 1941 | inherits "^2.0.1" 1942 | 1943 | rollup-plugin-babel@^3.0.2: 1944 | version "3.0.2" 1945 | resolved "https://registry.yarnpkg.com/rollup-plugin-babel/-/rollup-plugin-babel-3.0.2.tgz#a2765dea0eaa8aece351c983573300d17497495b" 1946 | dependencies: 1947 | rollup-pluginutils "^1.5.0" 1948 | 1949 | rollup-plugin-commonjs@^8.2.1: 1950 | version "8.2.1" 1951 | resolved "https://registry.yarnpkg.com/rollup-plugin-commonjs/-/rollup-plugin-commonjs-8.2.1.tgz#5e40c78375eb163c14c76bce69da1750e5905a2e" 1952 | dependencies: 1953 | acorn "^5.1.1" 1954 | estree-walker "^0.5.0" 1955 | magic-string "^0.22.4" 1956 | resolve "^1.4.0" 1957 | rollup-pluginutils "^2.0.1" 1958 | 1959 | rollup-plugin-node-resolve@^3.0.0: 1960 | version "3.0.0" 1961 | resolved "https://registry.yarnpkg.com/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-3.0.0.tgz#8b897c4c3030d5001277b0514b25d2ca09683ee0" 1962 | dependencies: 1963 | browser-resolve "^1.11.0" 1964 | builtin-modules "^1.1.0" 1965 | is-module "^1.0.0" 1966 | resolve "^1.1.6" 1967 | 1968 | rollup-plugin-replace@^2.0.0: 1969 | version "2.0.0" 1970 | resolved "https://registry.yarnpkg.com/rollup-plugin-replace/-/rollup-plugin-replace-2.0.0.tgz#19074089c8ed57184b8cc64e967a03d095119277" 1971 | dependencies: 1972 | magic-string "^0.22.4" 1973 | minimatch "^3.0.2" 1974 | rollup-pluginutils "^2.0.1" 1975 | 1976 | rollup-pluginutils@^1.5.0: 1977 | version "1.5.2" 1978 | resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-1.5.2.tgz#1e156e778f94b7255bfa1b3d0178be8f5c552408" 1979 | dependencies: 1980 | estree-walker "^0.2.1" 1981 | minimatch "^3.0.2" 1982 | 1983 | rollup-pluginutils@^2.0.1: 1984 | version "2.0.1" 1985 | resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.0.1.tgz#7ec95b3573f6543a46a6461bd9a7c544525d0fc0" 1986 | dependencies: 1987 | estree-walker "^0.3.0" 1988 | micromatch "^2.3.11" 1989 | 1990 | rollup@^0.50.0: 1991 | version "0.50.0" 1992 | resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.50.0.tgz#4c158f4e780e6cb33ff0dbfc184a52cc58cd5f3b" 1993 | 1994 | safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1: 1995 | version "5.1.1" 1996 | resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" 1997 | 1998 | safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: 1999 | version "2.1.2" 2000 | resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" 2001 | 2002 | "semver@2 || 3 || 4 || 5", semver@^5.3.0: 2003 | version "5.4.1" 2004 | resolved "https://registry.yarnpkg.com/semver/-/semver-5.4.1.tgz#e059c09d8571f0540823733433505d3a2f00b18e" 2005 | 2006 | set-blocking@^2.0.0, set-blocking@~2.0.0: 2007 | version "2.0.0" 2008 | resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" 2009 | 2010 | set-immediate-shim@^1.0.1: 2011 | version "1.0.1" 2012 | resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" 2013 | 2014 | setimmediate@^1.0.4, setimmediate@^1.0.5: 2015 | version "1.0.5" 2016 | resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" 2017 | 2018 | sha.js@^2.4.0, sha.js@^2.4.8: 2019 | version "2.4.9" 2020 | resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.9.tgz#98f64880474b74f4a38b8da9d3c0f2d104633e7d" 2021 | dependencies: 2022 | inherits "^2.0.1" 2023 | safe-buffer "^5.0.1" 2024 | 2025 | shebang-command@^1.2.0: 2026 | version "1.2.0" 2027 | resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" 2028 | dependencies: 2029 | shebang-regex "^1.0.0" 2030 | 2031 | shebang-regex@^1.0.0: 2032 | version "1.0.0" 2033 | resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" 2034 | 2035 | signal-exit@^3.0.0: 2036 | version "3.0.2" 2037 | resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" 2038 | 2039 | slash@^1.0.0: 2040 | version "1.0.0" 2041 | resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" 2042 | 2043 | sntp@1.x.x: 2044 | version "1.0.9" 2045 | resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" 2046 | dependencies: 2047 | hoek "2.x.x" 2048 | 2049 | source-list-map@^2.0.0: 2050 | version "2.0.0" 2051 | resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.0.tgz#aaa47403f7b245a92fbc97ea08f250d6087ed085" 2052 | 2053 | source-map-support@^0.4.15: 2054 | version "0.4.18" 2055 | resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" 2056 | dependencies: 2057 | source-map "^0.5.6" 2058 | 2059 | source-map@^0.5.3, source-map@^0.5.6, source-map@~0.5.1, source-map@~0.5.3: 2060 | version "0.5.7" 2061 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" 2062 | 2063 | spdx-correct@~1.0.0: 2064 | version "1.0.2" 2065 | resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-1.0.2.tgz#4b3073d933ff51f3912f03ac5519498a4150db40" 2066 | dependencies: 2067 | spdx-license-ids "^1.0.2" 2068 | 2069 | spdx-expression-parse@~1.0.0: 2070 | version "1.0.4" 2071 | resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz#9bdf2f20e1f40ed447fbe273266191fced51626c" 2072 | 2073 | spdx-license-ids@^1.0.2: 2074 | version "1.2.2" 2075 | resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz#c9df7a3424594ade6bd11900d596696dc06bac57" 2076 | 2077 | sshpk@^1.7.0: 2078 | version "1.16.1" 2079 | resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.16.1.tgz#fb661c0bef29b39db40769ee39fa70093d6f6877" 2080 | dependencies: 2081 | asn1 "~0.2.3" 2082 | assert-plus "^1.0.0" 2083 | bcrypt-pbkdf "^1.0.0" 2084 | dashdash "^1.12.0" 2085 | ecc-jsbn "~0.1.1" 2086 | getpass "^0.1.1" 2087 | jsbn "~0.1.0" 2088 | safer-buffer "^2.0.2" 2089 | tweetnacl "~0.14.0" 2090 | 2091 | stream-browserify@^2.0.1: 2092 | version "2.0.1" 2093 | resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.1.tgz#66266ee5f9bdb9940a4e4514cafb43bb71e5c9db" 2094 | dependencies: 2095 | inherits "~2.0.1" 2096 | readable-stream "^2.0.2" 2097 | 2098 | stream-http@^2.3.1: 2099 | version "2.7.2" 2100 | resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-2.7.2.tgz#40a050ec8dc3b53b33d9909415c02c0bf1abfbad" 2101 | dependencies: 2102 | builtin-status-codes "^3.0.0" 2103 | inherits "^2.0.1" 2104 | readable-stream "^2.2.6" 2105 | to-arraybuffer "^1.0.0" 2106 | xtend "^4.0.0" 2107 | 2108 | string-width@^1.0.1, string-width@^1.0.2: 2109 | version "1.0.2" 2110 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" 2111 | dependencies: 2112 | code-point-at "^1.0.0" 2113 | is-fullwidth-code-point "^1.0.0" 2114 | strip-ansi "^3.0.0" 2115 | 2116 | string-width@^2.0.0: 2117 | version "2.1.1" 2118 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" 2119 | dependencies: 2120 | is-fullwidth-code-point "^2.0.0" 2121 | strip-ansi "^4.0.0" 2122 | 2123 | string_decoder@^0.10.25: 2124 | version "0.10.31" 2125 | resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" 2126 | 2127 | string_decoder@~1.0.3: 2128 | version "1.0.3" 2129 | resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.3.tgz#0fc67d7c141825de94282dd536bec6b9bce860ab" 2130 | dependencies: 2131 | safe-buffer "~5.1.0" 2132 | 2133 | stringstream@~0.0.4: 2134 | version "0.0.6" 2135 | resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.6.tgz#7880225b0d4ad10e30927d167a1d6f2fd3b33a72" 2136 | 2137 | strip-ansi@^3.0.0, strip-ansi@^3.0.1: 2138 | version "3.0.1" 2139 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" 2140 | dependencies: 2141 | ansi-regex "^2.0.0" 2142 | 2143 | strip-ansi@^4.0.0: 2144 | version "4.0.0" 2145 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" 2146 | dependencies: 2147 | ansi-regex "^3.0.0" 2148 | 2149 | strip-bom@^3.0.0: 2150 | version "3.0.0" 2151 | resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" 2152 | 2153 | strip-eof@^1.0.0: 2154 | version "1.0.0" 2155 | resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" 2156 | 2157 | strip-json-comments@~2.0.1: 2158 | version "2.0.1" 2159 | resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" 2160 | 2161 | supports-color@^2.0.0: 2162 | version "2.0.0" 2163 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" 2164 | 2165 | supports-color@^4.2.1: 2166 | version "4.4.0" 2167 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.4.0.tgz#883f7ddabc165142b2a61427f3352ded195d1a3e" 2168 | dependencies: 2169 | has-flag "^2.0.0" 2170 | 2171 | tapable@^0.2.7: 2172 | version "0.2.8" 2173 | resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.2.8.tgz#99372a5c999bf2df160afc0d74bed4f47948cd22" 2174 | 2175 | tar-pack@^3.4.0: 2176 | version "3.4.0" 2177 | resolved "https://registry.yarnpkg.com/tar-pack/-/tar-pack-3.4.0.tgz#23be2d7f671a8339376cbdb0b8fe3fdebf317984" 2178 | dependencies: 2179 | debug "^2.2.0" 2180 | fstream "^1.0.10" 2181 | fstream-ignore "^1.0.5" 2182 | once "^1.3.3" 2183 | readable-stream "^2.1.4" 2184 | rimraf "^2.5.1" 2185 | tar "^2.2.1" 2186 | uid-number "^0.0.6" 2187 | 2188 | tar@^2.2.1: 2189 | version "2.2.1" 2190 | resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" 2191 | dependencies: 2192 | block-stream "*" 2193 | fstream "^1.0.2" 2194 | inherits "2" 2195 | 2196 | timers-browserify@^2.0.2: 2197 | version "2.0.4" 2198 | resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.4.tgz#96ca53f4b794a5e7c0e1bd7cc88a372298fa01e6" 2199 | dependencies: 2200 | setimmediate "^1.0.4" 2201 | 2202 | to-arraybuffer@^1.0.0: 2203 | version "1.0.1" 2204 | resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" 2205 | 2206 | to-fast-properties@^1.0.3: 2207 | version "1.0.3" 2208 | resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" 2209 | 2210 | tough-cookie@~2.3.0: 2211 | version "2.3.3" 2212 | resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.3.tgz#0b618a5565b6dea90bf3425d04d55edc475a7561" 2213 | dependencies: 2214 | punycode "^1.4.1" 2215 | 2216 | trim-right@^1.0.1: 2217 | version "1.0.1" 2218 | resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" 2219 | 2220 | tty-browserify@0.0.0: 2221 | version "0.0.0" 2222 | resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6" 2223 | 2224 | tunnel-agent@^0.6.0: 2225 | version "0.6.0" 2226 | resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" 2227 | dependencies: 2228 | safe-buffer "^5.0.1" 2229 | 2230 | tweetnacl@^0.14.3, tweetnacl@~0.14.0: 2231 | version "0.14.5" 2232 | resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" 2233 | 2234 | ua-parser-js@^0.7.9: 2235 | version "0.7.14" 2236 | resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.14.tgz#110d53fa4c3f326c121292bbeac904d2e03387ca" 2237 | 2238 | uglify-js@^2.8.29: 2239 | version "2.8.29" 2240 | resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd" 2241 | dependencies: 2242 | source-map "~0.5.1" 2243 | yargs "~3.10.0" 2244 | optionalDependencies: 2245 | uglify-to-browserify "~1.0.0" 2246 | 2247 | uglify-to-browserify@~1.0.0: 2248 | version "1.0.2" 2249 | resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" 2250 | 2251 | uglifyjs-webpack-plugin@^0.4.6: 2252 | version "0.4.6" 2253 | resolved "https://registry.yarnpkg.com/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-0.4.6.tgz#b951f4abb6bd617e66f63eb891498e391763e309" 2254 | dependencies: 2255 | source-map "^0.5.6" 2256 | uglify-js "^2.8.29" 2257 | webpack-sources "^1.0.1" 2258 | 2259 | uid-number@^0.0.6: 2260 | version "0.0.6" 2261 | resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" 2262 | 2263 | url@^0.11.0: 2264 | version "0.11.0" 2265 | resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" 2266 | dependencies: 2267 | punycode "1.3.2" 2268 | querystring "0.2.0" 2269 | 2270 | util-deprecate@~1.0.1: 2271 | version "1.0.2" 2272 | resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" 2273 | 2274 | util@0.10.3, util@^0.10.3: 2275 | version "0.10.3" 2276 | resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9" 2277 | dependencies: 2278 | inherits "2.0.1" 2279 | 2280 | uuid@^3.0.0: 2281 | version "3.1.0" 2282 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.1.0.tgz#3dd3d3e790abc24d7b0d3a034ffababe28ebbc04" 2283 | 2284 | validate-npm-package-license@^3.0.1: 2285 | version "3.0.1" 2286 | resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz#2804babe712ad3379459acfbe24746ab2c303fbc" 2287 | dependencies: 2288 | spdx-correct "~1.0.0" 2289 | spdx-expression-parse "~1.0.0" 2290 | 2291 | verror@1.10.0: 2292 | version "1.10.0" 2293 | resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" 2294 | dependencies: 2295 | assert-plus "^1.0.0" 2296 | core-util-is "1.0.2" 2297 | extsprintf "^1.2.0" 2298 | 2299 | vlq@^0.2.1: 2300 | version "0.2.3" 2301 | resolved "https://registry.yarnpkg.com/vlq/-/vlq-0.2.3.tgz#8f3e4328cf63b1540c0d67e1b2778386f8975b26" 2302 | 2303 | vm-browserify@0.0.4: 2304 | version "0.0.4" 2305 | resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-0.0.4.tgz#5d7ea45bbef9e4a6ff65f95438e0a87c357d5a73" 2306 | dependencies: 2307 | indexof "0.0.1" 2308 | 2309 | watchpack@^1.4.0: 2310 | version "1.4.0" 2311 | resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.4.0.tgz#4a1472bcbb952bd0a9bb4036801f954dfb39faac" 2312 | dependencies: 2313 | async "^2.1.2" 2314 | chokidar "^1.7.0" 2315 | graceful-fs "^4.1.2" 2316 | 2317 | webpack-sources@^1.0.1: 2318 | version "1.0.1" 2319 | resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-1.0.1.tgz#c7356436a4d13123be2e2426a05d1dad9cbe65cf" 2320 | dependencies: 2321 | source-list-map "^2.0.0" 2322 | source-map "~0.5.3" 2323 | 2324 | webpack@3.6.0: 2325 | version "3.6.0" 2326 | resolved "https://registry.yarnpkg.com/webpack/-/webpack-3.6.0.tgz#a89a929fbee205d35a4fa2cc487be9cbec8898bc" 2327 | dependencies: 2328 | acorn "^5.0.0" 2329 | acorn-dynamic-import "^2.0.0" 2330 | ajv "^5.1.5" 2331 | ajv-keywords "^2.0.0" 2332 | async "^2.1.2" 2333 | enhanced-resolve "^3.4.0" 2334 | escope "^3.6.0" 2335 | interpret "^1.0.0" 2336 | json-loader "^0.5.4" 2337 | json5 "^0.5.1" 2338 | loader-runner "^2.3.0" 2339 | loader-utils "^1.1.0" 2340 | memory-fs "~0.4.1" 2341 | mkdirp "~0.5.0" 2342 | node-libs-browser "^2.0.0" 2343 | source-map "^0.5.3" 2344 | supports-color "^4.2.1" 2345 | tapable "^0.2.7" 2346 | uglifyjs-webpack-plugin "^0.4.6" 2347 | watchpack "^1.4.0" 2348 | webpack-sources "^1.0.1" 2349 | yargs "^8.0.2" 2350 | 2351 | whatwg-fetch@>=0.10.0: 2352 | version "2.0.3" 2353 | resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz#9c84ec2dcf68187ff00bc64e1274b442176e1c84" 2354 | 2355 | which-module@^2.0.0: 2356 | version "2.0.0" 2357 | resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" 2358 | 2359 | which@^1.2.9: 2360 | version "1.3.0" 2361 | resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a" 2362 | dependencies: 2363 | isexe "^2.0.0" 2364 | 2365 | wide-align@^1.1.0: 2366 | version "1.1.2" 2367 | resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.2.tgz#571e0f1b0604636ebc0dfc21b0339bbe31341710" 2368 | dependencies: 2369 | string-width "^1.0.2" 2370 | 2371 | window-size@0.1.0: 2372 | version "0.1.0" 2373 | resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" 2374 | 2375 | wordwrap@0.0.2: 2376 | version "0.0.2" 2377 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" 2378 | 2379 | wrap-ansi@^2.0.0: 2380 | version "2.1.0" 2381 | resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" 2382 | dependencies: 2383 | string-width "^1.0.1" 2384 | strip-ansi "^3.0.1" 2385 | 2386 | wrappy@1: 2387 | version "1.0.2" 2388 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" 2389 | 2390 | xtend@^4.0.0: 2391 | version "4.0.1" 2392 | resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" 2393 | 2394 | y18n@^3.2.1: 2395 | version "3.2.1" 2396 | resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" 2397 | 2398 | yallist@^2.1.2: 2399 | version "2.1.2" 2400 | resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" 2401 | 2402 | yargs-parser@^7.0.0: 2403 | version "7.0.0" 2404 | resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-7.0.0.tgz#8d0ac42f16ea55debd332caf4c4038b3e3f5dfd9" 2405 | dependencies: 2406 | camelcase "^4.1.0" 2407 | 2408 | yargs@^8.0.2: 2409 | version "8.0.2" 2410 | resolved "https://registry.yarnpkg.com/yargs/-/yargs-8.0.2.tgz#6299a9055b1cefc969ff7e79c1d918dceb22c360" 2411 | dependencies: 2412 | camelcase "^4.1.0" 2413 | cliui "^3.2.0" 2414 | decamelize "^1.1.1" 2415 | get-caller-file "^1.0.1" 2416 | os-locale "^2.0.0" 2417 | read-pkg-up "^2.0.0" 2418 | require-directory "^2.1.1" 2419 | require-main-filename "^1.0.1" 2420 | set-blocking "^2.0.0" 2421 | string-width "^2.0.0" 2422 | which-module "^2.0.0" 2423 | y18n "^3.2.1" 2424 | yargs-parser "^7.0.0" 2425 | 2426 | yargs@~3.10.0: 2427 | version "3.10.0" 2428 | resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" 2429 | dependencies: 2430 | camelcase "^1.0.2" 2431 | cliui "^2.1.0" 2432 | decamelize "^1.0.0" 2433 | window-size "0.1.0" 2434 | --------------------------------------------------------------------------------