chore(v2): rm flowtype (#1444)

This commit is contained in:
Endi 2019-05-09 18:32:56 +07:00 committed by GitHub
parent c2ebde997a
commit 56cd3a22ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 66 additions and 7213 deletions

View file

@ -41,9 +41,6 @@ jobs:
- run:
name: Check ESLint
command: yarn lint
- run:
name: Check Flow
command: yarn flow check
- run:
name: Check Prettier
command: yarn prettier:diff

View file

@ -10,5 +10,3 @@ scripts
packages/docusaurus-1.x/lib/core/metadata.js
packages/docusaurus-1.x/lib/core/MetadataBlog.js
packages/docusaurus-1.x/lib/core/__tests__/split-tab.test.js
packages/docusaurus-utils/lib
packages/docusaurus/lib

View file

@ -1,14 +0,0 @@
[ignore]
<PROJECT_ROOT>/packages/.*/lib
<PROJECT_ROOT>/packages/.*/__tests__
[include]
[libs]
[lints]
[options]
module.name_mapper='^@docusaurus\/\([a-zA-Z0-9_\-]+\)$' -> '<PROJECT_ROOT>/packages/docusaurus-\1/src/index'
[strict]

2
.gitignore vendored
View file

@ -11,6 +11,4 @@ yarn-error.log
build
.docusaurus
.cache-loader
packages/docusaurus-utils/lib
packages/docusaurus/lib/

View file

@ -2,6 +2,3 @@ dist
node_modules
build
.docusaurus
packages/docusaurus-utils/lib
packages/docusaurus/lib
flow-typed

View file

@ -16,7 +16,6 @@ module.exports = {
},
],
'@babel/react',
'@babel/preset-flow',
],
plugins: [
'@babel/plugin-proposal-class-properties',

View file

@ -1,10 +0,0 @@
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
declare module 'escape-string-regexp' {
declare module.exports: (input: string) => string;
}

View file

@ -1,768 +0,0 @@
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
declare module 'fs-extra' {
import type {Stats, ReadStream, WriteStream} from 'fs';
declare export type SymlinkType = 'dir' | 'file';
declare export type FsSymlinkType = 'dir' | 'file' | 'junction';
declare export type CopyFilterSync = (src: string, dest: string) => boolean;
declare export type CopyFilterAsync = (
src: string,
dest: string,
) => Promise<boolean>;
declare export type CopyOptions = {
dereference?: boolean,
overwrite?: boolean,
preserveTimestamps?: boolean,
errorOnExist?: boolean,
recursive?: boolean,
};
declare export type CopyOptionsAync = CopyOptions & {
filter?: CopyFilterSync | CopyFilterAsync,
};
declare export type CopyOptionsSync = CopyOptions & {
filter?: CopyFilterSync,
};
declare export type MoveOptions = {
overwrite?: boolean,
limit?: number,
};
declare export type ReadOptions = {
throws?: boolean,
fs?: Object,
reviver?: any,
encoding?: string,
flag?: string,
};
declare export type WriteFileOptions = {
encoding?: string,
flag?: string,
mode?: number,
};
declare export type WriteOptions = WriteFileOptions & {
fs?: Object,
replacer?: any,
spaces?: number | string,
EOL?: string,
};
declare export type ReadResult = {
bytesRead: number,
buffer: Buffer,
};
declare export type WriteResult = {
bytesWritten: number,
buffer: Buffer,
};
declare export function copy(
src: string,
dest: string,
options?: CopyOptionsAync,
): Promise<void>;
declare export function copy(
src: string,
dest: string,
callback: (err: Error) => void,
): void;
declare export function copy(
src: string,
dest: string,
options: CopyOptionsAync,
callback: (err: Error) => void,
): void;
declare export function copySync(
src: string,
dest: string,
options?: CopyOptionsSync,
): void;
declare export function move(
src: string,
dest: string,
options?: MoveOptions,
): Promise<void>;
declare export function move(
src: string,
dest: string,
callback: (err: Error) => void,
): void;
declare export function move(
src: string,
dest: string,
options: MoveOptions,
callback: (err: Error) => void,
): void;
declare export function moveSync(
src: string,
dest: string,
options?: MoveOptions,
): void;
declare export function createFile(file: string): Promise<void>;
declare export function createFile(
file: string,
callback: (err: Error) => void,
): void;
declare export function createFileSync(file: string): void;
declare export function createReadStream(
path: string,
options?: Object,
): ReadStream;
declare export function createWriteStream(
path: string,
options?: Object,
): WriteStream;
declare export function ensureDir(path: string): Promise<void>;
declare export function ensureDir(
path: string,
callback: (err: Error) => void,
): void;
declare export function ensureDirSync(path: string): void;
declare export function exists(path: string): Promise<boolean>;
declare export function exists(
path: string,
callback?: (exists: boolean) => void,
): void;
declare export function mkdirs(dir: string): Promise<void>;
declare export function mkdirs(
dir: string,
callback: (err: Error) => void,
): void;
declare export function mkdirsSync(dir: string): void;
declare export function mkdirp(dir: string): Promise<void>;
declare export function mkdirp(
dir: string,
callback: (err: Error) => void,
): void;
declare export function mkdirpSync(dir: string): void;
declare export function outputFile(
file: string,
data: any,
options?: WriteFileOptions | string,
): Promise<void>;
declare export function outputFile(
file: string,
data: any,
callback: (err: Error) => void,
): void;
declare export function outputFile(
file: string,
data: any,
options: WriteFileOptions | string,
callback: (err: Error) => void,
): void;
declare export function outputFileSync(
file: string,
data: any,
options?: WriteFileOptions | string,
): void;
declare export function readJson(
file: string,
options?: ReadOptions,
): Promise<any>;
declare export function readJson(
file: string,
callback: (err: Error, jsonObject: any) => void,
): void;
declare export function readJson(
file: string,
options: ReadOptions,
callback: (err: Error, jsonObject: any) => void,
): void;
declare export function readJSON(
file: string,
options?: ReadOptions,
): Promise<any>;
declare export function readJSON(
file: string,
callback: (err: Error, jsonObject: any) => void,
): void;
declare export function readJSON(
file: string,
options: ReadOptions,
callback: (err: Error, jsonObject: any) => void,
): void;
declare export function readJsonSync(
file: string,
options?: ReadOptions,
): any;
declare export function readJSONSync(
file: string,
options?: ReadOptions,
): any;
declare export function remove(dir: string): Promise<void>;
declare export function remove(
dir: string,
callback: (err: Error) => void,
): void;
declare export function removeSync(dir: string): void;
declare export function outputJson(
file: string,
data: any,
options?: WriteOptions,
): Promise<void>;
declare export function outputJSON(
file: string,
data: any,
options?: WriteOptions,
): Promise<void>;
declare export function outputJson(
file: string,
data: any,
options: WriteOptions,
callback: (err: Error) => void,
): void;
declare export function outputJSON(
file: string,
data: any,
options: WriteOptions,
callback: (err: Error) => void,
): void;
declare export function outputJson(
file: string,
data: any,
callback: (err: Error) => void,
): void;
declare export function outputJSON(
file: string,
data: any,
callback: (err: Error) => void,
): void;
declare export function outputJsonSync(
file: string,
data: any,
options?: WriteOptions,
): void;
declare export function outputJSONSync(
file: string,
data: any,
options?: WriteOptions,
): void;
declare export function writeJSON(
file: string,
object: any,
options?: WriteOptions,
): Promise<void>;
declare export function writeJSON(
file: string,
object: any,
callback: (err: Error) => void,
): void;
declare export function writeJSON(
file: string,
object: any,
options: WriteOptions,
callback: (err: Error) => void,
): void;
declare export function writeJson(
file: string,
object: any,
options?: WriteOptions,
): Promise<void>;
declare export function writeJson(
file: string,
object: any,
callback: (err: Error) => void,
): void;
declare export function writeJson(
file: string,
object: any,
options: WriteOptions,
callback: (err: Error) => void,
): void;
declare export function writeJsonSync(
file: string,
object: any,
options?: WriteOptions,
): void;
declare export function writeJSONSync(
file: string,
object: any,
options?: WriteOptions,
): void;
declare export function ensureFile(path: string): Promise<void>;
declare export function ensureFile(
path: string,
callback: (err: Error) => void,
): void;
declare export function ensureFileSync(path: string): void;
declare export function ensureLink(src: string, dest: string): Promise<void>;
declare export function ensureLink(
src: string,
dest: string,
callback: (err: Error) => void,
): void;
declare export function ensureLinkSync(src: string, dest: string): void;
declare export function ensureSymlink(
src: string,
dest: string,
type?: SymlinkType,
): Promise<void>;
declare export function ensureSymlink(
src: string,
dest: string,
type: SymlinkType,
callback: (err: Error) => void,
): void;
declare export function ensureSymlink(
src: string,
dest: string,
callback: (err: Error) => void,
): void;
declare export function ensureSymlinkSync(
src: string,
dest: string,
type?: SymlinkType,
): void;
declare export function emptyDir(path: string): Promise<void>;
declare export function emptyDir(
path: string,
callback: (err: Error) => void,
): void;
declare export function emptyDirSync(path: string): void;
declare export function pathExists(path: string): Promise<boolean>;
declare export function pathExists(
path: string,
callback: (err: Error, exists: boolean) => void,
): void;
declare export function pathExistsSync(path: string): boolean;
declare export function access(
path: string | Buffer,
callback: (err: ErrnoError) => void,
): void;
declare export function access(
path: string | Buffer,
mode: number,
callback: (err: ErrnoError) => void,
): void;
declare export function access(
path: string | Buffer,
mode?: number,
): Promise<void>;
declare export function appendFile(
file: string | Buffer | number,
data: any,
options: {encoding?: string, mode?: number | string, flag?: string},
callback: (err: ErrnoError) => void,
): void;
declare export function appendFile(
file: string | Buffer | number,
data: any,
callback: (err: ErrnoError) => void,
): void;
declare export function appendFile(
file: string | Buffer | number,
data: any,
options?: {encoding?: string, mode?: number | string, flag?: string},
): Promise<void>;
declare export function chmod(
path: string | Buffer,
mode: string | number,
callback: (err: ErrnoError) => void,
): void;
declare export function chmod(
path: string | Buffer,
mode: string | number,
): Promise<void>;
declare export function chown(
path: string | Buffer,
uid: number,
gid: number,
): Promise<void>;
declare export function chown(
path: string | Buffer,
uid: number,
gid: number,
callback: (err: ErrnoError) => void,
): void;
declare export function close(
fd: number,
callback: (err: ErrnoError) => void,
): void;
declare export function close(fd: number): Promise<void>;
declare export function fchmod(
fd: number,
mode: string | number,
callback: (err: ErrnoError) => void,
): void;
declare export function fchmod(
fd: number,
mode: string | number,
): Promise<void>;
declare export function fchown(
fd: number,
uid: number,
gid: number,
callback: (err: ErrnoError) => void,
): void;
declare export function fchown(
fd: number,
uid: number,
gid: number,
): Promise<void>;
declare export function fdatasync(fd: number, callback: () => void): void;
declare export function fdatasync(fd: number): Promise<void>;
declare export function fstat(
fd: number,
callback: (err: ErrnoError, stats: Stats) => any,
): void;
declare export function fstat(fd: number): Promise<Stats>;
declare export function fsync(
fd: number,
callback: (err: ErrnoError) => void,
): void;
declare export function fsync(fd: number): Promise<void>;
declare export function ftruncate(
fd: number,
callback: (err: ErrnoError) => void,
): void;
declare export function ftruncate(
fd: number,
len: number,
callback: (err: ErrnoError) => void,
): void;
declare export function ftruncate(fd: number, len?: number): Promise<void>;
declare export function futimes(
fd: number,
atime: number,
mtime: number,
callback: (err: ErrnoError) => void,
): void;
declare export function futimes(
fd: number,
atime: Date,
mtime: Date,
callback: (err: ErrnoError) => void,
): void;
declare export function futimes(
fd: number,
atime: number,
mtime: number,
): Promise<void>;
declare export function futimes(
fd: number,
atime: Date,
mtime: Date,
): Promise<void>;
declare export function lchown(
path: string | Buffer,
uid: number,
gid: number,
callback: (err: ErrnoError) => void,
): void;
declare export function lchown(
path: string | Buffer,
uid: number,
gid: number,
): Promise<void>;
declare export function link(
srcpath: string | Buffer,
dstpath: string | Buffer,
callback: (err: ErrnoError) => void,
): void;
declare export function link(
srcpath: string | Buffer,
dstpath: string | Buffer,
): Promise<void>;
declare export function lstat(
path: string | Buffer,
callback: (err: ErrnoError, stats: Stats) => any,
): void;
declare export function lstat(path: string | Buffer): Promise<Stats>;
declare export function mkdir(
path: string | Buffer,
callback: (err: ErrnoError) => void,
): void;
declare export function mkdir(
path: string | Buffer,
mode: number | string,
callback: (err: ErrnoError) => void,
): void;
declare export function mkdir(path: string | Buffer): Promise<void>;
declare export function open(
path: string | Buffer,
flags: string | number,
callback: (err: ErrnoError, fd: number) => void,
): void;
declare export function open(
path: string | Buffer,
flags: string | number,
mode: number,
callback: (err: ErrnoError, fd: number) => void,
): void;
declare export function open(
path: string | Buffer,
flags: string | number,
mode?: number,
): Promise<number>;
declare export function read(
fd: number,
buffer: Buffer,
offset: number,
length: number,
position: number | null,
callback: (err: ErrnoError, bytesRead: number, buffer: Buffer) => void,
): void;
declare export function read(
fd: number,
buffer: Buffer,
offset: number,
length: number,
position: number | null,
): Promise<ReadResult>;
declare export function readFile(
file: string | Buffer | number,
callback: (err: ErrnoError, data: Buffer) => void,
): void;
declare export function readFile(
file: string | Buffer | number,
encoding: string,
callback: (err: ErrnoError, data: string) => void,
): void;
declare export function readFile(
file: string | Buffer | number,
options: {flag?: string} | {encoding: string, flag?: string},
callback: (err: ErrnoError, data: Buffer) => void,
): void;
declare export function readFile(
file: string | Buffer | number,
options: {flag?: string} | {encoding: string, flag?: string},
): Promise<string>;
declare export function readFile(
file: string | Buffer | number,
encoding: string,
): Promise<string>;
declare export function readFile(
file: string | Buffer | number,
): Promise<Buffer>;
declare export function readdir(
path: string | Buffer,
callback: (err: ErrnoError, files: string[]) => void,
): void;
declare export function readdir(path: string | Buffer): Promise<string[]>;
declare export function readlink(
path: string | Buffer,
callback: (err: ErrnoError, linkString: string) => any,
): void;
declare export function readlink(path: string | Buffer): Promise<string>;
declare export function realpath(
path: string | Buffer,
callback: (err: ErrnoError, resolvedPath: string) => any,
): void;
declare export function realpath(
path: string | Buffer,
cache: {[path: string]: string},
callback: (err: ErrnoError, resolvedPath: string) => any,
): void;
declare export function realpath(
path: string | Buffer,
cache?: {[path: string]: string},
): Promise<string>;
declare export function rename(
oldPath: string,
newPath: string,
callback: (err: ErrnoError) => void,
): void;
declare export function rename(
oldPath: string,
newPath: string,
): Promise<void>;
declare export function rmdir(
path: string | Buffer,
callback: (err: ErrnoError) => void,
): void;
declare export function rmdir(path: string | Buffer): Promise<void>;
declare export function stat(
path: string | Buffer,
callback: (err: ErrnoError, stats: Stats) => any,
): void;
declare export function stat(path: string | Buffer): Promise<Stats>;
declare export function statSync(path: string): Stats;
declare export function symlink(
srcpath: string | Buffer,
dstpath: string | Buffer,
type: FsSymlinkType | void,
callback: (err: ErrnoError) => void,
): void;
declare export function symlink(
srcpath: string | Buffer,
dstpath: string | Buffer,
callback: (err: ErrnoError) => void,
): void;
declare export function symlink(
srcpath: string | Buffer,
dstpath: string | Buffer,
type?: FsSymlinkType,
): Promise<void>;
declare export function truncate(
path: string | Buffer,
callback: (err: ErrnoError) => void,
): void;
declare export function truncate(
path: string | Buffer,
len: number,
callback: (err: ErrnoError) => void,
): void;
declare export function truncate(
path: string | Buffer,
len?: number,
): Promise<void>;
declare export function unlink(
path: string | Buffer,
callback: (err: ErrnoError) => void,
): void;
declare export function unlink(path: string | Buffer): Promise<void>;
declare export function utimes(
path: string | Buffer,
atime: number,
mtime: number,
callback: (err: ErrnoError) => void,
): void;
declare export function utimes(
path: string | Buffer,
atime: Date,
mtime: Date,
callback: (err: ErrnoError) => void,
): void;
declare export function utimes(
path: string | Buffer,
atime: number,
mtime: number,
): Promise<void>;
declare export function utimes(
path: string | Buffer,
atime: Date,
mtime: Date,
): Promise<void>;
declare export function write(
fd: number,
buffer: Buffer,
offset: number,
length: number,
position: number | null,
callback: (err: ErrnoError, written: number, buffer: Buffer) => void,
): void;
declare export function write(
fd: number,
buffer: Buffer,
offset: number,
length: number,
callback: (err: ErrnoError, written: number, buffer: Buffer) => void,
): void;
declare export function write(
fd: number,
data: any,
callback: (err: ErrnoError, written: number, str: string) => void,
): void;
declare export function write(
fd: number,
data: any,
offset: number,
callback: (err: ErrnoError, written: number, str: string) => void,
): void;
declare export function write(
fd: number,
data: any,
offset: number,
encoding: string,
callback: (err: ErrnoError, written: number, str: string) => void,
): void;
declare export function write(
fd: number,
buffer: Buffer,
offset: number,
length: number,
position?: number | null,
): Promise<WriteResult>;
declare export function write(
fd: number,
data: any,
offset: number,
encoding?: string,
): Promise<WriteResult>;
declare export function writeFile(
file: string | Buffer | number,
data: any,
callback: (err: ErrnoError) => void,
): void;
declare export function writeFile(
file: string | Buffer | number,
data: any,
options?: WriteFileOptions | string,
): Promise<void>;
declare export function writeFile(
file: string | Buffer | number,
data: any,
options: WriteFileOptions | string,
callback: (err: ErrnoError) => void,
): void;
declare export function mkdtemp(prefix: string): Promise<string>;
declare export function mkdtemp(
prefix: string,
callback: (err: ErrnoError, folder: string) => void,
): void;
}

File diff suppressed because it is too large Load diff

View file

@ -6,12 +6,6 @@
"website-1.x"
],
"scripts": {
"build": "lerna run --parallel build --no-private",
"build:clean": "lerna run --parallel build:clean --no-private",
"build:watch": "lerna run --parallel build:watch --no-private",
"flow": "flow",
"flow-typed": "flow-typed",
"install": "yarn run build",
"prettier": "prettier --config .prettierrc --write \"**/*.js\"",
"prettier:diff": "prettier --config .prettierrc --list-different \"**/*.js\"",
"lint": "eslint --cache \"**/*.js\"",
@ -20,7 +14,6 @@
},
"devDependencies": {
"@babel/core": "^7.4.4",
"@babel/preset-flow": "^7.0.0",
"babel-eslint": "8",
"enzyme": "^3.9.0",
"enzyme-adapter-react-16": "^1.12.1",
@ -33,9 +26,6 @@
"eslint-plugin-react": "^7.11.1",
"eslint-plugin-react-hooks": "^0.0.0",
"filepath": "^1.1.0",
"flow-bin": "^0.98.1",
"flow-remove-types": "^1.2.3",
"flow-typed": "^2.5.1",
"front-matter": "^2.3.0",
"glob-promise": "^3.3.0",
"husky": "^1.3.1",

View file

@ -1 +0,0 @@
src

View file

@ -2,17 +2,10 @@
"name": "@docusaurus/utils",
"version": "2.0.0-alpha.13",
"description": "Node utility functions for Docusaurus packages",
"main": "lib/index.js",
"main": "src/index.js",
"publishConfig": {
"access": "public"
},
"scripts": {
"prepublish": "yarn run build",
"build": "yarn run build:clean && yarn run build:lib",
"build:clean": "rimraf lib",
"build:lib": "flow-remove-types -q -x '.js,.css,.ejs' src --out-dir lib --ignore '/__tests__/'",
"build:watch": "watch \"yarn build\" src"
},
"license": "MIT",
"dependencies": {
"escape-string-regexp": "^1.0.5",

View file

@ -5,8 +5,6 @@
* LICENSE file in the root directory of this source tree.
*/
/* @flow */
const path = require('path');
const fm = require('front-matter');
const {createHash} = require('crypto');
@ -16,11 +14,13 @@ const escapeStringRegexp = require('escape-string-regexp');
const fs = require('fs-extra');
const fileHash = new Map();
async function generate(
generatedFilesDir: string,
file: string,
content: any,
): Promise<void> {
/**
* @param {string} generatedFilesDir
* @param {string} file
* @param {*} content
* @returns {Promise<void>}
*/
async function generate(generatedFilesDir, file, content) {
const filepath = path.join(generatedFilesDir, file);
const lastHash = fileHash.get(filepath);
const currentHash = createHash('md5')
@ -37,14 +37,22 @@ async function generate(
const indexRE = /(^|.*\/)index\.(md|js)$/i;
const extRE = /\.(md|js)$/;
function fileToPath(file: string): string {
/**
* @param {string} file
* @returns {string}
*/
function fileToPath(file) {
if (indexRE.test(file)) {
return file.replace(indexRE, '/$1');
}
return `/${file.replace(extRE, '').replace(/\\/g, '/')}`;
}
function encodePath(userpath: string): string {
/**
* @param {string} userpath
* @returns {string}
*/
function encodePath(userpath) {
return userpath
.split('/')
.map(item => encodeURIComponent(item))
@ -56,7 +64,7 @@ function encodePath(userpath: string): string {
* @param {string} str input string
* @returns {string}
*/
function docuHash(str: string): string {
function docuHash(str) {
if (str === '/') {
return 'index';
}
@ -72,7 +80,7 @@ function docuHash(str: string): string {
* @param {string} pagePath
* @returns {string} unique react component name
*/
function genComponentName(pagePath: string): string {
function genComponentName(pagePath) {
if (pagePath === '/') {
return 'index';
}
@ -89,7 +97,7 @@ function genComponentName(pagePath: string): string {
* @param {string} str windows backslash paths
* @returns {string} posix-style path
*/
function posixPath(str: string): string {
function posixPath(str) {
const isExtendedLengthPath = /^\\\\\?\\/.test(str);
const hasNonAscii = /[^\u0000-\u0080]+/.test(str); // eslint-disable-line
@ -100,11 +108,14 @@ function posixPath(str: string): string {
}
const chunkNameCache = new Map();
function genChunkName(
modulePath: string,
prefix?: string,
preferredName?: string,
): string {
/**
* Generate unique chunk name given a module path
* @param {string} modulePath
* @param {string=} prefix
* @param {string=} preferredName
* @returns {string}
*/
function genChunkName(modulePath, prefix, preferredName) {
let chunkName = chunkNameCache.get(modulePath);
if (!chunkName) {
let str = modulePath;
@ -121,8 +132,12 @@ function genChunkName(
}
return chunkName;
}
function idx(target?: {}, keyPaths: string | string[]): any {
/**
* @param {*} target
* @param {string|string[]} keyPaths
* @returns {*}
*/
function idx(target, keyPaths) {
return (
target &&
(Array.isArray(keyPaths)
@ -131,7 +146,12 @@ function idx(target?: {}, keyPaths: string | string[]): any {
);
}
function getSubFolder(file: string, refDir: string): ?string {
/**
* @param {string} file
* @param {string} refDir
* @returns {string}
*/
function getSubFolder(file, refDir) {
const separator = escapeStringRegexp(path.sep);
const baseDir = escapeStringRegexp(path.basename(refDir));
const regexSubFolder = new RegExp(
@ -141,7 +161,11 @@ function getSubFolder(file: string, refDir: string): ?string {
return match && match[1];
}
function parse(fileString: string): {} {
/**
* @param {string} fileString
* @returns {*}
*/
function parse(fileString) {
if (!fm.test(fileString)) {
return {metadata: null, content: fileString};
}
@ -150,7 +174,11 @@ function parse(fileString: string): {} {
return {metadata, content};
}
function normalizeUrl(rawUrls: string[]): string {
/**
* @param {string[]} rawUrls
* @returns {string}
*/
function normalizeUrl(rawUrls) {
const urls = rawUrls;
const resultArray = [];

View file

@ -1 +0,0 @@
src

View file

@ -12,7 +12,7 @@ const envinfo = require('envinfo');
const semver = require('semver');
const path = require('path');
const program = require('commander');
const {build, swizzle, init, deploy, start} = require('../lib');
const {build, swizzle, init, deploy, start} = require('../src');
const requiredVersion = require('../package.json').engines.node;
if (!semver.satisfies(process.version, requiredVersion)) {

View file

@ -23,12 +23,7 @@
"docusaurus": "bin/docusaurus.js"
},
"scripts": {
"docusaurus": "node bin/docusaurus",
"prepublish": "yarn run build",
"build": "yarn run build:clean && yarn run build:lib",
"build:clean": "rimraf lib",
"build:lib": "flow-remove-types -q -x '.js,.css,.ejs' src --out-dir lib --ignore '/__tests__/'",
"build:watch": "watch \"yarn build\" src"
"docusaurus": "node bin/docusaurus"
},
"bugs": {
"url": "https://github.com/facebook/Docusaurus/issues"

View file

@ -5,14 +5,12 @@
* LICENSE file in the root directory of this source tree.
*/
/* @flow */
const globby = require('globby');
const fs = require('fs-extra');
const path = require('path');
const {fileToPath, posixPath, normalizeUrl} = require('@docusaurus/utils');
module.exports = async function loadTheme(themePath: string) {
module.exports = async function loadTheme(themePath) {
if (!fs.pathExistsSync(themePath)) {
return null;
}

323
yarn.lock
View file

@ -352,13 +352,6 @@
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
"@babel/plugin-syntax-flow@^7.2.0":
version "7.2.0"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.2.0.tgz#a765f061f803bc48f240c26f8747faf97c26bf7c"
integrity sha512-r6YMuZDWLtLlu0kqIim5o/3TNRAlWb073HwT3e2nKf9I8IIvOggPrnILYPsrrKilmn/mYEMCf/Z07w3yQJF6dg==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
"@babel/plugin-syntax-json-strings@^7.2.0":
version "7.2.0"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.2.0.tgz#72bd13f6ffe1d25938129d2a186b11fd62951470"
@ -470,14 +463,6 @@
"@babel/helper-builder-binary-assignment-operator-visitor" "^7.1.0"
"@babel/helper-plugin-utils" "^7.0.0"
"@babel/plugin-transform-flow-strip-types@^7.0.0":
version "7.4.4"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.4.4.tgz#d267a081f49a8705fc9146de0768c6b58dccd8f7"
integrity sha512-WyVedfeEIILYEaWGAUWzVNyqG4sfsNooMhXWsu/YzOvVGcsnPb5PguysjJqI3t3qiaYj0BR8T2f5njdjTGe44Q==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
"@babel/plugin-syntax-flow" "^7.2.0"
"@babel/plugin-transform-for-of@^7.4.4":
version "7.4.4"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.4.4.tgz#0267fc735e24c808ba173866c6c4d1440fc3c556"
@ -732,14 +717,6 @@
js-levenshtein "^1.1.3"
semver "^5.5.0"
"@babel/preset-flow@^7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.0.0.tgz#afd764835d9535ec63d8c7d4caf1c06457263da2"
integrity sha512-bJOHrYOPqJZCkPVbG1Lot2r5OSsB+iUOaxiHdlOeB1yPWS6evswVHwvkDLZ54WTaTRIk89ds0iHmGZSnxlPejQ==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
"@babel/plugin-transform-flow-strip-types" "^7.0.0"
"@babel/preset-react@^7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.0.0.tgz#e86b4b3d99433c7b3e9e91747e2653958bc6b3c0"
@ -1688,21 +1665,6 @@
once "^1.4.0"
universal-user-agent "^2.0.1"
"@octokit/rest@^15.2.6":
version "15.18.1"
resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-15.18.1.tgz#ec7fb0f8775ef64dc095fae6635411d3fbff9b62"
integrity sha512-g2tecjp2TEtYV8bKAFvfQtu+W29HM7ektmWmw8zrMy9/XCKDEYRErR2YvvhN9+IxkLC4O3lDqYP4b6WgsL6Utw==
dependencies:
before-after-hook "^1.1.0"
btoa-lite "^1.0.0"
debug "^3.1.0"
http-proxy-agent "^2.1.0"
https-proxy-agent "^2.2.0"
lodash "^4.17.4"
node-fetch "^2.1.1"
universal-user-agent "^2.0.0"
url-template "^2.0.8"
"@octokit/rest@^16.16.0":
version "16.25.3"
resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-16.25.3.tgz#ce9e7a6230d20d58574ec929f622f2778ead7eb4"
@ -2632,15 +2594,6 @@ babel-plugin-jest-hoist@^24.6.0:
dependencies:
"@types/babel__traverse" "^7.0.6"
babel-polyfill@^6.26.0:
version "6.26.0"
resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153"
integrity sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=
dependencies:
babel-runtime "^6.26.0"
core-js "^2.5.0"
regenerator-runtime "^0.10.5"
babel-preset-jest@^24.6.0:
version "24.6.0"
resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-24.6.0.tgz#66f06136eefce87797539c0d63f1769cc3915984"
@ -2649,20 +2602,12 @@ babel-preset-jest@^24.6.0:
"@babel/plugin-syntax-object-rest-spread" "^7.0.0"
babel-plugin-jest-hoist "^24.6.0"
babel-runtime@^6.26.0:
version "6.26.0"
resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe"
integrity sha1-llxwWGaOgrVde/4E/yM3vItWR/4=
dependencies:
core-js "^2.4.0"
regenerator-runtime "^0.11.0"
babylon@7.0.0-beta.44:
version "7.0.0-beta.44"
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.44.tgz#89159e15e6e30c5096e22d738d8c0af8a0e8ca1d"
integrity sha512-5Hlm13BJVAioCHpImtFqNOF2H3ieTOHd0fmFGMxOJ9jgeFqeAwsv3u5P5cR7CSeFrkgHsT19DgFJkHV0/Mcd8g==
babylon@^6.15.0, babylon@^6.17.4:
babylon@^6.17.4:
version "6.18.0"
resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3"
integrity sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==
@ -2712,7 +2657,7 @@ bcrypt-pbkdf@^1.0.0:
dependencies:
tweetnacl "^0.14.3"
before-after-hook@^1.1.0, before-after-hook@^1.4.0:
before-after-hook@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-1.4.0.tgz#2b6bf23dca4f32e628fd2747c10a37c74a4b484d"
integrity sha512-l5r9ir56nda3qu14nAXIlyq1MmUSs0meCIaFAh8HwkFwP1F8eToOuS3ah2VAHHcY04jaYD7FpJC5JTXHYRbkzg==
@ -2727,11 +2672,6 @@ bfj@^6.1.1:
hoopy "^0.1.2"
tryer "^1.0.0"
big-integer@^1.6.17:
version "1.6.43"
resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.43.tgz#8ac15bf13e93e509500859061233e19d8d0d99d1"
integrity sha512-9dULc9jsKmXl0Aeunug8wbF+58n+hQoFjqClN7WeZwGLh0XJUWyJJ9Ee+Ep+Ql/J9fRsTVaeThp8MhiCCrY0Jg==
big.js@^5.2.2:
version "5.2.2"
resolved "https://registry.yarnpkg.com/big.js/-/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328"
@ -2795,14 +2735,6 @@ binary-extensions@^2.0.0:
resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.0.0.tgz#23c0df14f6a88077f5f986c0d167ec03c3d5537c"
integrity sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow==
binary@~0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/binary/-/binary-0.3.0.tgz#9f60553bc5ce8c3386f3b553cff47462adecaa79"
integrity sha1-n2BVO8XOjDOG87VTz/R0Yq3sqnk=
dependencies:
buffers "~0.1.1"
chainsaw "~0.1.0"
bl@^1.0.0:
version "1.2.2"
resolved "https://registry.yarnpkg.com/bl/-/bl-1.2.2.tgz#a160911717103c07410cef63ef51b397c025af9c"
@ -2828,11 +2760,6 @@ bluebird@^3.0.5, bluebird@^3.5.1, bluebird@^3.5.3:
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.4.tgz#d6cc661595de30d5b3af5fcedd3c0b3ef6ec5714"
integrity sha512-FG+nFEZChJrbQ9tIccIfZJBz3J7mLrAhxakAbnrJWn8d7aKOC+LWifa0G+p4ZqKp4y13T7juYvdhq9NzKdsrjw==
bluebird@~3.4.1:
version "3.4.7"
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.4.7.tgz#f72d760be09b7f76d08ed8fae98b289a8d05fab3"
integrity sha1-9y12C+Cbf3bQjtj66Ysomo0F+rM=
bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0:
version "4.11.8"
resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f"
@ -3054,21 +2981,11 @@ buffer-from@^1.0.0:
resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef"
integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==
buffer-indexof-polyfill@~1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/buffer-indexof-polyfill/-/buffer-indexof-polyfill-1.0.1.tgz#a9fb806ce8145d5428510ce72f278bb363a638bf"
integrity sha1-qfuAbOgUXVQoUQznLyeLs2OmOL8=
buffer-indexof@^1.0.0:
version "1.1.1"
resolved "https://registry.yarnpkg.com/buffer-indexof/-/buffer-indexof-1.1.1.tgz#52fabcc6a606d1a00302802648ef68f639da268c"
integrity sha512-4/rOEg86jivtPTeOUUT61jJO1Ya1TrR/OkqCSZDyq84WJh3LuuiphBYJN+fm5xufIk4XAFcEwte/8WzC8If/1g==
buffer-shims@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/buffer-shims/-/buffer-shims-1.0.0.tgz#9978ce317388c649ad8793028c3477ef044a8b51"
integrity sha1-mXjOMXOIxkmth5MCjDR37wRKi1E=
buffer-xor@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9"
@ -3091,11 +3008,6 @@ buffer@^5.2.1:
base64-js "^1.0.2"
ieee754 "^1.1.4"
buffers@~0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/buffers/-/buffers-0.1.1.tgz#b24579c3bed4d6d396aeee6d9a8ae7f5482ab7bb"
integrity sha1-skV5w77U1tOWru5tmorn9Ugqt7s=
builtin-status-codes@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8"
@ -3256,11 +3168,6 @@ camelcase@^2.0.0:
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-2.1.1.tgz#7c1d16d679a1bbe59ca02cacecfb011e201f5a1f"
integrity sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=
camelcase@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a"
integrity sha1-MvxLn82vhF/N9+c7uXysImHwqwo=
camelcase@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd"
@ -3318,13 +3225,6 @@ ccount@^1.0.0, ccount@^1.0.3:
resolved "https://registry.yarnpkg.com/ccount/-/ccount-1.0.4.tgz#9cf2de494ca84060a2a8d2854edd6dfb0445f386"
integrity sha512-fpZ81yYfzentuieinmGnphk0pLkOTMm6MZdVqwd77ROvhko6iujLNGrHH5E7utq3ygWklwfmwuG+A7P+NpqT6w==
chainsaw@~0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/chainsaw/-/chainsaw-0.1.0.tgz#5eab50b28afe58074d0d58291388828b5e5fbc98"
integrity sha1-XqtQsor+WAdNDVgpE4iCi15fvJg=
dependencies:
traverse ">=0.3.0 <0.4"
chalk@1.1.3, chalk@^1.0.0, chalk@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
@ -3399,11 +3299,6 @@ chardet@^0.7.0:
resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e"
integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==
charenc@~0.0.1:
version "0.0.2"
resolved "https://registry.yarnpkg.com/charenc/-/charenc-0.0.2.tgz#c0a1d2f3a7092e03774bfa83f14c0fc5790a8667"
integrity sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc=
check-types@^7.3.0:
version "7.4.0"
resolved "https://registry.yarnpkg.com/check-types/-/check-types-7.4.0.tgz#0378ec1b9616ec71f774931a3c6516fad8c152f4"
@ -3578,15 +3473,6 @@ clipboard@^2.0.0:
select "^1.1.2"
tiny-emitter "^2.0.0"
cliui@^3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d"
integrity sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=
dependencies:
string-width "^1.0.1"
strip-ansi "^3.0.1"
wrap-ansi "^2.0.0"
cliui@^4.0.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/cliui/-/cliui-4.1.0.tgz#348422dbe82d800b3022eef4f6ac10bf2e4d1b49"
@ -3718,11 +3604,6 @@ colormin@^1.0.5:
css-color-names "0.0.4"
has "^1.0.1"
colors@^1.1.2:
version "1.3.3"
resolved "https://registry.yarnpkg.com/colors/-/colors-1.3.3.tgz#39e005d546afe01e01f9c4ca8fa50f686a01205d"
integrity sha512-mmGt/1pZqYRjMxB1axhTo16/snVZ5krrKkcmMeVKxzECMMXoCgnvTPp10QgHfcbQZw8Dq2jMNG6je4JlWU0gWg==
colors@~1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63"
@ -4055,7 +3936,7 @@ core-js@^1.0.0:
resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636"
integrity sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY=
core-js@^2.4.0, core-js@^2.5.0, core-js@^2.5.7, core-js@^2.6.5:
core-js@^2.5.7, core-js@^2.6.5:
version "2.6.5"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.5.tgz#44bc8d249e7fb2ff5d00e0341a7ffb94fbf67895"
integrity sha512-klh/kDpwX8hryYL14M9w/xei6vrv6sE8gTHDG7/T/+SEovB/G4ejwcfE/CBzO6Edsu+OETZMZ3wcX/EjUkrl5A==
@ -4143,11 +4024,6 @@ crowdin-cli@^0.3.0:
yamljs "^0.2.1"
yargs "^2.3.0"
crypt@~0.0.1:
version "0.0.2"
resolved "https://registry.yarnpkg.com/crypt/-/crypt-0.0.2.tgz#88d7ff7ec0dfb86f713dc87bbb42d044d3e6c41b"
integrity sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs=
crypto-browserify@^3.11.0:
version "3.12.0"
resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec"
@ -4429,7 +4305,7 @@ decamelize-keys@^1.0.0:
decamelize "^1.1.0"
map-obj "^1.0.0"
decamelize@^1.1.0, decamelize@^1.1.1, decamelize@^1.1.2, decamelize@^1.2.0:
decamelize@^1.1.0, decamelize@^1.1.2, decamelize@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=
@ -4934,13 +4810,6 @@ download@^7.1.0:
p-event "^2.1.0"
pify "^3.0.0"
duplexer2@~0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/duplexer2/-/duplexer2-0.1.4.tgz#8b12dab878c0d69e3e7891051662a32fc6bddcc1"
integrity sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=
dependencies:
readable-stream "^2.0.2"
duplexer3@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2"
@ -5964,40 +5833,6 @@ flatten@^1.0.2:
resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782"
integrity sha1-2uRqnXj74lKSJYzB54CkHZXAN4I=
flow-bin@^0.98.1:
version "0.98.1"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.98.1.tgz#a8d781621c91703df69928acc83c9777e2fcbb49"
integrity sha512-y1YzQgbFUX4EG6h2EO8PhyJeS0VxNgER8XsTwU8IXw4KozfneSmGVgw8y3TwAOza7rVhTlHEoli1xNuNW1rhPw==
flow-remove-types@^1.2.3:
version "1.2.3"
resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-1.2.3.tgz#6131aefc7da43364bb8b479758c9dec7735d1a18"
integrity sha512-ypq/U3V+t9atYiOuSJd40tekCra03EHKoRsiK/wXGrsZimuum0kdwVY7Yv0HTaoXgHW1WiayomYd+Q3kkvPl9Q==
dependencies:
babylon "^6.15.0"
vlq "^0.2.1"
flow-typed@^2.5.1:
version "2.5.1"
resolved "https://registry.yarnpkg.com/flow-typed/-/flow-typed-2.5.1.tgz#0ff565cc94d2af8c557744ba364b6f14726a6b9f"
integrity sha1-D/VlzJTSr4xVd0S6NktvFHJqa58=
dependencies:
"@octokit/rest" "^15.2.6"
babel-polyfill "^6.26.0"
colors "^1.1.2"
fs-extra "^5.0.0"
glob "^7.1.2"
got "^7.1.0"
md5 "^2.1.0"
mkdirp "^0.5.1"
rimraf "^2.6.2"
semver "^5.5.0"
table "^4.0.2"
through "^2.3.8"
unzipper "^0.8.11"
which "^1.3.0"
yargs "^4.2.0"
flush-write-stream@^1.0.0:
version "1.1.1"
resolved "https://registry.yarnpkg.com/flush-write-stream/-/flush-write-stream-1.1.1.tgz#8dd7d873a1babc207d94ead0c2e0e44276ebf2e8"
@ -6147,7 +5982,7 @@ fsevents@^2.0.6:
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.0.6.tgz#87b19df0bfb4a1a51d7ddb51b01b5f3bedb40c33"
integrity sha512-vfmKZp3XPM36DNF0qhW+Cdxk7xm7gTEHY1clv1Xq1arwRQuKZgAhw+NZNWbJBtuaNxzNXwhfdPYRrvIbjfS33A==
fstream@^1.0.0, fstream@^1.0.2, fstream@~1.0.10:
fstream@^1.0.0, fstream@^1.0.2:
version "1.0.11"
resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171"
integrity sha1-XB+x8RdHcRTwYyoOtLcbPLD9MXE=
@ -6490,7 +6325,7 @@ good-listener@^1.2.2:
dependencies:
delegate "^3.1.2"
got@^7.0.0, got@^7.1.0:
got@^7.0.0:
version "7.1.0"
resolved "https://registry.yarnpkg.com/got/-/got-7.1.0.tgz#05450fd84094e6bbea56f451a43a9c289166385a"
integrity sha512-Y5WMo7xKKq1muPsxD+KmrR8DH5auG7fBdDVueZwETwV6VytKyU9OX/ddpq2/1hp1vIPvVb4T81dKQz3BivkNLw==
@ -7010,7 +6845,7 @@ https-browserify@^1.0.0:
resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73"
integrity sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=
https-proxy-agent@^2.2.0, https-proxy-agent@^2.2.1:
https-proxy-agent@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-2.2.1.tgz#51552970fa04d723e04c56d04178c3f92592bbc0"
integrity sha512-HPCTS1LW51bcyMYbxUIOO4HEOlQ1/1qRaFWcyxvwaqUS9TY88aoEuHUY33kuAh1YhVVaDQhLZsnPd+XNARWZlQ==
@ -7338,11 +7173,6 @@ invariant@^2.2.0, invariant@^2.2.2, invariant@^2.2.4:
dependencies:
loose-envify "^1.0.0"
invert-kv@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6"
integrity sha1-EEqOSqym09jNFXqO+L+rLXo//bY=
invert-kv@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-2.0.0.tgz#7393f5afa59ec9ff5f67a27620d11c226e3eec02"
@ -7429,7 +7259,7 @@ is-boolean-object@^1.0.0:
resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.0.0.tgz#98f8b28030684219a95f375cfbd88ce3405dff93"
integrity sha1-mPiygDBoQhmpXzdc+9iM40Bd/5M=
is-buffer@^1.1.5, is-buffer@~1.1.1:
is-buffer@^1.1.5:
version "1.1.6"
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"
integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==
@ -8523,13 +8353,6 @@ lazy-cache@^2.0.2:
dependencies:
set-getter "^0.1.0"
lcid@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835"
integrity sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=
dependencies:
invert-kv "^1.0.0"
lcid@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/lcid/-/lcid-2.0.0.tgz#6ef5d2df60e52f82eb228a4c373e8d1f397253cf"
@ -8641,11 +8464,6 @@ list-item@^1.1.1:
is-number "^2.1.0"
repeat-string "^1.5.2"
listenercount@~1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/listenercount/-/listenercount-1.0.1.tgz#84c8a72ab59c4725321480c975e6508342e70937"
integrity sha1-hMinKrWcRyUyFIDJdeZQg0LnCTc=
listr-silent-renderer@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/listr-silent-renderer/-/listr-silent-renderer-1.1.1.tgz#924b5a3757153770bf1a8e3fbf74b8bbf3f9242e"
@ -8766,11 +8584,6 @@ lodash._reinterpolate@~3.0.0:
resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d"
integrity sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=
lodash.assign@^4.0.3, lodash.assign@^4.0.6:
version "4.2.0"
resolved "https://registry.yarnpkg.com/lodash.assign/-/lodash.assign-4.2.0.tgz#0d99f3ccd7a6d261d19bdaeb9245005d285808e7"
integrity sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=
lodash.assignin@^4.0.9:
version "4.2.0"
resolved "https://registry.yarnpkg.com/lodash.assignin/-/lodash.assignin-4.2.0.tgz#ba8df5fb841eb0a3e8044232b0e263a8dc6a28a2"
@ -9144,15 +8957,6 @@ md5.js@^1.3.4:
inherits "^2.0.1"
safe-buffer "^5.1.2"
md5@^2.1.0:
version "2.2.1"
resolved "https://registry.yarnpkg.com/md5/-/md5-2.2.1.tgz#53ab38d5fe3c8891ba465329ea23fac0540126f9"
integrity sha1-U6s41f48iJG6RlMp6iP6wFQBJvk=
dependencies:
charenc "~0.0.1"
crypt "~0.0.1"
is-buffer "~1.1.1"
mdast-squeeze-paragraphs@^3.0.0:
version "3.0.4"
resolved "https://registry.yarnpkg.com/mdast-squeeze-paragraphs/-/mdast-squeeze-paragraphs-3.0.4.tgz#e27affcc8cc854842ff504ebb8f380e3c8e131f8"
@ -9617,7 +9421,7 @@ node-fetch@^1.0.1:
encoding "^0.1.11"
is-stream "^1.0.1"
node-fetch@^2.1.1, node-fetch@^2.3.0:
node-fetch@^2.3.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.5.0.tgz#8028c49fc1191bba56a07adc6e2a954644a48501"
integrity sha512-YuZKluhWGJwCcUu4RlZstdAxr8bFfOVHakc1mplwHkk8J+tqM1Y5yraYvIUpeX8aY7+crCwiELJq7Vl0o0LWXw==
@ -10136,13 +9940,6 @@ os-homedir@^1.0.0:
resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3"
integrity sha1-/7xJiDNuDoM94MFox+8VISGqf7M=
os-locale@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13d2009803c14d9"
integrity sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=
dependencies:
lcid "^1.0.0"
os-locale@^3.0.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-3.1.0.tgz#a802a6ee17f24c10483ab9935719cef4ed16bf1a"
@ -11025,11 +10822,6 @@ private@^0.1.6:
resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff"
integrity sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==
process-nextick-args@~1.0.6:
version "1.0.7"
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3"
integrity sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=
process-nextick-args@~2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa"
@ -11634,19 +11426,6 @@ read@1, read@~1.0.1:
string_decoder "^1.1.1"
util-deprecate "^1.0.1"
readable-stream@~2.1.5:
version "2.1.5"
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.1.5.tgz#66fa8b720e1438b364681f2ad1a63c618448c9d0"
integrity sha1-ZvqLcg4UOLNkaB8q0aY8YYRIydA=
dependencies:
buffer-shims "^1.0.0"
core-util-is "~1.0.0"
inherits "~2.0.1"
isarray "~1.0.0"
process-nextick-args "~1.0.6"
string_decoder "~0.10.x"
util-deprecate "~1.0.1"
readdir-scoped-modules@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/readdir-scoped-modules/-/readdir-scoped-modules-1.0.2.tgz#9fafa37d286be5d92cbaebdee030dc9b5f406747"
@ -11766,16 +11545,6 @@ regenerate@^1.2.1, regenerate@^1.4.0:
resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.0.tgz#4a856ec4b56e4077c557589cae85e7a4c8869a11"
integrity sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==
regenerator-runtime@^0.10.5:
version "0.10.5"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz#336c3efc1220adcedda2c9fab67b5a7955a33658"
integrity sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=
regenerator-runtime@^0.11.0:
version "0.11.1"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9"
integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==
regenerator-runtime@^0.13.2:
version "0.13.2"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.2.tgz#32e59c9a6fb9b1a4aff09b4930ca2d4477343447"
@ -12424,7 +12193,7 @@ set-value@^2.0.0:
is-plain-object "^2.0.3"
split-string "^3.0.1"
setimmediate@^1.0.4, setimmediate@^1.0.5, setimmediate@~1.0.4:
setimmediate@^1.0.4, setimmediate@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285"
integrity sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=
@ -12961,7 +12730,7 @@ string.prototype.trim@^1.1.2:
es-abstract "^1.5.0"
function-bind "^1.0.2"
string_decoder@0.10, string_decoder@~0.10.x:
string_decoder@0.10:
version "0.10.31"
resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94"
integrity sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=
@ -13193,7 +12962,7 @@ table@4.0.2:
slice-ansi "1.0.0"
string-width "^2.1.1"
table@^4.0.2, table@^4.0.3:
table@^4.0.3:
version "4.0.3"
resolved "https://registry.yarnpkg.com/table/-/table-4.0.3.tgz#00b5e2b602f1794b9acaf9ca908a76386a7813bc"
integrity sha512-S7rnFITmBH1EnyKcvxBh1LjYeQMmnZtCXSEbHcH6S0NoKit24ZuFO/T1vDcLdYsLQkM188PVVhQmzKIuThNkKg==
@ -13511,11 +13280,6 @@ tr46@^1.0.1:
dependencies:
punycode "^2.1.0"
"traverse@>=0.3.0 <0.4":
version "0.3.9"
resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.3.9.tgz#717b8f220cc0bb7b44e40514c22b2e8bbc70d8b9"
integrity sha1-cXuPIgzAu3tE5AUUwisui7xw2Lk=
tree-node-cli@^1.2.5:
version "1.2.5"
resolved "https://registry.yarnpkg.com/tree-node-cli/-/tree-node-cli-1.2.5.tgz#afd75437976bbf2cc0c52b9949798e7530e8fd8c"
@ -13843,21 +13607,6 @@ unset-value@^1.0.0:
has-value "^0.3.1"
isobject "^3.0.0"
unzipper@^0.8.11:
version "0.8.14"
resolved "https://registry.yarnpkg.com/unzipper/-/unzipper-0.8.14.tgz#ade0524cd2fc14d11b8de258be22f9d247d3f79b"
integrity sha512-8rFtE7EP5ssOwGpN2dt1Q4njl0N1hUXJ7sSPz0leU2hRdq6+pra57z4YPBlVqm40vcgv6ooKZEAx48fMTv9x4w==
dependencies:
big-integer "^1.6.17"
binary "~0.3.0"
bluebird "~3.4.1"
buffer-indexof-polyfill "~1.0.0"
duplexer2 "~0.1.4"
fstream "~1.0.10"
listenercount "~1.0.1"
readable-stream "~2.1.5"
setimmediate "~1.0.4"
upath@^1.1.1:
version "1.1.2"
resolved "https://registry.yarnpkg.com/upath/-/upath-1.1.2.tgz#3db658600edaeeccbe6db5e684d67ee8c2acd068"
@ -14045,11 +13794,6 @@ vfile@^3.0.0:
unist-util-stringify-position "^1.0.0"
vfile-message "^1.0.0"
vlq@^0.2.1:
version "0.2.3"
resolved "https://registry.yarnpkg.com/vlq/-/vlq-0.2.3.tgz#8f3e4328cf63b1540c0d67e1b2778386f8975b26"
integrity sha512-DRibZL6DsNhIgYQ+wNdWDL2SL3bKPlVrRiBqV5yuMm++op8W4kGFtaQfCs4KEJn0wBZcHVHJ3eoywX8983k1ow==
vm-browserify@0.0.4:
version "0.0.4"
resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-0.0.4.tgz#5d7ea45bbef9e4a6ff65f95438e0a87c357d5a73"
@ -14324,11 +14068,6 @@ whet.extend@~0.9.9:
resolved "https://registry.yarnpkg.com/whet.extend/-/whet.extend-0.9.9.tgz#f877d5bf648c97e5aa542fadc16d6a259b9c11a1"
integrity sha1-+HfVv2SMl+WqVC+twW1qJZucEaE=
which-module@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f"
integrity sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=
which-module@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a"
@ -14348,11 +14087,6 @@ wide-align@^1.1.0:
dependencies:
string-width "^1.0.2 || 2"
window-size@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.2.0.tgz#b4315bb4214a3d7058ebeee892e13fa24d98b075"
integrity sha1-tDFbtCFKPXBY6+7okuE/ok2YsHU=
windows-release@^3.1.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/windows-release/-/windows-release-3.2.0.tgz#8122dad5afc303d833422380680a79cdfa91785f"
@ -14487,11 +14221,6 @@ xtend@^4.0.0, xtend@^4.0.1, xtend@~4.0.0, xtend@~4.0.1:
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af"
integrity sha1-pcbVMr5lbiPbgg77lDofBJmNY68=
y18n@^3.2.1:
version "3.2.1"
resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41"
integrity sha1-bRX7qITAhnnA136I53WegR4H+kE=
"y18n@^3.2.1 || ^4.0.0", y18n@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.0.tgz#95ef94f85ecc81d007c264e190a120f0a3c8566b"
@ -14523,14 +14252,6 @@ yargs-parser@^11.1.1:
camelcase "^5.0.0"
decamelize "^1.2.0"
yargs-parser@^2.4.1:
version "2.4.1"
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-2.4.1.tgz#85568de3cf150ff49fa51825f03a8c880ddcc5c4"
integrity sha1-hVaN488VD/SfpRgl8DqMiA3cxcQ=
dependencies:
camelcase "^3.0.0"
lodash.assign "^4.0.6"
yargs@12.0.5, yargs@^12.0.1, yargs@^12.0.2:
version "12.0.5"
resolved "https://registry.yarnpkg.com/yargs/-/yargs-12.0.5.tgz#05f5997b609647b64f66b81e3b4b10a368e7ad13"
@ -14556,26 +14277,6 @@ yargs@^2.3.0:
dependencies:
wordwrap "0.0.2"
yargs@^4.2.0:
version "4.8.1"
resolved "https://registry.yarnpkg.com/yargs/-/yargs-4.8.1.tgz#c0c42924ca4aaa6b0e6da1739dfb216439f9ddc0"
integrity sha1-wMQpJMpKqmsObaFznfshZDn53cA=
dependencies:
cliui "^3.2.0"
decamelize "^1.1.1"
get-caller-file "^1.0.1"
lodash.assign "^4.0.3"
os-locale "^1.4.0"
read-pkg-up "^1.0.1"
require-directory "^2.1.1"
require-main-filename "^1.0.1"
set-blocking "^2.0.0"
string-width "^1.0.1"
which-module "^1.0.0"
window-size "^0.2.0"
y18n "^3.2.1"
yargs-parser "^2.4.1"
yauzl@^2.4.2:
version "2.10.0"
resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.10.0.tgz#c7eb17c93e112cb1086fa6d8e51fb0667b79a5f9"