diff --git a/.buildrc.ts b/.buildrc.ts new file mode 100644 index 000000000..da97ca26e --- /dev/null +++ b/.buildrc.ts @@ -0,0 +1,12 @@ +export default { + target: 'node', + cjs: { type: 'babel', lazy: true }, + excludePkgs: [ + 'core/build', + 'core/cli', + 'core/create-nocobase-app', + 'core/devtools', + 'core/dumi-theme-nocobase', + 'app/client', + ], +}; diff --git a/.env.example b/.env.example index 1aadcc4d5..2cf38ae16 100644 --- a/.env.example +++ b/.env.example @@ -7,17 +7,14 @@ VERDACCIO_PORT=10104 ################# NOCOBASE APPLICATION ################# -NOCOBASE_ENV=development +APP_ENV=development +APP_PORT=13000 +APP_KEY=test-key -SERVER_PORT=3000 +API_BASE_PATH=/api/ +API_BASE_URL= -# api base path endpoint for app(web) -SERVER_BASE_PATH=/api/ - -# api server access point for app(web when build) -SERVER_BASE_URL= - -JWT_SECRET=09f26e402586e2faa8da4c98a35f1b20d6b033c60 +PROXY_TARGET_URL= ################# DATABASE ################# @@ -28,15 +25,18 @@ DB_STORAGE=storage/db/nocobase.sqlite # DB_DATABASE=postgres # DB_USER=nocobase # DB_PASSWORD=nocobase -# DB_LOG_SQL=on +# DB_LOGGING=on ################# STORAGE (Initialization only) ################# +INIT_ROOT_EMAIL=admin@nocobase.com +INIT_ROOT_PASSWORD=admin123 +INIT_ROOT_NICKNAME=Super Admin + # local or ali-oss DEFAULT_STORAGE_TYPE=local # LOCAL STORAGE -LOCAL_STORAGE_USE_STATIC_SERVER=true LOCAL_STORAGE_BASE_URL= LOCAL_STORAGE_DEST=storage/uploads diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml index cd291ff30..7471eb082 100644 --- a/.github/workflows/node-ci.yml +++ b/.github/workflows/node-ci.yml @@ -40,10 +40,9 @@ jobs: node-version: ${{ matrix.node_version }} cache: 'yarn' - run: yarn install - - run: yarn bootstrap - run: yarn build - name: Test with postgres - run: yarn test -i + run: yarn test env: DB_DIALECT: postgres DB_HOST: postgres @@ -52,12 +51,12 @@ jobs: DB_PASSWORD: password DB_DATABASE: nocobase - name: Test with Sqlite - run: yarn test -i + run: yarn test env: DB_DIALECT: sqlite DB_STORAGE: /tmp/db.sqlite - name: Test with MySQL - run: yarn test -i + run: yarn test env: DB_DIALECT: mysql DB_HOST: mysql diff --git a/.gitignore b/.gitignore index 550a49e9b..315ab3b4d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ node_modules/ lib/ -!packages/core/create-nocobase-app/lib esm/ +es/ .env .DS_Store yarn-error.log diff --git a/.umirc.ts b/.umirc.ts index bd2a7be7b..d1fae6822 100644 --- a/.umirc.ts +++ b/.umirc.ts @@ -1,14 +1,103 @@ +import transformer from '@umijs/preset-dumi/lib/transformer'; import { defineConfig } from 'dumi'; +import fs from 'fs'; +import path from 'path'; +import menus from './docs/menus'; + +const lang = process.env.DOC_LANG || 'en-US'; + +console.log('process.env.DOC_LANG', process.env.DOC_LANG); + +const findFilePath = (filename, lang) => { + const filePath = path.resolve(__dirname, `docs/${lang}/${filename}`); + if (fs.existsSync(`${filePath}.md`)) { + return `${filePath}.md`; + } + return; +}; + +const markdown = (filename, lang) => { + const filePath = findFilePath(filename, lang); + if (!filePath) { + return; + } + return transformer.markdown(fs.readFileSync(filePath, 'utf8').toString(), filePath); +}; + +const getPath = (value: string) => { + if (!value) { + return ''; + } + const keys = value.split('/'); + if (keys.pop() === 'index') { + return keys.join('/') || '/'; + } + return value; +}; + +const getTitle = (item, lang) => { + if (lang) { + return item[`title.${lang}`] || item.title; + } + return item.title; +}; + +const parseMenuItems = (items, lang = null) => { + const menuItems = []; + for (const item of items) { + if (typeof item === 'string') { + const result = markdown(item, lang); + if (result) { + menuItems.push({ + title: result.meta.title, + disabled: result.meta.disabled, + path: getPath(item), + }); + } + } else if (item.children) { + menuItems.push({ + ...item, + title: getTitle(item, lang), + children: parseMenuItems(item.children, lang), + }); + } else if (item.path) { + menuItems.push({ + ...item, + title: getTitle(item, lang), + path: getPath(item.path), + }); + } else { + menuItems.push({ + title: getTitle(item, lang), + ...item, + }); + } + } + return menuItems; +}; export default defineConfig({ title: 'NocoBase', - favicon: 'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png', - logo: 'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png', - outputPath: 'docs-dist', + outputPath: `./docs/dist/${lang}`, mode: 'site', resolve: { - includes: ['docs', 'packages/client'], + includes: [`./docs/${lang}`], }, + locales: [[lang, lang]], hash: true, - // more config: https://d.umijs.org/config + logo: 'https://www.nocobase.com/images/logo.png', + navs: [ + { + title: 'Docs', + path: '/', + hidden: true, + }, + { + title: 'GitHub', + path: 'https://github.com/nocobase/nocobase', + }, + ], + menus: { + '/': parseMenuItems(menus, lang), + }, }); diff --git a/README.md b/README.md index f8ff8f6c4..f87157edf 100644 --- a/README.md +++ b/README.md @@ -64,172 +64,16 @@ NocoBase is designed for you if you have the following needs. ## Installation -NocoBase supports both Docker and CLI installation methods. Docker is recommended if you are new to NocoBase. +NocoBase supports three installation methods: -### Docker (👍Recommended) +- Installing With Docker (👍Recommended) -#### 0. Before start + Suitable for no-code scenarios, no code to write. When upgrading, just download the latest image and reboot. -⚡⚡ Please make sure you have installed [Docker](https://docs.docker.com/get-docker/) +- Installing from create-nocobase-app CLI -#### 1. Download NocoBase + The business code of the project is completely independent and supports low-code development. -Download with Git (or Download Zip,and extract it to the nocobase directory) +- Installing from Git source code -```bash -git clone https://github.com/nocobase/nocobase.git nocobase -``` - -#### 2. Select database (choose one) - -Supports SQLite, MySQL, PostgreSQL - -```bash -# SQLite -cd nocobase/docker/app-sqlite -# MySQL -cd nocobase/docker/app-mysql -# PostgreSQL -cd nocobase/docker/app-postgres -``` - -#### 3. Install and start NocoBase - -It may take dozens of seconds - -```bash -# run in the background -$ docker-compose up -d -# view app logs -$ docker-compose logs app - -app-sqlite-app-1 | nginx started -app-sqlite-app-1 | yarn run v1.22.15 -app-sqlite-app-1 | $ cross-env DOTENV_CONFIG_PATH=.env node -r dotenv/config packages/app/server/lib/index.js install -s -app-sqlite-app-1 | Done in 2.72s. -app-sqlite-app-1 | yarn run v1.22.15 -app-sqlite-app-1 | $ pm2-runtime start --node-args="-r dotenv/config" packages/app/server/lib/index.js -- start -app-sqlite-app-1 | 2022-04-28T15:45:38: PM2 log: Launching in no daemon mode -app-sqlite-app-1 | 2022-04-28T15:45:38: PM2 log: App [index:0] starting in -fork mode- -app-sqlite-app-1 | 2022-04-28T15:45:38: PM2 log: App [index:0] online -app-sqlite-app-1 | 🚀 NocoBase server running at: http://localhost:13000/ -``` - -#### 4. Log in to NocoBase - -Open [http://localhost:13000](http://localhost:13000) in a web browser. The initial account and password are `admin@nocobase.com` and `admin123`. - - -### CLI - -#### 0. Before start - -Please make sure you have Node.js 12.x or above installed. You can download and install the latest LTS version from the official website. It is recommended to use nvm (or nvm-windows for Win systems) to manage Node.js versions if you plan to work with Node.js for a long time. - -```bash -$ node -v - -v16.13.2 -``` - -yarn package manager is recommend. - -```bash -$ npm install --global yarn -$ yarn -v - -1.22.10 -``` - -Also, make sure you have configured and started the required database, which supports SQLite, MySQL, PostgreSQL. - -#### 1. Create a NocoBase project - -```bash -# SQLite -yarn create nocobase-app my-nocobase-app -d sqlite -# MySQL -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3356 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase -# PostgreSQL -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase -``` - -#### 2. Switch to the project directory - -```bash -cd my-nocobase-app -``` - -#### 3. Install dependencies - -```bash -yarn install -``` - -#### 4. Install & Start NocoBase - -```bash -yarn nocobase install --lang=en-US -yarn start -``` - -#### 5. Log in to NocoBase - -Open [http://localhost:8000](http://localhost:8000) in a web browser. The initial account and password are `admin@nocobase.com` and `admin123`. - -## Contributing - -- Fork the source code to your own repository -- Modify source code -- Submit pull request - -### Download - -```bash -# Replace the following git address with your own repo -git clone https://github.com/nocobase/nocobase.git -cd nocobase -cp .env.example .env -yarn install -``` - -### Development and Testing - -```bash -# Install NocoBase -yarn nocobase install --lang=en-US -# Start NocoBase -yarn start -# Run all tests -yarn test -# Run all test files in the folder -yarn test -# Run a single test file -yarn test -``` - -### Documentation preview - -```bash -# Start documentation -yarn doc --lang=zh-CN -yarn doc --lang=en-US -``` - -The documentation is in the docs directory and follows Markdown syntax - -```bash -|- /docs/ - |- en-US - |- zh-CN -``` + If you want to experience the latest unreleased version, or want to participate in the contribution, you need to make changes and debug on the source code, it is recommended to choose this installation method, which requires a high level of development skills, and if the code has been updated, you can git pull the latest code. diff --git a/README.zh-CN.md b/README.zh-CN.md index c6aa3cc6c..1cde97daa 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -2,8 +2,8 @@ ![](https://www.nocobase.com/images/demo/11.png) -NocoBase 是什么 ----------- +## NocoBase 是什么 + NocoBase 是一个极易扩展的开源无代码开发平台。 无需编程,使用 NocoBase 搭建自己的协作平台、管理系统,只需要几分钟时间。 @@ -13,6 +13,9 @@ https://cn.nocobase.com/ 在线体验: https://demo-cn.nocobase.com/new +文档: +https://docs-cn.nocobase.com/ + ## 适用场景 如果你有以下需求,NocoBase 就是为你设计的: @@ -24,8 +27,8 @@ https://demo-cn.nocobase.com/new - 私有部署,掌控全部代码和数据 - 可免费使用,也可以付费获得更多技术支持 -为什么选择 NocoBase ----------- +## 为什么选择 NocoBase + - **开源免费** - 采用 Apache-2.0 许可协议,不限制商业使用 - 拥有全部代码,私有化部署,保障数据私有和安全 @@ -50,14 +53,13 @@ https://demo-cn.nocobase.com/new - 渐进式开发,上手难度低,对新人友好 - 不绑架、不强依赖,可任意组合使用或扩展,可用于现有项目中 -NocoBase 架构 ----------- +## NocoBase 架构 + ![](https://www.nocobase.com/images/NocoBaseMindMapLite.png) [点此查看完整图片](https://www.nocobase.com/images/NocoBaseMindMap.png) -联系 ----------- +## 联系 如果你希望加入我们一起开发 NocoBase,或者需要提供商业服务,欢迎通过邮件联系我们:hello@nocobase.com @@ -67,180 +69,16 @@ NocoBase 架构 ## 安装 -NocoBase 支持 Docker 和 CLI 两种安装方法,如果你是新人推荐使用 Docker 安装。 +NocoBase 支持三种安装方式: -### Docker (👍Recommended) +- Docker 安装(推荐) -#### 0. 先决条件 + 适合无代码场景,不需要写代码。升级时,下载最新镜像并重启即可。 -⚡⚡ 请确保你已经安装了 [Docker](https://docs.docker.com/get-docker/) +- create-nocobase-app 安装 -#### 1. 将 NocoBase 下载到本地 + 项目的业务代码完全独立,支持低代码开发。 -使用 Git 下载(或直接[下载 Zip 包](https://github.com/nocobase/nocobase/archive/refs/heads/main.zip),并解压到 nocobase 目录下) +- Git 源码安装 -```bash -git clone https://github.com/nocobase/nocobase.git nocobase -``` - -#### 2. 选择数据库(任选其一) - -支持 SQLite、MySQL、PostgreSQL 数据库 - -```bash -# SQLite -cd nocobase/docker/app-sqlite -# MySQL -cd nocobase/docker/app-mysql -# PostgreSQL -cd nocobase/docker/app-postgres -``` - -#### 3. 安装并启动 NocoBase - -安装过程可能需要等待几十秒钟 - -```bash -# 在后台运行 -$ docker-compose up -d -# 查看 app 进程的情况 -$ docker-compose logs app - -app-sqlite-app-1 | nginx started -app-sqlite-app-1 | yarn run v1.22.15 -app-sqlite-app-1 | $ cross-env DOTENV_CONFIG_PATH=.env node -r dotenv/config packages/app/server/lib/index.js install -s -app-sqlite-app-1 | Done in 2.72s. -app-sqlite-app-1 | yarn run v1.22.15 -app-sqlite-app-1 | $ pm2-runtime start --node-args="-r dotenv/config" packages/app/server/lib/index.js -- start -app-sqlite-app-1 | 2022-04-28T15:45:38: PM2 log: Launching in no daemon mode -app-sqlite-app-1 | 2022-04-28T15:45:38: PM2 log: App [index:0] starting in -fork mode- -app-sqlite-app-1 | 2022-04-28T15:45:38: PM2 log: App [index:0] online -app-sqlite-app-1 | 🚀 NocoBase server running at: http://localhost:13000/ -``` - -#### 4. 登录 NocoBase - -使用浏览器打开 http://localhost:13000/ 初始化账号和密码是 `admin@nocobase.com` 和 `admin123`。 - -### CLI - -#### 0. 先决条件 - -请确保你已经安装了 Node.js 12.x 或以上版本,如果你没有安装 Node.js 可以从官网下载并安装最新的 LTS 版本。如果你打算长期与 Node.js 打交道,推荐使用 nvm(Win 系统可以使用 nvm-windows )来管理 Node.js 版本。 - -```bash -$ node -v - -v16.13.2 -``` - -推荐使用 yarn 包管理器。 - -```bash -$ npm install --global yarn -$ yarn -v - -1.22.10 -``` - -由于国内网络环境的原因,强烈建议你更换国内镜像。 - -```bash -$ yarn config set registry https://registry.npmmirror.com/ -$ yarn config set sqlite3_binary_host_mirror https://npmmirror.com/mirrors/sqlite3/ -``` - -最后,请确保你已经配置并启动所需数据库,数据库支持 SQLite(无需安装启动)、MySQL、PostgreSQL。 - -#### 1. 创建 NocoBase 项目 - -```bash -# SQLite -yarn create nocobase-app my-nocobase-app -d sqlite -# MySQL -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3356 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase -# PostgreSQL -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase -``` - -#### 2. 切换目录 - -```bash -cd my-nocobase-app -``` - -#### 3. 安装依赖 - -📢 由于网络环境、系统配置等因素影响,接下来这一步骤可能需要十几分钟时间。 - -```bash -yarn install -``` - -#### 4. 安装并启动 NocoBase - -```bash -yarn nocobase install --lang=zh-CN -yarn start -``` - -#### 5. 登录 NocoBase - -使用浏览器打开 http://localhost:13000/ 初始化账号和密码是 `admin@nocobase.com` 和 `admin123`。 - -## 贡献 - -- Fork 源代码到自己的仓库 -- 修改源代码 -- 提交 Pull Request - -### 下载项目 - -```bash -# 替换为自己的仓库地址 -git clone https://github.com/nocobase/nocobase.git -cd nocobase -cp .env.example .env -yarn install -``` - -### 应用开发与测试 - -```bash -# 安装 -yarn nocobase install --lang=zh-CN -# 启动应用 -yarn start -# 运行所有测试 -yarn test -# 运行文件夹下所有测试文件 -yarn test -# 运行单个测试文件 -yarn test -``` - -### 文档预览 - -```bash -# 启动文档 -yarn doc --lang=zh-CN -yarn doc --lang=en-US -``` - -文档在 docs 目录下,遵循 Markdown 语法 - -```bash -|- /docs/ - |- en-US - |- zh-CN -``` + 如果你想体验最新未发布版本,或者想参与贡献,需要在源码上进行修改、调试,建议选择这种安装方式,对开发技术水平要求较高,如果代码有更新,可以走 git 流程拉取最新代码。 diff --git a/docker-compose.yml b/docker-compose.yml index 89de6d580..284c7a8d4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -57,6 +57,6 @@ services: volumes: - ./:/app expose: - - ${SERVER_PORT} + - ${APP_PORT} ports: - - "${SERVER_PORT}:${SERVER_PORT}" \ No newline at end of file + - "${APP_PORT}:${APP_PORT}" \ No newline at end of file diff --git a/docs/en-US/contributing.md b/docs/en-US/contributing.md new file mode 100644 index 000000000..1e6536df2 --- /dev/null +++ b/docs/en-US/contributing.md @@ -0,0 +1,47 @@ +# Contributing + +- Fork the source code to your own repository +- Modify source code +- Submit pull request + +## Download + +```bash +# Replace the following git address with your own repo +git clone https://github.com/nocobase/nocobase.git +cd nocobase +yarn install +``` + +## Development and Testing + +```bash +# Install and start the application +yarn dev +# Run all tests +yarn test +# Run all test files in the folder +yarn test +# Run a single test file +yarn test +``` + +## Documentation preview + +```bash +# Start documentation +yarn doc --lang=zh-CN +yarn doc --lang=en-US +``` + +The documentation is in the docs directory and follows Markdown syntax + +```bash +|- /docs/ + |- en-US + |- zh-CN +``` + +## Others + +For more CLI instructions, please [refer to the NocoBase CLI chapter](./development/nocobase-cli.md) diff --git a/docs/en-US/development/directory-structure.md b/docs/en-US/development/directory-structure.md new file mode 100644 index 000000000..2ed87129c --- /dev/null +++ b/docs/en-US/development/directory-structure.md @@ -0,0 +1,89 @@ +# Directory structure + +## Application scaffolding + +```bash +$ yarn create nocobase-app my-nocobase-app +``` + +The directory structure of the application scaffold created by `create-nocobase-app` is as follows + +```bash +├── my-nocobase-app + ├── packages # Use the Monorepo approach to manage code, dividing different modules into packages + ├── app + ├── client # Client-side modules + ├── server # Server-side modules + ├── plugins # Plugins directory + ├── storages # For database files, attachments, cache, etc. + ├── db + ├── .env # Environment variables + ├── .buildrc.ts # Packaging configuration for packages, supports cjs, esm and umd packaging. + ├── jest.config.js + ├── jest.setup.ts + ├── lerna.json + ├── package.json + ├── tsconfig.jest.json + ├── tsconfig.json + ├── tsconfig.server.json +``` + +### packages directory + +```bash +├── packages + ├── app + ├── client + ├── public + ├── src + ├── pages + ├── index.tsx + ├── .umirc.ts + ├── package.json + ├── server + ├── src + ├── config + ├── index.ts + ├── package.json + ├── /plugins + ├── my-plugin + ├── src + ├── package.json +``` + +NocoBase uses the Monorepo approach to manage the code, dividing the different modules into different packages. + +- `app/client` is the client-side module of the application, built on [umi](https://umijs.org). +- `app/server` is the server-side module of the application. +- `plugins/*` directory can hold various plugins. + +### storages directory + +Used to store database files, attachments, cache, etc. + +### .env file + +Environment variables + +### .buildrc.ts file + +Packaging configuration for packages, supports cjs, esm and umd packaging. + +## Plugins scaffolding + +```bash +$ yarn nocobase create-plugin my-plugin +``` + +The plugin scaffolding directory initialized by `nocobase create-plugin` is as follows + +```bash +├── my-nocobase-app + ├── packages + ├── plugins + ├── my-plugin + ├── src + ├── client + ├── server + ├── package.json +``` diff --git a/docs/en-US/development/env.md b/docs/en-US/development/env.md new file mode 100644 index 000000000..40a56d237 --- /dev/null +++ b/docs/en-US/development/env.md @@ -0,0 +1,207 @@ +# Environment variables + +## Global environment variables + +Saved in the `.env` file + +### APP_ENV + +Application environment, default value `development`, options include + +- `production` production environment +- `development` development environment + +```bash +APP_ENV=production +``` + +### APP_HOST + +Application host, default value `0.0.0.0` + +```bash +APP_HOST=192.168.3.154 +``` + +### APP_PORT + +Application port, default value `13000` + +```bash +APP_PORT=13000 +``` + +### APP_KEY + +Secret key for scenarios such as jwt + +```bash +APP_KEY=app-key-test +``` + +### API_BASE_PATH + +NocoBase API address prefix, default value `/api/` + +```bash +API_BASE_PATH=/api/ +``` + +### DB_DIALECT + +Database type, default value `sqlite`,options include + +- `sqlite` +- `mysql` +- `postgres` + +```bash +DB_DIALECT=mysql +``` + +### DB_STORAGE + +Database file path (configured when using SQLite) + +```bash +# Relative path +DB_HOST=storage/db/nocobase.db +# Absolute path +DB_HOST=/your/path/nocobase.db +``` + +### DB_HOST + +Database host (required when using MySQL or PostgreSQL) + +Default value `localhost` + +```bash +DB_HOST=localhost +``` + +### DB_PORT + +Database port (required when using MySQL or PostgreSQL) + +- MySQL default port 3356 +- PostgreSQL default port 5432 + +```bash +DB_PORT=3356 +``` + +### DB_DATABASE + +Database name (required when using MySQL or PostgreSQL) + +```bash +DB_DATABASE=nocobase +``` + +### DB_USER + +Database user (required when using MySQL or PostgreSQL) + +```bash +DB_USER=nocobase +``` + +### DB_PASSWORD + +Database password (required when using MySQL or PostgreSQL) + +```bash +DB_PASSWORD=nocobase +``` + +### DB_TABLE_PREFIX + +Data Table Prefix + +```bash +DB_TABLE_PREFIX=nocobase_ +``` + +### DB_LOGGING + +Switching of logs, default value `off`, options include: + +- `on` On +- `off` Off + +```bash +DB_LOGGING=on +``` + +## Temporary environment variables + +When installing NocoBase, you can assist in the installation by setting temporary environment variables, such as + +```bash +yarn cross-env \ + INIT_APP_LANG=en-US \ + INIT_ROOT_EMAIL=demo@nocobase.com \ + INIT_ROOT_PASSWORD=admin123 \ + INIT_ROOT_NICKNAME="Super Admin" \ + nocobase install + +# Equivalent to +yarn nocobase install \ + --lang=en-US \ + --root-email=demo@nocobase.com \ + --root-password=admin123 \ + --root-nickname="Super Admin" + +# Equivalent to +yarn nocobase install -l en-US -e demo@nocobase.com -p admin123 -n "Super Admin" +``` + +### INIT_APP_LANG + +Language at installation, default value `en-US`, options include + +- `en-US` +- `zh-CN` + +```bash +yarn cross-env \ + INIT_APP_LANG=en-US \ + nocobase install +``` + +### INIT_ROOT_EMAIL + +Root user's email + +```bash +yarn cross-env \ + INIT_APP_LANG=en-US \ + INIT_ROOT_EMAIL=demo@nocobase.com \ + nocobase install +``` + +### INIT_ROOT_PASSWORD + +Root user's password + +```bash +yarn cross-env \ + INIT_APP_LANG=en-US \ + INIT_ROOT_EMAIL=demo@nocobase.com \ + INIT_ROOT_PASSWORD=admin123 \ + nocobase install +``` + +### INIT_ROOT_NICKNAME + +Root user's name + +```bash +yarn cross-env \ + INIT_APP_LANG=en-US \ + INIT_ROOT_EMAIL=demo@nocobase.com \ + INIT_ROOT_PASSWORD=admin123 \ + INIT_ROOT_NICKNAME="Super Admin" \ + nocobase install +``` diff --git a/docs/en-US/development/http-api/action-api.md b/docs/en-US/development/http-api/action-api.md new file mode 100644 index 000000000..d71f3a6f9 --- /dev/null +++ b/docs/en-US/development/http-api/action-api.md @@ -0,0 +1,146 @@ +# Action API + +## Common + +--- + +Collection and Association resources are common. + +### `create` + +```bash +POST /api/users:create?whitelist=a,b&blacklist=c,d + +{} # Request Body +``` + +- Parameters + - whitelist White list + - blacklist Black list +- Request body: JSON data to be inserted +- Response body data: Created data JSON + +#### Add a User + +```bash +POST /api/users:create + +Request Body +{ + "email": "demo@nocobase.com", + "name": "Admin" +} + +Response 200 (application/json) +{ + "data": {}, + "meta": {} +} +``` + +#### Add a user's article + +```bash +POST /api/users/1/posts:create + +Request Body +{ + "title": "My first post" +} + +Response 200 (application/json) +{ + "data": {}, + "meta": {} +} +``` + +#### Association in Request Body + +```bash +POST /api/posts:create + +Request Body +{ + "title": "My first post", + "user": 1 +} + +Response 200 (application/json) +{ + "data": { + "id": 1, + "title": "My first post", + "userId": 1, + "user": { + "id": 1 + } + }, + "meta": {} +} +``` + +### `update` + +```bash +POST /api/users:create?filterByTk=1&whitelist=a,b&blacklist=c,d + +{} # Request Body +``` + +- Parameters + - whitelist White list + - blacklist Black list + - filterByTk Filter by tk field, by default tk is the primary key of the data table + - filter Filter,support json string +- Request body: JSON data to be updated + +#### Association in Request Body + +```bash +POST /api/posts:update/1 + +Request Body +{ + "title": "My first post 2", + "user": 2 +} + +Response 200 (application/json) +{ + "data": [ + { + "id": 1, + "title": "My first post 2", + "userId": 2, + "user": { + "id": 2 + } + } + ], + "meta": {} +} +``` + +### `list` + +### `get` + +### `destroy` + +### `move` + +## Association + +--- + +### `add` + +### `set` + +### `remove` + +### `toggle` + + + diff --git a/docs/en-US/development/http-api/filter-operators.md b/docs/en-US/development/http-api/filter-operators.md new file mode 100644 index 000000000..13e9f7beb --- /dev/null +++ b/docs/en-US/development/http-api/filter-operators.md @@ -0,0 +1,59 @@ +# Filter operators + +## Common + +- $eq +- $ne +- $gte +- $gt +- $lte +- $lt +- $not +- $is +- $in +- $notIn +- $like +- $notLike +- $iLike +- $notILike +- $and +- $or +- $empty +- $notEmpty + +## array + +- $match +- $notMatch +- $anyOf +- $noneOf +- $arrayEmpty +- $arrayNotEmpty + +## association + +- $exists +- $notExists + +## boolean + +- $truthy +- $falsy + +## date + +- $dateOn +- $dateNotOn +- $dateBefore +- $dateNotBefore +- $dateAfter +- $dateNotAfter + +## string + +- $includes +- $notIncludes +- $startsWith +- $notStartsWith +- $endWith +- $notEndWith diff --git a/docs/en-US/development/http-api/index.md b/docs/en-US/development/http-api/index.md new file mode 100644 index 000000000..ace76a369 --- /dev/null +++ b/docs/en-US/development/http-api/index.md @@ -0,0 +1,307 @@ +# Overview + +NocoBase HTTP API is designed based on Resource & Action, it is a superset of REST API. The operation is not limited to add, delete, change, and check, Resource Action can be extended arbitrarily in NocoBase. + +## Resource + +Resource has two expressions in NocoBase. + +- `` +- `.` + + + +- collection is the set of all abstract data +- association is the association data for the collection +- resource includes both collection and collection.association + + + +### Example + +- `posts` Post +- `posts.user` Post user +- `posts.tags` Post tags + +## Action + +Representing resource operations as `:` + +- `:` +- `.:` + +Built-in global operations for collection or association + +- `create` +- `get` +- `list` +- `update` +- `destroy` +- `move` + +Built-in association operation for association only + +- `set` +- `add` +- `remove` +- `toggle` + +### Example + +- `posts:create` Create posts +- `posts.user:get` View posts user +- `posts.tags:add` Attach post tags (associate existing tags with post) + +## Request URL + +```bash + /api/: + /api/:/ + /api///: + /api///:/ +``` + +### Example + +posts resource + +```bash +POST /api/posts:create +GET /api/posts:list +GET /api/posts:get/1 +POST /api/posts:update/1 +POST /api/posts:destroy/1 +``` + +posts.comments resource + +```bash +POST /api/posts/1/comments:create +GET /api/posts/1/comments:list +GET /api/posts/1/comments:get/1 +POST /api/posts/1/comments:update/1 +POST /api/posts/1/comments:destroy/1 +``` + +posts.tags resource + +```bash +POST /api/posts/1/tags:create +GET /api/posts/1/tags:get +GET /api/posts/1/tags:list +POST /api/posts/1/tags:update +POST /api/posts/1/tags:destroy +POST /api/posts/1/tags:add +GET /api/posts/1/tags:remove +``` + +## Resource location + +- collection resource, locates the data to be processed by `collectionIndex`, `collectionIndex` must be unique +- association resource, locates the data to be processed by `collectionIndex` and `associationIndex` jointly, `associationIndex` may not be unique, but `collectionIndex` and `associationIndex`'s association indexes must be unique + +When viewing association resource details, the requested URL needs to provide both `` and ``, `` is not redundant because `` may not be unique. + +For example, `tables.fields` indicates the fields of a data table + +```bash +GET /api/tables/table1/fields/title +GET /api/tables/table2/fields/title +``` + +Both table1 and table2 have a title field. The title is unique in table1, but other tables may also have a title field + +## Request parameters + +Request parameters can be placed in the request's headers, parameters (query string), and body (GET requests do not have a body). + +A few special request parameters + +- `filter` Data filtering, used in query-related operations. +- `filterByTk` filter by tk field, used in operations that specify details of the data. +- `sort` Sorting, used in query-related operations. +- `fields` which data to output, for use in query-related operations. +- `appends` additional relationship fields for use in query-related operations. +- `except` which fields to exclude (no output), used in query-related operations. +- `whitelist` fields whitelist, used in data creation and update related operations. +- `blacklist` fields blacklist, used in data creation and update related operations. + +### filter + +Data filter + +```bash +# simple +GET /api/posts?filter[status]=publish +# Recommend using the json string format, which requires encodeURIComponent encoding +GET /api/posts?filter={"status":"published"} + +# filter operators +GET /api/posts?filter[status.$eq]=publish +GET /api/posts?filter={"status.$eq":"published"} + +# $and +GET /api/posts?filter={"$and": [{"status.$eq":"published"}, {"title.$includes":"a"}]} +# $or +GET /api/posts?filter={"$or": [{"status.$eq":"pending"}, {"status.$eq":"draft"}]} + +# association field +GET /api/posts?filter[user.email.$includes]=gmail +GET /api/posts?filter={"user.email.$includes":"gmail"} +``` + +[Click here for more infomation about filter operators](http-api/filter-operators) + +### filterByTk + +Filter by tk field. By default + +- collection resource, tk is the primary key of the data table. +- association resource, tk is the targetKey field of the association. + +```bash +GET /api/posts:get?filterByTk=1&fields=name,title&appends=tags +``` + +### sort + +Sorting. When sorting in descending order, the fields are preceded by the minus sign `-`. + +```bash +# createAt field in ascending order +GET /api/posts:get?sort=createdAt +# createAt field descending +GET /api/posts:get?sort=-createdAt +# Multiple fields sorted jointly, createAt field descending, title A-Z ascending +GET /api/posts:get?sort=-createdAt,title +``` + +### fields + +Which fields to output + +```bash +GET /api/posts:list?fields=name,title + +Response 200 (application/json) +{ + "data": [ + { + "name": "", + "title": "" + } + ], + "meta": {} +} +``` + +### appends + +Appends a relationship field + +### except + +Which fields to exclude (not output) for use in query-related operations. + +### whitelist + +Whitelist + +```bash +POST /api/posts:create?whitelist=title + +{ + "title": "My first post", + "date": "2022-05-19" # The date field will be filtered out and will not be written to the database +} +``` + +### blacklist + +Blacklist + +```bash +POST /api/posts:create?blacklist=date + +{ + "title": "My first post", + "date": "2022-05-19" # The date field will be filtered out and will not be written to the database +} +``` + +## Request Response + +Format of the response + +```ts +type ResponseResult = { + data?: any; // Master data + meta?: any; // Additional Data + errors?: ResponseError[]; // Errors +}; + +type ResponseError = { + code?: string; + message: string; +}; +``` + +### Example + +View list + +```bash +GET /api/posts:list + +Response 200 (application/json) + +{ + data: [ + { + id: 1 + } + ], + meta: { + count: 1 + page: 1, + pageSize: 1, + totalPage: 1 + }, +} +``` + +View details + +```bash +GET /api/posts:get/1 + +Response 200 (application/json) + +{ + data: { + id: 1 + }, + meta: { + count: 1 + page: 1, + pageSize: 1, + totalPage: 1 + }, +} +``` + +Error + +```bash +POST /api/posts:create + +Response 400 (application/json) + +{ + errors: [ + { + message: 'name must be required', + }, + ], +} +``` diff --git a/docs/en-US/development/http-api/javascript-sdk.md b/docs/en-US/development/http-api/javascript-sdk.md new file mode 100644 index 000000000..764510834 --- /dev/null +++ b/docs/en-US/development/http-api/javascript-sdk.md @@ -0,0 +1,229 @@ +# JavaScript SDK + +## APIClient + +```ts +class APIClient { + // axios instance + axios: AxiosInstance; + // constructors + constructor(instance?: AxiosInstance | AxiosRequestConfig); + // Client-side requests, support for AxiosRequestConfig and ResourceActionOptions + request, D = any>(config: AxiosRequestConfig | ResourceActionOptions): Promise; + // Get Resources + resource(name: string, of?: any): R; +} +``` + +Initialize instance + +```ts +import axios from 'axios'; +import { APIClient } from '@nocobase/sdk'; + +// Provide AxiosRequestConfig configuration parameters +const api = new APIClient({ + baseURL: 'https://localhost:8000/api', +}); + +// Provide AxiosInstance +const instance = axios.create({ + baseURL: 'https://localhost:8000/api', +}); +const api = new APIClient(instance); +``` + +## Mock + +```ts +import { APIClient } from '@nocobase/sdk'; +import MockAdapter from 'axios-mock-adapter'; + +const api = new APIClient({ + baseURL: 'https://localhost:8000/api', +}); + +const mock = new MockAdapter(api.axios); + +mock.onGet('users:get').reply(200, { + data: { id: 1, name: 'John Smith' }, +}); + +await api.request({ url: 'users:get' }); +``` + +## Auth + +```ts +// Pass token directly +api.auth.token = '123'; +// Or sign in via signIn +api.auth.signIn(); +// Log out and delete the token cache +api.auth.signOut(); +``` + +## Request + +```ts +// url +await api.request({ + url: 'users:list', + // request params + params: { + filter: { + 'email.$includes': 'noco', + }, + }, + // request body + data, +}); + +// resource & action +await api.request({ + resource: 'users', + action: 'list', + // action params + params: { + filter: { + 'email.$includes': 'noco', + }, + page: 1, + }, +}); +``` + +## Resource action + +```ts +await api.resource('collection')[action](); +await api.resource('collection.association', collectionId)[action](); +``` + +## Action API + +```ts +await api.resource('collection').create(); +await api.resource('collection').get(); +await api.resource('collection').list(); +await api.resource('collection').update(); +await api.resource('collection').destroy(); +await api.resource('collection.association', collectionId).create(); +await api.resource('collection.association', collectionId).get(); +await api.resource('collection.association', collectionId).list(); +await api.resource('collection.association', collectionId).update(); +await api.resource('collection.association', collectionId).destroy(); +``` + +### `get` + +```ts +interface Resource { + get: (options?: GetActionOptions) => Promise; +} + +interface GetActionOptions { + filter?: any; + filterByTk?: any; + fields?: string || string[]; + appends?: string || string[]; + expect?: string || string[]; + sort?: string[]; +} +``` + +### `list` + +```ts +interface Resource { + list: (options?: ListActionOptions) => Promise; +} + +interface ListActionOptions { + filter?: any; + filterByTk?: any; + fields?: string || string[]; + appends?: string || string[]; + expect?: string || string[]; + sort?: string[]; + page?: number; + pageSize?: number; + paginate?: boolean; +} +``` + +### `create` + +```ts +interface Resource { + create: (options?: CreateActionOptions) => Promise; +} + +interface CreateActionOptions { + whitelist?: string[]; + blacklist?: string[]; + values?: {[key: sting]: any}; +} +``` + +### `update` + +```ts +interface Resource { + update: (options?: UpdateActionOptions) => Promise; +} + +interface UpdateActionOptions { + filter?: any; + filterByTk?: any; + whitelist?: string[]; + blacklist?: string[]; + values?: {[key: sting]: any}; +} +``` + +### `destroy` + +```ts +interface Resource { + destroy: (options?: DestroyActionOptions) => Promise; +} + +interface DestroyActionOptions { + filter?: any; + filterByTk?: any; +} +``` + +### `move` + +```ts +interface Resource { + move: (options?: MoveActionOptions) => Promise; +} + +interface MoveActionOptions { + sourceId: any; + targetId?: any; + /** @default 'sort' */ + sortField?: any; + targetScope?: {[key: string]: any}; + sticky?: boolean; + method?: 'insertAfter' | 'prepend'; +} +``` + +### `` + +```ts +interface AttachmentResource { + +} + +interface UploadActionOptions { + +} + +api.resource('attachments').upload(); +api.resource('attachments').upload(); +``` diff --git a/docs/en-US/development/http-api/rest-api.md b/docs/en-US/development/http-api/rest-api.md new file mode 100644 index 000000000..cda97cafd --- /dev/null +++ b/docs/en-US/development/http-api/rest-api.md @@ -0,0 +1,184 @@ +# REST API + +NocoBase's HTTP API is a superset of the REST API, and the standard CRUD API also supports the RESTful style. + +## Collection rescources + +--- + +### Create collection + +HTTP API + +```bash +POST /api/:create + +{} # JSON body +``` + +REST API + +```bash +POST /api/ + +{} # JSON body +``` + +### List collection + +HTTP API + +```bash +GET /api/:list +``` + +REST API + +```bash +GET /api/ +``` + +### View collection details + +HTTP API + +```bash +GET /api/:get?filterByTk= +GET /api/:get/ +``` + +REST API + +```bash +GET /api// +``` + +### Update collection + +HTTP API + +```bash +POST /api/:update?filterByTk= + +{} # JSON body + +# Or +POST /api/:update/ + +{} # JSON body +``` + +REST API + +```bash +PUT /api// + +{} # JSON body +``` + +### Delete collection + +HTTP API + +```bash +POST /api/:destroy?filterByTk= +# Or +POST /api/:destroy/ +``` + +REST API + +```bash +DELETE /api// +``` + +## Association resources + +--- + +### Create Association + +HTTP API + +```bash +POST /api///:create + +{} # JSON body +``` + +REST API + +```bash +POST /api/// + +{} # JSON body +``` + +### List Association + +HTTP API + +```bash +GET /api///:list +``` + +REST API + +```bash +GET /api/// +``` + +### View Association details + +HTTP API + +```bash +GET /api///:get?filterByTk= +# Or +GET /api///:get/ +``` + +REST API + +```bash +GET /api///:get/ +``` + +### Update Association + +HTTP API + +```bash +POST /api///:update?filterByTk= + +{} # JSON body + +# Or +POST /api///:update/ + +{} # JSON body +``` + +REST API + +```bash +PUT /api///:update/ + +{} # JSON +``` + +### Delete Association + +HTTP API + +```bash +POST /api///:destroy?filterByTk= +# Or +POST /api///:destroy/ +``` + +REST API + +```bash +DELETE /api//// +``` diff --git a/docs/en-US/development/nocobase-cli.md b/docs/en-US/development/nocobase-cli.md new file mode 100644 index 000000000..bfcefb89a --- /dev/null +++ b/docs/en-US/development/nocobase-cli.md @@ -0,0 +1,310 @@ +--- +order: 2 +--- + +# NocoBase CLI + +NocoBase CLI is designed to help you develop, build, and deploy NocoBase applications. + + + +NocoBase CLI supports both ts-node and node modes + +- ts-node mode (default): used for development environment, supports real-time compilation, but slow response +- node mode: for production environment, fast response, but need to execute `yarn nocobase build` to compile all source code first + + + +## Instructions + +```bash +$ yarn nocobase -h + +Usage: nocobase [command] [options] + +Options: + -h, --help + +Commands: + create-plugin Create plugin scaffolding + console + db:auth Verify that the database connection is successful + db:sync Generate relevant data tables and fields from collections configuration + install Install + start Start the application in the production environment + build Compile and package + clean Delete the compiled files + dev Start the application for the development environment and supports live compilation + doc Documentation development + test Test + umi + upgrade Upgrade + help +``` + +## Use in scaffolding + +The `scripts` in the application scaffolding `package.json` are as follows + +```json +{ + "scripts": { + "dev": "nocobase dev", + "start": "nocobase start", + "clean": "nocobase clean", + "build": "nocobase build", + "test": "nocobase test", + "postinstall": "nocobase umi generate tmp" + } +} +``` + +## Extensions + +NocoBase CLI is built on [commander](https://github.com/tj/commander.js), you can freely extend the command, the extended command can be written in `app/server/index.ts`. + +```ts +const app = new Application(config); + +app.command('hello').action(() => {}); +``` + +Alternatively, write in the plugin. + +```ts +class MyPlugin extends Plugin { + beforeLoad() { + this.app.command('hello').action(() => {}); + } +} +``` + +Terminal runs + +```bash +$ yarn nocobase hello +``` + +## Built-in command line + +Sort by frequency of use + +### `dev` + +Start the application in the development environment and the code is compiled in real time. + + +NocoBase will be installed automatically if it is not installed (refer to the install command) + + +```bash +Usage: nocobase dev [options] + +Options: + -p, --port [port] + --client + --server + -h, --help +``` + +Example + +```bash +# Start application for development environment, live compile +yarn nocobase dev +# Start only the server side +yarn nocobase dev --server +# Start only the client side +yarn nocobase dev --client +``` + +### `start` + +Start the application in a production environment, the code needs to be yarn build. + + + +- NocoBase will be installed automatically if it is not installed (refer to the install command) +- If the source code has been modified, it needs to be repackaged (refer to the build command) + + + +```bash +$ yarn nocobase start -h + +Usage: nocobase start [options] + +Options: + -p, --port + -s, --silent + -h, --help +``` + +Example + +```bash +# Start the application in a production environment +yarn nocobase start +``` + +### `install` + +Install + +```bash +$ yarn nocobase install -h + +Usage: nocobase install [options] + +Options: + -f, --force + -c, --clean + -s, --silent + -l, --lang [lang] + -e, --root-email + -p, --root-password + -n, --root-nickname [rootNickname] + -h, --help +``` + +Example + +```bash +# Initial Installation +yarn nocobase install -l en-US -e admin@nocobase.com -p admin123 +# Delete all data tables of NocoBase and reinstall +yarn nocobase install -f -l en-US -e admin@nocobase.com -p admin123 +# Empty the database and reinstall +yarn nocobase install -c -l en-US -e admin@nocobase.com -p admin123 +``` + + + +Difference between `-f/--force` and `-c/--clean` +- `-f/--force` Delete all data tables of NocoBase +- `-c/--clean` Delete all data tables of the database + + + +### `upgrade` + +Upgrade + +```bash +yarn nocobase upgrade +``` + +### `test` + +jest tests, supports all [jest-cli](https://jestjs.io/docs/cli) options, and extends `-c, --db-clean` support in addition. + +```bash +$ yarn nocobase test -h + +Usage: nocobase test [options] + +Options: + -c, --db-clean Empty the database before running all tests + -h, --help +``` + +Example + +```bash +# Run all test files +yarn nocobase test +# Run all test files in the specified folder +yarn nocobase test packages/core/server +# Run all tests in the specified file +yarn nocobase test packages/core/database/src/__tests__/database.test.ts + +# Empty the database before running tests +yarn nocobase test -c +yarn nocobase test packages/core/server -c +``` + +### `build` + +Before deployed to the production environment, the source code needs to be compiled and packaged. It needs to be rebuilt if there are changes to the code. + +```bash +# All packages +yarn nocobase build +# Specified package +yarn nocobase build app/server app/client +``` + +### `clean` + +Delete the compiled file + +```bash +yarn clean +# Equivalent to +yarn rimraf -rf packages/*/*/{lib,esm,es,dist} +``` + +### `doc` + +Documentation development + +```bash +# Start documentation +yarn doc --lang=en-US # Equivalent to yarn doc dev +# Build the documentation and output it to . /docs/dist/ directory by default +yarn doc build +# View the final result of the document output by dist +yarn doc serve --lang=en-US +``` + +### `db:auth` + +Verify that the database is successfully connected + +```bash +$ yarn nocobase db:auth -h + +Usage: nocobase db:auth [options] + +Options: + -r, --repeat [repeat] Number of reconnections + -h, --help +``` + +### `db:sync` + +Generate data tables and fields via collections configuration + +```bash +$ yarn nocobase db:sync -h + +Usage: nocobase db:sync [options] + +Options: + -f, --force + -h, --help display help for command +``` + +### `umi` + +`app/client` is built based on [umi](https://umijs.org/) and can be used to execute other related commands via `nocobase umi`. + +```bash +# Generate the .umi cache required by the development environment +yarn nocobase umi generate tmp +``` + +### `help` + +The help command, also available with the option parameter, `-h` and `--help` + +```bash +# View all cli +yarn nocobase help +# You can also use -h +yarn nocobase -h +# or --help +yarn nocobase --help +# Option to view the db:sync command +yarn nocobase db:sync -h +``` diff --git a/docs/en-US/development/plugin-development/client/overview.md b/docs/en-US/development/plugin-development/client/overview.md new file mode 100644 index 000000000..4bba659eb --- /dev/null +++ b/docs/en-US/development/plugin-development/client/overview.md @@ -0,0 +1 @@ +# Overview \ No newline at end of file diff --git "a/docs/en-US/development/plugin-development/client/providers/\bapi-client.md" "b/docs/en-US/development/plugin-development/client/providers/\bapi-client.md" new file mode 100644 index 000000000..3dac00645 --- /dev/null +++ "b/docs/en-US/development/plugin-development/client/providers/\bapi-client.md" @@ -0,0 +1 @@ +# APIClient \ No newline at end of file diff --git a/docs/en-US/development/plugin-development/client/providers/acl.md b/docs/en-US/development/plugin-development/client/providers/acl.md new file mode 100644 index 000000000..45cdee8d8 --- /dev/null +++ b/docs/en-US/development/plugin-development/client/providers/acl.md @@ -0,0 +1 @@ +# ACL \ No newline at end of file diff --git a/docs/en-US/development/plugin-development/client/providers/antd.md b/docs/en-US/development/plugin-development/client/providers/antd.md new file mode 100644 index 000000000..a80a47303 --- /dev/null +++ b/docs/en-US/development/plugin-development/client/providers/antd.md @@ -0,0 +1 @@ +# Ant Design \ No newline at end of file diff --git a/docs/en-US/development/plugin-development/client/providers/china-region.md b/docs/en-US/development/plugin-development/client/providers/china-region.md new file mode 100644 index 000000000..3706bbe44 --- /dev/null +++ b/docs/en-US/development/plugin-development/client/providers/china-region.md @@ -0,0 +1 @@ +# ChianRegion \ No newline at end of file diff --git a/docs/en-US/development/plugin-development/client/providers/collection-manager.md b/docs/en-US/development/plugin-development/client/providers/collection-manager.md new file mode 100644 index 000000000..da019d550 --- /dev/null +++ b/docs/en-US/development/plugin-development/client/providers/collection-manager.md @@ -0,0 +1 @@ +# CollectionManager \ No newline at end of file diff --git a/docs/en-US/development/plugin-development/client/providers/i18n.md b/docs/en-US/development/plugin-development/client/providers/i18n.md new file mode 100644 index 000000000..a4f29d977 --- /dev/null +++ b/docs/en-US/development/plugin-development/client/providers/i18n.md @@ -0,0 +1 @@ +# I18n \ No newline at end of file diff --git a/docs/en-US/development/plugin-development/client/providers/route-switch.md b/docs/en-US/development/plugin-development/client/providers/route-switch.md new file mode 100644 index 000000000..3bfc5a330 --- /dev/null +++ b/docs/en-US/development/plugin-development/client/providers/route-switch.md @@ -0,0 +1 @@ +# RouteSwitch \ No newline at end of file diff --git a/docs/en-US/development/plugin-development/client/providers/schema-component.md b/docs/en-US/development/plugin-development/client/providers/schema-component.md new file mode 100644 index 000000000..90d3aa4d8 --- /dev/null +++ b/docs/en-US/development/plugin-development/client/providers/schema-component.md @@ -0,0 +1 @@ +# SchemaComponent diff --git a/docs/en-US/development/plugin-development/client/providers/schema-initializer.md b/docs/en-US/development/plugin-development/client/providers/schema-initializer.md new file mode 100644 index 000000000..bd2e33b59 --- /dev/null +++ b/docs/en-US/development/plugin-development/client/providers/schema-initializer.md @@ -0,0 +1 @@ +# SchemaInitializer diff --git a/docs/en-US/development/plugin-development/index.md b/docs/en-US/development/plugin-development/index.md new file mode 100644 index 000000000..05cf8c1fd --- /dev/null +++ b/docs/en-US/development/plugin-development/index.md @@ -0,0 +1 @@ +# Quick Start diff --git a/docs/en-US/development/plugin-development/server/acl.md b/docs/en-US/development/plugin-development/server/acl.md new file mode 100644 index 000000000..8cd8bbcac --- /dev/null +++ b/docs/en-US/development/plugin-development/server/acl.md @@ -0,0 +1 @@ +# ACL diff --git a/docs/en-US/development/plugin-development/server/app-manager.md b/docs/en-US/development/plugin-development/server/app-manager.md new file mode 100644 index 000000000..76a11afbe --- /dev/null +++ b/docs/en-US/development/plugin-development/server/app-manager.md @@ -0,0 +1 @@ +# AppManager \ No newline at end of file diff --git a/docs/en-US/development/plugin-development/server/cli.md b/docs/en-US/development/plugin-development/server/cli.md new file mode 100644 index 000000000..db3cc6737 --- /dev/null +++ b/docs/en-US/development/plugin-development/server/cli.md @@ -0,0 +1 @@ +# CLI \ No newline at end of file diff --git a/docs/en-US/development/plugin-development/server/database.md b/docs/en-US/development/plugin-development/server/database.md new file mode 100644 index 000000000..4a79ce0cd --- /dev/null +++ b/docs/en-US/development/plugin-development/server/database.md @@ -0,0 +1 @@ +# Database \ No newline at end of file diff --git a/docs/en-US/development/plugin-development/server/events.md b/docs/en-US/development/plugin-development/server/events.md new file mode 100644 index 000000000..b649f948c --- /dev/null +++ b/docs/en-US/development/plugin-development/server/events.md @@ -0,0 +1 @@ +# Event \ No newline at end of file diff --git a/docs/en-US/development/plugin-development/server/i18n.md b/docs/en-US/development/plugin-development/server/i18n.md new file mode 100644 index 000000000..05b5b6193 --- /dev/null +++ b/docs/en-US/development/plugin-development/server/i18n.md @@ -0,0 +1 @@ +# I18n diff --git a/docs/en-US/development/plugin-development/server/middleware.md b/docs/en-US/development/plugin-development/server/middleware.md new file mode 100644 index 000000000..c5033ed0e --- /dev/null +++ b/docs/en-US/development/plugin-development/server/middleware.md @@ -0,0 +1 @@ +# Middleware \ No newline at end of file diff --git a/docs/en-US/development/plugin-development/server/overview.md b/docs/en-US/development/plugin-development/server/overview.md new file mode 100644 index 000000000..4bba659eb --- /dev/null +++ b/docs/en-US/development/plugin-development/server/overview.md @@ -0,0 +1 @@ +# Overview \ No newline at end of file diff --git a/docs/en-US/development/plugin-development/server/plugin-manager.md b/docs/en-US/development/plugin-development/server/plugin-manager.md new file mode 100644 index 000000000..b98d016d5 --- /dev/null +++ b/docs/en-US/development/plugin-development/server/plugin-manager.md @@ -0,0 +1 @@ +# PluginManager \ No newline at end of file diff --git a/docs/en-US/development/plugin-development/server/resourcer.md b/docs/en-US/development/plugin-development/server/resourcer.md new file mode 100644 index 000000000..5c0d22865 --- /dev/null +++ b/docs/en-US/development/plugin-development/server/resourcer.md @@ -0,0 +1 @@ +# Resource & Action \ No newline at end of file diff --git a/docs/en-US/faq.md b/docs/en-US/faq.md new file mode 100644 index 000000000..a39c1bc0d --- /dev/null +++ b/docs/en-US/faq.md @@ -0,0 +1,2 @@ +# FAQ + diff --git a/docs/en-US/getting-started/installation/create-nocobase-app.md b/docs/en-US/getting-started/installation/create-nocobase-app.md new file mode 100644 index 000000000..4f15d0a69 --- /dev/null +++ b/docs/en-US/getting-started/installation/create-nocobase-app.md @@ -0,0 +1,86 @@ +# `create-nocobase-app` + +## 0. Prerequisites + +Make sure you have: + +- Node.js 14+, Yarn 1.22.x installed +- Configured and started the required database SQLite 3.x, MySQL 8.x, PostgreSQL 10.x choose one + +Please make sure you have Node.js 14.x or above installed. You can download and install the latest LTS version from the official website. It is recommended to use nvm (or nvm-windows for Win systems) to manage Node.js versions if you plan to work with Node.js for a long time. + +```bash +$ node -v + +v16.13.2 +``` + +Install yarn package manager + +```bash +$ npm install --global yarn +$ yarn -v + +1.22.10 +``` + +## 1. Create a NocoBase project + +```bash +# SQLite +yarn create nocobase-app my-nocobase-app -d sqlite +# MySQL +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3356 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase +# PostgreSQL +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase +``` + +## 2. Switch to the project directory + +```bash +cd my-nocobase-app +``` + +## 3. Install dependencies + +📢 This next step may take more than ten minutes due to network environment, system configuration, and other factors. + +```bash +yarn install +``` + +## 4. Install NocoBase + +```bash +yarn nocobase install --lang=zh-CN +``` + +## 5. Start NocoBase + +Development + +```bash +yarn dev +``` + +Production + +```bash +yarn start +``` + +Note: For production, if the code has been modified, you need to execute `yarn build` and restart NocoBase. + +## 6. Log in to NocoBase + +Open [http://localhost:13000](http://localhost:13000) in a web browser. The initial account and password are `admin@nocobase.com` and `admin123`. diff --git a/docs/en-US/getting-started/installation/docker-compose.md b/docs/en-US/getting-started/installation/docker-compose.md new file mode 100644 index 000000000..3e748f762 --- /dev/null +++ b/docs/en-US/getting-started/installation/docker-compose.md @@ -0,0 +1,52 @@ +# Docker (👍 Recommended) + +## 0. Prerequisites + +⚡⚡ Please make sure you have installed [Docker](https://docs.docker.com/get-docker/) + +## 1. Download NocoBase + +Download with Git (or Download Zip,and extract it to the nocobase directory) + +```bash +git clone https://github.com/nocobase/nocobase.git nocobase +``` + +## 2. Select database (choose one) + +Supports SQLite, MySQL, PostgreSQL + +```bash +# SQLite +cd nocobase/docker/app-sqlite +# MySQL +cd nocobase/docker/app-mysql +# PostgreSQL +cd nocobase/docker/app-postgres +``` + +## 3. Install and start NocoBase + +It may take dozens of seconds + +```bash +# run in the background +$ docker-compose up -d +# view app logs +$ docker-compose logs app + +app-sqlite-app-1 | nginx started +app-sqlite-app-1 | yarn run v1.22.15 +app-sqlite-app-1 | $ cross-env DOTENV_CONFIG_PATH=.env node -r dotenv/config packages/app/server/lib/index.js install -s +app-sqlite-app-1 | Done in 2.72s. +app-sqlite-app-1 | yarn run v1.22.15 +app-sqlite-app-1 | $ pm2-runtime start --node-args="-r dotenv/config" packages/app/server/lib/index.js -- start +app-sqlite-app-1 | 2022-04-28T15:45:38: PM2 log: Launching in no daemon mode +app-sqlite-app-1 | 2022-04-28T15:45:38: PM2 log: App [index:0] starting in -fork mode- +app-sqlite-app-1 | 2022-04-28T15:45:38: PM2 log: App [index:0] online +app-sqlite-app-1 | 🚀 NocoBase server running at: http://localhost:13000/ +``` + +## 4. Log in to NocoBase + +Open [http://localhost:13000](http://localhost:13000) in a web browser. The initial account and password are `admin@nocobase.com` and `admin123`. diff --git a/docs/en-US/getting-started/installation/git-clone.md b/docs/en-US/getting-started/installation/git-clone.md new file mode 100644 index 000000000..ba259884a --- /dev/null +++ b/docs/en-US/getting-started/installation/git-clone.md @@ -0,0 +1,64 @@ +# Git source code + +## 0. Prerequisites + +Make sure you have: + +- Git, Node.js 14+, Yarn 1.22.x installed +- Configured and started the required database SQLite 3.x, MySQL 8.x, PostgreSQL 10.x choose one + +## 1. Download with Git + +```bash +git clone https://github.com/nocobase/nocobase.git my-nocobase-app +``` + +## 2. Switch to the project directory + +```bash +cd my-nocobase-app +``` + +## 3. Install dependencies + +```bash +yarn install +``` + +## 4. Set environment variables + +The environment variables required by NocoBase are stored in the root `.env` file, modify the environment variables according to the actual situation, if you don't know how to change them, [click here for environment variables description](./development/env.md), or you can leave it as default. + +```bash +# Using sqlite database +DB_DIALECT=sqlite +# sqlite file path +DB_STORAGE=storage/db/nocobase.sqlite +``` + +## 5. Install NocoBase + +```bash +yarn nocobase install --lang=zh-CN +``` + +## 6. Start NocoBase + +Development + +```bash +yarn dev +``` + +Production + +```bash +# Compile +yarn build +# Start +yarn start +``` + +## 7. Log in to NocoBase + +Open [http://localhost:13000](http://localhost:13000) in a web browser. The initial account and password are `admin@nocobase.com` and `admin123`. diff --git a/docs/en-US/getting-started/installation/overview.md b/docs/en-US/getting-started/installation/overview.md new file mode 100644 index 000000000..c029d7ec9 --- /dev/null +++ b/docs/en-US/getting-started/installation/overview.md @@ -0,0 +1,23 @@ +# Overview + +## Installation Methods + +NocoBase supports three installation methods. + +- [Docker (recommended)](./docker-compose.md) +- [create-nocobase-app](./create-nocobase-app.md) +- [Git source code](./git-clone.md) + +## How to choose + +**Docker (recommended)**: + +Suitable for no-code scenarios, no code to write. When upgrading, just download the latest image and reboot. + +**create-nocobase-app**: + +The business code of the project is completely independent and supports low-code development. + +**Git source code**: + +If you want to experience the latest unreleased version, or want to participate in the contribution, you need to make changes and debug on the source code, it is recommended to choose this installation method, which requires a high level of development skills, and if the code has been updated, you can git pull the latest code. diff --git a/docs/en-US/getting-started/upgrading.md b/docs/en-US/getting-started/upgrading.md new file mode 100644 index 000000000..8cd7b924f --- /dev/null +++ b/docs/en-US/getting-started/upgrading.md @@ -0,0 +1,55 @@ +# Upgrading + +Make sure to back up your database before upgrading + +## Docker + +Switch to the project directory + +```bash +# SQLite +cd nocobase/docker/app-sqlite +# MySQL +cd nocobase/docker/app-mysql +# PostgreSQL +cd nocobase/docker/app-postgres +``` + +Use `docker-compose` to stop, delete the application, and download the latest image + +```bash +# Stop the app +docker-compose stop app +# Delete the app +docker-compose rm app +# Download the latest image and start it +docker-compose up -d app +# Check the status of the app process +docker-compose logs app +``` + +## create-nocobase-app + +Execute the `nocobase upgrad` command + +```bash +# Switch to the project directory +cd my-nocobase-app +# Execute the update command +yarn nocobase upgrade +# Start +yarn start +``` + +## Git source code + +```bash +# Switch to the project directory +cd my-nocobase-app +# Pull latest source code +git pull +# Execute the update command +yarn nocobase upgrade +# Start +yarn start +``` diff --git a/docs/en-US/index.md b/docs/en-US/index.md new file mode 100644 index 000000000..1b0051ea6 --- /dev/null +++ b/docs/en-US/index.md @@ -0,0 +1,48 @@ +# Introduction + +![](https://nocobase.oss-cn-beijing.aliyuncs.com/bbcedd403d31cd1ccc4e9709581f5c2f.png) + +## What is NocoBase + +NocoBase is a scalability-first, open-source no-code development platform. No programming required, build your own collaboration platform, management system with NocoBase in minutes. + +Homepage: +https://www.nocobase.com/ + +Online Demo: +https://demo.nocobase.com/new + +Contact Us: +hello@nocobase.com + +## Features + +- **Open source and free** + - Unrestricted commercial use under the Apache-2.0 license + - Full code ownership, private deployment, private and secure data + - Free to expand and develop for actual needs + - Good ecological support +- **Strong no-code capability** + - Data Model + - Create independent data models using dozens of field types such as text, date, number, attachment, option, icon, etc., and various association relationships such as one-to-one, one-to-many, many-to-many, etc. + - Block + - Display and manipulate data within a page using a free combination of block types such as tables, forms, kanban, calendars, details, etc. + - ACL + - Role-based control of user's system configuration rights, data action rights and menu access rights. + - Workflow + - Repetitive tasks are replaced by automation to increase efficiency. Manual approval is required for important matters. + - Menu + - You can group menus, support adding pages and links, and support unlimited submenus. + - Action + - Support filtering, exporting, adding, deleting, modifying, viewing and other operations to process data, which can be extended to more types. +- **Built for extended development** + - Microkernel architecture, flexible and easy to extend, with a robust plug-in system + - Node.js-based, with popular frameworks and technologies, including Koa, Sequelize, React, Formily, Ant Design, etc. + - Progressive development, easy for getting-started, friendly to newcomers + - No binding, no strong dependencies, can be used in any combination or extensions, can be used in existing projects + +## Architecture + +![](https://www.nocobase.com/images/NocoBaseMindMapLite.png) + +[Click here to view the full image](https://www.nocobase.com/images/NocoBaseMindMap.png) diff --git a/docs/en-US/release-notes.md b/docs/en-US/release-notes.md new file mode 100644 index 000000000..1ba16278b --- /dev/null +++ b/docs/en-US/release-notes.md @@ -0,0 +1,71 @@ +# Release Notes + +## Ready for release + +### New features +- Packaging tool `@nocobase/build` +- CLI `@nocobase/cli` +- devtools `@nocobase/devtools` +- JavaScript SDK `@nocobase/sdk` +- Documents(v0.7) + +### Bug fixes & improvements +- `@nocobase/preset-nocobase` +- create scaffolding `create-nocobase-app` +- Documents theme `dumi-theme-nocobase` + +## 2022/05/14 ~ v0.7.0-alpha.34 + +- feat: add plugins:getPinned action api +- fix(plugin workflow): cannot get job result properties (#382) +- feat: exist on server start throw error (#374) +- chore: application options (#375) +- fix: not in operator with null value record (#377) + +## 2022/05/13 ~ v0.7.0-alpha.33 + +- fix: link-to field data scope error (#1337) +- feat(plugin workflow): revisions (#379) +- fix(database): fix option-parser include list index (#371) +- fix(plugin-worklfow): fix duplicated description in fields values (#368) +- fix(database): fix type and transaction in repository (#366) +- fix(plugin workflow): fix transaction of execution (#364) + +## 2022/05/05 ~ v0.7.0-alpha.30 + +- fix(client): upgrade formily packages +- fix(client): setFormValueChanged must be defined + +## 2022/05/01 ~ v0.7.0-alpha.27 + +- fix: use wrapper when greater than one column +- fix: props for CreateFormBlockInitializers +- fix: add schema initializer icon +- fix: plugin workflow (#349) +- fix: db:sync not working (#348) +- fix(plugin-workflow): fix trigger bind logic to avoid duplication (#347) +- fix(plugin workflow) (#346) +- fix: action open mode +- fix: menu url style (#344) +- feat: action loading +- fix: compile the label field +- fix: invalid drag and drop sort + +## 2022/04/25 ~ v0.7.0-alpha.16 + +- fix: cannot find module mkdirp (#330) +- fix(plugin workflow): UX issues (#329) +- fix(plugin-file-manager): test failed +- fix(app-server): dist options + +## 2022/04/25 ~ v0.7.0-alpha.0 + +- Alpha Version + +## 2021/10/07 ~ v0.5.0 + +- The second preview version + +## 2021/04/07 ~ v0.4.0 + +- The first preview version diff --git a/docs/en-US/roadmap.md b/docs/en-US/roadmap.md new file mode 100644 index 000000000..b4cd1efc4 --- /dev/null +++ b/docs/en-US/roadmap.md @@ -0,0 +1,31 @@ +# Roadmap + +## Iterating + +- `core` Roles & Permissions +- `core` Upgrading +- `core` Relationships +- `plugin` Workflow +- `doc` Development Doc + +## Developing + +- `core` Custom actions +- `plugin` Action logs +- `plugin` Database connection + +## Planning + +- `ui` Mobile version +- `plugin` Export +- `plugin` Open API +- `core` Plugins manager + +## Future + +- `plugin` Approval +- `plugin` Full-text search +- `plugin` Shared pages +- `plugin` Reference and copy data from other tables +- `plugin` Formula +- `plugin` Data visualization diff --git a/docs/en-US/thanks.md b/docs/en-US/thanks.md new file mode 100644 index 000000000..325efc399 --- /dev/null +++ b/docs/en-US/thanks.md @@ -0,0 +1,12 @@ +# Acknowledgements + +NocoBase uses excellent and proven open source products, to whom we express our sincere gratitude. + +- [Ant Design](https://ant.design/) +- [Dnd Kit](https://dndkit.com/) +- [Formily](https://github.com/alibaba/formily) +- [I18next](https://www.i18next.com/) +- [Koa](https://koajs.com/) +- [React](https://reactjs.org/) +- [Sequelize](https://sequelize.org/) +- [UmiJS](https://umijs.org/) diff --git a/docs/en-US/user-manual/advanced-guide/actions.md b/docs/en-US/user-manual/advanced-guide/actions.md new file mode 100644 index 000000000..f48d91130 --- /dev/null +++ b/docs/en-US/user-manual/advanced-guide/actions.md @@ -0,0 +1,3 @@ +# Actions + +TO DO \ No newline at end of file diff --git a/docs/en-US/user-manual/advanced-guide/blocks.md b/docs/en-US/user-manual/advanced-guide/blocks.md new file mode 100644 index 000000000..b3aba1d55 --- /dev/null +++ b/docs/en-US/user-manual/advanced-guide/blocks.md @@ -0,0 +1,63 @@ +# Blocks + +Blocks are views that are used to display and manipulate data. Blocks can be placed in pages and popups. A block consists of three parts. + +1. content area: the body of the block +2. action area: various action buttons can be placed to manipulate the block data +3. configuration area: buttons for operating the block configuration + +![6.block.jpg](./blocks/6.block.jpg) + +## Add block + +Enter the UI Editor mode and click the Add block button on the page and in the pop-up window to add the block. The options are divided into 4 steps. + +1. Select block type: Currently available block types include Table, Form, Details, Calendar, Kanban, Markdown +2. Select Collection: All collections will be listed here +3. Choose the creation method: create a blank block, or duplicate a block template , or reference a block template +4. Select Template: If you selected Create from Template in step 3, select the template in step 4 + +![6.block-add.jpg](./blocks/6.block-add.jpg) + +## Configure Blocks + +The configuration of blocks consists of three elements. + +- Configure block content +- Configure block actions +- Configure block properties + +### Configure block content + +Take the table block as an example, the content of the block is the columns to be displayed in the table. Click Configure columns to configure the columns to be displayed. + +![6.block-content.gif](./blocks/6.block-content.gif) + +### Configure block actions + +Take table block as an example, there are filter, add, delete, view, edit, customize and other actions available. Click the Configure actions button to configure the actions. Each of the action buttons can be configured for their own properties. + +![6.block-content.gif](./blocks/6.block-content%201.gif) + +### Configure block properties + +Move the cursor to the upper right corner of the block and you will see the block configuration button. Using the table block as an example, the following properties can be configured. + +- Drag & drop sorting +- Set the data scope +- Set default sorting rules +- Records per page + +![6.collection-setting.gif](./blocks/6.collection-setting.gif) + +## Block Types + +Currently NocoBase supports the following types of blocks. + +- Table +- Form +- Details +- Kanban +- Calendar +- Related Data +- Markdown \ No newline at end of file diff --git a/docs/en-US/user-manual/advanced-guide/blocks/6.block-add.jpg b/docs/en-US/user-manual/advanced-guide/blocks/6.block-add.jpg new file mode 100755 index 000000000..cd609413f Binary files /dev/null and b/docs/en-US/user-manual/advanced-guide/blocks/6.block-add.jpg differ diff --git a/docs/en-US/user-manual/advanced-guide/blocks/6.block-content 1.gif b/docs/en-US/user-manual/advanced-guide/blocks/6.block-content 1.gif new file mode 100755 index 000000000..8f79be9fa Binary files /dev/null and b/docs/en-US/user-manual/advanced-guide/blocks/6.block-content 1.gif differ diff --git a/docs/en-US/user-manual/advanced-guide/blocks/6.block-content.gif b/docs/en-US/user-manual/advanced-guide/blocks/6.block-content.gif new file mode 100755 index 000000000..8f79be9fa Binary files /dev/null and b/docs/en-US/user-manual/advanced-guide/blocks/6.block-content.gif differ diff --git a/docs/en-US/user-manual/advanced-guide/blocks/6.block.jpg b/docs/en-US/user-manual/advanced-guide/blocks/6.block.jpg new file mode 100755 index 000000000..b609af5a0 Binary files /dev/null and b/docs/en-US/user-manual/advanced-guide/blocks/6.block.jpg differ diff --git a/docs/en-US/user-manual/advanced-guide/blocks/6.collection-setting.gif b/docs/en-US/user-manual/advanced-guide/blocks/6.collection-setting.gif new file mode 100755 index 000000000..d969e34e8 Binary files /dev/null and b/docs/en-US/user-manual/advanced-guide/blocks/6.collection-setting.gif differ diff --git a/docs/en-US/user-manual/advanced-guide/collections.md b/docs/en-US/user-manual/advanced-guide/collections.md new file mode 100644 index 000000000..1b20a6835 --- /dev/null +++ b/docs/en-US/user-manual/advanced-guide/collections.md @@ -0,0 +1,42 @@ +# Collections + +Before developing a system, we usually have to abstract the business and build a data model. In NocoBase, the concept of a data collection is similar to that of a table in a relational database. + +Click the "Collections & Fields" button to enter the configuration interface. Here, you can add, edit and delete data collections. + +![4.collections.gif](./collections/4.collections.gif) + +## Field Types + +- Basic + - Single line text + - Long text + - Phone + - Email + - Number + - Percent + - Password + - Icon +- Choices + - Checkbox + - Single select + - Multiple select + - Radio group + - Checkbox group + - China region +- Media + - Attachment + - Markdown + - Rich Text +- Date & Time + - Date + - Time +- Relationship Type + - Link to + - Sub-table +- System Info + - ID + - Created at + - Last updated at + - Created by + - Last updated by \ No newline at end of file diff --git a/docs/en-US/user-manual/advanced-guide/collections/4.collections.gif b/docs/en-US/user-manual/advanced-guide/collections/4.collections.gif new file mode 100755 index 000000000..dd0f01a4d Binary files /dev/null and b/docs/en-US/user-manual/advanced-guide/collections/4.collections.gif differ diff --git a/docs/en-US/user-manual/advanced-guide/file-storages.md b/docs/en-US/user-manual/advanced-guide/file-storages.md new file mode 100644 index 000000000..56970cc4d --- /dev/null +++ b/docs/en-US/user-manual/advanced-guide/file-storages.md @@ -0,0 +1,11 @@ +# File Storages + +NocoBase file storage currently supports the following three methods + +- Local storage +- Aliyun OSS +- Amazon S3 + +Click File storage to enter the configuration interface and add the appropriate information. + +![8.storage.gif](./file-storages/8.storage.gif) \ No newline at end of file diff --git a/docs/en-US/user-manual/advanced-guide/file-storages/8.storage.gif b/docs/en-US/user-manual/advanced-guide/file-storages/8.storage.gif new file mode 100755 index 000000000..c9edfa8f9 Binary files /dev/null and b/docs/en-US/user-manual/advanced-guide/file-storages/8.storage.gif differ diff --git a/docs/en-US/user-manual/advanced-guide/functional-zoning.md b/docs/en-US/user-manual/advanced-guide/functional-zoning.md new file mode 100644 index 000000000..13b7c75b1 --- /dev/null +++ b/docs/en-US/user-manual/advanced-guide/functional-zoning.md @@ -0,0 +1,9 @@ +# Functional zoning + +NocoBase has a built-in layout template by default, and the interface of this layout template is divided into three main areas. + +1. Configuration entry area. Users with permissions can see the UI Editor, Collections & Fields, Roles and Permissions, block templates, Workflows, and other extended configuration options here. +2. Menu area. At the top is the first level menu, and on the left side are the menus for the second level and lower tiers. Each menu item can be configured as a menu group, page, or link. +3. Block container. This is the block container for the page, in which various blocks can be placed. + +![3.zone.jpg](./functional-zoning/3.zone.jpg) diff --git a/docs/en-US/user-manual/advanced-guide/functional-zoning/3.zone.jpg b/docs/en-US/user-manual/advanced-guide/functional-zoning/3.zone.jpg new file mode 100755 index 000000000..9507d2c7e Binary files /dev/null and b/docs/en-US/user-manual/advanced-guide/functional-zoning/3.zone.jpg differ diff --git a/docs/en-US/user-manual/advanced-guide/menus.md b/docs/en-US/user-manual/advanced-guide/menus.md new file mode 100644 index 000000000..08ae51210 --- /dev/null +++ b/docs/en-US/user-manual/advanced-guide/menus.md @@ -0,0 +1,32 @@ +# Menus + +The default menu location for NocoBase is at the top and on the left. The top is the first level menu and the left side is the menu for the second level and lower levels. + +Three types of menu items are supported. + +- Menu groups +- Pages +- Links + +Once you enter the UI Editor mode, you can add and edit menus, as well as sort menu items. + +## Add Menu Item + +![5.menu-add.jpg](./menus/5.menu-add.jpg) + +Click Add menu item to select the type to add. Support infinite level submenu. + +## Configure and Sort + +Move the cursor over the menu item and the Sort and Configure buttons will appear in the upper right corner. Press and hold the Sort button to drag and drop the sorting. + +Configurations that are operable on menu items: + +- Edit +- Move to +- Insert before +- Insert after +- Insert Inner +- Delete + +![5.menu-edit.jpg](./menus/5.menu-edit.jpg) \ No newline at end of file diff --git a/docs/en-US/user-manual/advanced-guide/menus/5.menu-add.jpg b/docs/en-US/user-manual/advanced-guide/menus/5.menu-add.jpg new file mode 100755 index 000000000..da89a6f93 Binary files /dev/null and b/docs/en-US/user-manual/advanced-guide/menus/5.menu-add.jpg differ diff --git a/docs/en-US/user-manual/advanced-guide/menus/5.menu-edit.jpg b/docs/en-US/user-manual/advanced-guide/menus/5.menu-edit.jpg new file mode 100755 index 000000000..0252465f7 Binary files /dev/null and b/docs/en-US/user-manual/advanced-guide/menus/5.menu-edit.jpg differ diff --git a/docs/en-US/user-manual/advanced-guide/plugins.md b/docs/en-US/user-manual/advanced-guide/plugins.md new file mode 100644 index 000000000..779d515c6 --- /dev/null +++ b/docs/en-US/user-manual/advanced-guide/plugins.md @@ -0,0 +1 @@ +# Plugins diff --git a/docs/en-US/user-manual/advanced-guide/plugins/Workflow 7229c53cffc8429dbf7acb58cac90a76.md b/docs/en-US/user-manual/advanced-guide/plugins/Workflow 7229c53cffc8429dbf7acb58cac90a76.md new file mode 100755 index 000000000..d9afb34e2 --- /dev/null +++ b/docs/en-US/user-manual/advanced-guide/plugins/Workflow 7229c53cffc8429dbf7acb58cac90a76.md @@ -0,0 +1,3 @@ +# Workflow + +TO DO \ No newline at end of file diff --git a/docs/en-US/user-manual/advanced-guide/roles-permissions.md b/docs/en-US/user-manual/advanced-guide/roles-permissions.md new file mode 100644 index 000000000..1a9001f27 --- /dev/null +++ b/docs/en-US/user-manual/advanced-guide/roles-permissions.md @@ -0,0 +1,3 @@ +# Roles & Permissions + +TO DO \ No newline at end of file diff --git a/docs/en-US/user-manual/advanced-guide/system-settings.md b/docs/en-US/user-manual/advanced-guide/system-settings.md new file mode 100644 index 000000000..c9fc3da68 --- /dev/null +++ b/docs/en-US/user-manual/advanced-guide/system-settings.md @@ -0,0 +1,10 @@ +# System Settings + +Click System settings, the properties that can be configured include: + +- System title +- Logo +- Language +- Allow sign up + +![9.system.gif](./system-settings/9.system.gif) \ No newline at end of file diff --git a/docs/en-US/user-manual/advanced-guide/system-settings/9.system.gif b/docs/en-US/user-manual/advanced-guide/system-settings/9.system.gif new file mode 100755 index 000000000..e1d26b471 Binary files /dev/null and b/docs/en-US/user-manual/advanced-guide/system-settings/9.system.gif differ diff --git a/docs/en-US/user-manual/advanced-guide/tabs.md b/docs/en-US/user-manual/advanced-guide/tabs.md new file mode 100644 index 000000000..5ede09e00 --- /dev/null +++ b/docs/en-US/user-manual/advanced-guide/tabs.md @@ -0,0 +1,9 @@ +# Tabs + +In a single record page or popup, you can add multiple tabs and add different blocks to each tab to display different content and actions. For example, in a customer information popup, add 3 tabs to display customer's personal information, order history, customer reviews. + +![7.tabs.gif](./tabs/7.tabs.gif) + +Or, in an order record to be shipped, place a form block in the first tab for quick shipping, a block of associated data in the second tab to display the order items for the current order, and an order details block in the third tab. + +![7.tabs-2.gif](./tabs/7.tabs-2.gif) \ No newline at end of file diff --git a/docs/en-US/user-manual/advanced-guide/tabs/7.tabs-2.gif b/docs/en-US/user-manual/advanced-guide/tabs/7.tabs-2.gif new file mode 100755 index 000000000..3699ad9e7 Binary files /dev/null and b/docs/en-US/user-manual/advanced-guide/tabs/7.tabs-2.gif differ diff --git a/docs/en-US/user-manual/advanced-guide/tabs/7.tabs.gif b/docs/en-US/user-manual/advanced-guide/tabs/7.tabs.gif new file mode 100755 index 000000000..df7c895aa Binary files /dev/null and b/docs/en-US/user-manual/advanced-guide/tabs/7.tabs.gif differ diff --git a/docs/en-US/user-manual/introduction/5-minutes-to-get-started.md b/docs/en-US/user-manual/introduction/5-minutes-to-get-started.md new file mode 100644 index 000000000..79140da38 --- /dev/null +++ b/docs/en-US/user-manual/introduction/5-minutes-to-get-started.md @@ -0,0 +1,91 @@ +# 5 minutes to get started + +Let's take 5 minutes to build an order management system using NocoBase. + +## 1. Create data collections and fields + +In this order management system, we need to have the information of `Customers`,`Products`,`Orders` which are interrelated with each other. We need to create 4 data tables and their fields as follows: + +- Customers + - Name + - Birthday + - Gender + - Phone + - Orders (All orders purchased, data from `Orders`, each customer data contains multiple order data) +- Products + - Product name + - Description + - Images + - Price + - Order Details (In which orders the product was purchased, data from `Order Details`, each product data belongs to multiple order details data) +- Orders + - Serial number + - Total + - Note + - Address + - Customer (Customers who own the order, data from `Customers`, each order data belongs to a customer data) + - Order details (The products in the order, data from `Order Details`, each order data contains multiple order details data) +- Order Details + - Order (The order to which the detail belongs, data from `Orders`, each order detail data belongs to an order data) + - Product (The products contained in this detail, data from `Products`, each order detail data contains a product data) + - Quantity + +Where the fields with underscores are relational fields, associated to other data tables. + +Next, click the "Collections & Fields" button to enter the Configuration screen and create the first Collection `Customers`. + +![1.customers.gif](./5-minutes-to-get-started/1.customers.gif) + +Then click on "Configure fields" to add a name field for `Customers`, which is a Single line text type. + +![2.field.gif](./5-minutes-to-get-started/2.field.gif) + +In the same way, add Birthday, Gender, and Phone for `Customers`, which are the Datetime type, Radio group type, and Phone type respectively. + +![1.fields.jpg](./5-minutes-to-get-started/1.fields.jpg) + +In the same way, create Collections `Products`, `Orders`, `Order Details` and their fields. + +![1.collections.jpg](./5-minutes-to-get-started/1.collections.jpg) + + + +In this case, for the relationship fields, we have to select the Link to type, thus creating an association between the data collections. In this example, we associate `Products` with `Orders` and use `Order Details` as an junction collection. + +![1.relation.jpg](./5-minutes-to-get-started/1.relation.jpg) + +Once the data collections and fields are created, we start making the interface. + +## 2. Configure menus and pages + +We need three pages for customers, orders, and products to display and manage our data. + +Click the UI Editor button to enter the interface configuration mode. In this mode, we can add menu items, add pages, and arrange blocks within the pages. + +![1.editor.gif](./5-minutes-to-get-started/1.editor.gif) + +Click Add menu item, add menu groups "Customers" and "Orders & Products", then add submenu pages "All Orders" and "Products". + +![1.menu.gif](./5-minutes-to-get-started/1.menu.gif) + +After adding menus and pages, we can add and configure blocks within the pages. + +## 3. Adding and Configuring Blocks + +NocoBase currently supports table, kanban, calendar, form, details, and other types of blocks that present data from a data collection and allow manipulation of the data. Obviously, customers, orders, and products are suitable for displaying and manipulating in a table block. + +We add a table block to the "All Orders" page, select Collection `Orders` as the data source, and configure the columns to be displayed for this table block. + +![1.block.gif](./5-minutes-to-get-started/1.block.gif) + +Configure actions for this table block, including filter, add, delete, view, and edit. + +![1.action.gif](./5-minutes-to-get-started/1.action.gif) + +Configure form and detail blocks for add, edit, view actions. + +![1.action-block.gif](./5-minutes-to-get-started/1.action-block.gif) + +Then, lay out the form blocks on the Products and Customers pages with the same method. When you are done, exit the UI Editor mode and enter the usage mode, and a simple order management system is completed. + +![1.finished.gif](./5-minutes-to-get-started/1.finished.gif) \ No newline at end of file diff --git a/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.action-block.gif b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.action-block.gif new file mode 100755 index 000000000..db4d312de Binary files /dev/null and b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.action-block.gif differ diff --git a/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.action.gif b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.action.gif new file mode 100755 index 000000000..f8a8f2ba6 Binary files /dev/null and b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.action.gif differ diff --git a/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.block.gif b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.block.gif new file mode 100755 index 000000000..b2cbbcb79 Binary files /dev/null and b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.block.gif differ diff --git a/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.collections.jpg b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.collections.jpg new file mode 100755 index 000000000..a03de2c37 Binary files /dev/null and b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.collections.jpg differ diff --git a/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.customers.gif b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.customers.gif new file mode 100755 index 000000000..eafca0b67 Binary files /dev/null and b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.customers.gif differ diff --git a/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.editor.gif b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.editor.gif new file mode 100755 index 000000000..d5e7a84df Binary files /dev/null and b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.editor.gif differ diff --git a/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.fields.jpg b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.fields.jpg new file mode 100755 index 000000000..79195e552 Binary files /dev/null and b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.fields.jpg differ diff --git a/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.finished.gif b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.finished.gif new file mode 100755 index 000000000..be301d4ea Binary files /dev/null and b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.finished.gif differ diff --git a/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.menu.gif b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.menu.gif new file mode 100755 index 000000000..d1f43c62a Binary files /dev/null and b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.menu.gif differ diff --git a/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.relation.jpg b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.relation.jpg new file mode 100755 index 000000000..8f5bce152 Binary files /dev/null and b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/1.relation.jpg differ diff --git a/docs/en-US/user-manual/introduction/5-minutes-to-get-started/2.field.gif b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/2.field.gif new file mode 100755 index 000000000..c544c710a Binary files /dev/null and b/docs/en-US/user-manual/introduction/5-minutes-to-get-started/2.field.gif differ diff --git a/docs/en-US/user-manual/introduction/important-features.md b/docs/en-US/user-manual/introduction/important-features.md new file mode 100644 index 000000000..9eb650f64 --- /dev/null +++ b/docs/en-US/user-manual/introduction/important-features.md @@ -0,0 +1,19 @@ +# Important Features + +## 1. Separate "data structure" and "user interface" + +Most form-, table-, or process-driven codeless products create data structures directly in the user interface, such as Airtable, where adding a new column to a table is adding a new field. This has the advantage of simplicity of use, but the disadvantage of limited functionality and flexibility to meet the needs of more complex scenarios. + +NocoBase adopts the design idea of separating the data structure from the user interface, allowing you to create any number of blocks (data views) for the data collections, with different type, styles, content, and actions in each block. This takes into account the simplicity of codeless operation, but also the flexibility of native development. + +![2.collection-block.png](./important-features/2.collection-block.png) + +## 2. Separate "system configuration" and "system usage" + +NocoBase is used to develop relatively complex business systems. In these scenarios, we want the system developers and the system users to be different roles. The user sees a mature, well-designed system, like a product developed natively, rather than a rigid, drag-and-drop free system that can be modified at any time; while the developer can quickly develop the system using a WYSIWYG approach. + +![2.user-root.gif](./important-features/2.user-root.gif) + +## 3. Everything is plugins + +NocoBase adopts plugin architecture, all new features can be implemented by developing and installing plugins. In the future, we will build a plug-in marketplace where extending functionality is as easy as installing an APP on your phone. diff --git a/docs/en-US/user-manual/introduction/important-features/2.collection-block.png b/docs/en-US/user-manual/introduction/important-features/2.collection-block.png new file mode 100755 index 000000000..7389064cb Binary files /dev/null and b/docs/en-US/user-manual/introduction/important-features/2.collection-block.png differ diff --git a/docs/en-US/user-manual/introduction/important-features/2.user-root.gif b/docs/en-US/user-manual/introduction/important-features/2.user-root.gif new file mode 100755 index 000000000..92d668c14 Binary files /dev/null and b/docs/en-US/user-manual/introduction/important-features/2.user-root.gif differ diff --git a/docs/en-US/user-manual/introduction/why-nocobase.md b/docs/en-US/user-manual/introduction/why-nocobase.md new file mode 100644 index 000000000..8452e5027 --- /dev/null +++ b/docs/en-US/user-manual/introduction/why-nocobase.md @@ -0,0 +1,9 @@ +# Why NocoBase + +NocoBase is designed for you if you have the following needs. + +- Develop an internal management system +- Meet most of your business needs with codeless development +- Extremely easy to extend to meet your individual needs +- Private deployment with full control of code and data +- Free to use or you can pay for more technical support \ No newline at end of file diff --git a/docs/en-US/who.md b/docs/en-US/who.md new file mode 100644 index 000000000..9030644f2 --- /dev/null +++ b/docs/en-US/who.md @@ -0,0 +1,10 @@ +# Who is NocoBase for + +NocoBase is designed for you if you have the following needs. + +- Develop an internal management system +- Meet most of your business needs with no-code development +- Meet particular needs with regular development +- The system requires frequent changes +- Private deployment with full control of code and data +- Free to use or pay for more technical support diff --git a/docs/en-US/why.md b/docs/en-US/why.md new file mode 100644 index 000000000..c0ffe1204 --- /dev/null +++ b/docs/en-US/why.md @@ -0,0 +1,21 @@ +# Why NocoBase is different + +## 1. Separate "data structure" and "user interface" + +Most form-, table-, or process-driven codeless products create data structures directly in the user interface, such as Airtable, where adding a new column to a table is adding a new field. This has the advantage of simplicity of use, but the disadvantage of limited functionality and flexibility to meet the needs of more complex scenarios. + +NocoBase adopts the design idea of separating the data structure from the user interface, allowing you to create any number of blocks (data views) for the data collections, with different type, styles, content, and actions in each block. This takes into account the simplicity of codeless operation, but also the flexibility like native development. + +![2.collection-block.png](./user-manual/introduction/important-features/2.collection-block.png) + +## 2. Separate "system configuration" and "system usage" + +NocoBase is used to develop relatively complex business systems. In these scenarios, we want the system developers and the system users to be different roles. The user sees a mature, well-designed system, like a product developed natively, rather than a rigid, drag-and-drop free system that can be modified at any time; while the developer can quickly develop the system using a WYSIWYG approach. + +![2.user-root.gif](./user-manual/introduction/important-features/2.user-root.gif) + +## 3. Everything is plugins + +NocoBase adopts plugin architecture, all new features can be implemented by developing and installing plugins. In the future, we will build a plug-in marketplace where extending functionality is as easy as installing an APP on your phone. + +![](https://www.nocobase.com/images/NocoBaseMindMapLite.png) diff --git a/docs/menus.ts b/docs/menus.ts new file mode 100644 index 000000000..2bc77508b --- /dev/null +++ b/docs/menus.ts @@ -0,0 +1,139 @@ +export default [ + { + title: 'Welcome', + 'title.zh-CN': '欢迎', + type: 'group', + children: [ + '/index', + '/why', + '/who', + '/roadmap', + ], + }, + { + title: 'Getting started', + 'title.zh-CN': '快速开始', + type: 'group', + children: [ + { + title: 'Installation', + 'title.zh-CN': '安装', + type: 'subMenu', + children: [ + '/getting-started/installation/overview', + '/getting-started/installation/docker-compose', + '/getting-started/installation/create-nocobase-app', + '/getting-started/installation/git-clone', + ], + }, + '/getting-started/upgrading', + ], + }, + { + title: 'User manual', + 'title.zh-CN': '用户手册', + type: 'group', + children: [ + '/user-manual/introduction/5-minutes-to-get-started', + { + title: 'Advanced guide', + 'title.zh-CN': '深入 NocoBase', + type: 'subMenu', + children: [ + '/user-manual/advanced-guide/functional-zoning', + '/user-manual/advanced-guide/collections', + '/user-manual/advanced-guide/menus', + '/user-manual/advanced-guide/blocks', + '/user-manual/advanced-guide/actions', + '/user-manual/advanced-guide/roles-permissions', + '/user-manual/advanced-guide/tabs', + '/user-manual/advanced-guide/file-storages', + '/user-manual/advanced-guide/system-settings', + '/user-manual/advanced-guide/plugins', + ], + }, + ], + }, + { + title: 'Development', + 'title.zh-CN': '开发指南', + type: 'group', + children: [ + '/development/directory-structure', + '/development/env', + '/development/nocobase-cli', + { + title: 'HTTP API', + 'title.zh-CN': 'HTTP API', + type: 'subMenu', + children: [ + '/development/http-api/index', + '/development/http-api/rest-api', + '/development/http-api/action-api', + '/development/http-api/javascript-sdk', + '/development/http-api/filter-operators', + ], + }, + '/development/javascript-sdk', + { + title: 'Plugin development', + 'title.zh-CN': '插件开发', + type: 'subMenu', + children: [ + '/development/plugin-development/index', + { + title: 'Server', + 'title.zh-CN': 'Server', + type: 'subMenu', + children: [ + '/development/plugin-development/server/overview', + '/development/plugin-development/server/database', + '/development/plugin-development/server/resourcer', + '/development/plugin-development/server/middleware', + '/development/plugin-development/server/acl', + '/development/plugin-development/server/events', + '/development/plugin-development/server/i18n', + '/development/plugin-development/server/cli', + '/development/plugin-development/server/app-manager', + '/development/plugin-development/server/plugin-manager', + ], + }, + { + title: 'Client', + 'title.zh-CN': 'Client', + type: 'subMenu', + children: [ + '/development/plugin-development/client/overview', + { + title: 'Providers', + 'title.zh-CN': 'Providers', + type: 'subMenu', + children: [ + '/development/plugin-development/client/providers/acl', + '/development/plugin-development/client/providers/antd', + '/development/plugin-development/client/providers/api-client', + '/development/plugin-development/client/providers/collection-manager', + '/development/plugin-development/client/providers/i18n', + '/development/plugin-development/client/providers/route-switch', + '/development/plugin-development/client/providers/schema-component', + '/development/plugin-development/client/providers/schema-initializer', + ], + }, + ], + }, + ], + }, + ], + }, + { + title: 'Community', + 'title.zh-CN': '社区', + type: 'group', + children: [ + '/contributing', + '/release-notes', + '/faq', + '/thanks', + ], + } +]; diff --git a/docs/zh-CN/contributing.md b/docs/zh-CN/contributing.md new file mode 100644 index 000000000..0c3e240be --- /dev/null +++ b/docs/zh-CN/contributing.md @@ -0,0 +1,47 @@ +# 贡献 + +- Fork 源代码到自己的仓库 +- 修改源代码 +- 提交 Pull Request + +## 下载项目 + +```bash +# 替换为自己的仓库地址 +git clone https://github.com/nocobase/nocobase.git +cd nocobase +yarn install +``` + +## 应用开发与测试 + +```bash +# 安装并启动应用 +yarn dev +# 运行所有测试 +yarn test +# 运行文件夹下所有测试文件 +yarn test +# 运行单个测试文件 +yarn test +``` + +## 文档预览 + +```bash +# 启动文档 +yarn doc --lang=zh-CN +yarn doc --lang=en-US +``` + +文档在 docs 目录下,遵循 Markdown 语法 + +```bash +|- /docs/ + |- en-US + |- zh-CN +``` + +## 其他 + +更多 Commands 使用说明 [参考 NocoBase CLI 章节](./development/nocobase-cli.md) \ No newline at end of file diff --git a/docs/zh-CN/development/directory-structure.md b/docs/zh-CN/development/directory-structure.md new file mode 100644 index 000000000..1db911267 --- /dev/null +++ b/docs/zh-CN/development/directory-structure.md @@ -0,0 +1,89 @@ +# 目录结构 + +## 应用脚手架 + +```bash +$ yarn create nocobase-app my-nocobase-app +``` + +通过 `create-nocobase-app` 创建的应用脚手架目录结构如下: + +```bash +├── my-nocobase-app + ├── packages # 采用 Monorepo 的方式管理代码,将不同模块划分到不同包里 + ├── app + ├── client # 客户端模块 + ├── server # 服务端模块 + ├── plugins # 插件目录 + ├── storages # 用于存放数据库文件、附件、缓存等 + ├── db + ├── .env # 环境变量 + ├── .buildrc.ts # packages 的打包配置,支持 cjs、esm 和 umd 三种格式的打包。 + ├── jest.config.js + ├── jest.setup.ts + ├── lerna.json + ├── package.json + ├── tsconfig.jest.json + ├── tsconfig.json + ├── tsconfig.server.json +``` + +### packages 目录 + +```bash +├── packages + ├── app + ├── client + ├── public + ├── src + ├── pages + ├── index.tsx + ├── .umirc.ts + ├── package.json + ├── server + ├── src + ├── config + ├── index.ts + ├── package.json + ├── /plugins + ├── my-plugin + ├── src + ├── package.json +``` + +NocoBase 采用 Monorepo 的方式管理代码,将不同模块划分到不同包里。 + +- `app/client` 为应用的客户端模块,基于 [umi](https://umijs.org/zh-CN) 构建; +- `app/server` 为应用的服务端模块; +- `plugins/*` 目录里可以放各种插件。 + +### storages 目录 + +用于存放数据库文件、附件、缓存等。 + +### .env 文件 + +环境变量。 + +### .buildrc.ts 文件 + +packages 的打包配置,支持 cjs、esm 和 umd 三种格式的打包。 + +## 插件脚手架 + +```bash +$ yarn nocobase create-plugin my-plugin +``` + +通过 `nocobase create-plugin` 初始化的插件脚手架目录如下: + +```bash +├── my-nocobase-app + ├── packages + ├── plugins + ├── my-plugin + ├── src + ├── client + ├── server + ├── package.json +``` diff --git a/docs/zh-CN/development/env.md b/docs/zh-CN/development/env.md new file mode 100644 index 000000000..29e3c31af --- /dev/null +++ b/docs/zh-CN/development/env.md @@ -0,0 +1,207 @@ +# 环境变量 + +## 全局环境变量 + +保存在 `.env` 文件里 + +### APP_ENV + +应用环境,默认值 `development`,可选项包括: + +- `production` 生产环境 +- `development` 开发环境 + +```bash +APP_ENV=production +``` + +### APP_HOST + +应用主机,默认值 `0.0.0.0` + +```bash +APP_HOST=192.168.3.154 +``` + +### APP_PORT + +应用端口,默认值 `13000` + +```bash +APP_PORT=13000 +``` + +### APP_KEY + +秘钥,用于 jwt 等场景 + +```bash +APP_KEY=app-key-test +``` + +### API_BASE_PATH + +NocoBase API 地址前缀,默认值 `/api/` + +```bash +API_BASE_PATH=/api/ +``` + +### DB_DIALECT + +数据库类型,默认值 `sqlite`,可选项包括: + +- `sqlite` +- `mysql` +- `postgres` + +```bash +DB_DIALECT=mysql +``` + +### DB_STORAGE + +数据库文件路径(使用 SQLite 数据库时配置) + +```bash +# 相对路径 +DB_HOST=storage/db/nocobase.db +# 绝对路径 +DB_HOST=/your/path/nocobase.db +``` + +### DB_HOST + +数据库主机(使用 mysql 或 postgres 数据库时需要配置) + +默认值 `localhost` + +```bash +DB_HOST=localhost +``` + +### DB_PORT + +数据库端口(使用 mysql 或 postgres 数据库时需要配置) + +- MySQL 默认端口 3356 +- PostgreSQL 默认端口 5432 + +```bash +DB_PORT=3356 +``` + +### DB_DATABASE + +数据库名(使用 mysql 或 postgres 数据库时需要配置) + +```bash +DB_DATABASE=nocobase +``` + +### DB_USER + +数据库用户(使用 mysql 或 postgres 数据库时需要配置) + +```bash +DB_USER=nocobase +``` + +### DB_PASSWORD + +数据库密码(使用 mysql 或 postgres 数据库时需要配置) + +```bash +DB_PASSWORD=nocobase +``` + +### DB_TABLE_PREFIX + +数据表前缀 + +```bash +DB_TABLE_PREFIX=nocobase_ +``` + +### DB_LOGGING + +数据库日志开关,默认值 `off`,可选项包括: + +- `on` 打开 +- `off` 关闭 + +```bash +DB_LOGGING=on +``` + +## 临时环境变量 + +安装 NocoBase 时,可以通过设置临时的环境变量来辅助安装,如: + +```bash +yarn cross-env \ + INIT_APP_LANG=zh-CN \ + INIT_ROOT_EMAIL=demo@nocobase.com \ + INIT_ROOT_PASSWORD=admin123 \ + INIT_ROOT_NICKNAME="Super Admin" \ + nocobase install + +# 等同于 +yarn nocobase install \ + --lang=zh-CN \ + --root-email=demo@nocobase.com \ + --root-password=admin123 \ + --root-nickname="Super Admin" + +# 等同于 +yarn nocobase install -l zh-CN -e demo@nocobase.com -p admin123 -n "Super Admin" +``` + +### INIT_APP_LANG + +安装时的语言,默认值 `en-US`,可选项包括: + +- `en-US` +- `zh-CN` + +```bash +yarn cross-env \ + INIT_APP_LANG=zh-CN \ + nocobase install +``` + +### INIT_ROOT_EMAIL + +Root 用户邮箱 + +```bash +yarn cross-env \ + INIT_APP_LANG=zh-CN \ + INIT_ROOT_EMAIL=demo@nocobase.com \ + nocobase install +``` + +### INIT_ROOT_PASSWORD + +Root 用户密码 + +```bash +yarn cross-env \ + INIT_APP_LANG=zh-CN \ + INIT_ROOT_EMAIL=demo@nocobase.com \ + INIT_ROOT_PASSWORD=admin123 \ + nocobase install +``` + +### INIT_ROOT_NICKNAME + +Root 用户昵称 + +```bash +yarn cross-env \ + INIT_APP_LANG=zh-CN \ + INIT_ROOT_EMAIL=demo@nocobase.com \ + INIT_ROOT_PASSWORD=admin123 \ + INIT_ROOT_NICKNAME="Super Admin" \ + nocobase install +``` diff --git a/docs/zh-CN/development/http-api/action-api.md b/docs/zh-CN/development/http-api/action-api.md new file mode 100644 index 000000000..a2208e2c3 --- /dev/null +++ b/docs/zh-CN/development/http-api/action-api.md @@ -0,0 +1,146 @@ +# Action API + +## Common + +--- + +Collection 和 Association 资源通用。 + +### `create` + +```bash +POST /api/users:create?whitelist=a,b&blacklist=c,d + +{} # Request Body +``` + +- Parameters + - whitelist 白名单 + - blacklist 黑名单 +- Request body: 待插入的 JSON 数据 +- Response body data: 已创建的数据 JSON + +#### 新增用户 + +```bash +POST /api/users:create + +Request Body +{ + "email": "demo@nocobase.com", + "name": "Admin" +} + +Response 200 (application/json) +{ + "data": {}, + "meta": {} +} +``` + +#### 新增用户文章 + +```bash +POST /api/users/1/posts:create + +Request Body +{ + "title": "My first post" +} + +Response 200 (application/json) +{ + "data": {}, + "meta": {} +} +``` + +#### Request Body 里的 association + +```bash +POST /api/posts:create + +Request Body +{ + "title": "My first post", + "user": 1 +} + +Response 200 (application/json) +{ + "data": { + "id": 1, + "title": "My first post", + "userId": 1, + "user": { + "id": 1 + } + }, + "meta": {} +} +``` + +### `update` + +```bash +POST /api/users:create?filterByTk=1&whitelist=a,b&blacklist=c,d + +{} # Request Body +``` + +- Parameters + - whitelist 白名单 + - blacklist 黑名单 + - filterByTk 根据 tk 字段过滤,默认情况 tk 为数据表的主键 + - filter 过滤,支持 json string +- Request body: 待更新的 JSON 数据 + +#### Request Body 里的 association + +```bash +POST /api/posts:update/1 + +Request Body +{ + "title": "My first post 2", + "user": 2 +} + +Response 200 (application/json) +{ + "data": [ + { + "id": 1, + "title": "My first post 2", + "userId": 2, + "user": { + "id": 2 + } + } + ], + "meta": {} +} +``` + +### `list` + +### `get` + +### `destroy` + +### `move` + +## Association + +--- + +### `add` + +### `set` + +### `remove` + +### `toggle` + + + diff --git a/docs/zh-CN/development/http-api/filter-operators.md b/docs/zh-CN/development/http-api/filter-operators.md new file mode 100644 index 000000000..b74cc80ae --- /dev/null +++ b/docs/zh-CN/development/http-api/filter-operators.md @@ -0,0 +1,59 @@ +# Filter operators + +## 通用 + +- $eq +- $ne +- $gte +- $gt +- $lte +- $lt +- $not +- $is +- $in +- $notIn +- $like +- $notLike +- $iLike +- $notILike +- $and +- $or +- $empty +- $notEmpty + +## array + +- $match +- $notMatch +- $anyOf +- $noneOf +- $arrayEmpty +- $arrayNotEmpty + +## association + +- $exists +- $notExists + +## boolean + +- $truthy +- $falsy + +## date + +- $dateOn +- $dateNotOn +- $dateBefore +- $dateNotBefore +- $dateAfter +- $dateNotAfter + +## string + +- $includes +- $notIncludes +- $startsWith +- $notStartsWith +- $endWith +- $notEndWith \ No newline at end of file diff --git a/docs/zh-CN/development/http-api/index.md b/docs/zh-CN/development/http-api/index.md new file mode 100644 index 000000000..328400898 --- /dev/null +++ b/docs/zh-CN/development/http-api/index.md @@ -0,0 +1,307 @@ +# 概述 + +NocoBase 的 HTTP API 基于 Resource & Action 设计,是 REST API 的超集,操作不局限于增删改查,在 NocoBase 里,Resource Action 可以任意的扩展。 + +## 资源 Resource + +在 NocoBase 里,资源(resource)有两种表达方式: + +- `` +- `.` + + + +- collection 是所有抽象数据的集合 +- association 为 collection 的关联数据 +- resource 包括 collection 和 collection.association 两类 + + + +### 示例 + +- `posts` 文章 +- `posts.user` 文章用户 +- `posts.tags` 文章标签 + +## 操作 Action + +以 `:` 的方式表示资源操作 + +- `:` +- `.:` + +内置的全局操作,可用于 collection 或 association + +- `create` +- `get` +- `list` +- `update` +- `destroy` +- `move` + +内置的关联操作,仅用于 association + +- `set` +- `add` +- `remove` +- `toggle` + +### 示例 + +- `posts:create` 创建文章 +- `posts.user:get` 查看文章用户 +- `posts.tags:add` 附加文章标签(将现有的标签与文章关联) + +## 请求 URL + +```bash + /api/: + /api/:/ + /api///: + /api///:/ +``` + +### 示例 + +posts 资源 + +```bash +POST /api/posts:create +GET /api/posts:list +GET /api/posts:get/1 +POST /api/posts:update/1 +POST /api/posts:destroy/1 +``` + +posts.comments 资源 + +```bash +POST /api/posts/1/comments:create +GET /api/posts/1/comments:list +GET /api/posts/1/comments:get/1 +POST /api/posts/1/comments:update/1 +POST /api/posts/1/comments:destroy/1 +``` + +posts.tags 资源 + +```bash +POST /api/posts/1/tags:create +GET /api/posts/1/tags:get +GET /api/posts/1/tags:list +POST /api/posts/1/tags:update +POST /api/posts/1/tags:destroy +POST /api/posts/1/tags:add +GET /api/posts/1/tags:remove +``` + +## 资源定位 + +- collection 资源,通过 `collectionIndex` 定位到待处理的数据,`collectionIndex` 必须唯一 +- association 资源,通过 `collectionIndex` 和 `associationIndex` 联合定位待处理的数据,`associationIndex` 可能不是唯一的,但是 `collectionIndex` 和 `associationIndex` 的联合索引必须唯一 + +查看 association 资源详情时,请求的 URL 需要同时提供 `` 和 ``,`` 并不多余,因为 `` 可能不是唯一的。 + +例如 `tables.fields` 表示数据表的字段 + +```bash +GET /api/tables/table1/fields/title +GET /api/tables/table2/fields/title +``` + +table1 和 table2 都有 title 字段,title 在 table1 里是唯一的,但是其他表也可能有 title 字段 + +## 请求参数 + +请求的参数可以放在 Request 的 headers、parameters(query string)、body(GET 请求没有 body) 里。 + +几个特殊的 Parameters 请求参数 + +- `filter` 数据过滤,用于查询相关操作里; +- `filterByTk` 根据 tk 字段字过滤,用于指定详情数据的操作里; +- `sort` 排序,用于查询相关操作里。 +- `fields` 输出哪些数据,用于查询相关操作里; +- `appends` 附加关系字段,用于查询相关操作里; +- `except` 排除哪些字段(不输出),用于查询相关操作里; +- `whitelist` 字段白名单,用于数据的创建和更新相关操作里; +- `blacklist` 字段黑名单,用于数据的创建和更新相关操作里; + +### filter + +数据过滤 + +```bash +# simple +GET /api/posts?filter[status]=publish +# 推荐使用 json string 的格式,需要 encodeURIComponent 编码 +GET /api/posts?filter={"status":"published"} + +# filter operators +GET /api/posts?filter[status.$eq]=publish +GET /api/posts?filter={"status.$eq":"published"} + +# $and +GET /api/posts?filter={"$and": [{"status.$eq":"published"}, {"title.$includes":"a"}]} +# $or +GET /api/posts?filter={"$or": [{"status.$eq":"pending"}, {"status.$eq":"draft"}]} + +# association field +GET /api/posts?filter[user.email.$includes]=gmail +GET /api/posts?filter={"user.email.$includes":"gmail"} +``` + +[点此查看更多关于 filter operators 的内容](http-api/filter-operators) + +### filterByTk + +根据 tk 字段过滤,默认情况: + +- collection 资源,tk 为数据表的主键; +- association 资源,tk 为 association 的 targetKey 字段。 + +```bash +GET /api/posts:get?filterByTk=1&fields=name,title&appends=tags +``` + +### sort + +排序。降序时,字段前面加上减号 `-`。 + +```bash +# createAt 字段升序 +GET /api/posts:get?sort=createdAt +# createAt 字段降序 +GET /api/posts:get?sort=-createdAt +# 多个字段联合排序,createAt 字段降序、title A-Z 升序 +GET /api/posts:get?sort=-createdAt,title +``` + +### fields + +输出哪些数据 + +```bash +GET /api/posts:list?fields=name,title + +Response 200 (application/json) +{ + "data": [ + { + "name": "", + "title": "" + } + ], + "meta": {} +} +``` + +### appends + +附加关系字段 + +### except + +排除哪些字段(不输出),用于查询相关操作里; + +### whitelist + +白名单 + +```bash +POST /api/posts:create?whitelist=title + +{ + "title": "My first post", + "date": "2022-05-19" # date 字段会被过滤掉,不会写入数据库 +} +``` + +### blacklist + +黑名单 + +```bash +POST /api/posts:create?blacklist=date + +{ + "title": "My first post", + "date": "2022-05-19" # date 字段会被过滤掉,不会写入数据库 +} +``` + +## 请求响应 + +响应的格式 + +```ts +type ResponseResult = { + data?: any; // 主体数据 + meta?: any; // 附加数据 + errors?: ResponseError[]; // 报错 +}; + +type ResponseError = { + code?: string; + message: string; +}; +``` + +### 示例 + +查看列表 + +```bash +GET /api/posts:list + +Response 200 (application/json) + +{ + data: [ + { + id: 1 + } + ], + meta: { + count: 1 + page: 1, + pageSize: 1, + totalPage: 1 + }, +} +``` + +查看详情 + +```bash +GET /api/posts:get/1 + +Response 200 (application/json) + +{ + data: { + id: 1 + }, + meta: { + count: 1 + page: 1, + pageSize: 1, + totalPage: 1 + }, +} +``` + +报错 + +```bash +POST /api/posts:create + +Response 400 (application/json) + +{ + errors: [ + { + message: 'name must be required', + }, + ], +} +``` \ No newline at end of file diff --git a/docs/zh-CN/development/http-api/javascript-sdk.md b/docs/zh-CN/development/http-api/javascript-sdk.md new file mode 100644 index 000000000..d14cf9cff --- /dev/null +++ b/docs/zh-CN/development/http-api/javascript-sdk.md @@ -0,0 +1,229 @@ +# JavaScript SDK + +## APIClient + +```ts +class APIClient { + // axios 实例 + axios: AxiosInstance; + // 构造器 + constructor(instance?: AxiosInstance | AxiosRequestConfig); + // 客户端请求,支持 AxiosRequestConfig 和 ResourceActionOptions + request, D = any>(config: AxiosRequestConfig | ResourceActionOptions): Promise; + // 获取资源 + resource(name: string, of?: any): R; +} +``` + +初始化实例 + +```ts +import axios from 'axios'; +import { APIClient } from '@nocobase/sdk'; + +// 提供 AxiosRequestConfig 配置参数 +const api = new APIClient({ + baseURL: 'https://localhost:8000/api', +}); + +// 提供 AxiosInstance +const instance = axios.create({ + baseURL: 'https://localhost:8000/api', +}); +const api = new APIClient(instance); +``` + +## Mock + +```ts +import { APIClient } from '@nocobase/sdk'; +import MockAdapter from 'axios-mock-adapter'; + +const api = new APIClient({ + baseURL: 'https://localhost:8000/api', +}); + +const mock = new MockAdapter(api.axios); + +mock.onGet('users:get').reply(200, { + data: { id: 1, name: 'John Smith' }, +}); + +await api.request({ url: 'users:get' }); +``` + +## Auth + +```ts +// 直接传 token +api.auth.token = '123'; +// 或者通过 signIn 登录 +api.auth.signIn(); +// 注销并删除 token 缓存 +api.auth.signOut(); +``` + +## Request + +```ts +// url +await api.request({ + url: 'users:list', + // request params + params: { + filter: { + 'email.$includes': 'noco', + }, + }, + // request body + data, +}); + +// resource & action +await api.request({ + resource: 'users', + action: 'list', + // action params + params: { + filter: { + 'email.$includes': 'noco', + }, + page: 1, + }, +}); +``` + +## Resource action + +```ts +await api.resource('collection')[action](); +await api.resource('collection.association', collectionId)[action](); +``` + +## Action API + +```ts +await api.resource('collection').create(); +await api.resource('collection').get(); +await api.resource('collection').list(); +await api.resource('collection').update(); +await api.resource('collection').destroy(); +await api.resource('collection.association', collectionId).create(); +await api.resource('collection.association', collectionId).get(); +await api.resource('collection.association', collectionId).list(); +await api.resource('collection.association', collectionId).update(); +await api.resource('collection.association', collectionId).destroy(); +``` + +### `get` + +```ts +interface Resource { + get: (options?: GetActionOptions) => Promise; +} + +interface GetActionOptions { + filter?: any; + filterByTk?: any; + fields?: string || string[]; + appends?: string || string[]; + expect?: string || string[]; + sort?: string[]; +} +``` + +### `list` + +```ts +interface Resource { + list: (options?: ListActionOptions) => Promise; +} + +interface ListActionOptions { + filter?: any; + filterByTk?: any; + fields?: string || string[]; + appends?: string || string[]; + expect?: string || string[]; + sort?: string[]; + page?: number; + pageSize?: number; + paginate?: boolean; +} +``` + +### `create` + +```ts +interface Resource { + create: (options?: CreateActionOptions) => Promise; +} + +interface CreateActionOptions { + whitelist?: string[]; + blacklist?: string[]; + values?: {[key: sting]: any}; +} +``` + +### `update` + +```ts +interface Resource { + update: (options?: UpdateActionOptions) => Promise; +} + +interface UpdateActionOptions { + filter?: any; + filterByTk?: any; + whitelist?: string[]; + blacklist?: string[]; + values?: {[key: sting]: any}; +} +``` + +### `destroy` + +```ts +interface Resource { + destroy: (options?: DestroyActionOptions) => Promise; +} + +interface DestroyActionOptions { + filter?: any; + filterByTk?: any; +} +``` + +### `move` + +```ts +interface Resource { + move: (options?: MoveActionOptions) => Promise; +} + +interface MoveActionOptions { + sourceId: any; + targetId?: any; + /** @default 'sort' */ + sortField?: any; + targetScope?: {[key: string]: any}; + sticky?: boolean; + method?: 'insertAfter' | 'prepend'; +} +``` + +### `` + +```ts +interface AttachmentResource { + +} + +interface UploadActionOptions { + +} + +api.resource('attachments').upload(); +api.resource('attachments').upload(); +``` diff --git a/docs/zh-CN/development/http-api/rest-api.md b/docs/zh-CN/development/http-api/rest-api.md new file mode 100644 index 000000000..2d7fd86d5 --- /dev/null +++ b/docs/zh-CN/development/http-api/rest-api.md @@ -0,0 +1,184 @@ +# REST API + +NocoBase 的 HTTP API 是 REST API 的超集,标准的 CRUD API 也支持 RESTful 风格。 + +## Collection 资源 + +--- + +### 创建 collection + +HTTP API + +```bash +POST /api/:create + +{} # JSON body +``` + +REST API + +```bash +POST /api/ + +{} # JSON body +``` + +### 查看 collection 列表 + +HTTP API + +```bash +GET /api/:list +``` + +REST API + +```bash +GET /api/ +``` + +### 查看 collection 详情 + +HTTP API + +```bash +GET /api/:get?filterByTk= +GET /api/:get/ +``` + +REST API + +```bash +GET /api// +``` + +### 更新 collection + +HTTP API + +```bash +POST /api/:update?filterByTk= + +{} # JSON body + +# 或者 +POST /api/:update/ + +{} # JSON body +``` + +REST API + +```bash +PUT /api// + +{} # JSON body +``` + +### 删除 collection + +HTTP API + +```bash +POST /api/:destroy?filterByTk= +# 或者 +POST /api/:destroy/ +``` + +REST API + +```bash +DELETE /api// +``` + +## Association 资源 + +--- + +### 创建 Association + +HTTP API + +```bash +POST /api///:create + +{} # JSON body +``` + +REST API + +```bash +POST /api/// + +{} # JSON body +``` + +### 查看 Association 列表 + +HTTP API + +```bash +GET /api///:list +``` + +REST API + +```bash +GET /api/// +``` + +### 查看 Association 详情 + +HTTP API + +```bash +GET /api///:get?filterByTk= +# 或者 +GET /api///:get/ +``` + +REST API + +```bash +GET /api///:get/ +``` + +### 更新 Association + +HTTP API + +```bash +POST /api///:update?filterByTk= + +{} # JSON body + +# 或者 +POST /api///:update/ + +{} # JSON body +``` + +REST API + +```bash +PUT /api///:update/ + +{} # JSON 数据 +``` + +### 删除 Association + +HTTP API + +```bash +POST /api///:destroy?filterByTk= +# 或者 +POST /api///:destroy/ +``` + +REST API + +```bash +DELETE /api//// +``` diff --git a/docs/zh-CN/development/nocobase-cli.md b/docs/zh-CN/development/nocobase-cli.md new file mode 100644 index 000000000..16338019c --- /dev/null +++ b/docs/zh-CN/development/nocobase-cli.md @@ -0,0 +1,310 @@ +--- +order: 2 +--- + +# NocoBase CLI + +NocoBase CLI 旨在帮助你开发、构建和部署 NocoBase 应用。 + + + +NocoBase CLI 支持 ts-node 和 node 两种运行模式 + +- ts-node 模式(默认):用于开发环境,支持实时编译,但是响应较慢 +- node 模式:用于生产环境,响应迅速,但需要先执行 `yarn nocobase build` 将全部源码进行编译 + + + +## 使用说明 + +```bash +$ yarn nocobase -h + +Usage: nocobase [command] [options] + +Options: + -h, --help + +Commands: + create-plugin 创建插件脚手架 + console + db:auth 校验数据库是否连接成功 + db:sync 通过 collections 配置生成相关数据表和字段 + install 安装 + start 生产环境启动应用 + build 编译打包 + clean 删除编译之后的文件 + dev 启动应用,用于开发环境,支持实时编译 + doc 文档开发 + test 测试 + umi + upgrade 升级 + help +``` + +## 在脚手架里应用 + +应用脚手架 `package.json` 里的 `scripts` 如下: + +```json +{ + "scripts": { + "dev": "nocobase dev", + "start": "nocobase start", + "clean": "nocobase clean", + "build": "nocobase build", + "test": "nocobase test", + "postinstall": "nocobase umi generate tmp" + } +} +``` + +## 命令行扩展 + +NocoBase CLI 基于 [commander](https://github.com/tj/commander.js) 构建,你可以自由扩展命令,扩展的 command 可以写在 `app/server/index.ts` 里: + +```ts +const app = new Application(config); + +app.command('hello').action(() => {}); +``` + +或者,写在插件里: + +```ts +class MyPlugin extends Plugin { + beforeLoad() { + this.app.command('hello').action(() => {}); + } +} +``` + +终端运行 + +```bash +$ yarn nocobase hello +``` + +## 内置命令行 + +按使用频率排序 + +### `dev` + +开发环境下,启动应用,代码实时编译。 + + +NocoBase 未安装时,会自动安装(参考 install 命令) + + +```bash +Usage: nocobase dev [options] + +Options: + -p, --port [port] + --client + --server + -h, --help +``` + +示例 + +```bash +# 启动应用,用于开发环境,实时编译 +yarn nocobase dev +# 只启动服务端 +yarn nocobase dev --server +# 只启动客户端 +yarn nocobase dev --client +``` + +### `start` + +生产环境下,启动应用,代码需要 yarn build。 + + + +- NocoBase 未安装时,会自动安装(参考 install 命令) +- 源码有修改时,需要重新打包(参考 build 命令) + + + +```bash +$ yarn nocobase start -h + +Usage: nocobase start [options] + +Options: + -p, --port + -s, --silent + -h, --help +``` + +示例 + +```bash +# 启动应用,用于生产环境, +yarn nocobase start +``` + +### `install` + +安装 + +```bash +$ yarn nocobase install -h + +Usage: nocobase install [options] + +Options: + -f, --force + -c, --clean + -s, --silent + -l, --lang [lang] + -e, --root-email + -p, --root-password + -n, --root-nickname [rootNickname] + -h, --help +``` + +示例 + +```bash +# 初始安装 +yarn nocobase install -l zh-CN -e admin@nocobase.com -p admin123 +# 删除 NocoBase 的所有数据表,并重新安装 +yarn nocobase install -f -l zh-CN -e admin@nocobase.com -p admin123 +# 清空数据库,并重新安装 +yarn nocobase install -c -l zh-CN -e admin@nocobase.com -p admin123 +``` + + + +`-f/--force` 和 `-c/--clean` 的区别 +- `-f/--force` 删除 NocoBase 的数据表 +- `-c/--clean` 清空数据库,所有数据表都会被删除 + + + +### `upgrade` + +升级 + +```bash +yarn nocobase upgrade +``` + +### `test` + +jest 测试,支持所有 [jest-cli](https://jestjs.io/docs/cli) 的 options,除此之外还扩展了 `-c, --db-clean` 的支持。 + +```bash +$ yarn nocobase test -h + +Usage: nocobase test [options] + +Options: + -c, --db-clean 运行所有测试前清空数据库 + -h, --help +``` + +示例 + +```bash +# 运行所有测试文件 +yarn nocobase test +# 运行指定文件夹下所有测试文件 +yarn nocobase test packages/core/server +# 运行指定文件里的所有测试 +yarn nocobase test packages/core/database/src/__tests__/database.test.ts + +# 运行测试前,清空数据库 +yarn nocobase test -c +yarn nocobase test packages/core/server -c +``` + +### `build` + +代码部署到生产环境前,需要将源码编译打包,如果代码有修改,也需要重新构建。 + +```bash +# 所有包 +yarn nocobase build +# 指定包 +yarn nocobase build app/server app/client +``` + +### `clean` + +删除编译之后的文件 + +```bash +yarn clean +# 等同于 +yarn rimraf -rf packages/*/*/{lib,esm,es,dist} +``` + +### `doc` + +文档开发 + +```bash +# 启动文档 +yarn doc --lang=zh-CN # 等同于 yarn doc dev +# 构建文档,默认输出到 ./docs/dist/ 目录下 +yarn doc build +# 查看 dist 输出的文档最终效果 +yarn doc serve --lang=zh-CN +``` + +### `db:auth` + +校验数据库是否连接成功 + +```bash +$ yarn nocobase db:auth -h + +Usage: nocobase db:auth [options] + +Options: + -r, --repeat [repeat] 重连次数 + -h, --help +``` + +### `db:sync` + +通过 collections 配置生成数据表和字段 + +```bash +$ yarn nocobase db:sync -h + +Usage: nocobase db:sync [options] + +Options: + -f, --force + -h, --help display help for command +``` + +### `umi` + +`app/client` 基于 [umi](https://umijs.org/) 构建,可以通过 `nocobase umi` 来执行其他相关命令。 + +```bash +# 生成开发环境所需的 .umi 缓存 +yarn nocobase umi generate tmp +``` + +### `help` + +帮助命令,也可以用 option 参数,`-h` 和 `--help` + +```bash +# 查看所有 cli +yarn nocobase help +# 也可以用 -h +yarn nocobase -h +# 或者 --help +yarn nocobase --help +# 查看 db:sync 命令的 option +yarn nocobase db:sync -h +``` diff --git a/docs/zh-CN/development/plugin-development/client/overview.md b/docs/zh-CN/development/plugin-development/client/overview.md new file mode 100644 index 000000000..4bba659eb --- /dev/null +++ b/docs/zh-CN/development/plugin-development/client/overview.md @@ -0,0 +1 @@ +# Overview \ No newline at end of file diff --git "a/docs/zh-CN/development/plugin-development/client/providers/\bapi-client.md" "b/docs/zh-CN/development/plugin-development/client/providers/\bapi-client.md" new file mode 100644 index 000000000..3dac00645 --- /dev/null +++ "b/docs/zh-CN/development/plugin-development/client/providers/\bapi-client.md" @@ -0,0 +1 @@ +# APIClient \ No newline at end of file diff --git a/docs/zh-CN/development/plugin-development/client/providers/acl.md b/docs/zh-CN/development/plugin-development/client/providers/acl.md new file mode 100644 index 000000000..45cdee8d8 --- /dev/null +++ b/docs/zh-CN/development/plugin-development/client/providers/acl.md @@ -0,0 +1 @@ +# ACL \ No newline at end of file diff --git a/docs/zh-CN/development/plugin-development/client/providers/antd.md b/docs/zh-CN/development/plugin-development/client/providers/antd.md new file mode 100644 index 000000000..a80a47303 --- /dev/null +++ b/docs/zh-CN/development/plugin-development/client/providers/antd.md @@ -0,0 +1 @@ +# Ant Design \ No newline at end of file diff --git a/docs/zh-CN/development/plugin-development/client/providers/china-region.md b/docs/zh-CN/development/plugin-development/client/providers/china-region.md new file mode 100644 index 000000000..3706bbe44 --- /dev/null +++ b/docs/zh-CN/development/plugin-development/client/providers/china-region.md @@ -0,0 +1 @@ +# ChianRegion \ No newline at end of file diff --git a/docs/zh-CN/development/plugin-development/client/providers/collection-manager.md b/docs/zh-CN/development/plugin-development/client/providers/collection-manager.md new file mode 100644 index 000000000..da019d550 --- /dev/null +++ b/docs/zh-CN/development/plugin-development/client/providers/collection-manager.md @@ -0,0 +1 @@ +# CollectionManager \ No newline at end of file diff --git a/docs/zh-CN/development/plugin-development/client/providers/i18n.md b/docs/zh-CN/development/plugin-development/client/providers/i18n.md new file mode 100644 index 000000000..a4f29d977 --- /dev/null +++ b/docs/zh-CN/development/plugin-development/client/providers/i18n.md @@ -0,0 +1 @@ +# I18n \ No newline at end of file diff --git a/docs/zh-CN/development/plugin-development/client/providers/route-switch.md b/docs/zh-CN/development/plugin-development/client/providers/route-switch.md new file mode 100644 index 000000000..3bfc5a330 --- /dev/null +++ b/docs/zh-CN/development/plugin-development/client/providers/route-switch.md @@ -0,0 +1 @@ +# RouteSwitch \ No newline at end of file diff --git a/docs/zh-CN/development/plugin-development/client/providers/schema-component.md b/docs/zh-CN/development/plugin-development/client/providers/schema-component.md new file mode 100644 index 000000000..90d3aa4d8 --- /dev/null +++ b/docs/zh-CN/development/plugin-development/client/providers/schema-component.md @@ -0,0 +1 @@ +# SchemaComponent diff --git a/docs/zh-CN/development/plugin-development/client/providers/schema-initializer.md b/docs/zh-CN/development/plugin-development/client/providers/schema-initializer.md new file mode 100644 index 000000000..bd2e33b59 --- /dev/null +++ b/docs/zh-CN/development/plugin-development/client/providers/schema-initializer.md @@ -0,0 +1 @@ +# SchemaInitializer diff --git a/docs/zh-CN/development/plugin-development/index.md b/docs/zh-CN/development/plugin-development/index.md new file mode 100644 index 000000000..b8be99be8 --- /dev/null +++ b/docs/zh-CN/development/plugin-development/index.md @@ -0,0 +1 @@ +# 快速入门 diff --git a/docs/zh-CN/development/plugin-development/server/acl.md b/docs/zh-CN/development/plugin-development/server/acl.md new file mode 100644 index 000000000..8cd8bbcac --- /dev/null +++ b/docs/zh-CN/development/plugin-development/server/acl.md @@ -0,0 +1 @@ +# ACL diff --git a/docs/zh-CN/development/plugin-development/server/app-manager.md b/docs/zh-CN/development/plugin-development/server/app-manager.md new file mode 100644 index 000000000..76a11afbe --- /dev/null +++ b/docs/zh-CN/development/plugin-development/server/app-manager.md @@ -0,0 +1 @@ +# AppManager \ No newline at end of file diff --git a/docs/zh-CN/development/plugin-development/server/cli.md b/docs/zh-CN/development/plugin-development/server/cli.md new file mode 100644 index 000000000..db3cc6737 --- /dev/null +++ b/docs/zh-CN/development/plugin-development/server/cli.md @@ -0,0 +1 @@ +# CLI \ No newline at end of file diff --git a/docs/zh-CN/development/plugin-development/server/database.md b/docs/zh-CN/development/plugin-development/server/database.md new file mode 100644 index 000000000..4a79ce0cd --- /dev/null +++ b/docs/zh-CN/development/plugin-development/server/database.md @@ -0,0 +1 @@ +# Database \ No newline at end of file diff --git a/docs/zh-CN/development/plugin-development/server/events.md b/docs/zh-CN/development/plugin-development/server/events.md new file mode 100644 index 000000000..b649f948c --- /dev/null +++ b/docs/zh-CN/development/plugin-development/server/events.md @@ -0,0 +1 @@ +# Event \ No newline at end of file diff --git a/docs/zh-CN/development/plugin-development/server/i18n.md b/docs/zh-CN/development/plugin-development/server/i18n.md new file mode 100644 index 000000000..05b5b6193 --- /dev/null +++ b/docs/zh-CN/development/plugin-development/server/i18n.md @@ -0,0 +1 @@ +# I18n diff --git a/docs/zh-CN/development/plugin-development/server/middleware.md b/docs/zh-CN/development/plugin-development/server/middleware.md new file mode 100644 index 000000000..c5033ed0e --- /dev/null +++ b/docs/zh-CN/development/plugin-development/server/middleware.md @@ -0,0 +1 @@ +# Middleware \ No newline at end of file diff --git a/docs/zh-CN/development/plugin-development/server/overview.md b/docs/zh-CN/development/plugin-development/server/overview.md new file mode 100644 index 000000000..4bba659eb --- /dev/null +++ b/docs/zh-CN/development/plugin-development/server/overview.md @@ -0,0 +1 @@ +# Overview \ No newline at end of file diff --git a/docs/zh-CN/development/plugin-development/server/plugin-manager.md b/docs/zh-CN/development/plugin-development/server/plugin-manager.md new file mode 100644 index 000000000..b98d016d5 --- /dev/null +++ b/docs/zh-CN/development/plugin-development/server/plugin-manager.md @@ -0,0 +1 @@ +# PluginManager \ No newline at end of file diff --git a/docs/zh-CN/development/plugin-development/server/resourcer.md b/docs/zh-CN/development/plugin-development/server/resourcer.md new file mode 100644 index 000000000..5c0d22865 --- /dev/null +++ b/docs/zh-CN/development/plugin-development/server/resourcer.md @@ -0,0 +1 @@ +# Resource & Action \ No newline at end of file diff --git a/docs/zh-CN/faq.md b/docs/zh-CN/faq.md new file mode 100644 index 000000000..80cba6c74 --- /dev/null +++ b/docs/zh-CN/faq.md @@ -0,0 +1,2 @@ +# 常见问题 + diff --git a/docs/zh-CN/getting-started/installation/create-nocobase-app.md b/docs/zh-CN/getting-started/installation/create-nocobase-app.md new file mode 100644 index 000000000..f0dda1a5e --- /dev/null +++ b/docs/zh-CN/getting-started/installation/create-nocobase-app.md @@ -0,0 +1,93 @@ +# `create-nocobase-app` 安装 + +## 0. 先决条件 + +请确保你已经: + +- 安装了 Node.js 14+、Yarn 1.22.x +- 配置并启动了所需数据库 SQLite 3.x、MySQL 8.x、PostgreSQL 10.x 任选其一 + +如果你没有安装 Node.js 可以从官网下载并安装最新的 LTS 版本。如果你打算长期与 Node.js 打交道,推荐使用 nvm(Win 系统可以使用 nvm-windows )来管理 Node.js 版本。 + +```bash +$ node -v + +v16.13.2 +``` + +推荐使用 yarn 包管理器。 + +```bash +$ npm install --global yarn +$ yarn -v + +1.22.10 +``` + +由于国内网络环境的原因,强烈建议你更换国内镜像。 + +```bash +$ yarn config set registry https://registry.npmmirror.com/ +$ yarn config set sqlite3_binary_host_mirror https://npmmirror.com/mirrors/sqlite3/ +``` + +## 1. 创建 NocoBase 项目 + +```bash +# SQLite +yarn create nocobase-app my-nocobase-app -d sqlite +# MySQL +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3356 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase +# PostgreSQL +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase +``` + +## 2. 切换目录 + +```bash +cd my-nocobase-app +``` + +## 3. 安装依赖 + +📢 由于网络环境、系统配置等因素影响,接下来这一步骤可能需要十几分钟时间。 + +```bash +yarn install +``` + +## 4. 安装 NocoBase + +```bash +yarn nocobase install --lang=zh-CN +``` + +## 5. 启动 NocoBase + +开发环境 + +```bash +yarn dev +``` + +生产环境 + +```bash +yarn start +``` + +注:生产环境,如果代码有修改,需要执行 `yarn build`,再重新启动 NocoBase。 + +## 6. 登录 NocoBase + +使用浏览器打开 http://localhost:13000/ 初始化账号和密码是 `admin@nocobase.com` 和 `admin123`。 diff --git a/docs/zh-CN/getting-started/installation/docker-compose.md b/docs/zh-CN/getting-started/installation/docker-compose.md new file mode 100644 index 000000000..da920ca2b --- /dev/null +++ b/docs/zh-CN/getting-started/installation/docker-compose.md @@ -0,0 +1,52 @@ +# Docker 安装 (👍 推荐) + +## 0. 先决条件 + +⚡⚡ 请确保你已经安装了 [Docker](https://docs.docker.com/get-docker/) + +## 1. 将 NocoBase 下载到本地 + +使用 Git 下载(或直接[下载 Zip 包](https://github.com/nocobase/nocobase/archive/refs/heads/main.zip),并解压到 nocobase 目录下) + +```bash +git clone https://github.com/nocobase/nocobase.git nocobase +``` + +## 2. 选择数据库(任选其一) + +支持 SQLite、MySQL、PostgreSQL 数据库 + +```bash +# SQLite +cd nocobase/docker/app-sqlite +# MySQL +cd nocobase/docker/app-mysql +# PostgreSQL +cd nocobase/docker/app-postgres +``` + +## 3. 安装并启动 NocoBase + +安装过程可能需要等待几十秒钟 + +```bash +# 在后台运行 +$ docker-compose up -d +# 查看 app 进程的情况 +$ docker-compose logs app + +app-sqlite-app-1 | nginx started +app-sqlite-app-1 | yarn run v1.22.15 +app-sqlite-app-1 | $ cross-env DOTENV_CONFIG_PATH=.env node -r dotenv/config packages/app/server/lib/index.js install -s +app-sqlite-app-1 | Done in 2.72s. +app-sqlite-app-1 | yarn run v1.22.15 +app-sqlite-app-1 | $ pm2-runtime start --node-args="-r dotenv/config" packages/app/server/lib/index.js -- start +app-sqlite-app-1 | 2022-04-28T15:45:38: PM2 log: Launching in no daemon mode +app-sqlite-app-1 | 2022-04-28T15:45:38: PM2 log: App [index:0] starting in -fork mode- +app-sqlite-app-1 | 2022-04-28T15:45:38: PM2 log: App [index:0] online +app-sqlite-app-1 | 🚀 NocoBase server running at: http://localhost:13000/ +``` + +## 4. 登录 NocoBase + +使用浏览器打开 http://localhost:13000/ 初始化账号和密码是 `admin@nocobase.com` 和 `admin123`。 diff --git a/docs/zh-CN/getting-started/installation/git-clone.md b/docs/zh-CN/getting-started/installation/git-clone.md new file mode 100644 index 000000000..3b416dc61 --- /dev/null +++ b/docs/zh-CN/getting-started/installation/git-clone.md @@ -0,0 +1,66 @@ +# Git 源码安装 + +## 0. 先决条件 + +请确保你已经: + +- 安装了 Git、Node.js 14+、Yarn 1.22.x +- 配置并启动了所需数据库 SQLite 3.x、MySQL 8.x、PostgreSQL 10.x 任选其一 + +## 1. 将 NocoBase 下载到本地 + +```bash +git clone https://github.com/nocobase/nocobase.git my-nocobase-app +``` + +## 2. 切换目录 + +```bash +cd my-nocobase-app +``` + +## 3. 安装依赖 + +📢 由于网络环境、系统配置等因素影响,接下来这一步骤可能需要十几分钟时间。 + +```bash +yarn install +``` + +## 4. 设置环境变量 + +NocoBase 所需的环境变量储存在根目录 `.env` 文件里,根据实际情况修改环境变量,如果你不知道怎么改,[点此查看环境变量说明](../development/env.md),也可以保持默认。 + +```bash +# 使用 sqlite 数据库 +DB_DIALECT=sqlite +# sqlite 文件地址 +DB_STORAGE=storage/db/nocobase.sqlite +``` + +## 5. 安装 NocoBase + +```bash +yarn nocobase install --lang=zh-CN +``` + +## 6. 启动 NocoBase + +开发环境 + +```bash +yarn dev +``` + +生产环境 + +```bash +# 编译 +yarn build +# 启动 +yarn start +``` + +## 7. 登录 NocoBase + +使用浏览器打开 http://localhost:13000/ 初始化账号和密码是 `admin@nocobase.com` 和 `admin123`。 diff --git a/docs/zh-CN/getting-started/installation/overview.md b/docs/zh-CN/getting-started/installation/overview.md new file mode 100644 index 000000000..6940b17b5 --- /dev/null +++ b/docs/zh-CN/getting-started/installation/overview.md @@ -0,0 +1,23 @@ +# 安装概述 + +## 安装方式 + +NocoBase 支持三种安装方式: + +- [Docker 安装(推荐)](./docker-compose.md) +- [create-nocobase-app 安装](./create-nocobase-app.md) +- [Git 源码安装](./git-clone.md) + +## 如何选择 + +**Docker 安装(推荐)**: + +适合无代码场景,不需要写代码。升级时,下载最新镜像并重启即可。 + +**create-nocobase-app 安装**: + +项目的业务代码完全独立,支持低代码开发。 + +**Git 源码安装**: + +如果你想体验最新未发布版本,或者想参与贡献,需要在源码上进行修改、调试,建议选择这种安装方式,对开发技术水平要求较高,如果代码有更新,可以走 git 流程拉取最新代码。 diff --git a/docs/zh-CN/getting-started/upgrading.md b/docs/zh-CN/getting-started/upgrading.md new file mode 100644 index 000000000..e2dd59aa9 --- /dev/null +++ b/docs/zh-CN/getting-started/upgrading.md @@ -0,0 +1,55 @@ +# 升级 + +升级前请务必将数据库数据进行备份 + +## Docker + +切换到对应的目录 + +```bash +# SQLite +cd nocobase/docker/app-sqlite +# MySQL +cd nocobase/docker/app-mysql +# PostgreSQL +cd nocobase/docker/app-postgres +``` + +使用 `docker-compose` 停止、删除应用,并下载最新镜像 + +```bash +# 停止应用 +docker-compose stop app +# 删除应用 +docker-compose rm app +# 下载最新镜像并启动 +docker-compose up -d app +# 查看 app 进程的情况 +docker-compose logs app +``` + +## create-nocobase-app + +执行 `nocobase upgrade` 升级命令 + +```bash +# 切换到对应的目录 +cd my-nocobase-app +# 执行更新命令 +yarn nocobase upgrade +# 启动 +yarn start +``` + +## Git 源码 + +```bash +# 切换到对应的目录 +cd my-nocobase-app +# pull 最新代码 +git pull +# 执行更新命令 +yarn nocobase upgrade +# 启动 +yarn start +``` diff --git a/docs/zh-CN/index.md b/docs/zh-CN/index.md new file mode 100644 index 000000000..9fbb1a217 --- /dev/null +++ b/docs/zh-CN/index.md @@ -0,0 +1,52 @@ +# 介绍 + +![](https://www.nocobase.com/images/demo/11.png) + +## NocoBase 是什么 + +NocoBase 是一个极易扩展的开源无代码开发平台。 +无需编程,使用 NocoBase 搭建自己的协作平台、管理系统,只需要几分钟时间。 + +官网:https://cn.nocobase.com/ + +在线体验:https://demo-cn.nocobase.com/new + +## 为什么选择 NocoBase + +- **开源免费** + - 采用 Apache-2.0 许可协议,不限制商业使用 + - 拥有全部代码,私有化部署,保障数据私有和安全 + - 针对实际需求自由扩展开发 + - 具备良好的生态支持 +- **无代码能力强** + - 数据模型 + - 使用文本、日期、数字、附件、选项、图标等数十种字段类型,以及一对一、一对多、多对多等各种关联关系,创建独立的数据模型 + - 区块 + - 使用表格、表单、看板、日历、详情等区块类型在页面内自由组合,来展示和操作数据 + - 权限 + - 基于角色控制用户的系统配置权限、数据操作权限和菜单访问权限 + - 工作流 + - 重复性的任务由自动化代替,减少人工操作, 提高效率。重要的事情需经过人工审批。 + - 菜单 + - 可以对菜单分组,支持添加页面和链接,支持无限级子菜单 + - 操作 + - 支持筛选、导出、添加、删除、修改、查看等操作对数据进行处理,可以扩展更多类型 +- **对开发者友好** + - 微内核,灵活易扩展,具备健全的插件体系 + - 基于 Node.js,使用主流框架和技术,包括 Koa、Sequelize、React、Formily、Ant Design 等 + - 渐进式开发,上手难度低,对新人友好 + - 不绑架、不强依赖,可任意组合使用或扩展,可用于现有项目中 + +## NocoBase 架构 + +![](https://www.nocobase.com/images/NocoBaseMindMapLite.png) + +[点此查看完整图片](https://www.nocobase.com/images/NocoBaseMindMap.png) + +## 联系 + +如果你希望加入我们一起开发 NocoBase,或者需要提供商业服务,欢迎通过邮件联系我们:hello@nocobase.com + +或者添加我们的微信: + +![](https://www.nocobase.com/images/wechat.png) diff --git a/docs/zh-CN/release-notes.md b/docs/zh-CN/release-notes.md new file mode 100644 index 000000000..f30562f67 --- /dev/null +++ b/docs/zh-CN/release-notes.md @@ -0,0 +1,72 @@ +# 更新日志 + +## 准备发布 + +### 新功能 + +- 打包工具 `@nocobase/build` +- cli 工具 `@nocobase/cli` +- devtools 包 `@nocobase/devtools` +- JavaScript 版本的 SDK `@nocobase/sdk` +- 全新的文档(v0.7) + +### 问题修复和改进 +- 将 NocoBase 无代码平台插件放到一起 `@nocobase/preset-nocobase` +- 改进 create 脚手架 `create-nocobase-app` +- 官网文档主题 `dumi-theme-nocobase` + +## 2022/05/14 ~ v0.7.0-alpha.34 + +- feat: add plugins:getPinned action api +- Fix(plugin workflow): fix cannot get job result properties (#382) +- feat: exist on server start throw error (#374) +- chore: application options (#375) +- fix: not in operator with null value record (#377) + +## 2022/05/13 ~ v0.7.0-alpha.33 + +- fix: link-to field data scope error (#1337) +- feat(plugin workflow): revisions (#379) +- fix(database): fix option-parser include list index (#371) +- fix(plugin-worklfow): fix duplicated description in fields values (#368) +- fix(database): fix type and transaction in repository (#366) +- fix(plugin workflow): fix transaction of execution (#364) + +## 2022/05/05 ~ v0.7.0-alpha.30 + +- fix(client): upgrade formily packages +- fix(client): setFormValueChanged must be defined + +## 2022/05/01 ~ v0.7.0-alpha.27 + +- fix: use wrapper when greater than one column +- fix: props for CreateFormBlockInitializers +- fix: add schema initializer icon +- fix: plugin workflow (#349) +- fix: db:sync not working (#348) +- fix(plugin-workflow): fix trigger bind logic to avoid duplication (#347) +- Fix(plugin workflow) (#346) +- fix: action open mode +- Fix: menu url style (#344) +- feat: action loading +- fix: compile the label field +- fix: invalid drag and drop sort + +## 2022/04/25 ~ v0.7.0-alpha.16 + +- fix: cannot find module mkdirp (#330) +- Fix(plugin workflow): UX issues (#329) +- fix(plugin-file-manager): test failed +- fix(app-server): dist options + +## 2022/04/25 ~ v0.7.0-alpha.0 + +- 内测版 + +## 2021/10/07 ~ v0.5.0 + +- 第二个预览版 + +## 2021/04/07 ~ v0.4.0 + +- 第一个预览版 diff --git a/docs/zh-CN/roadmap.md b/docs/zh-CN/roadmap.md new file mode 100644 index 000000000..2e8c7860c --- /dev/null +++ b/docs/zh-CN/roadmap.md @@ -0,0 +1,30 @@ +# 路线图 + +## 正在迭代 + +- `core` 角色和权限 +- `core` 系统升级 +- `core` 表关系 +- `plugin` 工作流 +- `doc` 开发文档 + +## 正在开发 + +- `core` 自定义操作 +- `plugin` 操作记录 +- `plugin` 连接第三方数据库 + +## 准备开发 + +- `ui` 移动端响应 +- `plugin` 导出 +- `core` 插件管理器 + +## 未来开发 + +- `plugin` 审批 +- `plugin` 全文搜索 +- `plugin` 分享页面 +- `plugin` 引用和复制关系表的数据 +- `plugin` 公式 +- `plugin` 数据可视化 \ No newline at end of file diff --git a/docs/zh-CN/thanks.md b/docs/zh-CN/thanks.md new file mode 100644 index 000000000..f835eba67 --- /dev/null +++ b/docs/zh-CN/thanks.md @@ -0,0 +1,12 @@ +# 致谢 + +NocoBase 使用了优秀的、成熟的开源产品,向他们表示诚挚的谢意: + +- [Ant Design](https://ant.design/) +- [Dnd Kit](https://dndkit.com/) +- [Formily](https://github.com/alibaba/formily) +- [I18next](https://www.i18next.com/) +- [Koa](https://koajs.com/) +- [React](https://reactjs.org/) +- [Sequelize](https://sequelize.org/) +- [UmiJS](https://umijs.org/) diff --git a/docs/zh-CN/user-manual/advanced-guide/actions.md b/docs/zh-CN/user-manual/advanced-guide/actions.md new file mode 100644 index 000000000..b403cd20d --- /dev/null +++ b/docs/zh-CN/user-manual/advanced-guide/actions.md @@ -0,0 +1,3 @@ +# 操作 + +TO DO \ No newline at end of file diff --git a/docs/zh-CN/user-manual/advanced-guide/blocks.md b/docs/zh-CN/user-manual/advanced-guide/blocks.md new file mode 100644 index 000000000..716368802 --- /dev/null +++ b/docs/zh-CN/user-manual/advanced-guide/blocks.md @@ -0,0 +1,63 @@ +# 区块 + +区块是用来展示和操作数据的视图。区块可以放在页面和弹窗里。一个完整的区块由三部分组成: + +1. 内容区:区块的主体 +2. 操作区:可以放置各种操作按钮,用于操作区块数据 +3. 配置区:操作区块配置的按钮 + +![6.block.jpg](./blocks/6.block.jpg) + +## 添加区块 + +进入界面配置模式,在页面和弹窗内点击 Add block 按钮即可添加区块。选项分为 4 步: + +1. 选择区块类型:目前可用的区块类型包括表格、表单、详情、日历、看板、Markdown +2. 选择 Collection:此处会列出所有的 Collection +3. 选择创建方式:创建空白区块,或者从复制区块模板,或者引用区块模板 +4. 选择模板:若第 3 步选择了从模板创建,则在第 4 步选择模板 + +![6.block-add.jpg](./blocks/6.block-add.jpg) + +## 配置区块 + +配置区块包括三方面的内容: + +- 配置区块内容 +- 配置区块操作 +- 配置区块属性 + +### 配置区块内容 + +以表格区块为例,区块内容是指表格中要显示的列。点击 Configure columns 即可配置要显示的列: + +![6.block-content.gif](./blocks/6.block-content.gif) + +### 配置区块操作 + +以表格区块为例,有筛选、添加、删除、查看、编辑、自定义等操作可选。点击 Configure actions 按钮可以配置操作。其中,每个操作按钮都可以单独配置属性: + +![6.block-content.gif](./blocks/6.block-content%201.gif) + +### 配置区块属性 + +将光标移到区块右上角,会看到区块配置按钮。以表格区块为例,可以配置的属性有: + +- Drag & drop sorting +- Set the data scope +- Set default sorting rules +- Records per page + +![6.collection-setting.gif](./blocks/6.collection-setting.gif) + +## 区块类型 + +目前 NocoBase 支持以下几种区块: + +- 表格 +- 表单 +- 详情 +- 看板 +- 日历 +- 相关数据 +- Markdown \ No newline at end of file diff --git a/docs/zh-CN/user-manual/advanced-guide/blocks/6.block-add.jpg b/docs/zh-CN/user-manual/advanced-guide/blocks/6.block-add.jpg new file mode 100755 index 000000000..cd609413f Binary files /dev/null and b/docs/zh-CN/user-manual/advanced-guide/blocks/6.block-add.jpg differ diff --git a/docs/zh-CN/user-manual/advanced-guide/blocks/6.block-content 1.gif b/docs/zh-CN/user-manual/advanced-guide/blocks/6.block-content 1.gif new file mode 100755 index 000000000..8f79be9fa Binary files /dev/null and b/docs/zh-CN/user-manual/advanced-guide/blocks/6.block-content 1.gif differ diff --git a/docs/zh-CN/user-manual/advanced-guide/blocks/6.block-content.gif b/docs/zh-CN/user-manual/advanced-guide/blocks/6.block-content.gif new file mode 100755 index 000000000..8f79be9fa Binary files /dev/null and b/docs/zh-CN/user-manual/advanced-guide/blocks/6.block-content.gif differ diff --git a/docs/zh-CN/user-manual/advanced-guide/blocks/6.block.jpg b/docs/zh-CN/user-manual/advanced-guide/blocks/6.block.jpg new file mode 100755 index 000000000..b609af5a0 Binary files /dev/null and b/docs/zh-CN/user-manual/advanced-guide/blocks/6.block.jpg differ diff --git a/docs/zh-CN/user-manual/advanced-guide/blocks/6.collection-setting.gif b/docs/zh-CN/user-manual/advanced-guide/blocks/6.collection-setting.gif new file mode 100755 index 000000000..d969e34e8 Binary files /dev/null and b/docs/zh-CN/user-manual/advanced-guide/blocks/6.collection-setting.gif differ diff --git a/docs/zh-CN/user-manual/advanced-guide/collections.md b/docs/zh-CN/user-manual/advanced-guide/collections.md new file mode 100644 index 000000000..4f07705ce --- /dev/null +++ b/docs/zh-CN/user-manual/advanced-guide/collections.md @@ -0,0 +1,42 @@ +# 数据表 + +开发一个系统之前,我们通常要对业务进行抽象,建立数据模型。在 NocoBase 里,数据表的概念与关系型数据库的数据表概念相近。 + +点击“数据表配置”按钮,进入数据表配置界面。在这里,可以对数据表进行新增、编辑、删除等操作。 + +![4.collections.gif](./collections/4.collections.gif) + +## 字段类型 + +- 基本类型 + - 单行文本 + - 多行文本 + - 手机号码 + - 电子邮箱 + - 数字 + - 百分比 + - 密码 + - 图标 +- 选择类型 + - 勾选 + - 下拉菜单(单选) + - 下拉菜单(多选) + - 单选框 + - 复选框 + - 中国行政区 +- 多媒体 + - 附件 + - Markdown + - 富文本 +- 日期 & 时间 + - 日期 + - 时间 +- 关系类型 + - 关联 + - 子表格 +- 系统信息 + - ID + - 创建日期 + - 最后修改日期 + - 创建人 + - 最后修改人 \ No newline at end of file diff --git a/docs/zh-CN/user-manual/advanced-guide/collections/4.collections.gif b/docs/zh-CN/user-manual/advanced-guide/collections/4.collections.gif new file mode 100755 index 000000000..dd0f01a4d Binary files /dev/null and b/docs/zh-CN/user-manual/advanced-guide/collections/4.collections.gif differ diff --git a/docs/zh-CN/user-manual/advanced-guide/file-storages.md b/docs/zh-CN/user-manual/advanced-guide/file-storages.md new file mode 100644 index 000000000..f26b9d2ef --- /dev/null +++ b/docs/zh-CN/user-manual/advanced-guide/file-storages.md @@ -0,0 +1,11 @@ +# 文件存储 + +NocoBase 文件存储目前支持以下三种方式 + +- Local storage +- Aliyun OSS +- Amazon S3 + +点击 File storage 进入配置界面,添加相应的信息即可。 + +![8.storage.gif](./file-storages/8.storage.gif) \ No newline at end of file diff --git a/docs/zh-CN/user-manual/advanced-guide/file-storages/8.storage.gif b/docs/zh-CN/user-manual/advanced-guide/file-storages/8.storage.gif new file mode 100755 index 000000000..c9edfa8f9 Binary files /dev/null and b/docs/zh-CN/user-manual/advanced-guide/file-storages/8.storage.gif differ diff --git a/docs/zh-CN/user-manual/advanced-guide/functional-zoning.md b/docs/zh-CN/user-manual/advanced-guide/functional-zoning.md new file mode 100644 index 000000000..d9902ee1e --- /dev/null +++ b/docs/zh-CN/user-manual/advanced-guide/functional-zoning.md @@ -0,0 +1,9 @@ +# 功能分区 + +NocoBase 默认内置一个布局模板,这个布局模板的界面主要分为三个区域: + +1. 配置入口区。具备系统配置权限的用户,可以在这里看到界面配置、数据表配置、角色和权限、区块模板、工作流,以及其他扩展的配置选项。 +2. 菜单区。顶部是一级菜单,左侧是二级及以下层级的菜单。每个菜单项都可以配置为菜单分组、页面、外部链接。 +3. 区块容器。这里是页面的区块容器,在里面可以放置各种各样的区块。 + +![3.zone.jpg](./functional-zoning/3.zone.jpg) \ No newline at end of file diff --git a/docs/zh-CN/user-manual/advanced-guide/functional-zoning/3.zone.jpg b/docs/zh-CN/user-manual/advanced-guide/functional-zoning/3.zone.jpg new file mode 100755 index 000000000..9507d2c7e Binary files /dev/null and b/docs/zh-CN/user-manual/advanced-guide/functional-zoning/3.zone.jpg differ diff --git a/docs/zh-CN/user-manual/advanced-guide/menus.md b/docs/zh-CN/user-manual/advanced-guide/menus.md new file mode 100644 index 000000000..d41aa14ef --- /dev/null +++ b/docs/zh-CN/user-manual/advanced-guide/menus.md @@ -0,0 +1,32 @@ +# 菜单 + +NocoBase 的默认菜单位置在顶部和左侧。顶部是一级菜单,左侧是二级及以下层级的菜单。 + +菜单项支持三种类型: + +- 菜单分组 +- 页面 +- 外部链接 + +进入界面配置模式之后,可以添加和编辑菜单,也可以对菜单项进行排序。 + +## 添加 + +![5.menu-add.jpg](./menus/5.menu-add.jpg) + +点击 Add menu item,选择添加的类型。支持无限级子菜单。 + +## 配置和排序 + +将光标移到菜单项上,右上角会出现排序和配置按钮。按住排序按钮,可以拖拽排序。 + +对菜单项可操作的配置: + +- Edit +- Move to +- Insert before +- Insert after +- Insert Inner +- Delete + +![5.menu-edit.jpg](./menus/5.menu-edit.jpg) \ No newline at end of file diff --git a/docs/zh-CN/user-manual/advanced-guide/menus/5.menu-add.jpg b/docs/zh-CN/user-manual/advanced-guide/menus/5.menu-add.jpg new file mode 100755 index 000000000..da89a6f93 Binary files /dev/null and b/docs/zh-CN/user-manual/advanced-guide/menus/5.menu-add.jpg differ diff --git a/docs/zh-CN/user-manual/advanced-guide/menus/5.menu-edit.jpg b/docs/zh-CN/user-manual/advanced-guide/menus/5.menu-edit.jpg new file mode 100755 index 000000000..0252465f7 Binary files /dev/null and b/docs/zh-CN/user-manual/advanced-guide/menus/5.menu-edit.jpg differ diff --git a/docs/zh-CN/user-manual/advanced-guide/plugins.md b/docs/zh-CN/user-manual/advanced-guide/plugins.md new file mode 100644 index 000000000..f007e86c9 --- /dev/null +++ b/docs/zh-CN/user-manual/advanced-guide/plugins.md @@ -0,0 +1 @@ +# 插件 diff --git a/docs/zh-CN/user-manual/advanced-guide/plugins/Workflow 7229c53cffc8429dbf7acb58cac90a76.md b/docs/zh-CN/user-manual/advanced-guide/plugins/Workflow 7229c53cffc8429dbf7acb58cac90a76.md new file mode 100755 index 000000000..d9afb34e2 --- /dev/null +++ b/docs/zh-CN/user-manual/advanced-guide/plugins/Workflow 7229c53cffc8429dbf7acb58cac90a76.md @@ -0,0 +1,3 @@ +# Workflow + +TO DO \ No newline at end of file diff --git a/docs/zh-CN/user-manual/advanced-guide/roles-permissions.md b/docs/zh-CN/user-manual/advanced-guide/roles-permissions.md new file mode 100644 index 000000000..c64e82982 --- /dev/null +++ b/docs/zh-CN/user-manual/advanced-guide/roles-permissions.md @@ -0,0 +1,3 @@ +# 角色和权限 + +TO DO \ No newline at end of file diff --git a/docs/zh-CN/user-manual/advanced-guide/system-settings.md b/docs/zh-CN/user-manual/advanced-guide/system-settings.md new file mode 100644 index 000000000..a4b550cab --- /dev/null +++ b/docs/zh-CN/user-manual/advanced-guide/system-settings.md @@ -0,0 +1,10 @@ +# 系统配置 + +点击 System settings 进入系统配置,可以配置的属性包括: + +- System title +- Logo +- Language +- Allow sign up + +![9.system.gif](./system-settings/9.system.gif) \ No newline at end of file diff --git a/docs/zh-CN/user-manual/advanced-guide/system-settings/9.system.gif b/docs/zh-CN/user-manual/advanced-guide/system-settings/9.system.gif new file mode 100755 index 000000000..e1d26b471 Binary files /dev/null and b/docs/zh-CN/user-manual/advanced-guide/system-settings/9.system.gif differ diff --git a/docs/zh-CN/user-manual/advanced-guide/tabs.md b/docs/zh-CN/user-manual/advanced-guide/tabs.md new file mode 100644 index 000000000..57da5f6be --- /dev/null +++ b/docs/zh-CN/user-manual/advanced-guide/tabs.md @@ -0,0 +1,9 @@ +# 标签页 + +在单条数据的页面或弹窗里,可以添加多个标签页,向每个标签页里添加不同的区块,从而显示不同的内容和操作。比如,在一个顾客信息的弹窗里,添加 3 个标签页,分别用来显示顾客的个人信息、订单记录、顾客评价: + +![7.tabs.gif](./tabs/7.tabs.gif) + +或者在一条待发货的订单记录里,在第 1 个标签页里放置操作发货的表单区块,实现快捷发货;第 2 个标签页放置关联数据区块,用来显示当前订单的订单商品;第 3 个标签页放置订单详情区块: + +![7.tabs-2.gif](./tabs/7.tabs-2.gif) diff --git a/docs/zh-CN/user-manual/advanced-guide/tabs/7.tabs-2.gif b/docs/zh-CN/user-manual/advanced-guide/tabs/7.tabs-2.gif new file mode 100755 index 000000000..3699ad9e7 Binary files /dev/null and b/docs/zh-CN/user-manual/advanced-guide/tabs/7.tabs-2.gif differ diff --git a/docs/zh-CN/user-manual/advanced-guide/tabs/7.tabs.gif b/docs/zh-CN/user-manual/advanced-guide/tabs/7.tabs.gif new file mode 100755 index 000000000..df7c895aa Binary files /dev/null and b/docs/zh-CN/user-manual/advanced-guide/tabs/7.tabs.gif differ diff --git a/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started.md b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started.md new file mode 100644 index 000000000..ca91c75ce --- /dev/null +++ b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started.md @@ -0,0 +1,91 @@ +# 5 分钟上手 + +让我们花 5 分钟时间用 NocoBase 搭建一个订单管理系统。 + +## 1. 创建数据表和字段 + +在这个订单管理系统中,我们需要掌握`Customers`、`Products`、`Orders`的信息,他们彼此之间互相关联。经过分析,我们需要建立 4 个数据表,它们的字段分别为: + +- Customers + - 姓名 + - 生日 + - 性别 + - 电话 + - 订单(购买过的所有订单,数据来自`Orders`,每条顾客数据包含多条订单数据) +- Products + - 商品名称 + - 描述 + - 图片 + - 价格 + - 订单明细(在哪些订单中购买了该商品,数据来自`Order Details`,每条商品数据属于多条订单明细数据) +- Orders + - 订单编号 + - 总价 + - 备注 + - 地址 + - 顾客(该订单所属的顾客,数据来自`Customers`,每条订单数据属于一条顾客数据) + - 订单明细(该订单中的商品,数据来自`Order Details`,每条订单数据包含多条订单明细数据) +- Order Details + - 订单(该明细所属的订单,数据来自`Orders`,每条订单明细数据属于一条订单数据) + - 商品(该明细所包含的商品,数据来自`Products`,每条订单明细数据包含一条商品数据) + - 数量 + +其中,有下划线的字段是关系字段,关联到其他数据表。 + +接下来,点击“数据表配置”按钮,进入数据表配置界面,创建第一个 Collection `Customers`。 + +![1.customers.gif](./5-minutes-to-get-started/1.customers.gif) + +然后点击“字段配置”,为`Customers` 添加 name 字段,它是单行文本类型。 + +![2.field.gif](./5-minutes-to-get-started/2.field.gif) + +用同样的方法,为`Customers` 添加 Birthday、Gender、Phone,它们分别是日期类型、单项选择类型、手机号码类型。 + +![1.fields.jpg](./5-minutes-to-get-started/1.fields.jpg) + +用同样的方法,创建 Collection `Products`、`Orders`、`Order Details` 以及它们的字段。 + +![1.collections.jpg](./5-minutes-to-get-started/1.collections.jpg) + + + +其中,对于关系字段,我们要选择 Link to 类型,从而建立数据表之间的关联。在这个例子中,我们将 `Products` 与 `Orders` 关联,并使用 `Order Details` 作为中间表。 + +![1.relation.jpg](./5-minutes-to-get-started/1.relation.jpg) + +将数据表和字段创建完成后,我们开始制作界面。 + +## 2. 配置菜单和页面 + +我们需要顾客、订单、商品三个页面展示和管理我们的数据。 + +点击界面配置按钮,进入界面配置模式。在界面配置模式下,我们可以添加菜单项,添加页面,在页面内布置区块。 + +![1.editor.gif](./5-minutes-to-get-started/1.editor.gif) + +点击添加菜单项,添加菜单分组 “Customers” 和 “Orders & Products” ,然后添加子菜单页面 “All Orders” 和 “Products”。 + +![1.menu.gif](./5-minutes-to-get-started/1.menu.gif) + +添加完菜单和页面之后,我们可以在页面内添加和配置区块了。 + +## 3. 添加和配置区块 + +NocoBase 目前支持表格、看板、日历、表单、详情等类型的区块,它们可以将数据表中的数据展示出来,并可以对数据进行操作。显然,顾客、订单、商品 都适合用表格的方式展示和操作。 + +我们在“所有订单”页面,添加一个表格区块,数据源选择 Collection `Orders` ,并为这个表格区块配置需要显示的列。 + +![1.block.gif](./5-minutes-to-get-started/1.block.gif) + +给这个表格区块配置操作,包括筛选、添加、删除、查看、编辑。 + +![1.action.gif](./5-minutes-to-get-started/1.action.gif) + +为新增、编辑、查看等操作配置表单和详情区块。 + +![1.action-block.gif](./5-minutes-to-get-started/1.action-block.gif) + +然后,用同样的方法,在 Products 和 Customers 页面布置表格区块。完成后,退出界面配置模式,进入使用模式,一个简单的订单管理系统就完成了。 + +![1.finished.gif](./5-minutes-to-get-started/1.finished.gif) \ No newline at end of file diff --git a/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.action-block.gif b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.action-block.gif new file mode 100755 index 000000000..db4d312de Binary files /dev/null and b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.action-block.gif differ diff --git a/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.action.gif b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.action.gif new file mode 100755 index 000000000..f8a8f2ba6 Binary files /dev/null and b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.action.gif differ diff --git a/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.block.gif b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.block.gif new file mode 100755 index 000000000..b2cbbcb79 Binary files /dev/null and b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.block.gif differ diff --git a/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.collections.jpg b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.collections.jpg new file mode 100755 index 000000000..a03de2c37 Binary files /dev/null and b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.collections.jpg differ diff --git a/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.customers.gif b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.customers.gif new file mode 100755 index 000000000..eafca0b67 Binary files /dev/null and b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.customers.gif differ diff --git a/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.editor.gif b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.editor.gif new file mode 100755 index 000000000..d5e7a84df Binary files /dev/null and b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.editor.gif differ diff --git a/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.fields.jpg b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.fields.jpg new file mode 100755 index 000000000..79195e552 Binary files /dev/null and b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.fields.jpg differ diff --git a/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.finished.gif b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.finished.gif new file mode 100755 index 000000000..be301d4ea Binary files /dev/null and b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.finished.gif differ diff --git a/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.menu.gif b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.menu.gif new file mode 100755 index 000000000..d1f43c62a Binary files /dev/null and b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.menu.gif differ diff --git a/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.relation.jpg b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.relation.jpg new file mode 100755 index 000000000..8f5bce152 Binary files /dev/null and b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/1.relation.jpg differ diff --git a/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/2.field.gif b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/2.field.gif new file mode 100755 index 000000000..c544c710a Binary files /dev/null and b/docs/zh-CN/user-manual/introduction/5-minutes-to-get-started/2.field.gif differ diff --git a/docs/zh-CN/user-manual/introduction/important-features.md b/docs/zh-CN/user-manual/introduction/important-features.md new file mode 100644 index 000000000..77a203858 --- /dev/null +++ b/docs/zh-CN/user-manual/introduction/important-features.md @@ -0,0 +1,19 @@ +# NocoBase 特色 + +## 1. “数据结构”与“使用界面”分离 + +多数以表单、表格或者流程驱动的无代码产品都是在使用界面上直接创建数据结构,比如 Airtable 在表格里新增一列就是新增一个字段。这样的好处是使用简单,不足是功能和灵活性受限,难以满足较复杂场景的需求。 + +NocoBase 采用数据结构与使用界面分离的设计思路,可以为数据表创建任意数量、任意形态的区块(数据视图),每个区块里可以定义不同的样式、文案、操作。这样既兼顾了无代码的简单操作,又具备了原生开发的灵活性。 + +![2.collection-block.png](./important-features/2.collection-block.png) + +## 2. “系统配置”与“系统使用”分离 + +NocoBase 用来开发相对复杂的业务系统。在这些场景中,我们希望系统开发者与系统使用者是不同的角色。使用者看到的是一个成熟的、经过精心设计的系统,就像原生开发出来的产品一样,而不是僵化的、可以自由拖拽的、随时修改的系统;而开发者则可以采用所见即所得的方式快速开发系统。 + +![2.user-root.gif](./important-features/2.user-root.gif) + +## 3. 功能即插件 + +NocoBase 采用插件化架构,所有新功能都可以通过开发和安装插件来实现。未来我们将搭建插件市场,扩展功能就像在手机上安装 APP 一样简单。 \ No newline at end of file diff --git a/docs/zh-CN/user-manual/introduction/important-features/2.collection-block.png b/docs/zh-CN/user-manual/introduction/important-features/2.collection-block.png new file mode 100755 index 000000000..7389064cb Binary files /dev/null and b/docs/zh-CN/user-manual/introduction/important-features/2.collection-block.png differ diff --git a/docs/zh-CN/user-manual/introduction/important-features/2.user-root.gif b/docs/zh-CN/user-manual/introduction/important-features/2.user-root.gif new file mode 100755 index 000000000..92d668c14 Binary files /dev/null and b/docs/zh-CN/user-manual/introduction/important-features/2.user-root.gif differ diff --git a/docs/zh-CN/user-manual/introduction/why-nocobase.md b/docs/zh-CN/user-manual/introduction/why-nocobase.md new file mode 100644 index 000000000..d0dc1ae96 --- /dev/null +++ b/docs/zh-CN/user-manual/introduction/why-nocobase.md @@ -0,0 +1,10 @@ +# 适用场景 + +如果你同时有以下需求,NocoBase 就是为你设计的: + +- 开发组织内部管理系统 +- 在很短时间内通过无代码的方式完成 90% 的系统开发 +- 自由扩展开发,满足剩余 10% 的个性化需求部分 +- 系统功能需要频繁变动 +- 私有部署,掌控全部代码和数据 +- 可免费使用,也可以付费获得更多技术支持 diff --git a/docs/zh-CN/who.md b/docs/zh-CN/who.md new file mode 100644 index 000000000..97617d54a --- /dev/null +++ b/docs/zh-CN/who.md @@ -0,0 +1,10 @@ +# 适用场景 + +如果你有以下需求,NocoBase 就是为你设计的: + +- 开发组织内部管理系统 +- 通过无代码开发,满足大部分业务需求 +- 通过扩展开发,满足个性化业务需求 +- 系统功能需要频繁变动 +- 私有部署,掌控全部代码和数据 +- 可免费使用,也可以付费获得更多技术支持 diff --git a/docs/zh-CN/why.md b/docs/zh-CN/why.md new file mode 100644 index 000000000..5c659013e --- /dev/null +++ b/docs/zh-CN/why.md @@ -0,0 +1,21 @@ +# 与众不同之处 + +## 1. “数据结构”与“使用界面”分离 + +多数以表单、表格或者流程驱动的无代码产品都是在使用界面上直接创建数据结构,比如 Airtable 在表格里新增一列就是新增一个字段。这样的好处是使用简单,不足是功能和灵活性受限,难以满足较复杂场景的需求。 + +NocoBase 采用数据结构与使用界面分离的设计思路,可以为数据表创建任意数量、任意形态的区块(数据视图),每个区块里可以定义不同的样式、文案、操作。这样既兼顾了无代码的简单操作,又具备了原生开发的灵活性。 + +![2.collection-block.png](./user-manual/introduction/important-features/2.collection-block.png) + +## 2. “系统配置”与“系统使用”分离 + +NocoBase 用来开发相对复杂的业务系统。在这些场景中,我们希望系统开发者与系统使用者是不同的角色。使用者看到的是一个成熟的、经过精心设计的系统,就像原生开发出来的产品一样,而不是僵化的、可以自由拖拽的、随时修改的系统;而开发者则可以采用所见即所得的方式快速开发系统。 + +![2.user-root.gif](./user-manual/introduction/important-features/2.user-root.gif) + +## 3. 功能即插件 + +NocoBase 采用插件化架构,所有新功能都可以通过开发和安装插件来实现。未来我们将搭建插件市场,扩展功能就像在手机上安装 APP 一样简单。 + +![](https://www.nocobase.com/images/NocoBaseMindMapLite.png) diff --git a/jest.cli.js b/jest.cli.js deleted file mode 100644 index 8be1963dd..000000000 --- a/jest.cli.js +++ /dev/null @@ -1,23 +0,0 @@ -const dotenv = require('dotenv'); -const { existsSync } = require('fs'); -const { resolve } = require('path') -const yargs = require('yargs'); - -const envFile = existsSync(resolve(__dirname, '.env.test')) ? '.env.test' : '.env'; - -dotenv.config({ - path: resolve(__dirname, envFile), -}); - -if (yargs.argv.dbDialect) { - process.env.DB_DIALECT = yargs.argv.dbDialect; -} - -if (yargs.argv.dbPort) { - process.env.DB_PORT = yargs.argv.dbPort; -} - -console.log('DB_DIALECT:', process.env.DB_DIALECT); -console.log('DB_PORT:', process.env.DB_PORT); - -require('jest-cli/bin/jest'); diff --git a/jest.config.js b/jest.config.js index 2c327d6a9..40acf3bf3 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,7 +1,8 @@ const { pathsToModuleNameMapper } = require('ts-jest/utils'); -const { compilerOptions } = require('./tsconfig.jest.json'); +const { compilerOptions } = require('./tsconfig.json'); module.exports = { + rootDir: process.cwd(), collectCoverage: false, verbose: true, testEnvironment: 'jsdom', @@ -18,7 +19,7 @@ module.exports = { diagnostics: false, }, }, - modulePathIgnorePatterns: ['/esm/', '/lib/'], + modulePathIgnorePatterns: ['/esm/', '/es/', '/dist/', '/lib/'], coveragePathIgnorePatterns: [ '/node_modules/', '/__tests__/', diff --git a/lerna.json b/lerna.json index 7306cf96d..7054f6354 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "0.7.0-alpha.34", + "version": "independent", "npmClient": "yarn", "useWorkspaces": true, "npmClientArgs": [ diff --git a/package.json b/package.json index 7c0fe7ab1..970bb5de0 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,8 @@ { - "name": "root", + "name": "nocobase", "private": true, "workspaces": [ - "packages/app/*", - "packages/core/*", - "packages/plugins/*" + "packages/*/*" ], "license": "Apache-2.0", "licenses": [ @@ -14,18 +12,15 @@ } ], "scripts": { - "start": "concurrently --kill-others \"yarn start-server -s\" \"yarn start-client\"", - "start-pm2": "pm2-runtime start --node-args=\"-r dotenv/config\" packages/app/server/lib/index.js -- start", - "start-docs": "dumi dev", - "bootstrap": "lerna bootstrap", - "clean": "rimraf -rf packages/{app,core,plugins}/*/{lib,esm,dist} && lerna clean", - "nocobase": "cross-env DOTENV_CONFIG_PATH=.env ts-node-dev -r dotenv/config -r tsconfig-paths/register ./packages/app/server/src/index.ts", - "start-client": "cd packages/app/client && yarn start", - "start-server": "yarn nocobase start", - "build": "lerna run build", - "build-docs": "dumi build", - "test": "node ./jest.cli.js -i", + "nocobase": "nocobase", + "dev": "nocobase dev", + "start": "nocobase start", + "build": "nocobase build", + "test": "nocobase test", + "doc": "nocobase doc", + "postinstall": "nocobase postinstall", "lint": "eslint .", + "clean": "nocobase clean", "version:alpha": "lerna version prerelease --preid alpha --force-publish=* --no-git-tag-version -m \"chore(versions): publish packages %s\"", "release:force": "lerna publish from-package --yes", "release": "lerna publish" @@ -43,56 +38,9 @@ "@commitlint/cli": "^16.1.0", "@commitlint/config-conventional": "^16.0.0", "@commitlint/prompt-cli": "^16.1.0", - "@testing-library/react": "^12.1.2", - "@types/jest": "^26.0.0", - "@types/koa": "^2.13.4", - "@types/koa-bodyparser": "^4.3.4", - "@types/lodash": "^4.14.177", - "@types/node": "^12.6.8", - "@types/react": "^17.0.0", - "@types/react-dom": "^17.0.0", - "@typescript-eslint/eslint-plugin": "^4.9.1", - "@typescript-eslint/parser": "^4.8.2", - "classnames": "^2.3.1", - "concurrently": "^7.0.0", - "cross-env": "^7.0.3", - "dotenv": "^10.0.0", - "dumi": "^1.1.33", - "eslint": "^7.14.0", - "eslint-config-prettier": "^7.0.0", - "eslint-plugin-import": "^2.13.0", - "eslint-plugin-markdown": "^2.0.1", - "eslint-plugin-node": "^11.1.0", - "eslint-plugin-prettier": "^3.1.0", - "eslint-plugin-promise": "^4.0.0", - "eslint-plugin-react": "^7.14.2", - "eslint-plugin-react-hooks": "^4.2.0", - "eslint-plugin-vue": "^7.0.1", "ghooks": "^2.0.4", - "glob": "^7.1.3", - "jest": "^26.0.0", - "jest-codemods": "^0.19.1", - "jest-dom": "^3.1.2", - "jest-localstorage-mock": "^2.3.0", - "jest-styled-components": "6.3.3", - "jest-watch-lerna-packages": "^1.1.0", - "koa": "^2.13.4", - "koa-bodyparser": "^4.3.0", - "lerna": "^4.0.0", - "pm2": "^5.2.0", "prettier": "^2.2.1", "pretty-format": "^24.0.0", - "pretty-quick": "^3.1.0", - "react": "^17.0.1", - "react-dom": "^17.0.1", - "rimraf": "^3.0.0", - "sqlite3": "^5.0.2", - "supertest": "^6.1.6", - "ts-jest": "^26.0.0", - "ts-loader": "^7.0.4", - "ts-node": "^9.1.1", - "ts-node-dev": "^1.1.8", - "tsconfig-paths": "^3.12.0", - "typescript": "^4.1.5" + "pretty-quick": "^3.1.0" } } diff --git a/packages/app/client/.umirc.ts b/packages/app/client/.umirc.ts index 5c58693ad..5e7c80700 100644 --- a/packages/app/client/.umirc.ts +++ b/packages/app/client/.umirc.ts @@ -1,20 +1,14 @@ -import { getUmiConfig } from '@nocobase/utils/umiConfig'; -import dotenv from 'dotenv'; -import { resolve } from 'path'; +import { getUmiConfig, resolveNocobasePackagesAlias } from '@nocobase/devtools/umiConfig'; import { defineConfig } from 'umi'; const umiConfig = getUmiConfig(); -dotenv.config({ - path: resolve(__dirname, '../../../.env'), -}); - process.env.MFSU_AD = 'none'; export default defineConfig({ hash: true, define: { - 'process.env.NOCOBASE_ENV': process.env.NOCOBASE_ENV, + 'process.env.APP_ENV': process.env.APP_ENV, ...umiConfig.define, }, // only proxy when using `umi dev` @@ -28,11 +22,6 @@ export default defineConfig({ routes: [{ path: '/', exact: false, component: '@/pages/index' }], // fastRefresh: {}, chainWebpack(config) { - const clientSrc = resolve(__dirname, '../../core/client/src'); - const utilsSrc = resolve(__dirname, '../../core/utils/src'); - config.module.rules.get('ts-in-node_modules').include.add(clientSrc); - config.resolve.alias.set('@nocobase/client', clientSrc); - config.module.rules.get('ts-in-node_modules').include.add(utilsSrc); - config.resolve.alias.set('@nocobase/utils', utilsSrc); + resolveNocobasePackagesAlias(config); }, }); diff --git a/packages/app/client/package.json b/packages/app/client/package.json index 309b8c63d..1ccddf92c 100644 --- a/packages/app/client/package.json +++ b/packages/app/client/package.json @@ -1,23 +1,9 @@ { "name": "@nocobase/app-client", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "license": "MIT", - "scripts": { - "start": "umi dev", - "build": "umi build", - "postinstall": "node ./umi.cli.js generate tmp", - "test": "umi-test", - "test:coverage": "umi-test --coverage" - }, "devDependencies": { - "@nocobase/client": "0.7.0-alpha.34", - "@types/react": "^17.0.0", - "@types/react-dom": "^17.0.0", - "@umijs/test": "^3.5.20", - "antd": "~4.19.5", - "react": "17.x", - "react-dom": "17.x", - "umi": "^3.5.20" + "@nocobase/client": "0.7.0-alpha.55" }, "repository": { "type": "git", diff --git a/packages/app/client/src/pages/apiClient.ts b/packages/app/client/src/pages/apiClient.ts index 63cba55cf..082319619 100644 --- a/packages/app/client/src/pages/apiClient.ts +++ b/packages/app/client/src/pages/apiClient.ts @@ -1,7 +1,7 @@ import { APIClient } from '@nocobase/client'; const apiClient = new APIClient({ - baseURL: process.env.SERVER_BASE_URL, + baseURL: process.env.API_BASE_URL, }); export default apiClient; diff --git a/packages/app/client/umi.cli.js b/packages/app/client/umi.cli.js deleted file mode 100644 index ba80fce41..000000000 --- a/packages/app/client/umi.cli.js +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env node -try { - require('v8-compile-cache'); - require('umi/lib/cli'); -} catch (error) { - -} diff --git a/packages/app/server/.npmignore b/packages/app/server/.npmignore index 8019620d5..83426817e 100644 --- a/packages/app/server/.npmignore +++ b/packages/app/server/.npmignore @@ -2,7 +2,3 @@ node_modules *.log docs __tests__ -jest.config.js -tsconfig.json -tsconfig.build.json -.fatherrc.ts diff --git a/packages/app/server/package.json b/packages/app/server/package.json index cd660b4f0..0e8c1c38a 100644 --- a/packages/app/server/package.json +++ b/packages/app/server/package.json @@ -1,29 +1,12 @@ { "name": "@nocobase/app-server", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "description": "", "license": "MIT", "main": "./lib/index.js", "types": "./lib/index.d.ts", - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "dependencies": { - "@nocobase/database": "0.7.0-alpha.34", - "@nocobase/plugin-acl": "0.7.0-alpha.34", - "@nocobase/plugin-china-region": "0.7.0-alpha.34", - "@nocobase/plugin-client": "0.7.0-alpha.34", - "@nocobase/plugin-collection-manager": "0.7.0-alpha.34", - "@nocobase/plugin-error-handler": "0.7.0-alpha.34", - "@nocobase/plugin-file-manager": "0.7.0-alpha.34", - "@nocobase/plugin-system-settings": "0.7.0-alpha.34", - "@nocobase/plugin-ui-routes-storage": "0.7.0-alpha.34", - "@nocobase/plugin-ui-schema-storage": "0.7.0-alpha.34", - "@nocobase/plugin-users": "0.7.0-alpha.34", - "@nocobase/plugin-workflow": "0.7.0-alpha.34", - "@nocobase/server": "0.7.0-alpha.34" + "@nocobase/preset-nocobase": "0.7.0-alpha.55" }, "repository": { "type": "git", diff --git a/packages/app/server/src/config/database.ts b/packages/app/server/src/config/database.ts index cc6f3bc65..25c7beb7e 100644 --- a/packages/app/server/src/config/database.ts +++ b/packages/app/server/src/config/database.ts @@ -1,27 +1,12 @@ import { IDatabaseOptions } from '@nocobase/database'; -import { resolve } from 'path'; -const dialect = process.env.DB_DIALECT as any; - -let databaseConfig: IDatabaseOptions = { - dialect, - logging: process.env.DB_LOG_SQL === 'on' ? console.log : false, -}; - -if (dialect === 'sqlite') { - databaseConfig = { - ...databaseConfig, - storage: resolve(process.cwd(), process.env.DB_STORAGE || 'db.sqlite'), - }; -} else { - databaseConfig = { - ...databaseConfig, - username: process.env.DB_USER, - password: process.env.DB_PASSWORD, - database: process.env.DB_DATABASE, - host: process.env.DB_HOST, - port: process.env.DB_PORT as any, - }; -} - -export default databaseConfig; +export default { + logging: process.env.DB_LOGGING === 'on' ? console.log : false, + dialect: process.env.DB_DIALECT as any, + storage: process.env.DB_STORAGE, + username: process.env.DB_USER, + password: process.env.DB_PASSWORD, + database: process.env.DB_DATABASE, + host: process.env.DB_HOST, + port: process.env.DB_PORT as any, +} as IDatabaseOptions; diff --git a/packages/app/server/src/config/index.ts b/packages/app/server/src/config/index.ts new file mode 100644 index 000000000..05aa3c881 --- /dev/null +++ b/packages/app/server/src/config/index.ts @@ -0,0 +1,9 @@ +import database from './database'; +import plugins from './plugins'; +import resourcer from './resourcer'; + +export default { + database, + resourcer, + plugins, +}; diff --git a/packages/app/server/src/config/plugins.ts b/packages/app/server/src/config/plugins.ts index dd32ae34d..597f808f0 100644 --- a/packages/app/server/src/config/plugins.ts +++ b/packages/app/server/src/config/plugins.ts @@ -1,5 +1,4 @@ import { PluginsConfigurations } from '@nocobase/server'; -import { resolve } from 'path'; export default [ '@nocobase/plugin-error-handler', @@ -8,21 +7,9 @@ export default [ '@nocobase/plugin-ui-routes-storage', '@nocobase/plugin-file-manager', '@nocobase/plugin-system-settings', - [ - '@nocobase/plugin-users', - { - jwt: { - secret: process.env.JWT_SECRET, - }, - }, - ], + '@nocobase/plugin-users', '@nocobase/plugin-acl', '@nocobase/plugin-china-region', '@nocobase/plugin-workflow', - [ - '@nocobase/plugin-client', - { - dist: resolve(process.cwd(), 'packages/app/client/dist'), - }, - ], + '@nocobase/plugin-client', ] as PluginsConfigurations; diff --git a/packages/app/server/src/config/resourcer.ts b/packages/app/server/src/config/resourcer.ts index e3dd1eb92..77cbf8ebc 100644 --- a/packages/app/server/src/config/resourcer.ts +++ b/packages/app/server/src/config/resourcer.ts @@ -1,3 +1,3 @@ export default { - prefix: process.env.SERVER_BASE_PATH, + prefix: process.env.API_BASE_PATH, }; diff --git a/packages/app/server/src/index.ts b/packages/app/server/src/index.ts index aae0494b5..eae2f074d 100644 --- a/packages/app/server/src/index.ts +++ b/packages/app/server/src/index.ts @@ -1,8 +1,10 @@ -import { Application, readConfig } from '@nocobase/server'; -import * as path from 'path'; +import { Application } from '@nocobase/server'; +import config from './config'; -(async () => { - const config = await readConfig(path.join(__dirname, './config')); - const app = new Application(config); - await app.parse(); -})(); +const app = new Application(config); + +if (require.main === module) { + app.parse(); +} + +export default app; diff --git a/packages/app/server/tsconfig.build.json b/packages/app/server/tsconfig.build.json deleted file mode 100644 index 9bdd87769..000000000 --- a/packages/app/server/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./lib", - "declaration": true - }, - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/app/server/tsconfig.json b/packages/app/server/tsconfig.json deleted file mode 100644 index bf4bd3fa9..000000000 --- a/packages/app/server/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/core/acl/package.json b/packages/core/acl/package.json index d11a4cdbf..48ed3f161 100644 --- a/packages/core/acl/package.json +++ b/packages/core/acl/package.json @@ -1,6 +1,6 @@ { "name": "@nocobase/acl", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "description": "", "license": "Apache-2.0", "licenses": [ @@ -11,13 +11,8 @@ ], "main": "./lib/index.js", "types": "./lib/index.d.ts", - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "dependencies": { - "@nocobase/resourcer": "0.7.0-alpha.34", + "@nocobase/resourcer": "0.7.0-alpha.55", "json-templates": "^4.2.0" }, "repository": { diff --git a/packages/core/acl/tsconfig.build.json b/packages/core/acl/tsconfig.build.json deleted file mode 100644 index 9bdd87769..000000000 --- a/packages/core/acl/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./lib", - "declaration": true - }, - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/core/acl/tsconfig.json b/packages/core/acl/tsconfig.json deleted file mode 100644 index bf4bd3fa9..000000000 --- a/packages/core/acl/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/core/actions/package.json b/packages/core/actions/package.json index 31956d213..3b9d81241 100644 --- a/packages/core/actions/package.json +++ b/packages/core/actions/package.json @@ -1,6 +1,6 @@ { "name": "@nocobase/actions", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "description": "", "license": "Apache-2.0", "licenses": [ @@ -11,14 +11,9 @@ ], "main": "./lib/index.js", "types": "./lib/index.d.ts", - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "dependencies": { - "@nocobase/database": "0.7.0-alpha.34", - "@nocobase/resourcer": "0.7.0-alpha.34" + "@nocobase/database": "0.7.0-alpha.55", + "@nocobase/resourcer": "0.7.0-alpha.55" }, "repository": { "type": "git", diff --git a/packages/core/actions/src/__tests__/index.ts b/packages/core/actions/src/__tests__/index.ts index 51609810a..bfad5a9c8 100644 --- a/packages/core/actions/src/__tests__/index.ts +++ b/packages/core/actions/src/__tests__/index.ts @@ -1,10 +1,10 @@ -import qs from 'qs'; -import Koa from 'koa'; +import Database, { CollectionOptions, DatabaseOptions } from '@nocobase/database'; +import { Handlers, ResourceOptions, Resourcer } from '@nocobase/resourcer'; import merge from 'deepmerge'; +import Koa from 'koa'; import bodyParser from 'koa-bodyparser'; +import qs from 'qs'; import supertest, { SuperAgentTest } from 'supertest'; -import { Resourcer, Handlers, ResourceOptions } from '@nocobase/resourcer'; -import Database, { DatabaseOptions, CollectionOptions } from '@nocobase/database'; import table2resource from '../../../server/src/middlewares/table2resource'; export function generatePrefixByPath() { @@ -28,7 +28,7 @@ export function getConfig(config = {}, options?: any): DatabaseOptions { port: process.env.DB_PORT, dialect: process.env.DB_DIALECT, storage: process.env.DB_STORAGE, - logging: process.env.DB_LOG_SQL === 'on', + logging: process.env.DB_LOGGING === 'on', sync: { force: true, }, diff --git a/packages/core/actions/tsconfig.build.json b/packages/core/actions/tsconfig.build.json deleted file mode 100644 index 9bdd87769..000000000 --- a/packages/core/actions/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./lib", - "declaration": true - }, - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/core/actions/tsconfig.json b/packages/core/actions/tsconfig.json deleted file mode 100644 index bf4bd3fa9..000000000 --- a/packages/core/actions/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/core/build/.local b/packages/core/build/.local new file mode 100755 index 000000000..9cbae257c --- /dev/null +++ b/packages/core/build/.local @@ -0,0 +1 @@ +Used in bin/father.js to determine if it is in the local debug state. diff --git a/packages/core/build/.npmignore b/packages/core/build/.npmignore new file mode 100755 index 000000000..75230a7a6 --- /dev/null +++ b/packages/core/build/.npmignore @@ -0,0 +1,4 @@ +/src/fixtures +/src/**/*.test.ts +/lib/**/*.test.js +/.local diff --git a/docs/index.md b/packages/core/build/README.md old mode 100644 new mode 100755 similarity index 100% rename from docs/index.md rename to packages/core/build/README.md diff --git a/packages/core/build/bin/nocobase-build.js b/packages/core/build/bin/nocobase-build.js new file mode 100755 index 000000000..1f45a0188 --- /dev/null +++ b/packages/core/build/bin/nocobase-build.js @@ -0,0 +1,71 @@ +#!/usr/bin/env node + +const { existsSync } = require('fs'); +const { join } = require('path'); +const yParser = require('yargs-parser'); +const chalk = require('chalk'); +const signale = require('signale'); + +// print version and @local +const args = yParser(process.argv.slice(2), { + alias: { + package: 'p', + }, +}); + +if (args.v || args.version) { + console.log(require('../package').version); + if (existsSync(join(__dirname, '../.local'))) { + console.log(chalk.cyan('@local')); + } + process.exit(0); +} + +// Notify update when process exits +const updater = require('update-notifier'); +const pkg = require('../package.json'); +updater({ pkg }).notify({ defer: true }); + +function stripEmptyKeys(obj) { + Object.keys(obj).forEach((key) => { + if (!obj[key] || (Array.isArray(obj[key]) && !obj[key].length)) { + delete obj[key]; + } + }); + return obj; +} + +function build() { + // Parse buildArgs from cli + const buildArgs = stripEmptyKeys({ + esm: args.esm && { type: args.esm === true ? 'rollup' : args.esm }, + cjs: args.cjs && { type: args.cjs === true ? 'rollup' : args.cjs }, + umd: args.umd && { name: args.umd === true ? undefined : args.umd }, + file: args.file, + target: args.target, + entry: args._, + config: args.config, + }); + + if (buildArgs.file && buildArgs.entry && buildArgs.entry.length > 1) { + signale.error( + new Error(`Cannot specify file when have multiple entries (${buildArgs.entry.join(', ')})`) + ); + process.exit(1); + } + + require('../lib/build') + .default({ + cwd: args.root || process.cwd(), + watch: args.w || args.watch, + clean: args.clean, + buildArgs, + packages: args._ || [], + }) + .catch((e) => { + signale.error(e); + process.exit(1); + }); +} + +build(); diff --git a/packages/core/build/package.json b/packages/core/build/package.json new file mode 100755 index 000000000..43f96c6a5 --- /dev/null +++ b/packages/core/build/package.json @@ -0,0 +1,77 @@ +{ + "name": "@nocobase/build", + "version": "0.7.0-alpha.55", + "description": "Library build tool based on rollup.", + "main": "lib/index.js", + "bin": { + "nocobase-build": "./bin/nocobase-build.js" + }, + "typings": "./index.d.ts", + "dependencies": { + "@babel/core": "7.12.3", + "@babel/plugin-proposal-class-properties": "7.12.1", + "@babel/plugin-proposal-decorators": "7.12.1", + "@babel/plugin-proposal-do-expressions": "7.12.1", + "@babel/plugin-proposal-export-default-from": "7.12.1", + "@babel/plugin-proposal-export-namespace-from": "7.12.1", + "@babel/plugin-proposal-nullish-coalescing-operator": "7.12.1", + "@babel/plugin-proposal-optional-chaining": "7.12.1", + "@babel/plugin-syntax-dynamic-import": "7.8.3", + "@babel/plugin-transform-modules-commonjs": "7.12.1", + "@babel/plugin-transform-runtime": "7.12.1", + "@babel/preset-env": "7.12.1", + "@babel/preset-react": "7.12.1", + "@babel/preset-typescript": "7.12.1", + "@babel/register": "7.12.1", + "@lerna/filter-packages": "4.0.0", + "@lerna/project": "4.0.0", + "@lerna/query-graph": "4.0.0", + "@rollup/plugin-babel": "5.3.1", + "@rollup/plugin-commonjs": "16.0.0", + "@rollup/plugin-inject": "4.0.2", + "@rollup/plugin-json": "4.1.0", + "@rollup/plugin-node-resolve": "10.0.0", + "@rollup/plugin-replace": "2.3.4", + "@rollup/plugin-url": "5.0.1", + "@svgr/rollup": "5.5.0", + "ajv": "6.12.6", + "autoprefixer": "9.6.0", + "babel-plugin-istanbul": "^5.2.0", + "babel-plugin-react-require": "3.1.1", + "chalk": "2.4.2", + "chokidar": "^3.0.2", + "es5-imcompatible-versions": "^0.1.37", + "glob": "^7.1.4", + "gulp-if": "2.0.2", + "gulp-less": "^4.0.1", + "gulp-plumber": "^1.2.1", + "gulp-typescript": "5.0.1", + "less": "3.9.0", + "less-plugin-npm-import": "2.1.0", + "lodash": "4.17.21", + "pkg-up": "3.1.0", + "rimraf": "2.6.3", + "rollup": "2.33.3", + "rollup-plugin-postcss": "3.1.8", + "rollup-plugin-terser": "7.0.2", + "rollup-plugin-typescript2": "0.29.0", + "semver": "6.1.1", + "signale": "1.4.0", + "slash2": "2.0.0", + "temp-dir": "2.0.0", + "through2": "3.0.1", + "ts-loader": "^8.0.7", + "typescript": "^4.0.5", + "update-notifier": "3.0.0", + "vinyl-fs": "3.0.3", + "yargs-parser": "13.1.2" + }, + "license": "MIT", + "scripts": { + "build": "umi-tools build" + }, + "devDependencies": { + "@types/gulp-plumber": "^0.0.32", + "umi-tools": "^0.4.0" + } +} diff --git a/packages/core/build/src/babel.ts b/packages/core/build/src/babel.ts new file mode 100755 index 000000000..5a16537c7 --- /dev/null +++ b/packages/core/build/src/babel.ts @@ -0,0 +1,257 @@ +import { join, extname, relative } from "path"; +import { existsSync, readFileSync, statSync } from "fs"; +import vfs from "vinyl-fs"; +import signale from "signale"; +import lodash from "lodash"; +import rimraf from "rimraf"; +import through from "through2"; +import slash from "slash2"; +import * as chokidar from "chokidar"; +import * as babel from "@babel/core"; +import gulpTs from "gulp-typescript"; +import gulpLess from "gulp-less"; +import gulpPlumber from "gulp-plumber"; +import gulpIf from "gulp-if"; +import chalk from "chalk"; +import getBabelConfig from "./getBabelConfig"; +import { Dispose, IBundleOptions } from "./types"; +import * as ts from "typescript"; + +interface IBabelOpts { + cwd: string; + rootPath?: string; + type: "esm" | "cjs"; + target?: "browser" | "node"; + log?: (string) => void; + watch?: boolean; + dispose?: Dispose[]; + importLibToEs?: boolean; + bundleOpts: IBundleOptions; +} + +interface ITransformOpts { + file: { + contents: string; + path: string; + }; + type: "esm" | "cjs"; +} + +export default async function (opts: IBabelOpts) { + const { + cwd, + rootPath, + type, + watch, + dispose, + importLibToEs, + log, + bundleOpts: { + target = "browser", + runtimeHelpers, + extraBabelPresets = [], + extraBabelPlugins = [], + browserFiles = [], + nodeFiles = [], + nodeVersion, + disableTypeCheck, + cjs, + lessInBabelMode, + }, + } = opts; + const srcPath = join(cwd, "src"); + const targetDir = type === "esm" ? "es" : "lib"; + const targetPath = join(cwd, targetDir); + + log(chalk.gray(`Clean ${targetDir} directory`)); + rimraf.sync(targetPath); + + function transform(opts: ITransformOpts) { + const { file, type } = opts; + const { opts: babelOpts, isBrowser } = getBabelConfig({ + target, + type, + typescript: true, + runtimeHelpers, + filePath: slash(relative(cwd, file.path)), + browserFiles, + nodeFiles, + nodeVersion, + lazy: cjs && cjs.lazy, + lessInBabelMode, + }); + if (importLibToEs && type === "esm") { + babelOpts.plugins.push(require.resolve("../lib/importLibToEs")); + } + babelOpts.presets.push(...extraBabelPresets); + babelOpts.plugins.push(...extraBabelPlugins); + + const relFile = slash(file.path).replace(`${cwd}/`, ""); + log( + `Transform to ${type} for ${chalk[isBrowser ? "yellow" : "blue"]( + relFile + )}` + ); + + return babel.transform(file.contents, { + ...babelOpts, + filename: file.path, + // 不读取外部的babel.config.js配置文件,全采用babelOpts中的babel配置来构建 + configFile: false, + }).code; + } + + /** + * tsconfig.json is not valid json file + * https://github.com/Microsoft/TypeScript/issues/20384 + */ + function parseTsconfig(path: string) { + const readFile = (path: string) => readFileSync(path, "utf-8"); + const result = ts.readConfigFile(path, readFile); + if (result.error) { + return; + } + const pkgTsConfig = result.config; + if (pkgTsConfig.extends) { + const rootTsConfigPath = slash(relative(cwd, pkgTsConfig.extends)); + const rootTsConfig = parseTsconfig(rootTsConfigPath); + if (rootTsConfig) { + const mergedConfig = { + ...rootTsConfig, + ...pkgTsConfig, + compilerOptions: { + ...rootTsConfig.compilerOptions, + ...pkgTsConfig.compilerOptions, + }, + }; + return mergedConfig; + } + } + return pkgTsConfig; + } + + function getTsconfigCompilerOptions(path: string) { + const config = parseTsconfig(path); + return config ? config.compilerOptions : undefined; + } + + function getTSConfig() { + const tsconfigPath = join(cwd, "tsconfig.json"); + const templateTsconfigPath = join(__dirname, "../template/tsconfig.json"); + + if (existsSync(tsconfigPath)) { + return getTsconfigCompilerOptions(tsconfigPath) || {}; + } + if (rootPath && existsSync(join(rootPath, "tsconfig.json"))) { + return getTsconfigCompilerOptions(join(rootPath, "tsconfig.json")) || {}; + } + return getTsconfigCompilerOptions(templateTsconfigPath) || {}; + } + + function createStream(src) { + const tsConfig = getTSConfig(); + const babelTransformRegexp = disableTypeCheck ? /\.(t|j)sx?$/ : /\.jsx?$/; + + function isTsFile(path) { + return /\.tsx?$/.test(path) && !path.endsWith(".d.ts"); + } + + function isTransform(path) { + return babelTransformRegexp.test(path) && !path.endsWith(".d.ts"); + } + + return vfs + .src(src, { + allowEmpty: true, + base: srcPath, + }) + .pipe(watch ? gulpPlumber() : through.obj()) + .pipe( + gulpIf((f) => !disableTypeCheck && isTsFile(f.path), gulpTs(tsConfig)) + ) + .pipe( + gulpIf( + (f) => lessInBabelMode && /\.less$/.test(f.path), + gulpLess(lessInBabelMode || {}) + ) + ) + .pipe( + gulpIf( + (f) => isTransform(f.path), + through.obj((file, env, cb) => { + try { + file.contents = Buffer.from( + transform({ + file, + type, + }) + ); + // .jsx -> .js + file.path = file.path.replace(extname(file.path), ".js"); + cb(null, file); + } catch (e) { + signale.error(`Compiled faild: ${file.path}`); + console.log(e); + cb(null); + } + }) + ) + ) + .pipe(vfs.dest(targetPath)); + } + + return new Promise((resolve) => { + const patterns = [ + join(srcPath, "**/*"), + `!${join(srcPath, "**/fixtures{,/**}")}`, + `!${join(srcPath, "**/demos{,/**}")}`, + `!${join(srcPath, "**/__test__{,/**}")}`, + `!${join(srcPath, "**/__tests__{,/**}")}`, + `!${join(srcPath, "**/*.mdx")}`, + `!${join(srcPath, "**/*.md")}`, + `!${join(srcPath, "**/*.+(test|e2e|spec).+(js|jsx|ts|tsx)")}`, + `!${join(srcPath, "**/tsconfig{,.*}.json")}`, + `!${join(srcPath, ".umi{,-production,-test}{,/**}")}`, + ]; + createStream(patterns).on("end", () => { + if (watch) { + log( + chalk.magenta( + `Start watching ${slash(srcPath).replace( + `${cwd}/`, + "" + )} directory...` + ) + ); + const watcher = chokidar.watch(patterns, { + ignoreInitial: true, + }); + + const files = []; + function compileFiles() { + while (files.length) { + createStream(files.pop()); + } + } + + const debouncedCompileFiles = lodash.debounce(compileFiles, 1000); + watcher.on("all", (event, fullPath) => { + const relPath = fullPath.replace(srcPath, ""); + log( + `[${event}] ${slash(join(srcPath, relPath)).replace(`${cwd}/`, "")}` + ); + if (!existsSync(fullPath)) return; + if (statSync(fullPath).isFile()) { + if (!files.includes(fullPath)) files.push(fullPath); + debouncedCompileFiles(); + } + }); + process.once("SIGINT", () => { + watcher.close(); + }); + dispose?.push(() => watcher.close()); + } + resolve(); + }); + }); +} diff --git a/packages/core/build/src/build.test.ts b/packages/core/build/src/build.test.ts new file mode 100755 index 000000000..254b28abf --- /dev/null +++ b/packages/core/build/src/build.test.ts @@ -0,0 +1,52 @@ +import { join, basename, sep } from 'path'; +import { getPackagesSync } from '@lerna/project'; +import { existsSync, readdirSync, renameSync, statSync } from 'fs'; +import mkdirp from 'mkdirp'; +import rimraf from 'rimraf'; +import build from './build'; + +function moveEsLibToDist(cwd) { + ['es', 'lib'].forEach(dir => { + const absDirPath = join(cwd, dir); + const absDistPath = join(cwd, 'dist'); + if (existsSync(absDirPath)) { + mkdirp.sync(absDistPath); + renameSync(absDirPath, join(absDistPath, dir)); + } + }); +} + +describe('father build', () => { + const rootConfigMapping = { + 'lerna-root-config-override': { cjs: 'rollup', esm: false }, + }; + + require('test-build-result')({ + root: join(__dirname, './fixtures/build'), + build({ cwd }) { + process.chdir(cwd); + rimraf.sync(join(cwd, 'dist')); + return build({ cwd, rootConfig: rootConfigMapping[basename(cwd)] }).then(() => { + // babel + moveEsLibToDist(cwd); + + // lerna + if (existsSync(join(cwd, 'lerna.json'))) { + mkdirp.sync(join(cwd, 'dist')); + const pkgs = getPackagesSync(cwd) + for (let pkg of pkgs) { + + const pkgPath = pkg.contents; + + if (!statSync(pkgPath).isDirectory()) continue; + moveEsLibToDist(pkgPath); + renameSync( + join(pkgPath, 'dist'), + join(cwd, 'dist', pkgPath.split(sep).pop()) + ); + } + } + }); + }, + }); +}); diff --git a/packages/core/build/src/build.ts b/packages/core/build/src/build.ts new file mode 100755 index 000000000..49b396758 --- /dev/null +++ b/packages/core/build/src/build.ts @@ -0,0 +1,260 @@ +import * as assert from 'assert'; +import chalk from 'chalk'; +import { existsSync, readFileSync } from 'fs'; +import { merge } from 'lodash'; +import { isAbsolute, join, sep } from 'path'; +import rimraf from 'rimraf'; +import signale from 'signale'; +import babel from './babel'; +import getUserConfig, { CONFIG_FILES } from './getUserConfig'; +import randomColor from './randomColor'; +import registerBabel from './registerBabel'; +import rollup from './rollup'; +import { Dispose, IBundleOptions, IBundleTypeOutput, ICjs, IEsm, IOpts } from './types'; +import { getExistFile, getLernaPackages } from './utils'; + +export function getBundleOpts(opts: IOpts): IBundleOptions[] { + const { cwd, buildArgs = {}, rootConfig = {} } = opts; + const entry = getExistFile({ + cwd, + files: ['src/index.tsx', 'src/index.ts', 'src/index.jsx', 'src/index.js'], + returnRelative: true, + }); + const userConfig = getUserConfig({ cwd, customPath: buildArgs.config }); + const userConfigs = Array.isArray(userConfig) ? userConfig : [userConfig]; + return (userConfigs as any).map((userConfig) => { + const bundleOpts = merge( + { + entry, + }, + rootConfig, + userConfig, + buildArgs + ); + + // Support config esm: 'rollup' and cjs: 'rollup' + if (typeof bundleOpts.esm === 'string') { + bundleOpts.esm = { type: bundleOpts.esm }; + } + if (typeof bundleOpts.cjs === 'string') { + bundleOpts.cjs = { type: bundleOpts.cjs }; + } + + return bundleOpts; + }); +} + +function validateBundleOpts(bundleOpts: IBundleOptions, { cwd, rootPath }) { + if (bundleOpts.runtimeHelpers) { + const pkgPath = join(cwd, 'package.json'); + assert.ok(existsSync(pkgPath), `@babel/runtime dependency is required to use runtimeHelpers`); + const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8')); + assert.ok( + (pkg.dependencies || {})['@babel/runtime'], + `@babel/runtime dependency is required to use runtimeHelpers` + ); + } + if ( + bundleOpts.cjs && + (bundleOpts.cjs as ICjs).lazy && + (bundleOpts.cjs as ICjs).type === 'rollup' + ) { + throw new Error( + ` +cjs.lazy don't support rollup. + `.trim() + ); + } + if (!bundleOpts.esm && !bundleOpts.cjs && !bundleOpts.umd) { + throw new Error( + ` +None format of ${chalk.cyan( + 'cjs | esm | umd' + )} is configured, checkout https://github.com/umijs/father for usage details. +`.trim() + ); + } + if (bundleOpts.entry) { + const tsConfigPath = join(cwd, 'tsconfig.json'); + const tsConfig = + existsSync(tsConfigPath) || (rootPath && existsSync(join(rootPath, 'tsconfig.json'))); + if ( + !tsConfig && + ((Array.isArray(bundleOpts.entry) && bundleOpts.entry.some(isTypescriptFile)) || + (!Array.isArray(bundleOpts.entry) && isTypescriptFile(bundleOpts.entry))) + ) { + signale.info( + `Project using ${chalk.cyan( + 'typescript' + )} but tsconfig.json not exists. Use default config.` + ); + } + } +} + +function isTypescriptFile(filePath) { + return filePath.endsWith('.ts') || filePath.endsWith('.tsx'); +} + +interface IExtraBuildOpts { + pkg?: string | { name?: string }; +} + +export async function build(opts: IOpts, extraOpts: IExtraBuildOpts = {}) { + const { cwd, rootPath, watch, buildArgs = {}, clean = true } = opts; + const { pkg } = extraOpts; + + const dispose: Dispose[] = []; + + const customConfigPath = + buildArgs.config && + (isAbsolute(buildArgs.config) ? buildArgs.config : join(process.cwd(), buildArgs.config)); + + // register babel for config files + registerBabel({ + cwd, + only: customConfigPath ? CONFIG_FILES.concat(customConfigPath) : CONFIG_FILES, + }); + + const pkgName = (typeof pkg === 'string' ? pkg : pkg?.name) || 'unknown'; + + function log(msg) { + console.log(`${pkg ? `${randomColor(`${pkgName}`)}: ` : ''}${msg}`); + } + + // Get user config + const bundleOptsArray = getBundleOpts(opts); + + for (const bundleOpts of bundleOptsArray) { + validateBundleOpts(bundleOpts, { cwd, rootPath }); + + // Clean dist + if (clean) { + log(chalk.gray(`Clean dist directory`)); + rimraf.sync(join(cwd, 'dist')); + } + + + // Build umd + if (bundleOpts.umd) { + log(`Build umd`); + await rollup({ + cwd, + rootPath, + log, + type: 'umd', + entry: bundleOpts.entry, + watch, + dispose, + bundleOpts, + }); + } + + // Build cjs + if (bundleOpts.cjs) { + const cjs = bundleOpts.cjs as IBundleTypeOutput; + log(`Build cjs with ${cjs.type}`); + if (cjs.type === 'babel') { + await babel({ cwd, rootPath, watch, dispose, type: 'cjs', log, bundleOpts }); + } else { + await rollup({ + cwd, + rootPath, + log, + type: 'cjs', + entry: bundleOpts.entry, + watch, + dispose, + bundleOpts, + }); + } + } + + // Build esm + if (bundleOpts.esm) { + const esm = bundleOpts.esm as IEsm; + log(`Build esm with ${esm.type}`); + const importLibToEs = esm && esm.importLibToEs; + if (esm && esm.type === 'babel') { + await babel({ cwd, rootPath, watch, dispose, type: 'esm', importLibToEs, log, bundleOpts }); + } else { + await rollup({ + cwd, + rootPath, + log, + type: 'esm', + entry: bundleOpts.entry, + importLibToEs, + watch, + dispose, + bundleOpts, + }); + } + } + } + + return dispose; +} + +function getPkgRelativePath(cwd, pkg) { + const basePath = cwd.split(sep).join('/') + '/packages/'; + const dir = pkg.contents.split(sep).join('/'); + return dir.substring(basePath.length); +} + +export async function buildForLerna(opts: IOpts) { + const { cwd, rootConfig = {}, buildArgs = {}, packages = [] } = opts; + + // register babel for config files + registerBabel({ + cwd, + only: CONFIG_FILES, + }); + + const userConfig = merge(getUserConfig({ cwd }), rootConfig, buildArgs); + + let pkgs = await getLernaPackages(cwd, userConfig.pkgFilter); + // support define pkgs in lerna + if (userConfig.pkgs) { + pkgs = pkgs.filter(pkg => userConfig.pkgs.includes(getPkgRelativePath(cwd, pkg))); + } + const dispose: Dispose[] = []; + for (const pkg of pkgs) { + const pkgName = getPkgRelativePath(cwd, pkg); + if (userConfig.excludePkgs && userConfig.excludePkgs.includes(pkgName)) { + continue; + } + if (packages.length && !packages.includes(pkgName)) continue; + // build error when .DS_Store includes in packages root + const pkgPath = pkg.contents; + assert.ok( + existsSync(join(pkgPath, 'package.json')), + `package.json not found in packages/${pkg}` + ); + process.chdir(pkgPath); + dispose.push( + ...(await build( + { + // eslint-disable-line + ...opts, + buildArgs: opts.buildArgs, + rootConfig: userConfig, + cwd: pkgPath, + rootPath: cwd, + }, + { + pkg, + } + )) + ); + } + return dispose; +} + +export default async function (opts: IOpts) { + const useLerna = existsSync(join(opts.cwd, 'lerna.json')); + const isLerna = useLerna && process.env.LERNA !== 'none'; + + const dispose = isLerna ? await buildForLerna(opts) : await build(opts); + return () => dispose.forEach((e) => e()); +} diff --git a/packages/core/build/src/es5ImcompatibleVersions.ts b/packages/core/build/src/es5ImcompatibleVersions.ts new file mode 100755 index 000000000..8f72f36b4 --- /dev/null +++ b/packages/core/build/src/es5ImcompatibleVersions.ts @@ -0,0 +1,33 @@ +// 参考: +// https://github.com/umijs/umi/blob/2.x/packages/af-webpack/src/getWebpackConfig/es5ImcompatibleVersions.js +import { dirname } from 'path'; +import pkgUp from 'pkg-up'; +import { satisfies } from 'semver'; + +const pkgPathCache = {}; +const pkgCache = {}; +const { + config: { 'es5-imcompatible-versions': config }, +} = require('es5-imcompatible-versions/package.json'); + +export function getPkgPath(filePath: string) { + const dir = dirname(filePath); + if (dir in pkgPathCache) return pkgPathCache[dir]; + pkgPathCache[dir] = pkgUp.sync({ cwd: filePath }); + return pkgPathCache[dir]; +} + +export function shouldTransform(pkgPath: string) { + if (pkgPath in pkgCache) return pkgCache[pkgPath]; + const { name, version } = require(pkgPath); + pkgCache[pkgPath] = isMatch(name, version); + return pkgCache[pkgPath]; +} + +function isMatch(name, version) { + if (config[name]) { + return Object.keys(config[name]).some((sv) => satisfies(version, sv)); + } else { + return false; + } +} diff --git a/packages/core/build/src/fixtures/build/babel-browser-files/.fatherrc.js b/packages/core/build/src/fixtures/build/babel-browser-files/.fatherrc.js new file mode 100755 index 000000000..3cd11ad83 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-browser-files/.fatherrc.js @@ -0,0 +1,8 @@ + +export default { + esm: 'babel', + target: 'node', + browserFiles: [ + 'src/browser.js', + ], +} diff --git a/packages/core/build/src/fixtures/build/babel-browser-files/expected/es/browser.js b/packages/core/build/src/fixtures/build/babel-browser-files/expected/es/browser.js new file mode 100755 index 000000000..22dc0e15f --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-browser-files/expected/es/browser.js @@ -0,0 +1 @@ +var b = 'foo'; \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/babel-browser-files/expected/es/node.js b/packages/core/build/src/fixtures/build/babel-browser-files/expected/es/node.js new file mode 100755 index 000000000..ed389c023 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-browser-files/expected/es/node.js @@ -0,0 +1 @@ +const a = 'foo'; \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/babel-browser-files/src/browser.js b/packages/core/build/src/fixtures/build/babel-browser-files/src/browser.js new file mode 100755 index 000000000..a3677a7e4 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-browser-files/src/browser.js @@ -0,0 +1,2 @@ + +const b = 'foo'; diff --git a/packages/core/build/src/fixtures/build/babel-browser-files/src/node.js b/packages/core/build/src/fixtures/build/babel-browser-files/src/node.js new file mode 100755 index 000000000..528eb6b5a --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-browser-files/src/node.js @@ -0,0 +1,2 @@ + +const a = 'foo'; diff --git a/packages/core/build/src/fixtures/build/babel-cjs-lazy/.fatherrc.js b/packages/core/build/src/fixtures/build/babel-cjs-lazy/.fatherrc.js new file mode 100755 index 000000000..37192c105 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-cjs-lazy/.fatherrc.js @@ -0,0 +1,8 @@ + +export default { + target: 'node', + cjs: { type: 'babel', lazy: true }, + browserFiles: [ + 'src/foo.js', + ], +}; diff --git a/packages/core/build/src/fixtures/build/babel-cjs-lazy/src/foo.js b/packages/core/build/src/fixtures/build/babel-cjs-lazy/src/foo.js new file mode 100755 index 000000000..fafe4ba5f --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-cjs-lazy/src/foo.js @@ -0,0 +1,3 @@ +import bar from 'bar'; + +bar(); diff --git a/packages/core/build/src/fixtures/build/babel-cjs-lazy/src/index.js b/packages/core/build/src/fixtures/build/babel-cjs-lazy/src/index.js new file mode 100755 index 000000000..fafe4ba5f --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-cjs-lazy/src/index.js @@ -0,0 +1,3 @@ +import bar from 'bar'; + +bar(); diff --git a/packages/core/build/src/fixtures/build/babel-extra-babel-presets-and-plugins/.fatherrc.js b/packages/core/build/src/fixtures/build/babel-extra-babel-presets-and-plugins/.fatherrc.js new file mode 100755 index 000000000..b90b773fa --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-extra-babel-presets-and-plugins/.fatherrc.js @@ -0,0 +1,10 @@ + +export default { + esm: { type: 'babel' }, + extraBabelPresets: [ + require.resolve('./preset'), + ], + extraBabelPlugins: [ + require.resolve('./p2'), + ], +}; diff --git a/packages/core/build/src/fixtures/build/babel-extra-babel-presets-and-plugins/expected/es/index.js b/packages/core/build/src/fixtures/build/babel-extra-babel-presets-and-plugins/expected/es/index.js new file mode 100755 index 000000000..dd712d79e --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-extra-babel-presets-and-plugins/expected/es/index.js @@ -0,0 +1,2 @@ +console.log("p1", "p2", 1); +alert(2); \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/babel-extra-babel-presets-and-plugins/p1.js b/packages/core/build/src/fixtures/build/babel-extra-babel-presets-and-plugins/p1.js new file mode 100755 index 000000000..a3a3e24e1 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-extra-babel-presets-and-plugins/p1.js @@ -0,0 +1,20 @@ + +module.exports = function ({ types: t }) { + function isConsoleLog(node) { + const { callee, callee: { object, property } } = node; + return t.isMemberExpression(callee) + && t.isIdentifier(object) && object.name === 'console' + && t.isIdentifier(property) && property.name === 'log'; + } + + return { + visitor: { + CallExpression(path, state) { + const { node, node: { callee, callee: { object, property } } } = path; + if (isConsoleLog(node)) { + node.arguments.unshift(t.stringLiteral('p1')); + } + }, + }, + }; +} diff --git a/packages/core/build/src/fixtures/build/babel-extra-babel-presets-and-plugins/p2.js b/packages/core/build/src/fixtures/build/babel-extra-babel-presets-and-plugins/p2.js new file mode 100755 index 000000000..297ac66d1 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-extra-babel-presets-and-plugins/p2.js @@ -0,0 +1,20 @@ + +module.exports = function ({ types: t }) { + function isConsoleLog(node) { + const { callee, callee: { object, property } } = node; + return t.isMemberExpression(callee) + && t.isIdentifier(object) && object.name === 'console' + && t.isIdentifier(property) && property.name === 'log'; + } + + return { + visitor: { + CallExpression(path, state) { + const { node, node: { callee, callee: { object, property } } } = path; + if (isConsoleLog(node)) { + node.arguments.unshift(t.stringLiteral('p2')); + } + }, + }, + }; +} diff --git a/packages/core/build/src/fixtures/build/babel-extra-babel-presets-and-plugins/preset.js b/packages/core/build/src/fixtures/build/babel-extra-babel-presets-and-plugins/preset.js new file mode 100755 index 000000000..07ccbb29c --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-extra-babel-presets-and-plugins/preset.js @@ -0,0 +1,8 @@ + +module.exports = function () { + return { + plugins: [ + require.resolve('./p1'), + ], + }; +} diff --git a/packages/core/build/src/fixtures/build/babel-extra-babel-presets-and-plugins/src/index.js b/packages/core/build/src/fixtures/build/babel-extra-babel-presets-and-plugins/src/index.js new file mode 100755 index 000000000..923799068 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-extra-babel-presets-and-plugins/src/index.js @@ -0,0 +1,3 @@ + +console.log(1); +alert(2); diff --git a/packages/core/build/src/fixtures/build/babel-importLibToEs/.fatherrc.js b/packages/core/build/src/fixtures/build/babel-importLibToEs/.fatherrc.js new file mode 100755 index 000000000..f1ef9292b --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-importLibToEs/.fatherrc.js @@ -0,0 +1,5 @@ + +export default { + cjs: { type: 'babel' }, + esm: { type: 'babel', importLibToEs: true }, +}; diff --git a/packages/core/build/src/fixtures/build/babel-importLibToEs/expected/es/index.js b/packages/core/build/src/fixtures/build/babel-importLibToEs/expected/es/index.js new file mode 100755 index 000000000..d10ef2731 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-importLibToEs/expected/es/index.js @@ -0,0 +1,2 @@ +import foo from "foo/es/foo"; +console.log(foo()); \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/babel-importLibToEs/src/index.js b/packages/core/build/src/fixtures/build/babel-importLibToEs/src/index.js new file mode 100755 index 000000000..a8105c428 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-importLibToEs/src/index.js @@ -0,0 +1,3 @@ +import foo from 'foo/lib/foo'; + +console.log(foo()); diff --git a/packages/core/build/src/fixtures/build/babel-less-to-css-forbid/.fatherrc.js b/packages/core/build/src/fixtures/build/babel-less-to-css-forbid/.fatherrc.js new file mode 100755 index 000000000..ead5605aa --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-less-to-css-forbid/.fatherrc.js @@ -0,0 +1,6 @@ + +export default { + cjs: { type: 'babel' }, + esm: { type: 'babel' }, + lessInBabelMode: false, +}; diff --git a/packages/core/build/src/fixtures/build/babel-less-to-css-forbid/expected/es/foo.js b/packages/core/build/src/fixtures/build/babel-less-to-css-forbid/expected/es/foo.js new file mode 100755 index 000000000..85ffde227 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-less-to-css-forbid/expected/es/foo.js @@ -0,0 +1,6 @@ + +import "./index.less"; +import "./foo.module.less"; +export default function () { + return 'foo'; +} \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/babel-less-to-css-forbid/expected/es/foo.module.less b/packages/core/build/src/fixtures/build/babel-less-to-css-forbid/expected/es/foo.module.less new file mode 100755 index 000000000..213d0676a --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-less-to-css-forbid/expected/es/foo.module.less @@ -0,0 +1,3 @@ +.foo { + color: green; +} diff --git a/packages/core/build/src/fixtures/build/babel-less-to-css-forbid/expected/es/index.less b/packages/core/build/src/fixtures/build/babel-less-to-css-forbid/expected/es/index.less new file mode 100755 index 000000000..f151aa5e7 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-less-to-css-forbid/expected/es/index.less @@ -0,0 +1,6 @@ + +@link-color: green; + +.foo { + color: @link-color; +} diff --git a/packages/core/build/src/fixtures/build/babel-less-to-css-forbid/src/foo.js b/packages/core/build/src/fixtures/build/babel-less-to-css-forbid/src/foo.js new file mode 100755 index 000000000..e1cab23ea --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-less-to-css-forbid/src/foo.js @@ -0,0 +1,6 @@ +import "./index.less"; +import "./foo.module.less"; + +export default function () { + return 'foo'; +} diff --git a/packages/core/build/src/fixtures/build/babel-less-to-css-forbid/src/foo.module.less b/packages/core/build/src/fixtures/build/babel-less-to-css-forbid/src/foo.module.less new file mode 100755 index 000000000..213d0676a --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-less-to-css-forbid/src/foo.module.less @@ -0,0 +1,3 @@ +.foo { + color: green; +} diff --git a/packages/core/build/src/fixtures/build/babel-less-to-css-forbid/src/index.less b/packages/core/build/src/fixtures/build/babel-less-to-css-forbid/src/index.less new file mode 100755 index 000000000..f151aa5e7 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-less-to-css-forbid/src/index.less @@ -0,0 +1,6 @@ + +@link-color: green; + +.foo { + color: @link-color; +} diff --git a/packages/core/build/src/fixtures/build/babel-less-to-css/.fatherrc.js b/packages/core/build/src/fixtures/build/babel-less-to-css/.fatherrc.js new file mode 100755 index 000000000..c2ed104b4 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-less-to-css/.fatherrc.js @@ -0,0 +1,6 @@ + +export default { + cjs: { type: 'babel' }, + esm: { type: 'babel' }, + lessInBabelMode: true, +}; diff --git a/packages/core/build/src/fixtures/build/babel-less-to-css/expected/es/foo.js b/packages/core/build/src/fixtures/build/babel-less-to-css/expected/es/foo.js new file mode 100755 index 000000000..a70263317 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-less-to-css/expected/es/foo.js @@ -0,0 +1,6 @@ + +import "./index.css"; +import "./foo.module.css"; +export default function () { + return 'foo'; +} \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/babel-less-to-css/expected/es/foo.module.css b/packages/core/build/src/fixtures/build/babel-less-to-css/expected/es/foo.module.css new file mode 100755 index 000000000..213d0676a --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-less-to-css/expected/es/foo.module.css @@ -0,0 +1,3 @@ +.foo { + color: green; +} diff --git a/packages/core/build/src/fixtures/build/babel-less-to-css/expected/es/index.css b/packages/core/build/src/fixtures/build/babel-less-to-css/expected/es/index.css new file mode 100755 index 000000000..213d0676a --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-less-to-css/expected/es/index.css @@ -0,0 +1,3 @@ +.foo { + color: green; +} diff --git a/packages/core/build/src/fixtures/build/babel-less-to-css/src/foo.js b/packages/core/build/src/fixtures/build/babel-less-to-css/src/foo.js new file mode 100755 index 000000000..e1cab23ea --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-less-to-css/src/foo.js @@ -0,0 +1,6 @@ +import "./index.less"; +import "./foo.module.less"; + +export default function () { + return 'foo'; +} diff --git a/packages/core/build/src/fixtures/build/babel-less-to-css/src/foo.module.less b/packages/core/build/src/fixtures/build/babel-less-to-css/src/foo.module.less new file mode 100755 index 000000000..213d0676a --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-less-to-css/src/foo.module.less @@ -0,0 +1,3 @@ +.foo { + color: green; +} diff --git a/packages/core/build/src/fixtures/build/babel-less-to-css/src/index.less b/packages/core/build/src/fixtures/build/babel-less-to-css/src/index.less new file mode 100755 index 000000000..f151aa5e7 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-less-to-css/src/index.less @@ -0,0 +1,6 @@ + +@link-color: green; + +.foo { + color: @link-color; +} diff --git a/packages/core/build/src/fixtures/build/babel-node-files/.fatherrc.js b/packages/core/build/src/fixtures/build/babel-node-files/.fatherrc.js new file mode 100755 index 000000000..ea494d59f --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-node-files/.fatherrc.js @@ -0,0 +1,8 @@ + +export default { + esm: 'babel', + target: 'browser', + nodeFiles: [ + 'src/node.js', + ], +} diff --git a/packages/core/build/src/fixtures/build/babel-node-files/expected/es/browser.js b/packages/core/build/src/fixtures/build/babel-node-files/expected/es/browser.js new file mode 100755 index 000000000..22dc0e15f --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-node-files/expected/es/browser.js @@ -0,0 +1 @@ +var b = 'foo'; \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/babel-node-files/expected/es/node.js b/packages/core/build/src/fixtures/build/babel-node-files/expected/es/node.js new file mode 100755 index 000000000..ed389c023 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-node-files/expected/es/node.js @@ -0,0 +1 @@ +const a = 'foo'; \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/babel-node-files/src/browser.js b/packages/core/build/src/fixtures/build/babel-node-files/src/browser.js new file mode 100755 index 000000000..a3677a7e4 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-node-files/src/browser.js @@ -0,0 +1,2 @@ + +const b = 'foo'; diff --git a/packages/core/build/src/fixtures/build/babel-node-files/src/node.js b/packages/core/build/src/fixtures/build/babel-node-files/src/node.js new file mode 100755 index 000000000..528eb6b5a --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-node-files/src/node.js @@ -0,0 +1,2 @@ + +const a = 'foo'; diff --git a/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/.fatherrc.js b/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/.fatherrc.js new file mode 100755 index 000000000..d59f32117 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/.fatherrc.js @@ -0,0 +1,5 @@ + +export default { + esm: 'babel', + target: 'node', +} diff --git a/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/expected/es/B.d.ts b/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/expected/es/B.d.ts new file mode 100755 index 000000000..2ef04fb23 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/expected/es/B.d.ts @@ -0,0 +1 @@ +declare const b = "foo"; diff --git a/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/expected/es/B.js b/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/expected/es/B.js new file mode 100755 index 000000000..22dc0e15f --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/expected/es/B.js @@ -0,0 +1 @@ +var b = 'foo'; \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/expected/es/C.js b/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/expected/es/C.js new file mode 100755 index 000000000..22dc0e15f --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/expected/es/C.js @@ -0,0 +1 @@ +var b = 'foo'; \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/expected/es/node.js b/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/expected/es/node.js new file mode 100755 index 000000000..ed389c023 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/expected/es/node.js @@ -0,0 +1 @@ +const a = 'foo'; \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/src/B.tsx b/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/src/B.tsx new file mode 100755 index 000000000..a3677a7e4 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/src/B.tsx @@ -0,0 +1,2 @@ + +const b = 'foo'; diff --git a/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/src/C.jsx b/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/src/C.jsx new file mode 100755 index 000000000..a3677a7e4 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/src/C.jsx @@ -0,0 +1,2 @@ + +const b = 'foo'; diff --git a/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/src/node.js b/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/src/node.js new file mode 100755 index 000000000..528eb6b5a --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/src/node.js @@ -0,0 +1,2 @@ + +const a = 'foo'; diff --git a/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/tsconfig.json b/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/tsconfig.json new file mode 100755 index 000000000..6db6275c3 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-node-tsx-jsx/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "target": "esnext", + "moduleResolution": "node", + "jsx": "preserve", + "esModuleInterop": true, + "declaration": true + } +} diff --git a/packages/core/build/src/fixtures/build/babel-normal/.fatherrc.js b/packages/core/build/src/fixtures/build/babel-normal/.fatherrc.js new file mode 100755 index 000000000..19390b36b --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-normal/.fatherrc.js @@ -0,0 +1,5 @@ + +export default { + cjs: { type: 'babel' }, + esm: { type: 'babel' }, +}; diff --git a/packages/core/build/src/fixtures/build/babel-normal/expected/es/foo.js b/packages/core/build/src/fixtures/build/babel-normal/expected/es/foo.js new file mode 100755 index 000000000..29a891a23 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-normal/expected/es/foo.js @@ -0,0 +1,3 @@ +export default function () { + return 'foo'; +} \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/babel-normal/expected/es/index.js b/packages/core/build/src/fixtures/build/babel-normal/expected/es/index.js new file mode 100755 index 000000000..8b2cbd724 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-normal/expected/es/index.js @@ -0,0 +1,3 @@ +import 'bar'; +import foo from './foo'; +console.log(foo()); \ No newline at end of file diff --git a/packages/core/create-nocobase-app/src/resources/files/packages/app/server/.gitkeep b/packages/core/build/src/fixtures/build/babel-normal/expected/es/types.d.ts old mode 100644 new mode 100755 similarity index 100% rename from packages/core/create-nocobase-app/src/resources/files/packages/app/server/.gitkeep rename to packages/core/build/src/fixtures/build/babel-normal/expected/es/types.d.ts diff --git a/packages/core/build/src/fixtures/build/babel-normal/src/__test__/__snapshots__/index.test.js.snap b/packages/core/build/src/fixtures/build/babel-normal/src/__test__/__snapshots__/index.test.js.snap new file mode 100755 index 000000000..7c645e42f --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-normal/src/__test__/__snapshots__/index.test.js.snap @@ -0,0 +1 @@ +export default {}; \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/babel-normal/src/__test__/index.test.js b/packages/core/build/src/fixtures/build/babel-normal/src/__test__/index.test.js new file mode 100755 index 000000000..ff8b4c563 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-normal/src/__test__/index.test.js @@ -0,0 +1 @@ +export default {}; diff --git a/packages/core/build/src/fixtures/build/babel-normal/src/bar.md b/packages/core/build/src/fixtures/build/babel-normal/src/bar.md new file mode 100755 index 000000000..d93e603dc --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-normal/src/bar.md @@ -0,0 +1 @@ +# bar diff --git a/packages/core/build/src/fixtures/build/babel-normal/src/bar.mdx b/packages/core/build/src/fixtures/build/babel-normal/src/bar.mdx new file mode 100755 index 000000000..d93e603dc --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-normal/src/bar.mdx @@ -0,0 +1 @@ +# bar diff --git a/packages/core/build/src/fixtures/build/babel-normal/src/demos/foo.js b/packages/core/build/src/fixtures/build/babel-normal/src/demos/foo.js new file mode 100755 index 000000000..eb59b1b29 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-normal/src/demos/foo.js @@ -0,0 +1,3 @@ +export default function() { + return "foo"; +} diff --git a/packages/core/build/src/fixtures/build/babel-normal/src/fixtures/example/package.json b/packages/core/build/src/fixtures/build/babel-normal/src/fixtures/example/package.json new file mode 100755 index 000000000..9e26dfeeb --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-normal/src/fixtures/example/package.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/packages/core/create-nocobase-app/src/resources/files/packages/plugins/.gitkeep b/packages/core/build/src/fixtures/build/babel-normal/src/foo.e2e.ts old mode 100644 new mode 100755 similarity index 100% rename from packages/core/create-nocobase-app/src/resources/files/packages/plugins/.gitkeep rename to packages/core/build/src/fixtures/build/babel-normal/src/foo.e2e.ts diff --git a/packages/core/build/src/fixtures/build/babel-normal/src/foo.js b/packages/core/build/src/fixtures/build/babel-normal/src/foo.js new file mode 100755 index 000000000..8fcf68e1b --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-normal/src/foo.js @@ -0,0 +1,4 @@ + +export default function () { + return 'foo'; +} diff --git a/packages/core/create-nocobase-app/src/resources/files/storage/.gitignore b/packages/core/build/src/fixtures/build/babel-normal/src/foo.spec.ts old mode 100644 new mode 100755 similarity index 100% rename from packages/core/create-nocobase-app/src/resources/files/storage/.gitignore rename to packages/core/build/src/fixtures/build/babel-normal/src/foo.spec.ts diff --git a/packages/core/build/src/fixtures/build/babel-normal/src/foo.test.js b/packages/core/build/src/fixtures/build/babel-normal/src/foo.test.js new file mode 100755 index 000000000..e69de29bb diff --git a/packages/core/build/src/fixtures/build/babel-normal/src/foo.test.jsx b/packages/core/build/src/fixtures/build/babel-normal/src/foo.test.jsx new file mode 100755 index 000000000..e69de29bb diff --git a/packages/core/build/src/fixtures/build/babel-normal/src/foo.test.ts b/packages/core/build/src/fixtures/build/babel-normal/src/foo.test.ts new file mode 100755 index 000000000..e69de29bb diff --git a/packages/core/build/src/fixtures/build/babel-normal/src/foo.test.tsx b/packages/core/build/src/fixtures/build/babel-normal/src/foo.test.tsx new file mode 100755 index 000000000..e69de29bb diff --git a/packages/core/build/src/fixtures/build/babel-normal/src/index.js b/packages/core/build/src/fixtures/build/babel-normal/src/index.js new file mode 100755 index 000000000..9d80d06dc --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-normal/src/index.js @@ -0,0 +1,4 @@ +import 'bar'; +import foo from './foo'; + +console.log(foo()); diff --git a/packages/core/build/src/fixtures/build/babel-normal/src/types.d.ts b/packages/core/build/src/fixtures/build/babel-normal/src/types.d.ts new file mode 100755 index 000000000..e69de29bb diff --git a/packages/core/build/src/fixtures/build/babel-runtimeHelpers/.fatherrc.js b/packages/core/build/src/fixtures/build/babel-runtimeHelpers/.fatherrc.js new file mode 100755 index 000000000..6d1ce8487 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-runtimeHelpers/.fatherrc.js @@ -0,0 +1,6 @@ + +export default { + runtimeHelpers: true, + esm: { type: 'babel' }, + cjs: { type: 'babel' }, +} diff --git a/packages/core/build/src/fixtures/build/babel-runtimeHelpers/expected/es/index.js b/packages/core/build/src/fixtures/build/babel-runtimeHelpers/expected/es/index.js new file mode 100755 index 000000000..9a5518f11 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-runtimeHelpers/expected/es/index.js @@ -0,0 +1,21 @@ +import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; +import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck"; +import _createClass from "@babel/runtime/helpers/esm/createClass"; + +var A = /*#__PURE__*/function () { + function A() { + _classCallCheck(this, A); + } + + _createClass(A, [{ + key: "foo", + value: function foo() {} + }]); + + return A; +}(); + +new A().foo(); +var a = {}; + +var b = _objectSpread({}, a); \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/babel-runtimeHelpers/package.json b/packages/core/build/src/fixtures/build/babel-runtimeHelpers/package.json new file mode 100755 index 000000000..9c4a09846 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-runtimeHelpers/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "@babel/runtime": "7.10.4" + } +} diff --git a/packages/core/build/src/fixtures/build/babel-runtimeHelpers/src/index.js b/packages/core/build/src/fixtures/build/babel-runtimeHelpers/src/index.js new file mode 100755 index 000000000..5f0d5578c --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-runtimeHelpers/src/index.js @@ -0,0 +1,9 @@ + +class A { + foo() {} +} + +(new A()).foo(); + +const a = {}; +const b = {...a}; \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/babel-syntax/.fatherrc.js b/packages/core/build/src/fixtures/build/babel-syntax/.fatherrc.js new file mode 100755 index 000000000..8b9450222 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-syntax/.fatherrc.js @@ -0,0 +1,4 @@ + +export default { + esm: { type: 'rollup' }, +}; diff --git a/packages/core/build/src/fixtures/build/babel-syntax/expected/index.esm.js b/packages/core/build/src/fixtures/build/babel-syntax/expected/index.esm.js new file mode 100755 index 000000000..c74948696 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-syntax/expected/index.esm.js @@ -0,0 +1,84 @@ +import React from 'react'; + +function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +} + +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; +} + +function _objectWithoutProperties(source, excluded) { + if (source == null) return {}; + + var target = _objectWithoutPropertiesLoose(source, excluded); + + var key, i; + + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + + for (i = 0; i < sourceSymbolKeys.length; i++) { + key = sourceSymbolKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; + target[key] = source[key]; + } + } + + return target; +} + +function a () { + alert('a'); +} + +function b1() { + alert('b1'); +} +function b2() { + alert('b2'); +} + +var b = /*#__PURE__*/Object.freeze({ + __proto__: null, + b1: b1, + b2: b2 +}); + +var _class; +// babel-plugin-react-require +var Foo = function Foo() { + return /*#__PURE__*/React.createElement("div", null); +}; // Don't support multiple chunks for now +// @babel/plugin-syntax-dynamic-import +// import('./a'); +// object-rest-spread + +var _bar = bar, + foo = _bar.foo, + z = _objectWithoutProperties(_bar, ["foo"]); + +console.log(z); // @babel/plugin-proposal-decorators + class + +var A = foo(_class = function A() { + _classCallCheck(this, A); +}) || _class; // export default from + +var a$1 = x > 10 ? 'big' : 'small'; +console.log(a$1); // export namespace from + +export { A, Foo, a, b }; diff --git a/packages/core/build/src/fixtures/build/babel-syntax/package.json b/packages/core/build/src/fixtures/build/babel-syntax/package.json new file mode 100755 index 000000000..1368588bd --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-syntax/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "react": "^16.8.4" + } +} diff --git a/packages/core/build/src/fixtures/build/babel-syntax/src/a.js b/packages/core/build/src/fixtures/build/babel-syntax/src/a.js new file mode 100755 index 000000000..4e005dbee --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-syntax/src/a.js @@ -0,0 +1,4 @@ + +export default function () { + alert('a'); +} diff --git a/packages/core/build/src/fixtures/build/babel-syntax/src/b.js b/packages/core/build/src/fixtures/build/babel-syntax/src/b.js new file mode 100755 index 000000000..c03767c13 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-syntax/src/b.js @@ -0,0 +1,8 @@ + +export function b1() { + alert('b1'); +} + +export function b2() { + alert('b2'); +} diff --git a/packages/core/build/src/fixtures/build/babel-syntax/src/index.js b/packages/core/build/src/fixtures/build/babel-syntax/src/index.js new file mode 100755 index 000000000..aec1e847b --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-syntax/src/index.js @@ -0,0 +1,32 @@ + +// babel-plugin-react-require +export const Foo = () =>
; + +// Don't support multiple chunks for now +// @babel/plugin-syntax-dynamic-import +// import('./a'); + +// object-rest-spread +const { foo, ...z } = bar; +console.log(z); + +// @babel/plugin-proposal-decorators + class +@foo +export class A {} + +// export default from +export a from './a'; + +// do expression +let a = do { + if(x > 10) { + 'big'; + } else { + 'small'; + } +}; +console.log(a); + +// export namespace from +export * as b from './b'; + diff --git a/packages/core/build/src/fixtures/build/babel-ts-3.7-features/.fatherrc.js b/packages/core/build/src/fixtures/build/babel-ts-3.7-features/.fatherrc.js new file mode 100755 index 000000000..0637dcfc5 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-ts-3.7-features/.fatherrc.js @@ -0,0 +1,4 @@ +export default { + cjs: { type: 'babel' }, + esm: { type: 'babel' }, +}; diff --git a/packages/core/build/src/fixtures/build/babel-ts-3.7-features/expected/es/index.d.ts b/packages/core/build/src/fixtures/build/babel-ts-3.7-features/expected/es/index.d.ts new file mode 100755 index 000000000..daaf9ca46 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-ts-3.7-features/expected/es/index.d.ts @@ -0,0 +1,2 @@ +export declare const optionalChaining: string; +export declare const nullishCoalescing: string | boolean; diff --git a/packages/core/build/src/fixtures/build/babel-ts-3.7-features/expected/es/index.js b/packages/core/build/src/fixtures/build/babel-ts-3.7-features/expected/es/index.js new file mode 100755 index 000000000..640b9525a --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-ts-3.7-features/expected/es/index.js @@ -0,0 +1,6 @@ +var _foo$test; + +var foo = {}; +export var optionalChaining = foo === null || foo === void 0 ? void 0 : (_foo$test = foo.test) === null || _foo$test === void 0 ? void 0 : _foo$test.abc; +var bar = false; +export var nullishCoalescing = bar !== null && bar !== void 0 ? bar : 'default'; diff --git a/packages/core/build/src/fixtures/build/babel-ts-3.7-features/src/index.ts b/packages/core/build/src/fixtures/build/babel-ts-3.7-features/src/index.ts new file mode 100755 index 000000000..5ed0adeb7 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-ts-3.7-features/src/index.ts @@ -0,0 +1,11 @@ +type Foo = { + test?: { + abc?: string; + } +} +const foo: Foo = {}; + +export const optionalChaining = foo?.test?.abc; + +const bar = false; +export const nullishCoalescing = bar ?? 'default'; diff --git a/packages/core/build/src/fixtures/build/babel-typescript-disable-typecheck/.fatherrc.js b/packages/core/build/src/fixtures/build/babel-typescript-disable-typecheck/.fatherrc.js new file mode 100755 index 000000000..166359112 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-typescript-disable-typecheck/.fatherrc.js @@ -0,0 +1,6 @@ + +export default { + cjs: { type: 'babel' }, + esm: { type: 'babel' }, + disableTypeCheck: true, +}; diff --git a/packages/core/build/src/fixtures/build/babel-typescript-disable-typecheck/expected/es/index.js b/packages/core/build/src/fixtures/build/babel-typescript-disable-typecheck/expected/es/index.js new file mode 100755 index 000000000..da1c4ebf5 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-typescript-disable-typecheck/expected/es/index.js @@ -0,0 +1,3 @@ +export default function foo(opts) { + return opts.foo ? 'foo' : 'bar'; +} \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/babel-typescript-disable-typecheck/src/index.ts b/packages/core/build/src/fixtures/build/babel-typescript-disable-typecheck/src/index.ts new file mode 100755 index 000000000..3a0363ce2 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-typescript-disable-typecheck/src/index.ts @@ -0,0 +1,7 @@ +interface IOpts { + foo: boolean; +} + +export default function foo(opts: IOpts): string { + return opts.foo ? 'foo' : 'bar'; +} diff --git a/packages/core/build/src/fixtures/build/babel-typescript-disable-typecheck/tsconfig.json b/packages/core/build/src/fixtures/build/babel-typescript-disable-typecheck/tsconfig.json new file mode 100755 index 000000000..d322bf935 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-typescript-disable-typecheck/tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "target": "esnext", + "moduleResolution": "node", + "jsx": "preserve", + "esModuleInterop": true + } +} diff --git a/packages/core/build/src/fixtures/build/babel-typescript-template/.fatherrc.js b/packages/core/build/src/fixtures/build/babel-typescript-template/.fatherrc.js new file mode 100755 index 000000000..19390b36b --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-typescript-template/.fatherrc.js @@ -0,0 +1,5 @@ + +export default { + cjs: { type: 'babel' }, + esm: { type: 'babel' }, +}; diff --git a/packages/core/build/src/fixtures/build/babel-typescript-template/expected/es/index.d.ts b/packages/core/build/src/fixtures/build/babel-typescript-template/expected/es/index.d.ts new file mode 100755 index 000000000..9f688a7e2 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-typescript-template/expected/es/index.d.ts @@ -0,0 +1,5 @@ +interface IOpts { + foo: boolean; +} +export default function foo(opts: IOpts): string; +export {}; diff --git a/packages/core/build/src/fixtures/build/babel-typescript-template/expected/es/index.js b/packages/core/build/src/fixtures/build/babel-typescript-template/expected/es/index.js new file mode 100755 index 000000000..da1c4ebf5 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-typescript-template/expected/es/index.js @@ -0,0 +1,3 @@ +export default function foo(opts) { + return opts.foo ? 'foo' : 'bar'; +} \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/babel-typescript-template/src/index.ts b/packages/core/build/src/fixtures/build/babel-typescript-template/src/index.ts new file mode 100755 index 000000000..3a0363ce2 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-typescript-template/src/index.ts @@ -0,0 +1,7 @@ +interface IOpts { + foo: boolean; +} + +export default function foo(opts: IOpts): string { + return opts.foo ? 'foo' : 'bar'; +} diff --git a/packages/core/build/src/fixtures/build/babel-typescript/.fatherrc.js b/packages/core/build/src/fixtures/build/babel-typescript/.fatherrc.js new file mode 100755 index 000000000..19390b36b --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-typescript/.fatherrc.js @@ -0,0 +1,5 @@ + +export default { + cjs: { type: 'babel' }, + esm: { type: 'babel' }, +}; diff --git a/packages/core/build/src/fixtures/build/babel-typescript/expected/es/index.d.ts b/packages/core/build/src/fixtures/build/babel-typescript/expected/es/index.d.ts new file mode 100755 index 000000000..9f688a7e2 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-typescript/expected/es/index.d.ts @@ -0,0 +1,5 @@ +interface IOpts { + foo: boolean; +} +export default function foo(opts: IOpts): string; +export {}; diff --git a/packages/core/build/src/fixtures/build/babel-typescript/expected/es/index.js b/packages/core/build/src/fixtures/build/babel-typescript/expected/es/index.js new file mode 100755 index 000000000..da1c4ebf5 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-typescript/expected/es/index.js @@ -0,0 +1,3 @@ +export default function foo(opts) { + return opts.foo ? 'foo' : 'bar'; +} \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/babel-typescript/src/index.ts b/packages/core/build/src/fixtures/build/babel-typescript/src/index.ts new file mode 100755 index 000000000..3a0363ce2 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-typescript/src/index.ts @@ -0,0 +1,7 @@ +interface IOpts { + foo: boolean; +} + +export default function foo(opts: IOpts): string { + return opts.foo ? 'foo' : 'bar'; +} diff --git a/packages/core/build/src/fixtures/build/babel-typescript/tsconfig.json b/packages/core/build/src/fixtures/build/babel-typescript/tsconfig.json new file mode 100755 index 000000000..fd3ce93b7 --- /dev/null +++ b/packages/core/build/src/fixtures/build/babel-typescript/tsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + // tsconfig is not valid josn file + "target": "esnext", + "moduleResolution": "node", + "jsx": "preserve", + "esModuleInterop": true, + "declaration": true + } +} diff --git a/packages/core/build/src/fixtures/build/config-array/.fatherrc.js b/packages/core/build/src/fixtures/build/config-array/.fatherrc.js new file mode 100755 index 000000000..695d856f1 --- /dev/null +++ b/packages/core/build/src/fixtures/build/config-array/.fatherrc.js @@ -0,0 +1,13 @@ + +export default [ + { + cjs: 'babel', + }, + { + entry: 'ui/index.js', + umd: { + name: 'foo', + minFile: false, + }, + }, +]; diff --git a/packages/core/build/src/fixtures/build/config-array/expected/index.umd.js b/packages/core/build/src/fixtures/build/config-array/expected/index.umd.js new file mode 100755 index 000000000..f610a7710 --- /dev/null +++ b/packages/core/build/src/fixtures/build/config-array/expected/index.umd.js @@ -0,0 +1,13 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : + typeof define === 'function' && define.amd ? define(factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.foo = factory()); +}(this, (function () { 'use strict'; + + var index = (function () { + return 1; + }); + + return index; + +}))); diff --git a/packages/core/build/src/fixtures/build/config-array/src/index.js b/packages/core/build/src/fixtures/build/config-array/src/index.js new file mode 100755 index 000000000..be26f6dda --- /dev/null +++ b/packages/core/build/src/fixtures/build/config-array/src/index.js @@ -0,0 +1,2 @@ + +export default () => 1; diff --git a/packages/core/build/src/fixtures/build/config-array/ui/index.js b/packages/core/build/src/fixtures/build/config-array/ui/index.js new file mode 100755 index 000000000..807a7975a --- /dev/null +++ b/packages/core/build/src/fixtures/build/config-array/ui/index.js @@ -0,0 +1 @@ +export default () => 1; diff --git a/packages/core/build/src/fixtures/build/lerna-pkgs/.fatherrc.js b/packages/core/build/src/fixtures/build/lerna-pkgs/.fatherrc.js new file mode 100755 index 000000000..391752f4d --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-pkgs/.fatherrc.js @@ -0,0 +1,8 @@ + +export default { + esm: { type: 'rollup' }, + pkgs: [ + 'foo', + 'bar' + ] +} diff --git a/packages/core/build/src/fixtures/build/lerna-pkgs/core/bar/package.json b/packages/core/build/src/fixtures/build/lerna-pkgs/core/bar/package.json new file mode 100755 index 000000000..694594cfe --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-pkgs/core/bar/package.json @@ -0,0 +1,3 @@ +{ + "name": "bar" +} diff --git a/packages/core/build/src/fixtures/build/lerna-pkgs/core/bar/src/index.js b/packages/core/build/src/fixtures/build/lerna-pkgs/core/bar/src/index.js new file mode 100755 index 000000000..9638d025d --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-pkgs/core/bar/src/index.js @@ -0,0 +1,2 @@ + +console.log('bar'); diff --git a/packages/core/build/src/fixtures/build/lerna-pkgs/core/foo/package.json b/packages/core/build/src/fixtures/build/lerna-pkgs/core/foo/package.json new file mode 100755 index 000000000..bde99de92 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-pkgs/core/foo/package.json @@ -0,0 +1,3 @@ +{ + "name": "foo" +} diff --git a/packages/core/build/src/fixtures/build/lerna-pkgs/core/foo/src/index.js b/packages/core/build/src/fixtures/build/lerna-pkgs/core/foo/src/index.js new file mode 100755 index 000000000..695557eab --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-pkgs/core/foo/src/index.js @@ -0,0 +1,2 @@ + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/lerna-pkgs/expected/bar/index.esm.js b/packages/core/build/src/fixtures/build/lerna-pkgs/expected/bar/index.esm.js new file mode 100755 index 000000000..8cc7aa3e9 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-pkgs/expected/bar/index.esm.js @@ -0,0 +1 @@ +console.log('bar'); diff --git a/packages/core/build/src/fixtures/build/lerna-pkgs/expected/foo/index.esm.js b/packages/core/build/src/fixtures/build/lerna-pkgs/expected/foo/index.esm.js new file mode 100755 index 000000000..81afa3157 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-pkgs/expected/foo/index.esm.js @@ -0,0 +1 @@ +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/lerna-pkgs/lerna.json b/packages/core/build/src/fixtures/build/lerna-pkgs/lerna.json new file mode 100755 index 000000000..e85dc989a --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-pkgs/lerna.json @@ -0,0 +1,5 @@ +{ + "packages": [ + "core/*" + ] +} \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/lerna-root-config-override/.fatherrc.js b/packages/core/build/src/fixtures/build/lerna-root-config-override/.fatherrc.js new file mode 100755 index 000000000..2f10183a3 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-config-override/.fatherrc.js @@ -0,0 +1,4 @@ + +export default { + esm: { type: 'rollup' }, +} diff --git a/packages/core/build/src/fixtures/build/lerna-root-config-override/expected/bar/index.js b/packages/core/build/src/fixtures/build/lerna-root-config-override/expected/bar/index.js new file mode 100755 index 000000000..2b1938520 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-config-override/expected/bar/index.js @@ -0,0 +1,3 @@ +'use strict'; + +console.log('bar'); diff --git a/packages/core/build/src/fixtures/build/lerna-root-config-override/expected/foo/index.js b/packages/core/build/src/fixtures/build/lerna-root-config-override/expected/foo/index.js new file mode 100755 index 000000000..aece69e8b --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-config-override/expected/foo/index.js @@ -0,0 +1,3 @@ +'use strict'; + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/lerna-root-config-override/lerna.json b/packages/core/build/src/fixtures/build/lerna-root-config-override/lerna.json new file mode 100755 index 000000000..0967ef424 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-config-override/lerna.json @@ -0,0 +1 @@ +{} diff --git a/packages/core/build/src/fixtures/build/lerna-root-config-override/packages/bar/package.json b/packages/core/build/src/fixtures/build/lerna-root-config-override/packages/bar/package.json new file mode 100755 index 000000000..694594cfe --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-config-override/packages/bar/package.json @@ -0,0 +1,3 @@ +{ + "name": "bar" +} diff --git a/packages/core/build/src/fixtures/build/lerna-root-config-override/packages/bar/src/index.js b/packages/core/build/src/fixtures/build/lerna-root-config-override/packages/bar/src/index.js new file mode 100755 index 000000000..9638d025d --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-config-override/packages/bar/src/index.js @@ -0,0 +1,2 @@ + +console.log('bar'); diff --git a/packages/core/build/src/fixtures/build/lerna-root-config-override/packages/foo/package.json b/packages/core/build/src/fixtures/build/lerna-root-config-override/packages/foo/package.json new file mode 100755 index 000000000..bde99de92 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-config-override/packages/foo/package.json @@ -0,0 +1,3 @@ +{ + "name": "foo" +} diff --git a/packages/core/build/src/fixtures/build/lerna-root-config-override/packages/foo/src/index.js b/packages/core/build/src/fixtures/build/lerna-root-config-override/packages/foo/src/index.js new file mode 100755 index 000000000..695557eab --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-config-override/packages/foo/src/index.js @@ -0,0 +1,2 @@ + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/lerna-root-config/.fatherrc.js b/packages/core/build/src/fixtures/build/lerna-root-config/.fatherrc.js new file mode 100755 index 000000000..2f10183a3 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-config/.fatherrc.js @@ -0,0 +1,4 @@ + +export default { + esm: { type: 'rollup' }, +} diff --git a/packages/core/build/src/fixtures/build/lerna-root-config/expected/bar/index.esm.js b/packages/core/build/src/fixtures/build/lerna-root-config/expected/bar/index.esm.js new file mode 100755 index 000000000..8cc7aa3e9 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-config/expected/bar/index.esm.js @@ -0,0 +1 @@ +console.log('bar'); diff --git a/packages/core/build/src/fixtures/build/lerna-root-config/expected/foo/index.esm.js b/packages/core/build/src/fixtures/build/lerna-root-config/expected/foo/index.esm.js new file mode 100755 index 000000000..81afa3157 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-config/expected/foo/index.esm.js @@ -0,0 +1 @@ +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/lerna-root-config/lerna.json b/packages/core/build/src/fixtures/build/lerna-root-config/lerna.json new file mode 100755 index 000000000..0967ef424 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-config/lerna.json @@ -0,0 +1 @@ +{} diff --git a/packages/core/build/src/fixtures/build/lerna-root-config/packages/bar/package.json b/packages/core/build/src/fixtures/build/lerna-root-config/packages/bar/package.json new file mode 100755 index 000000000..694594cfe --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-config/packages/bar/package.json @@ -0,0 +1,3 @@ +{ + "name": "bar" +} diff --git a/packages/core/build/src/fixtures/build/lerna-root-config/packages/bar/src/index.js b/packages/core/build/src/fixtures/build/lerna-root-config/packages/bar/src/index.js new file mode 100755 index 000000000..9638d025d --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-config/packages/bar/src/index.js @@ -0,0 +1,2 @@ + +console.log('bar'); diff --git a/packages/core/build/src/fixtures/build/lerna-root-config/packages/foo/package.json b/packages/core/build/src/fixtures/build/lerna-root-config/packages/foo/package.json new file mode 100755 index 000000000..bde99de92 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-config/packages/foo/package.json @@ -0,0 +1,3 @@ +{ + "name": "foo" +} diff --git a/packages/core/build/src/fixtures/build/lerna-root-config/packages/foo/src/index.js b/packages/core/build/src/fixtures/build/lerna-root-config/packages/foo/src/index.js new file mode 100755 index 000000000..695557eab --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-config/packages/foo/src/index.js @@ -0,0 +1,2 @@ + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/lerna-root-scope/.fatherrc.js b/packages/core/build/src/fixtures/build/lerna-root-scope/.fatherrc.js new file mode 100755 index 000000000..5c4c510bf --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-scope/.fatherrc.js @@ -0,0 +1,3 @@ +export default { + esm: { type: 'babel' }, +} diff --git a/packages/core/build/src/fixtures/build/lerna-root-scope/expected/bar/index.esm.js b/packages/core/build/src/fixtures/build/lerna-root-scope/expected/bar/index.esm.js new file mode 100755 index 000000000..8cc7aa3e9 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-scope/expected/bar/index.esm.js @@ -0,0 +1 @@ +console.log('bar'); diff --git a/packages/core/build/src/fixtures/build/lerna-root-scope/expected/foo/index.esm.js b/packages/core/build/src/fixtures/build/lerna-root-scope/expected/foo/index.esm.js new file mode 100755 index 000000000..81afa3157 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-scope/expected/foo/index.esm.js @@ -0,0 +1 @@ +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/lerna-root-scope/lerna.json b/packages/core/build/src/fixtures/build/lerna-root-scope/lerna.json new file mode 100755 index 000000000..0967ef424 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-scope/lerna.json @@ -0,0 +1 @@ +{} diff --git a/packages/core/build/src/fixtures/build/lerna-root-scope/packages/bar/.fatherrc.js b/packages/core/build/src/fixtures/build/lerna-root-scope/packages/bar/.fatherrc.js new file mode 100755 index 000000000..030fee174 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-scope/packages/bar/.fatherrc.js @@ -0,0 +1,3 @@ +export default { + esm: { type: 'rollup' }, +} diff --git a/packages/core/build/src/fixtures/build/lerna-root-scope/packages/bar/package.json b/packages/core/build/src/fixtures/build/lerna-root-scope/packages/bar/package.json new file mode 100755 index 000000000..694594cfe --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-scope/packages/bar/package.json @@ -0,0 +1,3 @@ +{ + "name": "bar" +} diff --git a/packages/core/build/src/fixtures/build/lerna-root-scope/packages/bar/src/index.js b/packages/core/build/src/fixtures/build/lerna-root-scope/packages/bar/src/index.js new file mode 100755 index 000000000..9638d025d --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-scope/packages/bar/src/index.js @@ -0,0 +1,2 @@ + +console.log('bar'); diff --git a/packages/core/build/src/fixtures/build/lerna-root-scope/packages/foo/.fatherrc.js b/packages/core/build/src/fixtures/build/lerna-root-scope/packages/foo/.fatherrc.js new file mode 100755 index 000000000..030fee174 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-scope/packages/foo/.fatherrc.js @@ -0,0 +1,3 @@ +export default { + esm: { type: 'rollup' }, +} diff --git a/packages/core/build/src/fixtures/build/lerna-root-scope/packages/foo/package.json b/packages/core/build/src/fixtures/build/lerna-root-scope/packages/foo/package.json new file mode 100755 index 000000000..bde99de92 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-scope/packages/foo/package.json @@ -0,0 +1,3 @@ +{ + "name": "foo" +} diff --git a/packages/core/build/src/fixtures/build/lerna-root-scope/packages/foo/src/index.js b/packages/core/build/src/fixtures/build/lerna-root-scope/packages/foo/src/index.js new file mode 100755 index 000000000..695557eab --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-scope/packages/foo/src/index.js @@ -0,0 +1,2 @@ + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/lerna-root-tsconfig/.fatherrc.js b/packages/core/build/src/fixtures/build/lerna-root-tsconfig/.fatherrc.js new file mode 100755 index 000000000..2875def12 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-tsconfig/.fatherrc.js @@ -0,0 +1,4 @@ + +export default { + esm: { type: 'babel' }, +} diff --git a/packages/core/build/src/fixtures/build/lerna-root-tsconfig/expected/bar/es/index.js b/packages/core/build/src/fixtures/build/lerna-root-tsconfig/expected/bar/es/index.js new file mode 100755 index 000000000..11f6ee783 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-tsconfig/expected/bar/es/index.js @@ -0,0 +1,3 @@ +export default (function () { + console.log('bar'); +}); \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/lerna-root-tsconfig/expected/foo/es/index.js b/packages/core/build/src/fixtures/build/lerna-root-tsconfig/expected/foo/es/index.js new file mode 100755 index 000000000..1f28f54e8 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-tsconfig/expected/foo/es/index.js @@ -0,0 +1,3 @@ +export default (function () { + console.log('foo'); +}); \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/lerna-root-tsconfig/lerna.json b/packages/core/build/src/fixtures/build/lerna-root-tsconfig/lerna.json new file mode 100755 index 000000000..0967ef424 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-tsconfig/lerna.json @@ -0,0 +1 @@ +{} diff --git a/packages/core/build/src/fixtures/build/lerna-root-tsconfig/packages/bar/package.json b/packages/core/build/src/fixtures/build/lerna-root-tsconfig/packages/bar/package.json new file mode 100755 index 000000000..694594cfe --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-tsconfig/packages/bar/package.json @@ -0,0 +1,3 @@ +{ + "name": "bar" +} diff --git a/packages/core/build/src/fixtures/build/lerna-root-tsconfig/packages/bar/src/index.ts b/packages/core/build/src/fixtures/build/lerna-root-tsconfig/packages/bar/src/index.ts new file mode 100755 index 000000000..f053c5b21 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-tsconfig/packages/bar/src/index.ts @@ -0,0 +1,4 @@ + +export default () => { + console.log('bar'); +}; diff --git a/packages/core/build/src/fixtures/build/lerna-root-tsconfig/packages/foo/package.json b/packages/core/build/src/fixtures/build/lerna-root-tsconfig/packages/foo/package.json new file mode 100755 index 000000000..bde99de92 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-tsconfig/packages/foo/package.json @@ -0,0 +1,3 @@ +{ + "name": "foo" +} diff --git a/packages/core/build/src/fixtures/build/lerna-root-tsconfig/packages/foo/src/index.ts b/packages/core/build/src/fixtures/build/lerna-root-tsconfig/packages/foo/src/index.ts new file mode 100755 index 000000000..32ecfb320 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-tsconfig/packages/foo/src/index.ts @@ -0,0 +1,4 @@ + +export default () => { + console.log('foo'); +}; diff --git a/packages/core/build/src/fixtures/build/lerna-root-tsconfig/tsconfig.json b/packages/core/build/src/fixtures/build/lerna-root-tsconfig/tsconfig.json new file mode 100755 index 000000000..38fe9e814 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-root-tsconfig/tsconfig.json @@ -0,0 +1,12 @@ +{ + "compilerOptions": { + "declaration": false, + "target": "esnext", + "module": "esnext", + "moduleResolution": "node", + "jsx": "react", + "esModuleInterop": true, + "allowSyntheticDefaultImports": true + }, + "exclude": ["node_modules", "es", "lib", "dist"] +} diff --git a/packages/core/build/src/fixtures/build/lerna-scope-packages/expected/bar/index.esm.js b/packages/core/build/src/fixtures/build/lerna-scope-packages/expected/bar/index.esm.js new file mode 100755 index 000000000..8cc7aa3e9 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-scope-packages/expected/bar/index.esm.js @@ -0,0 +1 @@ +console.log('bar'); diff --git a/packages/core/build/src/fixtures/build/lerna-scope-packages/expected/foo/index.esm.js b/packages/core/build/src/fixtures/build/lerna-scope-packages/expected/foo/index.esm.js new file mode 100755 index 000000000..81afa3157 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-scope-packages/expected/foo/index.esm.js @@ -0,0 +1 @@ +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/lerna-scope-packages/lerna.json b/packages/core/build/src/fixtures/build/lerna-scope-packages/lerna.json new file mode 100755 index 000000000..0967ef424 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-scope-packages/lerna.json @@ -0,0 +1 @@ +{} diff --git a/packages/core/build/src/fixtures/build/lerna-scope-packages/packages/@hoo/bar/.fatherrc.js b/packages/core/build/src/fixtures/build/lerna-scope-packages/packages/@hoo/bar/.fatherrc.js new file mode 100755 index 000000000..2f10183a3 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-scope-packages/packages/@hoo/bar/.fatherrc.js @@ -0,0 +1,4 @@ + +export default { + esm: { type: 'rollup' }, +} diff --git a/packages/core/build/src/fixtures/build/lerna-scope-packages/packages/@hoo/bar/package.json b/packages/core/build/src/fixtures/build/lerna-scope-packages/packages/@hoo/bar/package.json new file mode 100755 index 000000000..d970115c2 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-scope-packages/packages/@hoo/bar/package.json @@ -0,0 +1,3 @@ +{ + "name": "@hoo/bar" +} diff --git a/packages/core/build/src/fixtures/build/lerna-scope-packages/packages/@hoo/bar/src/index.js b/packages/core/build/src/fixtures/build/lerna-scope-packages/packages/@hoo/bar/src/index.js new file mode 100755 index 000000000..9638d025d --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-scope-packages/packages/@hoo/bar/src/index.js @@ -0,0 +1,2 @@ + +console.log('bar'); diff --git a/packages/core/build/src/fixtures/build/lerna-scope-packages/packages/foo/.fatherrc.js b/packages/core/build/src/fixtures/build/lerna-scope-packages/packages/foo/.fatherrc.js new file mode 100755 index 000000000..2f10183a3 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-scope-packages/packages/foo/.fatherrc.js @@ -0,0 +1,4 @@ + +export default { + esm: { type: 'rollup' }, +} diff --git a/packages/core/build/src/fixtures/build/lerna-scope-packages/packages/foo/package.json b/packages/core/build/src/fixtures/build/lerna-scope-packages/packages/foo/package.json new file mode 100755 index 000000000..bde99de92 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-scope-packages/packages/foo/package.json @@ -0,0 +1,3 @@ +{ + "name": "foo" +} diff --git a/packages/core/build/src/fixtures/build/lerna-scope-packages/packages/foo/src/index.js b/packages/core/build/src/fixtures/build/lerna-scope-packages/packages/foo/src/index.js new file mode 100755 index 000000000..695557eab --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna-scope-packages/packages/foo/src/index.js @@ -0,0 +1,2 @@ + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/lerna/expected/bar/index.esm.js b/packages/core/build/src/fixtures/build/lerna/expected/bar/index.esm.js new file mode 100755 index 000000000..8cc7aa3e9 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna/expected/bar/index.esm.js @@ -0,0 +1 @@ +console.log('bar'); diff --git a/packages/core/build/src/fixtures/build/lerna/expected/foo/index.esm.js b/packages/core/build/src/fixtures/build/lerna/expected/foo/index.esm.js new file mode 100755 index 000000000..81afa3157 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna/expected/foo/index.esm.js @@ -0,0 +1 @@ +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/lerna/lerna.json b/packages/core/build/src/fixtures/build/lerna/lerna.json new file mode 100755 index 000000000..0967ef424 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna/lerna.json @@ -0,0 +1 @@ +{} diff --git a/packages/core/build/src/fixtures/build/lerna/packages/bar/.fatherrc.js b/packages/core/build/src/fixtures/build/lerna/packages/bar/.fatherrc.js new file mode 100755 index 000000000..2f10183a3 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna/packages/bar/.fatherrc.js @@ -0,0 +1,4 @@ + +export default { + esm: { type: 'rollup' }, +} diff --git a/packages/core/build/src/fixtures/build/lerna/packages/bar/package.json b/packages/core/build/src/fixtures/build/lerna/packages/bar/package.json new file mode 100755 index 000000000..694594cfe --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna/packages/bar/package.json @@ -0,0 +1,3 @@ +{ + "name": "bar" +} diff --git a/packages/core/build/src/fixtures/build/lerna/packages/bar/src/index.js b/packages/core/build/src/fixtures/build/lerna/packages/bar/src/index.js new file mode 100755 index 000000000..9638d025d --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna/packages/bar/src/index.js @@ -0,0 +1,2 @@ + +console.log('bar'); diff --git a/packages/core/build/src/fixtures/build/lerna/packages/foo/.fatherrc.js b/packages/core/build/src/fixtures/build/lerna/packages/foo/.fatherrc.js new file mode 100755 index 000000000..2f10183a3 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna/packages/foo/.fatherrc.js @@ -0,0 +1,4 @@ + +export default { + esm: { type: 'rollup' }, +} diff --git a/packages/core/build/src/fixtures/build/lerna/packages/foo/package.json b/packages/core/build/src/fixtures/build/lerna/packages/foo/package.json new file mode 100755 index 000000000..bde99de92 --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna/packages/foo/package.json @@ -0,0 +1,3 @@ +{ + "name": "foo" +} diff --git a/packages/core/build/src/fixtures/build/lerna/packages/foo/src/index.js b/packages/core/build/src/fixtures/build/lerna/packages/foo/src/index.js new file mode 100755 index 000000000..695557eab --- /dev/null +++ b/packages/core/build/src/fixtures/build/lerna/packages/foo/src/index.js @@ -0,0 +1,2 @@ + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/require-node_modules-in-sub-directory/.fatherrc.js b/packages/core/build/src/fixtures/build/require-node_modules-in-sub-directory/.fatherrc.js new file mode 100755 index 000000000..6e6bd69f5 --- /dev/null +++ b/packages/core/build/src/fixtures/build/require-node_modules-in-sub-directory/.fatherrc.js @@ -0,0 +1,6 @@ + +export default { + umd: { + minFile: false, + }, +}; diff --git a/packages/core/build/src/fixtures/build/require-node_modules-in-sub-directory/expected/index.umd.js b/packages/core/build/src/fixtures/build/require-node_modules-in-sub-directory/expected/index.umd.js new file mode 100755 index 000000000..3819aa8e9 --- /dev/null +++ b/packages/core/build/src/fixtures/build/require-node_modules-in-sub-directory/expected/index.umd.js @@ -0,0 +1,43 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : + typeof define === 'function' && define.amd ? define(factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.foo = factory()); +}(this, (function () { 'use strict'; + + var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; + + function createCommonjsModule(fn, basedir, module) { + return module = { + path: basedir, + exports: {}, + require: function (path, base) { + return commonjsRequire(path, (base === undefined || base === null) ? module.path : base); + } + }, fn(module, module.exports), module.exports; + } + + function commonjsRequire () { + throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs'); + } + + var lib = createCommonjsModule(function (module) { + (function (root, factory) { + if ( module.exports) { + module.exports = factory(); + } else { + root.timing2 = factory(); + } + }(typeof self !== 'undefined' ? self : commonjsGlobal, function () { + return { + timing2: 'timing2', + }; + })); + }); + + function index () { + console.log(lib); + } + + return index; + +}))); diff --git a/packages/core/build/src/fixtures/build/require-node_modules-in-sub-directory/package.json b/packages/core/build/src/fixtures/build/require-node_modules-in-sub-directory/package.json new file mode 100755 index 000000000..bde99de92 --- /dev/null +++ b/packages/core/build/src/fixtures/build/require-node_modules-in-sub-directory/package.json @@ -0,0 +1,3 @@ +{ + "name": "foo" +} diff --git a/packages/core/build/src/fixtures/build/require-node_modules-in-sub-directory/packages/fooo/package.json b/packages/core/build/src/fixtures/build/require-node_modules-in-sub-directory/packages/fooo/package.json new file mode 100755 index 000000000..de662967e --- /dev/null +++ b/packages/core/build/src/fixtures/build/require-node_modules-in-sub-directory/packages/fooo/package.json @@ -0,0 +1,9 @@ +{ + "name": "fooo", + "dependencies": { + "timing2": "^0.3.3" + }, + "scripts": { + "build": "father build --umd" + } +} diff --git a/packages/core/build/src/fixtures/build/require-node_modules-in-sub-directory/packages/fooo/src/index.js b/packages/core/build/src/fixtures/build/require-node_modules-in-sub-directory/packages/fooo/src/index.js new file mode 100755 index 000000000..ce3b69ab5 --- /dev/null +++ b/packages/core/build/src/fixtures/build/require-node_modules-in-sub-directory/packages/fooo/src/index.js @@ -0,0 +1,5 @@ +import timing2 from 'timing2'; + +export default function() { + console.log(timing2); +}; diff --git a/packages/core/build/src/fixtures/build/require-node_modules-in-sub-directory/src/index.js b/packages/core/build/src/fixtures/build/require-node_modules-in-sub-directory/src/index.js new file mode 100755 index 000000000..917890035 --- /dev/null +++ b/packages/core/build/src/fixtures/build/require-node_modules-in-sub-directory/src/index.js @@ -0,0 +1 @@ +export { default } from '../packages/fooo/src/index'; diff --git a/packages/core/build/src/fixtures/build/rollup-commonjs-deps-auto-named-exports/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-commonjs-deps-auto-named-exports/.fatherrc.js new file mode 100755 index 000000000..6e6bd69f5 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-commonjs-deps-auto-named-exports/.fatherrc.js @@ -0,0 +1,6 @@ + +export default { + umd: { + minFile: false, + }, +}; diff --git a/packages/core/build/src/fixtures/build/rollup-commonjs-deps-auto-named-exports/expected/index.umd.js b/packages/core/build/src/fixtures/build/rollup-commonjs-deps-auto-named-exports/expected/index.umd.js new file mode 100755 index 000000000..1a43aefbc --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-commonjs-deps-auto-named-exports/expected/index.umd.js @@ -0,0 +1,34 @@ +(function (factory) { + typeof define === 'function' && define.amd ? define(factory) : + factory(); +}((function () { 'use strict'; + + function createCommonjsModule(fn, basedir, module) { + return module = { + path: basedir, + exports: {}, + require: function (path, base) { + return commonjsRequire(path, (base === undefined || base === null) ? module.path : base); + } + }, fn(module, module.exports), module.exports; + } + + function commonjsRequire () { + throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs'); + } + + var foo_1 = createCommonjsModule(function (module, exports) { + var foo = exports; + + foo.a = function () { + return 'a'; + }; + foo.b = function () { + return 'b'; + }; + }); + + console.log(foo_1.a()); + console.log(foo_1.b()); + +}))); diff --git a/packages/core/build/src/fixtures/build/rollup-commonjs-deps-auto-named-exports/package.json b/packages/core/build/src/fixtures/build/rollup-commonjs-deps-auto-named-exports/package.json new file mode 100755 index 000000000..040bc3a1e --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-commonjs-deps-auto-named-exports/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "foo": "0.1.0" + } +} diff --git a/packages/core/build/src/fixtures/build/rollup-commonjs-deps-auto-named-exports/src/index.js b/packages/core/build/src/fixtures/build/rollup-commonjs-deps-auto-named-exports/src/index.js new file mode 100755 index 000000000..8fa897e84 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-commonjs-deps-auto-named-exports/src/index.js @@ -0,0 +1,4 @@ +import { a, b } from 'foo'; + +console.log(a()); +console.log(b()); diff --git a/packages/core/build/src/fixtures/build/rollup-commonjs-deps/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-commonjs-deps/.fatherrc.js new file mode 100755 index 000000000..6e6bd69f5 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-commonjs-deps/.fatherrc.js @@ -0,0 +1,6 @@ + +export default { + umd: { + minFile: false, + }, +}; diff --git a/packages/core/build/src/fixtures/build/rollup-commonjs-deps/expected/index.umd.js b/packages/core/build/src/fixtures/build/rollup-commonjs-deps/expected/index.umd.js new file mode 100755 index 000000000..2c1ff18ce --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-commonjs-deps/expected/index.umd.js @@ -0,0 +1,18 @@ +(function (factory) { + typeof define === 'function' && define.amd ? define(factory) : + factory(); +}((function () { 'use strict'; + + var foo = { + a: function () { + return 'a'; + }, + b: function () { + return 'b'; + }, + }; + + console.log(foo.a()); + console.log(foo.b()); + +}))); diff --git a/packages/core/build/src/fixtures/build/rollup-commonjs-deps/package.json b/packages/core/build/src/fixtures/build/rollup-commonjs-deps/package.json new file mode 100755 index 000000000..040bc3a1e --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-commonjs-deps/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "foo": "0.1.0" + } +} diff --git a/packages/core/build/src/fixtures/build/rollup-commonjs-deps/src/index.js b/packages/core/build/src/fixtures/build/rollup-commonjs-deps/src/index.js new file mode 100755 index 000000000..8fa897e84 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-commonjs-deps/src/index.js @@ -0,0 +1,4 @@ +import { a, b } from 'foo'; + +console.log(a()); +console.log(b()); diff --git a/packages/core/build/src/fixtures/build/rollup-config-alias/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-config-alias/.fatherrc.js new file mode 100755 index 000000000..85815c788 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-config-alias/.fatherrc.js @@ -0,0 +1,4 @@ + +export default { + esm: 'rollup', +} diff --git a/packages/core/build/src/fixtures/build/rollup-config-alias/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-config-alias/expected/index.esm.js new file mode 100755 index 000000000..586fcf9a5 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-config-alias/expected/index.esm.js @@ -0,0 +1,6 @@ +var foo = 'a'; +function index () { + console.log(foo); +} + +export default index; diff --git a/packages/core/build/src/fixtures/build/rollup-config-alias/src/index.js b/packages/core/build/src/fixtures/build/rollup-config-alias/src/index.js new file mode 100755 index 000000000..80c65e1f0 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-config-alias/src/index.js @@ -0,0 +1,6 @@ + +const foo = 'a'; + +export default function () { + console.log(foo); +} diff --git a/packages/core/build/src/fixtures/build/rollup-css-autoprefixer/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-css-autoprefixer/.fatherrc.js new file mode 100755 index 000000000..5f43af600 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-css-autoprefixer/.fatherrc.js @@ -0,0 +1,10 @@ + +export default { + esm: { type: 'rollup' }, + autoprefixer: { + overrideBrowserslist: [ + 'ie>8', + 'Safari >= 6', + ], + }, +} diff --git a/packages/core/build/src/fixtures/build/rollup-css-autoprefixer/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-css-autoprefixer/expected/index.esm.js new file mode 100755 index 000000000..7724570da --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-css-autoprefixer/expected/index.esm.js @@ -0,0 +1,31 @@ +function styleInject(css, ref) { + if ( ref === void 0 ) ref = {}; + var insertAt = ref.insertAt; + + if (!css || typeof document === 'undefined') { return; } + + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.type = 'text/css'; + + if (insertAt === 'top') { + if (head.firstChild) { + head.insertBefore(style, head.firstChild); + } else { + head.appendChild(style); + } + } else { + head.appendChild(style); + } + + if (style.styleSheet) { + style.styleSheet.cssText = css; + } else { + style.appendChild(document.createTextNode(css)); + } +} + +var css_248z = "\n.a {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n}\n"; +styleInject(css_248z); + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/rollup-css-autoprefixer/src/foo.css b/packages/core/build/src/fixtures/build/rollup-css-autoprefixer/src/foo.css new file mode 100755 index 000000000..b4d332f68 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-css-autoprefixer/src/foo.css @@ -0,0 +1,4 @@ + +.a { + display: flex; +} diff --git a/packages/core/build/src/fixtures/build/rollup-css-autoprefixer/src/index.js b/packages/core/build/src/fixtures/build/rollup-css-autoprefixer/src/index.js new file mode 100755 index 000000000..9a761d97a --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-css-autoprefixer/src/index.js @@ -0,0 +1,3 @@ +import './foo.css'; + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/rollup-css-extract/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-css-extract/.fatherrc.js new file mode 100755 index 000000000..c01e2a255 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-css-extract/.fatherrc.js @@ -0,0 +1,5 @@ + +export default { + extractCSS: true, + esm: { type: 'rollup' }, +} diff --git a/packages/core/build/src/fixtures/build/rollup-css-extract/expected/index.esm.css b/packages/core/build/src/fixtures/build/rollup-css-extract/expected/index.esm.css new file mode 100755 index 000000000..ec0af869a --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-css-extract/expected/index.esm.css @@ -0,0 +1,2 @@ + +.a { color: green; } diff --git a/packages/core/build/src/fixtures/build/rollup-css-extract/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-css-extract/expected/index.esm.js new file mode 100755 index 000000000..81afa3157 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-css-extract/expected/index.esm.js @@ -0,0 +1 @@ +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/rollup-css-extract/src/foo.css b/packages/core/build/src/fixtures/build/rollup-css-extract/src/foo.css new file mode 100755 index 000000000..ec0af869a --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-css-extract/src/foo.css @@ -0,0 +1,2 @@ + +.a { color: green; } diff --git a/packages/core/build/src/fixtures/build/rollup-css-extract/src/index.js b/packages/core/build/src/fixtures/build/rollup-css-extract/src/index.js new file mode 100755 index 000000000..9a761d97a --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-css-extract/src/index.js @@ -0,0 +1,3 @@ +import './foo.css'; + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/rollup-css-inject/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-css-inject/.fatherrc.js new file mode 100755 index 000000000..c39568546 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-css-inject/.fatherrc.js @@ -0,0 +1,5 @@ + +export default { + injectCSS: false, + esm: { type: 'rollup' }, +} diff --git a/packages/core/build/src/fixtures/build/rollup-css-inject/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-css-inject/expected/index.esm.js new file mode 100755 index 000000000..d5522693b --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-css-inject/expected/index.esm.js @@ -0,0 +1,3 @@ +var css_248z = "\n.a { color: green; }\n"; + +console.log(css_248z); diff --git a/packages/core/build/src/fixtures/build/rollup-css-inject/src/foo.css b/packages/core/build/src/fixtures/build/rollup-css-inject/src/foo.css new file mode 100755 index 000000000..ec0af869a --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-css-inject/src/foo.css @@ -0,0 +1,2 @@ + +.a { color: green; } diff --git a/packages/core/build/src/fixtures/build/rollup-css-inject/src/index.js b/packages/core/build/src/fixtures/build/rollup-css-inject/src/index.js new file mode 100755 index 000000000..b2bb60ab0 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-css-inject/src/index.js @@ -0,0 +1,3 @@ +import style from './foo.css'; + +console.log(style); diff --git a/packages/core/build/src/fixtures/build/rollup-css-modules/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-css-modules/.fatherrc.js new file mode 100755 index 000000000..d75347b75 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-css-modules/.fatherrc.js @@ -0,0 +1,5 @@ + +export default { + esm: { type: 'rollup' }, + cssModules: true, +} diff --git a/packages/core/build/src/fixtures/build/rollup-css-modules/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-css-modules/expected/index.esm.js new file mode 100755 index 000000000..7e6569e18 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-css-modules/expected/index.esm.js @@ -0,0 +1,32 @@ +function styleInject(css, ref) { + if ( ref === void 0 ) ref = {}; + var insertAt = ref.insertAt; + + if (!css || typeof document === 'undefined') { return; } + + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.type = 'text/css'; + + if (insertAt === 'top') { + if (head.firstChild) { + head.insertBefore(style, head.firstChild); + } else { + head.appendChild(style); + } + } else { + head.appendChild(style); + } + + if (style.styleSheet) { + style.styleSheet.cssText = css; + } else { + style.appendChild(document.createTextNode(css)); + } +} + +var css_248z = "\n.foo_a__3z5g- { color: green; }\n"; +var styles = {"a":"foo_a__3z5g-"}; +styleInject(css_248z); + +console.log('foo', styles.a); diff --git a/packages/core/build/src/fixtures/build/rollup-css-modules/src/foo.css b/packages/core/build/src/fixtures/build/rollup-css-modules/src/foo.css new file mode 100755 index 000000000..ec0af869a --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-css-modules/src/foo.css @@ -0,0 +1,2 @@ + +.a { color: green; } diff --git a/packages/core/build/src/fixtures/build/rollup-css-modules/src/index.js b/packages/core/build/src/fixtures/build/rollup-css-modules/src/index.js new file mode 100755 index 000000000..0ebd23438 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-css-modules/src/index.js @@ -0,0 +1,3 @@ +import styles from './foo.css'; + +console.log('foo', styles.a); diff --git a/packages/core/build/src/fixtures/build/rollup-css/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-css/.fatherrc.js new file mode 100755 index 000000000..2f10183a3 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-css/.fatherrc.js @@ -0,0 +1,4 @@ + +export default { + esm: { type: 'rollup' }, +} diff --git a/packages/core/build/src/fixtures/build/rollup-css/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-css/expected/index.esm.js new file mode 100755 index 000000000..f7e62e7a8 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-css/expected/index.esm.js @@ -0,0 +1,31 @@ +function styleInject(css, ref) { + if ( ref === void 0 ) ref = {}; + var insertAt = ref.insertAt; + + if (!css || typeof document === 'undefined') { return; } + + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.type = 'text/css'; + + if (insertAt === 'top') { + if (head.firstChild) { + head.insertBefore(style, head.firstChild); + } else { + head.appendChild(style); + } + } else { + head.appendChild(style); + } + + if (style.styleSheet) { + style.styleSheet.cssText = css; + } else { + style.appendChild(document.createTextNode(css)); + } +} + +var css_248z = "\n.a {\n color: green;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-box-align: stretch;\n}\n"; +styleInject(css_248z); + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/rollup-css/src/foo.css b/packages/core/build/src/fixtures/build/rollup-css/src/foo.css new file mode 100755 index 000000000..ca6e9cd5d --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-css/src/foo.css @@ -0,0 +1,7 @@ + +.a { + color: green; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-box-align: stretch; +} diff --git a/packages/core/build/src/fixtures/build/rollup-css/src/index.js b/packages/core/build/src/fixtures/build/rollup-css/src/index.js new file mode 100755 index 000000000..9a761d97a --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-css/src/index.js @@ -0,0 +1,3 @@ +import './foo.css'; + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/rollup-dynamic-import/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-dynamic-import/.fatherrc.js new file mode 100755 index 000000000..8b9450222 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-dynamic-import/.fatherrc.js @@ -0,0 +1,4 @@ + +export default { + esm: { type: 'rollup' }, +}; diff --git a/packages/core/build/src/fixtures/build/rollup-dynamic-import/expected/bar-fc754098.js b/packages/core/build/src/fixtures/build/rollup-dynamic-import/expected/bar-fc754098.js new file mode 100755 index 000000000..d35211662 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-dynamic-import/expected/bar-fc754098.js @@ -0,0 +1,5 @@ +var bar = function bar() { + return 'bar'; +}; + +export { bar }; diff --git a/packages/core/build/src/fixtures/build/rollup-dynamic-import/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-dynamic-import/expected/index.esm.js new file mode 100755 index 000000000..c18af1dcb --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-dynamic-import/expected/index.esm.js @@ -0,0 +1,2 @@ +var bar = import('./bar-fc754098.js'); +console.log(bar()); diff --git a/packages/core/build/src/fixtures/build/rollup-dynamic-import/src/bar.js b/packages/core/build/src/fixtures/build/rollup-dynamic-import/src/bar.js new file mode 100755 index 000000000..be06675d9 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-dynamic-import/src/bar.js @@ -0,0 +1 @@ +export const bar = () => 'bar' diff --git a/packages/core/build/src/fixtures/build/rollup-dynamic-import/src/index.js b/packages/core/build/src/fixtures/build/rollup-dynamic-import/src/index.js new file mode 100755 index 000000000..70ba96a42 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-dynamic-import/src/index.js @@ -0,0 +1,3 @@ +const bar = import('./bar') + +console.log(bar()) \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/rollup-esm-file/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-esm-file/.fatherrc.js new file mode 100755 index 000000000..ae65f17f5 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-esm-file/.fatherrc.js @@ -0,0 +1,7 @@ + +export default { + esm: { + type: 'rollup', + file: 'demo.esm' + }, +}; diff --git a/packages/core/build/src/fixtures/build/rollup-esm-file/expected/demo.esm.js b/packages/core/build/src/fixtures/build/rollup-esm-file/expected/demo.esm.js new file mode 100755 index 000000000..a2248efc6 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-esm-file/expected/demo.esm.js @@ -0,0 +1 @@ +console.log('test'); diff --git a/packages/core/build/src/fixtures/build/rollup-esm-file/package.json b/packages/core/build/src/fixtures/build/rollup-esm-file/package.json new file mode 100755 index 000000000..0967ef424 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-esm-file/package.json @@ -0,0 +1 @@ +{} diff --git a/packages/core/build/src/fixtures/build/rollup-esm-file/src/index.js b/packages/core/build/src/fixtures/build/rollup-esm-file/src/index.js new file mode 100755 index 000000000..a2248efc6 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-esm-file/src/index.js @@ -0,0 +1 @@ +console.log('test'); diff --git a/packages/core/build/src/fixtures/build/rollup-esm-minify/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-esm-minify/.fatherrc.js new file mode 100755 index 000000000..25ded9459 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-esm-minify/.fatherrc.js @@ -0,0 +1,4 @@ + +export default { + esm: { type: 'rollup', minify: true }, +}; diff --git a/packages/core/build/src/fixtures/build/rollup-esm-minify/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-esm-minify/expected/index.esm.js new file mode 100755 index 000000000..f05f55286 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-esm-minify/expected/index.esm.js @@ -0,0 +1 @@ +function o(){console.log("foo")}export default o; diff --git a/packages/core/build/src/fixtures/build/rollup-esm-minify/package.json b/packages/core/build/src/fixtures/build/rollup-esm-minify/package.json new file mode 100755 index 000000000..81bb2b631 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-esm-minify/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "bar": "0.1.0" + } +} diff --git a/packages/core/build/src/fixtures/build/rollup-esm-minify/src/foo.js b/packages/core/build/src/fixtures/build/rollup-esm-minify/src/foo.js new file mode 100755 index 000000000..8fcf68e1b --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-esm-minify/src/foo.js @@ -0,0 +1,4 @@ + +export default function () { + return 'foo'; +} diff --git a/packages/core/build/src/fixtures/build/rollup-esm-minify/src/index.js b/packages/core/build/src/fixtures/build/rollup-esm-minify/src/index.js new file mode 100755 index 000000000..079e99f5a --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-esm-minify/src/index.js @@ -0,0 +1,5 @@ +import foo from './foo'; + +export default function () { + console.log(foo()); +} diff --git a/packages/core/build/src/fixtures/build/rollup-esm-mjs/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-esm-mjs/.fatherrc.js new file mode 100755 index 000000000..ed89f5d34 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-esm-mjs/.fatherrc.js @@ -0,0 +1,4 @@ + +export default { + esm: { type: 'rollup', mjs: true }, +}; diff --git a/packages/core/build/src/fixtures/build/rollup-esm-mjs/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-esm-mjs/expected/index.esm.js new file mode 100755 index 000000000..6890cce5b --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-esm-mjs/expected/index.esm.js @@ -0,0 +1,6 @@ +import 'bar'; + +function index () { +} + +export default index; diff --git a/packages/core/build/src/fixtures/build/rollup-esm-mjs/expected/index.mjs b/packages/core/build/src/fixtures/build/rollup-esm-mjs/expected/index.mjs new file mode 100755 index 000000000..8f73bfe1b --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-esm-mjs/expected/index.mjs @@ -0,0 +1 @@ +function o(){}console.log("bar");export default o; diff --git a/packages/core/build/src/fixtures/build/rollup-esm-mjs/package.json b/packages/core/build/src/fixtures/build/rollup-esm-mjs/package.json new file mode 100755 index 000000000..81bb2b631 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-esm-mjs/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "bar": "0.1.0" + } +} diff --git a/packages/core/build/src/fixtures/build/rollup-esm-mjs/src/foo.js b/packages/core/build/src/fixtures/build/rollup-esm-mjs/src/foo.js new file mode 100755 index 000000000..8fcf68e1b --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-esm-mjs/src/foo.js @@ -0,0 +1,4 @@ + +export default function () { + return 'foo'; +} diff --git a/packages/core/build/src/fixtures/build/rollup-esm-mjs/src/index.js b/packages/core/build/src/fixtures/build/rollup-esm-mjs/src/index.js new file mode 100755 index 000000000..01d696690 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-esm-mjs/src/index.js @@ -0,0 +1,6 @@ +import 'bar'; +import foo from './foo'; + +export default function () { + foo(); +} diff --git a/packages/core/build/src/fixtures/build/rollup-externalsExclude/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-externalsExclude/.fatherrc.js new file mode 100755 index 000000000..8ab27f0f1 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-externalsExclude/.fatherrc.js @@ -0,0 +1,11 @@ + +export default { + esm: { type: 'rollup' }, + cjs: { type: 'rollup' }, + extraExternals: [ + 'foo', + ], + externalsExclude: [ + 'foo/bar', + ], +}; diff --git a/packages/core/build/src/fixtures/build/rollup-externalsExclude/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-externalsExclude/expected/index.esm.js new file mode 100755 index 000000000..60d2ac221 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-externalsExclude/expected/index.esm.js @@ -0,0 +1,5 @@ +import 'foo'; + +(() => { + console.log('bar'); +})(); diff --git a/packages/core/build/src/fixtures/build/rollup-externalsExclude/expected/index.js b/packages/core/build/src/fixtures/build/rollup-externalsExclude/expected/index.js new file mode 100755 index 000000000..98f72615c --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-externalsExclude/expected/index.js @@ -0,0 +1,7 @@ +'use strict'; + +require('foo'); + +(() => { + console.log('bar'); +})(); diff --git a/packages/core/build/src/fixtures/build/rollup-externalsExclude/package.json b/packages/core/build/src/fixtures/build/rollup-externalsExclude/package.json new file mode 100755 index 000000000..6a3252ea8 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-externalsExclude/package.json @@ -0,0 +1,3 @@ +{ + "version": "0.1.0" +} diff --git a/packages/core/build/src/fixtures/build/rollup-externalsExclude/src/index.js b/packages/core/build/src/fixtures/build/rollup-externalsExclude/src/index.js new file mode 100755 index 000000000..40d29331c --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-externalsExclude/src/index.js @@ -0,0 +1,2 @@ +import 'foo'; +import 'foo/bar'; diff --git a/packages/core/build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/.fatherrc.js new file mode 100755 index 000000000..0dfd93f4b --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/.fatherrc.js @@ -0,0 +1,10 @@ + +export default { + esm: { type: 'rollup' }, + extraBabelPresets: [ + require.resolve('./preset'), + ], + extraBabelPlugins: [ + require.resolve('./p2'), + ], +}; diff --git a/packages/core/build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/expected/index.esm.js new file mode 100755 index 000000000..0b60c0ede --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/expected/index.esm.js @@ -0,0 +1,2 @@ +console.log("p1", "p2", 1); +alert(2); diff --git a/packages/core/build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/p1.js b/packages/core/build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/p1.js new file mode 100755 index 000000000..a3a3e24e1 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/p1.js @@ -0,0 +1,20 @@ + +module.exports = function ({ types: t }) { + function isConsoleLog(node) { + const { callee, callee: { object, property } } = node; + return t.isMemberExpression(callee) + && t.isIdentifier(object) && object.name === 'console' + && t.isIdentifier(property) && property.name === 'log'; + } + + return { + visitor: { + CallExpression(path, state) { + const { node, node: { callee, callee: { object, property } } } = path; + if (isConsoleLog(node)) { + node.arguments.unshift(t.stringLiteral('p1')); + } + }, + }, + }; +} diff --git a/packages/core/build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/p2.js b/packages/core/build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/p2.js new file mode 100755 index 000000000..297ac66d1 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/p2.js @@ -0,0 +1,20 @@ + +module.exports = function ({ types: t }) { + function isConsoleLog(node) { + const { callee, callee: { object, property } } = node; + return t.isMemberExpression(callee) + && t.isIdentifier(object) && object.name === 'console' + && t.isIdentifier(property) && property.name === 'log'; + } + + return { + visitor: { + CallExpression(path, state) { + const { node, node: { callee, callee: { object, property } } } = path; + if (isConsoleLog(node)) { + node.arguments.unshift(t.stringLiteral('p2')); + } + }, + }, + }; +} diff --git a/packages/core/build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/preset.js b/packages/core/build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/preset.js new file mode 100755 index 000000000..07ccbb29c --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/preset.js @@ -0,0 +1,8 @@ + +module.exports = function () { + return { + plugins: [ + require.resolve('./p1'), + ], + }; +} diff --git a/packages/core/build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/src/index.js b/packages/core/build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/src/index.js new file mode 100755 index 000000000..923799068 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-extra-babel-presets-and-plugins/src/index.js @@ -0,0 +1,3 @@ + +console.log(1); +alert(2); diff --git a/packages/core/build/src/fixtures/build/rollup-extraExternals/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-extraExternals/.fatherrc.js new file mode 100755 index 000000000..409af0a2c --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-extraExternals/.fatherrc.js @@ -0,0 +1,9 @@ + +export default { + esm: { type: 'rollup' }, + extraExternals: [ + '@ali/foo', + '@tmp', + 'foo', + ] +}; diff --git a/packages/core/build/src/fixtures/build/rollup-extraExternals/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-extraExternals/expected/index.esm.js new file mode 100755 index 000000000..1a8c84dab --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-extraExternals/expected/index.esm.js @@ -0,0 +1,5 @@ +import 'foo'; +import '@ali/foo'; +import '@ali/foo/bar'; +import '@tmp/foo'; +import '@tmp/foo/bar'; diff --git a/packages/core/build/src/fixtures/build/rollup-extraExternals/package.json b/packages/core/build/src/fixtures/build/rollup-extraExternals/package.json new file mode 100755 index 000000000..6a3252ea8 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-extraExternals/package.json @@ -0,0 +1,3 @@ +{ + "version": "0.1.0" +} diff --git a/packages/core/build/src/fixtures/build/rollup-extraExternals/src/index.js b/packages/core/build/src/fixtures/build/rollup-extraExternals/src/index.js new file mode 100755 index 000000000..3e307458f --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-extraExternals/src/index.js @@ -0,0 +1,6 @@ + +import 'foo'; +import '@ali/foo'; +import '@ali/foo/bar'; +import '@tmp/foo'; +import '@tmp/foo/bar'; diff --git a/packages/core/build/src/fixtures/build/rollup-extraRollupPlugins/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-extraRollupPlugins/.fatherrc.js new file mode 100755 index 000000000..f3438f39b --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-extraRollupPlugins/.fatherrc.js @@ -0,0 +1,10 @@ +import replace from 'rollup-plugin-replace'; + +export default { + esm: { type: 'rollup' }, + extraRollupPlugins: [ + replace({ + VERSION: JSON.stringify('1.0.0'), + }), + ], +}; diff --git a/packages/core/build/src/fixtures/build/rollup-extraRollupPlugins/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-extraRollupPlugins/expected/index.esm.js new file mode 100755 index 000000000..22c71e692 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-extraRollupPlugins/expected/index.esm.js @@ -0,0 +1 @@ +console.log("1.0.0"); diff --git a/packages/core/build/src/fixtures/build/rollup-extraRollupPlugins/package.json b/packages/core/build/src/fixtures/build/rollup-extraRollupPlugins/package.json new file mode 100755 index 000000000..6a3252ea8 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-extraRollupPlugins/package.json @@ -0,0 +1,3 @@ +{ + "version": "0.1.0" +} diff --git a/packages/core/build/src/fixtures/build/rollup-extraRollupPlugins/src/index.js b/packages/core/build/src/fixtures/build/rollup-extraRollupPlugins/src/index.js new file mode 100755 index 000000000..2c9bf5559 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-extraRollupPlugins/src/index.js @@ -0,0 +1,2 @@ + +console.log(VERSION); diff --git a/packages/core/build/src/fixtures/build/rollup-import-directory/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-import-directory/.fatherrc.js new file mode 100755 index 000000000..8b9450222 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-import-directory/.fatherrc.js @@ -0,0 +1,4 @@ + +export default { + esm: { type: 'rollup' }, +}; diff --git a/packages/core/build/src/fixtures/build/rollup-import-directory/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-import-directory/expected/index.esm.js new file mode 100755 index 000000000..81afa3157 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-import-directory/expected/index.esm.js @@ -0,0 +1 @@ +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/rollup-import-directory/src/foo/index.js b/packages/core/build/src/fixtures/build/rollup-import-directory/src/foo/index.js new file mode 100755 index 000000000..695557eab --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-import-directory/src/foo/index.js @@ -0,0 +1,2 @@ + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/rollup-import-directory/src/index.js b/packages/core/build/src/fixtures/build/rollup-import-directory/src/index.js new file mode 100755 index 000000000..ead12a719 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-import-directory/src/index.js @@ -0,0 +1 @@ +import './foo'; diff --git a/packages/core/build/src/fixtures/build/rollup-importLibToEs/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-importLibToEs/.fatherrc.js new file mode 100755 index 000000000..2881eb584 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-importLibToEs/.fatherrc.js @@ -0,0 +1,5 @@ + +export default { + cjs: { type: 'rollup' }, + esm: { type: 'rollup', importLibToEs: true }, +}; diff --git a/packages/core/build/src/fixtures/build/rollup-importLibToEs/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-importLibToEs/expected/index.esm.js new file mode 100755 index 000000000..ae0559b15 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-importLibToEs/expected/index.esm.js @@ -0,0 +1,5 @@ +function foo () { + return 'es/foo'; +} + +console.log(foo()); diff --git a/packages/core/build/src/fixtures/build/rollup-importLibToEs/expected/index.js b/packages/core/build/src/fixtures/build/rollup-importLibToEs/expected/index.js new file mode 100755 index 000000000..c4e33e771 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-importLibToEs/expected/index.js @@ -0,0 +1,7 @@ +'use strict'; + +function foo () { + return 'lib/foo'; +} + +console.log(foo()); diff --git a/packages/core/build/src/fixtures/build/rollup-importLibToEs/src/index.js b/packages/core/build/src/fixtures/build/rollup-importLibToEs/src/index.js new file mode 100755 index 000000000..a8105c428 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-importLibToEs/src/index.js @@ -0,0 +1,3 @@ +import foo from 'foo/lib/foo'; + +console.log(foo()); diff --git a/packages/core/build/src/fixtures/build/rollup-inject/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-inject/.fatherrc.js new file mode 100755 index 000000000..cc0759d33 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-inject/.fatherrc.js @@ -0,0 +1,7 @@ + +export default { + esm: { type: 'rollup' }, + inject: { + 'window.foo': 'foo', + }, +}; diff --git a/packages/core/build/src/fixtures/build/rollup-inject/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-inject/expected/index.esm.js new file mode 100755 index 000000000..2f87bded3 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-inject/expected/index.esm.js @@ -0,0 +1,3 @@ +import $inject_window_foo from 'foo'; + +console.log($inject_window_foo); diff --git a/packages/core/build/src/fixtures/build/rollup-inject/package.json b/packages/core/build/src/fixtures/build/rollup-inject/package.json new file mode 100755 index 000000000..040bc3a1e --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-inject/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "foo": "0.1.0" + } +} diff --git a/packages/core/build/src/fixtures/build/rollup-inject/src/index.js b/packages/core/build/src/fixtures/build/rollup-inject/src/index.js new file mode 100755 index 000000000..4f632e0de --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-inject/src/index.js @@ -0,0 +1 @@ +console.log(window.foo); diff --git a/packages/core/build/src/fixtures/build/rollup-json/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-json/.fatherrc.js new file mode 100755 index 000000000..8b9450222 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-json/.fatherrc.js @@ -0,0 +1,4 @@ + +export default { + esm: { type: 'rollup' }, +}; diff --git a/packages/core/build/src/fixtures/build/rollup-json/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-json/expected/index.esm.js new file mode 100755 index 000000000..6ee3aced8 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-json/expected/index.esm.js @@ -0,0 +1,6 @@ +var foo = "bar"; +var pkg = { + foo: foo +}; + +console.log(pkg); diff --git a/packages/core/build/src/fixtures/build/rollup-json/src/index.js b/packages/core/build/src/fixtures/build/rollup-json/src/index.js new file mode 100755 index 000000000..3ce7d4a36 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-json/src/index.js @@ -0,0 +1,3 @@ +import pkg from './pkg.json'; + +console.log(pkg); diff --git a/packages/core/build/src/fixtures/build/rollup-json/src/pkg.json b/packages/core/build/src/fixtures/build/rollup-json/src/pkg.json new file mode 100755 index 000000000..c8c4105eb --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-json/src/pkg.json @@ -0,0 +1,3 @@ +{ + "foo": "bar" +} diff --git a/packages/core/build/src/fixtures/build/rollup-less-modules/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-less-modules/.fatherrc.js new file mode 100755 index 000000000..d75347b75 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-less-modules/.fatherrc.js @@ -0,0 +1,5 @@ + +export default { + esm: { type: 'rollup' }, + cssModules: true, +} diff --git a/packages/core/build/src/fixtures/build/rollup-less-modules/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-less-modules/expected/index.esm.js new file mode 100755 index 000000000..964691ea9 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-less-modules/expected/index.esm.js @@ -0,0 +1,32 @@ +function styleInject(css, ref) { + if ( ref === void 0 ) ref = {}; + var insertAt = ref.insertAt; + + if (!css || typeof document === 'undefined') { return; } + + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.type = 'text/css'; + + if (insertAt === 'top') { + if (head.firstChild) { + head.insertBefore(style, head.firstChild); + } else { + head.appendChild(style); + } + } else { + head.appendChild(style); + } + + if (style.styleSheet) { + style.styleSheet.cssText = css; + } else { + style.appendChild(document.createTextNode(css)); + } +} + +var css_248z = ".foo_a__1JvkR {\n color: green;\n}\n"; +var styles = {"a":"foo_a__1JvkR"}; +styleInject(css_248z); + +console.log('foo', styles.a); diff --git a/packages/core/build/src/fixtures/build/rollup-less-modules/src/foo.less b/packages/core/build/src/fixtures/build/rollup-less-modules/src/foo.less new file mode 100755 index 000000000..ec0af869a --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-less-modules/src/foo.less @@ -0,0 +1,2 @@ + +.a { color: green; } diff --git a/packages/core/build/src/fixtures/build/rollup-less-modules/src/index.js b/packages/core/build/src/fixtures/build/rollup-less-modules/src/index.js new file mode 100755 index 000000000..9c442740f --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-less-modules/src/index.js @@ -0,0 +1,3 @@ +import styles from './foo.less'; + +console.log('foo', styles.a); diff --git a/packages/core/build/src/fixtures/build/rollup-less-node-modules/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-less-node-modules/.fatherrc.js new file mode 100755 index 000000000..2f10183a3 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-less-node-modules/.fatherrc.js @@ -0,0 +1,4 @@ + +export default { + esm: { type: 'rollup' }, +} diff --git a/packages/core/build/src/fixtures/build/rollup-less-node-modules/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-less-node-modules/expected/index.esm.js new file mode 100755 index 000000000..bea7558e7 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-less-node-modules/expected/index.esm.js @@ -0,0 +1,31 @@ +function styleInject(css, ref) { + if ( ref === void 0 ) ref = {}; + var insertAt = ref.insertAt; + + if (!css || typeof document === 'undefined') { return; } + + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.type = 'text/css'; + + if (insertAt === 'top') { + if (head.firstChild) { + head.insertBefore(style, head.firstChild); + } else { + head.appendChild(style); + } + } else { + head.appendChild(style); + } + + if (style.styleSheet) { + style.styleSheet.cssText = css; + } else { + style.appendChild(document.createTextNode(css)); + } +} + +var css_248z = ".bar {\n color: red;\n}\n.a {\n color: green;\n}\n"; +styleInject(css_248z); + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/rollup-less-node-modules/src/foo.less b/packages/core/build/src/fixtures/build/rollup-less-node-modules/src/foo.less new file mode 100755 index 000000000..f49f40a45 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-less-node-modules/src/foo.less @@ -0,0 +1,3 @@ +@import '~foo/bar.less'; + +.a { color: green; } diff --git a/packages/core/build/src/fixtures/build/rollup-less-node-modules/src/index.js b/packages/core/build/src/fixtures/build/rollup-less-node-modules/src/index.js new file mode 100755 index 000000000..eb9155cfc --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-less-node-modules/src/index.js @@ -0,0 +1,3 @@ +import './foo.less'; + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/rollup-less/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-less/.fatherrc.js new file mode 100755 index 000000000..2f10183a3 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-less/.fatherrc.js @@ -0,0 +1,4 @@ + +export default { + esm: { type: 'rollup' }, +} diff --git a/packages/core/build/src/fixtures/build/rollup-less/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-less/expected/index.esm.js new file mode 100755 index 000000000..47e82c7fc --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-less/expected/index.esm.js @@ -0,0 +1,31 @@ +function styleInject(css, ref) { + if ( ref === void 0 ) ref = {}; + var insertAt = ref.insertAt; + + if (!css || typeof document === 'undefined') { return; } + + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.type = 'text/css'; + + if (insertAt === 'top') { + if (head.firstChild) { + head.insertBefore(style, head.firstChild); + } else { + head.appendChild(style); + } + } else { + head.appendChild(style); + } + + if (style.styleSheet) { + style.styleSheet.cssText = css; + } else { + style.appendChild(document.createTextNode(css)); + } +} + +var css_248z = ".a {\n color: green;\n}\n"; +styleInject(css_248z); + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/rollup-less/src/foo.less b/packages/core/build/src/fixtures/build/rollup-less/src/foo.less new file mode 100755 index 000000000..ec0af869a --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-less/src/foo.less @@ -0,0 +1,2 @@ + +.a { color: green; } diff --git a/packages/core/build/src/fixtures/build/rollup-less/src/index.js b/packages/core/build/src/fixtures/build/rollup-less/src/index.js new file mode 100755 index 000000000..eb9155cfc --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-less/src/index.js @@ -0,0 +1,3 @@ +import './foo.less'; + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/rollup-multiple-entry/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-multiple-entry/.fatherrc.js new file mode 100755 index 000000000..c49c9b152 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-multiple-entry/.fatherrc.js @@ -0,0 +1,8 @@ + +export default { + entry: [ + './src/foo.js', + './src/bar.js', + ], + esm: { type: 'rollup' }, +}; diff --git a/packages/core/build/src/fixtures/build/rollup-multiple-entry/expected/bar.esm.js b/packages/core/build/src/fixtures/build/rollup-multiple-entry/expected/bar.esm.js new file mode 100755 index 000000000..8cc7aa3e9 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-multiple-entry/expected/bar.esm.js @@ -0,0 +1 @@ +console.log('bar'); diff --git a/packages/core/build/src/fixtures/build/rollup-multiple-entry/expected/foo.esm.js b/packages/core/build/src/fixtures/build/rollup-multiple-entry/expected/foo.esm.js new file mode 100755 index 000000000..81afa3157 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-multiple-entry/expected/foo.esm.js @@ -0,0 +1 @@ +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/rollup-multiple-entry/src/bar.js b/packages/core/build/src/fixtures/build/rollup-multiple-entry/src/bar.js new file mode 100755 index 000000000..9638d025d --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-multiple-entry/src/bar.js @@ -0,0 +1,2 @@ + +console.log('bar'); diff --git a/packages/core/build/src/fixtures/build/rollup-multiple-entry/src/foo.js b/packages/core/build/src/fixtures/build/rollup-multiple-entry/src/foo.js new file mode 100755 index 000000000..695557eab --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-multiple-entry/src/foo.js @@ -0,0 +1,2 @@ + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/rollup-node-resolve/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-node-resolve/.fatherrc.js new file mode 100755 index 000000000..5d6b9128e --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-node-resolve/.fatherrc.js @@ -0,0 +1,9 @@ + +export default { + umd: { + minFile: false, + }, + nodeResolveOpts: { + browser: true, + }, +}; diff --git a/packages/core/build/src/fixtures/build/rollup-node-resolve/expected/index.umd.js b/packages/core/build/src/fixtures/build/rollup-node-resolve/expected/index.umd.js new file mode 100755 index 000000000..5e9006d51 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-node-resolve/expected/index.umd.js @@ -0,0 +1,10 @@ +(function (factory) { + typeof define === 'function' && define.amd ? define(factory) : + factory(); +}((function () { 'use strict'; + + var browser = 'hello browser'; + + console.log(browser); + +}))); diff --git a/packages/core/build/src/fixtures/build/rollup-node-resolve/package.json b/packages/core/build/src/fixtures/build/rollup-node-resolve/package.json new file mode 100755 index 000000000..040bc3a1e --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-node-resolve/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "foo": "0.1.0" + } +} diff --git a/packages/core/build/src/fixtures/build/rollup-node-resolve/src/index.js b/packages/core/build/src/fixtures/build/rollup-node-resolve/src/index.js new file mode 100755 index 000000000..909687930 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-node-resolve/src/index.js @@ -0,0 +1,3 @@ +import hello from 'foo'; + +console.log(hello); diff --git a/packages/core/build/src/fixtures/build/rollup-normal/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-normal/.fatherrc.js new file mode 100755 index 000000000..2ae3de8e2 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-normal/.fatherrc.js @@ -0,0 +1,6 @@ + +export default { + cjs: { type: 'rollup' }, + esm: { type: 'rollup' }, + umd: {}, +}; diff --git a/packages/core/build/src/fixtures/build/rollup-normal/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-normal/expected/index.esm.js new file mode 100755 index 000000000..ea63e10f2 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-normal/expected/index.esm.js @@ -0,0 +1,7 @@ +import 'bar'; + +function foo () { + return 'foo'; +} + +console.log(foo()); diff --git a/packages/core/build/src/fixtures/build/rollup-normal/expected/index.js b/packages/core/build/src/fixtures/build/rollup-normal/expected/index.js new file mode 100755 index 000000000..c50247820 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-normal/expected/index.js @@ -0,0 +1,9 @@ +'use strict'; + +require('bar'); + +function foo () { + return 'foo'; +} + +console.log(foo()); diff --git a/packages/core/build/src/fixtures/build/rollup-normal/expected/index.umd.js b/packages/core/build/src/fixtures/build/rollup-normal/expected/index.umd.js new file mode 100755 index 000000000..ca82ca23f --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-normal/expected/index.umd.js @@ -0,0 +1,12 @@ +(function (factory) { + typeof define === 'function' && define.amd ? define(['bar'], factory) : + factory(); +}((function () { 'use strict'; + + function foo () { + return 'foo'; + } + + console.log(foo()); + +}))); diff --git a/packages/core/build/src/fixtures/build/rollup-normal/expected/index.umd.min.js b/packages/core/build/src/fixtures/build/rollup-normal/expected/index.umd.min.js new file mode 100755 index 000000000..c654cc12f --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-normal/expected/index.umd.min.js @@ -0,0 +1 @@ +!function(n){"function"==typeof define&&define.amd?define(["bar"],n):n()}((function(){"use strict";console.log("foo")})); diff --git a/packages/core/build/src/fixtures/build/rollup-normal/package.json b/packages/core/build/src/fixtures/build/rollup-normal/package.json new file mode 100755 index 000000000..5ca44beaa --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-normal/package.json @@ -0,0 +1,5 @@ +{ + "peerDependencies": { + "bar": "0.1.0" + } +} diff --git a/packages/core/build/src/fixtures/build/rollup-normal/src/foo.js b/packages/core/build/src/fixtures/build/rollup-normal/src/foo.js new file mode 100755 index 000000000..8fcf68e1b --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-normal/src/foo.js @@ -0,0 +1,4 @@ + +export default function () { + return 'foo'; +} diff --git a/packages/core/build/src/fixtures/build/rollup-normal/src/index.js b/packages/core/build/src/fixtures/build/rollup-normal/src/index.js new file mode 100755 index 000000000..9d80d06dc --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-normal/src/index.js @@ -0,0 +1,4 @@ +import 'bar'; +import foo from './foo'; + +console.log(foo()); diff --git a/packages/core/build/src/fixtures/build/rollup-output-dir/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-output-dir/.fatherrc.js new file mode 100755 index 000000000..463d29534 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-output-dir/.fatherrc.js @@ -0,0 +1,5 @@ + +export default { + entry: ['src/a.js', 'src/b.js'], + esm: { type: 'rollup', dir: 'dist/out' }, +}; diff --git a/packages/core/build/src/fixtures/build/rollup-output-dir/expected/out/a.esm.js b/packages/core/build/src/fixtures/build/rollup-output-dir/expected/out/a.esm.js new file mode 100755 index 000000000..8609d0755 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-output-dir/expected/out/a.esm.js @@ -0,0 +1 @@ +console.log('a'); diff --git a/packages/core/build/src/fixtures/build/rollup-output-dir/expected/out/b.esm.js b/packages/core/build/src/fixtures/build/rollup-output-dir/expected/out/b.esm.js new file mode 100755 index 000000000..eeb313a03 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-output-dir/expected/out/b.esm.js @@ -0,0 +1 @@ +console.log('b'); diff --git a/packages/core/build/src/fixtures/build/rollup-output-dir/src/a.js b/packages/core/build/src/fixtures/build/rollup-output-dir/src/a.js new file mode 100755 index 000000000..ad0e1a70a --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-output-dir/src/a.js @@ -0,0 +1 @@ +console.log('a'); \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/rollup-output-dir/src/b.js b/packages/core/build/src/fixtures/build/rollup-output-dir/src/b.js new file mode 100755 index 000000000..3cd704307 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-output-dir/src/b.js @@ -0,0 +1 @@ +console.log('b') \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/.fatherrc.js new file mode 100755 index 000000000..1bc453016 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/.fatherrc.js @@ -0,0 +1,29 @@ + +export default { + entry: [ + 'src/index.js', + 'src/foo.js', + 'src/bar.js', + ], + umd: { + }, + cjs: { type: 'rollup' }, + esm: { type: 'rollup' }, + file: 'dva', + overridesByEntry: { + 'src/foo.js': { + file: 'dva.foo', + cjs: { type: 'rollup', file: 'dva.foo.cjs' }, + esm: { type: 'rollup', file: 'dva.foo.esm' }, + }, + 'src/bar.js': { + cjs: false, + esm: false, + umd: { file: 'dva.bar' }, + }, + 'src/index.js': { + cjs: false, + esm: false, + }, + }, +}; diff --git a/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.bar.js b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.bar.js new file mode 100755 index 000000000..70ba81f61 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.bar.js @@ -0,0 +1,8 @@ +(function (factory) { + typeof define === 'function' && define.amd ? define(factory) : + factory(); +}((function () { 'use strict'; + + console.log('bar'); + +}))); diff --git a/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.bar.min.js b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.bar.min.js new file mode 100755 index 000000000..7f57ce5a8 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.bar.min.js @@ -0,0 +1 @@ +!function(n){"function"==typeof define&&define.amd?define(n):n()}((function(){"use strict";console.log("bar")})); diff --git a/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.esm.js b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.esm.js new file mode 100755 index 000000000..8cc7aa3e9 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.esm.js @@ -0,0 +1 @@ +console.log('bar'); diff --git a/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.foo.cjs.js b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.foo.cjs.js new file mode 100755 index 000000000..aece69e8b --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.foo.cjs.js @@ -0,0 +1,3 @@ +'use strict'; + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.foo.esm.js b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.foo.esm.js new file mode 100755 index 000000000..81afa3157 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.foo.esm.js @@ -0,0 +1 @@ +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.foo.umd.js b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.foo.umd.js new file mode 100755 index 000000000..62e3a909f --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.foo.umd.js @@ -0,0 +1,8 @@ +(function (factory) { + typeof define === 'function' && define.amd ? define(factory) : + factory(); +}((function () { 'use strict'; + + console.log('foo'); + +}))); diff --git a/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.foo.umd.min.js b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.foo.umd.min.js new file mode 100755 index 000000000..e383c2dd0 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.foo.umd.min.js @@ -0,0 +1 @@ +!function(n){"function"==typeof define&&define.amd?define(n):n()}((function(){"use strict";console.log("foo")})); diff --git a/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.js b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.js new file mode 100755 index 000000000..2b1938520 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.js @@ -0,0 +1,3 @@ +'use strict'; + +console.log('bar'); diff --git a/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.umd.js b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.umd.js new file mode 100755 index 000000000..fd2bf1e89 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.umd.js @@ -0,0 +1,8 @@ +(function (factory) { + typeof define === 'function' && define.amd ? define(factory) : + factory(); +}((function () { 'use strict'; + + console.log('index'); + +}))); diff --git a/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.umd.min.js b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.umd.min.js new file mode 100755 index 000000000..a15d21f33 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/expected/dva.umd.min.js @@ -0,0 +1 @@ +!function(n){"function"==typeof define&&define.amd?define(n):n()}((function(){"use strict";console.log("index")})); diff --git a/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/src/bar.js b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/src/bar.js new file mode 100755 index 000000000..9638d025d --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/src/bar.js @@ -0,0 +1,2 @@ + +console.log('bar'); diff --git a/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/src/foo.js b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/src/foo.js new file mode 100755 index 000000000..695557eab --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/src/foo.js @@ -0,0 +1,2 @@ + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/src/index.js b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/src/index.js new file mode 100755 index 000000000..112a16294 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-outputFilename-with-overrides/src/index.js @@ -0,0 +1,2 @@ + +console.log('index'); diff --git a/packages/core/build/src/fixtures/build/rollup-replace/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-replace/.fatherrc.js new file mode 100755 index 000000000..5be9fca42 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-replace/.fatherrc.js @@ -0,0 +1,7 @@ + +export default { + esm: { type: 'rollup' }, + replace: { + VERSION: JSON.stringify(require('./package').version), + }, +}; diff --git a/packages/core/build/src/fixtures/build/rollup-replace/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-replace/expected/index.esm.js new file mode 100755 index 000000000..3bbfad94d --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-replace/expected/index.esm.js @@ -0,0 +1 @@ +console.log("0.1.0"); diff --git a/packages/core/build/src/fixtures/build/rollup-replace/package.json b/packages/core/build/src/fixtures/build/rollup-replace/package.json new file mode 100755 index 000000000..6a3252ea8 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-replace/package.json @@ -0,0 +1,3 @@ +{ + "version": "0.1.0" +} diff --git a/packages/core/build/src/fixtures/build/rollup-replace/src/index.js b/packages/core/build/src/fixtures/build/rollup-replace/src/index.js new file mode 100755 index 000000000..2c9bf5559 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-replace/src/index.js @@ -0,0 +1,2 @@ + +console.log(VERSION); diff --git a/packages/core/build/src/fixtures/build/rollup-resolve-jsx/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-resolve-jsx/.fatherrc.js new file mode 100755 index 000000000..8b9450222 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-resolve-jsx/.fatherrc.js @@ -0,0 +1,4 @@ + +export default { + esm: { type: 'rollup' }, +}; diff --git a/packages/core/build/src/fixtures/build/rollup-resolve-jsx/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-resolve-jsx/expected/index.esm.js new file mode 100755 index 000000000..949fb857b --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-resolve-jsx/expected/index.esm.js @@ -0,0 +1,11 @@ +import React from 'react'; + +var Foo = (function () { + return /*#__PURE__*/React.createElement("h1", null, "Foo"); +}); + +var index = (function () { + return /*#__PURE__*/React.createElement(Foo, null); +}); + +export default index; diff --git a/packages/core/build/src/fixtures/build/rollup-resolve-jsx/package.json b/packages/core/build/src/fixtures/build/rollup-resolve-jsx/package.json new file mode 100755 index 000000000..55ef290f1 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-resolve-jsx/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "react": "16" + } +} diff --git a/packages/core/build/src/fixtures/build/rollup-resolve-jsx/src/Foo.jsx b/packages/core/build/src/fixtures/build/rollup-resolve-jsx/src/Foo.jsx new file mode 100755 index 000000000..b518bbcb2 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-resolve-jsx/src/Foo.jsx @@ -0,0 +1,2 @@ + +export default () =>

Foo

; diff --git a/packages/core/build/src/fixtures/build/rollup-resolve-jsx/src/index.js b/packages/core/build/src/fixtures/build/rollup-resolve-jsx/src/index.js new file mode 100755 index 000000000..f61210cf6 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-resolve-jsx/src/index.js @@ -0,0 +1,3 @@ +import Foo from './Foo'; + +export default () => ; diff --git a/packages/core/build/src/fixtures/build/rollup-runtimeHelpers/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-runtimeHelpers/.fatherrc.js new file mode 100755 index 000000000..b3cf64724 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-runtimeHelpers/.fatherrc.js @@ -0,0 +1,6 @@ + +export default { + runtimeHelpers: true, + esm: { type: 'rollup' }, + cjs: { type: 'rollup' }, +} diff --git a/packages/core/build/src/fixtures/build/rollup-runtimeHelpers/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-runtimeHelpers/expected/index.esm.js new file mode 100755 index 000000000..1814cb26f --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-runtimeHelpers/expected/index.esm.js @@ -0,0 +1,17 @@ +import _classCallCheck from '@babel/runtime/helpers/esm/classCallCheck'; +import _createClass from '@babel/runtime/helpers/esm/createClass'; + +var A = /*#__PURE__*/function () { + function A() { + _classCallCheck(this, A); + } + + _createClass(A, [{ + key: "foo", + value: function foo() {} + }]); + + return A; +}(); + +new A().foo(); diff --git a/packages/core/build/src/fixtures/build/rollup-runtimeHelpers/expected/index.js b/packages/core/build/src/fixtures/build/rollup-runtimeHelpers/expected/index.js new file mode 100755 index 000000000..73d0a72df --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-runtimeHelpers/expected/index.js @@ -0,0 +1,38 @@ +'use strict'; + +function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +} + +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } +} + +function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; +} + +var A = /*#__PURE__*/function () { + function A() { + _classCallCheck(this, A); + } + + _createClass(A, [{ + key: "foo", + value: function foo() {} + }]); + + return A; +}(); + +new A().foo(); diff --git a/packages/core/build/src/fixtures/build/rollup-runtimeHelpers/package.json b/packages/core/build/src/fixtures/build/rollup-runtimeHelpers/package.json new file mode 100755 index 000000000..689bf9cfb --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-runtimeHelpers/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "@babel/runtime": "0.1.0" + } +} diff --git a/packages/core/build/src/fixtures/build/rollup-runtimeHelpers/src/index.js b/packages/core/build/src/fixtures/build/rollup-runtimeHelpers/src/index.js new file mode 100755 index 000000000..0cff149b2 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-runtimeHelpers/src/index.js @@ -0,0 +1,6 @@ + +class A { + foo() {} +} + +(new A()).foo(); diff --git a/packages/core/build/src/fixtures/build/rollup-sass/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-sass/.fatherrc.js new file mode 100755 index 000000000..2f10183a3 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-sass/.fatherrc.js @@ -0,0 +1,4 @@ + +export default { + esm: { type: 'rollup' }, +} diff --git a/packages/core/build/src/fixtures/build/rollup-sass/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-sass/expected/index.esm.js new file mode 100755 index 000000000..12763bf9a --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-sass/expected/index.esm.js @@ -0,0 +1,31 @@ +function styleInject(css, ref) { + if ( ref === void 0 ) ref = {}; + var insertAt = ref.insertAt; + + if (!css || typeof document === 'undefined') { return; } + + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.type = 'text/css'; + + if (insertAt === 'top') { + if (head.firstChild) { + head.insertBefore(style, head.firstChild); + } else { + head.appendChild(style); + } + } else { + head.appendChild(style); + } + + if (style.styleSheet) { + style.styleSheet.cssText = css; + } else { + style.appendChild(document.createTextNode(css)); + } +} + +var css_248z = ".a {\n color: green; }\n"; +styleInject(css_248z); + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/rollup-sass/src/foo.scss b/packages/core/build/src/fixtures/build/rollup-sass/src/foo.scss new file mode 100755 index 000000000..ec0af869a --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-sass/src/foo.scss @@ -0,0 +1,2 @@ + +.a { color: green; } diff --git a/packages/core/build/src/fixtures/build/rollup-sass/src/index.js b/packages/core/build/src/fixtures/build/rollup-sass/src/index.js new file mode 100755 index 000000000..28c5d8eb5 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-sass/src/index.js @@ -0,0 +1,3 @@ +import './foo.scss'; + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/rollup-svgr/.umirc.library.js b/packages/core/build/src/fixtures/build/rollup-svgr/.umirc.library.js new file mode 100755 index 000000000..030fee174 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-svgr/.umirc.library.js @@ -0,0 +1,3 @@ +export default { + esm: { type: 'rollup' }, +} diff --git a/packages/core/build/src/fixtures/build/rollup-svgr/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-svgr/expected/index.esm.js new file mode 100755 index 000000000..51370ec9f --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-svgr/expected/index.esm.js @@ -0,0 +1,21 @@ +import React, { createElement } from 'react'; + +var _defs, _path; + +function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + +function SvgMenu(props) { + return /*#__PURE__*/createElement("svg", _extends({ + className: "menu_svg__icon", + viewBox: "0 0 1024 1024", + xmlns: "http://www.w3.org/2000/svg", + width: 200, + height: 200 + }, props), _defs || (_defs = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("style", null))), _path || (_path = /*#__PURE__*/createElement("path", { + d: "M656 512h160c8.8 0 16-7.2 16-16v-96c0-8.8-7.2-16-16-16H656c-8.8 0-16 7.2-16 16v22H346V320h86c8.8 0 16-7.2 16-16v-96c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h86v378c0 17.7 14.3 32 32 32h314v22c0 8.8 7.2 16 16 16h160c8.8 0 16-7.2 16-16v-96c0-8.8-7.2-16-16-16H656c-8.8 0-16 7.2-16 16v22H346V474h294v22c0 8.8 7.2 16 16 16z" + }))); +} + +var svgUrl = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20standalone%3D%22no%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20t%3D%221558949630117%22%20class%3D%22icon%22%20style%3D%22%22%20viewBox%3D%220%200%201024%201024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20%20%20%20p-id%3D%2233994%22%20%20%20%20%20width%3D%22200%22%20height%3D%22200%22%3E%20%20%3Cdefs%3E%20%20%20%20%3Cstyle%20type%3D%22text%2Fcss%22%3E%3C%2Fstyle%3E%20%20%3C%2Fdefs%3E%20%20%3Cpath%20%20%20%20d%3D%22M656%20512h160c8.8%200%2016-7.2%2016-16v-96c0-8.8-7.2-16-16-16H656c-8.8%200-16%207.2-16%2016v22H346V320h86c8.8%200%2016-7.2%2016-16v-96c0-8.8-7.2-16-16-16H208c-8.8%200-16%207.2-16%2016v96c0%208.8%207.2%2016%2016%2016h86v378c0%2017.7%2014.3%2032%2032%2032h314v22c0%208.8%207.2%2016%2016%2016h160c8.8%200%2016-7.2%2016-16v-96c0-8.8-7.2-16-16-16H656c-8.8%200-16%207.2-16%2016v22H346V474h294v22c0%208.8%207.2%2016%2016%2016z%22%20%20%20%20p-id%3D%2233995%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E"; + +console.log(svgUrl, /*#__PURE__*/React.createElement(SvgMenu, null)); diff --git a/packages/core/build/src/fixtures/build/rollup-svgr/package.json b/packages/core/build/src/fixtures/build/rollup-svgr/package.json new file mode 100755 index 000000000..55ef290f1 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-svgr/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "react": "16" + } +} diff --git a/packages/core/build/src/fixtures/build/rollup-svgr/src/index.jsx b/packages/core/build/src/fixtures/build/rollup-svgr/src/index.jsx new file mode 100755 index 000000000..769d90a58 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-svgr/src/index.jsx @@ -0,0 +1,3 @@ +import svgUrl, { ReactComponent as MenuComponent } from './menu.svg'; + +console.log(svgUrl, ); diff --git a/packages/core/build/src/fixtures/build/rollup-svgr/src/menu.svg b/packages/core/build/src/fixtures/build/rollup-svgr/src/menu.svg new file mode 100755 index 000000000..bd7bb1417 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-svgr/src/menu.svg @@ -0,0 +1,12 @@ + + + + + + + diff --git a/packages/core/build/src/fixtures/build/rollup-typescript-declarationDir/.fatherrc.ts b/packages/core/build/src/fixtures/build/rollup-typescript-declarationDir/.fatherrc.ts new file mode 100755 index 000000000..35309e6f8 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-typescript-declarationDir/.fatherrc.ts @@ -0,0 +1,7 @@ +export default { + cjs: 'rollup', + esm: 'rollup', + typescriptOpts: { + useTsconfigDeclarationDir: true, + }, +}; diff --git a/packages/core/build/src/fixtures/build/rollup-typescript-declarationDir/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-typescript-declarationDir/expected/index.esm.js new file mode 100755 index 000000000..a0ca5bfdf --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-typescript-declarationDir/expected/index.esm.js @@ -0,0 +1,5 @@ +function foo(opts) { + return opts.foo ? 'foo' : 'bar'; +} + +export default foo; diff --git a/packages/core/build/src/fixtures/build/rollup-typescript-declarationDir/expected/index.js b/packages/core/build/src/fixtures/build/rollup-typescript-declarationDir/expected/index.js new file mode 100755 index 000000000..39a5ac989 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-typescript-declarationDir/expected/index.js @@ -0,0 +1,7 @@ +'use strict'; + +function foo(opts) { + return opts.foo ? 'foo' : 'bar'; +} + +module.exports = foo; diff --git a/packages/core/build/src/fixtures/build/rollup-typescript-declarationDir/expected/type/index.d.ts b/packages/core/build/src/fixtures/build/rollup-typescript-declarationDir/expected/type/index.d.ts new file mode 100755 index 000000000..9eea9c0f1 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-typescript-declarationDir/expected/type/index.d.ts @@ -0,0 +1,5 @@ +interface IOpts { + foo: boolean; +} +export default function foo(opts: IOpts): string; +export {}; diff --git a/packages/core/build/src/fixtures/build/rollup-typescript-declarationDir/src/index.ts b/packages/core/build/src/fixtures/build/rollup-typescript-declarationDir/src/index.ts new file mode 100755 index 000000000..3a0363ce2 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-typescript-declarationDir/src/index.ts @@ -0,0 +1,7 @@ +interface IOpts { + foo: boolean; +} + +export default function foo(opts: IOpts): string { + return opts.foo ? 'foo' : 'bar'; +} diff --git a/packages/core/build/src/fixtures/build/rollup-typescript-declarationDir/tsconfig.json b/packages/core/build/src/fixtures/build/rollup-typescript-declarationDir/tsconfig.json new file mode 100755 index 000000000..59dd44386 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-typescript-declarationDir/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "target": "esnext", + "moduleResolution": "node", + "jsx": "preserve", + "esModuleInterop": true, + "declarationDir": "dist/type" + } +} diff --git a/packages/core/build/src/fixtures/build/rollup-typescript-declarationDir/typings.d.ts b/packages/core/build/src/fixtures/build/rollup-typescript-declarationDir/typings.d.ts new file mode 100755 index 000000000..211708df8 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-typescript-declarationDir/typings.d.ts @@ -0,0 +1,7 @@ +declare module '*.less' { + interface IClassNames { + [className: string]: string; + } + const classNames: IClassNames; + export = classNames; +} diff --git a/packages/core/build/src/fixtures/build/rollup-typescript/.fatherrc.ts b/packages/core/build/src/fixtures/build/rollup-typescript/.fatherrc.ts new file mode 100755 index 000000000..3e130204e --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-typescript/.fatherrc.ts @@ -0,0 +1,4 @@ +export default { + cjs: 'rollup', + esm: 'rollup', +}; diff --git a/packages/core/build/src/fixtures/build/rollup-typescript/expected/index.d.ts b/packages/core/build/src/fixtures/build/rollup-typescript/expected/index.d.ts new file mode 100755 index 000000000..9eea9c0f1 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-typescript/expected/index.d.ts @@ -0,0 +1,5 @@ +interface IOpts { + foo: boolean; +} +export default function foo(opts: IOpts): string; +export {}; diff --git a/packages/core/build/src/fixtures/build/rollup-typescript/expected/index.esm.js b/packages/core/build/src/fixtures/build/rollup-typescript/expected/index.esm.js new file mode 100755 index 000000000..a0ca5bfdf --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-typescript/expected/index.esm.js @@ -0,0 +1,5 @@ +function foo(opts) { + return opts.foo ? 'foo' : 'bar'; +} + +export default foo; diff --git a/packages/core/build/src/fixtures/build/rollup-typescript/expected/index.js b/packages/core/build/src/fixtures/build/rollup-typescript/expected/index.js new file mode 100755 index 000000000..39a5ac989 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-typescript/expected/index.js @@ -0,0 +1,7 @@ +'use strict'; + +function foo(opts) { + return opts.foo ? 'foo' : 'bar'; +} + +module.exports = foo; diff --git a/packages/core/build/src/fixtures/build/rollup-typescript/src/index.ts b/packages/core/build/src/fixtures/build/rollup-typescript/src/index.ts new file mode 100755 index 000000000..3a0363ce2 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-typescript/src/index.ts @@ -0,0 +1,7 @@ +interface IOpts { + foo: boolean; +} + +export default function foo(opts: IOpts): string { + return opts.foo ? 'foo' : 'bar'; +} diff --git a/packages/core/build/src/fixtures/build/rollup-typescript/tsconfig.json b/packages/core/build/src/fixtures/build/rollup-typescript/tsconfig.json new file mode 100755 index 000000000..d322bf935 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-typescript/tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "target": "esnext", + "moduleResolution": "node", + "jsx": "preserve", + "esModuleInterop": true + } +} diff --git a/packages/core/build/src/fixtures/build/rollup-typescript/typings.d.ts b/packages/core/build/src/fixtures/build/rollup-typescript/typings.d.ts new file mode 100755 index 000000000..211708df8 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-typescript/typings.d.ts @@ -0,0 +1,7 @@ +declare module '*.less' { + interface IClassNames { + [className: string]: string; + } + const classNames: IClassNames; + export = classNames; +} diff --git a/packages/core/build/src/fixtures/build/rollup-umd-auto-name/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-umd-auto-name/.fatherrc.js new file mode 100755 index 000000000..da054b287 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-auto-name/.fatherrc.js @@ -0,0 +1,6 @@ + +export default { + umd: { + minFile: false + }, +} diff --git a/packages/core/build/src/fixtures/build/rollup-umd-auto-name/expected/index.umd.js b/packages/core/build/src/fixtures/build/rollup-umd-auto-name/expected/index.umd.js new file mode 100755 index 000000000..07691b4fa --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-auto-name/expected/index.umd.js @@ -0,0 +1,13 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : + typeof define === 'function' && define.amd ? define(factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.fooBar = factory()); +}(this, (function () { 'use strict'; + + function index () { + return 'foo'; + } + + return index; + +}))); diff --git a/packages/core/build/src/fixtures/build/rollup-umd-auto-name/package.json b/packages/core/build/src/fixtures/build/rollup-umd-auto-name/package.json new file mode 100755 index 000000000..a02a5e12d --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-auto-name/package.json @@ -0,0 +1,3 @@ +{ + "name": "@umi/foo-bar" +} diff --git a/packages/core/build/src/fixtures/build/rollup-umd-auto-name/src/index.js b/packages/core/build/src/fixtures/build/rollup-umd-auto-name/src/index.js new file mode 100755 index 000000000..8fcf68e1b --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-auto-name/src/index.js @@ -0,0 +1,4 @@ + +export default function () { + return 'foo'; +} diff --git a/packages/core/build/src/fixtures/build/rollup-umd-commonjs/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-umd-commonjs/.fatherrc.js new file mode 100755 index 000000000..6a76fec2f --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-commonjs/.fatherrc.js @@ -0,0 +1,6 @@ +export default { + umd: { + name: 'foo', + minFile: false, + } +}; diff --git a/packages/core/build/src/fixtures/build/rollup-umd-commonjs/expected/index.umd.js b/packages/core/build/src/fixtures/build/rollup-umd-commonjs/expected/index.umd.js new file mode 100755 index 000000000..0cbb8eb4d --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-commonjs/expected/index.umd.js @@ -0,0 +1,17 @@ +(function (factory) { + typeof define === 'function' && define.amd ? define(factory) : + factory(); +}((function () { 'use strict'; + + var parse = function parse() {}; + + var stringify = function stringify() {}; + + var queryString = { + parse: parse, + stringify: stringify + }; + + queryString.parse(); + +}))); diff --git a/packages/core/build/src/fixtures/build/rollup-umd-commonjs/package.json b/packages/core/build/src/fixtures/build/rollup-umd-commonjs/package.json new file mode 100755 index 000000000..6a3252ea8 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-commonjs/package.json @@ -0,0 +1,3 @@ +{ + "version": "0.1.0" +} diff --git a/packages/core/build/src/fixtures/build/rollup-umd-commonjs/src/index.js b/packages/core/build/src/fixtures/build/rollup-umd-commonjs/src/index.js new file mode 100755 index 000000000..9ffbd962d --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-commonjs/src/index.js @@ -0,0 +1,2 @@ +import querystring from 'query-string'; +querystring.parse(); \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/rollup-umd-css-extract-minFile/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-umd-css-extract-minFile/.fatherrc.js new file mode 100755 index 000000000..e1ea4fca3 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-css-extract-minFile/.fatherrc.js @@ -0,0 +1,5 @@ + +export default { + extractCSS: true, + umd: {}, +} diff --git a/packages/core/build/src/fixtures/build/rollup-umd-css-extract-minFile/expected/index.umd.css b/packages/core/build/src/fixtures/build/rollup-umd-css-extract-minFile/expected/index.umd.css new file mode 100755 index 000000000..ec0af869a --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-css-extract-minFile/expected/index.umd.css @@ -0,0 +1,2 @@ + +.a { color: green; } diff --git a/packages/core/build/src/fixtures/build/rollup-umd-css-extract-minFile/expected/index.umd.js b/packages/core/build/src/fixtures/build/rollup-umd-css-extract-minFile/expected/index.umd.js new file mode 100755 index 000000000..62e3a909f --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-css-extract-minFile/expected/index.umd.js @@ -0,0 +1,8 @@ +(function (factory) { + typeof define === 'function' && define.amd ? define(factory) : + factory(); +}((function () { 'use strict'; + + console.log('foo'); + +}))); diff --git a/packages/core/build/src/fixtures/build/rollup-umd-css-extract-minFile/expected/index.umd.min.css b/packages/core/build/src/fixtures/build/rollup-umd-css-extract-minFile/expected/index.umd.min.css new file mode 100755 index 000000000..de2080200 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-css-extract-minFile/expected/index.umd.min.css @@ -0,0 +1 @@ +.a{color:green} \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/rollup-umd-css-extract-minFile/expected/index.umd.min.js b/packages/core/build/src/fixtures/build/rollup-umd-css-extract-minFile/expected/index.umd.min.js new file mode 100755 index 000000000..e383c2dd0 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-css-extract-minFile/expected/index.umd.min.js @@ -0,0 +1 @@ +!function(n){"function"==typeof define&&define.amd?define(n):n()}((function(){"use strict";console.log("foo")})); diff --git a/packages/core/build/src/fixtures/build/rollup-umd-css-extract-minFile/src/foo.css b/packages/core/build/src/fixtures/build/rollup-umd-css-extract-minFile/src/foo.css new file mode 100755 index 000000000..ec0af869a --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-css-extract-minFile/src/foo.css @@ -0,0 +1,2 @@ + +.a { color: green; } diff --git a/packages/core/build/src/fixtures/build/rollup-umd-css-extract-minFile/src/index.js b/packages/core/build/src/fixtures/build/rollup-umd-css-extract-minFile/src/index.js new file mode 100755 index 000000000..9a761d97a --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-css-extract-minFile/src/index.js @@ -0,0 +1,3 @@ +import './foo.css'; + +console.log('foo'); diff --git a/packages/core/build/src/fixtures/build/rollup-umd-es5ImcompatibleVersions/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-umd-es5ImcompatibleVersions/.fatherrc.js new file mode 100755 index 000000000..f3ec30554 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-es5ImcompatibleVersions/.fatherrc.js @@ -0,0 +1,6 @@ +export default { + umd: { + name: 'foo', + minFile: false, + }, +}; diff --git a/packages/core/build/src/fixtures/build/rollup-umd-es5ImcompatibleVersions/expected/index.umd.js b/packages/core/build/src/fixtures/build/rollup-umd-es5ImcompatibleVersions/expected/index.umd.js new file mode 100755 index 000000000..7c4701511 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-es5ImcompatibleVersions/expected/index.umd.js @@ -0,0 +1,20 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : + typeof define === 'function' && define.amd ? define(['exports'], factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.foo = {})); +}(this, (function (exports) { 'use strict'; + + var hierarchy = function hierarchy() {}; + + const foo = () => { + }; + + var a = function a() {}; + + exports.a = a; + exports.foo = foo; + exports.hierarchy = hierarchy; + + Object.defineProperty(exports, '__esModule', { value: true }); + +}))); diff --git a/packages/core/build/src/fixtures/build/rollup-umd-es5ImcompatibleVersions/package.json b/packages/core/build/src/fixtures/build/rollup-umd-es5ImcompatibleVersions/package.json new file mode 100755 index 000000000..6a3252ea8 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-es5ImcompatibleVersions/package.json @@ -0,0 +1,3 @@ +{ + "version": "0.1.0" +} diff --git a/packages/core/build/src/fixtures/build/rollup-umd-es5ImcompatibleVersions/src/a.js b/packages/core/build/src/fixtures/build/rollup-umd-es5ImcompatibleVersions/src/a.js new file mode 100755 index 000000000..a641ceb26 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-es5ImcompatibleVersions/src/a.js @@ -0,0 +1,3 @@ +const a = () => { +} +export { a }; \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/rollup-umd-es5ImcompatibleVersions/src/index.js b/packages/core/build/src/fixtures/build/rollup-umd-es5ImcompatibleVersions/src/index.js new file mode 100755 index 000000000..8d5d40d2f --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-es5ImcompatibleVersions/src/index.js @@ -0,0 +1,7 @@ + +// 在 es5ImcompatibleVersions 里配置的包 +export * from 'd3-hierarchy'; +// 不在 es5ImcompatibleVersions 里配置的包 +export * from 'foo'; +// 当前项目中的代码 +export * from './a'; diff --git a/packages/core/build/src/fixtures/build/rollup-umd-globals/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-umd-globals/.fatherrc.js new file mode 100755 index 000000000..44cc7c460 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-globals/.fatherrc.js @@ -0,0 +1,9 @@ + +export default { + umd: { + minFile: false, + globals: { + foo: '$', + }, + }, +} diff --git a/packages/core/build/src/fixtures/build/rollup-umd-globals/expected/index.umd.js b/packages/core/build/src/fixtures/build/rollup-umd-globals/expected/index.umd.js new file mode 100755 index 000000000..07054a168 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-globals/expected/index.umd.js @@ -0,0 +1,13 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('foo')) : + typeof define === 'function' && define.amd ? define(['foo'], factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.$)); +}(this, (function (foo) { 'use strict'; + + function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + + var foo__default = /*#__PURE__*/_interopDefaultLegacy(foo); + + foo__default['default'].bar(); + +}))); diff --git a/packages/core/build/src/fixtures/build/rollup-umd-globals/package.json b/packages/core/build/src/fixtures/build/rollup-umd-globals/package.json new file mode 100755 index 000000000..7390bd3d2 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-globals/package.json @@ -0,0 +1,5 @@ +{ + "peerDependencies": { + "foo": "0.1.0" + } +} diff --git a/packages/core/build/src/fixtures/build/rollup-umd-globals/src/index.js b/packages/core/build/src/fixtures/build/rollup-umd-globals/src/index.js new file mode 100755 index 000000000..5a079bee1 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-globals/src/index.js @@ -0,0 +1,3 @@ +import foo from 'foo'; + +foo.bar(); diff --git a/packages/core/build/src/fixtures/build/rollup-umd-name/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-umd-name/.fatherrc.js new file mode 100755 index 000000000..be174297f --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-name/.fatherrc.js @@ -0,0 +1,7 @@ + +export default { + umd: { + minFile: false, + name: 'foo', + }, +} diff --git a/packages/core/build/src/fixtures/build/rollup-umd-name/expected/index.umd.js b/packages/core/build/src/fixtures/build/rollup-umd-name/expected/index.umd.js new file mode 100755 index 000000000..0d2fbbcec --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-name/expected/index.umd.js @@ -0,0 +1,13 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : + typeof define === 'function' && define.amd ? define(factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.foo = factory()); +}(this, (function () { 'use strict'; + + function index () { + return 'foo'; + } + + return index; + +}))); diff --git a/packages/core/build/src/fixtures/build/rollup-umd-name/src/index.js b/packages/core/build/src/fixtures/build/rollup-umd-name/src/index.js new file mode 100755 index 000000000..8fcf68e1b --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-name/src/index.js @@ -0,0 +1,4 @@ + +export default function () { + return 'foo'; +} diff --git a/packages/core/build/src/fixtures/build/rollup-umd-overrides/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-umd-overrides/.fatherrc.js new file mode 100755 index 000000000..242848d42 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-overrides/.fatherrc.js @@ -0,0 +1,18 @@ + +export default { + entry: [ + 'src/index.js', + 'src/fetch.js', + ], + umd: { + minFile: false, + name: 'foo', + }, + overridesByEntry: { + 'src/fetch.js': { + umd: { + name: 'foo.fetch', + }, + }, + }, +} diff --git a/packages/core/build/src/fixtures/build/rollup-umd-overrides/expected/fetch.umd.js b/packages/core/build/src/fixtures/build/rollup-umd-overrides/expected/fetch.umd.js new file mode 100755 index 000000000..42b7f10ee --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-overrides/expected/fetch.umd.js @@ -0,0 +1,13 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : + typeof define === 'function' && define.amd ? define(factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, (global.foo = global.foo || {}, global.foo.fetch = factory())); +}(this, (function () { 'use strict'; + + function fetch () { + return 'foo.fetch'; + } + + return fetch; + +}))); diff --git a/packages/core/build/src/fixtures/build/rollup-umd-overrides/expected/index.umd.js b/packages/core/build/src/fixtures/build/rollup-umd-overrides/expected/index.umd.js new file mode 100755 index 000000000..0d2fbbcec --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-overrides/expected/index.umd.js @@ -0,0 +1,13 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : + typeof define === 'function' && define.amd ? define(factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.foo = factory()); +}(this, (function () { 'use strict'; + + function index () { + return 'foo'; + } + + return index; + +}))); diff --git a/packages/core/build/src/fixtures/build/rollup-umd-overrides/src/fetch.js b/packages/core/build/src/fixtures/build/rollup-umd-overrides/src/fetch.js new file mode 100755 index 000000000..3fdd6c676 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-overrides/src/fetch.js @@ -0,0 +1,4 @@ + +export default function () { + return 'foo.fetch'; +} diff --git a/packages/core/build/src/fixtures/build/rollup-umd-overrides/src/index.js b/packages/core/build/src/fixtures/build/rollup-umd-overrides/src/index.js new file mode 100755 index 000000000..8fcf68e1b --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-overrides/src/index.js @@ -0,0 +1,4 @@ + +export default function () { + return 'foo'; +} diff --git a/packages/core/build/src/fixtures/build/rollup-umd-sourcemap/.fatherrc.js b/packages/core/build/src/fixtures/build/rollup-umd-sourcemap/.fatherrc.js new file mode 100755 index 000000000..ff17b2079 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-sourcemap/.fatherrc.js @@ -0,0 +1,8 @@ + +export default { + umd: { + minFile: false, + name: 'foo', + sourcemap: true, + }, +} diff --git a/packages/core/build/src/fixtures/build/rollup-umd-sourcemap/expected/index.umd.js b/packages/core/build/src/fixtures/build/rollup-umd-sourcemap/expected/index.umd.js new file mode 100755 index 000000000..04e44df50 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-sourcemap/expected/index.umd.js @@ -0,0 +1,14 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : + typeof define === 'function' && define.amd ? define(factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.foo = factory()); +}(this, (function () { 'use strict'; + + function index () { + return 'foo'; + } + + return index; + +}))); +//# sourceMappingURL=index.umd.js.map diff --git a/packages/core/build/src/fixtures/build/rollup-umd-sourcemap/expected/index.umd.js.map b/packages/core/build/src/fixtures/build/rollup-umd-sourcemap/expected/index.umd.js.map new file mode 100755 index 000000000..bf6d50af4 --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-sourcemap/expected/index.umd.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.umd.js","sources":["../src/index.js"],"sourcesContent":["\nexport default function () {\n return 'foo';\n}\n"],"names":[],"mappings":";;;;;;EACe,kBAAY;EACzB,SAAO,KAAP;EACD;;;;;;;;"} \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/rollup-umd-sourcemap/src/index.js b/packages/core/build/src/fixtures/build/rollup-umd-sourcemap/src/index.js new file mode 100755 index 000000000..8fcf68e1b --- /dev/null +++ b/packages/core/build/src/fixtures/build/rollup-umd-sourcemap/src/index.js @@ -0,0 +1,4 @@ + +export default function () { + return 'foo'; +} diff --git a/packages/core/build/src/fixtures/build/target-node-version/.fatherrc.js b/packages/core/build/src/fixtures/build/target-node-version/.fatherrc.js new file mode 100755 index 000000000..41a0b5982 --- /dev/null +++ b/packages/core/build/src/fixtures/build/target-node-version/.fatherrc.js @@ -0,0 +1,7 @@ + +export default { + cjs: 'babel', + esm: 'babel', + target: 'node', + nodeVersion: 8, +} diff --git a/packages/core/build/src/fixtures/build/target-node-version/expected/es/index.js b/packages/core/build/src/fixtures/build/target-node-version/expected/es/index.js new file mode 100755 index 000000000..ae6a5bdb2 --- /dev/null +++ b/packages/core/build/src/fixtures/build/target-node-version/expected/es/index.js @@ -0,0 +1,4 @@ +const foo = 'bar'; +export default async function () { + return foo; +} \ No newline at end of file diff --git a/packages/core/build/src/fixtures/build/target-node-version/src/index.js b/packages/core/build/src/fixtures/build/target-node-version/src/index.js new file mode 100755 index 000000000..8ab0b3a2d --- /dev/null +++ b/packages/core/build/src/fixtures/build/target-node-version/src/index.js @@ -0,0 +1,6 @@ + +const foo = 'bar'; + +export default async function() { + return foo; +} diff --git a/packages/core/build/src/fixtures/build/target-node/.fatherrc.js b/packages/core/build/src/fixtures/build/target-node/.fatherrc.js new file mode 100755 index 000000000..a56516e62 --- /dev/null +++ b/packages/core/build/src/fixtures/build/target-node/.fatherrc.js @@ -0,0 +1,6 @@ + +export default { + cjs: 'rollup', + esm: 'rollup', + target: 'node', +} diff --git a/packages/core/build/src/fixtures/build/target-node/expected/index.esm.js b/packages/core/build/src/fixtures/build/target-node/expected/index.esm.js new file mode 100755 index 000000000..3199bfb84 --- /dev/null +++ b/packages/core/build/src/fixtures/build/target-node/expected/index.esm.js @@ -0,0 +1,6 @@ +var foo = 'bar'; +function index () { + return foo; +} + +export default index; diff --git a/packages/core/build/src/fixtures/build/target-node/expected/index.js b/packages/core/build/src/fixtures/build/target-node/expected/index.js new file mode 100755 index 000000000..b1ccfd8a2 --- /dev/null +++ b/packages/core/build/src/fixtures/build/target-node/expected/index.js @@ -0,0 +1,8 @@ +'use strict'; + +const foo = 'bar'; +function index () { + return foo; +} + +module.exports = index; diff --git a/packages/core/build/src/fixtures/build/target-node/src/index.js b/packages/core/build/src/fixtures/build/target-node/src/index.js new file mode 100755 index 000000000..1354e696b --- /dev/null +++ b/packages/core/build/src/fixtures/build/target-node/src/index.js @@ -0,0 +1,6 @@ + +const foo = 'bar'; + +export default function() { + return foo; +} diff --git a/packages/core/build/src/getBabelConfig.ts b/packages/core/build/src/getBabelConfig.ts new file mode 100755 index 000000000..2a2dba49b --- /dev/null +++ b/packages/core/build/src/getBabelConfig.ts @@ -0,0 +1,95 @@ +import { extname } from 'path'; +import { ModuleFormat } from 'rollup'; + +interface IGetBabelConfigOpts { + target: 'browser' | 'node'; + type?: ModuleFormat; + typescript?: boolean; + runtimeHelpers?: boolean; + filePath?: string; + browserFiles?: { + [value: string]: any; + }; + nodeVersion?: number; + nodeFiles?: { + [value: string]: any; + }; + lazy?: boolean; + lessInBabelMode?: boolean|{ + paths?: any[]; + plugins?: any[]; + }; +} + +function transformImportLess2Css() { + return { + name: 'transform-import-less-to-css', + visitor: { + ImportDeclaration(path, source) { + const re = /\.less$/; + if(re.test(path.node.source.value)){ + path.node.source.value = path.node.source.value.replace(re, '.css'); + } + } + } + } +} + +export default function(opts: IGetBabelConfigOpts) { + const { target, typescript, type, runtimeHelpers, filePath, browserFiles, nodeFiles, nodeVersion, lazy, lessInBabelMode } = opts; + let isBrowser = target === 'browser'; + // rollup 场景下不会传入 filePath + if (filePath) { + if (extname(filePath) === '.tsx' || extname(filePath) === '.jsx') { + isBrowser = true; + } else { + if (isBrowser) { + if (nodeFiles.includes(filePath)) isBrowser = false; + } else { + if (browserFiles.includes(filePath)) isBrowser = true; + } + } + } + const targets = isBrowser ? { browsers: ['last 2 versions', 'IE 10'] } : { node: nodeVersion || 6 }; + + return { + opts: { + presets: [ + ...(typescript ? [require.resolve('@babel/preset-typescript')] : []), + [require.resolve('@babel/preset-env'), { + targets, + modules: type === 'esm' ? false : 'auto' + }], + ...(isBrowser ? [require.resolve('@babel/preset-react')] : []), + ], + plugins: [ + ...((type === 'cjs' && lazy && !isBrowser) + ? [[require.resolve('@babel/plugin-transform-modules-commonjs'), { + lazy: true, + }]] + : []), + ...(lessInBabelMode ? [transformImportLess2Css] : []), + ...(isBrowser ? [require.resolve('babel-plugin-react-require')] : []), + require.resolve('@babel/plugin-syntax-dynamic-import'), + require.resolve('@babel/plugin-proposal-export-default-from'), + require.resolve('@babel/plugin-proposal-export-namespace-from'), + require.resolve('@babel/plugin-proposal-do-expressions'), + require.resolve('@babel/plugin-proposal-nullish-coalescing-operator'), + require.resolve('@babel/plugin-proposal-optional-chaining'), + [require.resolve('@babel/plugin-proposal-decorators'), { legacy: true }], + [require.resolve('@babel/plugin-proposal-class-properties'), { loose: true }], + ...(runtimeHelpers + ? [[require.resolve('@babel/plugin-transform-runtime'), { + useESModules: isBrowser && (type === 'esm'), + version: require('@babel/runtime/package.json').version, + }]] + : []), + ...(process.env.COVERAGE + ? [require.resolve('babel-plugin-istanbul')] + : [] + ) + ], + }, + isBrowser, + }; +} diff --git a/packages/core/build/src/getRollupConfig.ts b/packages/core/build/src/getRollupConfig.ts new file mode 100755 index 000000000..c7513bec4 --- /dev/null +++ b/packages/core/build/src/getRollupConfig.ts @@ -0,0 +1,343 @@ +import { existsSync } from 'fs' +import { basename, extname, join } from 'path'; +import { ModuleFormat, RollupOptions, Plugin } from 'rollup'; +import url from '@rollup/plugin-url'; +import json from '@rollup/plugin-json'; +import replace from '@rollup/plugin-replace'; +import commonjs from '@rollup/plugin-commonjs'; +import nodeResolve from '@rollup/plugin-node-resolve'; +import inject, { RollupInjectOptions } from '@rollup/plugin-inject'; +import babel, { RollupBabelInputPluginOptions } from '@rollup/plugin-babel'; +import { createFilter } from '@rollup/pluginutils'; +import postcss from 'rollup-plugin-postcss'; +import { terser } from 'rollup-plugin-terser'; +import typescript2 from 'rollup-plugin-typescript2'; +import { camelCase } from 'lodash'; +import tempDir from 'temp-dir'; +import autoprefixer from 'autoprefixer'; +import NpmImport from 'less-plugin-npm-import'; +import svgr from '@svgr/rollup'; +import getBabelConfig from './getBabelConfig'; +import { getPkgPath, shouldTransform } from './es5ImcompatibleVersions'; +import { IBundleOptions } from './types'; + +interface IGetRollupConfigOpts { + cwd: string; + rootPath: string; + entry: string; + type: ModuleFormat; + importLibToEs?: boolean; + bundleOpts: IBundleOptions; +} + +interface IPkg { + dependencies?: Object; + peerDependencies?: Object; + name?: string; +} + +export default function(opts: IGetRollupConfigOpts): RollupOptions[] { + const { type, entry, cwd, rootPath, importLibToEs, bundleOpts } = opts; + const { + umd, + esm, + cjs, + file, + target = 'browser', + extractCSS = false, + injectCSS = true, + cssModules: modules, + extraPostCSSPlugins = [], + extraBabelPresets = [], + extraBabelPlugins = [], + extraRollupPlugins = [], + autoprefixer: autoprefixerOpts, + include = /node_modules/, + runtimeHelpers: runtimeHelpersOpts, + replace: replaceOpts, + inject: injectOpts, + extraExternals = [], + externalsExclude = [], + nodeVersion, + typescriptOpts, + nodeResolveOpts = {}, + disableTypeCheck, + lessInRollupMode = {}, + sassInRollupMode = {}, + } = bundleOpts; + const entryExt = extname(entry); + const name = file || basename(entry, entryExt); + const isTypeScript = entryExt === '.ts' || entryExt === '.tsx'; + const extensions = ['.js', '.jsx', '.ts', '.tsx', '.es6', '.es', '.mjs']; + + let pkg = {} as IPkg; + try { + pkg = require(join(cwd, 'package.json')); // eslint-disable-line + } catch (e) {} + + // cjs 不给浏览器用,所以无需 runtimeHelpers + const runtimeHelpers = type === 'cjs' ? false : runtimeHelpersOpts; + const babelOpts = { + ...(getBabelConfig({ + type, + target: type === 'esm' ? 'browser' : target, + // watch 模式下有几率走的 babel?原因未知。 + // ref: https://github.com/umijs/father/issues/158 + typescript: true, + runtimeHelpers, + nodeVersion, + }).opts), + // ref: https://github.com/rollup/plugins/tree/master/packages/babel#babelhelpers + babelHelpers: (runtimeHelpers ? 'runtime' : 'bundled') as RollupBabelInputPluginOptions['babelHelpers'], + // exclude: /\/node_modules\//, + filter: (filePath: string) => { + const rollupFilter = createFilter(null, /\/node_modules\//); + // 默认过滤 node_modules + if (!rollupFilter(filePath)) { + const pkgPath = getPkgPath(filePath); + return shouldTransform(pkgPath); + } + return true; + }, + babelrc: false, + // ref: https://github.com/rollup/rollup-plugin-babel#usage + extensions, + }; + if (importLibToEs && type === 'esm') { + babelOpts.plugins.push(require.resolve('../lib/importLibToEs')); + } + babelOpts.presets.push(...extraBabelPresets); + babelOpts.plugins.push(...extraBabelPlugins); + + // rollup configs + const input = join(cwd, entry); + const format = type; + + // ref: https://rollupjs.org/guide/en#external + // 潜在问题:引用包的子文件时会报 warning,比如 @babel/runtime/helpers/esm/createClass + // 解决方案:可以用 function 处理 + const external = [ + ...Object.keys(pkg.dependencies || {}), + ...Object.keys(pkg.peerDependencies || {}), + ...extraExternals, + ]; + // umd 只要 external peerDependencies + const externalPeerDeps = [ + ...Object.keys(pkg.peerDependencies || {}), + ...extraExternals, + ]; + + function getPkgNameByid(id) { + const splitted = id.split('/'); + // @ 和 @tmp 是为了兼容 umi 的逻辑 + if (id.charAt(0) === '@' && splitted[0] !== '@' && splitted[0] !== '@tmp') { + return splitted + .slice(0, 2) + .join('/'); + } else { + return id.split('/')[0]; + } + } + + function testExternal(pkgs, excludes, id) { + if (excludes.includes(id)) { + return false; + } + return pkgs.includes(getPkgNameByid(id)); + } + + const terserOpts = { + compress: { + pure_getters: true, + unsafe: true, + unsafe_comps: true, + warnings: false, + }, + }; + + // https://github.com/umijs/father/issues/164 + function mergePlugins(defaultRollupPlugins: Array = [], extraRollupPlugins: Array = []) { + const pluginsMap: Record = Object.assign( + defaultRollupPlugins.reduce((r, plugin) => ({ ...r, [plugin.name]: plugin }), {}), + extraRollupPlugins.reduce((r, plugin) => ({ ...r, [plugin.name]: plugin }), {}), + ); + return Object.values(pluginsMap); + } + + function getPlugins(opts = {} as { minCSS: boolean; }) { + const { minCSS } = opts; + const defaultRollupPlugins = [ + url(), + svgr(), + postcss({ + extract: extractCSS, + inject: injectCSS, + modules, + // modules => all .less will convert into css modules + ...(modules ? { autoModules: false } : {}), + minimize: !!minCSS, + use: { + less: { + plugins: [new NpmImport({ prefix: '~' })], + javascriptEnabled: true, + ...lessInRollupMode + }, + sass: { + ...sassInRollupMode, + }, + stylus: false, + }, + plugins: [autoprefixer({ + // https://github.com/postcss/autoprefixer/issues/776 + remove: false, + ...autoprefixerOpts, + }), ...extraPostCSSPlugins], + }), + ...(injectOpts ? [inject(injectOpts as RollupInjectOptions)] : []), + ...(replaceOpts && Object.keys(replaceOpts || {}).length ? [replace(replaceOpts)] : []), + nodeResolve({ + mainFields: ['module', 'jsnext:main', 'main'], + extensions, + ...nodeResolveOpts, + }), + ...(isTypeScript + ? [ + typescript2({ + cwd, + // @see https://github.com/umijs/father/issues/61#issuecomment-544822774 + clean: true, + cacheRoot: `${tempDir}/.rollup_plugin_typescript2_cache`, + // 支持往上找 tsconfig.json + // 比如 lerna 的场景不需要每个 package 有个 tsconfig.json + tsconfig: [join(cwd, 'tsconfig.json'), join(rootPath, 'tsconfig.json')].find(existsSync), + tsconfigDefaults: { + compilerOptions: { + // Generate declaration files by default + declaration: true, + }, + }, + tsconfigOverride: { + compilerOptions: { + // Support dynamic import + target: 'esnext', + }, + }, + check: !disableTypeCheck, + ...(typescriptOpts || {}), + }), + ] + : []), + babel(babelOpts), + json(), + ]; + return mergePlugins(defaultRollupPlugins, extraRollupPlugins || []); + } + + switch (type) { + case 'esm': + const output: Record = { + dir: join(cwd, `${esm && (esm as any).dir || 'dist'}`), + entryFileNames: `${(esm && (esm as any).file) || `${name}.esm`}.js`, + } + + return [ + { + input, + output: { + format, + ...output, + }, + plugins: [...getPlugins(), ...(esm && (esm as any).minify ? [terser(terserOpts)] : [])], + external: testExternal.bind(null, external, externalsExclude), + }, + ...(esm && (esm as any).mjs + ? [ + { + input, + output: { + format, + file: join(cwd, `dist/${(esm && (esm as any).file) || `${name}`}.mjs`), + }, + plugins: [ + ...getPlugins(), + replace({ + 'process.env.NODE_ENV': JSON.stringify('production'), + }), + terser(terserOpts), + ], + external: testExternal.bind(null, externalPeerDeps, externalsExclude), + }, + ] + : []), + ]; + + case 'cjs': + return [ + { + input, + output: { + format, + file: join(cwd, `dist/${(cjs && (cjs as any).file) || name}.js`), + }, + plugins: [...getPlugins(), ...(cjs && (cjs as any).minify ? [terser(terserOpts)] : [])], + external: testExternal.bind(null, external, externalsExclude), + }, + ]; + + case 'umd': + // Add umd related plugins + const extraUmdPlugins = [ + commonjs({ + include, + // namedExports options has been remove from https://github.com/rollup/plugins/pull/149 + }), + ]; + + return [ + { + input, + output: { + format, + sourcemap: umd && umd.sourcemap, + file: join(cwd, `dist/${(umd && umd.file) || `${name}.umd`}.js`), + globals: umd && umd.globals, + name: (umd && umd.name) || (pkg.name && camelCase(basename(pkg.name))), + }, + plugins: [ + ...extraUmdPlugins, + ...getPlugins(), + replace({ + 'process.env.NODE_ENV': JSON.stringify('development'), + }), + ], + external: testExternal.bind(null, externalPeerDeps, externalsExclude), + }, + ...(umd && umd.minFile === false + ? [] + : [ + { + input, + output: { + format, + sourcemap: umd && umd.sourcemap, + file: join(cwd, `dist/${(umd && umd.file) || `${name}.umd`}.min.js`), + globals: umd && umd.globals, + name: (umd && umd.name) || (pkg.name && camelCase(basename(pkg.name))), + }, + plugins: [ + ...extraUmdPlugins, + ...getPlugins({ minCSS: true }), + replace({ + 'process.env.NODE_ENV': JSON.stringify('production'), + }), + terser(terserOpts), + ], + external: testExternal.bind(null, externalPeerDeps, externalsExclude), + }, + ]), + ]; + + default: + throw new Error(`Unsupported type ${type}`); + } +} diff --git a/packages/core/build/src/getUserConfig.ts b/packages/core/build/src/getUserConfig.ts new file mode 100755 index 000000000..02cb05f7f --- /dev/null +++ b/packages/core/build/src/getUserConfig.ts @@ -0,0 +1,87 @@ +import AJV from 'ajv'; +import { existsSync } from 'fs'; +import { isAbsolute, relative, resolve } from 'path'; +import signale from 'signale'; +import slash from 'slash2'; +import schema from './schema'; +import { IBundleOptions } from './types'; +import { getExistFile } from './utils'; + +function testDefault(obj) { + return obj.default || obj; +} + +export const CONFIG_FILES = [ + '.buildrc.js', + '.buildrc.jsx', + '.buildrc.ts', + '.buildrc.tsx', + '.fatherrc.js', + '.fatherrc.jsx', + '.fatherrc.ts', + '.fatherrc.tsx', + '.umirc.library.js', + '.umirc.library.jsx', + '.umirc.library.ts', + '.umirc.library.tsx', +]; +const CLASSES = { + Function: Function, +}; +const extendAjv = (ajv: AJV.Ajv) => { + ajv.addKeyword('instanceof', { + compile: function(schema: string) { + var Class = CLASSES[schema]; + return function(data: any) { + return data instanceof Class; + }; + }, + }); + return ajv; +}; +export default function({ cwd, customPath }: { cwd: string; customPath?: string }): IBundleOptions { + let finalPath = ''; + + if (customPath) { + finalPath = isAbsolute(customPath) ? customPath : resolve(process.cwd(), customPath); + if (!existsSync(finalPath)) { + throw new Error(`can\'t found config file: ${customPath}`); + } + } + + const configFile = + finalPath || + getExistFile({ + cwd, + files: CONFIG_FILES, + returnRelative: false, + }); + + if (configFile) { + if (configFile.includes('.umirc.library.')) { + signale.warn(`.umirc.library.js is deprecated, please use .fatherrc.js instead.`); + } + + const userConfig = testDefault(require(configFile)); // eslint-disable-line + const userConfigs = Array.isArray(userConfig) ? userConfig : [userConfig]; + userConfigs.forEach((userConfig) => { + const ajv = extendAjv(new AJV({ allErrors: true })); + const isValid = ajv.validate(schema, userConfig); + if (!isValid) { + const errors = ajv.errors.map(({ dataPath, message }, index) => { + return `${index + 1}. ${dataPath}${dataPath ? ' ' : ''}${message}`; + }); + throw new Error( + ` +Invalid options in ${slash(relative(cwd, configFile))} + +${errors.join('\n')} +`.trim() + ); + } + }); + return userConfig; + } else { + return {}; + } +} diff --git a/packages/core/build/src/importLibToEs.js b/packages/core/build/src/importLibToEs.js new file mode 100755 index 000000000..e7d278a64 --- /dev/null +++ b/packages/core/build/src/importLibToEs.js @@ -0,0 +1,26 @@ +import { join, dirname } from 'path'; +import fs from 'fs'; + +const cwd = process.cwd(); + +function replacePath(path) { + if (path.node.source && /\/lib\//.test(path.node.source.value)) { + const esModule = path.node.source.value.replace('/lib/', '/es/'); + const esPath = dirname(join(cwd, `node_modules/${esModule}`)); + if (fs.existsSync(esPath)) { + console.log(`[es build] replace ${path.node.source.value} with ${esModule}`); + path.node.source.value = esModule; + } + } +} + +function replaceLib() { + return { + visitor: { + ImportDeclaration: replacePath, + ExportNamedDeclaration: replacePath, + }, + }; +} + +export default replaceLib; diff --git a/packages/core/build/src/index.ts b/packages/core/build/src/index.ts new file mode 100755 index 000000000..1bff2b7bf --- /dev/null +++ b/packages/core/build/src/index.ts @@ -0,0 +1,3 @@ + +import build from './build'; +export default build; diff --git a/packages/core/build/src/normalizeBundleOpts.test.ts b/packages/core/build/src/normalizeBundleOpts.test.ts new file mode 100755 index 000000000..54bfdbe23 --- /dev/null +++ b/packages/core/build/src/normalizeBundleOpts.test.ts @@ -0,0 +1,53 @@ +import normalizeBundleOpts from './normalizeBundleOpts'; + +test('normal', () => { + expect( + normalizeBundleOpts('a', { + umd: { name: 'foo' }, + overridesByEntry: { + a: { umd: { name: 'bar' } }, + }, + }), + ).toEqual({ + umd: { name: 'bar' }, + }); +}); + +test('ignore ./ prefix in entry', () => { + expect( + normalizeBundleOpts('./a', { + umd: { name: 'foo' }, + overridesByEntry: { + a: { umd: { name: 'bar' } }, + }, + }), + ).toEqual({ + umd: { name: 'bar' }, + }); +}); + +test('ignore ./ prefix in overridesByEntry', () => { + expect( + normalizeBundleOpts('a', { + umd: { name: 'foo' }, + overridesByEntry: { + './a': { umd: { name: 'bar' } }, + }, + }), + ).toEqual({ + umd: { name: 'bar' }, + }); +}); + +test('deep merge', () => { + expect( + normalizeBundleOpts('a', { + umd: { minFile: false, name: 'foo' }, + overridesByEntry: { + a: { umd: { name: 'bar' } }, + }, + }), + ).toEqual({ + umd: { minFile: false, name: 'bar' }, + }); +}); diff --git a/packages/core/build/src/normalizeBundleOpts.ts b/packages/core/build/src/normalizeBundleOpts.ts new file mode 100755 index 000000000..1767ff9ce --- /dev/null +++ b/packages/core/build/src/normalizeBundleOpts.ts @@ -0,0 +1,24 @@ +import { cloneDeep, merge } from 'lodash'; +import { IBundleOptions } from './types'; + +function stripDotSlashPrefix(path) { + return path.replace(/^\.\//, ''); +} + +export default function(entry: string, opts: IBundleOptions): IBundleOptions { + let clone = cloneDeep(opts); + const stripedEntry = stripDotSlashPrefix(entry); + if (clone.overridesByEntry) { + Object.keys(clone.overridesByEntry).forEach(key => { + const stripedKey = stripDotSlashPrefix(key); + if (stripedKey !== key) { + clone.overridesByEntry[stripedKey] = clone.overridesByEntry[key]; + } + }); + if (clone.overridesByEntry[stripedEntry]) { + clone = merge(clone, clone.overridesByEntry[stripedEntry]); + } + delete clone.overridesByEntry; + } + return clone; +} diff --git a/packages/core/build/src/randomColor.ts b/packages/core/build/src/randomColor.ts new file mode 100755 index 000000000..bf44d2527 --- /dev/null +++ b/packages/core/build/src/randomColor.ts @@ -0,0 +1,34 @@ +import chalk from 'chalk'; + +const colors = [ + 'red', + 'green', + 'yellow', + 'blue', + 'magenta', + 'cyan', + 'gray', + 'redBright', + 'greenBright', + 'yellowBright', + 'blueBright', + 'magentaBright', + 'cyanBright', +]; + +let index = 0; +const cache = {}; + +export default function (pkg) { + if (!cache[pkg]) { + const color = colors[index]; + let str = chalk[color].bold(pkg); + cache[pkg] = str; + if (index === colors.length - 1) { + index = 0; + } else { + index += 1; + } + } + return cache[pkg]; +} diff --git a/packages/core/build/src/registerBabel.ts b/packages/core/build/src/registerBabel.ts new file mode 100755 index 000000000..c7b52c3e8 --- /dev/null +++ b/packages/core/build/src/registerBabel.ts @@ -0,0 +1,23 @@ +import { join, isAbsolute } from 'path'; +import slash from 'slash2'; +import getBabelConfig from './getBabelConfig'; + +interface IRegisterBabelOpts { + cwd: string; + only: string[]; +} + +export default function(opts: IRegisterBabelOpts) { + const { cwd, only } = opts; + const { opts: babelConfig } = getBabelConfig({ + target: 'node', + typescript: true, + }); + require('@babel/register')({ + ...babelConfig, + extensions: ['.es6', '.es', '.jsx', '.js', '.mjs', '.ts', '.tsx'], + only: only.map((file) => slash(isAbsolute(file) ? file : join(cwd, file))), + babelrc: false, + cache: false, + }); +} diff --git a/packages/core/build/src/rollup.ts b/packages/core/build/src/rollup.ts new file mode 100755 index 000000000..e7b73098c --- /dev/null +++ b/packages/core/build/src/rollup.ts @@ -0,0 +1,77 @@ +import { ModuleFormat, rollup, watch } from 'rollup'; +import signale from 'signale'; +import chalk from 'chalk'; +import getRollupConfig from './getRollupConfig'; +import { Dispose, IBundleOptions } from './types'; +import normalizeBundleOpts from './normalizeBundleOpts'; + +interface IRollupOpts { + cwd: string; + rootPath?: string; + entry: string | string[]; + type: ModuleFormat; + log: (string) => void; + bundleOpts: IBundleOptions; + watch?: boolean; + dispose?: Dispose[]; + importLibToEs?: boolean; +} + +async function build(entry: string, opts: IRollupOpts) { + const { cwd, rootPath, type, log, bundleOpts, importLibToEs, dispose } = opts; + const rollupConfigs = getRollupConfig({ + cwd, + rootPath:rootPath || cwd, + type, + entry, + importLibToEs, + bundleOpts: normalizeBundleOpts(entry, bundleOpts), + }); + + for (const rollupConfig of rollupConfigs) { + if (opts.watch) { + const watcher = watch([ + { + ...rollupConfig, + watch: {}, + }, + ]); + await (new Promise((resolve) => { + watcher.on('event', (event) => { + // 每次构建完成都会触发 BUNDLE_END 事件 + // 当第一次构建完成或出错就 resolve + if (event.code === 'ERROR') { + signale.error(event.error); + resolve(); + } else if (event.code === 'BUNDLE_END') { + log(`${chalk.green(`Build ${type} success`)} ${chalk.gray(`entry: ${entry}`)}`); + resolve(); + } + }); + })); + process.once('SIGINT', () => { + watcher.close(); + }); + dispose?.push(() => watcher.close()); + } else { + const { output, ...input } = rollupConfig; + const bundle = await rollup(input); // eslint-disable-line + await bundle.write(output); // eslint-disable-line + log(`${chalk.green(`Build ${type} success`)} ${chalk.gray(`entry: ${entry}`)}`); + } + } +} + +export default async function(opts: IRollupOpts) { + if (Array.isArray(opts.entry)) { + const { entry: entries } = opts; + for (const entry of entries) { + await build(entry, opts); + } + } else { + await build(opts.entry, opts); + } + if (opts.watch) { + opts.log(chalk.magentaBright(`Rebuild ${opts.type} since file changed 👀`)); + } +} diff --git a/packages/core/build/src/schema.test.ts b/packages/core/build/src/schema.test.ts new file mode 100755 index 000000000..effae7f20 --- /dev/null +++ b/packages/core/build/src/schema.test.ts @@ -0,0 +1,39 @@ +import AJV from 'ajv'; +import schema from './schema'; + +const ajv = new AJV(); + +const successValidates = { + entry: ['a', ['a'], ['a', 'b']], + file: ['a'], + esm: [false, true, { type: 'rollup' }, { type: 'babel' }, { file: 'a' }, { mjs: true }, {dir: 'a'}], + cjs: [false, true, { type: 'rollup' }, { type: 'babel' }, { file: 'a' }], + umd: [{ globals: {} }, { file: 'a' }, { name: 'a' }, { minFile: false }, { minFile: true }, { sourcemap: true }], + extraBabelPlugins: [[]], + extraBabelPresets: [[]], + extraPostCSSPlugins: [[]], + lessInRollupMode: [{}], + cssModules: [true, false, {}], + autoprefixer: [{}], + include: ['node_modules', /node_modules/], + nodeResolveOpts: [{}], + runtimeHelpers: [true, false], + target: ['node', 'browser'], + overridesByEntry: [{}], + doc: [{}], + typescriptOpts: [{}], + pkgs: [[]], + pkgFilter: [{}], +}; + +Object.keys(successValidates).forEach(key => { + test(key, () => { + successValidates[key].forEach(item => { + expect( + ajv.validate(schema, { + [key]: item, + }), + ).toEqual(true); + }); + }); +}); diff --git a/packages/core/build/src/schema.ts b/packages/core/build/src/schema.ts new file mode 100755 index 000000000..ec04a3bc0 --- /dev/null +++ b/packages/core/build/src/schema.ts @@ -0,0 +1,175 @@ +const noEmptyStr = { type: 'string', minLength: 1 }; + +export default { + type: 'object', + additionalProperties: false, + properties: { + entry: { + oneOf: [noEmptyStr, { type: 'array', items: noEmptyStr }], + }, + file: { type: 'string' }, + esm: { + oneOf: [ + noEmptyStr, + { type: 'boolean' }, + { + type: 'object', + additionalProperties: false, + properties: { + type: { + type: 'string', + pattern: '^(rollup|babel)$', + }, + file: noEmptyStr, + mjs: { type: 'boolean' }, + minify: { type: 'boolean' }, + importLibToEs: { + type: 'boolean', + }, + dir: noEmptyStr + }, + }, + ], + }, + cjs: { + oneOf: [ + noEmptyStr, + { type: 'boolean' }, + { + type: 'object', + additionalProperties: false, + properties: { + type: { + type: 'string', + pattern: '^(rollup|babel)$', + }, + file: noEmptyStr, + minify: { type: 'boolean' }, + lazy: { type: 'boolean' }, + }, + }, + ], + }, + umd: { + oneOf: [ + { type: 'boolean' }, + { + type: 'object', + additionalProperties: false, + properties: { + globals: { type: 'object' }, + file: noEmptyStr, + name: noEmptyStr, + minFile: { type: 'boolean' }, + sourcemap: { + oneOf: [ + { type: 'boolean' }, + { type: 'string', pattern: '^(inline|hidden)$', }, + ] + }, + }, + }, + ], + }, + extraBabelPlugins: { + type: 'array', + }, + extraBabelPresets: { + type: 'array', + }, + extraPostCSSPlugins: { + type: 'array', + }, + extraRollupPlugins: { + type: 'array', + }, + extraExternals: { + type: 'array', + }, + externalsExclude: { + type: 'array', + }, + cssModules: { + oneOf: [{ type: 'boolean' }, { type: 'object' }], + }, + extractCSS: { + type: 'boolean', + }, + injectCSS: { + oneOf: [{ type: 'boolean' }, { instanceof: 'Function' }], + }, + autoprefixer: { + type: 'object', + }, + include: { + oneOf: [ + { type: 'string' }, + { type: 'object' }, + { type: 'array' }, + ] + }, + runtimeHelpers: { + type: 'boolean', + }, + overridesByEntry: { + type: 'object', + }, + nodeResolveOpts: { + type: 'object', + }, + target: noEmptyStr, + doc: { + type: 'object', + }, + replace: { + type: 'object', + }, + inject: { + type: 'object', + }, + lessInRollupMode: { + type: 'object' + }, + sassInRollupMode: { + type: 'object' + }, + lessInBabelMode: { + oneOf: [ + { type: 'boolean' }, + { type: 'object' }, + ], + }, + browserFiles: { + type: 'array', + }, + nodeFiles: { + type: 'array', + }, + nodeVersion: { + type: 'number', + }, + disableTypeCheck: { + type: 'boolean', + }, + preCommit: { + type: 'object', + additionalProperties: false, + properties: { + eslint: { type: 'boolean' }, + prettier: { type: 'boolean' }, + }, + }, + typescriptOpts: { + type: 'object', + }, + pkgs: { + type: 'array', + }, + excludePkgs: { + type: 'array', + }, + pkgFilter: { + type: 'object', + }, + }, +}; diff --git a/packages/core/build/src/types.d.ts b/packages/core/build/src/types.d.ts new file mode 100755 index 000000000..f4060ff2b --- /dev/null +++ b/packages/core/build/src/types.d.ts @@ -0,0 +1,118 @@ +export type BundleType = 'rollup' | 'babel'; + +interface IBundleTypeOutput { + type: BundleType; + file?: string; +} + +export interface ICjs extends IBundleTypeOutput { + minify?: boolean; + lazy?: boolean; +} + +interface IEsm extends IBundleTypeOutput { + mjs?: boolean; + minify?: boolean; + importLibToEs?: boolean; +} + +interface IStringObject { + [prop: string]: string; +} + +interface IUmd { + globals?: IStringObject; + name?: string; + minFile?: boolean; + file?: string; + sourcemap?: boolean; +} + +export interface IBundleOptions { + entry?: string | string[]; + file?: string; + esm?: BundleType | IEsm | false; + cjs?: BundleType | ICjs | false; + umd?: IUmd | false; + extraBabelPlugins?: any[]; + extraBabelPresets?: any[]; + extraPostCSSPlugins?: any[]; + extraRollupPlugins?: any[]; + extraExternals?: string[]; + externalsExclude?: string[]; + cssModules?: boolean | Object; + extractCSS?: boolean; + injectCSS?: boolean | ((varname: string, filename: string) => string); + inject?: Object; + autoprefixer?: Object; + include?: string | RegExp; + runtimeHelpers?: boolean; + target?: 'node' | 'browser'; + overridesByEntry?: { + [entry: string]: any; + }; + replace?: { + [value: string]: any; + }; + browserFiles?: { + [value: string]: any; + }; + nodeFiles?: { + [value: string]: any; + }; + nodeVersion?: number; + disableTypeCheck?: boolean; + preCommit?: { + eslint?: boolean; + prettier?: boolean; + }; + lessInBabelMode?: + | boolean + | { + paths?: any[]; + plugins?: any[]; + }; + typescriptOpts?: { + [value: string]: any; + }; + nodeResolveOpts?: { + [value: string]: any; + }; + lessInRollupMode?: { + [opt: string]: any; + }; + sassInRollupMode?: { + [opt: string]: any; + }; + pkgs?: string[]; + excludePkgs?: string[]; + /** 处理 lerna 包 */ + pkgFilter?: { + /** 指定包含的包 */ + include?: string[]; + /** 指定排除的包 */ + exclude?: string[]; + /** + * 跳过私有的包 package.json private + * @default false + * */ + skipPrivate?: boolean; + }; + config?: string; +} + +export interface IOpts { + cwd: string; + watch?: boolean; + /** + * 构建时清空outputDir + * @default true + * */ + clean?: boolean; + buildArgs?: IBundleOptions; + rootConfig?: IBundleOptions; + rootPath?: string; + packages?: string[]; +} + +export type Dispose = () => void; diff --git a/packages/core/build/src/utils/getLernaPackages/fixtures/customize/core/core1/package.json b/packages/core/build/src/utils/getLernaPackages/fixtures/customize/core/core1/package.json new file mode 100755 index 000000000..00e2e0d0e --- /dev/null +++ b/packages/core/build/src/utils/getLernaPackages/fixtures/customize/core/core1/package.json @@ -0,0 +1,7 @@ +{ + "name": "core1", + "version": "1.0.0", + "dependencies": { + "foo": "1.0.0" + } +} diff --git a/packages/core/build/src/utils/getLernaPackages/fixtures/customize/core/core1/src/index.js b/packages/core/build/src/utils/getLernaPackages/fixtures/customize/core/core1/src/index.js new file mode 100755 index 000000000..9638d025d --- /dev/null +++ b/packages/core/build/src/utils/getLernaPackages/fixtures/customize/core/core1/src/index.js @@ -0,0 +1,2 @@ + +console.log('bar'); diff --git a/packages/core/build/src/utils/getLernaPackages/fixtures/customize/core/core2/package.json b/packages/core/build/src/utils/getLernaPackages/fixtures/customize/core/core2/package.json new file mode 100755 index 000000000..203f31261 --- /dev/null +++ b/packages/core/build/src/utils/getLernaPackages/fixtures/customize/core/core2/package.json @@ -0,0 +1,5 @@ +{ + "name": "core2", + "private": true, + "version": "1.0.0" +} diff --git a/packages/core/build/src/utils/getLernaPackages/fixtures/customize/core/core2/src/index.js b/packages/core/build/src/utils/getLernaPackages/fixtures/customize/core/core2/src/index.js new file mode 100755 index 000000000..695557eab --- /dev/null +++ b/packages/core/build/src/utils/getLernaPackages/fixtures/customize/core/core2/src/index.js @@ -0,0 +1,2 @@ + +console.log('foo'); diff --git a/packages/core/build/src/utils/getLernaPackages/fixtures/customize/lerna.json b/packages/core/build/src/utils/getLernaPackages/fixtures/customize/lerna.json new file mode 100755 index 000000000..d780dfc5f --- /dev/null +++ b/packages/core/build/src/utils/getLernaPackages/fixtures/customize/lerna.json @@ -0,0 +1,6 @@ +{ + "packages": [ + "core/*", + "packages/*" + ] +} diff --git a/packages/core/build/src/utils/getLernaPackages/fixtures/customize/package.json b/packages/core/build/src/utils/getLernaPackages/fixtures/customize/package.json new file mode 100755 index 000000000..cb5e0b6fe --- /dev/null +++ b/packages/core/build/src/utils/getLernaPackages/fixtures/customize/package.json @@ -0,0 +1,4 @@ +{ + "name": "default-packages", + "private": true +} diff --git a/packages/core/build/src/utils/getLernaPackages/fixtures/customize/packages/bar/package.json b/packages/core/build/src/utils/getLernaPackages/fixtures/customize/packages/bar/package.json new file mode 100755 index 000000000..06a8b8dcc --- /dev/null +++ b/packages/core/build/src/utils/getLernaPackages/fixtures/customize/packages/bar/package.json @@ -0,0 +1,4 @@ +{ + "name": "bar", + "version": "1.0.0" +} diff --git a/packages/core/build/src/utils/getLernaPackages/fixtures/customize/packages/bar/src/index.js b/packages/core/build/src/utils/getLernaPackages/fixtures/customize/packages/bar/src/index.js new file mode 100755 index 000000000..9638d025d --- /dev/null +++ b/packages/core/build/src/utils/getLernaPackages/fixtures/customize/packages/bar/src/index.js @@ -0,0 +1,2 @@ + +console.log('bar'); diff --git a/packages/core/build/src/utils/getLernaPackages/fixtures/customize/packages/foo/package.json b/packages/core/build/src/utils/getLernaPackages/fixtures/customize/packages/foo/package.json new file mode 100755 index 000000000..215274b02 --- /dev/null +++ b/packages/core/build/src/utils/getLernaPackages/fixtures/customize/packages/foo/package.json @@ -0,0 +1,7 @@ +{ + "name": "foo", + "version": "1.0.0", + "dependencies": { + "bar": "1.0.0" + } +} diff --git a/packages/core/build/src/utils/getLernaPackages/fixtures/customize/packages/foo/src/index.js b/packages/core/build/src/utils/getLernaPackages/fixtures/customize/packages/foo/src/index.js new file mode 100755 index 000000000..695557eab --- /dev/null +++ b/packages/core/build/src/utils/getLernaPackages/fixtures/customize/packages/foo/src/index.js @@ -0,0 +1,2 @@ + +console.log('foo'); diff --git a/packages/core/build/src/utils/getLernaPackages/fixtures/default/lerna.json b/packages/core/build/src/utils/getLernaPackages/fixtures/default/lerna.json new file mode 100755 index 000000000..0967ef424 --- /dev/null +++ b/packages/core/build/src/utils/getLernaPackages/fixtures/default/lerna.json @@ -0,0 +1 @@ +{} diff --git a/packages/core/build/src/utils/getLernaPackages/fixtures/default/package.json b/packages/core/build/src/utils/getLernaPackages/fixtures/default/package.json new file mode 100755 index 000000000..cb5e0b6fe --- /dev/null +++ b/packages/core/build/src/utils/getLernaPackages/fixtures/default/package.json @@ -0,0 +1,4 @@ +{ + "name": "default-packages", + "private": true +} diff --git a/packages/core/build/src/utils/getLernaPackages/fixtures/default/packages/bar/package.json b/packages/core/build/src/utils/getLernaPackages/fixtures/default/packages/bar/package.json new file mode 100755 index 000000000..06a8b8dcc --- /dev/null +++ b/packages/core/build/src/utils/getLernaPackages/fixtures/default/packages/bar/package.json @@ -0,0 +1,4 @@ +{ + "name": "bar", + "version": "1.0.0" +} diff --git a/packages/core/build/src/utils/getLernaPackages/fixtures/default/packages/bar/src/index.js b/packages/core/build/src/utils/getLernaPackages/fixtures/default/packages/bar/src/index.js new file mode 100755 index 000000000..9638d025d --- /dev/null +++ b/packages/core/build/src/utils/getLernaPackages/fixtures/default/packages/bar/src/index.js @@ -0,0 +1,2 @@ + +console.log('bar'); diff --git a/packages/core/build/src/utils/getLernaPackages/fixtures/default/packages/foo/package.json b/packages/core/build/src/utils/getLernaPackages/fixtures/default/packages/foo/package.json new file mode 100755 index 000000000..215274b02 --- /dev/null +++ b/packages/core/build/src/utils/getLernaPackages/fixtures/default/packages/foo/package.json @@ -0,0 +1,7 @@ +{ + "name": "foo", + "version": "1.0.0", + "dependencies": { + "bar": "1.0.0" + } +} diff --git a/packages/core/build/src/utils/getLernaPackages/fixtures/default/packages/foo/src/index.js b/packages/core/build/src/utils/getLernaPackages/fixtures/default/packages/foo/src/index.js new file mode 100755 index 000000000..695557eab --- /dev/null +++ b/packages/core/build/src/utils/getLernaPackages/fixtures/default/packages/foo/src/index.js @@ -0,0 +1,2 @@ + +console.log('foo'); diff --git a/packages/core/build/src/utils/getLernaPackages/index.test.ts b/packages/core/build/src/utils/getLernaPackages/index.test.ts new file mode 100755 index 000000000..b59740702 --- /dev/null +++ b/packages/core/build/src/utils/getLernaPackages/index.test.ts @@ -0,0 +1,83 @@ +import path from 'path'; +import fs from 'fs-extra'; +import { getLernaPackages } from './'; + +export const FIXTURES_DIR = path.resolve(__dirname, 'fixtures'); + +export function getDirs() { + return fs + .readdirSync(FIXTURES_DIR) + .filter(fixturePath => + fs.statSync(path.resolve(FIXTURES_DIR, fixturePath)).isDirectory(), + ); +} + +export function fixture(...args: string[]) { + return path.join(FIXTURES_DIR, ...args) +} + +describe('default', () => { + const fixturePath = fixture('default'); + + it('获取所有的包', async () => { + expect.assertions(1); + + const pkgs = await getLernaPackages(fixturePath); + + const pkgNames = ['bar', 'foo']; + + expect(pkgNames).toEqual(pkgs.map(item => item.name)); + }) +}); + +describe('customize', () => { + const fixturePath = fixture('customize'); + + it('获取所有的包', async () => { + expect.assertions(1); + + const pkgs = await getLernaPackages(fixturePath, {}); + + const pkgNames = ['core2', 'bar', 'foo', 'core1']; + + expect(pkgNames).toEqual(pkgs.map(item => item.name)); + }); + + it('过滤私有的包', async () => { + expect.assertions(1); + + const pkgs = await getLernaPackages(fixturePath, { + skipPrivate: true, + }); + + const pkgNames = ['bar', 'foo', 'core1']; + + expect(pkgNames).toEqual(pkgs.map(item => item.name)); + }); + + it('设置包含部分包', async () => { + expect.assertions(1); + + const pkgs = await getLernaPackages(fixturePath, { + include: [ + 'core*' + ] + }); + const pkgNames = ['core1', 'core2']; + + expect(pkgNames).toEqual(pkgs.map(item => item.name)); + }) + + it('设置包含部分包', async () => { + expect.assertions(1); + + const pkgs = await getLernaPackages(fixturePath, { + exclude: [ + 'core1' + ] + }); + const pkgNames = ['core2', 'bar', 'foo']; + + expect(pkgNames).toEqual(pkgs.map(item => item.name)); + }) +}); diff --git a/packages/core/build/src/utils/getLernaPackages/index.ts b/packages/core/build/src/utils/getLernaPackages/index.ts new file mode 100755 index 000000000..f9d45da48 --- /dev/null +++ b/packages/core/build/src/utils/getLernaPackages/index.ts @@ -0,0 +1,57 @@ +import { getPackagesSync } from '@lerna/project'; +import { QueryGraph } from '@lerna/query-graph'; +import { filterPackages } from '@lerna/filter-packages'; + +export interface Options { + /** 指定包含的包 */ + include?: string[]; + /** 指定排除的包 */ + exclude?: string[]; + /** + * 跳过私有的包 + * @default false + * */ + skipPrivate?: boolean; +} + +/** + * 获取lerna项目包集合 + * @param cwd + */ +export async function getLernaPackages(cwd: string, ops: Options = {}): Promise { + const { + include = [], + exclude = [], + skipPrivate = false, + } = ops; + + const allPkgs = getPackagesSync(cwd) ?? []; + + const pkgs = filterPackages(allPkgs, include, exclude, !skipPrivate, true); + + return await getStreamPackages(pkgs); +} + +export function getStreamPackages(pkgs: any[]): Promise { + const graph = new QueryGraph(pkgs, 'allDependencies', true); + + return new Promise((resolve) => { + const returnValues: any[] = []; + + const queueNextAvailablePackages = () => + graph.getAvailablePackages() + // @ts-ignore + .forEach(({ pkg, name }) => { + graph.markAsTaken(name); + + Promise.resolve(pkg) + .then((value) => returnValues.push(value)) + .then(() => graph.markAsDone(pkg)) + .then(() => queueNextAvailablePackages()) + }); + + queueNextAvailablePackages(); + + setTimeout(() => { resolve(returnValues); }, 0); + }); +} diff --git a/packages/core/build/src/utils/index.ts b/packages/core/build/src/utils/index.ts new file mode 100755 index 000000000..4784d57c6 --- /dev/null +++ b/packages/core/build/src/utils/index.ts @@ -0,0 +1,13 @@ +import { existsSync } from 'fs'; +import { join } from 'path'; + +export function getExistFile({ cwd, files, returnRelative }) { + for (const file of files) { + const absFilePath = join(cwd, file); + if (existsSync(absFilePath)) { + return returnRelative ? file : absFilePath; + } + } +} + +export { getLernaPackages } from './getLernaPackages'; diff --git a/packages/core/build/template/tsconfig.json b/packages/core/build/template/tsconfig.json new file mode 100755 index 000000000..9a8969019 --- /dev/null +++ b/packages/core/build/template/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "declaration": true, + "module": "esnext", + "target": "esnext", + "moduleResolution": "node", + "jsx": "react" + }, + "include": ["./src", "./typings/"], + "typings": "./typings/index.d.ts", + "exclude": [ + "node_modules", + "build", + "scripts", + "acceptance-tests", + "webpack", + "jest", + "src/setupTests.ts", + "tslint:latest", + "tslint-config-prettier" + ] +} diff --git a/packages/core/cli/.npmignore b/packages/core/cli/.npmignore new file mode 100644 index 000000000..eb03e3e1e --- /dev/null +++ b/packages/core/cli/.npmignore @@ -0,0 +1,2 @@ +node_modules +*.log diff --git a/packages/core/cli/bin/index.js b/packages/core/cli/bin/index.js new file mode 100755 index 000000000..830f49b15 --- /dev/null +++ b/packages/core/cli/bin/index.js @@ -0,0 +1,30 @@ +#!/usr/bin/env node + +const dotenv = require('dotenv'); +const { resolve } = require('path'); + +const env = { + APP_PACKAGE_ROOT: 'app', + APP_ENV: 'development', + APP_KEY: 'test-jwt-secret', + APP_PORT: 13000, + API_BASE_PATH: '/api/', + DB_DIALECT: 'sqlite', + DB_STORAGE: 'storage/db/nocobase.sqlite', + DEFAULT_STORAGE_TYPE: 'local', + LOCAL_STORAGE_DEST: 'storage/uploads', +}; + +dotenv.config({ + path: resolve(process.cwd(), process.env.APP_ENV_PATH || '.env'), +}); + +for (const key in env) { + if (!process.env[key]) { + process.env[key] = env[key]; + } +} + +const cli = require('../src/cli'); + +cli.parse(process.argv); diff --git a/packages/core/cli/package.json b/packages/core/cli/package.json new file mode 100644 index 000000000..afe0d4212 --- /dev/null +++ b/packages/core/cli/package.json @@ -0,0 +1,34 @@ +{ + "name": "@nocobase/cli", + "version": "0.7.0-alpha.55", + "description": "", + "license": "Apache-2.0", + "licenses": [ + { + "type": "Apache-2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0" + } + ], + "main": "./src/index.js", + "bin": { + "nocobase": "./bin/index.js" + }, + "dependencies": { + "chalk": "^4.1.1", + "commander": "^9.2.0", + "dotenv": "^10.0.0", + "execa": "^5.1.1", + "pm2": "^5.2.0", + "portfinder": "^1.0.28", + "serve": "^13.0.2" + }, + "devDependencies": { + "@nocobase/devtools": "0.7.0-alpha.55" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/nocobase/nocobase.git", + "directory": "packages/core/cli" + }, + "gitHead": "a00b45a2686695c5f4824d074ac5e1aff210793a" +} diff --git a/packages/core/cli/src/cli.js b/packages/core/cli/src/cli.js new file mode 100644 index 000000000..9662194af --- /dev/null +++ b/packages/core/cli/src/cli.js @@ -0,0 +1,10 @@ +const { Command } = require('commander'); +const commands = require('./commands'); + +const cli = new Command(); + +cli.version(require('../package.json').version); + +commands(cli); + +module.exports = cli; diff --git a/packages/core/cli/src/commands/build.js b/packages/core/cli/src/commands/build.js new file mode 100644 index 000000000..eb9d0da1c --- /dev/null +++ b/packages/core/cli/src/commands/build.js @@ -0,0 +1,38 @@ +const { resolve } = require('path'); +const { Command } = require('commander'); +const { run, nodeCheck, isPackageValid, promptForTs } = require('../util'); + +/** + * + * @param {Command} cli + */ +module.exports = (cli) => { + const { APP_PACKAGE_ROOT } = process.env; + const clientPackage = `${APP_PACKAGE_ROOT}/client`; + cli + .command('build') + .allowUnknownOption() + .argument('[packages...]') + .option('-c, --compile', 'compile the @nocobase/build package') + .action(async (pkgs, options) => { + promptForTs(); + nodeCheck(); + if (isPackageValid('umi-tools/cli')) { + if (options.compile || !isPackageValid('@nocobase/build/lib')) { + await run('umi-tools', ['build'], { + cwd: resolve(process.cwd(), 'packages/core/build'), + }); + } + } + if (!pkgs.length || !pkgs.includes(clientPackage) || (pkgs.includes(clientPackage) && pkgs.length > 1)) { + await run('nocobase-build', process.argv.slice(3)); + } + if (!pkgs.length || pkgs.includes(clientPackage)) { + await run('umi', ['build'], { + env: { + APP_ROOT: `packages/${APP_PACKAGE_ROOT}/client`, + }, + }); + } + }); +}; diff --git a/packages/core/cli/src/commands/clean.js b/packages/core/cli/src/commands/clean.js new file mode 100644 index 000000000..9d0de95d5 --- /dev/null +++ b/packages/core/cli/src/commands/clean.js @@ -0,0 +1,19 @@ +const chalk = require('chalk'); +const { Command } = require('commander'); +const { run, isDev } = require('../util'); + +/** + * + * @param {Command} cli + */ +module.exports = (cli) => { + cli + .command('clean') + .allowUnknownOption() + .action(() => { + if (!isDev()) { + return; + } + run('rimraf', ['-rf', 'packages/*/*/{lib,esm,es,dist}']); + }); +}; diff --git a/packages/core/cli/src/commands/dev.js b/packages/core/cli/src/commands/dev.js new file mode 100644 index 000000000..12dc74876 --- /dev/null +++ b/packages/core/cli/src/commands/dev.js @@ -0,0 +1,77 @@ +const chalk = require('chalk'); +const { Command } = require('commander'); +const { runInstall, run, postCheck, nodeCheck, promptForTs } = require('../util'); +const { getPortPromise } = require('portfinder'); + +/** + * + * @param {Command} cli + */ +module.exports = (cli) => { + const { APP_PACKAGE_ROOT } = process.env; + cli + .command('dev') + .option('-p, --port [port]') + .option('--client') + .option('--server') + .allowUnknownOption() + .action(async (opts) => { + promptForTs(); + if (process.argv.includes('-h') || process.argv.includes('--help')) { + run('ts-node', [ + '-P', + './tsconfig.server.json', + '-r', + 'tsconfig-paths/register', + `./packages/${APP_PACKAGE_ROOT}/server/src/index.ts`, + ...process.argv.slice(2), + ]); + return; + } + const { port, client, server } = opts; + if (port) { + process.env.APP_PORT = opts.port; + } + const { APP_PORT } = process.env; + let clientPost = APP_PORT; + let serverPost; + nodeCheck(); + await postCheck(opts); + if (server) { + serverPost = APP_PORT; + } else if (!server && !client) { + serverPost = await getPortPromise({ + port: 1 * clientPost + 1, + }); + } + await runInstall(); + if (server || !client) { + console.log('starting server', serverPost); + const argv = [ + '-P', + './tsconfig.server.json', + '-r', + 'tsconfig-paths/register', + `./packages/${APP_PACKAGE_ROOT}/server/src/index.ts`, + 'start', + ...process.argv.slice(3), + `--port=${serverPost}`, + ]; + run('ts-node-dev', argv, { + env: { + APP_PORT: serverPost, + }, + }); + } + if (client || !server) { + console.log('starting client', 1 * clientPost); + run('umi', ['dev'], { + env: { + PORT: clientPost, + APP_ROOT: `packages/${APP_PACKAGE_ROOT}/client`, + PROXY_TARGET_URL: serverPost ? `http://127.0.0.1:${serverPost}` : undefined, + }, + }); + } + }); +}; diff --git a/packages/core/cli/src/commands/doc.js b/packages/core/cli/src/commands/doc.js new file mode 100644 index 000000000..3834b0a36 --- /dev/null +++ b/packages/core/cli/src/commands/doc.js @@ -0,0 +1,37 @@ +const { Command } = require('commander'); +const { resolve, isAbsolute } = require('path'); +const { run, isDev } = require('../util'); + +/** + * + * @param {Command} cli + */ +module.exports = (cli) => { + cli + .command('doc') + .option('--lang [lang]') + .allowUnknownOption() + .action((options) => { + if (!isDev()) { + return; + } + process.env.DOC_LANG = options.lang || 'en-US'; + const docThemePath = process.env.DOC_THEME_PATH; + if (!docThemePath) { + process.env.DUMI_THEME = resolve(process.cwd(), 'packages/core/dumi-theme-nocobase/src'); + } else { + process.env.DUMI_THEME = isAbsolute(docThemePath) ? docThemePath : resolve(process.cwd(), docThemePath); + } + const index = process.argv.indexOf(`--lang=${options.lang}`); + if (index > 0) { + process.argv.splice(index, 1); + } + const argv = process.argv.slice(3); + const argument = argv.shift() || 'dev'; + if (argument === 'serve') { + run('serve', [`${resolve(process.cwd(), 'docs/dist', process.env.DOC_LANG)}`, ...argv]); + } else { + run('dumi', [argument, ...argv]); + } + }); +}; diff --git a/packages/core/cli/src/commands/global.js b/packages/core/cli/src/commands/global.js new file mode 100644 index 000000000..5cc6e6523 --- /dev/null +++ b/packages/core/cli/src/commands/global.js @@ -0,0 +1,30 @@ +const { Command } = require('commander'); +const { run, isDev, promptForTs } = require('../util'); + +/** + * + * @param {Command} cli + */ +module.exports = (cli) => { + const { APP_PACKAGE_ROOT } = process.env; + cli + .allowUnknownOption() + .option('-h, --help') + .option('--ts-node-dev') + .action((options) => { + const { tsNodeDev } = options; + if (isDev()) { + promptForTs(); + run(tsNodeDev ? 'ts-node-dev' : 'ts-node', [ + '-P', + './tsconfig.server.json', + '-r', + 'tsconfig-paths/register', + `./packages/${APP_PACKAGE_ROOT}/server/src/index.ts`, + ...process.argv.slice(2), + ]); + } else { + run('node', [`./packages/${APP_PACKAGE_ROOT}/server/lib/index.js`, ...process.argv.slice(2)]); + } + }); +}; diff --git a/packages/core/cli/src/commands/index.js b/packages/core/cli/src/commands/index.js new file mode 100644 index 000000000..0c8a677c9 --- /dev/null +++ b/packages/core/cli/src/commands/index.js @@ -0,0 +1,18 @@ +const { Command } = require('commander'); + +/** + * + * @param {Command} cli + */ +module.exports = (cli) => { + require('./global')(cli); + require('./build')(cli); + require('./dev')(cli); + require('./start')(cli); + require('./test')(cli); + require('./clean')(cli); + require('./doc')(cli); + require('./umi')(cli); + require('./upgrade')(cli); + require('./postinstall')(cli); +} diff --git a/packages/core/cli/src/commands/postinstall.js b/packages/core/cli/src/commands/postinstall.js new file mode 100644 index 000000000..22198b06a --- /dev/null +++ b/packages/core/cli/src/commands/postinstall.js @@ -0,0 +1,31 @@ +const { Command } = require('commander'); +const { run, isDev } = require('../util'); +const { resolve } = require('path'); +const { existsSync } = require('fs'); +const { readFile, writeFile } = require('fs').promises; + +/** + * @param {Command} cli + */ +module.exports = (cli) => { + const { APP_PACKAGE_ROOT } = process.env; + cli + .command('postinstall') + .allowUnknownOption() + .action(async () => { + if (!isDev()) { + return; + } + const cwd = process.cwd(); + if (!existsSync(resolve(cwd, '.env')) && existsSync(resolve(cwd, '.env.example'))) { + const content = await readFile(resolve(cwd, '.env.example'), 'utf-8'); + await writeFile(resolve(cwd, '.env'), content, 'utf-8'); + } + run('umi', ['generate', 'tmp'], { + stdio: 'pipe', + env: { + APP_ROOT: `packages/${APP_PACKAGE_ROOT}/client`, + }, + }); + }); +}; diff --git a/packages/core/cli/src/commands/start.js b/packages/core/cli/src/commands/start.js new file mode 100644 index 000000000..8e77e16b4 --- /dev/null +++ b/packages/core/cli/src/commands/start.js @@ -0,0 +1,44 @@ +const { Command } = require('commander'); +const { isDev, run, postCheck, runInstall, promptForTs } = require('../util'); +const { existsSync } = require('fs'); +const { resolve } = require('path'); +const chalk = require('chalk'); + +/** + * + * @param {Command} cli + */ +module.exports = (cli) => { + const { APP_PACKAGE_ROOT } = process.env; + cli + .command('start') + .option('-p, --port [port]') + .allowUnknownOption() + .action(async (opts) => { + if (opts.port) { + process.env.APP_PORT = opts.port; + } + if (process.argv.includes('-h') || process.argv.includes('--help')) { + promptForTs(); + run('ts-node', [ + '-P', + './tsconfig.server.json', + '-r', + 'tsconfig-paths/register', + `./packages/${APP_PACKAGE_ROOT}/server/src/index.ts`, + ...process.argv.slice(2), + ]); + return; + } + if (!existsSync(resolve(process.cwd(), `./packages/${APP_PACKAGE_ROOT}/server/lib/index.js`))) { + console.log('The code is not compiled, please execute it first'); + console.log(chalk.yellow('$ yarn build')); + console.log('If you want to run in development mode, please execute'); + console.log(chalk.yellow('$ yarn dev')); + return; + } + await postCheck(opts); + await run('node', [`./packages/${APP_PACKAGE_ROOT}/server/lib/index.js`, 'install', '-s']); + run('pm2-runtime', ['start', `packages/${APP_PACKAGE_ROOT}/server/lib/index.js`, '--', ...process.argv.slice(2)]); + }); +}; diff --git a/packages/core/cli/src/commands/test.js b/packages/core/cli/src/commands/test.js new file mode 100644 index 000000000..7934b1ba4 --- /dev/null +++ b/packages/core/cli/src/commands/test.js @@ -0,0 +1,22 @@ +const { Command } = require('commander'); +const { nodeCheck, runAppCommand, promptForTs } = require('../util'); + +/** + * + * @param {Command} cli + */ +module.exports = (cli) => { + cli + .command('test') + .option('-c, --db-clean') + .allowUnknownOption() + .action(async (options) => { + nodeCheck(); + if (options.dbClean) { + promptForTs(); + await runAppCommand('db:clean', '-y'); + } + process.argv.splice(2, 1, '-i'); + require('jest-cli/bin/jest'); + }); +}; diff --git a/packages/core/cli/src/commands/umi.js b/packages/core/cli/src/commands/umi.js new file mode 100644 index 000000000..c87f934c1 --- /dev/null +++ b/packages/core/cli/src/commands/umi.js @@ -0,0 +1,24 @@ +const chalk = require('chalk'); +const { Command } = require('commander'); +const { run, isDev } = require('../util'); + +/** + * + * @param {Command} cli + */ +module.exports = (cli) => { + const { APP_PACKAGE_ROOT } = process.env; + cli + .command('umi') + .allowUnknownOption() + .action(() => { + if (!isDev()) { + return; + } + run('umi', process.argv.slice(3), { + env: { + APP_ROOT: `packages/${APP_PACKAGE_ROOT}/client`, + }, + }); + }); +}; diff --git a/packages/core/cli/src/commands/upgrade.js b/packages/core/cli/src/commands/upgrade.js new file mode 100644 index 000000000..2a68346ba --- /dev/null +++ b/packages/core/cli/src/commands/upgrade.js @@ -0,0 +1,41 @@ +const chalk = require('chalk'); +const { Command } = require('commander'); +const { resolve } = require('path'); +const { getVersion, run, promptForTs, runAppCommand, hasCorePackages, updateJsonFile, hasTsNode } = require('../util'); + +/** + * + * @param {Command} cli + */ +module.exports = (cli) => { + const { APP_PACKAGE_ROOT } = process.env; + cli + .command('upgrade') + .allowUnknownOption() + .action(async () => { + promptForTs(); + const version = await getVersion(); + if (hasCorePackages()) { + await run('yarn', ['install']); + await runAppCommand('upgrade'); + return; + } + if (!hasTsNode()) { + return; + } + await run('yarn', ['add', '@nocobase/cli', '@nocobase/devtools', '-W']); + const clientPackage = resolve(process.cwd(), `packages/${APP_PACKAGE_ROOT}/client/package.json`); + const serverPackage = resolve(process.cwd(), `packages/${APP_PACKAGE_ROOT}/server/package.json`); + await updateJsonFile(clientPackage, (data) => { + data.devDependencies['@nocobase/client'] = version; + return data; + }); + await updateJsonFile(serverPackage, (data) => { + data.dependencies['@nocobase/preset-nocobase'] = version; + return data; + }); + await run('yarn', ['install']); + await run('nocobase', ['build']); + await runAppCommand('upgrade'); + }); +}; diff --git a/packages/core/cli/src/index.js b/packages/core/cli/src/index.js new file mode 100644 index 000000000..e69de29bb diff --git a/packages/core/cli/src/util.js b/packages/core/cli/src/util.js new file mode 100644 index 000000000..21b5a7880 --- /dev/null +++ b/packages/core/cli/src/util.js @@ -0,0 +1,143 @@ +const net = require('net'); +const chalk = require('chalk'); +const execa = require('execa'); +const { resolve } = require('path'); +const { readFile, writeFile } = require('fs').promises; +const { existsSync } = require('fs'); + +exports.isPackageValid = (package) => { + try { + require.resolve(package); + return true; + } catch (error) { + return false; + } +}; + +exports.hasCorePackages = () => { + const coreDir = resolve(process.cwd(), 'packages/core/build'); + return existsSync(coreDir); +}; + +exports.hasTsNode = () => { + return exports.isPackageValid('ts-node/dist/bin'); +}; + +exports.isDev = function isDev() { + if (process.env.APP_ENV === 'production') { + return false; + } + return exports.hasTsNode(); +}; + +exports.nodeCheck = () => { + if (!exports.hasTsNode()) { + console.log('Please install all dependencies'); + console.log(chalk.yellow('$ yarn install')); + process.exit(0); + } +}; + +exports.run = (command, argv, options = {}) => { + return execa(command, argv, { + shell: true, + stdio: 'inherit', + ...options, + env: { + ...process.env, + ...options.env, + }, + }); +}; + +exports.isPortReachable = async (port, { timeout = 1000, host } = {}) => { + const promise = new Promise((resolve, reject) => { + const socket = new net.Socket(); + + const onError = () => { + socket.destroy(); + reject(); + }; + + socket.setTimeout(timeout); + socket.once('error', onError); + socket.once('timeout', onError); + + socket.connect(port, host, () => { + socket.end(); + resolve(); + }); + }); + + try { + await promise; + return true; + } catch (_) { + return false; + } +}; + +exports.postCheck = async (opts) => { + const port = opts.port || process.env.APP_PORT; + const result = await exports.isPortReachable(port); + if (result) { + console.error(chalk.red(`post already in use ${port}`)); + process.exit(1); + } +}; + +exports.runInstall = async () => { + const { APP_PACKAGE_ROOT } = process.env; + + if (exports.isDev()) { + const argv = [ + '-P', + './tsconfig.server.json', + '-r', + 'tsconfig-paths/register', + `./packages/${APP_PACKAGE_ROOT}/server/src/index.ts`, + 'install', + '-s', + ]; + await exports.run('ts-node', argv); + } else { + const argv = [`./packages/${APP_PACKAGE_ROOT}/server/lib/index.js`, 'install', '-s']; + await exports.run('node', argv); + } +}; + +exports.runAppCommand = async (command, args = []) => { + const { APP_PACKAGE_ROOT } = process.env; + + if (exports.isDev()) { + const argv = [ + '-P', + './tsconfig.server.json', + '-r', + 'tsconfig-paths/register', + `./packages/${APP_PACKAGE_ROOT}/server/src/index.ts`, + command, + ...args, + ]; + await exports.run('ts-node', argv); + } else { + const argv = [`./packages/${APP_PACKAGE_ROOT}/server/lib/index.js`, command, ...args]; + await exports.run('node', argv); + } +}; + +exports.promptForTs = () => { + console.log(chalk.green('WAIT: ') + 'TypeScript compiling...'); +}; + +exports.updateJsonFile = async (target, fn) => { + const content = await readFile(target, 'utf-8'); + const json = JSON.parse(content); + await writeFile(target, JSON.stringify(fn(json), null, 2), 'utf-8'); +}; + +exports.getVersion = async () => { + const { stdout } = await execa('npm', ['v', '@nocobase/app-server', 'versions']); + const versions = new Function(`return ${stdout}`)(); + return versions[versions.length - 1]; +}; diff --git a/packages/core/client/.buildrc.ts b/packages/core/client/.buildrc.ts new file mode 100644 index 000000000..f0c3466d6 --- /dev/null +++ b/packages/core/client/.buildrc.ts @@ -0,0 +1,5 @@ +export default { + target: 'browser', + cjs: 'babel', + esm: 'babel', +}; diff --git a/packages/core/client/package.json b/packages/core/client/package.json index 4288640db..a8fb43a77 100644 --- a/packages/core/client/package.json +++ b/packages/core/client/package.json @@ -1,6 +1,6 @@ { "name": "@nocobase/client", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "license": "Apache-2.0", "licenses": [ { @@ -9,19 +9,8 @@ } ], "main": "lib", - "module": "esm", - "sideEffects": [ - "dist/*", - "esm/*.js", - "lib/*.js", - "src/*.ts", - "*.less", - "**/*/style.js" - ], - "types": "esm/index.d.ts", - "engines": { - "npm": ">=3.0.0" - }, + "module": "es/index.js", + "typings": "es/index.d.ts", "dependencies": { "@dnd-kit/core": "^5.0.1", "@dnd-kit/sortable": "^6.0.0", @@ -29,10 +18,10 @@ "@formily/antd": "2.0.20", "@formily/core": "2.0.20", "@formily/react": "2.0.20", - "@nocobase/utils": "0.7.0-alpha.34", + "@nocobase/utils": "0.7.0-alpha.55", "ahooks": "^3.0.5", "antd": "~4.19.5", - "axios": "^0.24.0", + "axios": "^0.26.1", "classnames": "^2.3.1", "file-saver": "^2.0.5", "i18next": "^21.6.0", @@ -57,12 +46,8 @@ "react-dom": ">=16.8.0", "react-is": ">=16.8.0 || >=17.0.0" }, - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "devDependencies": { + "@testing-library/react": "^12.1.2", "@types/marked": "^4.0.1", "axios-mock-adapter": "^1.20.0" }, diff --git a/packages/core/client/src/block-provider/KanbanBlockProvider.tsx b/packages/core/client/src/block-provider/KanbanBlockProvider.tsx index 58002cac2..0ed4a567f 100644 --- a/packages/core/client/src/block-provider/KanbanBlockProvider.tsx +++ b/packages/core/client/src/block-provider/KanbanBlockProvider.tsx @@ -4,7 +4,7 @@ import { Spin } from 'antd'; import React, { createContext, useContext, useEffect } from 'react'; import { useACLRoleContext } from '../acl'; import { useCollection } from '../collection-manager'; -import { toColumns } from '../schema-component/antd/kanban-v2/Kanban'; +import { toColumns } from '../schema-component/antd/kanban/Kanban'; import { BlockProvider, useBlockRequestContext } from './BlockProvider'; export const KanbanBlockContext = createContext({}); diff --git a/packages/core/client/src/schema-component/antd/calendar-v2/Calendar.Designer.tsx b/packages/core/client/src/schema-component/antd/calendar-v2/Calendar.Designer.tsx deleted file mode 100644 index a1219566f..000000000 --- a/packages/core/client/src/schema-component/antd/calendar-v2/Calendar.Designer.tsx +++ /dev/null @@ -1,142 +0,0 @@ -import { ISchema, useField, useFieldSchema } from '@formily/react'; -import React from 'react'; -import { useTranslation } from 'react-i18next'; -import { useCompile, useDesignable } from '../..'; -import { useCalendarBlockContext } from '../../../block-provider'; -import { useCollection } from '../../../collection-manager'; -import { useCollectionFilterOptions } from '../../../collection-manager/action-hooks'; -import { GeneralSchemaDesigner, SchemaSettings } from '../../../schema-settings'; -import { useSchemaTemplate } from '../../../schema-templates'; - -const useOptions = () => { - const compile = useCompile(); - const { fields } = useCollection(); - const options = fields?.map((field) => { - return { - value: field.name, - label: compile(field?.uiSchema?.title), - }; - }); - return options; -} - -export const CalendarDesigner = () => { - const field = useField(); - const fieldSchema = useFieldSchema(); - const { name, title, fields } = useCollection(); - const dataSource = useCollectionFilterOptions(name); - const { service } = useCalendarBlockContext(); - const { dn } = useDesignable(); - const compile = useCompile(); - const { t } = useTranslation(); - const template = useSchemaTemplate(); - const defaultFilter = fieldSchema?.['x-decorator-props']?.params?.filter || {}; - const options = useOptions(); - const fieldNames = fieldSchema?.['x-decorator-props']?.['fieldNames'] || {}; - return ( - - { - const fieldNames = field.decoratorProps.fieldNames || {}; - fieldNames['title'] = title; - field.decoratorProps.params = fieldNames; - fieldSchema['x-decorator-props']['params'] = fieldNames; - service.refresh(); - dn.emit('patch', { - schema: { - ['x-uid']: fieldSchema['x-uid'], - 'x-decorator-props': field.decoratorProps, - }, - }); - dn.refresh(); - }} - /> - { - const fieldNames = field.decoratorProps.fieldNames || {}; - fieldNames['start'] = start; - field.decoratorProps.params = fieldNames; - fieldSchema['x-decorator-props']['params'] = fieldNames; - service.refresh(); - dn.emit('patch', { - schema: { - ['x-uid']: fieldSchema['x-uid'], - 'x-decorator-props': field.decoratorProps, - }, - }); - dn.refresh(); - }} - /> - { - const fieldNames = field.decoratorProps.fieldNames || {}; - fieldNames['end'] = end; - field.decoratorProps.params = fieldNames; - fieldSchema['x-decorator-props']['params'] = fieldNames; - service.refresh(); - dn.emit('patch', { - schema: { - ['x-uid']: fieldSchema['x-uid'], - 'x-decorator-props': field.decoratorProps, - }, - }); - dn.refresh(); - }} - /> - { - const params = field.decoratorProps.params || {}; - params.filter = filter; - field.decoratorProps.params = params; - fieldSchema['x-decorator-props']['params'] = params; - service.run({ ...service?.params?.[0], filter }); - dn.emit('patch', { - schema: { - ['x-uid']: fieldSchema['x-uid'], - 'x-decorator-props': field.decoratorProps, - }, - }); - }} - /> - - - - - - ); -}; diff --git a/packages/core/client/src/schema-component/antd/calendar-v2/Calendar.tsx b/packages/core/client/src/schema-component/antd/calendar-v2/Calendar.tsx deleted file mode 100644 index 6d7a7181f..000000000 --- a/packages/core/client/src/schema-component/antd/calendar-v2/Calendar.tsx +++ /dev/null @@ -1,156 +0,0 @@ -import { LeftOutlined, RightOutlined } from '@ant-design/icons'; -import { createForm } from '@formily/core'; -import { observer, RecursionField, Schema, useFieldSchema } from '@formily/react'; -import get from 'lodash/get'; -import moment from 'moment'; -import React, { useMemo, useState } from 'react'; -import { Calendar as BigCalendar, momentLocalizer } from 'react-big-calendar'; -import * as dates from 'react-big-calendar/lib/utils/dates'; -import { useTranslation } from 'react-i18next'; -import { RecordProvider } from '../../../'; -import { i18n } from '../../../i18n'; -import { useProps } from '../../hooks/useProps'; -import { ActionContext } from '../action'; -import { CalendarToolbarContext } from './context'; -import './style.less'; -import type { ToolbarProps } from './types'; - -const localizer = momentLocalizer(moment); - -function Toolbar(props: ToolbarProps) { - const fieldSchema = useFieldSchema(); - const toolBarSchema: Schema = useMemo( - () => - fieldSchema.reduceProperties((buf, current) => { - if (current['x-component'].endsWith('.ActionBar')) { - return current; - } - return buf; - }, null), - [], - ); - return ( - - - - ); -} - -const messages: any = { - allDay: '', - previous: ( -
- -
- ), - next: ( -
- -
- ), - today: i18n.t('Today'), - month: i18n.t('Month'), - week: i18n.t('Week'), - work_week: i18n.t('Work week'), - day: i18n.t('Day'), - agenda: i18n.t('Agenda'), - date: i18n.t('Date'), - time: i18n.t('Time'), - event: i18n.t('Event'), - noEventsInRange: i18n.t('None'), - showMore: (count) => i18n.t('{{count}} more items', { count }), -}; - -const useEvents = (dataSource: any, fieldNames: any) => { - const { t } = useTranslation(); - return useMemo( - () => - Array.isArray(dataSource) - ? dataSource?.map((item) => { - return { - id: get(item, fieldNames.id || 'id'), - title: get(item, fieldNames.title) || t('Untitle'), - start: new Date(get(item, fieldNames.start)), - end: new Date(get(item, fieldNames.end || fieldNames.start)), - }; - }) - : [], - [dataSource, fieldNames], - ); -}; - -const CalendarRecordViewer = (props) => { - const { visible, setVisible, record } = props; - const form = useMemo(() => createForm(), [record]); - const fieldSchema = useFieldSchema(); - const eventSchema: Schema = useMemo( - () => - fieldSchema.reduceProperties((buf, current) => { - if (current['x-component'].endsWith('.Event')) { - return current; - } - return buf; - }, null), - [], - ); - return ( - eventSchema && ( - - - - - - ) - ); -}; - -export const Calendar: any = observer((props: any) => { - const { dataSource, fieldNames } = useProps(props); - const events = useEvents(dataSource, fieldNames); - const [visible, setVisible] = useState(false); - const [record, setRecord] = useState({}); - return ( -
- - { - console.log('onSelectSlot', slotInfo); - }} - onDoubleClickEvent={(event) => { - console.log('onDoubleClickEvent'); - }} - onSelectEvent={(event) => { - const record = dataSource?.find((item) => item[fieldNames.id] === event.id); - if (!record) { - return; - } - setRecord(record); - setVisible(true); - }} - formats={{ - monthHeaderFormat: 'Y-M', - agendaDateFormat: 'M-DD', - dayHeaderFormat: 'Y-M-DD', - dayRangeHeaderFormat: ({ start, end }, culture, local) => { - if (dates.eq(start, end, 'month')) { - return local.format(start, 'Y-M', culture); - } - return `${local.format(start, 'Y-M', culture)} - ${local.format(end, 'Y-M', culture)}`; - }, - }} - defaultDate={new Date()} - components={{ - toolbar: Toolbar, - }} - localizer={localizer} - /> -
- ); -}); diff --git a/packages/core/client/src/schema-component/antd/calendar-v2/Event.tsx b/packages/core/client/src/schema-component/antd/calendar-v2/Event.tsx deleted file mode 100644 index 73a9f26f6..000000000 --- a/packages/core/client/src/schema-component/antd/calendar-v2/Event.tsx +++ /dev/null @@ -1,6 +0,0 @@ -import { observer } from '@formily/react'; -import React from 'react'; - -export const Event = observer((props) => { - return <>{props.children}; -}); diff --git a/packages/core/client/src/schema-component/antd/calendar-v2/Nav.tsx b/packages/core/client/src/schema-component/antd/calendar-v2/Nav.tsx deleted file mode 100644 index 4a8bd3ca3..000000000 --- a/packages/core/client/src/schema-component/antd/calendar-v2/Nav.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import { LeftOutlined, RightOutlined } from '@ant-design/icons'; -import { observer } from '@formily/react'; -import { Button } from 'antd'; -import React, { useContext } from 'react'; -import { navigate } from 'react-big-calendar/lib/utils/constants'; -import { useDesignable } from '../../hooks'; -import { CalendarToolbarContext } from './context'; - -export const Nav = observer((props) => { - const { DesignableBar } = useDesignable(); - const { onNavigate } = useContext(CalendarToolbarContext); - return ( -
- - - -
- ); -}); diff --git a/packages/core/client/src/schema-component/antd/calendar-v2/Title.tsx b/packages/core/client/src/schema-component/antd/calendar-v2/Title.tsx deleted file mode 100644 index 379a6a70f..000000000 --- a/packages/core/client/src/schema-component/antd/calendar-v2/Title.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import { observer } from '@formily/react'; -import React, { useContext } from 'react'; -import { useDesignable } from '../../hooks'; -import { CalendarToolbarContext } from './context'; - -export const Title = observer(() => { - const { DesignableBar } = useDesignable(); - const { label } = useContext(CalendarToolbarContext); - return ( -
- {label} - -
- ); -}); diff --git a/packages/core/client/src/schema-component/antd/calendar-v2/Today.tsx b/packages/core/client/src/schema-component/antd/calendar-v2/Today.tsx deleted file mode 100644 index dd8804f7b..000000000 --- a/packages/core/client/src/schema-component/antd/calendar-v2/Today.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import { observer } from '@formily/react'; -import { Button } from 'antd'; -import React, { useContext } from 'react'; -import { navigate } from 'react-big-calendar/lib/utils/constants'; -import { useTranslation } from 'react-i18next'; -import { useDesignable } from '../../hooks'; -import { CalendarToolbarContext } from './context'; - -export const Today = observer((props) => { - const { DesignableBar } = useDesignable(); - const { onNavigate } = useContext(CalendarToolbarContext); - const { t } = useTranslation(); - return ( - - ); -}); diff --git a/packages/core/client/src/schema-component/antd/calendar-v2/ViewSelect.tsx b/packages/core/client/src/schema-component/antd/calendar-v2/ViewSelect.tsx deleted file mode 100644 index 027ea36e3..000000000 --- a/packages/core/client/src/schema-component/antd/calendar-v2/ViewSelect.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { observer } from '@formily/react'; -import { Select } from 'antd'; -import React, { useContext } from 'react'; -import { useDesignable } from '../../hooks'; -import { CalendarToolbarContext } from './context'; - -export const ViewSelect = observer((props) => { - const { DesignableBar } = useDesignable(); - const { - views, - view, - onView, - localizer: { messages }, - } = useContext(CalendarToolbarContext); - return ( -
- - -
- ); -}); diff --git a/packages/core/client/src/schema-component/antd/calendar-v2/context.ts b/packages/core/client/src/schema-component/antd/calendar-v2/context.ts deleted file mode 100644 index 31dc497ba..000000000 --- a/packages/core/client/src/schema-component/antd/calendar-v2/context.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { createContext } from 'react'; -import type { ToolbarProps } from './types'; - -export const CalendarToolbarContext = createContext(null); -export const CalendarContext = createContext(null); diff --git a/packages/core/client/src/schema-component/antd/calendar-v2/demos/defaultValues.ts b/packages/core/client/src/schema-component/antd/calendar-v2/demos/defaultValues.ts deleted file mode 100644 index ab3a2f736..000000000 --- a/packages/core/client/src/schema-component/antd/calendar-v2/demos/defaultValues.ts +++ /dev/null @@ -1,180 +0,0 @@ -const now = new Date(); - -export default [ - { - id: 0, - title: 'All Day Event very long title', - allDay: true, - start: new Date(2015, 3, 0), - end: new Date(2015, 3, 1), - }, - { - id: 1, - title: 'Long Event', - start: new Date(2015, 3, 7), - end: new Date(2015, 3, 10), - }, - - { - id: 2, - title: 'DTS STARTS', - start: new Date(2016, 2, 13, 0, 0, 0), - end: new Date(2016, 2, 20, 0, 0, 0), - }, - - { - id: 3, - title: 'DTS ENDS', - start: new Date(2016, 10, 6, 0, 0, 0), - end: new Date(2016, 10, 13, 0, 0, 0), - }, - - { - id: 4, - title: 'Some Event', - start: new Date(2015, 3, 9, 0, 0, 0), - end: new Date(2015, 3, 10, 0, 0, 0), - }, - { - id: 5, - title: 'Conference', - start: new Date(2015, 3, 11), - end: new Date(2015, 3, 13), - desc: 'Big conference for important people', - }, - { - id: 6, - title: 'Meeting', - start: new Date(2015, 3, 12, 10, 30, 0, 0), - end: new Date(2015, 3, 12, 12, 30, 0, 0), - desc: 'Pre-meeting meeting, to prepare for the meeting', - }, - { - id: 7, - title: 'Lunch', - start: new Date(2015, 3, 12, 12, 0, 0, 0), - end: new Date(2015, 3, 12, 13, 0, 0, 0), - desc: 'Power lunch', - }, - { - id: 8, - title: 'Meeting', - start: new Date(2015, 3, 12, 14, 0, 0, 0), - end: new Date(2015, 3, 12, 15, 0, 0, 0), - }, - { - id: 9, - title: 'Happy Hour', - start: new Date(2015, 3, 12, 17, 0, 0, 0), - end: new Date(2015, 3, 12, 17, 30, 0, 0), - desc: 'Most important meal of the day', - }, - { - id: 10, - title: 'Dinner', - start: new Date(2015, 3, 12, 20, 0, 0, 0), - end: new Date(2015, 3, 12, 21, 0, 0, 0), - }, - { - id: 11, - title: 'Planning Meeting with Paige', - start: new Date(2015, 3, 13, 8, 0, 0), - end: new Date(2015, 3, 13, 10, 30, 0), - }, - { - id: 11.1, - title: 'Inconvenient Conference Call', - start: new Date(2015, 3, 13, 9, 30, 0), - end: new Date(2015, 3, 13, 12, 0, 0), - }, - { - id: 11.2, - title: "Project Kickoff - Lou's Shoes", - start: new Date(2015, 3, 13, 11, 30, 0), - end: new Date(2015, 3, 13, 14, 0, 0), - }, - { - id: 11.3, - title: 'Quote Follow-up - Tea by Tina', - start: new Date(2015, 3, 13, 15, 30, 0), - end: new Date(2015, 3, 13, 16, 0, 0), - }, - { - id: 12, - title: 'Late Night Event', - start: new Date(2015, 3, 17, 19, 30, 0), - end: new Date(2015, 3, 18, 2, 0, 0), - }, - { - id: 12.5, - title: 'Late Same Night Event', - start: new Date(2015, 3, 17, 19, 30, 0), - end: new Date(2015, 3, 17, 23, 30, 0), - }, - { - id: 13, - title: 'Multi-day Event', - start: new Date(2015, 3, 20, 19, 30, 0), - end: new Date(2015, 3, 22, 2, 0, 0), - }, - { - id: 14, - title: 'Today', - start: new Date(new Date().setHours(new Date().getHours() - 3)), - end: new Date(new Date().setHours(new Date().getHours() + 3)), - }, - { - id: 15, - title: 'Point in Time Event', - start: now, - end: now, - }, - { - id: 16, - title: 'Video Record', - start: new Date(2015, 3, 14, 15, 30, 0), - end: new Date(2015, 3, 14, 19, 0, 0), - }, - { - id: 17, - title: 'Dutch Song Producing', - start: new Date(2015, 3, 14, 16, 30, 0), - end: new Date(2015, 3, 14, 20, 0, 0), - }, - { - id: 18, - title: 'Itaewon Halloween Meeting', - start: new Date(2015, 3, 14, 16, 30, 0), - end: new Date(2015, 3, 14, 17, 30, 0), - }, - { - id: 19, - title: 'Online Coding Test', - start: new Date(2015, 3, 14, 17, 30, 0), - end: new Date(2015, 3, 14, 20, 30, 0), - }, - { - id: 20, - title: 'An overlapped Event', - start: new Date(2015, 3, 14, 17, 0, 0), - end: new Date(2015, 3, 14, 18, 30, 0), - }, - { - id: 21, - title: 'Phone Interview', - start: new Date(2015, 3, 14, 17, 0, 0), - end: new Date(2015, 3, 14, 18, 30, 0), - }, - { - id: 22, - title: 'Cooking Class', - start: new Date(2015, 3, 14, 17, 30, 0), - end: new Date(2015, 3, 14, 19, 0, 0), - }, - { - id: 23, - title: 'Go to the gym', - start: new Date(2015, 3, 14, 18, 30, 0), - end: new Date(2015, 3, 14, 20, 0, 0), - }, -]; diff --git a/packages/core/client/src/schema-component/antd/calendar-v2/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/calendar-v2/demos/demo1.tsx deleted file mode 100644 index dd55494fd..000000000 --- a/packages/core/client/src/schema-component/antd/calendar-v2/demos/demo1.tsx +++ /dev/null @@ -1,67 +0,0 @@ -/** - * title: Calendar - */ -import { - AntdSchemaComponentProvider, - SchemaComponent, - SchemaComponentProvider, - SchemaInitializerProvider -} from '@nocobase/client'; -import React from 'react'; -import defaultValues from './defaultValues'; - -const schema = { - type: 'array', - name: 'calendar1', - 'x-component': 'CalendarV2', - 'x-component-props': {}, - default: defaultValues, - properties: { - toolBar: { - type: 'void', - 'x-component': 'CalendarV2.ActionBar', - properties: { - today: { - type: 'void', - title: '今天', - 'x-component': 'CalendarV2.Today', - 'x-action': 'calendar:today', - 'x-align': 'left', - }, - nav: { - type: 'void', - title: '翻页', - 'x-component': 'CalendarV2.Nav', - 'x-action': 'calendar:nav', - 'x-align': 'left', - }, - title: { - type: 'void', - title: '标题', - 'x-component': 'CalendarV2.Title', - 'x-action': 'calendar:title', - 'x-align': 'left', - }, - viewSelect: { - type: 'void', - title: '视图切换', - 'x-component': 'CalendarV2.ViewSelect', - 'x-action': 'calendar:viewSelect', - 'x-align': 'right', - }, - }, - }, - }, -}; - -export default () => { - return ( - - - - - - - - ); -}; diff --git a/packages/core/client/src/schema-component/antd/calendar-v2/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/calendar-v2/demos/demo2.tsx deleted file mode 100644 index 3f8acbc67..000000000 --- a/packages/core/client/src/schema-component/antd/calendar-v2/demos/demo2.tsx +++ /dev/null @@ -1,117 +0,0 @@ -import { ISchema } from '@formily/react'; -import { - AntdSchemaComponentProvider, - APIClient, - APIClientProvider, - BlockSchemaComponentProvider, - CollectionManagerProvider, - SchemaComponent, - SchemaComponentProvider -} from '@nocobase/client'; -import MockAdapter from 'axios-mock-adapter'; -import React from 'react'; -import collections from './collections'; -import data from './data'; - -const schema: ISchema = { - type: 'object', - properties: { - block: { - type: 'void', - 'x-decorator': 'CalendarBlockProvider', - 'x-decorator-props': { - collection: 't_j6omof6tza8', - resource: 't_j6omof6tza8', - action: 'list', - fieldNames: { - id: 'id', - start: 'createdAt', - end: 'createdAt', - title: 'f_g8j5jvalqh0', - }, - params: { - paginate: false, - }, - }, - properties: { - calendar: { - type: 'array', - name: 'calendar1', - 'x-component': 'CalendarV2', - 'x-component-props': { - useProps: '{{ useCalendarBlockProps }}', - }, - properties: { - toolBar: { - type: 'void', - 'x-component': 'CalendarV2.ActionBar', - properties: { - today: { - type: 'void', - title: '今天', - 'x-component': 'CalendarV2.Today', - 'x-action': 'calendar:today', - 'x-align': 'left', - }, - nav: { - type: 'void', - title: '翻页', - 'x-component': 'CalendarV2.Nav', - 'x-action': 'calendar:nav', - 'x-align': 'left', - }, - title: { - type: 'void', - title: '标题', - 'x-component': 'CalendarV2.Title', - 'x-action': 'calendar:title', - 'x-align': 'left', - }, - viewSelect: { - type: 'void', - title: '视图切换', - 'x-component': 'CalendarV2.ViewSelect', - 'x-action': 'calendar:viewSelect', - 'x-align': 'right', - }, - }, - }, - }, - }, - }, - }, - }, -}; - -const apiClient = new APIClient({ - baseURL: 'http://localhost:3000/api', -}); - -const sleep = (value: number) => new Promise((resolve) => setTimeout(resolve, value)); - -const mock = (api: APIClient) => { - const mock = new MockAdapter(api.axios); - - mock.onGet('/t_j6omof6tza8:list').reply(async (config) => { - await sleep(2000); - return [200, data]; - }); -}; - -mock(apiClient); - -export default () => { - return ( - - - - - - - - - - - - ); -}; diff --git a/packages/core/client/src/schema-component/antd/calendar-v2/index.md b/packages/core/client/src/schema-component/antd/calendar-v2/index.md deleted file mode 100644 index 38268c37b..000000000 --- a/packages/core/client/src/schema-component/antd/calendar-v2/index.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -nav: - path: /client -group: - path: /schema-components ---- - -# CalendarV2 - -## Examples - -#### Basic - - - -### CalendarBlockProvider - - diff --git a/packages/core/client/src/schema-component/antd/calendar-v2/index.ts b/packages/core/client/src/schema-component/antd/calendar-v2/index.ts deleted file mode 100644 index 298ac64dc..000000000 --- a/packages/core/client/src/schema-component/antd/calendar-v2/index.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { ActionBar } from '../action'; -import { Calendar as CalendarV2 } from './Calendar'; -import { CalendarDesigner } from './Calendar.Designer'; -import { Event } from './Event'; -import { Nav } from './Nav'; -import './style.less'; -import { Title } from './Title'; -import { Today } from './Today'; -import { ViewSelect } from './ViewSelect'; - -CalendarV2.ActionBar = ActionBar; -CalendarV2.Event = Event; -CalendarV2.Title = Title; -CalendarV2.Today = Today; -CalendarV2.Nav = Nav; -CalendarV2.ViewSelect = ViewSelect; -CalendarV2.Designer = CalendarDesigner; - -export { CalendarV2 }; diff --git a/packages/core/client/src/schema-component/antd/calendar-v2/style.less b/packages/core/client/src/schema-component/antd/calendar-v2/style.less deleted file mode 100644 index aefe3d99d..000000000 --- a/packages/core/client/src/schema-component/antd/calendar-v2/style.less +++ /dev/null @@ -1,767 +0,0 @@ -@charset "UTF-8"; -.rbc-btn { - color: inherit; - font: inherit; - margin: 0; -} - -button.rbc-btn { - overflow: visible; - text-transform: none; - -webkit-appearance: button; - cursor: pointer; -} - -button[disabled].rbc-btn { - cursor: not-allowed; -} - -button.rbc-input::-moz-focus-inner { - border: 0; - padding: 0; -} - -.rbc-calendar { - box-sizing: border-box; - display: flex; - flex-direction: column; - align-items: stretch; - height: 100%; -} - -.rbc-calendar *, -.rbc-calendar *:before, -.rbc-calendar *:after { - box-sizing: inherit; -} - -.rbc-abs-full, -.rbc-row-bg { - overflow: hidden; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; -} - -.rbc-ellipsis, -.rbc-event-label, -.rbc-row-segment .rbc-event-content, -.rbc-show-more { - display: block; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.rbc-rtl { - direction: rtl; -} - -.rbc-off-range { - color: rgba(0, 0, 0, 0.25); -} - -.rbc-off-range-bg { - // background: #e6e6e6; -} - -.rbc-header { - // font-size: 16px; - overflow: hidden; - flex: 1 0 0%; - text-overflow: ellipsis; - white-space: nowrap; - padding: 4px 12px; - text-align: right; - vertical-align: middle; - // font-weight: 500; - min-height: 32px; - color: rgba(0, 0, 0, 0.85); - margin: 0 4px; - border-bottom: 2px solid #f0f0f0; -} -.rbc-header + .rbc-header { - // border-left: 1px solid #f0f0f0; -} -.rbc-rtl .rbc-header + .rbc-header { - border-left-width: 0; - border-right: 1px solid #f0f0f0; -} -.rbc-header > a, -.rbc-header > a:active, -.rbc-header > a:visited { - color: inherit; - text-decoration: none; -} - -.rbc-row-content { - position: relative; - user-select: none; - -webkit-user-select: none; - z-index: 4; -} - -.rbc-row-content-scrollable { - display: flex; - flex-direction: column; - height: 100%; -} -.rbc-row-content-scrollable .rbc-row-content-scroll-container { - height: 100%; - overflow-y: scroll; - /* Hide scrollbar for Chrome, Safari and Opera */ - -ms-overflow-style: none; - /* IE and Edge */ - scrollbar-width: none; - /* Firefox */ -} -.rbc-row-content-scrollable .rbc-row-content-scroll-container::-webkit-scrollbar { - display: none; -} - -.rbc-toolbar { - display: flex; - flex-wrap: wrap; - justify-content: center; - align-items: center; - margin-bottom: 10px; - font-size: 16px; -} -.rbc-toolbar .rbc-toolbar-label { - flex-grow: 1; - padding: 0 10px; - text-align: center; -} -.rbc-toolbar button { - outline: none; - font-size: 14px; - line-height: 1.5715; - height: 32px; - color: #373a3c; - display: inline-block; - margin: 0; - position: relative; - z-index: 1; - text-align: center; - vertical-align: middle; - background: none; - background-image: none; - border: 1px solid #d9d9d9; - padding: 4px 15px; - border-radius: 2px; - line-height: normal; - white-space: nowrap; -} -.rbc-toolbar button:active, -.rbc-toolbar button.rbc-active { - // background-image: none; - // box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); - // background-color: #e6e6e6; - z-index: 2; - color: #1890ff; - border-color: #1890ff; -} -.rbc-toolbar button:active:hover, -.rbc-toolbar button:active:focus, -.rbc-toolbar button.rbc-active:hover, -.rbc-toolbar button.rbc-active:focus { - // color: #373a3c; - // background-color: #d4d4d4; - // border-color: #8c8c8c; - z-index: 2; - color: #40a9ff; - border-color: #40a9ff; -} -// .rbc-toolbar button:focus { -// color: #373a3c; -// background-color: #e6e6e6; -// border-color: #adadad; } -.rbc-toolbar button:hover { - // color: #373a3c; - // background-color: #e6e6e6; - z-index: 2; - color: #40a9ff; - border-color: #40a9ff; -} - -.rbc-btn-group { - display: inline-block; - white-space: nowrap; -} -.rbc-btn-group > button:first-child:not(:last-child) { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} -.rbc-btn-group > button:last-child:not(:first-child) { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} -.rbc-rtl .rbc-btn-group > button:first-child:not(:last-child) { - border-radius: 4px; - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} -.rbc-rtl .rbc-btn-group > button:last-child:not(:first-child) { - border-radius: 4px; - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} -.rbc-btn-group > button:not(:first-child):not(:last-child) { - border-radius: 0; -} -.rbc-btn-group button + button { - margin-left: -1px; -} -.rbc-rtl .rbc-btn-group button + button { - margin-left: 0; - margin-right: -1px; -} -.rbc-btn-group + .rbc-btn-group, -.rbc-btn-group + button { - margin-left: 10px; -} - -.rbc-event { - border: none; - box-sizing: border-box; - box-shadow: none; - margin: 0; - padding: 2px 5px; - background-color: rgba(240, 240, 240, 0.65); - border-radius: 2px; - // color: #1890ff; - cursor: pointer; - font-size: 12px; - width: 100%; - text-align: left; - &:hover { - background-color: #e6f7ff; - color: #1890ff; - } -} -.rbc-slot-selecting .rbc-event { - cursor: inherit; - pointer-events: none; -} -.rbc-event.rbc-selected { - background-color: #e6f7ff; - color: #1890ff; -} -.rbc-event:focus { - // outline: 5px auto #3b99fc; -} - -.rbc-event-label { - font-size: 80%; -} - -.rbc-event-overlaps { - box-shadow: -1px 1px 5px 0px rgba(51, 51, 51, 0.5); -} - -.rbc-event-continues-prior { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - -.rbc-event-continues-after { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.rbc-event-continues-earlier { - border-top-left-radius: 0; - border-top-right-radius: 0; -} - -.rbc-event-continues-later { - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -.rbc-row { - display: flex; - flex-direction: row; -} - -.rbc-row-segment { - padding: 0 4px 1px 4px; -} - -.rbc-selected-cell { - background-color: rgba(0, 0, 0, 0.1); -} - -.rbc-show-more { - z-index: 4; - font-weight: bold; - font-size: 85%; - height: auto; - line-height: normal; - color: inherit; - padding: 2px 5px; -} - -.rbc-month-view { - position: relative; - // border: 1px solid #f0f0f0; - display: flex; - flex-direction: column; - flex: 1 0 0; - width: 100%; - user-select: none; - -webkit-user-select: none; - height: 68vh; -} - -.rbc-month-header { - display: flex; - flex-direction: row; -} - -.rbc-month-row { - display: flex; - position: relative; - flex-direction: column; - flex: 1 0 0; - flex-basis: 0px; - overflow: hidden; - height: 100%; -} -.rbc-month-row + .rbc-month-row { - // border-top: 1px solid #f0f0f0; -} - -.rbc-date-cell { - // cursor: pointer; - flex: 1 1 0; - min-width: 0; - padding-right: 12px; - padding-top: 4px; - text-align: right; -} -.rbc-date-cell.rbc-now a { - // font-weight: bold; - color: #1890ff; -} -.rbc-date-cell > a, -.rbc-date-cell > a:active, -.rbc-date-cell > a:visited { - color: inherit; - text-decoration: none; -} -.rbc-date-cell > a:hover { - color: #1890ff; -} - -.rbc-row-bg { - display: flex; - flex-direction: row; - flex: 1 0 0; - overflow: hidden; -} - -.rbc-day-bg { - flex: 1 0 0%; - // border-top: 2px solid #f0f0f0; - margin: 0 4px; - &:hover { - background: #f5f5f5; - } - // cursor: pointer; -} - -.rbc-month-view { - .rbc-day-bg { - border-top: 2px solid #f0f0f0; - } - .rbc-today { - border-color: #1890ff !important; - background-color: #e6f7ff !important; - } - .rbc-header { - border-bottom: 0 !important; - } -} - -.rbc-day-bg + .rbc-day-bg { - // margin-left: 8px; - // border-left: 1px solid #f0f0f0; -} -.rbc-rtl .rbc-day-bg + .rbc-day-bg { - // border-left-width: 0; - // border-right: 1px solid #f0f0f0; -} - -.rbc-overlay { - position: absolute; - z-index: 5; - margin-top: 5px; - border-radius: 2px; - // border: 1px solid #e5e5e5; - background-color: #fff; - box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05); - padding: 12px 16px; -} -.rbc-overlay > * + * { - margin-top: 1px; -} - -.rbc-overlay-header { - font-weight: 500; - min-height: 32px; - border-bottom: 1px solid #f0f0f0; - margin: -12px -16px 12px -16px; - padding: 5px 16px 4px; -} - -.rbc-agenda-view { - display: flex; - flex-direction: column; - flex: 1 0 0; - overflow: auto; -} -.rbc-agenda-view table.rbc-agenda-table { - width: 100%; - border: 1px solid #f0f0f0; - border-spacing: 0; - border-collapse: collapse; -} -.rbc-agenda-view table.rbc-agenda-table tbody > tr > td { - padding: 5px 10px; - vertical-align: top; -} -.rbc-agenda-view table.rbc-agenda-table .rbc-agenda-time-cell { - padding-left: 15px; - padding-right: 15px; - text-transform: lowercase; -} -.rbc-agenda-view table.rbc-agenda-table tbody > tr > td + td { - border-left: 1px solid #f0f0f0; -} -.rbc-rtl .rbc-agenda-view table.rbc-agenda-table tbody > tr > td + td { - border-left-width: 0; - border-right: 1px solid #f0f0f0; -} -.rbc-agenda-view table.rbc-agenda-table tbody > tr + tr { - border-top: 1px solid #f0f0f0; -} -.rbc-agenda-view table.rbc-agenda-table thead > tr > th { - padding: 3px 5px; - text-align: left; - border-bottom: 1px solid #f0f0f0; -} -.rbc-rtl .rbc-agenda-view table.rbc-agenda-table thead > tr > th { - text-align: right; -} - -.rbc-agenda-time-cell { - text-transform: lowercase; -} -.rbc-agenda-time-cell .rbc-continues-after:after { - content: ' »'; -} -.rbc-agenda-time-cell .rbc-continues-prior:before { - content: '« '; -} - -.rbc-agenda-date-cell, -.rbc-agenda-time-cell { - white-space: nowrap; -} - -.rbc-agenda-event-cell { - width: 100%; -} - -.rbc-time-column { - display: flex; - flex-direction: column; - min-height: 100%; -} -.rbc-time-column .rbc-timeslot-group { - flex: 1; -} - -.rbc-timeslot-group { - border-bottom: 1px solid #f0f0f0; - min-height: 40px; - line-height: 39px; - display: flex; - flex-flow: column nowrap; - // cursor: pointer; - &:hover { - background: #f0f0f0; - } -} - -.rbc-time-gutter, -.rbc-header-gutter { - flex: none; -} - -.rbc-label { - padding: 0 5px; -} - -.rbc-day-slot { - position: relative; -} -.rbc-day-slot .rbc-events-container { - bottom: 0; - left: 0; - position: absolute; - right: 0; - margin-right: 10px; - top: 0; -} -.rbc-day-slot .rbc-events-container.rbc-rtl { - left: 10px; - right: 0; -} -.rbc-day-slot .rbc-event { - border: 1px solid #265985; - display: flex; - max-height: 100%; - min-height: 20px; - flex-flow: column wrap; - align-items: flex-start; - overflow: hidden; - position: absolute; -} -.rbc-day-slot .rbc-event-label { - flex: none; - padding-right: 5px; - width: auto; -} -.rbc-day-slot .rbc-event-content { - width: 100%; - flex: 1 1 0; - word-wrap: break-word; - line-height: 1; - height: 100%; - min-height: 1em; -} -.rbc-day-slot .rbc-time-slot { - // border-top: 1px solid #f7f7f7; -} -.rbc-time-header-gutter { - line-height: 40px; -} -.rbc-time-header-cell { - min-height: 32px !important; -} -.rbc-calendar.view-week { - .rbc-time-header-cell { - margin-top: -32px; - margin-bottom: 4px; - } - .rbc-time-view { - padding-top: 32px; - border-top: 0; - } - .rbc-header { - padding: 4px 8px; - } - .rbc-time-header-content { - padding: 4px 0; - } - .rbc-time-header-gutter { - padding: 0; - padding-top: 2px; - > div { - border-top: 2px solid #f0f0f0; - padding: 0 5px; - } - } -} -.rbc-time-view-resources .rbc-time-gutter, -.rbc-time-view-resources .rbc-time-header-gutter { - position: sticky; - left: 0; - background-color: white; - border-right: 1px solid #f0f0f0; - z-index: 10; - margin-right: -1px; -} - -.rbc-time-view-resources .rbc-time-header { - overflow: hidden; -} - -.rbc-time-view-resources .rbc-time-header-content { - min-width: auto; - flex: 1 0 0; - flex-basis: 0px; -} - -.rbc-time-view-resources .rbc-time-header-cell-single-day { - display: none; -} - -.rbc-time-view-resources .rbc-day-slot { - min-width: 140px; -} - -.rbc-time-view-resources .rbc-header, -.rbc-time-view-resources .rbc-day-bg { - width: 140px; - flex: 1 1 0; - flex-basis: 0 px; -} - -.rbc-time-header-content + .rbc-time-header-content { - margin-left: -1px; -} - -.rbc-time-slot { - flex: 1 0 0; -} -.rbc-time-slot.rbc-now { - font-weight: bold; -} - -.rbc-day-header { - text-align: center; -} - -.rbc-slot-selection { - z-index: 10; - position: absolute; - background-color: rgba(0, 0, 0, 0.5); - color: white; - font-size: 75%; - width: 100%; - padding: 3px; -} - -.rbc-slot-selecting { - cursor: move; -} - -.rbc-time-view { - display: flex; - flex-direction: column; - flex: 1; - width: 100%; - border-top: 1px solid #f0f0f0; - min-height: 0; -} -.rbc-time-view .rbc-time-gutter { - white-space: nowrap; -} -.rbc-time-view .rbc-allday-cell { - box-sizing: content-box; - width: 100%; - height: 100%; - position: relative; -} -.rbc-time-view .rbc-allday-cell + .rbc-allday-cell { - border-left: 1px solid #f0f0f0; -} -.rbc-time-view .rbc-allday-events { - position: relative; - z-index: 4; -} -.rbc-time-view .rbc-row { - box-sizing: border-box; - min-height: 20px; -} - -.rbc-time-header { - display: flex; - flex: 0 0 auto; - flex-direction: row; -} -.rbc-time-header.rbc-overflowing { - border-right: 1px solid #f0f0f0; -} -.rbc-rtl .rbc-time-header.rbc-overflowing { - border-right-width: 0; - border-left: 1px solid #f0f0f0; -} -.rbc-time-header > .rbc-row:first-child { - border-bottom: 1px solid #f0f0f0; -} -.rbc-time-header > .rbc-row.rbc-row-resource { - border-bottom: 1px solid #f0f0f0; -} - -.rbc-time-header-cell-single-day { - display: none; -} - -.rbc-time-header-content { - flex: 1; - display: flex; - min-width: 0; - flex-direction: column; - // border-left: 1px solid #f0f0f0; -} -.rbc-rtl .rbc-time-header-content { - border-left-width: 0; - border-right: 1px solid #f0f0f0; -} -.rbc-time-header-content > .rbc-row.rbc-row-resource { - border-bottom: 1px solid #f0f0f0; - flex-shrink: 0; -} - -.rbc-time-content { - display: flex; - flex: 1 0 0%; - align-items: flex-start; - width: 100%; - border-top: 1px solid #f0f0f0; - overflow-y: auto; - position: relative; -} -.rbc-time-content > .rbc-time-gutter { - flex: none; -} -.rbc-time-content > * + * > * { - // border-left: 1px solid #f0f0f0; -} -.rbc-rtl .rbc-time-content > * + * > * { - border-left-width: 0; - border-right: 1px solid #f0f0f0; -} -.rbc-time-content > .rbc-day-slot { - width: 100%; - user-select: none; - -webkit-user-select: none; -} - -.rbc-current-time-indicator { - position: absolute; - z-index: 3; - left: 0; - right: 0; - height: 1px; - background-color: #74ad31; - pointer-events: none; -} - -@media only screen and (max-width: 800px) { - .view-type-calendar .action-buttons { - position: relative !important; - left: 0 !important; - .filter-action-button { - left: 0 !important; - } - } - .rbc-toolbar .rbc-toolbar-label { - position: absolute; - top: 28px; - left: 50%; - transform: translateX(-50%); - } - .rbc-toolbar { - justify-content: space-between !important; - } - .rbc-header { - padding: 4px !important; - } -} diff --git a/packages/core/client/src/schema-component/antd/calendar-v2/types.d.ts b/packages/core/client/src/schema-component/antd/calendar-v2/types.d.ts deleted file mode 100644 index d3f3470d3..000000000 --- a/packages/core/client/src/schema-component/antd/calendar-v2/types.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export interface ToolbarProps { - localizer?: any; - label?: any; - view?: any; - views?: any; - onNavigate?: (action: string) => void; - onView?: (view: string) => void; -} diff --git a/packages/core/client/src/schema-component/antd/calendar-v2/utils.ts b/packages/core/client/src/schema-component/antd/calendar-v2/utils.ts deleted file mode 100644 index f72d5efba..000000000 --- a/packages/core/client/src/schema-component/antd/calendar-v2/utils.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { get } from 'lodash'; -import { i18n } from '../../../i18n'; - -export const toEvents = (data: any[], fieldNames: any) => { - return data?.map((item) => { - return { - id: get(item, fieldNames.id || 'id'), - title: get(item, fieldNames.title) || i18n.t('Untitle'), - start: new Date(get(item, fieldNames.start)), - end: new Date(get(item, fieldNames.end || fieldNames.start)), - }; - }); -}; diff --git a/packages/core/client/src/schema-component/antd/calendar/Calendar.Designer.tsx b/packages/core/client/src/schema-component/antd/calendar/Calendar.Designer.tsx index d0eda3895..a1219566f 100644 --- a/packages/core/client/src/schema-component/antd/calendar/Calendar.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/calendar/Calendar.Designer.tsx @@ -1,107 +1,106 @@ import { ISchema, useField, useFieldSchema } from '@formily/react'; import React from 'react'; +import { useTranslation } from 'react-i18next'; import { useCompile, useDesignable } from '../..'; -import { useCollection, useResourceActionContext } from '../../../collection-manager'; +import { useCalendarBlockContext } from '../../../block-provider'; +import { useCollection } from '../../../collection-manager'; import { useCollectionFilterOptions } from '../../../collection-manager/action-hooks'; import { GeneralSchemaDesigner, SchemaSettings } from '../../../schema-settings'; import { useSchemaTemplate } from '../../../schema-templates'; -export const CalendarDesigner = () => { - const field = useField(); - const fieldSchema = useFieldSchema(); - const { name, title, fields } = useCollection(); - const dataSource = useCollectionFilterOptions(name); - const ctx = useResourceActionContext(); - const { dn } = useDesignable(); +const useOptions = () => { const compile = useCompile(); - const template = useSchemaTemplate(); - const defaultFilter = fieldSchema?.['x-decorator-props']?.request?.params?.filter || {}; + const { fields } = useCollection(); const options = fields?.map((field) => { return { value: field.name, label: compile(field?.uiSchema?.title), }; }); - const calendarSchema = fieldSchema.properties.calendar; - const fieldNames = calendarSchema?.['x-component-props']?.['fieldNames'] || {}; + return options; +} + +export const CalendarDesigner = () => { + const field = useField(); + const fieldSchema = useFieldSchema(); + const { name, title, fields } = useCollection(); + const dataSource = useCollectionFilterOptions(name); + const { service } = useCalendarBlockContext(); + const { dn } = useDesignable(); + const compile = useCompile(); + const { t } = useTranslation(); + const template = useSchemaTemplate(); + const defaultFilter = fieldSchema?.['x-decorator-props']?.params?.filter || {}; + const options = useOptions(); + const fieldNames = fieldSchema?.['x-decorator-props']?.['fieldNames'] || {}; return ( { - field.query(field.address.concat('calendar')).take((f) => { - f.componentProps.fieldNames = { - ...f.componentProps.fieldNames, - title, - }; - calendarSchema['x-component-props']['fieldNames'] = f.componentProps.fieldNames; - dn.emit('patch', { - schema: { - ['x-uid']: calendarSchema['x-uid'], - 'x-component-props': calendarSchema['x-component-props'], - }, - }); - dn.refresh(); - ctx.refresh(); + const fieldNames = field.decoratorProps.fieldNames || {}; + fieldNames['title'] = title; + field.decoratorProps.params = fieldNames; + fieldSchema['x-decorator-props']['params'] = fieldNames; + service.refresh(); + dn.emit('patch', { + schema: { + ['x-uid']: fieldSchema['x-uid'], + 'x-decorator-props': field.decoratorProps, + }, }); + dn.refresh(); }} /> { - field.query(field.address.concat('calendar')).take((f) => { - f.componentProps.fieldNames = { - ...f.componentProps.fieldNames, - start, - }; - calendarSchema['x-component-props']['fieldNames'] = f.componentProps.fieldNames; - dn.emit('patch', { - schema: { - ['x-uid']: calendarSchema['x-uid'], - 'x-component-props': calendarSchema['x-component-props'], - }, - }); - dn.refresh(); - ctx.refresh(); + const fieldNames = field.decoratorProps.fieldNames || {}; + fieldNames['start'] = start; + field.decoratorProps.params = fieldNames; + fieldSchema['x-decorator-props']['params'] = fieldNames; + service.refresh(); + dn.emit('patch', { + schema: { + ['x-uid']: fieldSchema['x-uid'], + 'x-decorator-props': field.decoratorProps, + }, }); + dn.refresh(); }} /> { - field.query(field.address.concat('calendar')).take((f) => { - f.componentProps.fieldNames = { - ...f.componentProps.fieldNames, - end, - }; - calendarSchema['x-component-props']['fieldNames'] = f.componentProps.fieldNames; - dn.emit('patch', { - schema: { - ['x-uid']: calendarSchema['x-uid'], - 'x-component-props': calendarSchema['x-component-props'], - }, - }); - dn.refresh(); - ctx.refresh(); + const fieldNames = field.decoratorProps.fieldNames || {}; + fieldNames['end'] = end; + field.decoratorProps.params = fieldNames; + fieldSchema['x-decorator-props']['params'] = fieldNames; + service.refresh(); + dn.emit('patch', { + schema: { + ['x-uid']: fieldSchema['x-uid'], + 'x-decorator-props': field.decoratorProps, + }, }); + dn.refresh(); }} /> { } } onSubmit={({ filter }) => { - const params = field.decoratorProps.request.params || {}; + const params = field.decoratorProps.params || {}; params.filter = filter; - field.decoratorProps.request.params = params; - fieldSchema['x-decorator-props']['request']['params'] = params; - ctx.run({ filter }); + field.decoratorProps.params = params; + fieldSchema['x-decorator-props']['params'] = params; + service.run({ ...service?.params?.[0], filter }); dn.emit('patch', { schema: { ['x-uid']: fieldSchema['x-uid'], diff --git a/packages/core/client/src/schema-component/antd/calendar/Calendar.tsx b/packages/core/client/src/schema-component/antd/calendar/Calendar.tsx index 86e21fa44..6d7a7181f 100644 --- a/packages/core/client/src/schema-component/antd/calendar/Calendar.tsx +++ b/packages/core/client/src/schema-component/antd/calendar/Calendar.tsx @@ -1,40 +1,38 @@ import { LeftOutlined, RightOutlined } from '@ant-design/icons'; -import { VoidField } from '@formily/core'; -import { observer, RecursionField, Schema, useField, useFieldSchema } from '@formily/react'; +import { createForm } from '@formily/core'; +import { observer, RecursionField, Schema, useFieldSchema } from '@formily/react'; +import get from 'lodash/get'; import moment from 'moment'; -import React, { useState } from 'react'; +import React, { useMemo, useState } from 'react'; import { Calendar as BigCalendar, momentLocalizer } from 'react-big-calendar'; import * as dates from 'react-big-calendar/lib/utils/dates'; -import { SchemaComponent } from '../..'; -import { AsyncDataProvider, RecordProvider, useRequest } from '../../../'; +import { useTranslation } from 'react-i18next'; +import { RecordProvider } from '../../../'; import { i18n } from '../../../i18n'; -import { ActionBar, ActionContext } from '../action'; -import { CalendarDesigner } from './Calendar.Designer'; -import { CalendarContext, ToolbarContext } from './context'; -import { Event } from './Event'; -import { Nav } from './Nav'; +import { useProps } from '../../hooks/useProps'; +import { ActionContext } from '../action'; +import { CalendarToolbarContext } from './context'; import './style.less'; -import { Title } from './Title'; -import { Today } from './Today'; import type { ToolbarProps } from './types'; -import { toEvents } from './utils'; -import { ViewSelect } from './ViewSelect'; const localizer = momentLocalizer(moment); function Toolbar(props: ToolbarProps) { const fieldSchema = useFieldSchema(); - const toolBarSchema: Schema = fieldSchema.reduceProperties((buf, current) => { - if (current['x-component'] === 'Calendar.ActionBar') { - return current; - } - return buf; - }, null); - + const toolBarSchema: Schema = useMemo( + () => + fieldSchema.reduceProperties((buf, current) => { + if (current['x-component'].endsWith('.ActionBar')) { + return current; + } + return buf; + }, null), + [], + ); return ( - + - + ); } @@ -63,123 +61,96 @@ const messages: any = { showMore: (count) => i18n.t('{{count}} more items', { count }), }; -const useRequestProps = (props) => { - const { request, dataSource } = props; - if (request) { - return request; - } - return (params: any = {}) => { - return Promise.resolve({ - data: dataSource, - }); - }; +const useEvents = (dataSource: any, fieldNames: any) => { + const { t } = useTranslation(); + return useMemo( + () => + Array.isArray(dataSource) + ? dataSource?.map((item) => { + return { + id: get(item, fieldNames.id || 'id'), + title: get(item, fieldNames.title) || t('Untitle'), + start: new Date(get(item, fieldNames.start)), + end: new Date(get(item, fieldNames.end || fieldNames.start)), + }; + }) + : [], + [dataSource, fieldNames], + ); }; -const useDefDataSource = (options, props) => { - return useRequest(useRequestProps(props), options); +const CalendarRecordViewer = (props) => { + const { visible, setVisible, record } = props; + const form = useMemo(() => createForm(), [record]); + const fieldSchema = useFieldSchema(); + const eventSchema: Schema = useMemo( + () => + fieldSchema.reduceProperties((buf, current) => { + if (current['x-component'].endsWith('.Event')) { + return current; + } + return buf; + }, null), + [], + ); + return ( + eventSchema && ( + + + + + + ) + ); }; export const Calendar: any = observer((props: any) => { - const { - useDataSource = useDefDataSource, - fieldNames = { - id: 'id', - title: 'title', - start: 'start', - end: 'end', - }, - } = props; - - const field = useField(); - const fieldSchema = useFieldSchema(); - const [dataSource, setDataSource] = useState(props.dataSource || []); - + const { dataSource, fieldNames } = useProps(props); + const events = useEvents(dataSource, fieldNames); const [visible, setVisible] = useState(false); const [record, setRecord] = useState({}); - const result = useDataSource( - { - uid: fieldSchema['x-uid'], - refreshDeps: [props.dataSource], - onSuccess(data) { - const events = toEvents(data?.data, fieldNames); - setDataSource(events); - }, - }, - props, - ); - const eventSchema: Schema = fieldSchema.reduceProperties((buf, current) => { - if (current['x-component'] === 'Calendar.Event') { - return current; - } - return buf; - }, null); return ( - - -
- {eventSchema && ( - - - - - - )} - { - console.log('onSelectSlot', slotInfo); - }} - onDoubleClickEvent={(event) => { - console.log('onDoubleClickEvent'); - }} - onSelectEvent={(event) => { - const record = result?.data?.data?.find((item) => item.id === event.id); - if (!record) { - return; - } - setRecord(record); - setVisible(true); - console.log('onSelectEvent', record); - }} - formats={{ - monthHeaderFormat: 'Y-M', - agendaDateFormat: 'M-DD', - dayHeaderFormat: 'Y-M-DD', - dayRangeHeaderFormat: ({ start, end }, culture, local) => { - if (dates.eq(start, end, 'month')) { - return local.format(start, 'Y-M', culture); - } - return `${local.format(start, 'Y-M', culture)} - ${local.format(end, 'Y-M', culture)}`; - }, - }} - defaultDate={new Date()} - components={{ - toolbar: Toolbar, - }} - localizer={localizer} - /> -
-
-
+
+ + { + console.log('onSelectSlot', slotInfo); + }} + onDoubleClickEvent={(event) => { + console.log('onDoubleClickEvent'); + }} + onSelectEvent={(event) => { + const record = dataSource?.find((item) => item[fieldNames.id] === event.id); + if (!record) { + return; + } + setRecord(record); + setVisible(true); + }} + formats={{ + monthHeaderFormat: 'Y-M', + agendaDateFormat: 'M-DD', + dayHeaderFormat: 'Y-M-DD', + dayRangeHeaderFormat: ({ start, end }, culture, local) => { + if (dates.eq(start, end, 'month')) { + return local.format(start, 'Y-M', culture); + } + return `${local.format(start, 'Y-M', culture)} - ${local.format(end, 'Y-M', culture)}`; + }, + }} + defaultDate={new Date()} + components={{ + toolbar: Toolbar, + }} + localizer={localizer} + /> +
); }); - -Calendar.ActionBar = ActionBar; - -Calendar.Event = Event; - -Calendar.Title = Title; - -Calendar.Today = Today; - -Calendar.Nav = Nav; - -Calendar.ViewSelect = ViewSelect; - -Calendar.Designer = CalendarDesigner; diff --git a/packages/core/client/src/schema-component/antd/calendar/Nav.tsx b/packages/core/client/src/schema-component/antd/calendar/Nav.tsx index e041b6d87..4a8bd3ca3 100644 --- a/packages/core/client/src/schema-component/antd/calendar/Nav.tsx +++ b/packages/core/client/src/schema-component/antd/calendar/Nav.tsx @@ -4,11 +4,11 @@ import { Button } from 'antd'; import React, { useContext } from 'react'; import { navigate } from 'react-big-calendar/lib/utils/constants'; import { useDesignable } from '../../hooks'; -import { ToolbarContext } from './context'; +import { CalendarToolbarContext } from './context'; export const Nav = observer((props) => { const { DesignableBar } = useDesignable(); - const { onNavigate } = useContext(ToolbarContext); + const { onNavigate } = useContext(CalendarToolbarContext); return (
diff --git a/packages/core/client/src/schema-component/antd/calendar/Title.tsx b/packages/core/client/src/schema-component/antd/calendar/Title.tsx index 1b63431a8..379a6a70f 100644 --- a/packages/core/client/src/schema-component/antd/calendar/Title.tsx +++ b/packages/core/client/src/schema-component/antd/calendar/Title.tsx @@ -1,11 +1,11 @@ import { observer } from '@formily/react'; import React, { useContext } from 'react'; import { useDesignable } from '../../hooks'; -import { ToolbarContext } from './context'; +import { CalendarToolbarContext } from './context'; export const Title = observer(() => { const { DesignableBar } = useDesignable(); - const { label } = useContext(ToolbarContext); + const { label } = useContext(CalendarToolbarContext); return (
{label} diff --git a/packages/core/client/src/schema-component/antd/calendar/Today.tsx b/packages/core/client/src/schema-component/antd/calendar/Today.tsx index 07c6cde45..dd8804f7b 100644 --- a/packages/core/client/src/schema-component/antd/calendar/Today.tsx +++ b/packages/core/client/src/schema-component/antd/calendar/Today.tsx @@ -4,11 +4,11 @@ import React, { useContext } from 'react'; import { navigate } from 'react-big-calendar/lib/utils/constants'; import { useTranslation } from 'react-i18next'; import { useDesignable } from '../../hooks'; -import { ToolbarContext } from './context'; +import { CalendarToolbarContext } from './context'; export const Today = observer((props) => { const { DesignableBar } = useDesignable(); - const { onNavigate } = useContext(ToolbarContext); + const { onNavigate } = useContext(CalendarToolbarContext); const { t } = useTranslation(); return (
+ ); +}; + +export default Navbar; diff --git a/packages/core/dumi-theme-nocobase/src/components/SearchBar.less b/packages/core/dumi-theme-nocobase/src/components/SearchBar.less new file mode 100755 index 000000000..1f362673d --- /dev/null +++ b/packages/core/dumi-theme-nocobase/src/components/SearchBar.less @@ -0,0 +1,165 @@ +@import (reference) '../style/variables.less'; + +.@{prefix}-search { + margin-left: 20px; + position: relative; + display: inline-block; + + &-input { + width: 200px; + height: 32px; + padding: 0 38px 0 14px; + color: @c-heading; + font-size: 14px; + border: 0; + outline: none; + transition: all 0.2s; + border-radius: 16px; + background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABpRJREFUaAXNWWts01UUv+f+264DVEABqY8IjhhCCCGKRoMaE0HACKJxsI3WDwqd67qHEoiPT2qCEpJ1bB1vElpJZYnyMMEgfCCQEUFIDOGDihLiY7yUGAHb9XGP59+t3b3/de2/XYvtl/855557zvndc+6zwAr4tW0KPQQithQRZjEUVcCgChkbw4CFGcMwIPxJZk8zzk5qFkuP1137QwFuTHUBU1qk1N3dXdl7LVKPyGoZ4mNm+w3oneKMb7bbxu5xu1/6N8++WdVzAkBE7usKukCwj5Dh/Vmt5WgEgL8oS2ubG5w7iaakjfyXFUD7lsCDGMMvadQfHbmrQQsA7BjjfFVLg/PHQWlh1LAA2v2BuQLZF1QuE42mB0bvNGOwj3NxinGtN1Exulez3hJwizuYiDsSgs1myF6mDD5F/bnRBmXiBkO+uNXrPDqkLQ9BRgDtnYHlVC4BGnmrbItGLoYMtmoV/JOmlSt+l9uGozdtCkyMxNk7VDFNZM8u65G9CAeobvK4vpLl+dBDAGzsCj6dSOARWk1ssiEa9UNWgEaPx/mzLDdL+/2hB2IYa6OMvKr2gbjG+YtNnhXfqHJznAKgq2v31D6ROEllc4/aHda3NDrfJRBClefP+ToDH1CvDwnIoG+Aqzawz/J4qi/nazFdm7rBvkQ8ZAweOK9v9brWFiN4PbiWRtfHCFA3MI/646V5FsPwZxRDOh6zQLSU4riJVS4KvjHFJ7+cbWj1uNYpsiIwhw7uPbdg0VJ9GX1OMjf129NnL1Lb95IsJ5lMo9/fPSYqIj9R3U9O9aAROtzscS4o1sin7Ka+esZ9/uBeGrQlKRkFc94xqXJ6dXV1IiXL9U2mLMbCLjl4Wh7jjIO3VMHrQSVLSLO2UNB9qSApJdP+uNZXneLNfPtrDmGFrExL3o5ibDKyzUx061s1FwlKl9wGQjTJfC6a+/3BKkrnk7KijVvWy3wpaY1ZNySzMeCEsvD49u3d48365HEhFsrKtLmcbWiouyDLSkl7vTW9NIDfST74zb7wPInPSnLaWWeqGrBP5UvPAfD9shfasZ+X+Ww0zQFUASCcydahJG2Iik+a2FPM+tEn8cOyssawV+ZvB60xbvQ5waxfKiGW3sz6O1mNxszaKljPZuOXDJ2HnIAN7Wm2fxlNs4xZLBpl8H/+GU6t2aLhFK2y6/WJqCNbh1K0RaMifQLotw+mq0DPwC9KUGLwOKHIS8jQEU4BQHcRU3cNPSROJ8OzSmyAcxT+NjAJFMqVlV45fjPrllMKFAA0qdOHK7NGRqoHiItlGwh4Quaz0dxCNy1FAXGmfrFRZCVk6CR8L53snki5oGNFYpTVeiDF5/rygStij6wYFfE1Ml9KOoaR1frRWvJx3O2u1R/GTP2Syyhw2CVrk7036C3oEVlWClq/JxsvUfRatCcfX0kAVmYP0bFW2kzQggmxkUYm2Z6PwXx0YyLmozlXke4DcGHyJPvONG+CSAZIl+mbRKw26M/3dQbXGWRFY8n2e7RcviIb1ICvpdtYVJblouXaY20dgaN0uHtW7kTltarF49omy0ZK+/y7ljGEkKH2e1q9r8/N17ZSIjYOb5KB67IRFLjV1xFYV6xyokF6P0PwSZeBQGC07NsMrWRA76A/bImEOKzUJslJ8Wtuq/A2uZerO7cZL6STfGeNsjZj2cjd6TJ1bPydsMjlct2S5dnoIQB05TZ/sIY2lyCNunJSJQcxeu/cwu3ap2afFjs6Qo4ExN7WVxvjoGQKLF8QGQHohqlsXqD58Dk5HWt0pN9hSX6GAx5AAae4FS5bES9xbhHhBHMgE/eBwNmIYgnpzjHUutHcED4fEMMC0K22b949TcTj9HbDZgzxMjJBDzn+lQahZjgzZkEok9horLm+7vwo64zZ9ILcSNv9VWN73jyt8xrXXtNXm+ZGVx0d2oZd3SjFz1z/Bw/mmthZMyAHuGPH/jtuhP+uJ9kyMq6cHmW9DLSgMjrBAEOOCZXb5XVeL632zuAWmtgrM/RLinJlwjQA2UHHtsAUEYHFCGI6gZlC2ZlKZfYgGYvQvLlCpXGVRreXAj+CFdr+lpW1V+T+Mm0GBK2Bx+++iy3MtDoVBEAOoBj0SECUBQB9EMyCsHH7Iv3okxq4sgFQKIiyAlAIiLIDkC+IsgRgFgQtsQfKFkAuEBT8ZQ21+WUNYFgQtKNXcG2e/jdA2QMwgqAN8lylDea73U7pCqxrlfkvuU/4A2voyWecHOp/C76d7/ws9hcAAAAASUVORK5CYII=') + #f5f6f7 no-repeat right 14px center / 16px; + appearance: none; + + [data-prefers-color=dark] & { + color: @c-secondary-dark; + background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABpRJREFUaAXNWWts01UUv+f+264DVEABqY8IjhhCCCGKRoMaE0HACKJxsI3WDwqd67qHEoiPT2qCEpJ1bB1vElpJZYnyMMEgfCCQEUFIDOGDihLiY7yUGAHb9XGP59+t3b3/de2/XYvtl/855557zvndc+6zwAr4tW0KPQQithQRZjEUVcCgChkbw4CFGcMwIPxJZk8zzk5qFkuP1137QwFuTHUBU1qk1N3dXdl7LVKPyGoZ4mNm+w3oneKMb7bbxu5xu1/6N8++WdVzAkBE7usKukCwj5Dh/Vmt5WgEgL8oS2ubG5w7iaakjfyXFUD7lsCDGMMvadQfHbmrQQsA7BjjfFVLg/PHQWlh1LAA2v2BuQLZF1QuE42mB0bvNGOwj3NxinGtN1Exulez3hJwizuYiDsSgs1myF6mDD5F/bnRBmXiBkO+uNXrPDqkLQ9BRgDtnYHlVC4BGnmrbItGLoYMtmoV/JOmlSt+l9uGozdtCkyMxNk7VDFNZM8u65G9CAeobvK4vpLl+dBDAGzsCj6dSOARWk1ssiEa9UNWgEaPx/mzLDdL+/2hB2IYa6OMvKr2gbjG+YtNnhXfqHJznAKgq2v31D6ROEllc4/aHda3NDrfJRBClefP+ToDH1CvDwnIoG+Aqzawz/J4qi/nazFdm7rBvkQ8ZAweOK9v9brWFiN4PbiWRtfHCFA3MI/646V5FsPwZxRDOh6zQLSU4riJVS4KvjHFJ7+cbWj1uNYpsiIwhw7uPbdg0VJ9GX1OMjf129NnL1Lb95IsJ5lMo9/fPSYqIj9R3U9O9aAROtzscS4o1sin7Ka+esZ9/uBeGrQlKRkFc94xqXJ6dXV1IiXL9U2mLMbCLjl4Wh7jjIO3VMHrQSVLSLO2UNB9qSApJdP+uNZXneLNfPtrDmGFrExL3o5ibDKyzUx061s1FwlKl9wGQjTJfC6a+/3BKkrnk7KijVvWy3wpaY1ZNySzMeCEsvD49u3d48365HEhFsrKtLmcbWiouyDLSkl7vTW9NIDfST74zb7wPInPSnLaWWeqGrBP5UvPAfD9shfasZ+X+Ww0zQFUASCcydahJG2Iik+a2FPM+tEn8cOyssawV+ZvB60xbvQ5waxfKiGW3sz6O1mNxszaKljPZuOXDJ2HnIAN7Wm2fxlNs4xZLBpl8H/+GU6t2aLhFK2y6/WJqCNbh1K0RaMifQLotw+mq0DPwC9KUGLwOKHIS8jQEU4BQHcRU3cNPSROJ8OzSmyAcxT+NjAJFMqVlV45fjPrllMKFAA0qdOHK7NGRqoHiItlGwh4Quaz0dxCNy1FAXGmfrFRZCVk6CR8L53snki5oGNFYpTVeiDF5/rygStij6wYFfE1Ml9KOoaR1frRWvJx3O2u1R/GTP2Syyhw2CVrk7036C3oEVlWClq/JxsvUfRatCcfX0kAVmYP0bFW2kzQggmxkUYm2Z6PwXx0YyLmozlXke4DcGHyJPvONG+CSAZIl+mbRKw26M/3dQbXGWRFY8n2e7RcviIb1ICvpdtYVJblouXaY20dgaN0uHtW7kTltarF49omy0ZK+/y7ljGEkKH2e1q9r8/N17ZSIjYOb5KB67IRFLjV1xFYV6xyokF6P0PwSZeBQGC07NsMrWRA76A/bImEOKzUJslJ8Wtuq/A2uZerO7cZL6STfGeNsjZj2cjd6TJ1bPydsMjlct2S5dnoIQB05TZ/sIY2lyCNunJSJQcxeu/cwu3ap2afFjs6Qo4ExN7WVxvjoGQKLF8QGQHohqlsXqD58Dk5HWt0pN9hSX6GAx5AAae4FS5bES9xbhHhBHMgE/eBwNmIYgnpzjHUutHcED4fEMMC0K22b949TcTj9HbDZgzxMjJBDzn+lQahZjgzZkEok9horLm+7vwo64zZ9ILcSNv9VWN73jyt8xrXXtNXm+ZGVx0d2oZd3SjFz1z/Bw/mmthZMyAHuGPH/jtuhP+uJ9kyMq6cHmW9DLSgMjrBAEOOCZXb5XVeL632zuAWmtgrM/RLinJlwjQA2UHHtsAUEYHFCGI6gZlC2ZlKZfYgGYvQvLlCpXGVRreXAj+CFdr+lpW1V+T+Mm0GBK2Bx+++iy3MtDoVBEAOoBj0SECUBQB9EMyCsHH7Iv3okxq4sgFQKIiyAlAIiLIDkC+IsgRgFgQtsQfKFkAuEBT8ZQ21+WUNYFgQtKNXcG2e/jdA2QMwgqAN8lylDea73U7pCqxrlfkvuU/4A2voyWecHOp/C76d7/ws9hcAAAAASUVORK5CYII=') + #ffffff1f no-repeat right 14px center / 16px; + } + + &:focus { + box-shadow: 0 0 0 1px fade(@c-primary, 20%) inset; + } + + &:not(:focus) + ul:not(:hover) { + visibility: hidden; + } + } + + > ul { + list-style: none; + position: absolute; + top: 100%; + left: 0; + z-index: 10; + margin: 8px 0 0; + min-width: 280px; + max-width: 400px; + max-height: 230px; + padding: 6px 0; + background-color: #fff; + border: 1px solid @c-border; + border-radius: 1px; + box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.05); + box-sizing: border-box; + overflow-y: auto; + + [data-prefers-color=dark] & { + border: none; + background-color: @c-bg-dark; + box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.48), 0 6px 16px 0 rgba(0, 0, 0, 0.32), 0 9px 28px 8px rgba(0, 0, 0, 0.2); + } + + &:empty { + display: none; + } + + li { + font-size: 15px; + + a { + display: block; + padding: 6px 20px; + color: @c-secondary; + text-decoration: none; + line-height: 1.5715; + transition: background-color 0.3s; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + + [data-prefers-color=dark] & { + color: @c-secondary-dark; + } + + &:hover { + color: @c-primary; + background-color: @c-light-bg; + + [data-prefers-color=dark] & { + color: @c-primary-dark; + background-color: @c-light-bg-dark; + } + } + } + + span:first-child:not(.@{prefix}-search-highlight) { + position: relative; + display: inline-block; + max-width: 50%; + padding-right: 26px; + vertical-align: bottom; + overflow: hidden; + text-overflow: ellipsis; + opacity: 0.8; + + &::after { + content: '>'; + position: absolute; + top: 50%; + right: 6px; + opacity: 0.6; + transform: translateY(-54%); + } + } + } + } + + &-empty { + margin: 6px 0; + opacity: 0.6; + fill: @c-text; + [data-prefers-color=dark] & { + fill: @c-text-dark; + } + } + + &-highlight { + padding: 2px 0; + color: #736b2d; + vertical-align: bottom; + background: #fff9cb; + + [data-prefers-color=dark] & { + color: @c-text; + } + } + + @media only screen and (max-width: 1024px) { + margin-right: -14px; + + > input:not(:focus) { + color: transparent; + width: 32px; + padding-right: 0; + box-shadow: none; + cursor: pointer; + background-position: right 8px center; + + + ul { + transition: 0.1s visibility; + visibility: hidden; + } + } + } + + @media @mobile { + position: absolute; + top: 9px; + right: 24px; + display: block !important; + + > ul { + right: 0; + left: auto; + } + } +} diff --git a/packages/core/dumi-theme-nocobase/src/components/SearchBar.tsx b/packages/core/dumi-theme-nocobase/src/components/SearchBar.tsx new file mode 100755 index 000000000..be69e1a6e --- /dev/null +++ b/packages/core/dumi-theme-nocobase/src/components/SearchBar.tsx @@ -0,0 +1,68 @@ +import React, { useState, useEffect, useRef } from 'react'; +import { useSearch, AnchorLink } from 'dumi/theme'; +import './SearchBar.less'; + +export const highlight = (key: string, title: string) => { + const index = title.toLowerCase().indexOf(key.toLowerCase()); + const l = key.length; + return ( + <> + {title.substring(0, index)} + {title.substring(index, index + l)} + {title.substring(index + l, title.length)} + + ); +}; + +export default () => { + const [keywords, setKeywords] = useState(''); + const [items, setItems] = useState([]); + const input = useRef(); + const result = useSearch(keywords); + + const emptySvg = ( + + + + ); + + useEffect(() => { + if (Array.isArray(result)) { + setItems(result); + } else if (typeof result === 'function') { + result(`.${input.current.className}`); + } + }, [result]); + + return ( +
+ setKeywords(ev.target.value) } + : {})} + /> +
    + {items.length > 0 && items.map(meta => ( +
  • setKeywords('')}> + + {meta.parent?.title && {meta.parent.title}} + {highlight(keywords, meta.title)} + +
  • + ))} + {items.length === 0 && keywords &&
  • {emptySvg}
  • } +
+
+ ); +}; diff --git a/packages/core/dumi-theme-nocobase/src/components/SideMenu copy.less b/packages/core/dumi-theme-nocobase/src/components/SideMenu copy.less new file mode 100755 index 000000000..8471605bf --- /dev/null +++ b/packages/core/dumi-theme-nocobase/src/components/SideMenu copy.less @@ -0,0 +1,379 @@ +@import (reference) '../style/variables.less'; + +.@{prefix}-menu { + position: fixed; + z-index: 100; + top: 0; + left: 0; + bottom: 0; + width: @s-menu-width; + background-color: #f2f5fa; + box-sizing: border-box; + transition: left 0.3s; + + &[data-hidden] { + display: none; + } + + @media @mobile { + left: -@s-menu-mobile-width; + top: @s-mobile-nav-height; + display: block !important; + width: @s-menu-mobile-width; + background-color: #fff; + + &[data-mobile-show] { + left: 0; + } + + [data-prefers-color=dark] & { + background-color: @c-bg-dark; + } + } + + // shadow + &::after { + content: ''; + position: absolute; + top: 0; + right: 0; + bottom: 0; + display: block; + width: 20px; + background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.03)); + pointer-events: none; + + // use border on mobile devices + @media @mobile { + width: 1px; + background: @c-border; + } + } + + &-header { + position: relative; + padding-top: 40px; + text-align: center; + border-bottom: 1px solid @c-border; + + [data-prefers-color=dark] & { + border-color: @c-border-dark; + } + + @media @mobile { + display: none; + } + + .@{prefix}-menu-logo { + display: inline-block; + width: 66px; + height: 65px; + background: url(@img-logo) no-repeat 0 / contain; + } + + h1 { + margin: 10px 0 0; + color: @c-heading; + font-weight: 500; + line-height: 1.40625; + } + + p { + margin: 0 0 5px; + color: lighten(@c-secondary, 10%); + + // badges + > object[data^='https://img.shields.io'] { + max-height: 20px; + } + + + p { + margin-bottom: 10px; + } + } + } + + &-doc-locale { + padding: 16px 0; + text-align: center; + border-bottom: 1px solid @c-border; + display: flex; + justify-content: space-evenly; + + [data-prefers-color=dark] & { + border-color: @c-border-dark; + } + + [data-mode=doc][data-mobile-show=true] & { + display: grid; + } + + &:empty { + display: none; + } + } + + &-inner { + width: 100%; + height: 100%; + overflow: auto; + overscroll-behavior: contain; + + [data-prefers-color=dark] & { + background-color: #262626; + } + + // common list styles + ul { + list-style: none; + margin: 0; + padding: 0; + font-size: 16px; + + li { + color: @c-text; + a, + > span { + position: relative; + display: block; + padding-right: 24px; + color: @c-heading; + line-height: 2.4; + text-decoration: none; + outline: none; + transition: color 0.3s, background 0.3s; + + [data-prefers-color=dark] & { + color: @c-heading-dark; + } + + span { + display: block; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } + + &:hover, + &.active { + color: @c-primary; + + [data-prefers-color=dark] & { + color: @c-primary-dark; + } + } + + &::before { + content: ''; + position: absolute; + top: 50%; + left: -10px; + margin-top: -2.5px; + display: inline-block; + width: 5px; + height: 5px; + background-color: @c-primary; + border-radius: 50%; + opacity: 0; + transition: transform 0.2s, opacity 0.2s; + transform: scale(0) translateX(-10px); + } + } + + &.active a, + a.active { + &::before { + opacity: 1; + transform: scale(1) translateX(0); + } + } + + // level larger, offset larger, font size smaller + ul { + font-size: 0.9em; + padding-left: 1em; + } + } + } + + // 1-level list styles + > ul { + > li > a { + line-height: 2.875; + + &:not([href]) { + padding-top: 24px; + line-height: 1; + font-weight: 500; + color: @c-heading !important; + background: transparent !important; + cursor: default; + + [data-prefers-color=dark] & { + color: @c-heading-dark !important; + } + } + } + + > li:first-child > a:not([href]) { + padding-top: 0; + } + } + + // n-level list styles + > ul ul { + a { + color: @c-secondary; + [data-prefers-color=dark] & { + color: @c-secondary-dark; + } + &.active { + color: @c-primary; + [data-prefers-color=dark] & { + color: @c-primary-dark; + } + } + } + } + + .@{prefix}-menu-mobile-area { + display: none; + padding-bottom: 16px; + margin-bottom: 16px; + text-align: center; + border-bottom: 1px solid @c-border; + + [data-prefers-color=dark] & { + border-color: @c-border-dark; + } + + @media @mobile { + display: block; + } + } + + // mobile nav list + .@{prefix}-menu-nav-list { + padding: 16px 0 0 0; + + > li, + > li > a { + padding-right: 0; + line-height: 2.4; + + ul { + padding-left: 0; + + a { + padding-right: 0; + font-size: 90%; + } + } + } + } + + // menu list + .@{prefix}-menu-list { + padding: 8px 0; + margin-bottom: 40px; + + > li > a { + @c-active-bg: #e8ecf4; + + padding-left: 28px; + + &.active { + background: linear-gradient(to left, #e8ecf4, rgba(232, 236, 244, 0)); + + [data-prefers-color=dark] & { + background: linear-gradient(to left, #3d3d3e, rgba(255, 255, 255, 0.06)); + } + } + + ~ ul { + margin-top: 8px; + margin-left: 28px; + } + + @media @mobile { + padding-left: 16px; + + ~ ul { + margin-left: 16px; + } + } + } + } + } + + &[data-mode='site'] { + &::after { + width: 1px; + background: @c-border; + + [data-prefers-color=dark] & { + background: @c-border-dark; + } + } + + .@{prefix}-menu-list { + padding: 0; + + > li > a { + position: relative; + + &::after { + content: ''; + position: absolute; + top: 0; + bottom: 0; + right: 0; + display: block; + width: 3px; + background-color: @c-primary; + visibility: hidden; + opacity: 0; + transition: all 0.3s; + border-radius: 1px; + } + + &.active { + z-index: 1; + background: linear-gradient(to left, #f8faff, rgba(248, 250, 255, 0)); + + [data-prefers-color=dark] & { + background: linear-gradient(to left, #3d3d3e, rgba(255, 255, 255, 0.06)); + } + &::after { + opacity: 1; + visibility: visible; + } + } + } + } + + @media @desktop { + top: @s-nav-height; + width: @s-site-menu-width; + padding-top: 50px; + background: transparent; + + [data-prefers-color=dark] & { + background: @c-light-bg-dark; + } + + .@{prefix}-menu-nav, + .@{prefix}-menu-header { + display: none; + } + + .@{prefix}-menu-list > li > a { + padding-left: 58px; + + ~ ul { + margin-left: 58px; + } + } + } + } +} diff --git a/packages/core/dumi-theme-nocobase/src/components/SideMenu copy.tsx b/packages/core/dumi-theme-nocobase/src/components/SideMenu copy.tsx new file mode 100755 index 000000000..bb819b888 --- /dev/null +++ b/packages/core/dumi-theme-nocobase/src/components/SideMenu copy.tsx @@ -0,0 +1,148 @@ +import { context, Link, NavLink } from 'dumi/theme'; +import type { FC } from 'react'; +import React, { useContext } from 'react'; +import LocaleSelect from './LocaleSelect'; +import './SideMenu.less'; +import SlugList from './SlugList'; + +interface INavbarProps { + mobileMenuCollapsed: boolean; + location: any; + darkPrefix?: React.ReactNode; +} + +const SideMenu: FC = ({ mobileMenuCollapsed, location, darkPrefix }) => { + const { + config: { + logo, + title, + description, + mode, + repository: { url: repoUrl }, + }, + menu, + nav: navItems, + base, + meta, + } = useContext(context); + const isHiddenMenus = + Boolean((meta.hero || meta.features || meta.gapless) && mode === 'site') || + meta.sidemenu === false || + undefined; + + return ( +
+
+
+ +

{title}

+

{description}

+ {/* github star badge */} + {/github\.com/.test(repoUrl) && mode === 'doc' && ( +

+ +

+ )} + + {/* mobile nav list */} + +
+ {!!navItems.length && ( +
    + {navItems.map(nav => { + const child = Boolean(nav.children?.length) && ( +
      + {nav.children.map(item => ( +
    • + {item.title} +
    • + ))} +
    + ); + + return ( +
  • + {nav.path ? {nav.title} : nav.title} + {child} +
  • + ); + })} +
+ )} + {/* site mode locale select */} + + {darkPrefix} +
+ {/* menu list */} +
    + {!isHiddenMenus && + menu.map(item => { + // always use meta from routes to reduce menu data size + const hasSlugs = Boolean(meta.slugs?.length); + const hasChildren = item.children && Boolean(item.children.length); + const show1LevelSlugs = + meta.toc === 'menu' && !hasChildren && hasSlugs && item.path === location.pathname.replace(/([^^])\/$/, '$1'); + const menuPaths = hasChildren + ? item.children.map(i => i.path) + : [ + item.path, + // handle menu group which has no index route and no valid children + location.pathname.startsWith(`${item.path}/`) && meta.title === item.title + ? location.pathname + : null, + ]; + + return ( +
  • + menuPaths.includes(location.pathname)} + > + {item.title} + + {/* group children */} + {Boolean(item.children && item.children.length) && ( +
      + {item.children.map(child => ( +
    • + + {child.title} + + {/* group children slugs */} + {Boolean( + meta.toc === 'menu' && + typeof window !== 'undefined' && + child.path === location.pathname && + hasSlugs, + ) && } +
    • + ))} +
    + )} + {/* group slugs */} + {show1LevelSlugs && } +
  • + ); + })} +
+ + + ); +}; + +export default SideMenu; diff --git a/packages/core/dumi-theme-nocobase/src/components/SideMenu.less b/packages/core/dumi-theme-nocobase/src/components/SideMenu.less new file mode 100755 index 000000000..6ea3fb281 --- /dev/null +++ b/packages/core/dumi-theme-nocobase/src/components/SideMenu.less @@ -0,0 +1,404 @@ +@import (reference) '../style/variables.less'; + +.@{prefix}-menu { + position: fixed; + z-index: 100; + top: 0; + left: 0; + bottom: 0; + width: @s-menu-width; + background-color: #f2f5fa; + box-sizing: border-box; + transition: left 0.3s; + + &[data-hidden] { + display: none; + } + + @media @mobile { + left: -@s-menu-mobile-width; + top: @s-mobile-nav-height; + display: block !important; + width: @s-menu-mobile-width; + background-color: #fff; + + &[data-mobile-show] { + left: 0; + } + + [data-prefers-color=dark] & { + background-color: @c-bg-dark; + } + } + + // shadow + &::after { + content: ''; + position: absolute; + top: 0; + right: 0; + bottom: 0; + display: block; + width: 20px; + background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.03)); + pointer-events: none; + + // use border on mobile devices + @media @mobile { + width: 1px; + background: @c-border; + } + } + + &-header { + position: relative; + padding-top: 40px; + text-align: center; + border-bottom: 1px solid @c-border; + + [data-prefers-color=dark] & { + border-color: @c-border-dark; + } + + @media @mobile { + display: none; + } + + .@{prefix}-menu-logo { + display: inline-block; + width: 66px; + height: 65px; + background: url(@img-logo) no-repeat 0 / contain; + } + + h1 { + margin: 10px 0 0; + color: @c-heading; + font-weight: 500; + line-height: 1.40625; + } + + p { + margin: 0 0 5px; + color: lighten(@c-secondary, 10%); + + // badges + >object[data^='https://img.shields.io'] { + max-height: 20px; + } + + +p { + margin-bottom: 10px; + } + } + } + + &-doc-locale { + padding: 16px 0; + text-align: center; + border-bottom: 1px solid @c-border; + display: flex; + justify-content: space-evenly; + + [data-prefers-color=dark] & { + border-color: @c-border-dark; + } + + [data-mode=doc][data-mobile-show=true] & { + display: grid; + } + + &:empty { + display: none; + } + } + + &-inner { + width: 100%; + height: 100%; + overflow: hidden; + overscroll-behavior: contain; + + [data-prefers-color=dark] & { + background-color: #262626; + } + + &:hover { + overflow: auto; + } + + .ant-menu-item-group-title { + padding-left: 24px; + margin-top: 16px; + margin-bottom: 16px; + font-size: 13px; + + &::after { + position: relative; + top: 12px; + display: block; + width: calc(100% - 20px); + height: 1px; + background: rgba(0, 0, 0, .06); + content: ""; + } + } + + // common list styles + // ul { + // list-style: none; + // margin: 0; + // padding: 0; + // font-size: 16px; + + // li { + // color: @c-text; + // a, + // > span { + // position: relative; + // display: block; + // padding-right: 24px; + // color: @c-heading; + // line-height: 2.4; + // text-decoration: none; + // outline: none; + // transition: color 0.3s, background 0.3s; + + // [data-prefers-color=dark] & { + // color: @c-heading-dark; + // } + + // span { + // display: block; + // overflow: hidden; + // white-space: nowrap; + // text-overflow: ellipsis; + // } + + // &:hover, + // &.active { + // color: @c-primary; + + // [data-prefers-color=dark] & { + // color: @c-primary-dark; + // } + // } + + // &::before { + // content: ''; + // position: absolute; + // top: 50%; + // left: -10px; + // margin-top: -2.5px; + // display: inline-block; + // width: 5px; + // height: 5px; + // background-color: @c-primary; + // border-radius: 50%; + // opacity: 0; + // transition: transform 0.2s, opacity 0.2s; + // transform: scale(0) translateX(-10px); + // } + // } + + // &.active a, + // a.active { + // &::before { + // opacity: 1; + // transform: scale(1) translateX(0); + // } + // } + + // // level larger, offset larger, font size smaller + // ul { + // font-size: 0.9em; + // padding-left: 1em; + // } + // } + // } + + // // 1-level list styles + // > ul { + // > li > a { + // line-height: 2.875; + + // &:not([href]) { + // padding-top: 24px; + // line-height: 1; + // font-weight: 500; + // color: @c-heading !important; + // background: transparent !important; + // cursor: default; + + // [data-prefers-color=dark] & { + // color: @c-heading-dark !important; + // } + // } + // } + + // > li:first-child > a:not([href]) { + // padding-top: 0; + // } + // } + + // // n-level list styles + // > ul ul { + // a { + // color: @c-secondary; + // [data-prefers-color=dark] & { + // color: @c-secondary-dark; + // } + // &.active { + // color: @c-primary; + // [data-prefers-color=dark] & { + // color: @c-primary-dark; + // } + // } + // } + // } + + .@{prefix}-menu-mobile-area { + display: none; + padding-bottom: 16px; + margin-bottom: 16px; + text-align: center; + border-bottom: 1px solid @c-border; + + [data-prefers-color=dark] & { + border-color: @c-border-dark; + } + + @media @mobile { + display: block; + } + } + + // mobile nav list + .@{prefix}-menu-nav-list { + padding: 16px 0 0 0; + + >li, + >li>a { + padding-right: 0; + line-height: 2.4; + + ul { + padding-left: 0; + + a { + padding-right: 0; + font-size: 90%; + } + } + } + } + + // menu list + .@{prefix}-menu-list { + padding: 8px 0; + margin-bottom: 40px; + + >li>a { + @c-active-bg: #e8ecf4; + + padding-left: 28px; + + &.active { + background: linear-gradient(to left, #e8ecf4, rgba(232, 236, 244, 0)); + + [data-prefers-color=dark] & { + background: linear-gradient(to left, #3d3d3e, rgba(255, 255, 255, 0.06)); + } + } + + ~ul { + margin-top: 8px; + margin-left: 28px; + } + + @media @mobile { + padding-left: 16px; + + ~ul { + margin-left: 16px; + } + } + } + } + } + + &[data-mode='site'] { + &::after { + width: 1px; + background: @c-border; + + [data-prefers-color=dark] & { + background: @c-border-dark; + } + } + + .@{prefix}-menu-list { + padding: 0; + + >li>a { + position: relative; + + &::after { + content: ''; + position: absolute; + top: 0; + bottom: 0; + right: 0; + display: block; + width: 3px; + background-color: @c-primary; + visibility: hidden; + opacity: 0; + transition: all 0.3s; + border-radius: 1px; + } + + &.active { + z-index: 1; + background: linear-gradient(to left, #f8faff, rgba(248, 250, 255, 0)); + + [data-prefers-color=dark] & { + background: linear-gradient(to left, #3d3d3e, rgba(255, 255, 255, 0.06)); + } + + &::after { + opacity: 1; + visibility: visible; + } + } + } + } + + @media @desktop { + top: @s-nav-height; + width: @s-site-menu-width; + background: transparent; + + [data-prefers-color=dark] & { + background: @c-light-bg-dark; + } + + .@{prefix}-menu-inner { + padding: 25px 0 50px; + } + + .@{prefix}-menu-nav, + .@{prefix}-menu-header { + display: none; + } + + .@{prefix}-menu-list>li>a { + padding-left: 58px; + + ~ul { + margin-left: 58px; + } + } + } + } +} \ No newline at end of file diff --git a/packages/core/dumi-theme-nocobase/src/components/SideMenu.tsx b/packages/core/dumi-theme-nocobase/src/components/SideMenu.tsx new file mode 100755 index 000000000..232c16bee --- /dev/null +++ b/packages/core/dumi-theme-nocobase/src/components/SideMenu.tsx @@ -0,0 +1,138 @@ +import { Menu } from 'antd'; +import 'antd/dist/antd.css'; +import { context, Link, NavLink } from 'dumi/theme'; +import type { FC } from 'react'; +import React, { useContext } from 'react'; +import LocaleSelect from './LocaleSelect'; +import './SideMenu.less'; + +interface INavbarProps { + mobileMenuCollapsed: boolean; + location: any; + darkPrefix?: React.ReactNode; + theme?: 'dark' | 'light'; +} + +const SideMenu: FC = ({ theme, mobileMenuCollapsed, location, darkPrefix }) => { + const { + config: { + logo, + title, + description, + mode, + repository: { url: repoUrl }, + }, + menu, + nav: navItems, + base, + meta, + } = useContext(context); + const isHiddenMenus = + Boolean((meta.hero || meta.features || meta.gapless) && mode === 'site') || meta.sidemenu === false || undefined; + const renderMenuItems = (items) => { + return items?.map?.((item) => { + if (item.type === 'group') { + return ( + + {renderMenuItems(item.children)} + + ); + } + if (item.type === 'subMenu') { + return ( + + {renderMenuItems(item.children)} + + ); + } + return ( + + {item.title} + + ); + }); + }; + const getSelectedKeys = (items = []) => { + for (const item of items) { + if (item.path === location.pathname) { + return [item.path]; + } else if (item.children) { + const selectKeys = getSelectedKeys(item.children); + if (selectKeys.length) { + return [...selectKeys, item.title]; + } + } + } + return []; + } + const selectKeys = getSelectedKeys(menu); + const openKeys = selectKeys; + return ( +
+
+
+ +

{title}

+

{description}

+ {/* github star badge */} + {/github\.com/.test(repoUrl) && mode === 'doc' && ( +

+ +

+ )} + + {/* mobile nav list */} + +
+ {!!navItems.length && ( +
    + {navItems.map((nav) => { + const child = Boolean(nav.children?.length) && ( +
      + {nav.children.map((item) => ( +
    • + {item.title} +
    • + ))} +
    + ); + + return ( +
  • + {nav.path ? {nav.title} : nav.title} + {child} +
  • + ); + })} +
+ )} + {/* site mode locale select */} + + {darkPrefix} +
+ {/* menu list */} +
+ + {renderMenuItems(menu)} + +
+ + + ); +}; + +export default SideMenu; diff --git a/packages/core/dumi-theme-nocobase/src/components/SlugList.less b/packages/core/dumi-theme-nocobase/src/components/SlugList.less new file mode 100755 index 000000000..3bcebf847 --- /dev/null +++ b/packages/core/dumi-theme-nocobase/src/components/SlugList.less @@ -0,0 +1,18 @@ +@import (reference) '../style/variables.less'; + +ul[role='slug-list'] { + &:empty { + margin: 0 !important; + padding: 0 !important; + } + + li { + > a.active { + color: darken(@c-primary, 2%); + } + + &[data-depth='3'] { + padding-left: 12px; + } + } +} diff --git a/packages/core/dumi-theme-nocobase/src/components/SlugList.tsx b/packages/core/dumi-theme-nocobase/src/components/SlugList.tsx new file mode 100755 index 000000000..6323b1cf9 --- /dev/null +++ b/packages/core/dumi-theme-nocobase/src/components/SlugList.tsx @@ -0,0 +1,20 @@ +import type { FC } from 'react'; +import React from 'react'; +import { AnchorLink } from 'dumi/theme'; +import './SlugList.less'; + +const SlugsList: FC<{ slugs: any; className?: string }> = ({ slugs, ...props }) => ( +
    + {slugs + .filter(({ depth }) => depth > 1 && depth < 4) + .map(slug => ( +
  • + + {slug.value} + +
  • + ))} +
+); + +export default SlugsList; diff --git a/packages/core/dumi-theme-nocobase/src/layout.tsx b/packages/core/dumi-theme-nocobase/src/layout.tsx new file mode 100755 index 000000000..04e67a62c --- /dev/null +++ b/packages/core/dumi-theme-nocobase/src/layout.tsx @@ -0,0 +1,143 @@ +import type { IRouteComponentProps } from '@umijs/types'; +import { context, Link } from 'dumi/theme'; +import React, { useContext, useState } from 'react'; +import Dark from './components/Dark'; +import Navbar from './components/Navbar'; +import SearchBar from './components/SearchBar'; +import SideMenu from './components/SideMenu'; +import SlugList from './components/SlugList'; +import './style/layout.less'; + +const Hero = hero => ( + <> +
+ {hero.image && } +

{hero.title}

+
+ {hero.actions && + hero.actions.map(action => ( + + + + ))} +
+ +); + +const Features = features => ( +
+ {features.map(feat => ( +
+ {feat.link ? ( + +
{feat.title}
+ + ) : ( +
{feat.title}
+ )} +
+
+ ))} +
+); + +const Layout: React.FC = ({ children, location }) => { + const { + config: { mode, repository }, + nav: navItems, + meta, + locale, + } = useContext(context); + console.log(useContext(context)); + const { url: repoUrl, branch, platform } = repository; + const [menuCollapsed, setMenuCollapsed] = useState(true); + const [darkSwitch, setDarkSwitch] = useState(false); + const isSiteMode = mode === 'site'; + const showHero = isSiteMode && meta.hero; + const showFeatures = isSiteMode && meta.features; + const showSideMenu = meta.sidemenu !== false && !showHero && !showFeatures && !meta.gapless; + const showSlugs = + !showHero && + !showFeatures && + Boolean(meta.slugs?.length) && + (meta.toc === 'content' || meta.toc === undefined) && + !meta.gapless; + const isCN = /^zh|cn$/i.test(locale); + const updatedTimeIns = new Date(meta.updatedTime); + const updatedTime: any = `${updatedTimeIns.toLocaleDateString([], { hour12: false })} ${updatedTimeIns.toLocaleTimeString([], { hour12: false })}`; + const repoPlatform = + { github: 'GitHub', gitlab: 'GitLab' }[ + (repoUrl || '').match(/(github|gitlab)/)?.[1] || 'nothing' + ] || platform; + + return ( +
{ + setDarkSwitch(false); + if (menuCollapsed) return; + setMenuCollapsed(true); + }} + > + } + darkPrefix={ + { + setDarkSwitch(val => !val); + ev.stopPropagation(); + }} + isSideMenu={false} + /> + } + onMobileMenuClick={ev => { + setMenuCollapsed(val => !val); + ev.stopPropagation(); + }} + /> + + } + mobileMenuCollapsed={menuCollapsed} + location={location} + /> + {showSlugs && } + {showHero && Hero(meta.hero)} + {showFeatures && Features(meta.features)} +
+ {children} + {!showHero && !showFeatures && meta.filePath && !meta.gapless && ( +
+ {repoPlatform && ( + + {isCN ? `在 ${repoPlatform} 上编辑此页` : `Edit this doc on ${repoPlatform}`} + + )} + {updatedTime} +
+ )} + {(showHero || showFeatures) && meta.footer && ( +
+ )} +
+
+ ); +}; + +export default Layout; diff --git a/packages/core/dumi-theme-nocobase/src/style/layout.less b/packages/core/dumi-theme-nocobase/src/style/layout.less new file mode 100755 index 000000000..f145eecf2 --- /dev/null +++ b/packages/core/dumi-theme-nocobase/src/style/layout.less @@ -0,0 +1,398 @@ +@import './markdown.less'; +@import './variables.less'; + +@s-toc-width: 136px; + +body { + margin: 0; + font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, + Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, + Segoe UI Symbol; + font-variant: tabular-nums; + font-feature-settings: 'tnum'; + transition: background 0.2s cubic-bezier(0.075,0.82,0.165,1), color 0.2s cubic-bezier(0.075,0.82,0.165,1); + -webkit-font-smoothing: antialiased; + [data-prefers-color=dark] & { + color: @c-text-dark; + background-color: @c-bg-dark; + } +} + +.@{prefix}-layout { + box-sizing: border-box; + min-height: 100vh; + padding: 16px (@s-content-margin + @s-toc-width) 50px @s-menu-width + @s-content-margin; + + @media @mobile { + padding-top: 66px !important; + padding-left: 16px !important; + padding-right: 16px !important; + } + + &[data-gapless='true'] { + padding-top: @s-nav-height !important; + padding-right: 0 !important; + padding-left: 0 !important; + padding-bottom: 0; + + @media @mobile { + padding-top: @s-mobile-nav-height !important; + } + } + + &[data-show-sidemenu='false'] { + padding-left: @s-content-margin; + } + + &[data-show-slugs='false'] { + padding-right: @s-content-margin; + } + + &[data-site-mode='true'] { + padding-top: @s-nav-height + 40px; + + &[data-show-sidemenu='true'] { + padding-left: @s-site-menu-width + 50px; + } + + &[data-show-slugs='true'] { + padding-right: @s-content-margin + @s-toc-width + 14; + } + + .@{prefix}-layout-content > .markdown:first-child > *:first-child { + margin-top: 0; + } + + .@{prefix}-layout-toc { + top: 114px; + max-height: calc(90vh - 144px); + } + } + + &-hero { + margin: -50px -58px 0; + padding: 100px 0; + text-align: center; + background-color: #f5f6f8; + + [data-prefers-color=dark] & { + background-color: @c-light-bg-dark; + } + + @media @mobile { + margin: -16px -16px 0; + padding: 48px 0; + } + + img { + max-width: 100%; + max-height: 200px; + margin-bottom: 1rem; + } + + h1 { + margin: 0 0 16px; + font-size: 48px; + font-weight: 600; + line-height: 56px; + color: #080e29; + + [data-prefers-color=dark] & { + color: @c-heading-dark; + } + + + div { + margin: 16px 0 32px; + opacity: 0.78; + + .markdown { + font-size: 16px; + } + } + } + + button { + margin-right: 16px; + padding: 0 32px; + height: 44px; + color: @c-primary; + font-size: 16px; + background: transparent; + border: 1px solid @c-primary; + border-radius: 22px; + box-sizing: border-box; + cursor: pointer; + outline: none; + transition: all 0.3s; + + &:hover { + opacity: 0.8; + } + + &:active { + opacity: 0.9; + } + } + + a:last-child button { + margin-right: 0; + color: #fff; + background: @c-primary; + } + } + + &-features { + display: grid; + grid-template-columns: repeat(3, 1fr); + grid-column-gap: 96px; + grid-row-gap: 56px; + padding: 72px 0; + + > dl { + flex: 1; + margin: 0; + text-align: center; + background: no-repeat center top / auto 48px; + + &[style*='background-image'] { + padding-top: 64px; + } + + dt { + margin-bottom: 12px; + font-size: 20px; + line-height: 1; + color: @c-heading; + [data-prefers-color=dark] & { + color: @c-text-dark; + } + } + + a { + transition-duration: none; + } + + a dt { + color: @c-link; + transition: opacity 0.2s; + &:hover { + opacity: 0.7; + text-decoration: underline; + } + + &:active { + opacity: 0.9; + } + } + + dd { + margin: 0; + + .markdown { + color: @c-secondary; + font-size: 14px; + line-height: 22px; + + [data-prefers-color=dark] & { + color: @c-secondary-dark; + } + + > p:first-child { + margin-top: 0; + } + + > p:last-child { + margin-bottom: 0; + } + } + } + } + + @media @mobile { + display: block; + padding: 40px 0; + + > dl { + text-align: left; + background-position: left top; + + &[style*='background-image'] { + padding: 0 0 0 60px; + } + + + dl { + margin-top: 32px; + } + } + } + } + + &-features, + &-features + &-content, + &-hero + &-content { + margin-left: auto; + margin-right: auto; + max-width: 960px; + } + + &-hero + &-content { + margin-top: 60px; + } + + &-toc { + list-style: none; + position: fixed; + z-index: 10; + top: 50px; + right: 0; + width: @s-toc-width; + max-height: calc(90vh - 80px); + margin: 0; + padding: 0 24px 0 0; + background-color: #fff; + box-sizing: content-box; + overflow: auto; + + [data-prefers-color=dark] & { + background-color: @c-bg-dark; + } + + @media @mobile { + display: none; + } + + li { + position: relative; + margin: 0; + padding: 4px 0 4px 6px; + text-indent: 12px; + font-size: 13px; + line-height: 1.40625; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + + a { + color: @c-text; + text-decoration: none; + + [data-prefers-color=dark] & { + color: @c-text-dark; + } + + &::before { + content: ''; + position: absolute; + top: 0; + left: 0; + bottom: 0; + display: inline-block; + width: 2px; + background: @c-border; + } + + &:hover { + color: lighten(@c-primary, 5%); + + [data-prefers-color=dark] & { + color: lighten(@c-primary-dark, 5%); + } + } + + &:active { + color: lighten(@c-primary, 3%); + + [data-prefers-color=dark] & { + color: lighten(@c-primary-dark, 3%); + } + } + + &.active { + color: @c-primary; + + [data-prefers-color=dark] & { + color: @c-primary-dark; + } + + &::before { + background: @c-primary; + + [data-prefers-color=dark] & { + background: @c-primary-dark; + } + } + } + } + } + } + + &-footer-meta { + margin-top: 40px; + padding-top: 24px; + display: flex; + color: @c-secondary; + font-size: 14px; + justify-content: space-between; + border-top: 1px solid @c-border; + + [data-prefers-color=dark] & { + color: @c-secondary-dark; + border-color: @c-border-dark; + } + + @media only screen and (max-width: 960px) { + display: block; + } + + > a { + margin-bottom: 4px; + display: block; + color: @c-primary; + transition: opacity 0.2s; + text-decoration: none; + + [data-prefers-color=dark] & { + color: @c-primary-dark; + } + + &:hover { + opacity: 0.7; + text-decoration: underline; + } + + &:active { + opacity: 0.9; + } + } + + > span:last-child { + &::before { + content: attr(data-updated-text); + color: @c-primary; + + [data-prefers-color=dark] & { + color: @c-primary-dark; + } + } + } + } +} + +.__dumi-default-layout-footer { + margin: 72px 0 -32px; + padding-top: 24px; + border-top: 1px solid @c-border; + text-align: center; + + [data-prefers-color=dark] & { + border-color: @c-border-dark; + } + + .markdown { + color: #b0b1ba; + + [data-prefers-color=dark] & { + color: rgba(255,255,255,0.45); + } + } +} diff --git a/packages/core/dumi-theme-nocobase/src/style/markdown.less b/packages/core/dumi-theme-nocobase/src/style/markdown.less new file mode 100755 index 000000000..2445a2d60 --- /dev/null +++ b/packages/core/dumi-theme-nocobase/src/style/markdown.less @@ -0,0 +1,240 @@ +@import (reference) './variables.less'; + +.markdown { + color: @c-text; + font-size: 15px; + line-height: 1.60625; + + [data-prefers-color=dark] & { + color: @c-secondary-dark; + } + + &:not(:first-child):empty { + min-height: 32px; + } + + // titles + h1, + h2, + h3, + h4, + h5, + h6 { + margin: 42px 0 18px; + color: @c-heading; + font-weight: 500; + line-height: 1.40625; + + [data-prefers-color=dark] & { + color: @c-heading-dark; + } + + // anchor link + &:hover > a[aria-hidden] { + float: left; + margin-top: 0.06em; + margin-left: -20px; + width: 20px; + padding-right: 4px; + line-height: 1; + box-sizing: border-box; + + @media @mobile { + width: 14px; + margin-left: -14px; + } + + &::after { + content: '#'; + display: inline-block; + vertical-align: middle; + font-size: 20px; + } + + span { + display: none; + } + } + + + h1, + + h2, + + h3, + + h4, + + h5, + + h6 { + margin-top: 16px; + } + } + + h1 { + margin-top: 48px; + margin-bottom: 32px; + font-size: 32px; + } + + h2 { + font-size: 24px; + } + + h3 { + font-size: 20px; + } + + h4 { + font-size: 18px; + } + + h5 { + font-size: 16px; + } + + h6 { + font-size: 14px; + } + + // paragraph + p { + margin: 16px 0; + } + + // inline code + *:not(pre) code { + padding: 2px 5px; + color: #d56161; + background: darken(@c-light-bg, 1%); + + [data-prefers-color=dark] & { + color: #ff7875; + background: @c-light-bg-dark; + } + } + + code { + font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; + } + + // code block + pre { + font-size: 14px; + background: darken(@c-light-bg, 1%); + + &:not([class^='language-']) { + padding: 1em; + } + } + + // horizontal line + hr { + margin: 16px 0; + border: 0; + border-top: 1px solid @c-border; + } + + // blockquote + blockquote { + margin: 16px 0; + padding: 0 24px; + color: fadeout(@c-text, 30%); + border-left: 4px solid @c-border; + overflow: hidden; + + [data-prefers-color=dark] & { + color: fadeout(@c-text-dark, 30%); + border-color: @c-border-dark; + } + } + + // list + ul, + ol { + margin: 8px 0 8px 32px; + padding: 0; + + li { + margin-bottom: 4px; + } + } + + // table + table { + width: 100%; + border-collapse: collapse; + border: 1px solid @c-border; + + [data-prefers-color=dark] & { + border: 1px solid #3b434b; + } + + th, + td { + padding: 10px 24px; + border: 1px solid @c-border; + + [data-prefers-color=dark] & { + border: 1px solid #3b434b; + } + } + + th { + font-weight: 600; + background: @c-light-bg; + + [data-prefers-color=dark] & { + background: @c-light-bg-dark; + } + } + + td:first-child { + font-weight: 500; + } + + a { + svg { + display: none; + } + } + } + + // links + a { + color: @c-link; + text-decoration: none; + transition: opacity 0.2s; + outline: none; + + [data-prefers-color=dark] & { + color: @c-primary-dark; + } + + &:hover { + opacity: 0.7; + text-decoration: underline; + } + + &:active { + opacity: 0.9; + } + } + + // images + img { + max-width: 1000px; + } +} + +.@{prefix} { + &-external-link-icon { + vertical-align: -0.155em; + margin-left: 2px; + } +} + +// For demo +[data-prefers-color=dark] { + h1, + h2, + h3, + h4 { + color: @c-heading-dark; + } +} diff --git a/packages/core/dumi-theme-nocobase/src/style/variables.less b/packages/core/dumi-theme-nocobase/src/style/variables.less new file mode 100755 index 000000000..42e2988ab --- /dev/null +++ b/packages/core/dumi-theme-nocobase/src/style/variables.less @@ -0,0 +1,37 @@ +/* 颜色表 */ +@c-primary: #4569d4; +@c-heading: #454d64; +@c-text: #454d64; +@c-secondary: #717484; +@c-link: @c-primary; +@c-border: #ebedf1; +@c-btn-border: #dadadf; +@c-light-bg: #f9fafb; + +/* 尺寸表 */ +@s-nav-height: 64px; +@s-mobile-nav-height: 50px; +@s-menu-width: 260px; +@s-site-menu-width: 300px; +@s-menu-mobile-width: 240px; +@s-content-margin: 58px; + +@img-logo: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACCCAMAAACww5CIAAACf1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8YkP8AAAACCxMamv/6+voaGhoXi/YYjv8aoP8cq/8dr/8bo/8cqP8bpv8Ykv8drv8BAwUcrP8Zlf8Xjf/s7OzLy8scp/8anP8ZmP/d3d0BBArg4ODT09O7u7sEGCsKCgoanf8YlP/8/Pz09PTIyMgMTIV1dXUGKEVEREQ0NDQODg4GBgYdsv8dsf8Zl//m5uYVgOXj4+MWgtfW1tYTc87BwcERbLWzs7Ovr6+np6cQX6OgoKCTk5MMSXlwcHBra2tiYmIVFRUetf/39/fp6ekWhOkXi+QVfNvY2NjPz88TdcUSb7u6urq3t7cPYK0NUJGQkJCLi4ttbW0JO2cINFtVVVVRUVEHMFEHLEs6OjoEHDEiIiIcHBwXj/vx8fEWh+4Sb8gRbL+rq6upqakOVZiWlpaJiYmGhoYMSIF9fX15eXkKPnQLRHJMTExHR0c9PT0FHzkqKiomJiYEFyUBBw8bovfu7u4Wht4UedsUeMrFxcW9vb0RZrOkpKSampoPXZqAgIALQmtlZWUJOGJZWVkIMFcFIUExMTEwMDAtLS0DEh8Zl/v4+PgXj/QWhvEWhvAYku8YjuwUfNcUfNAVfc0RaLkSaKsRZ6kPWqENUYlbW1sCEBhkSPCkAAAAOHRSTlMA87y4BeKrltbFnUDo0MCup6D67t7ayZKGemtmWS8rEwLNso1wVEpFGaR+UDUlHwmBYls5i1oN/DMym4YAAAfTSURBVHjaxNndS1NxHMfxX5s6t1Kz1KzsuazMnqjgyxv03ovtQrYxUBEfLkREVBQf0AsFBRUUQvEiSVFQ0YsuiiIiqKC/oH+o31lzjtPZg55zttfVNnbx5ffw+X53pmx5UFl2+XLZ4zpVOPWlJFTntYyiBwF/VbX39Sv9upYU9/QHjbXe6qqayrrnylXXi0kov3GVuFiMuNqbHhIu3FcuuohZZ+jDh7mdXkwqlGtKMGmOSFzrGiYe5ZL4+vdsd/SHFyYxtIQlIdiD4ftCa39osTlxRtzwHO1tUOLm0XYk6T3asMRtdKHdUs6qv+L1l/vKgak2SYjqN+1yYg2G5NgR4Pd5/F7fk9sO3YhSkoYkaW40KCk2Rj9KUoikqmtOn8YpydE6J7xFyq5yUhxIjvZJcUfZ5EOb6oxGQmPdtEQlR4Mxupc6IoOdzWiVypabaF1BiesIS876OiSufRXtvO0DcSi2dAN+ZcclYFZsCaOps3nYUOKprDTiSWzqAioCnpIX9ep03pxkw7jYtMWx0pdn7Jb2i1jixN3cM6OGFCti0zgpyopOsw6xiZHoyHIPLIhNHdD7bWR+c7znFD3+PNp+vxhmRkNi28BoWAzBPbQHKhdlQLe4ogsoVTl4ijYjrmiKATdUdvfjh9Ely8DVHFvWe3HJMBBQ2QWAd+KSeeBxjtuxKC7ZzG07Ht0DusQlfwDfs2wZ4b2EYVBcESHO81BlcIWESXHFV7Qss5aXY1FxRSj7L7QAhv3tsaVBMVn8Ou1MFUtjW3sYKjL0jO6QWJiA7iZxysBbtDplpRT4KZbQWkUbHRMnGFUUKwuNaH1iaRJ+Tf8bDbqcWJH2HuCV+l9DpkuxtdsuGlpYHNAJ1FqNMjnE9QocOXJCPwJ309zPT9la8e5yUJwwC/jTBNWQ5EkIqEyzHROSJzvWSeFDW5M8OUArsdgMq2EmanOyGB4WSyMYAhZp2TwkJouw2mZvmusUSwtraA//m7DXZ8SsBxiQM5tGSxNuv3+ZU/NmIpfN9qDXxp1sO4LDNrE202J6cHE1TVq2f1uNiA39K9/7JJ0JwGe6nvOSZ4OA1/R0bFbyrBWoMUX2nOTZAOA3pcSXjFW7UOJnU17VAYeZv98pTvsB1KsTRVXAtqQVA/rFWSNo11SKiuRYZeknEBRn7WJ4rZKuX8pcROvBj6g4rLUZQ8NJYBo2Jb/ax2KkhKYf6I1I3oWngKqUhfgkBTCL1pics1elICaS/5Y9jk+XBdEBeJKhHZGCCLZAWTIkBqQgNlr+NbGi2wHgS1tTAbQNAxW3i1R58WWgd725ANZ7gXPFNaqagrvwt1t7aW0qiOIAPlErPqJCq6JWrW8r1ar1xf0n4NxnnpCELEKyCNmkJZSQRSCbQltooS4sVApiC10U2kWhFRUEEdGF4vuNH8g7c9NQ2pjepPcB/r5ADjlnzp2ZM+QMXHeYb+1WfO5hi5QfveYe33XJ4+d8a3MNQHbI75KhMt9z9wF4FRNcIi3wO94bAHJiQHCHNgmgh3QD8D1MCK6I+KeNCUgbgFFRcEX8Qwhov014o/juUlEoxeqrgpsA7oWp4AZprnpv1ANgShFcoU4a+36jMgOuVGYmnuJ1Wb0hKWqCC8QCgI4dqyfRbNCFoqDBX7Xz6C0AS660K3UKQCdhuqAbdqFT+B8mAXQTbhtbpM7ng4Yn1oytOwFMu5AP9QGAa4Qz8lFwvFWIH6G7Qjijc8/LDueDyvd4z151EYBvwOF+lRFTAK6TGi+ACWdLk0ozANqvkpojAFJKRnCSlFt3m8pLc9bJTylVn64ty9rJfEl1cpVKbH3uJ2v1QleUqOCI2h9xeeP0aVqLCA4JSLk6s7hu6CbkqOAIGpyB7iRZ5xLvFWlHEkITyjK/41/v9h0AC3lngpCz0PXWf0yDUcmBhFDt0T/flx8CkNL8VLAZjUhvAHSQek5AtyALdqP5e9BdbPCkZsbuFRKVvlRHs/W1AfC902yNgoriWwCeqw1fSL+J2VkWNBF8vckr6mPQ3ZcjtkVBA/3z4Ju6Bs5ANzck2BQFpUMTxlVZQ4ege95vUxRUHoPOe5s01OWBbryf2hEFDX4Fc4Vs4gaYZ3ZEQeXBJPgMcFPnwYzJVmeE6jGsGCNAE/rAlPIBamkMQv9YCLpzxJRjYMr5BLXyg5EvgTlKTOoEkw2LUct6dTz4ojqCNO04mMm4ZE150mhMuQ+jHppwAUxqUM5QK9qkPLIE5jhpygkvmHJYiW45FaL8IwmdZy9pUtc2MK9HtvgloZngJyMVp3tJ846ASb7Q1NYrg1JN+ukDs4e05LwHTO5bUKG0tRBEeXAKzJ3rpEXdB8C9fBIWKW0hhOBIBdy2K6R11zvALY6EFYE21yHF4OdKEkz7ObIlXXvAhV4OquoApaYbpCo9qayA29lLturibhimSgOSFjG1ILRwYnwShn09xArnT8PwdnHML6n+hl+2gD8Wjj+rLMOwq49Y5dZpVKUWS++VcCwdCdT5/Uhck5SH45VpVO3qJFbq2Y5Vvly2VBgQY5KqKWI6HY+n06KiqVJMSQyP/37wB6v29xGrnThyEDWh5dyr+fJscbQw/OjRcGG0OFvO3n+QSqKm7exlYgsvNgolkyFs1HGV2OQgTGsjNjnVBtO8Owj3nwbhgWnttgWxy2PaoWaC+AuAXqWYKHupMgAAAABJRU5ErkJggg=='; +@prefix: __dumi-default; +@mobile: ~'only screen and (max-width: 767px)'; +@desktop: ~'only screen and (min-width: 768px)'; +@icons: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcwAAAA8CAMAAADc4HoZAAABFFBMVEUAAABGT2VGTmZaYXpCvGtIUGg3tGBGTmU3s2A/tmFKUGxFTmRFTWVQWmxFTWRJUGZFTWRGTmRLWWpFTWRGTmVGTmVLVG1FTmRGTWVHTmVFTWRHUGdFTWRGT2ZFTWVGTmU6t2I7xHA3tF9GTWRIT2dFTmRGTmVFTWQ3s2BFTWRGTmVGTmZKUmVFTWRFTWRGTWRGTmVcXHxFTmVFTmVGTmVFTWRIUGdGTWVNU3FGT2ZGTmVHTmVFTWRFTWVFTmVITWRHUGZFTWVFTmRGTmZGTmVFTWVLU2g4tF83tGBFTWQ3s1/LzdT09faoq7Zwdoieoq58gpLj5OeCh5fq6+2/wsmTmKWQlKJfZnpIUGfU1tu0t8BOVWynlyFSAAAASXRSTlMAkoAHEkDQ/dgYFuf0C8gj+KQQmm1oEuyNWNg53kSXfCYI5tEtzq7ivbOgTBy924R1BfHUibcpYw1JcU7v+7E3Nav6XVPDGraPqQuKawAACh1JREFUeNrsm2lT6kgUhg9QFFUkgWDYZfnAVsi+KQJeQdGqt1xm7jZ3lv//PyYdhe7QWQw1zP0w83xQsY9Um4fTp7vToeBczmaX5MN5rXZO/+NGJzGuLejnkw3dADehLHkQyceAWD5C/0my9XqWPLlCK9WHQScirUMk18g7J9ZosYLFajFyT8siLIpuyQkHKBDw4NgYsnDr0Xybaii60rjYzsmdbrqnw0TvpbvkhjYuzinygDXJXLewR2/O/f73w1cWCUj0LkmiU8SeYsc9LXMZIJNjyXkqmbWQCzV8ICawzLO8jh3q4IyciYfugMnMMGYT4C4UJ2fOEbbSc0EyrVp4T/7u4kiZs6jANjwBxkupWMLG7NIlLZvxM+As3nRLTsD/N5xtekmHIEQuhBAoBuREtmaXWVgB41Smc97JbMZA7pqcKKgopbu7FC1BLUgD22MyeVnPWD0bonLLeCQRhIkzQNnz6gHiK0HmxeF4qkKPSsVygh2x2q50SmlZIGIyiQo8OY+XGVExOLVM2WVRbAkDSma0609aQaxKMgOo6YjQ77Tc8d3laxPRxS7R564yI8WSFkymgUNuJqlbomQLisblpnNAf0nrB1j06rTsA7n0SE5L2skkh+Qcm2CP3vGV2QHWp5Ypu4wDosumRpyzNrBwcFmqk4166dBmrFgJ5aeDKhvSklWLBLokgBhcaF3bFL59lV45EQsR3QLVfV0uAuNFhEy2JaC/fcveMVC8ltKSy3RITtjRl34yDSj0r8rMNkyXQksByJOdCmIdslNAKS7V0BIKdpmGQ1+S9slA2IVa60My89HoRKyZ5XTD8rhBX1DwEN85Gw53drIsT6W0FGTKyYmYtgcI427rI1NB5bQyZZeTuNCSXaEpBX2Cotm9qWqdJOqqajN85y8zTC6E8SGZGalmjja4uaQC0OUy0UzSAckNTKS0FGTKyYmYbfQP42brcFGr/X5+N/XDNVG+36+eXCZ3Kbbkbd644cHBW6bpnTlx0vZO6PL0NI/LE8uksxtUqQ7sUgpoAfp0TgLzqQ4oAFkkeFqadCwFxJMz4SKTwogVpIsaBtrv+qdQzZ8ibSB8cpncJW+Z68iQTBq5EXG6N6UIvTHVr2hPpHTX9ZY5Rf0ImfIEyEMmFWHQmk89gHKhBShCP68UoHVfFtZnqV0yahWYVLTdJyMFwE0ms8l+cnFJfWyIuM2TyuQuecsW4xFJMMcd0S1PzBRQGdkaOKosc4DKYn1amSM2rb4H5lwmaVUVqEXJItoA1LBGokwoHWKUS0AqBZTKxOgocJXJl74uLi+Be+I2TyuTu+SkkCInmrZS3kNXkMnnF9RFT5Qpv1cVJkYwmRzxlavMIRClmTgBYmIeU1bpfC+WqS6RKPOKOTxjaWlZXSpWcp4xq1dBZIaBTxH+v95kySLyCQifSCZ3WYuTnYbDKNvpnVMVPUpulvSGPiFRJlq39M5E95bZNYZXD1icTOaoHophQ1EgLcpkrBOsdLJimbglsstMzpnGxZtSE0vjwlKalGVyuEzZJSXQIxJs2kVVDJOLC6NKVK/0jLWrzEzPYB/G6SxV9pJZq2XlyXSHDqlAjW5XjaSCzfsfom2XiX3hbEN4y3G/r64agy7ZifRrXOa6wmMkmT7YZfbwTuPsUoGi2WUyWOlkxZJIkskGWD7YkpWcb4NtAJlVm8tHYEF2m6KofW/pXLe2INxkTs0QeszB5N5rmJVckg55RzI+gTpEToFySRZ1GAcy94lg8AmOtmtSh2QnNebrTCnmWJlzHRatYeRegbomWSZpU2Cq0UdkdgLKlBMzA2EZNpJkmnmZQ9EwqtSDMijqGU+ZeeSqD/pCkikhZ6ZsU8cNc+kuc3EoU0tgT4hE5q3ELgZCTIBh1nECVAWm0fMs3daA8bV4wUN7f0nhAkdCgkztnx9mZ5iQ+zDLSLxdx5bZFK+Tp8wZDNLqFEAmr5myzRh36TfM8obXX01eAeyaqT4LhYvouMccLzNSRIlZmwGzLnGskVWWWWhBmgBZlXPpOwHieEyA5joGsktZJvumXBN5yzSQW/puGhy2XGBDTjZbWDGXLhMgRZ4ArQF8f375+vnP5y/gFawKYHzlEuOzNPGRSVFgSkT37LcCYDSidpnnCUCQaTmUlyaW1QAyxaVJAVjLLmWZViQSUW+Z9RsWE1DmFuMIOZAddIMtTSrA69PTy/dfXr798QMo7GVmzjXyijleJqVwV7d6t4rL2+NlUeY5GE6bBnNp0yCQTG4zBYVIWGa6y6SMCmDoKZOuFQDVYDI1FWlyJtimQR8/vv76/O319enrl89/wdjLZEnsFeO/nee6NImv8MAW6zpSssylKLMMxrHbebJM2eZohYrkUpL5HhKfqohdesokbZED1oFk0gC5M/Kje+e7nafi9fnl8y8mn1+ef6AtyXSNOV4mZd4q7wAo+8s8fqOdA7httJd3Hwlpo12WeUZUv0PaVWaCuTSVqxgGkznPYTYiP/w32lfAr0+/fAF+++2PV6ApyvSK8ZcpL034LbAWclm2kEU/4i8z8C0wf5mcENQIcTxkJnuTOMV1ZBxkniceqYkmnRmtR4ooQWVSJwbD16b/LbAGTEffnvD705NpC3lZphxzrEwbYVZg2Dd+c9pZZpCb08FltrChj8nsAGpiDD0py9RWUIvAkFWOuwcFuA0ok4bALCuKswQFvTk9gMnL85fvz99h0ttsmp8+tdt9LlOKuXC5OS1fOa42c3jUUrW6sIGetB8bwVCUuUCgYyPBZa6B+w/KpHsVgOq4adBhTQ8RonIOwE3ACRBjGMNquJ/ODcc9YgQ8NtJVYfLn568vMImtVrmcoiitVmLuFON6bMRfpiOPY/QOD3T16juZ9V6AA10+MhkkE0Ys6yuzXFgTY35fzTw6L03iV8MOMbTt8CpJwWVa02C9PSyUt8NPKtBK0hEHuoYAzAH0G0z0c+IEjIGALDMfdeYCuD88ahmrxJnMuBE77qilLHPkKnOZlhLz9CcNnFu06hg7lLBGRx21DMHkr9+ZJ6HFKya4TC9atIOf6woBIX6SK8AhaM8D0D//ELR3ryLXlV4xV0qElhEiz0PQbcNoOx+CvlJgIT6H4xUTHCMGd1LE4aVTKpa+jyf4y/z5jycE7lXwxxO0gtFu5svECRrz/4NDf7dvxjYQwzAMdGEE8RaWq2ySh/cf6OGoyQCRANLkBHenWqnzxyGU6aVP0zRN0zTtmzUru64ZWZ923kC0n6tT9WnnnL+y5R51pj6L9ahlx7k6UR8kVt2Sh1W35GHVLXlYdUseVt2Sh1W3fK8aDmuSOmyfelyGwpqkjtvnnvMyENYcdeA+fSxaDNYUdeg+TovBmqAO3sdpMVjD1eH7OC0Ga7A6QR+nxWANVafo47QYrIHqJH0eWhDWMHWaPosWhTVInahPHzisIepUffrAYQ1QJ+vTgVgD1IP6/AHM0QJdY511NAAAAABJRU5ErkJggg=='; + +.@{prefix}-icon { + background: url(@icons) no-repeat ~'0 0/230px auto'; +} + +/* 颜色表 - dark */ +@c-bg-dark: #141414; +@c-light-bg-dark: rgba(255,255,255,0.08); +@c-primary-dark: #7395f7; +@c-heading-dark: rgba(255, 255, 255, 0.85); +@c-text-dark: rgba(255, 255, 255, 0.85); +@c-secondary-dark: rgba(255,255,255,0.65); +@c-border-dark: #6b6c6d; +@c-btn-border-dark: #464646; diff --git a/packages/core/dumi-theme-nocobase/src/test/SearchBar.test.ts b/packages/core/dumi-theme-nocobase/src/test/SearchBar.test.ts new file mode 100755 index 000000000..cf19861d4 --- /dev/null +++ b/packages/core/dumi-theme-nocobase/src/test/SearchBar.test.ts @@ -0,0 +1,32 @@ +import '@testing-library/jest-dom'; + +import { highlight } from '../components/SearchBar'; + +describe('test highlight', () => { + it('should render right', () => { + const element1 = highlight('1', '1234').props.children; + expect(element1[0]).toEqual(''); + expect(element1[1].props).toEqual({ className: '__dumi-default-search-highlight', children: '1' }); + expect(element1[2]).toEqual('234'); + + const element2 = highlight('2', '1234').props.children; + expect(element2[0]).toEqual('1'); + expect(element2[1].props).toEqual({ className: '__dumi-default-search-highlight', children: '2' }); + expect(element2[2]).toEqual('34'); + + const element3 = highlight('23', '1234').props.children; + expect(element3[0]).toEqual('1'); + expect(element3[1].props).toEqual({ className: '__dumi-default-search-highlight', children: '23' }); + expect(element3[2]).toEqual('4'); + + const element4 = highlight('34', '1234').props.children; + expect(element4[0]).toEqual('12'); + expect(element4[1].props).toEqual({ className: '__dumi-default-search-highlight', children: '34' }); + expect(element4[2]).toEqual(''); + + const element5 = highlight('1234', '1234').props.children; + expect(element5[0]).toEqual(''); + expect(element5[1].props).toEqual({ className: '__dumi-default-search-highlight', children: '1234' }); + expect(element5[2]).toEqual(''); + }); +}); diff --git a/packages/core/dumi-theme-nocobase/src/test/Table.test.tsx b/packages/core/dumi-theme-nocobase/src/test/Table.test.tsx new file mode 100755 index 000000000..469299879 --- /dev/null +++ b/packages/core/dumi-theme-nocobase/src/test/Table.test.tsx @@ -0,0 +1,41 @@ +import '@testing-library/jest-dom'; +import { render, fireEvent, act } from '@testing-library/react'; +import Table from '../builtins/Table'; +import React from 'react'; + +describe('test Table', () => { + it('should render folded shadows', async () => { + const text = 'Cell'; + const { container, queryByText } = render( + + + + + + +
{text}
, + ); + + // mock offset & scroll value + const content = container.querySelector('.__dumi-default-table-content'); + + Object.defineProperties(content, { + offsetWidth: { get: () => 100 }, + scrollLeft: { get: () => 10 }, + scrollWidth: { get: () => 120 }, + }); + + // trigger scroll event to re-render + fireEvent(content, new Event('scroll')); + + // wait for throttle + await act(() => new Promise(resolve => setTimeout(resolve, 200))); + + // expect content be rendered + expect(queryByText(text)).not.toBeNull(); + + // expect folded shadows be rendered + expect(content.hasAttribute('data-left-folded')).toBeTruthy(); + expect(content.hasAttribute('data-right-folded')).toBeTruthy(); + }); +}); diff --git a/packages/core/dumi-theme-nocobase/src/test/index.test.tsx b/packages/core/dumi-theme-nocobase/src/test/index.test.tsx new file mode 100755 index 000000000..790b955ea --- /dev/null +++ b/packages/core/dumi-theme-nocobase/src/test/index.test.tsx @@ -0,0 +1,377 @@ +import '@testing-library/jest-dom'; +import React from 'react'; +import { render, queryByAttribute, queryAllByAttribute, fireEvent } from '@testing-library/react'; +import type { MemoryHistory} from '@umijs/runtime'; +import { createMemoryHistory, Router } from '@umijs/runtime'; +import { context as Context } from 'dumi/theme'; +import SourceCode from '../builtins/SourceCode'; +import Alert from '../builtins/Alert'; +import Badge from '../builtins/Badge'; +import Tree from '../builtins/Tree'; +import Previewer from '../builtins/Previewer'; +import API from '../builtins/API'; +import Layout from '../layout'; + +let history: MemoryHistory; + +// mock history location which import from 'dumi' +jest.mock('dumi', () => ({ + history: { location: { pathname: '/' } }, +})); + +describe('default theme', () => { + history = createMemoryHistory({ initialEntries: ['/', '/en-US'], initialIndex: 0 }); + const baseCtx = { + title: 'test', + locale: 'zh-CN', + routes: [ + { + path: '/', + title: '首页', + meta: {}, + }, + { + path: '/en-US', + title: 'Home', + meta: {}, + }, + ], + config: { + locales: [ + { name: 'zh-CN', label: '中文' }, + { name: 'en-US', label: 'English' }, + ], + menus: {}, + navs: {}, + title: 'test', + logo: '/', + mode: 'site' as 'doc' | 'site', + repository: { branch: 'master' }, + }, + meta: {}, + menu: [ + { + title: '分组', + children: [ + { + title: 'English', + path: '/en', + }, + ], + }, + ], + nav: [ + { + path: '/', + title: '首页', + children: [], + }, + { + title: '生态', + children: [ + { + path: 'https://d.umijs.org', + title: 'GitHub', + children: [], + }, + ], + }, + ], + base: '/', + apis: { + MultipleExports: { + Other: [ + { + identifier: 'other', + type: 'string', + }, + ], + }, + } + }; + const baseProps = { + history, + location: { ...history.location, query: {} }, + match: { params: {}, isExact: true, path: '/', url: '/' }, + route: { path: '/', routes: baseCtx.routes }, + }; + + it('should render site home page', () => { + const attrName = 'data-prefers-color'; + document.documentElement.setAttribute(attrName, 'light'); + localStorage.setItem('dumi:prefers-color', 'light'); + const wrapper = ({ children }) => ( + + {children} + + ); + const { container, getAllByText, getByText } = render( + + +

Home Page

+
+
, + { wrapper }, + ); + + // expect navbar be rendered + expect(getAllByText('首页')).not.toBeNull(); + + // expect content be rendered + expect(getByText('Home Page')).not.toBeNull(); + + // expect hero be rendered + expect(getByText('Hero')).not.toBeNull(); + + // expect features be rendered + expect(getByText('Feature')).not.toBeNull(); + expect(getByText('Feat2')).not.toBeNull(); + + // trigger mobile menu display + queryByAttribute('class', container, '__dumi-default-navbar-toggle').click(); + + // expect sidemenu display for mobile + expect(queryByAttribute('data-mobile-show', container, 'true')).not.toBeNull(); + + // expect dark render and click success + const menu = queryByAttribute('class', container, '__dumi-default-menu'); + const sunMenu = queryByAttribute('class', menu, '__dumi-default-dark-sun __dumi-default-dark-switch-active'); + expect(sunMenu).not.toBeNull(); + const moonMenu = queryByAttribute('class', container, '__dumi-default-dark-moon'); + expect(moonMenu).not.toBeNull(); + moonMenu.click(); + expect(document.documentElement.getAttribute(attrName)).toEqual('dark'); + expect(queryByAttribute('data-mobile-show', container, 'true')).toBeNull(); + + const navbar = queryByAttribute('class', container, '__dumi-default-navbar'); + const moonNav = queryByAttribute('class', navbar, '__dumi-default-dark-moon __dumi-default-dark-switch-active'); + moonNav.click(); + expect(queryByAttribute('class', navbar, '__dumi-default-dark-switch __dumi-default-dark-switch-open')).not.toBeNull(); + const switchList = queryByAttribute('class', navbar, '__dumi-default-dark-switch-list'); + expect(switchList).not.toBeNull(); + queryByAttribute('class', switchList, '__dumi-default-dark-sun').click(); + expect(document.documentElement.getAttribute(attrName)).toEqual('light'); + expect(queryByAttribute('class', navbar, '__dumi-default-dark-switch-list')).toBeNull(); + expect(queryByAttribute('class', navbar, '__dumi-default-dark-switch __dumi-default-dark-switch-open')).toBeNull(); + }); + + it('should render documentation page', async () => { + const updatedTime = 1604026996000; + const wrapper = ({ children }) => ( + + {children} + + ); + const { getByText, getAllByText } = render( + + +

Doc

+
+
, + { wrapper }, + ); + + // expect slugs be rendered + expect(getByText('Slug A')).not.toBeNull(); + + // expect footer date show + expect(new Date(updatedTime).toLocaleString([], { hour12: false })).not.toBeNull(); + + // trigger locale change + getAllByText('English')[0].click(); + + // expect location change + expect(history.location.pathname).toEqual(baseCtx.routes[1].path); + }); + + it('should render builtin components correctly', () => { + const code = "console.log('Hello World!')"; + const wrapper = ({ children }) => ( + + {children} + + ); + + const { getByText, getByTitle, getAllByTitle, container } = render( + + + <> + + click + + + Alert + Badge + +
    +
  • + 1 + test1 +
      +
    • + 1-1 + test1-1 +
    • +
    +
  • +
+
+ 'JavaScript'", + tsx: "export default () => 'TypeScript'", + }, + }} + dependencies={{}} + > + <>demo-1 Content + + 'Main'", + }, + 'Other.jsx': { + import: './Other.jsx', + content: "export default () => 'Other'", + }, + }} + dependencies={{}} + > + <>demo-2 Content + + 'Main'", + }, + 'Other.jsx': { + import: './Other.jsx', + content: "export default () => 'Other'", + }, + }} + dependencies={{}} + iframe={100} + > + <>demo-3 Content + + + +
+
, + { wrapper }, + ); + + // toggle side menu display + fireEvent( + container.querySelector('.__dumi-default-navbar-toggle'), + new MouseEvent('click', { + bubbles: true, + cancelable: true, + }), + ); + + fireEvent( + container.querySelector('#btn'), + new MouseEvent('click', { + bubbles: true, + cancelable: true, + }), + ); + + // test tree render + expect(queryAllByAttribute('class', container, '__dumi-site-tree-icon icon-minus-square').length).toBe(2); + expect(queryAllByAttribute('class', container, '__dumi-site-tree-icon icon-folder-open').length).toBe(2); + expect(queryAllByAttribute('class', container, '__dumi-site-tree-icon icon-file').length).toBe(1); + + expect(getByText('')).toHaveClass('rc-tree-title'); + expect(getByText('1')).toHaveClass('rc-tree-title'); + expect(getByText('test1')).not.toBeNull(); + + getAllByTitle('')[0].click(); + expect(queryAllByAttribute('class', container, '__dumi-site-tree-icon icon-plus-square').length).toBe(1); + expect(queryAllByAttribute('class', container, '__dumi-site-tree-icon icon-folder').length).toBe(1); + + // expect SourceCode highlight + expect(getByText('console')).toHaveClass('token'); + + // expect Alert be rendered + expect(getByText('Alert')).toHaveAttribute('type', 'info'); + + // expect Badge be rendered + expect(getByText('Badge')).toHaveClass('__dumi-default-badge'); + + // expect Previewer be rendered + expect(getByText('demo-1')).not.toBeNull(); + + // trigger source code display for demo-1 + getAllByTitle('Toggle source code panel')[0].click(); + + // expect show TypeScript code default + expect(getByText("'TypeScript'")).not.toBeNull(); + + // trigger source code display for demo-2 + getAllByTitle('Toggle source code panel')[1].click(); + + // expect show code of main file + expect(getByText("'Main'")).not.toBeNull(); + + // trigger file change + getByText('Other.jsx').click(); + + // expect show code of main file + expect(getByText("'Other'")).not.toBeNull(); + + // expect render iframe demo + (container.querySelector('[data-iframe] button[role=refresh]') as HTMLElement).click(); + expect(container.querySelector('[data-iframe]').innerHTML).not.toContain('demo-3 Content'); + expect(container.querySelector('[data-iframe] iframe')).not.toBeNull(); + expect((container.querySelector('[data-iframe] iframe') as HTMLElement).style.height).toEqual( + '100px', + ); + + // expect render API property + expect(getByText('other', { selector: 'table td' })).not.toBeNull(); + }); +}); diff --git a/packages/core/resourcer/package.json b/packages/core/resourcer/package.json index 27c4d821a..aa4d9c78b 100644 --- a/packages/core/resourcer/package.json +++ b/packages/core/resourcer/package.json @@ -1,6 +1,6 @@ { "name": "@nocobase/resourcer", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "description": "", "main": "./lib/index.js", "types": "./lib/index.d.ts", @@ -11,11 +11,6 @@ "url": "http://www.apache.org/licenses/LICENSE-2.0" } ], - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "dependencies": { "deepmerge": "^4.2.2", "koa-compose": "^4.1.0", diff --git a/packages/core/resourcer/src/__tests__/resourcer.test.ts b/packages/core/resourcer/src/__tests__/resourcer.test.ts index 15edd786b..d54eb4fe9 100644 --- a/packages/core/resourcer/src/__tests__/resourcer.test.ts +++ b/packages/core/resourcer/src/__tests__/resourcer.test.ts @@ -1,6 +1,6 @@ -import Resourcer, { ResourcerContext, Action } from '..'; -import Resource from '../resource'; import path from 'path'; +import Resourcer, { Action, ResourcerContext } from '..'; +import Resource from '../resource'; describe('resourcer', () => { it('action', async () => { @@ -280,7 +280,7 @@ describe('resourcer', () => { arr: [], }; - await expect(async () => { + try { await resourcer.execute( { resource: 'test', @@ -288,7 +288,9 @@ describe('resourcer', () => { }, context, ); - }).rejects.toThrow('test action is not allowed'); + } catch (error) { + expect(error.message).toEqual('test action is not allowed'); + } }); it('except', async () => { @@ -330,7 +332,7 @@ describe('resourcer', () => { arr: [], }; - await expect(async () => { + try { await resourcer.execute( { resource: 'test', @@ -338,7 +340,9 @@ describe('resourcer', () => { }, context, ); - }).rejects.toThrow('test action is not allowed'); + } catch (error) { + expect(error.message).toEqual('test action is not allowed'); + } }); it('middlewares', async () => { diff --git a/packages/core/resourcer/tsconfig.build.json b/packages/core/resourcer/tsconfig.build.json deleted file mode 100644 index 9bdd87769..000000000 --- a/packages/core/resourcer/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./lib", - "declaration": true - }, - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/core/resourcer/tsconfig.json b/packages/core/resourcer/tsconfig.json deleted file mode 100644 index bf4bd3fa9..000000000 --- a/packages/core/resourcer/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/core/sdk/.buildrc.ts b/packages/core/sdk/.buildrc.ts new file mode 100644 index 000000000..bfe5a8a09 --- /dev/null +++ b/packages/core/sdk/.buildrc.ts @@ -0,0 +1,5 @@ +export default { + target: 'node', + cjs: 'babel', + esm: 'babel', +}; diff --git a/packages/core/sdk/package.json b/packages/core/sdk/package.json new file mode 100644 index 000000000..0ce2a724e --- /dev/null +++ b/packages/core/sdk/package.json @@ -0,0 +1,21 @@ +{ + "name": "@nocobase/sdk", + "version": "0.7.0-alpha.55", + "license": "Apache-2.0", + "licenses": [ + { + "type": "Apache-2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0" + } + ], + "main": "lib", + "module": "es/index.js", + "typings": "es/index.d.ts", + "dependencies": { + "axios": "^0.26.1" + }, + "devDependencies": { + "axios-mock-adapter": "^1.20.0" + }, + "gitHead": "a00b45a2686695c5f4824d074ac5e1aff210793a" +} diff --git a/packages/core/sdk/src/APIClient.ts b/packages/core/sdk/src/APIClient.ts new file mode 100644 index 000000000..ea67141db --- /dev/null +++ b/packages/core/sdk/src/APIClient.ts @@ -0,0 +1,137 @@ +import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'; +import qs from 'qs'; + +export interface ActionParams { + filterByTk?: any; + [key: string]: any; +} + +type ResourceActionOptions

= { + resource?: string; + resourceOf?: any; + action?: string; + params?: P; +}; + +export interface IResource { + list?: (params?: ActionParams) => Promise; + get?: (params?: ActionParams) => Promise; + create?: (params?: ActionParams) => Promise; + update?: (params?: ActionParams) => Promise; + destroy?: (params?: ActionParams) => Promise; + [key: string]: (params?: ActionParams) => Promise; +} + +class Auth { + protected api: APIClient; + protected token: string; + protected role: string; + + constructor(api: APIClient) { + this.api = api; + this.api.axios.interceptors.request.use((config) => { + config.headers['X-Hostname'] = window.location.hostname; + if (this.role) { + config.headers['X-Role'] = this.role; + } + if (this.token) { + config.headers['Authorization'] = `Bearer ${this.token}`; + } + return config; + }); + } + + setToken(token: string) { + this.token = token; + } + + setRole(role: string) { + this.role = role; + } + + async signIn(values) { + const response = await this.api.request({ + method: 'post', + url: 'users:signin', + data: values, + }); + const data = response?.data?.data; + this.token = data; + return data; + } + + async signOut() { + await this.api.request({ + method: 'post', + url: 'users:signout', + }); + this.token = null; + } +} + +export class APIClient { + axios: AxiosInstance; + auth: Auth; + + constructor(instance?: AxiosInstance | AxiosRequestConfig) { + if (typeof instance === 'function') { + this.axios = instance; + } else { + this.axios = axios.create(instance); + } + this.auth = new Auth(this); + this.qsMiddleware(); + } + + qsMiddleware() { + this.axios.interceptors.request.use((config) => { + config.paramsSerializer = (params) => { + return qs.stringify(params, { + strictNullHandling: true, + arrayFormat: 'brackets', + }); + }; + return config; + }); + } + + request, D = any>(config: AxiosRequestConfig | ResourceActionOptions): Promise { + const { resource, resourceOf, action, params } = config as any; + if (resource) { + return this.resource(resource, resourceOf)[action](params); + } + return this.axios.request(config); + } + + resource(name: string, of?: any): IResource { + const target = {}; + const handler = { + get: (_: any, actionName: string) => { + let url = name.split('.').join(`/${of || '_'}/`); + url += `:${actionName}`; + const config: AxiosRequestConfig = { url }; + if (['get', 'list'].includes(actionName)) { + config['method'] = 'get'; + } else { + config['method'] = 'post'; + } + return async (params?: ActionParams) => { + const { values, filter, ...others } = params || {}; + config['params'] = others; + if (filter) { + if (typeof filter === 'string') { + config['params']['filter'] = filter; + } else { + config['params']['filter'] = JSON.stringify(filter); + } + } + if (config.method !== 'get') { + config['data'] = values || {}; + } + return await this.request(config); + }; + }, + }; + return new Proxy(target, handler); + } +} diff --git a/packages/core/sdk/src/index.ts b/packages/core/sdk/src/index.ts new file mode 100644 index 000000000..07588832d --- /dev/null +++ b/packages/core/sdk/src/index.ts @@ -0,0 +1 @@ +export * from './APIClient'; diff --git a/packages/core/server/package.json b/packages/core/server/package.json index 78a99efe0..19e08dcc7 100644 --- a/packages/core/server/package.json +++ b/packages/core/server/package.json @@ -1,6 +1,6 @@ { "name": "@nocobase/server", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "main": "lib/index.js", "types": "./lib/index.d.ts", "license": "Apache-2.0", @@ -10,21 +10,15 @@ "url": "http://www.apache.org/licenses/LICENSE-2.0" } ], - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "dependencies": { "@koa/cors": "^3.1.0", "@koa/router": "^9.4.0", - "@nocobase/acl": "0.7.0-alpha.34", - "@nocobase/actions": "0.7.0-alpha.34", - "@nocobase/database": "0.7.0-alpha.34", - "@nocobase/resourcer": "0.7.0-alpha.34", + "@nocobase/acl": "0.7.0-alpha.55", + "@nocobase/actions": "0.7.0-alpha.55", + "@nocobase/database": "0.7.0-alpha.55", + "@nocobase/resourcer": "0.7.0-alpha.55", "chalk": "^4.1.1", - "commander": "^8.1.0", - "dotenv": "^8.2.0", + "commander": "^9.2.0", "find-package-json": "^1.2.0", "i18next": "^21.3.2", "koa": "^2.13.4", diff --git a/packages/core/server/src/acl/available-action.ts b/packages/core/server/src/acl/available-action.ts index 2dc51b944..2afa4de2a 100644 --- a/packages/core/server/src/acl/available-action.ts +++ b/packages/core/server/src/acl/available-action.ts @@ -14,11 +14,11 @@ const availableActions: { // type: 'new-data', // scope: false, // }, - export: { - displayName: '{{t("Export")}}', - type: 'old-data', - allowConfigureFields: true, - }, + // export: { + // displayName: '{{t("Export")}}', + // type: 'old-data', + // allowConfigureFields: true, + // }, view: { displayName: '{{t("View")}}', type: 'old-data', diff --git a/packages/core/server/src/app-manager.ts b/packages/core/server/src/app-manager.ts index 2a0187c68..fe8f8b0c7 100644 --- a/packages/core/server/src/app-manager.ts +++ b/packages/core/server/src/app-manager.ts @@ -86,7 +86,7 @@ export class AppManager extends EventEmitter { }; } - emitAsync: (event: string | symbol, ...args: any[]) => Promise; + declare emitAsync: (event: string | symbol, ...args: any[]) => Promise; } applyMixins(AppManager, [AsyncEmitter]); diff --git a/packages/core/server/src/application.ts b/packages/core/server/src/application.ts index 27d79e440..613deae62 100644 --- a/packages/core/server/src/application.ts +++ b/packages/core/server/src/application.ts @@ -10,11 +10,13 @@ import Koa from 'koa'; import { isBoolean } from 'lodash'; import { createACL } from './acl'; import { AppManager } from './app-manager'; -import { createCli } from './commands'; +import { registerCli } from './commands'; import { createDatabase, createI18n, createResourcer, registerMiddlewares } from './helper'; import { Plugin } from './plugin'; import { InstallOptions, PluginManager } from './plugin-manager'; +const packageJson = require('../package.json'); + export type PluginConfiguration = string | [string, any]; export type PluginsConfigurations = Array; @@ -33,12 +35,12 @@ export interface ApplicationOptions { plugins?: PluginsConfigurations; } -interface DefaultState { +export interface DefaultState { currentUser?: any; [key: string]: any; } -interface DefaultContext { +export interface DefaultContext { db: Database; resourcer: Resourcer; [key: string]: any; @@ -102,7 +104,7 @@ export class Application exten this.acl = createACL(); this.db = createDatabase(options); this.resourcer = createResourcer(options); - this.cli = createCli(this); + this.cli = new Command('nocobase').usage('[command] [options]'); this.i18n = createI18n(options); this.pm = new PluginManager({ @@ -118,6 +120,12 @@ export class Application exten } this.loadPluginConfig(options.plugins || []); + + registerCli(this); + } + + getVersion() { + return packageJson.version; } plugin(pluginClass: any, options?: O): Plugin { @@ -158,7 +166,7 @@ export class Application exten } command(name: string, desc?: string, opts?: CommandOptions): Command { - return this.cli.command(name, desc, opts); + return this.cli.command(name, desc, opts).allowUnknownOption(); } findCommand(name: string): Command { @@ -262,7 +270,7 @@ export class Application exten await this.emitAsync('afterInstall', this, options); } - emitAsync: (event: string | symbol, ...args: any[]) => Promise; + declare emitAsync: (event: string | symbol, ...args: any[]) => Promise; } applyMixins(Application, [AsyncEmitter]); diff --git a/packages/core/server/src/commands/console.ts b/packages/core/server/src/commands/console.ts index f303782e8..ee80a3c85 100644 --- a/packages/core/server/src/commands/console.ts +++ b/packages/core/server/src/commands/console.ts @@ -1,16 +1,18 @@ +import Application from '../application'; + const REPL = require('repl'); -export default async ({ app }) => { - await app.start(); - const repl = (REPL.start('nocobase > ').context.app = app); - - repl.on('exit', async function (err) { - if (err) { - console.log(err); - process.exit(1); - } - - await app.stop(); - process.exit(0); +export default (app: Application) => { + app.command('console').action(async () => { + await app.start(); + const repl = (REPL.start('nocobase > ').context.app = app); + repl.on('exit', async function (err) { + if (err) { + console.log(err); + process.exit(1); + } + await app.stop(); + process.exit(0); + }); }); }; diff --git a/packages/core/server/src/commands/create-plugin/create-plugin.ts b/packages/core/server/src/commands/create-plugin/create-plugin.ts deleted file mode 100644 index b97749cea..000000000 --- a/packages/core/server/src/commands/create-plugin/create-plugin.ts +++ /dev/null @@ -1,28 +0,0 @@ -const chalk = require('chalk'); -const fse = require('fs-extra'); -const { join } = require('path'); -const createPackageJson = require('./resources/templates/package-json'); -const createPluginClass = require('./resources/templates/plugin'); - -export default async (name) => { - const pluginName = `plugin-${name}`; - - const pluginPath = join(process.cwd(), `packages/${pluginName}`); - const resourcePath = join(__dirname, 'resources'); - - console.log(`Creating a new NocoBase plugin at ${chalk.green(pluginPath)}.`); - await fse.copy(join(resourcePath, 'files'), pluginPath); - - await fse.outputFile(join(pluginPath, 'src/server/index.ts'), createPluginClass({ name })); - - // write server package.json - await fse.writeJson( - join(pluginPath, 'package.json'), - createPackageJson({ - name: pluginName, - }), - { - spaces: 2, - }, - ); -}; diff --git a/packages/core/server/src/commands/create-plugin/index.ts b/packages/core/server/src/commands/create-plugin/index.ts deleted file mode 100644 index d6f28f1a0..000000000 --- a/packages/core/server/src/commands/create-plugin/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -const createPlugin = require('./create-plugin'); -export default ({ app, cliArgs }) => { - const name = cliArgs[0]; - createPlugin(name); -}; diff --git a/packages/core/server/src/commands/create-plugin/resources/files/server.js b/packages/core/server/src/commands/create-plugin/resources/files/server.js deleted file mode 100644 index 91f8b9f43..000000000 --- a/packages/core/server/src/commands/create-plugin/resources/files/server.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./src/server'); diff --git a/packages/core/server/src/commands/create-plugin/resources/files/tsconfig.json b/packages/core/server/src/commands/create-plugin/resources/files/tsconfig.json deleted file mode 100644 index 67a583a32..000000000 --- a/packages/core/server/src/commands/create-plugin/resources/files/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} diff --git a/packages/core/server/src/commands/create-plugin/resources/templates/package-json.ts b/packages/core/server/src/commands/create-plugin/resources/templates/package-json.ts deleted file mode 100644 index c871d66f0..000000000 --- a/packages/core/server/src/commands/create-plugin/resources/templates/package-json.ts +++ /dev/null @@ -1,10 +0,0 @@ -export default ({ name }) => { - return { - name: name, - version: '0.1.0', - main: 'server.js', - dependencies: { - '@nocobase/server': '^0.6.0-alpha.0', - }, - }; -}; diff --git a/packages/core/server/src/commands/create-plugin/resources/templates/plugin-class.template b/packages/core/server/src/commands/create-plugin/resources/templates/plugin-class.template deleted file mode 100644 index b88be1a23..000000000 --- a/packages/core/server/src/commands/create-plugin/resources/templates/plugin-class.template +++ /dev/null @@ -1,7 +0,0 @@ -import { Plugin } from '@nocobase/server'; - -export default class Plugin<%= className %> extends Plugin { - getName(): string { - return 'plugin-<%= name %>'; - } -} diff --git a/packages/core/server/src/commands/create-plugin/resources/templates/plugin.ts b/packages/core/server/src/commands/create-plugin/resources/templates/plugin.ts deleted file mode 100644 index 075d623ba..000000000 --- a/packages/core/server/src/commands/create-plugin/resources/templates/plugin.ts +++ /dev/null @@ -1,13 +0,0 @@ -import * as _ from 'lodash'; -import * as fs from 'fs'; -import * as path from 'path'; - -export default ({ name }) => { - const tmpl = fs.readFileSync(path.join(__dirname, 'plugin-class.template'), { encoding: 'utf-8' }); - const compile = _.template(tmpl); - - return compile({ - name, - className: _.startCase(_.camelCase(name)), - }); -}; diff --git a/packages/core/server/src/commands/db-auth.ts b/packages/core/server/src/commands/db-auth.ts index 822fde10b..50dbd474a 100644 --- a/packages/core/server/src/commands/db-auth.ts +++ b/packages/core/server/src/commands/db-auth.ts @@ -1,4 +1,10 @@ -export default async ({ app, cliArgs }) => { - const [opts] = cliArgs; - await app.db.auth({ repeat: opts.repeat || 10 }); +import Application from '../application'; + +export default (app: Application) => { + app + .command('db:auth') + .option('-r, --repeat [repeat]') + .action(async (opts) => { + await app.db.auth({ repeat: opts.repeat || 10 }); + }); }; diff --git a/packages/core/server/src/commands/db-clean.ts b/packages/core/server/src/commands/db-clean.ts new file mode 100644 index 000000000..c27db9134 --- /dev/null +++ b/packages/core/server/src/commands/db-clean.ts @@ -0,0 +1,13 @@ +import Application from '../application'; + +export default (app: Application) => { + app + .command('db:clean') + .option('-y, --yes') + .action(async (opts) => { + console.log('Clearing database'); + await app.db.clean({ + drop: opts.yes, + }); + }); +}; diff --git a/packages/core/server/src/commands/db-sync.ts b/packages/core/server/src/commands/db-sync.ts index 6b0d98335..051a59e5a 100644 --- a/packages/core/server/src/commands/db-sync.ts +++ b/packages/core/server/src/commands/db-sync.ts @@ -1,17 +1,21 @@ -export default async ({ app, cliArgs }) => { - const [opts] = cliArgs; - console.log('db sync...'); - await app.db.sync( - opts.force - ? { - force: true, - alter: { - drop: true, - }, - } - : {}, - ); - await app.stop({ - cliArgs, - }); +import Application from '../application'; + +export default (app: Application) => { + app + .command('db:sync') + .option('-f, --force') + .action(async (...cliArgs) => { + const [opts] = cliArgs; + console.log('db sync...'); + const force = !!opts.force; + await app.db.sync({ + force, + alter: { + drop: force, + }, + }); + await app.stop({ + cliArgs, + }); + }); }; diff --git a/packages/core/server/src/commands/index.ts b/packages/core/server/src/commands/index.ts index de43feeb2..1142ddd7b 100644 --- a/packages/core/server/src/commands/index.ts +++ b/packages/core/server/src/commands/index.ts @@ -1,35 +1,19 @@ -import { Command } from 'commander'; import Application from '../application'; -export function createCli(app: Application) { - const program = new Command(); +export function registerCli(app: Application) { + require('./console').default(app); + require('./db-auth').default(app); + require('./db-clean').default(app); + require('./db-sync').default(app); + require('./install').default(app); + require('./start').default(app); + require('./upgrade').default(app); - const runSubCommand = - (name) => - (...cliArgs) => { - const command = require(`./${name}`).default; - - Promise.resolve() - .then(() => { - return command({ app, cliArgs }); - }) - .catch((error) => { - console.error(error); - process.exit(1); - }); - }; - - program.command('start').description('start NocoBase application').option('-s, --silent').action(runSubCommand('start')); - program.command('install').option('-f, --force').option('-c, --clean').option('-s, --silent').action(runSubCommand('install')); - program.command('db:sync').option('-f, --force').action(runSubCommand('db-sync')); - program.command('db:auth').option('-r, --repeat [repeat]').action(runSubCommand('db-auth')); - program.command('console').action(runSubCommand('console')); - - program - .command('create-plugin') - .argument('', 'name of plugin') - .description('create NocoBase plugin') - .action(runSubCommand('create-plugin')); - - return program; + // development only with @nocobase/cli + app.command('build').argument('[packages...]'); + app.command('clean'); + app.command('dev').usage('[options]').option('-p, --port [port]').option('--client').option('--server'); + app.command('doc').argument('[cmd]', '', 'dev'); + app.command('test').option('-c, --db-clean'); + app.command('umi'); } diff --git a/packages/core/server/src/commands/install.ts b/packages/core/server/src/commands/install.ts index 6da9307d7..c59a2691b 100644 --- a/packages/core/server/src/commands/install.ts +++ b/packages/core/server/src/commands/install.ts @@ -1,42 +1,52 @@ import chalk from 'chalk'; +import Application from '../application'; -export default async ({ app, cliArgs }) => { - const [opts] = cliArgs; +export default (app: Application) => { + app + .command('install') + .option('-f, --force') + .option('-c, --clean') + .option('-s, --silent') + .action(async (...cliArgs) => { + let installed = false; + const [opts] = cliArgs; - if (!opts?.clean && !opts?.force) { - const tables = await app.db.sequelize.getQueryInterface().showAllTables(); - if (tables.includes('collections')) { - if (!opts.silent) { - console.log(); - console.log(); - console.log(chalk.yellow('NocoBase is already installed. To reinstall, please execute:')); - console.log(); - let command = 'yarn nocobase install -f'; - console.log(chalk.yellow(command)); - console.log(); - console.log(); + try { + await app.db.auth({ repeat: 1 }); + } catch (error) { + console.log(chalk.red('Unable to connect to the database. Please check the database environment variables in the .env file.')); + return; + } + + if (!opts?.clean && !opts?.force) { + const tables = await app.db.sequelize.getQueryInterface().showAllTables(); + if (tables.includes('collections')) { + installed = true; + if (!opts.silent) { + console.log('NocoBase is already installed. To reinstall, please execute:'); + console.log(); + let command = '$ yarn nocobase install -f'; + console.log(chalk.yellow(command)); + console.log(); + } + return; + } } - return; - } - } - if (!opts.silent) { - console.log(`NocoBase installing`); - } + if (!opts.silent || !installed) { + console.log(`Start installing NocoBase`); + } - await app.install({ - cliArgs, - clean: opts.clean, - sync: { - force: opts.force, - }, - }); + await app.install({ + cliArgs, + clean: opts.clean, + sync: { + force: opts.force, + }, + }); - await app.stop({ - cliArgs, - }); - - if (!opts.silent) { - console.log(`NocoBase installed`); - } + await app.stop({ + cliArgs, + }); + }); }; diff --git a/packages/core/server/src/commands/start.ts b/packages/core/server/src/commands/start.ts index 5cf100ba2..5e76046b7 100644 --- a/packages/core/server/src/commands/start.ts +++ b/packages/core/server/src/commands/start.ts @@ -1,17 +1,26 @@ -export default async ({ app, cliArgs }) => { - const [opts] = cliArgs; - const port = opts.port || process.env.SERVER_PORT || 3000; - const host = opts.host || process.env.SERVER_HOST || '0.0.0.0'; +import Application from '../application'; - await app.start({ - cliArgs, - listen: { - port, - host, - }, - }); +export default (app: Application) => { + app + .command('start') + .option('-s, --silent') + .option('-p, --port [post]') + .option('-h, --host [host]') + .action(async (...cliArgs) => { + const [opts] = cliArgs; + const port = opts.port || process.env.APP_PORT || 13000; + const host = opts.host || process.env.APP_HOST || '0.0.0.0'; - if (!opts.silent) { - console.log(`🚀 NocoBase server running at: http://${host === '0.0.0.0' ? 'localhost' : host}:${port}/`); - } + await app.start({ + cliArgs, + listen: { + port, + host, + }, + }); + + if (!opts.silent) { + console.log(`🚀 NocoBase server running at: http://${host === '0.0.0.0' ? 'localhost' : host}:${port}/`); + } + }); }; diff --git a/packages/core/server/src/commands/upgrade.ts b/packages/core/server/src/commands/upgrade.ts new file mode 100644 index 000000000..78078d57d --- /dev/null +++ b/packages/core/server/src/commands/upgrade.ts @@ -0,0 +1,25 @@ +import chalk from 'chalk'; +import Application from '../application'; + +/** + * TODO + */ +export default (app: Application) => { + app + .command('upgrade') + .action(async (...cliArgs) => { + const [opts] = cliArgs; + console.log('upgrading...'); + const force = false; + await app.db.sync({ + force, + alter: { + drop: force, + }, + }); + await app.stop({ + cliArgs, + }); + console.log(chalk.green(`✨ NocoBase has been upgraded to v${app.getVersion()}`)); + }); +}; diff --git a/packages/core/server/tsconfig.build.json b/packages/core/server/tsconfig.build.json deleted file mode 100644 index 9bdd87769..000000000 --- a/packages/core/server/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./lib", - "declaration": true - }, - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/core/server/tsconfig.json b/packages/core/server/tsconfig.json deleted file mode 100644 index bf4bd3fa9..000000000 --- a/packages/core/server/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/core/test/package.json b/packages/core/test/package.json index e62e7042c..314be9949 100644 --- a/packages/core/test/package.json +++ b/packages/core/test/package.json @@ -1,6 +1,6 @@ { "name": "@nocobase/test", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "main": "lib/index.js", "types": "./lib/index.d.ts", "license": "Apache-2.0", @@ -10,18 +10,14 @@ "url": "http://www.apache.org/licenses/LICENSE-2.0" } ], - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "dependencies": { - "@nocobase/server": "0.7.0-alpha.34", + "@nocobase/server": "0.7.0-alpha.55", "@types/supertest": "^2.0.11", "mockjs": "^1.1.0", - "mysql2": "^2.1.0", - "pg": "^8.3.3", - "pg-hstore": "^2.3.3", + "mysql2": "^2.3.3", + "pg": "^8.7.3", + "pg-hstore": "^2.3.4", + "sqlite3": "^5.0.8", "supertest": "^6.1.6" }, "gitHead": "a00b45a2686695c5f4824d074ac5e1aff210793a" diff --git a/packages/core/test/src/mockServer.ts b/packages/core/test/src/mockServer.ts index 3386da9da..9a40cf042 100644 --- a/packages/core/test/src/mockServer.ts +++ b/packages/core/test/src/mockServer.ts @@ -55,9 +55,10 @@ interface Resource { } export class MockServer extends Application { - async loadAndInstall() { + async loadAndInstall(options: any = {}) { await this.load(); await this.install({ + ...options, sync: { force: true, alter: { diff --git a/packages/core/test/tsconfig.build.json b/packages/core/test/tsconfig.build.json deleted file mode 100644 index 9bdd87769..000000000 --- a/packages/core/test/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./lib", - "declaration": true - }, - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/core/test/tsconfig.json b/packages/core/test/tsconfig.json deleted file mode 100644 index bf4bd3fa9..000000000 --- a/packages/core/test/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/core/utils/package.json b/packages/core/utils/package.json index da03a70c1..31d7ba2b2 100644 --- a/packages/core/utils/package.json +++ b/packages/core/utils/package.json @@ -1,6 +1,6 @@ { "name": "@nocobase/utils", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "main": "lib/index.js", "types": "./lib/index.d.ts", "license": "Apache-2.0", @@ -10,11 +10,6 @@ "url": "http://www.apache.org/licenses/LICENSE-2.0" } ], - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "dependencies": { "deepmerge": "^4.2.2", "flat-to-nested": "^1.1.1" diff --git a/packages/core/utils/src/index.ts b/packages/core/utils/src/index.ts index 20890e60d..3d40c214b 100644 --- a/packages/core/utils/src/index.ts +++ b/packages/core/utils/src/index.ts @@ -3,5 +3,4 @@ export * from './mixin'; export * from './mixin/AsyncEmitter'; export * from './registry'; export * from './uid'; -export * from './umiConfig'; diff --git a/packages/core/utils/src/umiConfig.ts b/packages/core/utils/src/umiConfig.ts deleted file mode 100644 index cdb3afafe..000000000 --- a/packages/core/utils/src/umiConfig.ts +++ /dev/null @@ -1,36 +0,0 @@ -export function getUmiConfig() { - const { SERVER_PORT, SERVER_BASE_URL } = process.env; - const SERVER_BASE_PATH = process.env.SERVER_BASE_PATH || '/api/'; - const PROXY_TARGET_URL = process.env.PROXY_TARGET_URL || `http://127.0.0.1:${SERVER_PORT}`; - const LOCAL_STORAGE_BASE_URL = process.env.LOCAL_STORAGE_BASE_URL || '/uploads'; - - function getLocalStorageProxy() { - if (LOCAL_STORAGE_BASE_URL.startsWith('http')) { - return {}; - } - - return { - [LOCAL_STORAGE_BASE_URL]: { - target: PROXY_TARGET_URL, - changeOrigin: true, - }, - }; - } - - return { - define: { - 'process.env.SERVER_BASE_URL': SERVER_BASE_URL || SERVER_BASE_PATH, - }, - // only proxy when using `umi dev` - // if the assets are built, will not proxy - proxy: { - [SERVER_BASE_PATH]: { - target: PROXY_TARGET_URL, - changeOrigin: true, - pathRewrite: { [`^${SERVER_BASE_PATH}`]: SERVER_BASE_PATH }, - }, - // for local storage - ...getLocalStorageProxy(), - }, - }; -} diff --git a/packages/core/utils/tsconfig.build.json b/packages/core/utils/tsconfig.build.json deleted file mode 100644 index 9bdd87769..000000000 --- a/packages/core/utils/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./lib", - "declaration": true - }, - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/core/utils/tsconfig.json b/packages/core/utils/tsconfig.json deleted file mode 100644 index bf4bd3fa9..000000000 --- a/packages/core/utils/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/core/utils/umiConfig.js b/packages/core/utils/umiConfig.js deleted file mode 100644 index 749ebb3c0..000000000 --- a/packages/core/utils/umiConfig.js +++ /dev/null @@ -1,38 +0,0 @@ -function getUmiConfig() { - const { SERVER_PORT, SERVER_BASE_URL } = process.env; - const SERVER_BASE_PATH = process.env.SERVER_BASE_PATH || '/api/'; - const PROXY_TARGET_URL = process.env.PROXY_TARGET_URL || `http://127.0.0.1:${SERVER_PORT}`; - const LOCAL_STORAGE_BASE_URL = process.env.LOCAL_STORAGE_BASE_URL || '/uploads'; - - function getLocalStorageProxy() { - if (LOCAL_STORAGE_BASE_URL.startsWith('http')) { - return {}; - } - - return { - [LOCAL_STORAGE_BASE_URL]: { - target: PROXY_TARGET_URL, - changeOrigin: true, - }, - }; - } - - return { - define: { - 'process.env.SERVER_BASE_URL': SERVER_BASE_URL || SERVER_BASE_PATH, - }, - // only proxy when using `umi dev` - // if the assets are built, will not proxy - proxy: { - [SERVER_BASE_PATH]: { - target: PROXY_TARGET_URL, - changeOrigin: true, - pathRewrite: { [`^${SERVER_BASE_PATH}`]: SERVER_BASE_PATH }, - }, - // for local storage - ...getLocalStorageProxy(), - }, - }; -} - -exports.getUmiConfig = getUmiConfig; diff --git a/packages/plugins/acl/package.json b/packages/plugins/acl/package.json index 5dd8da00b..fe2a27d4a 100644 --- a/packages/plugins/acl/package.json +++ b/packages/plugins/acl/package.json @@ -1,6 +1,6 @@ { "name": "@nocobase/plugin-acl", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "description": "", "license": "Apache-2.0", "licenses": [ @@ -11,15 +11,10 @@ ], "main": "./lib/index.js", "types": "./lib/index.d.ts", - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "dependencies": { - "@nocobase/acl": "0.7.0-alpha.34", - "@nocobase/database": "0.7.0-alpha.34", - "@nocobase/server": "0.7.0-alpha.34" + "@nocobase/acl": "0.7.0-alpha.55", + "@nocobase/database": "0.7.0-alpha.55", + "@nocobase/server": "0.7.0-alpha.55" }, "repository": { "type": "git", diff --git a/packages/plugins/acl/src/__tests__/own.test.ts b/packages/plugins/acl/src/__tests__/own.test.ts index ddd4538b8..bab333111 100644 --- a/packages/plugins/acl/src/__tests__/own.test.ts +++ b/packages/plugins/acl/src/__tests__/own.test.ts @@ -1,11 +1,10 @@ -import { mockServer, MockServer } from '@nocobase/test'; -import { Database } from '@nocobase/database'; import { ACL } from '@nocobase/acl'; -import { UiSchemaRepository } from '@nocobase/plugin-ui-schema-storage'; -import PluginUiSchema from '@nocobase/plugin-ui-schema-storage'; -import PluginCollectionManager from '@nocobase/plugin-collection-manager'; +import { Database } from '@nocobase/database'; import PluginACL from '@nocobase/plugin-acl'; +import PluginCollectionManager from '@nocobase/plugin-collection-manager'; +import PluginUiSchema from '@nocobase/plugin-ui-schema-storage'; import PluginUser from '@nocobase/plugin-users'; +import { mockServer, MockServer } from '@nocobase/test'; import supertest from 'supertest'; describe('own test', () => { @@ -38,7 +37,7 @@ describe('own test', () => { app.plugin(PluginCollectionManager); app.plugin(PluginUser, { jwt: { - secret: process.env.JWT_SECRET || '09f26e402586e2faa8da4c98a35f1b20d6b033c60', + secret: process.env.APP_KEY || 'test-key', }, }); diff --git a/packages/plugins/acl/tsconfig.build.json b/packages/plugins/acl/tsconfig.build.json deleted file mode 100644 index 864ca372a..000000000 --- a/packages/plugins/acl/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./lib", - "declaration": true - }, - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"] -} diff --git a/packages/plugins/acl/tsconfig.json b/packages/plugins/acl/tsconfig.json deleted file mode 100644 index 968cf0372..000000000 --- a/packages/plugins/acl/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} diff --git a/packages/plugins/action-logs/package.json b/packages/plugins/action-logs/package.json index 6aaf7a287..de3d3af68 100644 --- a/packages/plugins/action-logs/package.json +++ b/packages/plugins/action-logs/package.json @@ -1,7 +1,8 @@ { "name": "@nocobase/plugin-action-logs", - "version": "0.7.0-alpha.34", - "main": "lib/index.js", + "version": "0.7.0-alpha.55", + "main": "./lib/index.js", + "types": "./lib/index.d.ts", "license": "Apache-2.0", "licenses": [ { @@ -9,13 +10,8 @@ "url": "http://www.apache.org/licenses/LICENSE-2.0" } ], - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "devDependencies": { - "@nocobase/test": "0.7.0-alpha.34" + "@nocobase/test": "0.7.0-alpha.55" }, "gitHead": "a00b45a2686695c5f4824d074ac5e1aff210793a" } diff --git a/packages/plugins/action-logs/tsconfig.build.json b/packages/plugins/action-logs/tsconfig.build.json deleted file mode 100644 index 9bdd87769..000000000 --- a/packages/plugins/action-logs/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./lib", - "declaration": true - }, - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/plugins/action-logs/tsconfig.json b/packages/plugins/action-logs/tsconfig.json deleted file mode 100644 index bf4bd3fa9..000000000 --- a/packages/plugins/action-logs/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/plugins/china-region/package.json b/packages/plugins/china-region/package.json index 8628e7b29..9d68ed4d7 100644 --- a/packages/plugins/china-region/package.json +++ b/packages/plugins/china-region/package.json @@ -1,6 +1,6 @@ { "name": "@nocobase/plugin-china-region", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "main": "lib/index.js", "license": "Apache-2.0", "licenses": [ @@ -9,16 +9,11 @@ "url": "http://www.apache.org/licenses/LICENSE-2.0" } ], - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "dependencies": { "china-division": "^2.4.0" }, "devDependencies": { - "@nocobase/test": "0.7.0-alpha.34" + "@nocobase/test": "0.7.0-alpha.55" }, "gitHead": "a00b45a2686695c5f4824d074ac5e1aff210793a" } diff --git a/packages/plugins/china-region/tsconfig.build.json b/packages/plugins/china-region/tsconfig.build.json deleted file mode 100644 index 9bdd87769..000000000 --- a/packages/plugins/china-region/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./lib", - "declaration": true - }, - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/plugins/china-region/tsconfig.json b/packages/plugins/china-region/tsconfig.json deleted file mode 100644 index bf4bd3fa9..000000000 --- a/packages/plugins/china-region/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/plugins/client/package.json b/packages/plugins/client/package.json index 76441d14b..48e2af34a 100644 --- a/packages/plugins/client/package.json +++ b/packages/plugins/client/package.json @@ -1,6 +1,6 @@ { "name": "@nocobase/plugin-client", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "main": "lib/index.js", "license": "Apache-2.0", "licenses": [ @@ -9,16 +9,11 @@ "url": "http://www.apache.org/licenses/LICENSE-2.0" } ], - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "dependencies": { - "@nocobase/server": "0.7.0-alpha.34" + "@nocobase/server": "0.7.0-alpha.55" }, "devDependencies": { - "@nocobase/test": "0.7.0-alpha.34" + "@nocobase/test": "0.7.0-alpha.55" }, "gitHead": "a00b45a2686695c5f4824d074ac5e1aff210793a" } diff --git a/packages/plugins/client/src/plugin.ts b/packages/plugins/client/src/plugin.ts index 6063c03e9..968b7920b 100644 --- a/packages/plugins/client/src/plugin.ts +++ b/packages/plugins/client/src/plugin.ts @@ -1,14 +1,14 @@ import { Plugin } from '@nocobase/server'; import send from 'koa-send'; import serve from 'koa-static'; -import { resolve } from 'path'; +import { isAbsolute, resolve } from 'path'; export class ClientPlugin extends Plugin { async beforeLoad() { - const cmd = this.app.findCommand('install'); - if (cmd) { - cmd.option('--import-demo'); - } + // const cmd = this.app.findCommand('install'); + // if (cmd) { + // cmd.option('--import-demo'); + // } this.app.on('afterInstall', async (app, options) => { const [opts] = options?.cliArgs || [{}]; if (opts?.importDemo) { @@ -23,6 +23,16 @@ export class ClientPlugin extends Plugin { this.app.resource({ name: 'app', actions: { + async getInfo(ctx, next) { + const SystemSetting = ctx.db.getRepository('systemSettings'); + const systemSetting = await SystemSetting.findOne(); + const currentUser = ctx.state.currentUser; + ctx.body = { + version: this.app.getVersion(), + lang: currentUser?.appLang || systemSetting?.appLang || process.env.APP_LANG || 'en-US', + }; + await next(); + }, async getLang(ctx, next) { const SystemSetting = ctx.db.getRepository('systemSettings'); const systemSetting = await SystemSetting.findOne(); @@ -52,12 +62,12 @@ export class ClientPlugin extends Plugin { }, }, }); - let root = this.options.dist; - if (root && !root.startsWith('/')) { + let root = this.options.dist || `./packages/app/client/dist`; + if (!isAbsolute(root)) { root = resolve(process.cwd(), root); } this.app.middleware.unshift(async (ctx, next) => { - if (process.env.NOCOBASE_ENV === 'production') { + if (process.env.APP_ENV === 'production') { return next(); } if (!root) { diff --git a/packages/plugins/client/tsconfig.build.json b/packages/plugins/client/tsconfig.build.json deleted file mode 100644 index 9bdd87769..000000000 --- a/packages/plugins/client/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./lib", - "declaration": true - }, - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/plugins/client/tsconfig.json b/packages/plugins/client/tsconfig.json deleted file mode 100644 index bf4bd3fa9..000000000 --- a/packages/plugins/client/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/plugins/collection-manager/package.json b/packages/plugins/collection-manager/package.json index 5af3efc45..1feba8eda 100644 --- a/packages/plugins/collection-manager/package.json +++ b/packages/plugins/collection-manager/package.json @@ -1,6 +1,6 @@ { "name": "@nocobase/plugin-collection-manager", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "main": "lib/index.js", "license": "Apache-2.0", "licenses": [ @@ -9,13 +9,8 @@ "url": "http://www.apache.org/licenses/LICENSE-2.0" } ], - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "devDependencies": { - "@nocobase/test": "0.7.0-alpha.34" + "@nocobase/test": "0.7.0-alpha.55" }, "gitHead": "a00b45a2686695c5f4824d074ac5e1aff210793a" } diff --git a/packages/plugins/collection-manager/tsconfig.build.json b/packages/plugins/collection-manager/tsconfig.build.json deleted file mode 100644 index 9bdd87769..000000000 --- a/packages/plugins/collection-manager/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./lib", - "declaration": true - }, - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/plugins/collection-manager/tsconfig.json b/packages/plugins/collection-manager/tsconfig.json deleted file mode 100644 index bf4bd3fa9..000000000 --- a/packages/plugins/collection-manager/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/plugins/error-handler/package.json b/packages/plugins/error-handler/package.json index 23c70d6fb..0e6e6ece2 100644 --- a/packages/plugins/error-handler/package.json +++ b/packages/plugins/error-handler/package.json @@ -1,6 +1,6 @@ { "name": "@nocobase/plugin-error-handler", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "description": "", "license": "Apache-2.0", "licenses": [ @@ -11,14 +11,9 @@ ], "main": "./lib/index.js", "types": "./lib/index.d.ts", - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "dependencies": { "@formily/json-schema": "^2.0.15", - "@nocobase/server": "0.7.0-alpha.34" + "@nocobase/server": "0.7.0-alpha.55" }, "repository": { "type": "git", diff --git a/packages/plugins/error-handler/tsconfig.build.json b/packages/plugins/error-handler/tsconfig.build.json deleted file mode 100644 index 9bdd87769..000000000 --- a/packages/plugins/error-handler/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./lib", - "declaration": true - }, - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/plugins/error-handler/tsconfig.json b/packages/plugins/error-handler/tsconfig.json deleted file mode 100644 index bf4bd3fa9..000000000 --- a/packages/plugins/error-handler/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/plugins/file-manager/package.json b/packages/plugins/file-manager/package.json index 0c3b183af..990afd998 100644 --- a/packages/plugins/file-manager/package.json +++ b/packages/plugins/file-manager/package.json @@ -1,6 +1,6 @@ { "name": "@nocobase/plugin-file-manager", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "main": "lib/index.js", "license": "Apache-2.0", "licenses": [ @@ -9,14 +9,9 @@ "url": "http://www.apache.org/licenses/LICENSE-2.0" } ], - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "dependencies": { "@koa/multer": "^3.0.0", - "@nocobase/server": "0.7.0-alpha.34", + "@nocobase/server": "0.7.0-alpha.55", "aws-sdk": "^2.2.32", "koa-static": "^5.0.0", "mime-match": "^1.0.2", @@ -26,7 +21,7 @@ "multer-s3": "^2.10.0" }, "devDependencies": { - "@nocobase/test": "0.7.0-alpha.34", + "@nocobase/test": "0.7.0-alpha.55", "@types/koa-multer": "^1.0.1", "@types/multer": "^1.4.5" }, diff --git a/packages/plugins/file-manager/src/__tests__/action.test.ts b/packages/plugins/file-manager/src/__tests__/action.test.ts index 982c4772a..22cded215 100644 --- a/packages/plugins/file-manager/src/__tests__/action.test.ts +++ b/packages/plugins/file-manager/src/__tests__/action.test.ts @@ -4,9 +4,9 @@ import { getApp } from '.'; import { FILE_FIELD_NAME, STORAGE_TYPE_LOCAL } from '../constants'; -const { LOCAL_STORAGE_BASE_URL, SERVER_PORT = '13002' } = process.env; +const { LOCAL_STORAGE_BASE_URL, APP_PORT = '13000' } = process.env; -const DEFAULT_LOCAL_BASE_URL = LOCAL_STORAGE_BASE_URL || `http://localhost:${SERVER_PORT}/uploads`; +const DEFAULT_LOCAL_BASE_URL = LOCAL_STORAGE_BASE_URL || `http://localhost:${APP_PORT}/uploads`; describe('action', () => { let app; @@ -81,7 +81,7 @@ describe('action', () => { expect(file.toString()).toBe('Hello world!\n'); // 通过 url 是否能正确访问 - const url = attachment.url.replace(`http://localhost:${SERVER_PORT}`, ''); + const url = attachment.url.replace(`http://localhost:${APP_PORT}`, ''); const content = await agent.get(url); expect(content.text).toBe('Hello world!\n'); }); @@ -132,7 +132,7 @@ describe('action', () => { }); it('upload to assoiciated field and storage with full base url should be ok', async () => { - const BASE_URL = `http://localhost:${SERVER_PORT}/another-uploads`; + const BASE_URL = `http://localhost:${APP_PORT}/another-uploads`; const storageName = 'local_private'; const urlPath = 'test/path'; const Storage = db.getCollection('storages').model; @@ -158,7 +158,7 @@ describe('action', () => { // 文件的 url 是否正常生成 expect(body.data.url).toBe(`${BASE_URL}/${urlPath}/${body.data.filename}`); console.log(body.data.url); - const url = body.data.url.replace(`http://localhost:${SERVER_PORT}`, ''); + const url = body.data.url.replace(`http://localhost:${APP_PORT}`, ''); const content = await agent.get(url); expect(content.text).toBe('Hello world!\n'); }); diff --git a/packages/plugins/file-manager/src/server.ts b/packages/plugins/file-manager/src/server.ts index 1bea76639..55685befa 100644 --- a/packages/plugins/file-manager/src/server.ts +++ b/packages/plugins/file-manager/src/server.ts @@ -32,7 +32,7 @@ export default class PluginFileManager extends Plugin { this.app.resourcer.use(uploadMiddleware); this.app.resourcer.registerActionHandler('upload', uploadAction); - if (process.env.NOCOBASE_ENV !== 'production') { + if (process.env.APP_ENV !== 'production') { await getStorageConfig(STORAGE_TYPE_LOCAL).middleware(this.app); } diff --git a/packages/plugins/file-manager/src/storages/local.ts b/packages/plugins/file-manager/src/storages/local.ts index 44dc2e17d..f934f4bae 100644 --- a/packages/plugins/file-manager/src/storages/local.ts +++ b/packages/plugins/file-manager/src/storages/local.ts @@ -53,7 +53,7 @@ function getDocumentRoot(storage): string { } async function middleware(app: Application, options?) { - const LOCALHOST = `http://localhost:${process.env.SERVER_PORT || '13002'}`; + const LOCALHOST = `http://localhost:${process.env.APP_PORT || '13000'}`; const Storage = app.db.getCollection('storages'); const storages = new Map(); @@ -119,13 +119,13 @@ export default { }); }, defaults() { - const { LOCAL_STORAGE_DEST, LOCAL_STORAGE_BASE_URL, SERVER_PORT } = process.env; + const { LOCAL_STORAGE_DEST, LOCAL_STORAGE_BASE_URL, APP_PORT } = process.env; const documentRoot = LOCAL_STORAGE_DEST || 'uploads'; return { title: '本地存储', type: STORAGE_TYPE_LOCAL, name: `local`, - baseUrl: LOCAL_STORAGE_BASE_URL || `http://localhost:${SERVER_PORT || '13002'}/${documentRoot}`, + baseUrl: LOCAL_STORAGE_BASE_URL || `http://localhost:${APP_PORT || '13000'}/${documentRoot}`, options: { documentRoot, }, diff --git a/packages/plugins/file-manager/tsconfig.build.json b/packages/plugins/file-manager/tsconfig.build.json deleted file mode 100644 index 9bdd87769..000000000 --- a/packages/plugins/file-manager/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./lib", - "declaration": true - }, - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/plugins/file-manager/tsconfig.json b/packages/plugins/file-manager/tsconfig.json deleted file mode 100644 index bf4bd3fa9..000000000 --- a/packages/plugins/file-manager/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/plugins/multi-app-manager/package.json b/packages/plugins/multi-app-manager/package.json index ebdcb327b..f3113aebe 100644 --- a/packages/plugins/multi-app-manager/package.json +++ b/packages/plugins/multi-app-manager/package.json @@ -1,6 +1,6 @@ { "name": "@nocobase/plugin-multi-app-manager", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "main": "lib/index.js", "license": "Apache-2.0", "licenses": [ @@ -9,13 +9,8 @@ "url": "http://www.apache.org/licenses/LICENSE-2.0" } ], - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "dependencies": { - "@nocobase/server": "0.7.0-alpha.34" + "@nocobase/server": "0.7.0-alpha.55" }, "gitHead": "a00b45a2686695c5f4824d074ac5e1aff210793a" } diff --git a/packages/plugins/multi-app-manager/tsconfig.build.json b/packages/plugins/multi-app-manager/tsconfig.build.json deleted file mode 100644 index 9bdd87769..000000000 --- a/packages/plugins/multi-app-manager/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./lib", - "declaration": true - }, - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/plugins/multi-app-manager/tsconfig.json b/packages/plugins/multi-app-manager/tsconfig.json deleted file mode 100644 index bf4bd3fa9..000000000 --- a/packages/plugins/multi-app-manager/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/plugins/notifications/package.json b/packages/plugins/notifications/package.json index 91e0d4836..216506f97 100644 --- a/packages/plugins/notifications/package.json +++ b/packages/plugins/notifications/package.json @@ -1,6 +1,6 @@ { "name": "@nocobase/plugin-notifications", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "main": "lib/index.js", "license": "Apache-2.0", "licenses": [ @@ -9,16 +9,11 @@ "url": "http://www.apache.org/licenses/LICENSE-2.0" } ], - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "dependencies": { "nodemailer": "^6.6.1" }, "devDependencies": { - "@nocobase/test": "0.7.0-alpha.34", + "@nocobase/test": "0.7.0-alpha.55", "@types/nodemailer": "6.4.4", "nodemailer-mock": "^1.5.11" }, diff --git a/packages/plugins/notifications/tsconfig.build.json b/packages/plugins/notifications/tsconfig.build.json deleted file mode 100644 index 9bdd87769..000000000 --- a/packages/plugins/notifications/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./lib", - "declaration": true - }, - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/plugins/notifications/tsconfig.json b/packages/plugins/notifications/tsconfig.json deleted file mode 100644 index bf4bd3fa9..000000000 --- a/packages/plugins/notifications/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/plugins/system-settings/package.json b/packages/plugins/system-settings/package.json index 980edfe4a..0b17b75da 100644 --- a/packages/plugins/system-settings/package.json +++ b/packages/plugins/system-settings/package.json @@ -1,6 +1,6 @@ { "name": "@nocobase/plugin-system-settings", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "main": "lib/index.js", "license": "Apache-2.0", "licenses": [ @@ -9,13 +9,8 @@ "url": "http://www.apache.org/licenses/LICENSE-2.0" } ], - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "devDependencies": { - "@nocobase/test": "0.7.0-alpha.34" + "@nocobase/test": "0.7.0-alpha.55" }, "gitHead": "a00b45a2686695c5f4824d074ac5e1aff210793a" } diff --git a/packages/plugins/system-settings/src/plugin.ts b/packages/plugins/system-settings/src/plugin.ts index f2b9fc4fe..20661fa67 100644 --- a/packages/plugins/system-settings/src/plugin.ts +++ b/packages/plugins/system-settings/src/plugin.ts @@ -3,11 +3,15 @@ import { InstallOptions, Plugin } from '@nocobase/server'; import { resolve } from 'path'; export class SystemSettingsPlugin extends Plugin { + getInitAppLang(options) { + return options?.cliArgs?.[0]?.opts?.lang || process.env.INIT_APP_LANG || 'en-US'; + } + async install(options?: InstallOptions) { await this.db.getRepository('systemSettings').create({ values: { title: 'NocoBase', - appLang: options?.cliArgs?.[0]?.opts?.lang || process.env.APP_LANG || 'en-US', + appLang: this.getInitAppLang(options), logo: { title: 'nocobase-logo', filename: '682e5ad037dd02a0fe4800a3e91c283b.png', @@ -22,7 +26,7 @@ export class SystemSettingsPlugin extends Plugin { beforeLoad() { const cmd = this.app.findCommand('install'); if (cmd) { - cmd.option('--lang [lang]'); + cmd.option('-l, --lang [lang]'); } } diff --git a/packages/plugins/system-settings/tsconfig.build.json b/packages/plugins/system-settings/tsconfig.build.json deleted file mode 100644 index 864ca372a..000000000 --- a/packages/plugins/system-settings/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./lib", - "declaration": true - }, - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"] -} diff --git a/packages/plugins/system-settings/tsconfig.json b/packages/plugins/system-settings/tsconfig.json deleted file mode 100644 index 968cf0372..000000000 --- a/packages/plugins/system-settings/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} diff --git a/packages/plugins/ui-routes-storage/package.json b/packages/plugins/ui-routes-storage/package.json index 3faced371..c98a36f54 100644 --- a/packages/plugins/ui-routes-storage/package.json +++ b/packages/plugins/ui-routes-storage/package.json @@ -1,6 +1,6 @@ { "name": "@nocobase/plugin-ui-routes-storage", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "main": "lib/index.js", "license": "Apache-2.0", "licenses": [ @@ -9,16 +9,11 @@ "url": "http://www.apache.org/licenses/LICENSE-2.0" } ], - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "dependencies": { "flat-to-nested": "^1.1.1" }, "devDependencies": { - "@nocobase/test": "0.7.0-alpha.34" + "@nocobase/test": "0.7.0-alpha.55" }, "gitHead": "a00b45a2686695c5f4824d074ac5e1aff210793a" } diff --git a/packages/plugins/ui-routes-storage/tsconfig.build.json b/packages/plugins/ui-routes-storage/tsconfig.build.json deleted file mode 100644 index 9bdd87769..000000000 --- a/packages/plugins/ui-routes-storage/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./lib", - "declaration": true - }, - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/plugins/ui-routes-storage/tsconfig.json b/packages/plugins/ui-routes-storage/tsconfig.json deleted file mode 100644 index bf4bd3fa9..000000000 --- a/packages/plugins/ui-routes-storage/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/plugins/ui-schema-storage/package.json b/packages/plugins/ui-schema-storage/package.json index ce2a5a93d..b5fc7bc0f 100644 --- a/packages/plugins/ui-schema-storage/package.json +++ b/packages/plugins/ui-schema-storage/package.json @@ -1,6 +1,6 @@ { "name": "@nocobase/plugin-ui-schema-storage", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "main": "lib/index.js", "license": "Apache-2.0", "licenses": [ @@ -9,14 +9,9 @@ "url": "http://www.apache.org/licenses/LICENSE-2.0" } ], - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "devDependencies": { "@formily/json-schema": "2.0.20", - "@nocobase/test": "0.7.0-alpha.34" + "@nocobase/test": "0.7.0-alpha.55" }, "gitHead": "a00b45a2686695c5f4824d074ac5e1aff210793a" } diff --git a/packages/plugins/ui-schema-storage/tsconfig.build.json b/packages/plugins/ui-schema-storage/tsconfig.build.json deleted file mode 100644 index 864ca372a..000000000 --- a/packages/plugins/ui-schema-storage/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./lib", - "declaration": true - }, - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"] -} diff --git a/packages/plugins/ui-schema-storage/tsconfig.json b/packages/plugins/ui-schema-storage/tsconfig.json deleted file mode 100644 index 968cf0372..000000000 --- a/packages/plugins/ui-schema-storage/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} diff --git a/packages/plugins/users/package.json b/packages/plugins/users/package.json index 616036688..4fcd92534 100644 --- a/packages/plugins/users/package.json +++ b/packages/plugins/users/package.json @@ -1,6 +1,6 @@ { "name": "@nocobase/plugin-users", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "main": "lib/index.js", "license": "Apache-2.0", "licenses": [ @@ -9,16 +9,11 @@ "url": "http://www.apache.org/licenses/LICENSE-2.0" } ], - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "dependencies": { "jsonwebtoken": "^8.5.1" }, "devDependencies": { - "@nocobase/test": "0.7.0-alpha.34", + "@nocobase/test": "0.7.0-alpha.55", "@types/jsonwebtoken": "^8.5.8" }, "gitHead": "a00b45a2686695c5f4824d074ac5e1aff210793a" diff --git a/packages/plugins/users/src/__tests__/actions.test.ts b/packages/plugins/users/src/__tests__/actions.test.ts index 56cbd660f..41431c3ec 100644 --- a/packages/plugins/users/src/__tests__/actions.test.ts +++ b/packages/plugins/users/src/__tests__/actions.test.ts @@ -14,6 +14,9 @@ describe('actions', () => { beforeEach(async () => { api = mockServer(); await api.cleanDb(); + process.env.INIT_ROOT_EMAIL = 'test@nocobase.com'; + process.env.INIT_ROOT_PASSWORD = '123456'; + process.env.INIT_ROOT_NICKNAME = 'Test'; api.plugin(PluginUsers, userPluginConfig); api.plugin(PluginACL); @@ -29,14 +32,14 @@ describe('actions', () => { }); it('should login user with password', async () => { - const { adminEmail, adminPassword } = userPluginConfig.installing; + const { INIT_ROOT_EMAIL, INIT_ROOT_PASSWORD } = process.env; let response = await api.agent().resource('users').check(); expect(response.body.data.id).toBeUndefined(); response = await agent.post('/users:signin').send({ - email: adminEmail, - password: adminPassword, + email: INIT_ROOT_EMAIL, + password: INIT_ROOT_PASSWORD, }); expect(response.statusCode).toEqual(200); diff --git a/packages/plugins/users/src/__tests__/utils.ts b/packages/plugins/users/src/__tests__/utils.ts index 4e9cf96b8..3b5df705f 100644 --- a/packages/plugins/users/src/__tests__/utils.ts +++ b/packages/plugins/users/src/__tests__/utils.ts @@ -4,9 +4,4 @@ export const userPluginConfig: UserPluginConfig = { jwt: { secret: '09f26e402586e2faa8da4c98a35f1b20d6b033c60', }, - installing: { - adminEmail: 'test@test.com', - adminPassword: 'password', - adminNickname: 'test', - }, }; diff --git a/packages/plugins/users/src/jwt-service.ts b/packages/plugins/users/src/jwt-service.ts index e18c7a838..aa16df629 100644 --- a/packages/plugins/users/src/jwt-service.ts +++ b/packages/plugins/users/src/jwt-service.ts @@ -13,7 +13,7 @@ export class JwtService { } private secret() { - return this.options.secret; + return this.options.secret || process.env.APP_KEY; } sign(payload: any) { diff --git a/packages/plugins/users/src/server.ts b/packages/plugins/users/src/server.ts index 54e0cfcd9..b4816fbb4 100644 --- a/packages/plugins/users/src/server.ts +++ b/packages/plugins/users/src/server.ts @@ -8,12 +8,6 @@ import { UserModel } from './models/UserModel'; export interface UserPluginConfig { jwt: JwtOptions; - - installing?: { - adminNickname: string; - adminEmail: string; - adminPassword: string; - }; } export default class UsersPlugin extends Plugin { @@ -21,10 +15,16 @@ export default class UsersPlugin extends Plugin { constructor(app, options) { super(app, options); - this.jwtService = new JwtService(options?.jwt); + this.jwtService = new JwtService(options?.jwt || {}); } async beforeLoad() { + const cmd = this.app.findCommand('install'); + if (cmd) { + cmd.requiredOption('-e, --root-email ', '', process.env.INIT_ROOT_EMAIL); + cmd.requiredOption('-p, --root-password ', '', process.env.INIT_ROOT_PASSWORD); + cmd.option('-n, --root-nickname [rootNickname]'); + } this.db.registerOperators({ $isCurrentUser(_, ctx) { return { @@ -106,30 +106,29 @@ export default class UsersPlugin extends Plugin { }); } - getRootUserInfo() { + getInstallingData(options: any = {}) { + const { INIT_ROOT_NICKNAME, INIT_ROOT_PASSWORD, INIT_ROOT_EMAIL } = process.env; const { - adminNickname = 'Super Admin', - adminEmail = 'admin@nocobase.com', - adminPassword = 'admin123', - } = this.options.installing || {}; - + rootEmail = INIT_ROOT_EMAIL, + rootPassword = INIT_ROOT_PASSWORD, + rootNickname = INIT_ROOT_NICKNAME || 'Super Admin', + } = options.users || options?.cliArgs?.[0] || {}; return { - adminNickname, - adminEmail, - adminPassword, + rootEmail, + rootPassword, + rootNickname, }; } - async install() { - const { adminNickname, adminPassword, adminEmail } = this.getRootUserInfo(); - + async install(options) { + const { rootNickname, rootPassword, rootEmail } = this.getInstallingData(options); const User = this.db.getCollection('users'); const user = await User.repository.create({ values: { - nickname: adminNickname, - email: adminEmail, - password: adminPassword, - roles: ['root', 'admin'], + email: rootEmail, + password: rootPassword, + nickname: rootNickname, + roles: ['root', 'admin', 'member'], }, }); diff --git a/packages/plugins/users/tsconfig.build.json b/packages/plugins/users/tsconfig.build.json deleted file mode 100644 index 9bdd87769..000000000 --- a/packages/plugins/users/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./lib", - "declaration": true - }, - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/plugins/users/tsconfig.json b/packages/plugins/users/tsconfig.json deleted file mode 100644 index bf4bd3fa9..000000000 --- a/packages/plugins/users/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/plugins/workflow/package.json b/packages/plugins/workflow/package.json index 8bb65680f..e797dbe00 100644 --- a/packages/plugins/workflow/package.json +++ b/packages/plugins/workflow/package.json @@ -1,6 +1,6 @@ { "name": "@nocobase/plugin-workflow", - "version": "0.7.0-alpha.34", + "version": "0.7.0-alpha.55", "main": "lib/index.js", "license": "Apache-2.0", "licenses": [ @@ -9,20 +9,15 @@ "url": "http://www.apache.org/licenses/LICENSE-2.0" } ], - "scripts": { - "build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm", - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm" - }, "dependencies": { - "@nocobase/actions": "0.7.0-alpha.34", - "@nocobase/database": "0.7.0-alpha.34", - "@nocobase/server": "0.7.0-alpha.34", - "@nocobase/utils": "0.7.0-alpha.34", + "@nocobase/actions": "0.7.0-alpha.55", + "@nocobase/database": "0.7.0-alpha.55", + "@nocobase/server": "0.7.0-alpha.55", + "@nocobase/utils": "0.7.0-alpha.55", "json-templates": "^4.2.0" }, "devDependencies": { - "@nocobase/test": "0.7.0-alpha.34" + "@nocobase/test": "0.7.0-alpha.55" }, "gitHead": "a00b45a2686695c5f4824d074ac5e1aff210793a" } diff --git a/packages/plugins/workflow/tsconfig.build.json b/packages/plugins/workflow/tsconfig.build.json deleted file mode 100644 index 3e1d1687c..000000000 --- a/packages/plugins/workflow/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./lib", - "declaration": true - }, - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"] - } \ No newline at end of file diff --git a/packages/plugins/workflow/tsconfig.json b/packages/plugins/workflow/tsconfig.json deleted file mode 100644 index bf4bd3fa9..000000000 --- a/packages/plugins/workflow/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "include": ["./src/**/*.ts", "./src/**/*.tsx"], - "exclude": ["./esm/*", "./lib/*"] -} \ No newline at end of file diff --git a/packages/presets/.gitkeep b/packages/presets/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/packages/presets/nocobase/.npmignore b/packages/presets/nocobase/.npmignore new file mode 100644 index 000000000..83426817e --- /dev/null +++ b/packages/presets/nocobase/.npmignore @@ -0,0 +1,4 @@ +node_modules +*.log +docs +__tests__ diff --git a/packages/presets/nocobase/package.json b/packages/presets/nocobase/package.json new file mode 100644 index 000000000..f5c632a51 --- /dev/null +++ b/packages/presets/nocobase/package.json @@ -0,0 +1,33 @@ +{ + "name": "@nocobase/preset-nocobase", + "version": "0.7.0-alpha.55", + "license": "Apache-2.0", + "licenses": [ + { + "type": "Apache-2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0" + } + ], + "main": "./lib/index.js", + "types": "./lib/index.d.ts", + "dependencies": { + "@nocobase/plugin-acl": "0.7.0-alpha.55", + "@nocobase/plugin-china-region": "0.7.0-alpha.55", + "@nocobase/plugin-client": "0.7.0-alpha.55", + "@nocobase/plugin-collection-manager": "0.7.0-alpha.55", + "@nocobase/plugin-error-handler": "0.7.0-alpha.55", + "@nocobase/plugin-file-manager": "0.7.0-alpha.55", + "@nocobase/plugin-system-settings": "0.7.0-alpha.55", + "@nocobase/plugin-ui-routes-storage": "0.7.0-alpha.55", + "@nocobase/plugin-ui-schema-storage": "0.7.0-alpha.55", + "@nocobase/plugin-users": "0.7.0-alpha.55", + "@nocobase/plugin-workflow": "0.7.0-alpha.55", + "@nocobase/server": "0.7.0-alpha.55" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/nocobase/nocobase.git", + "directory": "packages/presets/nocobase" + }, + "gitHead": "66d2a4e5fa6e21872a2eda60ae423752c21bf4f8" +} diff --git a/packages/presets/nocobase/src/index.ts b/packages/presets/nocobase/src/index.ts new file mode 100644 index 000000000..e294aad5f --- /dev/null +++ b/packages/presets/nocobase/src/index.ts @@ -0,0 +1,9 @@ +import { Plugin } from '@nocobase/server'; + +export class PresetNocobase extends Plugin { + getName(): string { + return this.getPackageName(__dirname); + } +} + +export default PresetNocobase; diff --git a/publish.js b/publish.js deleted file mode 100644 index 50bfffe70..000000000 --- a/publish.js +++ /dev/null @@ -1,29 +0,0 @@ -const { readdir } = require('fs/promises'); -const path = require('path'); -const { exec } = require('child_process'); - -const getDirectories = async (source) => - (await readdir(source, { withFileTypes: true })) - .filter((dirent) => dirent.isDirectory()) - .map((d) => d.name) - .map((d) => path.resolve(source, d)); - -const packageDirs = ['packages/core', 'packages/plugins', 'packages/app']; - -Promise.all(packageDirs.map((d) => getDirectories(d))) - .then((res) => res.flat()) - .then((res) => - res.forEach((d) => { - exec(`cd ${d} && npm unpublish -f; npm publish`, (error, stdout, stderr) => { - if (error) { - console.log(`error: ${error.message}`); - return; - } - if (stderr) { - console.log(`stderr: ${stderr}`); - return; - } - console.log(`stdout: ${stdout}`); - }); - }), - ); diff --git a/tsconfig.build.json b/tsconfig.build.json deleted file mode 100644 index 6e6850961..000000000 --- a/tsconfig.build.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compilerOptions": { - "esModuleInterop": true, - "resolveJsonModule": true, - "moduleResolution": "node", - "jsx": "react", - "module": "commonjs", - "target": "es6", - "allowJs": false, - "noUnusedLocals": false, - "preserveConstEnums": true, - "skipLibCheck": true, - "sourceMap": true, - "inlineSources": true, - "declaration": true, - "experimentalDecorators": true, - "downlevelIteration": true, - } -} \ No newline at end of file diff --git a/tsconfig.jest.json b/tsconfig.jest.json index 327877eae..2669a1272 100644 --- a/tsconfig.jest.json +++ b/tsconfig.jest.json @@ -1,24 +1,13 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "jsx": "react", - "esModuleInterop": true, - "resolveJsonModule": true, - "moduleResolution": "node", - "allowJs": true, - "module": "commonjs", - "target": "es6", - "paths": { - "@nocobase/app-*": [ - "packages/app/*/src" - ], - "@nocobase/plugin-*": [ - "packages/plugins/*/src" - ], - "@nocobase/*": [ - "packages/core/*/src" - ] - } + "target": "ES6", + "module": "CommonJS" }, - "exclude": ["./packages/*/esm", "./packages/*/lib"] + "exclude": [ + "./packages/*/esm", + "./packages/*/es", + "./packages/*/dist", + "./packages/*/lib" + ] } \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 858f21c0a..25aa5ad24 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,9 +3,9 @@ "esModuleInterop": true, "moduleResolution": "node", "jsx": "react", - "module": "commonjs", - "target": "es6", - "allowJs": false, + "target": "esnext", + "module": "esnext", + "allowJs": true, "noUnusedLocals": false, "preserveConstEnums": true, "skipLibCheck": true, diff --git a/tsconfig.server.json b/tsconfig.server.json new file mode 100644 index 000000000..9949ae8e1 --- /dev/null +++ b/tsconfig.server.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "target": "ES6", + "module": "CommonJS" + } +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 5ca90ce4e..c3c4ca84b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,14 @@ # yarn lockfile v1 +"@ampproject/remapping@^2.1.0": + version "2.2.0" + resolved "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d" + integrity sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w== + dependencies: + "@jridgewell/gen-mapping" "^0.1.0" + "@jridgewell/trace-mapping" "^0.3.9" + "@ant-design/colors@^6.0.0": version "6.0.0" resolved "https://registry.npmjs.org/@ant-design/colors/-/colors-6.0.0.tgz#9b9366257cffcc47db42b9d0203bb592c13c0298" @@ -57,29 +65,55 @@ dependencies: "@babel/highlight" "^7.16.7" +"@babel/compat-data@^7.12.1", "@babel/compat-data@^7.17.0", "@babel/compat-data@^7.17.10": + version "7.17.10" + resolved "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.17.10.tgz#711dc726a492dfc8be8220028b1b92482362baab" + integrity sha512-GZt/TCsG70Ms19gfZO1tM4CVnXsPgEPBCpJu+Qz3L0LUDsY5nZqFZglIoPC1kIYOtNBZlrnFT+klg12vFGZXrw== + "@babel/compat-data@^7.13.11", "@babel/compat-data@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.16.0.tgz#ea269d7f78deb3a7826c39a4048eecda541ebdaa" integrity sha512-DGjt2QZse5SGd9nfOSqO4WLJ8NN/oHkijbXbPrxuoJO3oIPJL3TciZs9FX+cOHNiY9E9l0opL8g7BmLe3T+9ew== -"@babel/core@7.12.10": - version "7.12.10" - resolved "https://registry.npmjs.org/@babel/core/-/core-7.12.10.tgz#b79a2e1b9f70ed3d84bbfb6d8c4ef825f606bccd" - integrity sha512-eTAlQKq65zHfkHZV0sIVODCPGVgoo1HdBlbSLi9CqOzuZanMv2ihzY+4paiKr1mH+XmYESMAmJ/dpZ68eN6d8w== +"@babel/core@7.12.3": + version "7.12.3" + resolved "https://registry.npmjs.org/@babel/core/-/core-7.12.3.tgz#1b436884e1e3bff6fb1328dc02b208759de92ad8" + integrity sha512-0qXcZYKZp3/6N2jKYVxZv0aNCsxTSVCiK72DTiTYZAu7sjg73W0/aynWjMbiGd87EQL4WyA8reiJVh92AVla9g== dependencies: "@babel/code-frame" "^7.10.4" - "@babel/generator" "^7.12.10" + "@babel/generator" "^7.12.1" "@babel/helper-module-transforms" "^7.12.1" - "@babel/helpers" "^7.12.5" - "@babel/parser" "^7.12.10" - "@babel/template" "^7.12.7" - "@babel/traverse" "^7.12.10" - "@babel/types" "^7.12.10" + "@babel/helpers" "^7.12.1" + "@babel/parser" "^7.12.3" + "@babel/template" "^7.10.4" + "@babel/traverse" "^7.12.1" + "@babel/types" "^7.12.1" convert-source-map "^1.7.0" debug "^4.1.0" gensync "^1.0.0-beta.1" json5 "^2.1.2" lodash "^4.17.19" + resolve "^1.3.2" + semver "^5.4.1" + source-map "^0.5.0" + +"@babel/core@7.4.5": + version "7.4.5" + resolved "https://registry.npmjs.org/@babel/core/-/core-7.4.5.tgz#081f97e8ffca65a9b4b0fdc7e274e703f000c06a" + integrity sha512-OvjIh6aqXtlsA8ujtGKfC7LYWksYSX8yQcM8Ay3LuvVeQ63lcOKgoZWVqcpFwkd29aYU9rVx7jxhfhiEDV9MZA== + dependencies: + "@babel/code-frame" "^7.0.0" + "@babel/generator" "^7.4.4" + "@babel/helpers" "^7.4.4" + "@babel/parser" "^7.4.5" + "@babel/template" "^7.4.4" + "@babel/traverse" "^7.4.5" + "@babel/types" "^7.4.4" + convert-source-map "^1.1.0" + debug "^4.1.0" + json5 "^2.1.0" + lodash "^4.17.11" + resolve "^1.3.2" semver "^5.4.1" source-map "^0.5.0" @@ -104,14 +138,35 @@ semver "^6.3.0" source-map "^0.5.0" -"@babel/generator@^7.12.10", "@babel/generator@^7.17.0", "@babel/generator@^7.4.0": - version "7.17.0" - resolved "https://registry.npmjs.org/@babel/generator/-/generator-7.17.0.tgz#7bd890ba706cd86d3e2f727322346ffdbf98f65e" - integrity sha512-I3Omiv6FGOC29dtlZhkfXO6pgkmukJSlT26QjVvS1DGZe/NzSVCPG41X0tS21oZkJYlovfj9qDWgKP+Cn4bXxw== +"@babel/core@^7.1.2": + version "7.17.10" + resolved "https://registry.npmjs.org/@babel/core/-/core-7.17.10.tgz#74ef0fbf56b7dfc3f198fc2d927f4f03e12f4b05" + integrity sha512-liKoppandF3ZcBnIYFjfSDHZLKdLHGJRkoWtG8zQyGJBQfIYobpnVGI5+pLBNtS6psFLDzyq8+h5HiVljW9PNA== dependencies: - "@babel/types" "^7.17.0" + "@ampproject/remapping" "^2.1.0" + "@babel/code-frame" "^7.16.7" + "@babel/generator" "^7.17.10" + "@babel/helper-compilation-targets" "^7.17.10" + "@babel/helper-module-transforms" "^7.17.7" + "@babel/helpers" "^7.17.9" + "@babel/parser" "^7.17.10" + "@babel/template" "^7.16.7" + "@babel/traverse" "^7.17.10" + "@babel/types" "^7.17.10" + convert-source-map "^1.7.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.2.1" + semver "^6.3.0" + +"@babel/generator@^7.12.1", "@babel/generator@^7.17.10", "@babel/generator@^7.4.4": + version "7.17.10" + resolved "https://registry.npmjs.org/@babel/generator/-/generator-7.17.10.tgz#c281fa35b0c349bbe9d02916f4ae08fc85ed7189" + integrity sha512-46MJZZo9y3o4kmhBVc7zW7i8dtR1oIK/sdO5NcfcZRhTGYi+KKJRtHNgsU6c4VUcJmUNV/LQdebD/9Dlv4K+Tg== + dependencies: + "@babel/types" "^7.17.10" + "@jridgewell/gen-mapping" "^0.1.0" jsesc "^2.5.1" - source-map "^0.5.0" "@babel/generator@^7.16.0", "@babel/generator@^7.7.2": version "7.16.0" @@ -122,6 +177,15 @@ jsesc "^2.5.1" source-map "^0.5.0" +"@babel/generator@^7.17.0", "@babel/generator@^7.4.0": + version "7.17.0" + resolved "https://registry.npmjs.org/@babel/generator/-/generator-7.17.0.tgz#7bd890ba706cd86d3e2f727322346ffdbf98f65e" + integrity sha512-I3Omiv6FGOC29dtlZhkfXO6pgkmukJSlT26QjVvS1DGZe/NzSVCPG41X0tS21oZkJYlovfj9qDWgKP+Cn4bXxw== + dependencies: + "@babel/types" "^7.17.0" + jsesc "^2.5.1" + source-map "^0.5.0" + "@babel/helper-annotate-as-pure@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.16.0.tgz#9a1f0ebcda53d9a2d00108c4ceace6a5d5f1f08d" @@ -129,6 +193,13 @@ dependencies: "@babel/types" "^7.16.0" +"@babel/helper-annotate-as-pure@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.16.7.tgz#bb2339a7534a9c128e3102024c60760a3a7f3862" + integrity sha512-s6t2w/IPQVTAET1HitoowRGXooX8mCgtuP5195wD/QJPV6wYjpujCGF7JuMODVX2ZAJOf1GT6DT9MHEZvLOFSw== + dependencies: + "@babel/types" "^7.16.7" + "@babel/helper-builder-binary-assignment-operator-visitor@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.16.0.tgz#f1a686b92da794020c26582eb852e9accd0d7882" @@ -137,6 +208,24 @@ "@babel/helper-explode-assignable-expression" "^7.16.0" "@babel/types" "^7.16.0" +"@babel/helper-builder-binary-assignment-operator-visitor@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.16.7.tgz#38d138561ea207f0f69eb1626a418e4f7e6a580b" + integrity sha512-C6FdbRaxYjwVu/geKW4ZeQ0Q31AftgRcdSnZ5/jsH6BzCJbtvXvhpfkbkThYSuutZA7nCXpPR6AD9zd1dprMkA== + dependencies: + "@babel/helper-explode-assignable-expression" "^7.16.7" + "@babel/types" "^7.16.7" + +"@babel/helper-compilation-targets@^7.12.1", "@babel/helper-compilation-targets@^7.16.7", "@babel/helper-compilation-targets@^7.17.10": + version "7.17.10" + resolved "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.17.10.tgz#09c63106d47af93cf31803db6bc49fef354e2ebe" + integrity sha512-gh3RxjWbauw/dFiU/7whjd0qN9K6nPJMqe6+Er7rOavFh0CQUSwhAE3IcTho2rywPJFxej6TUUHDkWcYI6gGqQ== + dependencies: + "@babel/compat-data" "^7.17.10" + "@babel/helper-validator-option" "^7.16.7" + browserslist "^4.20.2" + semver "^6.3.0" + "@babel/helper-compilation-targets@^7.13.0", "@babel/helper-compilation-targets@^7.16.0": version "7.16.3" resolved "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.3.tgz#5b480cd13f68363df6ec4dc8ac8e2da11363cbf0" @@ -147,6 +236,19 @@ browserslist "^4.17.5" semver "^6.3.0" +"@babel/helper-create-class-features-plugin@^7.12.1", "@babel/helper-create-class-features-plugin@^7.16.10", "@babel/helper-create-class-features-plugin@^7.16.7", "@babel/helper-create-class-features-plugin@^7.17.6", "@babel/helper-create-class-features-plugin@^7.4.4": + version "7.17.9" + resolved "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.17.9.tgz#71835d7fb9f38bd9f1378e40a4c0902fdc2ea49d" + integrity sha512-kUjip3gruz6AJKOq5i3nC6CoCEEF/oHH3cp6tOZhB+IyyyPyW0g1Gfsxn3mkk6S08pIA2y8GQh609v9G/5sHVQ== + dependencies: + "@babel/helper-annotate-as-pure" "^7.16.7" + "@babel/helper-environment-visitor" "^7.16.7" + "@babel/helper-function-name" "^7.17.9" + "@babel/helper-member-expression-to-functions" "^7.17.7" + "@babel/helper-optimise-call-expression" "^7.16.7" + "@babel/helper-replace-supers" "^7.16.7" + "@babel/helper-split-export-declaration" "^7.16.7" + "@babel/helper-create-class-features-plugin@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.16.0.tgz#090d4d166b342a03a9fec37ef4fd5aeb9c7c6a4b" @@ -167,6 +269,14 @@ "@babel/helper-annotate-as-pure" "^7.16.0" regexpu-core "^4.7.1" +"@babel/helper-create-regexp-features-plugin@^7.16.7", "@babel/helper-create-regexp-features-plugin@^7.17.0": + version "7.17.0" + resolved "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.17.0.tgz#1dcc7d40ba0c6b6b25618997c5dbfd310f186fe1" + integrity sha512-awO2So99wG6KnlE+TPs6rn83gCz5WlEePJDTnLEqbchMVrBeAujURVphRdigsk094VhvZehFoNOihSlcBjwsXA== + dependencies: + "@babel/helper-annotate-as-pure" "^7.16.7" + regexpu-core "^5.0.1" + "@babel/helper-define-polyfill-provider@^0.2.4": version "0.2.4" resolved "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.2.4.tgz#8867aed79d3ea6cade40f801efb7ac5c66916b10" @@ -181,6 +291,20 @@ resolve "^1.14.2" semver "^6.1.2" +"@babel/helper-define-polyfill-provider@^0.3.1": + version "0.3.1" + resolved "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.1.tgz#52411b445bdb2e676869e5a74960d2d3826d2665" + integrity sha512-J9hGMpJQmtWmj46B3kBHmL38UhJGhYX7eqkcq+2gsstyYt341HmPeWspihX43yVRA0mS+8GGk2Gckc7bY/HCmA== + dependencies: + "@babel/helper-compilation-targets" "^7.13.0" + "@babel/helper-module-imports" "^7.12.13" + "@babel/helper-plugin-utils" "^7.13.0" + "@babel/traverse" "^7.13.0" + debug "^4.1.1" + lodash.debounce "^4.0.8" + resolve "^1.14.2" + semver "^6.1.2" + "@babel/helper-environment-visitor@^7.16.7": version "7.16.7" resolved "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.16.7.tgz#ff484094a839bde9d89cd63cba017d7aae80ecd7" @@ -195,6 +319,13 @@ dependencies: "@babel/types" "^7.16.0" +"@babel/helper-explode-assignable-expression@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.16.7.tgz#12a6d8522fdd834f194e868af6354e8650242b7a" + integrity sha512-KyUenhWMC8VrxzkGP0Jizjo4/Zx+1nNZhgocs+gLzyZyB8SHidhoq9KK/8Ato4anhwsivfkBLftky7gvzbZMtQ== + dependencies: + "@babel/types" "^7.16.7" + "@babel/helper-function-name@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.16.0.tgz#b7dd0797d00bbfee4f07e9c4ea5b0e30c8bb1481" @@ -213,6 +344,14 @@ "@babel/template" "^7.16.7" "@babel/types" "^7.16.7" +"@babel/helper-function-name@^7.17.9": + version "7.17.9" + resolved "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.17.9.tgz#136fcd54bc1da82fcb47565cf16fd8e444b1ff12" + integrity sha512-7cRisGlVtiVqZ0MW0/yFB4atgpGLWEHUVYnb448hZK4x+vih0YO5UoS11XIYtZYqHd0dIPMdUSv8q5K4LdMnIg== + dependencies: + "@babel/template" "^7.16.7" + "@babel/types" "^7.17.0" + "@babel/helper-get-function-arity@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.16.0.tgz#0088c7486b29a9cb5d948b1a1de46db66e089cfa" @@ -248,6 +387,20 @@ dependencies: "@babel/types" "^7.16.0" +"@babel/helper-member-expression-to-functions@^7.16.7", "@babel/helper-member-expression-to-functions@^7.17.7": + version "7.17.7" + resolved "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.17.7.tgz#a34013b57d8542a8c4ff8ba3f747c02452a4d8c4" + integrity sha512-thxXgnQ8qQ11W2wVUObIqDL4p148VMxkt5T/qpN5k2fboRyzFGFmKsTGViquyM5QHKUy48OZoca8kw4ajaDPyw== + dependencies: + "@babel/types" "^7.17.0" + +"@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.10.4", "@babel/helper-module-imports@^7.12.1", "@babel/helper-module-imports@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz#25612a8091a999704461c8a222d0efec5d091437" + integrity sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg== + dependencies: + "@babel/types" "^7.16.7" + "@babel/helper-module-imports@^7.12.13", "@babel/helper-module-imports@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.16.0.tgz#90538e60b672ecf1b448f5f4f5433d37e79a3ec3" @@ -255,13 +408,6 @@ dependencies: "@babel/types" "^7.16.0" -"@babel/helper-module-imports@^7.16.7": - version "7.16.7" - resolved "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz#25612a8091a999704461c8a222d0efec5d091437" - integrity sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg== - dependencies: - "@babel/types" "^7.16.7" - "@babel/helper-module-transforms@^7.12.1": version "7.16.7" resolved "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.16.7.tgz#7665faeb721a01ca5327ddc6bba15a5cb34b6a41" @@ -290,6 +436,20 @@ "@babel/traverse" "^7.16.0" "@babel/types" "^7.16.0" +"@babel/helper-module-transforms@^7.16.7", "@babel/helper-module-transforms@^7.17.7": + version "7.17.7" + resolved "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.17.7.tgz#3943c7f777139e7954a5355c815263741a9c1cbd" + integrity sha512-VmZD99F3gNTYB7fJRDTi+u6l/zxY0BE6OIxPSU7a50s6ZUQkHwSDmV92FfM+oCG0pZRVojGYhkR8I0OGeCVREw== + dependencies: + "@babel/helper-environment-visitor" "^7.16.7" + "@babel/helper-module-imports" "^7.16.7" + "@babel/helper-simple-access" "^7.17.7" + "@babel/helper-split-export-declaration" "^7.16.7" + "@babel/helper-validator-identifier" "^7.16.7" + "@babel/template" "^7.16.7" + "@babel/traverse" "^7.17.3" + "@babel/types" "^7.17.0" + "@babel/helper-optimise-call-expression@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.16.0.tgz#cecdb145d70c54096b1564f8e9f10cd7d193b338" @@ -297,6 +457,13 @@ dependencies: "@babel/types" "^7.16.0" +"@babel/helper-optimise-call-expression@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.16.7.tgz#a34e3560605abbd31a18546bd2aad3e6d9a174f2" + integrity sha512-EtgBhg7rd/JcnpZFXpBy0ze1YRfdm7BnBX4uKMBd3ixa3RGAE002JZB66FJyNH7g0F38U05pXmA5P8cBh7z+1w== + dependencies: + "@babel/types" "^7.16.7" + "@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.13.0", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": version "7.14.5" resolved "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.14.5.tgz#5ac822ce97eec46741ab70a517971e443a70c5a9" @@ -307,6 +474,20 @@ resolved "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.5.tgz#afe37a45f39fce44a3d50a7958129ea5b1a5c074" integrity sha512-59KHWHXxVA9K4HNF4sbHCf+eJeFe0Te/ZFGqBT4OjXhrwvA04sGfaEGsVTdsjoszq0YTP49RC9UKe5g8uN2RwQ== +"@babel/helper-plugin-utils@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz#aa3a8ab4c3cceff8e65eb9e73d87dc4ff320b2f5" + integrity sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA== + +"@babel/helper-remap-async-to-generator@^7.1.0", "@babel/helper-remap-async-to-generator@^7.16.8": + version "7.16.8" + resolved "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.16.8.tgz#29ffaade68a367e2ed09c90901986918d25e57e3" + integrity sha512-fm0gH7Flb8H51LqJHy3HJ3wnE1+qtYR2A99K06ahwrawLdOFsCEWjZOrYricXJHoPSudNKxrMBUPEIPxiIIvBw== + dependencies: + "@babel/helper-annotate-as-pure" "^7.16.7" + "@babel/helper-wrap-function" "^7.16.8" + "@babel/types" "^7.16.8" + "@babel/helper-remap-async-to-generator@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.16.0.tgz#d5aa3b086e13a5fe05238ff40c3a5a0c2dab3ead" @@ -326,6 +507,24 @@ "@babel/traverse" "^7.16.0" "@babel/types" "^7.16.0" +"@babel/helper-replace-supers@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.16.7.tgz#e9f5f5f32ac90429c1a4bdec0f231ef0c2838ab1" + integrity sha512-y9vsWilTNaVnVh6xiJfABzsNpgDPKev9HnAgz6Gb1p6UUwf9NepdlsV7VXGCftJM+jqD5f7JIEubcpLjZj5dBw== + dependencies: + "@babel/helper-environment-visitor" "^7.16.7" + "@babel/helper-member-expression-to-functions" "^7.16.7" + "@babel/helper-optimise-call-expression" "^7.16.7" + "@babel/traverse" "^7.16.7" + "@babel/types" "^7.16.7" + +"@babel/helper-simple-access@^7.12.1", "@babel/helper-simple-access@^7.17.7": + version "7.17.7" + resolved "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.17.7.tgz#aaa473de92b7987c6dfa7ce9a7d9674724823367" + integrity sha512-txyMCGroZ96i+Pxr3Je3lzEJjqwaRC9buMUgtomcrLe5Nd0+fk1h0LLA+ixUF5OW7AhHuQ7Es1WcQJZmZsz2XA== + dependencies: + "@babel/types" "^7.17.0" + "@babel/helper-simple-access@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.16.0.tgz#21d6a27620e383e37534cf6c10bba019a6f90517" @@ -340,7 +539,7 @@ dependencies: "@babel/types" "^7.16.7" -"@babel/helper-skip-transparent-expression-wrappers@^7.16.0": +"@babel/helper-skip-transparent-expression-wrappers@^7.12.1", "@babel/helper-skip-transparent-expression-wrappers@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.16.0.tgz#0ee3388070147c3ae051e487eca3ebb0e2e8bb09" integrity sha512-+il1gTy0oHwUsBQZyJvukbB4vPMdcYBrFHa0Uc4AizLxbq6BOYC51Rv4tWocX9BLBDLZ4kc6qUFpQ6HRgL+3zw== @@ -371,6 +570,11 @@ resolved "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz#e8c602438c4a8195751243da9031d1607d247cad" integrity sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw== +"@babel/helper-validator-option@^7.12.1", "@babel/helper-validator-option@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.16.7.tgz#b203ce62ce5fe153899b617c08957de860de4d23" + integrity sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ== + "@babel/helper-validator-option@^7.14.5": version "7.14.5" resolved "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.14.5.tgz#6e72a1fff18d5dfcb878e1e62f1a021c4b72d5a3" @@ -386,13 +590,23 @@ "@babel/traverse" "^7.16.0" "@babel/types" "^7.16.0" -"@babel/helpers@^7.12.5": - version "7.17.2" - resolved "https://registry.npmjs.org/@babel/helpers/-/helpers-7.17.2.tgz#23f0a0746c8e287773ccd27c14be428891f63417" - integrity sha512-0Qu7RLR1dILozr/6M0xgj+DFPmi6Bnulgm9M8BVa9ZCWxDqlSnqt3cf8IDPB5m45sVXUZ0kuQAgUrdSFFH79fQ== +"@babel/helper-wrap-function@^7.16.8": + version "7.16.8" + resolved "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.16.8.tgz#58afda087c4cd235de92f7ceedebca2c41274200" + integrity sha512-8RpyRVIAW1RcDDGTA+GpPAwV22wXCfKOoM9bet6TLkGIFTkRQSkH1nMQ5Yet4MpoXe1ZwHPVtNasc2w0uZMqnw== + dependencies: + "@babel/helper-function-name" "^7.16.7" + "@babel/template" "^7.16.7" + "@babel/traverse" "^7.16.8" + "@babel/types" "^7.16.8" + +"@babel/helpers@^7.12.1", "@babel/helpers@^7.17.9", "@babel/helpers@^7.4.4": + version "7.17.9" + resolved "https://registry.npmjs.org/@babel/helpers/-/helpers-7.17.9.tgz#b2af120821bfbe44f9907b1826e168e819375a1a" + integrity sha512-cPCt915ShDWUEzEp3+UNRktO2n6v49l5RSnG9M5pS24hA+2FAc5si+Pn1i4VVbQQ+jh+bIZhPFQOJOzbrOYY1Q== dependencies: "@babel/template" "^7.16.7" - "@babel/traverse" "^7.17.0" + "@babel/traverse" "^7.17.9" "@babel/types" "^7.17.0" "@babel/helpers@^7.16.0": @@ -427,7 +641,12 @@ resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.16.3.tgz#271bafcb811080905a119222edbc17909c82261d" integrity sha512-dcNwU1O4sx57ClvLBVFbEgx0UZWfd0JQX5X6fxFRCLHelFBGXFfSz6Y0FAq2PEwUqlqLkdVjVr4VASEOuUnLJw== -"@babel/parser@^7.12.10", "@babel/parser@^7.16.7", "@babel/parser@^7.17.0", "@babel/parser@^7.4.3": +"@babel/parser@^7.12.3", "@babel/parser@^7.17.10", "@babel/parser@^7.4.5": + version "7.17.10" + resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.17.10.tgz#873b16db82a8909e0fbd7f115772f4b739f6ce78" + integrity sha512-n2Q6i+fnJqzOaq2VkdXxy2TCPCWQZHiCo0XqmrCvDWcZQKRyZzYi4Z0yxlBuN0w+r2ZHmre+Q087DSrw3pbJDQ== + +"@babel/parser@^7.16.7", "@babel/parser@^7.17.0", "@babel/parser@^7.4.3": version "7.17.0" resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.17.0.tgz#f0ac33eddbe214e4105363bb17c3341c5ffcc43c" integrity sha512-VKXSCQx5D8S04ej+Dqsr1CzYvvWgf20jIw2D+YhQCrIlr2UZGaDds23Y0xg75/skOxpLCRpUZvk/1EAVkGoDOw== @@ -439,6 +658,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.16.7.tgz#4eda6d6c2a0aa79c70fa7b6da67763dfe2141050" + integrity sha512-anv/DObl7waiGEnC24O9zqL0pSuI9hljihqiDuFHC8d7/bjr/4RLGPWuc8rYOff/QPzbEPSkzG8wGG9aDuhHRg== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.16.0.tgz#358972eaab006f5eb0826183b0c93cbcaf13e1e2" @@ -448,6 +674,33 @@ "@babel/helper-skip-transparent-expression-wrappers" "^7.16.0" "@babel/plugin-proposal-optional-chaining" "^7.16.0" +"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.16.7.tgz#cc001234dfc139ac45f6bcf801866198c8c72ff9" + integrity sha512-di8vUHRdf+4aJ7ltXhaDbPoszdkh59AQtJM5soLsuHpQJdFQZOA4uGj0V2u/CZ8bJ/u8ULDL5yq6FO/bCXnKHw== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-skip-transparent-expression-wrappers" "^7.16.0" + "@babel/plugin-proposal-optional-chaining" "^7.16.7" + +"@babel/plugin-proposal-async-generator-functions@7.2.0": + version "7.2.0" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.2.0.tgz#b289b306669dce4ad20b0252889a15768c9d417e" + integrity sha512-+Dfo/SCQqrwx48ptLVGLdE39YtWRuKc/Y9I5Fy0P1DDBB9lsAHpjcEJQt+4IifuSOSTLBKJObJqMvaO1pIE8LQ== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-remap-async-to-generator" "^7.1.0" + "@babel/plugin-syntax-async-generators" "^7.2.0" + +"@babel/plugin-proposal-async-generator-functions@^7.12.1", "@babel/plugin-proposal-async-generator-functions@^7.16.8", "@babel/plugin-proposal-async-generator-functions@^7.2.0": + version "7.16.8" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.16.8.tgz#3bdd1ebbe620804ea9416706cd67d60787504bc8" + integrity sha512-71YHIvMuiuqWJQkebWJtdhQTfd4Q4mF76q2IX37uZPkG9+olBxsX+rH1vkhFto4UeJZ9dPY2s+mDvhDm1u2BGQ== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-remap-async-to-generator" "^7.16.8" + "@babel/plugin-syntax-async-generators" "^7.8.4" + "@babel/plugin-proposal-async-generator-functions@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.16.0.tgz#11425d47a60364352f668ad5fbc1d6596b2c5caf" @@ -457,6 +710,22 @@ "@babel/helper-remap-async-to-generator" "^7.16.0" "@babel/plugin-syntax-async-generators" "^7.8.4" +"@babel/plugin-proposal-class-properties@7.12.1": + version "7.12.1" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.12.1.tgz#a082ff541f2a29a4821065b8add9346c0c16e5de" + integrity sha512-cKp3dlQsFsEs5CWKnN7BnSHOd0EOW8EKpEjkoz1pO2E5KzIDNV9Ros1b0CnmbVgAGXJubOYVBOGCT1OmJwOI7w== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.12.1" + "@babel/helper-plugin-utils" "^7.10.4" + +"@babel/plugin-proposal-class-properties@7.4.4": + version "7.4.4" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.4.4.tgz#93a6486eed86d53452ab9bab35e368e9461198ce" + integrity sha512-WjKTI8g8d5w1Bc9zgwSz2nfrsNQsXcCf9J9cdCvrJV6RF56yztwm4TmJC0MgJ9tvwO9gUA/mcYe89bLdGfiXFg== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.4.4" + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-proposal-class-properties@^7.1.0", "@babel/plugin-proposal-class-properties@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.16.0.tgz#c029618267ddebc7280fa286e0f8ca2a278a2d1a" @@ -465,6 +734,14 @@ "@babel/helper-create-class-features-plugin" "^7.16.0" "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-proposal-class-properties@^7.12.1", "@babel/plugin-proposal-class-properties@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.16.7.tgz#925cad7b3b1a2fcea7e59ecc8eb5954f961f91b0" + integrity sha512-IobU0Xme31ewjYOShSIqd/ZGM/r/cuOz2z0MDbNrhF5FW+ZVgi0f2lyeoj9KFPDOAqsYxmLWZte1WOwlvY9aww== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.16.7" + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-proposal-class-static-block@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.16.0.tgz#5296942c564d8144c83eea347d0aa8a0b89170e7" @@ -474,6 +751,65 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-class-static-block" "^7.14.5" +"@babel/plugin-proposal-class-static-block@^7.17.6": + version "7.17.6" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.17.6.tgz#164e8fd25f0d80fa48c5a4d1438a6629325ad83c" + integrity sha512-X/tididvL2zbs7jZCeeRJ8167U/+Ac135AM6jCAx6gYXDUviZV5Ku9UDvWS2NCuWlFjIRXklYhwo6HhAC7ETnA== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.17.6" + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-syntax-class-static-block" "^7.14.5" + +"@babel/plugin-proposal-decorators@7.12.1": + version "7.12.1" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.12.1.tgz#59271439fed4145456c41067450543aee332d15f" + integrity sha512-knNIuusychgYN8fGJHONL0RbFxLGawhXOJNLBk75TniTsZZeA+wdkDuv6wp4lGwzQEKjZi6/WYtnb3udNPmQmQ== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.12.1" + "@babel/helper-plugin-utils" "^7.10.4" + "@babel/plugin-syntax-decorators" "^7.12.1" + +"@babel/plugin-proposal-decorators@7.4.4": + version "7.4.4" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.4.4.tgz#de9b2a1a8ab0196f378e2a82f10b6e2a36f21cc0" + integrity sha512-z7MpQz3XC/iQJWXH9y+MaWcLPNSMY9RQSthrLzak8R8hCj0fuyNk+Dzi9kfNe/JxxlWQ2g7wkABbgWjW36MTcw== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.4.4" + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-decorators" "^7.2.0" + +"@babel/plugin-proposal-do-expressions@7.12.1": + version "7.12.1" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-do-expressions/-/plugin-proposal-do-expressions-7.12.1.tgz#8d7f1bc532d8168147555c26e3db922cc0dfd2f8" + integrity sha512-bpJ6Bfrzvdzb0vG6zBSNh3HLgFKh+S2CBpNmaLRjg2u7cNkzRPIqBjVURCmpG6pvPfKyxkizwbrXwpYtW3a9cw== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + "@babel/plugin-syntax-do-expressions" "^7.12.1" + +"@babel/plugin-proposal-do-expressions@7.2.0": + version "7.2.0" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-do-expressions/-/plugin-proposal-do-expressions-7.2.0.tgz#7abf56d27125f2b040c9cb0ab03119cf117128a9" + integrity sha512-2bWN48zQHf/W5T8XvemGQJSi8hzhIo7y4kv/RiA08UcMLQ73lkTknhlaFGf1HjCJzG8FGopgsq6pSe1C+10fPg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-do-expressions" "^7.2.0" + +"@babel/plugin-proposal-do-expressions@^7.0.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-do-expressions/-/plugin-proposal-do-expressions-7.16.7.tgz#80f55a0397a3899d562dd0f54ed926717b246817" + integrity sha512-IFa27vSFJgVV6p9HN8TBHPIZdd0v3YplR7dRwzM6fSf2R46HrDPOpaH5KwAqOIedMPAo149hC4M1swu42pValw== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-syntax-do-expressions" "^7.16.7" + +"@babel/plugin-proposal-dynamic-import@^7.12.1", "@babel/plugin-proposal-dynamic-import@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.16.7.tgz#c19c897eaa46b27634a00fee9fb7d829158704b2" + integrity sha512-I8SW9Ho3/8DRSdmDdH3gORdyUuYnk1m4cMxUAdu5oy4n3OfN8flDEH+d60iG7dUfi0KkYwSvoalHzzdRzpWHTg== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-syntax-dynamic-import" "^7.8.3" + "@babel/plugin-proposal-dynamic-import@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.16.0.tgz#783eca61d50526202f9b296095453977e88659f1" @@ -482,6 +818,54 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-dynamic-import" "^7.8.3" +"@babel/plugin-proposal-export-default-from@7.12.1": + version "7.12.1" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.12.1.tgz#c6e62d668a8abcfe0d28b82f560395fecb611c5a" + integrity sha512-z5Q4Ke7j0AexQRfgUvnD+BdCSgpTEKnqQ3kskk2jWtOBulxICzd1X9BGt7kmWftxZ2W3++OZdt5gtmC8KLxdRQ== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + "@babel/plugin-syntax-export-default-from" "^7.12.1" + +"@babel/plugin-proposal-export-default-from@7.2.0": + version "7.2.0" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.2.0.tgz#737b0da44b9254b6152fe29bb99c64e5691f6f68" + integrity sha512-NVfNe7F6nsasG1FnvcFxh2FN0l04ZNe75qTOAVOILWPam0tw9a63RtT/Dab8dPjedZa4fTQaQ83yMMywF9OSug== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-export-default-from" "^7.2.0" + +"@babel/plugin-proposal-export-default-from@^7.0.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.16.7.tgz#a40ab158ca55627b71c5513f03d3469026a9e929" + integrity sha512-+cENpW1rgIjExn+o5c8Jw/4BuH4eGKKYvkMB8/0ZxFQ9mC0t4z09VsPIwNg6waF69QYC81zxGeAsREGuqQoKeg== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-syntax-export-default-from" "^7.16.7" + +"@babel/plugin-proposal-export-namespace-from@7.12.1": + version "7.12.1" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.12.1.tgz#8b9b8f376b2d88f5dd774e4d24a5cc2e3679b6d4" + integrity sha512-6CThGf0irEkzujYS5LQcjBx8j/4aQGiVv7J9+2f7pGfxqyKh3WnmVJYW3hdrQjyksErMGBPQrCnHfOtna+WLbw== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + "@babel/plugin-syntax-export-namespace-from" "^7.8.3" + +"@babel/plugin-proposal-export-namespace-from@7.2.0": + version "7.2.0" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.2.0.tgz#308fd4d04ff257fc3e4be090550840eeabad5dd9" + integrity sha512-DZUxbHYxQ5fUFIkMEnh75ogEdBLPfL+mQUqrO2hNY2LGm+tqFnxE924+mhAcCOh/8za8AaZsWHbq6bBoS3TAzA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-export-namespace-from" "^7.2.0" + +"@babel/plugin-proposal-export-namespace-from@^7.12.1", "@babel/plugin-proposal-export-namespace-from@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.16.7.tgz#09de09df18445a5786a305681423ae63507a6163" + integrity sha512-ZxdtqDXLRGBL64ocZcs7ovt71L3jhC1RGSyR996svrCi3PYqHNkb3SwPJCs8RIzD86s+WPpt2S73+EHCGO+NUA== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-syntax-export-namespace-from" "^7.8.3" + "@babel/plugin-proposal-export-namespace-from@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.16.0.tgz#9c01dee40b9d6b847b656aaf4a3976a71740f222" @@ -490,6 +874,22 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-export-namespace-from" "^7.8.3" +"@babel/plugin-proposal-function-bind@7.2.0": + version "7.2.0" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-function-bind/-/plugin-proposal-function-bind-7.2.0.tgz#94dc2cdc505cafc4e225c0014335a01648056bf7" + integrity sha512-qOFJ/eX1Is78sywwTxDcsntLOdb5ZlHVVqUz5xznq8ldAfOVIyZzp1JE2rzHnaksZIhrqMrwIpQL/qcEprnVbw== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-function-bind" "^7.2.0" + +"@babel/plugin-proposal-json-strings@^7.12.1", "@babel/plugin-proposal-json-strings@^7.16.7", "@babel/plugin-proposal-json-strings@^7.2.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.16.7.tgz#9732cb1d17d9a2626a08c5be25186c195b6fa6e8" + integrity sha512-lNZ3EEggsGY78JavgbHsK9u5P3pQaW7k4axlgFLYkMd7UBsiNahCITShLjNQschPyjtO6dADrL24757IdhBrsQ== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-syntax-json-strings" "^7.8.3" + "@babel/plugin-proposal-json-strings@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.16.0.tgz#cae35a95ed1d2a7fa29c4dc41540b84a72e9ab25" @@ -498,6 +898,14 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-json-strings" "^7.8.3" +"@babel/plugin-proposal-logical-assignment-operators@^7.12.1", "@babel/plugin-proposal-logical-assignment-operators@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.16.7.tgz#be23c0ba74deec1922e639832904be0bea73cdea" + integrity sha512-K3XzyZJGQCr00+EtYtrDjmwX7o7PLK6U9bi1nCwkQioRFVUv6dJoxbQjtWVtP+bCPy82bONBKG8NPyQ4+i6yjg== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" + "@babel/plugin-proposal-logical-assignment-operators@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.16.0.tgz#a711b8ceb3ffddd3ef88d3a49e86dbd3cc7db3fd" @@ -506,6 +914,30 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" +"@babel/plugin-proposal-nullish-coalescing-operator@7.12.1": + version "7.12.1" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.12.1.tgz#3ed4fff31c015e7f3f1467f190dbe545cd7b046c" + integrity sha512-nZY0ESiaQDI1y96+jk6VxMOaL4LPo/QDHBqL+SF3/vl6dHkTwHlOI8L4ZwuRBHgakRBw5zsVylel7QPbbGuYgg== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.0" + +"@babel/plugin-proposal-nullish-coalescing-operator@7.4.4": + version "7.4.4" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.4.4.tgz#41c360d59481d88e0ce3a3f837df10121a769b39" + integrity sha512-Amph7Epui1Dh/xxUxS2+K22/MUi6+6JVTvy3P58tja3B6yKTSjwwx0/d83rF7551D6PVSSoplQb8GCwqec7HRw== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.2.0" + +"@babel/plugin-proposal-nullish-coalescing-operator@^7.12.1", "@babel/plugin-proposal-nullish-coalescing-operator@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.16.7.tgz#141fc20b6857e59459d430c850a0011e36561d99" + integrity sha512-aUOrYU3EVtjf62jQrCj63pYZ7k6vns2h/DQvHPWGmsJRYzWXZ6/AsfgpiRy6XiuIDADhJzP2Q9MwSMKauBQ+UQ== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" + "@babel/plugin-proposal-nullish-coalescing-operator@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.16.0.tgz#44e1cce08fe2427482cf446a91bb451528ed0596" @@ -514,6 +946,14 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" +"@babel/plugin-proposal-numeric-separator@^7.12.1", "@babel/plugin-proposal-numeric-separator@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.16.7.tgz#d6b69f4af63fb38b6ca2558442a7fb191236eba9" + integrity sha512-vQgPMknOIgiuVqbokToyXbkY/OmmjAzr/0lhSIbG/KmnzXPGwW/AdhdKpi+O4X/VkWiWjnkKOBiqJrTaC98VKw== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-syntax-numeric-separator" "^7.10.4" + "@babel/plugin-proposal-numeric-separator@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.16.0.tgz#5d418e4fbbf8b9b7d03125d3a52730433a373734" @@ -522,6 +962,14 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-numeric-separator" "^7.10.4" +"@babel/plugin-proposal-object-rest-spread@7.4.4": + version "7.4.4" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.4.4.tgz#1ef173fcf24b3e2df92a678f027673b55e7e3005" + integrity sha512-dMBG6cSPBbHeEBdFXeQ2QLc5gUpg4Vkaz8octD4aoW/ISO+jBOcsuxYL7bsb5WSu8RLP6boxrBIALEHgoHtO9g== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-object-rest-spread" "^7.2.0" + "@babel/plugin-proposal-object-rest-spread@^7.0.0", "@babel/plugin-proposal-object-rest-spread@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.16.0.tgz#5fb32f6d924d6e6712810362a60e12a2609872e6" @@ -533,6 +981,33 @@ "@babel/plugin-syntax-object-rest-spread" "^7.8.3" "@babel/plugin-transform-parameters" "^7.16.0" +"@babel/plugin-proposal-object-rest-spread@^7.12.1", "@babel/plugin-proposal-object-rest-spread@^7.17.3", "@babel/plugin-proposal-object-rest-spread@^7.4.4": + version "7.17.3" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.17.3.tgz#d9eb649a54628a51701aef7e0ea3d17e2b9dd390" + integrity sha512-yuL5iQA/TbZn+RGAfxQXfi7CNLmKi1f8zInn4IgobuCWcAb7i+zj4TYzQ9l8cEzVyJ89PDGuqxK1xZpUDISesw== + dependencies: + "@babel/compat-data" "^7.17.0" + "@babel/helper-compilation-targets" "^7.16.7" + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-syntax-object-rest-spread" "^7.8.3" + "@babel/plugin-transform-parameters" "^7.16.7" + +"@babel/plugin-proposal-optional-catch-binding@7.2.0": + version "7.2.0" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.2.0.tgz#135d81edb68a081e55e56ec48541ece8065c38f5" + integrity sha512-mgYj3jCcxug6KUcX4OBoOJz3CMrwRfQELPQ5560F70YQUBZB7uac9fqaWamKR1iWUzGiK2t0ygzjTScZnVz75g== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-optional-catch-binding" "^7.2.0" + +"@babel/plugin-proposal-optional-catch-binding@^7.12.1", "@babel/plugin-proposal-optional-catch-binding@^7.16.7", "@babel/plugin-proposal-optional-catch-binding@^7.2.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.16.7.tgz#c623a430674ffc4ab732fd0a0ae7722b67cb74cf" + integrity sha512-eMOH/L4OvWSZAE1VkHbr1vckLG1WUcHGJSLqqQwl2GaUqG6QjddvrOaTUMNYiv77H5IKPMZ9U9P7EaHwvAShfA== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" + "@babel/plugin-proposal-optional-catch-binding@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.16.0.tgz#5910085811ab4c28b00d6ebffa4ab0274d1e5f16" @@ -541,6 +1016,32 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" +"@babel/plugin-proposal-optional-chaining@7.12.1": + version "7.12.1" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.12.1.tgz#cce122203fc8a32794296fc377c6dedaf4363797" + integrity sha512-c2uRpY6WzaVDzynVY9liyykS+kVU+WRZPMPYpkelXH8KBt1oXoI89kPbZKKG/jDT5UK92FTW2fZkZaJhdiBabw== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + "@babel/helper-skip-transparent-expression-wrappers" "^7.12.1" + "@babel/plugin-syntax-optional-chaining" "^7.8.0" + +"@babel/plugin-proposal-optional-chaining@7.2.0": + version "7.2.0" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.2.0.tgz#ae454f4c21c6c2ce8cb2397dc332ae8b420c5441" + integrity sha512-ea3Q6edZC/55wEBVZAEz42v528VulyO0eir+7uky/sT4XRcdkWJcFi1aPtitTlwUzGnECWJNExWww1SStt+yWw== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-optional-chaining" "^7.2.0" + +"@babel/plugin-proposal-optional-chaining@^7.12.1", "@babel/plugin-proposal-optional-chaining@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.16.7.tgz#7cd629564724816c0e8a969535551f943c64c39a" + integrity sha512-eC3xy+ZrUcBtP7x+sq62Q/HYd674pPTb/77XZMb5wbDPGWIdUbSr4Agr052+zaUPSb+gGRnjxXfKFvx5iMJ+DA== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-skip-transparent-expression-wrappers" "^7.16.0" + "@babel/plugin-syntax-optional-chaining" "^7.8.3" + "@babel/plugin-proposal-optional-chaining@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.16.0.tgz#56dbc3970825683608e9efb55ea82c2a2d6c8dc0" @@ -550,6 +1051,22 @@ "@babel/helper-skip-transparent-expression-wrappers" "^7.16.0" "@babel/plugin-syntax-optional-chaining" "^7.8.3" +"@babel/plugin-proposal-pipeline-operator@7.3.2": + version "7.3.2" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-pipeline-operator/-/plugin-proposal-pipeline-operator-7.3.2.tgz#cc6be43c8455422f2faca39b9355558f0bff5a3f" + integrity sha512-wuzx8U/KZLJYoqU6joiaKY0PixHuYZ3Vxys+wPahNAZEEm+EDb1eTc19DuJob3BdxYSD9PWPbwyoRbhkdoYErg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-pipeline-operator" "^7.3.0" + +"@babel/plugin-proposal-private-methods@^7.12.1", "@babel/plugin-proposal-private-methods@^7.16.11": + version "7.16.11" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.16.11.tgz#e8df108288555ff259f4527dbe84813aac3a1c50" + integrity sha512-F/2uAkPlXDr8+BHpZvo19w3hLFKge+k75XUprE6jaqKxjGkSYcK+4c+bup5PdW/7W/Rpjwql7FTVEDW+fRAQsw== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.16.10" + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-proposal-private-methods@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.16.0.tgz#b4dafb9c717e4301c5776b30d080d6383c89aff6" @@ -568,6 +1085,24 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-private-property-in-object" "^7.14.5" +"@babel/plugin-proposal-private-property-in-object@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.16.7.tgz#b0b8cef543c2c3d57e59e2c611994861d46a3fce" + integrity sha512-rMQkjcOFbm+ufe3bTZLyOfsOUOxyvLXZJCTARhJr+8UMSoZmqTe1K1BgkFcrW37rAchWg57yI69ORxiWvUINuQ== + dependencies: + "@babel/helper-annotate-as-pure" "^7.16.7" + "@babel/helper-create-class-features-plugin" "^7.16.7" + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-syntax-private-property-in-object" "^7.14.5" + +"@babel/plugin-proposal-unicode-property-regex@^7.12.1", "@babel/plugin-proposal-unicode-property-regex@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.16.7.tgz#635d18eb10c6214210ffc5ff4932552de08188a2" + integrity sha512-QRK0YI/40VLhNVGIjRNAAQkEHws0cswSdFFjpFyt943YmJIU1da9uW63Iu6NFV6CxTZW5eTDCrwZUstBWgp/Rg== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.16.7" + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-proposal-unicode-property-regex@^7.16.0", "@babel/plugin-proposal-unicode-property-regex@^7.4.4": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.16.0.tgz#890482dfc5ea378e42e19a71e709728cabf18612" @@ -576,7 +1111,7 @@ "@babel/helper-create-regexp-features-plugin" "^7.16.0" "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-syntax-async-generators@^7.8.4": +"@babel/plugin-syntax-async-generators@^7.2.0", "@babel/plugin-syntax-async-generators@^7.8.0", "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" resolved "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d" integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== @@ -590,7 +1125,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-class-properties@^7.12.13", "@babel/plugin-syntax-class-properties@^7.8.3": +"@babel/plugin-syntax-class-properties@^7.12.1", "@babel/plugin-syntax-class-properties@^7.12.13", "@babel/plugin-syntax-class-properties@^7.8.3": version "7.12.13" resolved "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== @@ -604,14 +1139,42 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-syntax-dynamic-import@^7.8.3": +"@babel/plugin-syntax-decorators@^7.12.1", "@babel/plugin-syntax-decorators@^7.2.0": + version "7.17.0" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.17.0.tgz#a2be3b2c9fe7d78bd4994e790896bc411e2f166d" + integrity sha512-qWe85yCXsvDEluNP0OyeQjH63DlhAR3W7K9BxxU1MvbDb48tgBG+Ao6IJJ6smPDrrVzSQZrbF6donpkFBMcs3A== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + +"@babel/plugin-syntax-do-expressions@^7.12.1", "@babel/plugin-syntax-do-expressions@^7.16.7", "@babel/plugin-syntax-do-expressions@^7.2.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-do-expressions/-/plugin-syntax-do-expressions-7.16.7.tgz#3e14c076687742d251a326611e7254e243d966bc" + integrity sha512-y1Z8konmSeZu1c2ClWvNIY9iGwKtzUzRFGt10A0d2WdOfajBj3RwOPeW8RTN+L7Ag8WQdifeAQxBDrqXO7TZhg== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + +"@babel/plugin-syntax-dynamic-import@7.2.0": + version "7.2.0" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.2.0.tgz#69c159ffaf4998122161ad8ebc5e6d1f55df8612" + integrity sha512-mVxuJ0YroI/h/tbFTPGZR8cv6ai+STMKNBq0f8hFxsxWjl94qqhsb+wXbpNMDPU3cfR1TIsVFzU3nXyZMqyK4w== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-syntax-dynamic-import@7.8.3", "@babel/plugin-syntax-dynamic-import@^7.8.0", "@babel/plugin-syntax-dynamic-import@^7.8.3": version "7.8.3" resolved "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz#62bf98b2da3cd21d626154fc96ee5b3cb68eacb3" integrity sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ== dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-export-namespace-from@^7.8.3": +"@babel/plugin-syntax-export-default-from@^7.12.1", "@babel/plugin-syntax-export-default-from@^7.16.7", "@babel/plugin-syntax-export-default-from@^7.2.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.16.7.tgz#fa89cf13b60de2c3f79acdc2b52a21174c6de060" + integrity sha512-4C3E4NsrLOgftKaTYTULhHsuQrGv3FHrBzOMDiS7UYKIpgGBkAdawg4h+EI8zPeK9M0fiIIh72hIwsI24K7MbA== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + +"@babel/plugin-syntax-export-namespace-from@^7.2.0", "@babel/plugin-syntax-export-namespace-from@^7.8.3": version "7.8.3" resolved "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz#028964a9ba80dbc094c915c487ad7c4e7a66465a" integrity sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q== @@ -625,6 +1188,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-syntax-function-bind@^7.2.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-function-bind/-/plugin-syntax-function-bind-7.16.7.tgz#9b8c9425740c5b39f9ba4c5f252a7500c4457b88" + integrity sha512-MMXirXtr3TWxevJuRwglyFJAkxKPzHKm6UUS4Ki5ZjelSTianSS8grdgAwPtKt6Jk9jjHUuR+QWma5LVfbfh8w== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-syntax-import-meta@^7.8.3": version "7.10.4" resolved "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" @@ -632,7 +1202,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.10.4" -"@babel/plugin-syntax-json-strings@^7.8.3": +"@babel/plugin-syntax-json-strings@^7.2.0", "@babel/plugin-syntax-json-strings@^7.8.0", "@babel/plugin-syntax-json-strings@^7.8.3": version "7.8.3" resolved "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a" integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== @@ -646,6 +1216,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.16.5" +"@babel/plugin-syntax-jsx@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.16.7.tgz#50b6571d13f764266a113d77c82b4a6508bbe665" + integrity sha512-Esxmk7YjA8QysKeT3VhTXvF6y77f/a91SIs4pWb4H2eWGQkCKFgQaG6hdoEVZtGsrAcb2K5BW66XsOErD4WU3Q== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-syntax-logical-assignment-operators@^7.10.4", "@babel/plugin-syntax-logical-assignment-operators@^7.8.3": version "7.10.4" resolved "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" @@ -653,7 +1230,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.10.4" -"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": +"@babel/plugin-syntax-nullish-coalescing-operator@^7.2.0", "@babel/plugin-syntax-nullish-coalescing-operator@^7.8.0", "@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": version "7.8.3" resolved "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9" integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ== @@ -667,27 +1244,34 @@ dependencies: "@babel/helper-plugin-utils" "^7.10.4" -"@babel/plugin-syntax-object-rest-spread@^7.8.3": +"@babel/plugin-syntax-object-rest-spread@^7.0.0", "@babel/plugin-syntax-object-rest-spread@^7.2.0", "@babel/plugin-syntax-object-rest-spread@^7.8.0", "@babel/plugin-syntax-object-rest-spread@^7.8.3": version "7.8.3" resolved "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-optional-catch-binding@^7.8.3": +"@babel/plugin-syntax-optional-catch-binding@^7.2.0", "@babel/plugin-syntax-optional-catch-binding@^7.8.0", "@babel/plugin-syntax-optional-catch-binding@^7.8.3": version "7.8.3" resolved "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz#6111a265bcfb020eb9efd0fdfd7d26402b9ed6c1" integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q== dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-optional-chaining@^7.8.3": +"@babel/plugin-syntax-optional-chaining@^7.2.0", "@babel/plugin-syntax-optional-chaining@^7.8.0", "@babel/plugin-syntax-optional-chaining@^7.8.3": version "7.8.3" resolved "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a" integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== dependencies: "@babel/helper-plugin-utils" "^7.8.0" +"@babel/plugin-syntax-pipeline-operator@^7.3.0": + version "7.17.0" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-pipeline-operator/-/plugin-syntax-pipeline-operator-7.17.0.tgz#de7a8cd265de1172170a9db318ba068c5fbe3ca1" + integrity sha512-vNE+4pNAOk2Q0BkyTf+XMwZ53vMDJ7Ic/Z85sruaJfJJ+4O5k/61z2a4Xj3CSl9kKRlXOALbsxWca0vZz7ENbw== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-syntax-private-property-in-object@^7.14.5": version "7.14.5" resolved "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz#0dc6671ec0ea22b6e94a1114f857970cd39de1ad" @@ -695,7 +1279,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-syntax-top-level-await@^7.14.5", "@babel/plugin-syntax-top-level-await@^7.8.3": +"@babel/plugin-syntax-top-level-await@^7.12.1", "@babel/plugin-syntax-top-level-await@^7.14.5", "@babel/plugin-syntax-top-level-await@^7.8.3": version "7.14.5" resolved "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c" integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw== @@ -709,6 +1293,20 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-syntax-typescript@^7.16.7": + version "7.17.10" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.17.10.tgz#80031e6042cad6a95ed753f672ebd23c30933195" + integrity sha512-xJefea1DWXW09pW4Tm9bjwVlPDyYA2it3fWlmEjpYz6alPvTUjL0EOzNzI/FEOyI3r4/J7uVH5UqKgl1TQ5hqQ== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + +"@babel/plugin-transform-arrow-functions@^7.12.1", "@babel/plugin-transform-arrow-functions@^7.16.7", "@babel/plugin-transform-arrow-functions@^7.2.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.16.7.tgz#44125e653d94b98db76369de9c396dc14bef4154" + integrity sha512-9ffkFFMbvzTvv+7dTp/66xvZAWASuPD5Tl9LK3Z9vhOmANo6j94rik+5YMBt4CwHVMWLWpMsriIc2zsa3WW3xQ== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-arrow-functions@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.16.0.tgz#951706f8b449c834ed07bd474c0924c944b95a8e" @@ -716,6 +1314,15 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-async-to-generator@^7.12.1", "@babel/plugin-transform-async-to-generator@^7.16.8", "@babel/plugin-transform-async-to-generator@^7.4.4": + version "7.16.8" + resolved "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.16.8.tgz#b83dff4b970cf41f1b819f8b49cc0cfbaa53a808" + integrity sha512-MtmUmTJQHCnyJVrScNzNlofQJ3dLFuobYn3mwOTKHnSCMtbNsqvF71GQmJfFjdrXSsAA7iysFmYWw4bXZ20hOg== + dependencies: + "@babel/helper-module-imports" "^7.16.7" + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-remap-async-to-generator" "^7.16.8" + "@babel/plugin-transform-async-to-generator@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.16.0.tgz#df12637f9630ddfa0ef9d7a11bc414d629d38604" @@ -725,6 +1332,13 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/helper-remap-async-to-generator" "^7.16.0" +"@babel/plugin-transform-block-scoped-functions@^7.12.1", "@babel/plugin-transform-block-scoped-functions@^7.16.7", "@babel/plugin-transform-block-scoped-functions@^7.2.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.16.7.tgz#4d0d57d9632ef6062cdf354bb717102ee042a620" + integrity sha512-JUuzlzmF40Z9cXyytcbZEZKckgrQzChbQJw/5PuEHYeqzCsvebDx0K0jWnIIVcmmDOAVctCgnYs0pMcrYj2zJg== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-block-scoped-functions@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.16.0.tgz#c618763233ad02847805abcac4c345ce9de7145d" @@ -732,6 +1346,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-block-scoping@^7.12.1", "@babel/plugin-transform-block-scoping@^7.16.7", "@babel/plugin-transform-block-scoping@^7.4.4": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.16.7.tgz#f50664ab99ddeaee5bc681b8f3a6ea9d72ab4f87" + integrity sha512-ObZev2nxVAYA4bhyusELdo9hb3H+A56bxH3FZMbEImZFiEDYVHXQSJ1hQKFlDnlt8G9bBrCZ5ZpURZUrV4G5qQ== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-block-scoping@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.16.0.tgz#bcf433fb482fe8c3d3b4e8a66b1c4a8e77d37c16" @@ -739,6 +1360,20 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-classes@^7.12.1", "@babel/plugin-transform-classes@^7.16.7", "@babel/plugin-transform-classes@^7.4.4": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.16.7.tgz#8f4b9562850cd973de3b498f1218796eb181ce00" + integrity sha512-WY7og38SFAGYRe64BrjKf8OrE6ulEHtr5jEYaZMwox9KebgqPi67Zqz8K53EKk1fFEJgm96r32rkKZ3qA2nCWQ== + dependencies: + "@babel/helper-annotate-as-pure" "^7.16.7" + "@babel/helper-environment-visitor" "^7.16.7" + "@babel/helper-function-name" "^7.16.7" + "@babel/helper-optimise-call-expression" "^7.16.7" + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-replace-supers" "^7.16.7" + "@babel/helper-split-export-declaration" "^7.16.7" + globals "^11.1.0" + "@babel/plugin-transform-classes@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.16.0.tgz#54cf5ff0b2242c6573d753cd4bfc7077a8b282f5" @@ -752,6 +1387,13 @@ "@babel/helper-split-export-declaration" "^7.16.0" globals "^11.1.0" +"@babel/plugin-transform-computed-properties@^7.12.1", "@babel/plugin-transform-computed-properties@^7.16.7", "@babel/plugin-transform-computed-properties@^7.2.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.16.7.tgz#66dee12e46f61d2aae7a73710f591eb3df616470" + integrity sha512-gN72G9bcmenVILj//sv1zLNaPyYcOzUho2lIJBMh/iakJ9ygCo/hEF9cpGb61SCMEDxbbyBoVQxrt+bWKu5KGw== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-computed-properties@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.16.0.tgz#e0c385507d21e1b0b076d66bed6d5231b85110b7" @@ -759,6 +1401,20 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-destructuring@7.4.4": + version "7.4.4" + resolved "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.4.4.tgz#9d964717829cc9e4b601fc82a26a71a4d8faf20f" + integrity sha512-/aOx+nW0w8eHiEHm+BTERB2oJn5D127iye/SUQl7NjHy0lf+j7h4MKMMSOwdazGq9OxgiNADncE+SRJkCxjZpQ== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-destructuring@^7.12.1", "@babel/plugin-transform-destructuring@^7.17.7", "@babel/plugin-transform-destructuring@^7.4.4": + version "7.17.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.17.7.tgz#49dc2675a7afa9a5e4c6bdee636061136c3408d1" + integrity sha512-XVh0r5yq9sLR4vZ6eVZe8FKfIcSgaTBxVBRSYokRj2qksf6QerYnTxz9/GTuKTH/n/HwLP7t6gtlybHetJ/6hQ== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-destructuring@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.16.0.tgz#ad3d7e74584ad5ea4eadb1e6642146c590dee33c" @@ -766,6 +1422,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-dotall-regex@^7.12.1", "@babel/plugin-transform-dotall-regex@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.16.7.tgz#6b2d67686fab15fb6a7fd4bd895d5982cfc81241" + integrity sha512-Lyttaao2SjZF6Pf4vk1dVKv8YypMpomAbygW+mU5cYP3S5cWTfCJjG8xV6CFdzGFlfWK81IjL9viiTvpb6G7gQ== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.16.7" + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-dotall-regex@^7.16.0", "@babel/plugin-transform-dotall-regex@^7.4.4": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.16.0.tgz#50bab00c1084b6162d0a58a818031cf57798e06f" @@ -774,6 +1438,13 @@ "@babel/helper-create-regexp-features-plugin" "^7.16.0" "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-duplicate-keys@^7.12.1", "@babel/plugin-transform-duplicate-keys@^7.16.7", "@babel/plugin-transform-duplicate-keys@^7.2.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.16.7.tgz#2207e9ca8f82a0d36a5a67b6536e7ef8b08823c9" + integrity sha512-03DvpbRfvWIXyK0/6QiR1KMTWeT6OcQ7tbhjrXyFS02kjuX/mu5Bvnh5SDSWHxyawit2g5aWhKwI86EE7GUnTw== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-duplicate-keys@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.16.0.tgz#8bc2e21813e3e89e5e5bf3b60aa5fc458575a176" @@ -781,6 +1452,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-exponentiation-operator@^7.12.1", "@babel/plugin-transform-exponentiation-operator@^7.16.7", "@babel/plugin-transform-exponentiation-operator@^7.2.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.16.7.tgz#efa9862ef97e9e9e5f653f6ddc7b665e8536fe9b" + integrity sha512-8UYLSlyLgRixQvlYH3J2ekXFHDFLQutdy7FfFAMm3CPZ6q9wHCwnUyiXpQCe3gVVnQlHc5nsuiEVziteRNTXEA== + dependencies: + "@babel/helper-builder-binary-assignment-operator-visitor" "^7.16.7" + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-exponentiation-operator@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.16.0.tgz#a180cd2881e3533cef9d3901e48dad0fbeff4be4" @@ -797,6 +1476,13 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-flow" "^7.16.0" +"@babel/plugin-transform-for-of@^7.12.1", "@babel/plugin-transform-for-of@^7.16.7", "@babel/plugin-transform-for-of@^7.4.4": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.16.7.tgz#649d639d4617dff502a9a158c479b3b556728d8c" + integrity sha512-/QZm9W92Ptpw7sjI9Nx1mbcsWz33+l8kuMIQnDwgQBG5s3fAfQvkRjQ7NqXhtNcKOnPkdICmUHyCaWW06HCsqg== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-for-of@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.16.0.tgz#f7abaced155260e2461359bbc7c7248aca5e6bd2" @@ -804,6 +1490,15 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-function-name@^7.12.1", "@babel/plugin-transform-function-name@^7.16.7", "@babel/plugin-transform-function-name@^7.4.4": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.16.7.tgz#5ab34375c64d61d083d7d2f05c38d90b97ec65cf" + integrity sha512-SU/C68YVwTRxqWj5kgsbKINakGag0KTgq9f2iZEXdStoAbOzLHEBRYzImmA6yFo8YZhJVflvXmIHUO7GWHmxxA== + dependencies: + "@babel/helper-compilation-targets" "^7.16.7" + "@babel/helper-function-name" "^7.16.7" + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-function-name@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.16.0.tgz#02e3699c284c6262236599f751065c5d5f1f400e" @@ -812,6 +1507,13 @@ "@babel/helper-function-name" "^7.16.0" "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-literals@^7.12.1", "@babel/plugin-transform-literals@^7.16.7", "@babel/plugin-transform-literals@^7.2.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.16.7.tgz#254c9618c5ff749e87cb0c0cef1a0a050c0bdab1" + integrity sha512-6tH8RTpTWI0s2sV6uq3e/C9wPo4PTqqZps4uF0kzQ9/xPLFQtipynvmT1g/dOfEJ+0EQsHhkQ/zyRId8J2b8zQ== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-literals@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.16.0.tgz#79711e670ffceb31bd298229d50f3621f7980cac" @@ -819,6 +1521,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-member-expression-literals@^7.12.1", "@babel/plugin-transform-member-expression-literals@^7.16.7", "@babel/plugin-transform-member-expression-literals@^7.2.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.16.7.tgz#6e5dcf906ef8a098e630149d14c867dd28f92384" + integrity sha512-mBruRMbktKQwbxaJof32LT9KLy2f3gH+27a5XSuXo6h7R3vqltl0PgZ80C8ZMKw98Bf8bqt6BEVi3svOh2PzMw== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-member-expression-literals@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.16.0.tgz#5251b4cce01eaf8314403d21aedb269d79f5e64b" @@ -826,6 +1535,15 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-modules-amd@^7.12.1", "@babel/plugin-transform-modules-amd@^7.16.7", "@babel/plugin-transform-modules-amd@^7.2.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.16.7.tgz#b28d323016a7daaae8609781d1f8c9da42b13186" + integrity sha512-KaaEtgBL7FKYwjJ/teH63oAmE3lP34N3kshz8mm4VMAw7U3PxjVwwUmxEFksbgsNUaO3wId9R2AVQYSEGRa2+g== + dependencies: + "@babel/helper-module-transforms" "^7.16.7" + "@babel/helper-plugin-utils" "^7.16.7" + babel-plugin-dynamic-import-node "^2.3.3" + "@babel/plugin-transform-modules-amd@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.16.0.tgz#09abd41e18dcf4fd479c598c1cef7bd39eb1337e" @@ -835,6 +1553,26 @@ "@babel/helper-plugin-utils" "^7.14.5" babel-plugin-dynamic-import-node "^2.3.3" +"@babel/plugin-transform-modules-commonjs@7.12.1": + version "7.12.1" + resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.12.1.tgz#fa403124542636c786cf9b460a0ffbb48a86e648" + integrity sha512-dY789wq6l0uLY8py9c1B48V8mVL5gZh/+PQ5ZPrylPYsnAvnEMjqsUXkuoDVPeVK+0VyGar+D08107LzDQ6pag== + dependencies: + "@babel/helper-module-transforms" "^7.12.1" + "@babel/helper-plugin-utils" "^7.10.4" + "@babel/helper-simple-access" "^7.12.1" + babel-plugin-dynamic-import-node "^2.3.3" + +"@babel/plugin-transform-modules-commonjs@^7.12.1", "@babel/plugin-transform-modules-commonjs@^7.17.9", "@babel/plugin-transform-modules-commonjs@^7.4.4": + version "7.17.9" + resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.17.9.tgz#274be1a2087beec0254d4abd4d86e52442e1e5b6" + integrity sha512-2TBFd/r2I6VlYn0YRTz2JdazS+FoUuQ2rIFHoAxtyP/0G3D82SBLaRq9rnUkpqlLg03Byfl/+M32mpxjO6KaPw== + dependencies: + "@babel/helper-module-transforms" "^7.17.7" + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-simple-access" "^7.17.7" + babel-plugin-dynamic-import-node "^2.3.3" + "@babel/plugin-transform-modules-commonjs@^7.16.0", "@babel/plugin-transform-modules-commonjs@^7.7.2": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.16.0.tgz#add58e638c8ddc4875bd9a9ecb5c594613f6c922" @@ -845,6 +1583,17 @@ "@babel/helper-simple-access" "^7.16.0" babel-plugin-dynamic-import-node "^2.3.3" +"@babel/plugin-transform-modules-systemjs@^7.12.1", "@babel/plugin-transform-modules-systemjs@^7.17.8", "@babel/plugin-transform-modules-systemjs@^7.4.4": + version "7.17.8" + resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.17.8.tgz#81fd834024fae14ea78fbe34168b042f38703859" + integrity sha512-39reIkMTUVagzgA5x88zDYXPCMT6lcaRKs1+S9K6NKBPErbgO/w/kP8GlNQTC87b412ZTlmNgr3k2JrWgHH+Bw== + dependencies: + "@babel/helper-hoist-variables" "^7.16.7" + "@babel/helper-module-transforms" "^7.17.7" + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-validator-identifier" "^7.16.7" + babel-plugin-dynamic-import-node "^2.3.3" + "@babel/plugin-transform-modules-systemjs@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.16.0.tgz#a92cf240afeb605f4ca16670453024425e421ea4" @@ -856,6 +1605,14 @@ "@babel/helper-validator-identifier" "^7.15.7" babel-plugin-dynamic-import-node "^2.3.3" +"@babel/plugin-transform-modules-umd@^7.12.1", "@babel/plugin-transform-modules-umd@^7.16.7", "@babel/plugin-transform-modules-umd@^7.2.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.16.7.tgz#23dad479fa585283dbd22215bff12719171e7618" + integrity sha512-EMh7uolsC8O4xhudF2F6wedbSHm1HHZ0C6aJ7K67zcDNidMzVcxWdGr+htW9n21klm+bOn+Rx4CBsAntZd3rEQ== + dependencies: + "@babel/helper-module-transforms" "^7.16.7" + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-modules-umd@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.16.0.tgz#195f26c2ad6d6a391b70880effce18ce625e06a7" @@ -864,6 +1621,13 @@ "@babel/helper-module-transforms" "^7.16.0" "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-named-capturing-groups-regex@^7.12.1", "@babel/plugin-transform-named-capturing-groups-regex@^7.17.10", "@babel/plugin-transform-named-capturing-groups-regex@^7.4.5": + version "7.17.10" + resolved "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.17.10.tgz#715dbcfafdb54ce8bccd3d12e8917296a4ba66a4" + integrity sha512-v54O6yLaJySCs6mGzaVOUw9T967GnH38T6CQSAtnzdNPwu84l2qAjssKzo/WSO8Yi7NF+7ekm5cVbF/5qiIgNA== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.17.0" + "@babel/plugin-transform-named-capturing-groups-regex@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.16.0.tgz#d3db61cc5d5b97986559967cd5ea83e5c32096ca" @@ -871,6 +1635,13 @@ dependencies: "@babel/helper-create-regexp-features-plugin" "^7.16.0" +"@babel/plugin-transform-new-target@^7.12.1", "@babel/plugin-transform-new-target@^7.16.7", "@babel/plugin-transform-new-target@^7.4.4": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.16.7.tgz#9967d89a5c243818e0800fdad89db22c5f514244" + integrity sha512-xiLDzWNMfKoGOpc6t3U+etCE2yRnn3SM09BXqWPIZOBpL2gvVrBWUKnsJx0K/ADi5F5YC5f8APFfWrz25TdlGg== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-new-target@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.16.0.tgz#af823ab576f752215a49937779a41ca65825ab35" @@ -878,6 +1649,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-object-super@^7.12.1", "@babel/plugin-transform-object-super@^7.16.7", "@babel/plugin-transform-object-super@^7.2.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.16.7.tgz#ac359cf8d32cf4354d27a46867999490b6c32a94" + integrity sha512-14J1feiQVWaGvRxj2WjyMuXS2jsBkgB3MdSN5HuC2G5nRspa5RK9COcs82Pwy5BuGcjb+fYaUj94mYcOj7rCvw== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-replace-supers" "^7.16.7" + "@babel/plugin-transform-object-super@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.16.0.tgz#fb20d5806dc6491a06296ac14ea8e8d6fedda72b" @@ -886,6 +1665,13 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/helper-replace-supers" "^7.16.0" +"@babel/plugin-transform-parameters@^7.12.1", "@babel/plugin-transform-parameters@^7.16.7", "@babel/plugin-transform-parameters@^7.4.4": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.16.7.tgz#a1721f55b99b736511cb7e0152f61f17688f331f" + integrity sha512-AT3MufQ7zZEhU2hwOA11axBnExW0Lszu4RL/tAlUJBuNoRak+wehQW8h6KcXOcgjY42fHtDxswuMhMjFEuv/aw== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-parameters@^7.16.0": version "7.16.3" resolved "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.16.3.tgz#fa9e4c874ee5223f891ee6fa8d737f4766d31d15" @@ -893,6 +1679,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-property-literals@^7.12.1", "@babel/plugin-transform-property-literals@^7.16.7", "@babel/plugin-transform-property-literals@^7.2.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.16.7.tgz#2dadac85155436f22c696c4827730e0fe1057a55" + integrity sha512-z4FGr9NMGdoIl1RqavCqGG+ZuYjfZ/hkCIeuH6Do7tXmSm0ls11nYVSJqFEUOSJbDab5wC6lRE/w6YjVcr6Hqw== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-property-literals@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.16.0.tgz#a95c552189a96a00059f6776dc4e00e3690c78d1" @@ -900,6 +1693,67 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-react-constant-elements@^7.12.1": + version "7.17.6" + resolved "https://registry.npmjs.org/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.17.6.tgz#6cc273c2f612a6a50cb657e63ee1303e5e68d10a" + integrity sha512-OBv9VkyyKtsHZiHLoSfCn+h6yU7YKX8nrs32xUmOa1SRSk+t03FosB6fBZ0Yz4BpD1WV7l73Nsad+2Tz7APpqw== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + +"@babel/plugin-transform-react-display-name@^7.0.0", "@babel/plugin-transform-react-display-name@^7.12.1", "@babel/plugin-transform-react-display-name@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.16.7.tgz#7b6d40d232f4c0f550ea348593db3b21e2404340" + integrity sha512-qgIg8BcZgd0G/Cz916D5+9kqX0c7nPZyXaP8R2tLNN5tkyIZdG5fEwBrxwplzSnjC1jvQmyMNVwUCZPcbGY7Pg== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + +"@babel/plugin-transform-react-jsx-development@^7.12.1", "@babel/plugin-transform-react-jsx-development@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.16.7.tgz#43a00724a3ed2557ed3f276a01a929e6686ac7b8" + integrity sha512-RMvQWvpla+xy6MlBpPlrKZCMRs2AGiHOGHY3xRwl0pEeim348dDyxeH4xBsMPbIMhujeq7ihE702eM2Ew0Wo+A== + dependencies: + "@babel/plugin-transform-react-jsx" "^7.16.7" + +"@babel/plugin-transform-react-jsx-self@^7.0.0", "@babel/plugin-transform-react-jsx-self@^7.12.1": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.16.7.tgz#f432ad0cba14c4a1faf44f0076c69e42a4d4479e" + integrity sha512-oe5VuWs7J9ilH3BCCApGoYjHoSO48vkjX2CbA5bFVhIuO2HKxA3vyF7rleA4o6/4rTDbk6r8hBW7Ul8E+UZrpA== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + +"@babel/plugin-transform-react-jsx-source@^7.0.0", "@babel/plugin-transform-react-jsx-source@^7.12.1": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.16.7.tgz#1879c3f23629d287cc6186a6c683154509ec70c0" + integrity sha512-rONFiQz9vgbsnaMtQlZCjIRwhJvlrPET8TabIUK2hzlXw9B9s2Ieaxte1SCOOXMbWRHodbKixNf3BLcWVOQ8Bw== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + +"@babel/plugin-transform-react-jsx@^7.0.0", "@babel/plugin-transform-react-jsx@^7.12.1", "@babel/plugin-transform-react-jsx@^7.16.7": + version "7.17.3" + resolved "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.17.3.tgz#eac1565da176ccb1a715dae0b4609858808008c1" + integrity sha512-9tjBm4O07f7mzKSIlEmPdiE6ub7kfIe6Cd+w+oQebpATfTQMAgW+YOuWxogbKVTulA+MEO7byMeIUtQ1z+z+ZQ== + dependencies: + "@babel/helper-annotate-as-pure" "^7.16.7" + "@babel/helper-module-imports" "^7.16.7" + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-syntax-jsx" "^7.16.7" + "@babel/types" "^7.17.0" + +"@babel/plugin-transform-react-pure-annotations@^7.12.1", "@babel/plugin-transform-react-pure-annotations@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.16.7.tgz#232bfd2f12eb551d6d7d01d13fe3f86b45eb9c67" + integrity sha512-hs71ToC97k3QWxswh2ElzMFABXHvGiJ01IB1TbYQDGeWRKWz/MPUTh5jGExdHvosYKpnJW5Pm3S4+TA3FyX+GA== + dependencies: + "@babel/helper-annotate-as-pure" "^7.16.7" + "@babel/helper-plugin-utils" "^7.16.7" + +"@babel/plugin-transform-regenerator@^7.12.1", "@babel/plugin-transform-regenerator@^7.17.9", "@babel/plugin-transform-regenerator@^7.4.5": + version "7.17.9" + resolved "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.17.9.tgz#0a33c3a61cf47f45ed3232903683a0afd2d3460c" + integrity sha512-Lc2TfbxR1HOyn/c6b4Y/b6NHoTb67n/IoWLxTu4kC7h4KQnWlhCq2S8Tx0t2SVvv5Uu87Hs+6JEJ5kt2tYGylQ== + dependencies: + regenerator-transform "^0.15.0" + "@babel/plugin-transform-regenerator@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.16.0.tgz#eaee422c84b0232d03aea7db99c97deeaf6125a4" @@ -907,6 +1761,13 @@ dependencies: regenerator-transform "^0.14.2" +"@babel/plugin-transform-reserved-words@^7.12.1", "@babel/plugin-transform-reserved-words@^7.16.7", "@babel/plugin-transform-reserved-words@^7.2.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.16.7.tgz#1d798e078f7c5958eec952059c460b220a63f586" + integrity sha512-KQzzDnZ9hWQBjwi5lpY5v9shmm6IVG0U9pB18zvMu2i4H90xpT4gmqwPYsn8rObiadYe2M0gmgsiOIF5A/2rtg== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-reserved-words@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.16.0.tgz#fff4b9dcb19e12619394bda172d14f2d04c0379c" @@ -914,6 +1775,33 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-runtime@7.12.1": + version "7.12.1" + resolved "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.12.1.tgz#04b792057eb460389ff6a4198e377614ea1e7ba5" + integrity sha512-Ac/H6G9FEIkS2tXsZjL4RAdS3L3WHxci0usAnz7laPWUmFiGtj7tIASChqKZMHTSQTQY6xDbOq+V1/vIq3QrWg== + dependencies: + "@babel/helper-module-imports" "^7.12.1" + "@babel/helper-plugin-utils" "^7.10.4" + resolve "^1.8.1" + semver "^5.5.1" + +"@babel/plugin-transform-runtime@7.4.4": + version "7.4.4" + resolved "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.4.4.tgz#a50f5d16e9c3a4ac18a1a9f9803c107c380bce08" + integrity sha512-aMVojEjPszvau3NRg+TIH14ynZLvPewH4xhlCW1w6A3rkxTS1m4uwzRclYR9oS+rl/dr+kT+pzbfHuAWP/lc7Q== + dependencies: + "@babel/helper-module-imports" "^7.0.0" + "@babel/helper-plugin-utils" "^7.0.0" + resolve "^1.8.1" + semver "^5.5.1" + +"@babel/plugin-transform-shorthand-properties@^7.12.1", "@babel/plugin-transform-shorthand-properties@^7.16.7", "@babel/plugin-transform-shorthand-properties@^7.2.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.16.7.tgz#e8549ae4afcf8382f711794c0c7b6b934c5fbd2a" + integrity sha512-hah2+FEnoRoATdIb05IOXf+4GzXYTq75TVhIn1PewihbpyrNWUt2JbudKQOETWw6QpLe+AIUpJ5MVLYTQbeeUg== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-shorthand-properties@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.16.0.tgz#090372e3141f7cc324ed70b3daf5379df2fa384d" @@ -921,6 +1809,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-spread@^7.12.1", "@babel/plugin-transform-spread@^7.16.7", "@babel/plugin-transform-spread@^7.2.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.16.7.tgz#a303e2122f9f12e0105daeedd0f30fb197d8ff44" + integrity sha512-+pjJpgAngb53L0iaA5gU/1MLXJIfXcYepLgXB3esVRf4fqmj8f2cxM3/FKaHsZms08hFQJkFccEWuIpm429TXg== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-skip-transparent-expression-wrappers" "^7.16.0" + "@babel/plugin-transform-spread@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.16.0.tgz#d21ca099bbd53ab307a8621e019a7bd0f40cdcfb" @@ -929,6 +1825,13 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/helper-skip-transparent-expression-wrappers" "^7.16.0" +"@babel/plugin-transform-sticky-regex@^7.12.1", "@babel/plugin-transform-sticky-regex@^7.16.7", "@babel/plugin-transform-sticky-regex@^7.2.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.16.7.tgz#c84741d4f4a38072b9a1e2e3fd56d359552e8660" + integrity sha512-NJa0Bd/87QV5NZZzTuZG5BPJjLYadeSZ9fO6oOUoL4iQx+9EEuw/eEM92SrsT19Yc2jgB1u1hsjqDtH02c3Drw== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-sticky-regex@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.16.0.tgz#c35ea31a02d86be485f6aa510184b677a91738fd" @@ -936,6 +1839,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-template-literals@^7.12.1", "@babel/plugin-transform-template-literals@^7.16.7", "@babel/plugin-transform-template-literals@^7.4.4": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.16.7.tgz#f3d1c45d28967c8e80f53666fc9c3e50618217ab" + integrity sha512-VwbkDDUeenlIjmfNeDX/V0aWrQH2QiVyJtwymVQSzItFDTpxfyJh3EVaQiS0rIN/CqbLGr0VcGmuwyTdZtdIsA== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-template-literals@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.16.0.tgz#a8eced3a8e7b8e2d40ec4ec4548a45912630d302" @@ -943,6 +1853,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-typeof-symbol@^7.12.1", "@babel/plugin-transform-typeof-symbol@^7.16.7", "@babel/plugin-transform-typeof-symbol@^7.2.0": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.16.7.tgz#9cdbe622582c21368bd482b660ba87d5545d4f7e" + integrity sha512-p2rOixCKRJzpg9JB4gjnG4gjWkWa89ZoYUnl9snJ1cWIcTH/hvxZqfO+WjG6T8DRBpctEol5jw1O5rA8gkCokQ== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-typeof-symbol@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.16.0.tgz#8b19a244c6f8c9d668dca6a6f754ad6ead1128f2" @@ -950,6 +1867,15 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-typescript@^7.12.1", "@babel/plugin-transform-typescript@^7.3.2": + version "7.16.8" + resolved "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.16.8.tgz#591ce9b6b83504903fa9dd3652c357c2ba7a1ee0" + integrity sha512-bHdQ9k7YpBDO2d0NVfkj51DpQcvwIzIusJ7mEUaMlbZq3Kt/U47j24inXZHQ5MDiYpCs+oZiwnXyKedE8+q7AQ== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.16.7" + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-syntax-typescript" "^7.16.7" + "@babel/plugin-transform-typescript@^7.16.0": version "7.16.1" resolved "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.16.1.tgz#cc0670b2822b0338355bc1b3d2246a42b8166409" @@ -959,6 +1885,13 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-typescript" "^7.16.0" +"@babel/plugin-transform-unicode-escapes@^7.12.1", "@babel/plugin-transform-unicode-escapes@^7.16.7": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.16.7.tgz#da8717de7b3287a2c6d659750c964f302b31ece3" + integrity sha512-TAV5IGahIz3yZ9/Hfv35TV2xEm+kaBDaZQCn2S/hG9/CZ0DktxJv9eKfPc7yYCvOYR4JGx1h8C+jcSOvgaaI/Q== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-unicode-escapes@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.16.0.tgz#1a354064b4c45663a32334f46fa0cf6100b5b1f3" @@ -966,6 +1899,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-unicode-regex@^7.12.1", "@babel/plugin-transform-unicode-regex@^7.16.7", "@babel/plugin-transform-unicode-regex@^7.4.4": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.16.7.tgz#0f7aa4a501198976e25e82702574c34cfebe9ef2" + integrity sha512-oC5tYYKw56HO75KZVLQ+R/Nl3Hro9kf8iG0hXoaHP7tjAyCpvqBiSNe6vGrZni1Z6MggmUOC6A7VP7AVmw225Q== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.16.7" + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-transform-unicode-regex@^7.16.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.16.0.tgz#293b80950177c8c85aede87cef280259fb995402" @@ -974,6 +1915,212 @@ "@babel/helper-create-regexp-features-plugin" "^7.16.0" "@babel/helper-plugin-utils" "^7.14.5" +"@babel/preset-env@7.12.1": + version "7.12.1" + resolved "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.12.1.tgz#9c7e5ca82a19efc865384bb4989148d2ee5d7ac2" + integrity sha512-H8kxXmtPaAGT7TyBvSSkoSTUK6RHh61So05SyEbpmr0MCZrsNYn7mGMzzeYoOUCdHzww61k8XBft2TaES+xPLg== + dependencies: + "@babel/compat-data" "^7.12.1" + "@babel/helper-compilation-targets" "^7.12.1" + "@babel/helper-module-imports" "^7.12.1" + "@babel/helper-plugin-utils" "^7.10.4" + "@babel/helper-validator-option" "^7.12.1" + "@babel/plugin-proposal-async-generator-functions" "^7.12.1" + "@babel/plugin-proposal-class-properties" "^7.12.1" + "@babel/plugin-proposal-dynamic-import" "^7.12.1" + "@babel/plugin-proposal-export-namespace-from" "^7.12.1" + "@babel/plugin-proposal-json-strings" "^7.12.1" + "@babel/plugin-proposal-logical-assignment-operators" "^7.12.1" + "@babel/plugin-proposal-nullish-coalescing-operator" "^7.12.1" + "@babel/plugin-proposal-numeric-separator" "^7.12.1" + "@babel/plugin-proposal-object-rest-spread" "^7.12.1" + "@babel/plugin-proposal-optional-catch-binding" "^7.12.1" + "@babel/plugin-proposal-optional-chaining" "^7.12.1" + "@babel/plugin-proposal-private-methods" "^7.12.1" + "@babel/plugin-proposal-unicode-property-regex" "^7.12.1" + "@babel/plugin-syntax-async-generators" "^7.8.0" + "@babel/plugin-syntax-class-properties" "^7.12.1" + "@babel/plugin-syntax-dynamic-import" "^7.8.0" + "@babel/plugin-syntax-export-namespace-from" "^7.8.3" + "@babel/plugin-syntax-json-strings" "^7.8.0" + "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.0" + "@babel/plugin-syntax-numeric-separator" "^7.10.4" + "@babel/plugin-syntax-object-rest-spread" "^7.8.0" + "@babel/plugin-syntax-optional-catch-binding" "^7.8.0" + "@babel/plugin-syntax-optional-chaining" "^7.8.0" + "@babel/plugin-syntax-top-level-await" "^7.12.1" + "@babel/plugin-transform-arrow-functions" "^7.12.1" + "@babel/plugin-transform-async-to-generator" "^7.12.1" + "@babel/plugin-transform-block-scoped-functions" "^7.12.1" + "@babel/plugin-transform-block-scoping" "^7.12.1" + "@babel/plugin-transform-classes" "^7.12.1" + "@babel/plugin-transform-computed-properties" "^7.12.1" + "@babel/plugin-transform-destructuring" "^7.12.1" + "@babel/plugin-transform-dotall-regex" "^7.12.1" + "@babel/plugin-transform-duplicate-keys" "^7.12.1" + "@babel/plugin-transform-exponentiation-operator" "^7.12.1" + "@babel/plugin-transform-for-of" "^7.12.1" + "@babel/plugin-transform-function-name" "^7.12.1" + "@babel/plugin-transform-literals" "^7.12.1" + "@babel/plugin-transform-member-expression-literals" "^7.12.1" + "@babel/plugin-transform-modules-amd" "^7.12.1" + "@babel/plugin-transform-modules-commonjs" "^7.12.1" + "@babel/plugin-transform-modules-systemjs" "^7.12.1" + "@babel/plugin-transform-modules-umd" "^7.12.1" + "@babel/plugin-transform-named-capturing-groups-regex" "^7.12.1" + "@babel/plugin-transform-new-target" "^7.12.1" + "@babel/plugin-transform-object-super" "^7.12.1" + "@babel/plugin-transform-parameters" "^7.12.1" + "@babel/plugin-transform-property-literals" "^7.12.1" + "@babel/plugin-transform-regenerator" "^7.12.1" + "@babel/plugin-transform-reserved-words" "^7.12.1" + "@babel/plugin-transform-shorthand-properties" "^7.12.1" + "@babel/plugin-transform-spread" "^7.12.1" + "@babel/plugin-transform-sticky-regex" "^7.12.1" + "@babel/plugin-transform-template-literals" "^7.12.1" + "@babel/plugin-transform-typeof-symbol" "^7.12.1" + "@babel/plugin-transform-unicode-escapes" "^7.12.1" + "@babel/plugin-transform-unicode-regex" "^7.12.1" + "@babel/preset-modules" "^0.1.3" + "@babel/types" "^7.12.1" + core-js-compat "^3.6.2" + semver "^5.5.0" + +"@babel/preset-env@7.4.5": + version "7.4.5" + resolved "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.4.5.tgz#2fad7f62983d5af563b5f3139242755884998a58" + integrity sha512-f2yNVXM+FsR5V8UwcFeIHzHWgnhXg3NpRmy0ADvALpnhB0SLbCvrCRr4BLOUYbQNLS+Z0Yer46x9dJXpXewI7w== + dependencies: + "@babel/helper-module-imports" "^7.0.0" + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-proposal-async-generator-functions" "^7.2.0" + "@babel/plugin-proposal-json-strings" "^7.2.0" + "@babel/plugin-proposal-object-rest-spread" "^7.4.4" + "@babel/plugin-proposal-optional-catch-binding" "^7.2.0" + "@babel/plugin-proposal-unicode-property-regex" "^7.4.4" + "@babel/plugin-syntax-async-generators" "^7.2.0" + "@babel/plugin-syntax-json-strings" "^7.2.0" + "@babel/plugin-syntax-object-rest-spread" "^7.2.0" + "@babel/plugin-syntax-optional-catch-binding" "^7.2.0" + "@babel/plugin-transform-arrow-functions" "^7.2.0" + "@babel/plugin-transform-async-to-generator" "^7.4.4" + "@babel/plugin-transform-block-scoped-functions" "^7.2.0" + "@babel/plugin-transform-block-scoping" "^7.4.4" + "@babel/plugin-transform-classes" "^7.4.4" + "@babel/plugin-transform-computed-properties" "^7.2.0" + "@babel/plugin-transform-destructuring" "^7.4.4" + "@babel/plugin-transform-dotall-regex" "^7.4.4" + "@babel/plugin-transform-duplicate-keys" "^7.2.0" + "@babel/plugin-transform-exponentiation-operator" "^7.2.0" + "@babel/plugin-transform-for-of" "^7.4.4" + "@babel/plugin-transform-function-name" "^7.4.4" + "@babel/plugin-transform-literals" "^7.2.0" + "@babel/plugin-transform-member-expression-literals" "^7.2.0" + "@babel/plugin-transform-modules-amd" "^7.2.0" + "@babel/plugin-transform-modules-commonjs" "^7.4.4" + "@babel/plugin-transform-modules-systemjs" "^7.4.4" + "@babel/plugin-transform-modules-umd" "^7.2.0" + "@babel/plugin-transform-named-capturing-groups-regex" "^7.4.5" + "@babel/plugin-transform-new-target" "^7.4.4" + "@babel/plugin-transform-object-super" "^7.2.0" + "@babel/plugin-transform-parameters" "^7.4.4" + "@babel/plugin-transform-property-literals" "^7.2.0" + "@babel/plugin-transform-regenerator" "^7.4.5" + "@babel/plugin-transform-reserved-words" "^7.2.0" + "@babel/plugin-transform-shorthand-properties" "^7.2.0" + "@babel/plugin-transform-spread" "^7.2.0" + "@babel/plugin-transform-sticky-regex" "^7.2.0" + "@babel/plugin-transform-template-literals" "^7.4.4" + "@babel/plugin-transform-typeof-symbol" "^7.2.0" + "@babel/plugin-transform-unicode-regex" "^7.4.4" + "@babel/types" "^7.4.4" + browserslist "^4.6.0" + core-js-compat "^3.1.1" + invariant "^2.2.2" + js-levenshtein "^1.1.3" + semver "^5.5.0" + +"@babel/preset-env@^7.1.0", "@babel/preset-env@^7.12.1": + version "7.17.10" + resolved "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.17.10.tgz#a81b093669e3eb6541bb81a23173c5963c5de69c" + integrity sha512-YNgyBHZQpeoBSRBg0xixsZzfT58Ze1iZrajvv0lJc70qDDGuGfonEnMGfWeSY0mQ3JTuCWFbMkzFRVafOyJx4g== + dependencies: + "@babel/compat-data" "^7.17.10" + "@babel/helper-compilation-targets" "^7.17.10" + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-validator-option" "^7.16.7" + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.16.7" + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.16.7" + "@babel/plugin-proposal-async-generator-functions" "^7.16.8" + "@babel/plugin-proposal-class-properties" "^7.16.7" + "@babel/plugin-proposal-class-static-block" "^7.17.6" + "@babel/plugin-proposal-dynamic-import" "^7.16.7" + "@babel/plugin-proposal-export-namespace-from" "^7.16.7" + "@babel/plugin-proposal-json-strings" "^7.16.7" + "@babel/plugin-proposal-logical-assignment-operators" "^7.16.7" + "@babel/plugin-proposal-nullish-coalescing-operator" "^7.16.7" + "@babel/plugin-proposal-numeric-separator" "^7.16.7" + "@babel/plugin-proposal-object-rest-spread" "^7.17.3" + "@babel/plugin-proposal-optional-catch-binding" "^7.16.7" + "@babel/plugin-proposal-optional-chaining" "^7.16.7" + "@babel/plugin-proposal-private-methods" "^7.16.11" + "@babel/plugin-proposal-private-property-in-object" "^7.16.7" + "@babel/plugin-proposal-unicode-property-regex" "^7.16.7" + "@babel/plugin-syntax-async-generators" "^7.8.4" + "@babel/plugin-syntax-class-properties" "^7.12.13" + "@babel/plugin-syntax-class-static-block" "^7.14.5" + "@babel/plugin-syntax-dynamic-import" "^7.8.3" + "@babel/plugin-syntax-export-namespace-from" "^7.8.3" + "@babel/plugin-syntax-json-strings" "^7.8.3" + "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" + "@babel/plugin-syntax-numeric-separator" "^7.10.4" + "@babel/plugin-syntax-object-rest-spread" "^7.8.3" + "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" + "@babel/plugin-syntax-optional-chaining" "^7.8.3" + "@babel/plugin-syntax-private-property-in-object" "^7.14.5" + "@babel/plugin-syntax-top-level-await" "^7.14.5" + "@babel/plugin-transform-arrow-functions" "^7.16.7" + "@babel/plugin-transform-async-to-generator" "^7.16.8" + "@babel/plugin-transform-block-scoped-functions" "^7.16.7" + "@babel/plugin-transform-block-scoping" "^7.16.7" + "@babel/plugin-transform-classes" "^7.16.7" + "@babel/plugin-transform-computed-properties" "^7.16.7" + "@babel/plugin-transform-destructuring" "^7.17.7" + "@babel/plugin-transform-dotall-regex" "^7.16.7" + "@babel/plugin-transform-duplicate-keys" "^7.16.7" + "@babel/plugin-transform-exponentiation-operator" "^7.16.7" + "@babel/plugin-transform-for-of" "^7.16.7" + "@babel/plugin-transform-function-name" "^7.16.7" + "@babel/plugin-transform-literals" "^7.16.7" + "@babel/plugin-transform-member-expression-literals" "^7.16.7" + "@babel/plugin-transform-modules-amd" "^7.16.7" + "@babel/plugin-transform-modules-commonjs" "^7.17.9" + "@babel/plugin-transform-modules-systemjs" "^7.17.8" + "@babel/plugin-transform-modules-umd" "^7.16.7" + "@babel/plugin-transform-named-capturing-groups-regex" "^7.17.10" + "@babel/plugin-transform-new-target" "^7.16.7" + "@babel/plugin-transform-object-super" "^7.16.7" + "@babel/plugin-transform-parameters" "^7.16.7" + "@babel/plugin-transform-property-literals" "^7.16.7" + "@babel/plugin-transform-regenerator" "^7.17.9" + "@babel/plugin-transform-reserved-words" "^7.16.7" + "@babel/plugin-transform-shorthand-properties" "^7.16.7" + "@babel/plugin-transform-spread" "^7.16.7" + "@babel/plugin-transform-sticky-regex" "^7.16.7" + "@babel/plugin-transform-template-literals" "^7.16.7" + "@babel/plugin-transform-typeof-symbol" "^7.16.7" + "@babel/plugin-transform-unicode-escapes" "^7.16.7" + "@babel/plugin-transform-unicode-regex" "^7.16.7" + "@babel/preset-modules" "^0.1.5" + "@babel/types" "^7.17.10" + babel-plugin-polyfill-corejs2 "^0.3.0" + babel-plugin-polyfill-corejs3 "^0.5.0" + babel-plugin-polyfill-regenerator "^0.3.0" + core-js-compat "^3.22.1" + semver "^6.3.0" + "@babel/preset-env@^7.1.6": version "7.16.0" resolved "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.16.0.tgz#97228393d217560d6a1c6c56f0adb9d12bca67f5" @@ -1063,7 +2210,7 @@ "@babel/helper-validator-option" "^7.14.5" "@babel/plugin-transform-flow-strip-types" "^7.16.0" -"@babel/preset-modules@^0.1.5": +"@babel/preset-modules@^0.1.3", "@babel/preset-modules@^0.1.5": version "0.1.5" resolved "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz#ef939d6e7f268827e1841638dc6ff95515e115d9" integrity sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA== @@ -1074,6 +2221,58 @@ "@babel/types" "^7.4.4" esutils "^2.0.2" +"@babel/preset-react@7.0.0": + version "7.0.0" + resolved "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.0.0.tgz#e86b4b3d99433c7b3e9e91747e2653958bc6b3c0" + integrity sha512-oayxyPS4Zj+hF6Et11BwuBkmpgT/zMxyuZgFrMeZID6Hdh3dGlk4sHCAhdBCpuCKW2ppBfl2uCCetlrUIJRY3w== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-transform-react-display-name" "^7.0.0" + "@babel/plugin-transform-react-jsx" "^7.0.0" + "@babel/plugin-transform-react-jsx-self" "^7.0.0" + "@babel/plugin-transform-react-jsx-source" "^7.0.0" + +"@babel/preset-react@7.12.1": + version "7.12.1" + resolved "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.12.1.tgz#7f022b13f55b6dd82f00f16d1c599ae62985358c" + integrity sha512-euCExymHCi0qB9u5fKw7rvlw7AZSjw/NaB9h7EkdTt5+yHRrXdiRTh7fkG3uBPpJg82CqLfp1LHLqWGSCrab+g== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + "@babel/plugin-transform-react-display-name" "^7.12.1" + "@babel/plugin-transform-react-jsx" "^7.12.1" + "@babel/plugin-transform-react-jsx-development" "^7.12.1" + "@babel/plugin-transform-react-jsx-self" "^7.12.1" + "@babel/plugin-transform-react-jsx-source" "^7.12.1" + "@babel/plugin-transform-react-pure-annotations" "^7.12.1" + +"@babel/preset-react@^7.0.0", "@babel/preset-react@^7.12.5": + version "7.16.7" + resolved "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.16.7.tgz#4c18150491edc69c183ff818f9f2aecbe5d93852" + integrity sha512-fWpyI8UM/HE6DfPBzD8LnhQ/OcH8AgTaqcqP2nGOXEUV+VKBR5JRN9hCk9ai+zQQ57vtm9oWeXguBCPNUjytgA== + dependencies: + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/helper-validator-option" "^7.16.7" + "@babel/plugin-transform-react-display-name" "^7.16.7" + "@babel/plugin-transform-react-jsx" "^7.16.7" + "@babel/plugin-transform-react-jsx-development" "^7.16.7" + "@babel/plugin-transform-react-pure-annotations" "^7.16.7" + +"@babel/preset-typescript@7.12.1": + version "7.12.1" + resolved "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.12.1.tgz#86480b483bb97f75036e8864fe404cc782cc311b" + integrity sha512-hNK/DhmoJPsksdHuI/RVrcEws7GN5eamhi28JkO52MqIxU8Z0QpmiSOQxZHWOHV7I3P4UjHV97ay4TcamMA6Kw== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + "@babel/plugin-transform-typescript" "^7.12.1" + +"@babel/preset-typescript@7.3.3": + version "7.3.3" + resolved "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.3.3.tgz#88669911053fa16b2b276ea2ede2ca603b3f307a" + integrity sha512-mzMVuIP4lqtn4du2ynEfdO0+RYcslwrZiJHXu4MGaC1ctJiW2fyaeDrtjJGs7R/KebZ1sgowcIoWf4uRpEfKEg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-transform-typescript" "^7.3.2" + "@babel/preset-typescript@^7.1.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.16.0.tgz#b0b4f105b855fb3d631ec036cdc9d1ffd1fa5eac" @@ -1083,6 +2282,17 @@ "@babel/helper-validator-option" "^7.14.5" "@babel/plugin-transform-typescript" "^7.16.0" +"@babel/register@7.12.1": + version "7.12.1" + resolved "https://registry.npmjs.org/@babel/register/-/register-7.12.1.tgz#cdb087bdfc4f7241c03231f22e15d211acf21438" + integrity sha512-XWcmseMIncOjoydKZnWvWi0/5CUCD+ZYKhRwgYlWOrA8fGZ/FjuLRpqtIhLOVD/fvR1b9DQHtZPn68VvhpYf+Q== + dependencies: + find-cache-dir "^2.0.0" + lodash "^4.17.19" + make-dir "^2.1.0" + pirates "^4.0.0" + source-map-support "^0.5.16" + "@babel/register@^7.0.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/register/-/register-7.16.0.tgz#f5d2aa14df37cf7146b9759f7c53818360f24ec6" @@ -1094,6 +2304,14 @@ pirates "^4.0.0" source-map-support "^0.5.16" +"@babel/runtime-corejs3@^7.10.2": + version "7.17.9" + resolved "https://registry.npmjs.org/@babel%2fruntime-corejs3/-/runtime-corejs3-7.17.9.tgz#3d02d0161f0fbf3ada8e88159375af97690f4055" + integrity sha512-WxYHHUWF2uZ7Hp1K+D1xQgbgkGUfA+5UPOegEXGt2Y5SMog/rYCVaifLZDbw8UkNXozEqqrZTy6bglL7xTaCOw== + dependencies: + core-js-pure "^3.20.2" + regenerator-runtime "^0.13.4" + "@babel/runtime@7.12.5": version "7.12.5" resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.5.tgz#410e7e487441e1b360c29be715d870d9b985882e" @@ -1101,6 +2319,13 @@ dependencies: regenerator-runtime "^0.13.4" +"@babel/runtime@7.4.5": + version "7.4.5" + resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.4.5.tgz#582bb531f5f9dc67d2fcb682979894f75e253f12" + integrity sha512-TuI4qpWZP6lGOGIuGWtp9sPluqYICmbk8T/1vpSysqJxRPkudh/ofFWyqdcMsDf2s7KvDL4/YHgKyvcS3g9CJQ== + dependencies: + regenerator-runtime "^0.13.2" + "@babel/runtime@^7.1.2", "@babel/runtime@^7.10.1", "@babel/runtime@^7.11.1", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.0", "@babel/runtime@^7.12.1", "@babel/runtime@^7.12.5", "@babel/runtime@^7.8.4": version "7.16.3" resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.3.tgz#b86f0db02a04187a3c17caa77de69840165d42d5" @@ -1115,6 +2340,13 @@ dependencies: regenerator-runtime "^0.13.4" +"@babel/runtime@^7.10.3", "@babel/runtime@^7.3.0", "@babel/runtime@^7.4.2": + version "7.17.9" + resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.17.9.tgz#d19fbf802d01a8cb6cf053a64e472d42c434ba72" + integrity sha512-lSiBBvodq29uShpWGNbgFdKYNiFDo5/HIYsaCEY9ff4sb10x9jizo2+pRrSyF4jKZCXqgzuqBOQKbUm90gQwJg== + dependencies: + regenerator-runtime "^0.13.4" + "@babel/runtime@^7.12.13", "@babel/runtime@^7.6.3", "@babel/runtime@^7.8.7": version "7.17.2" resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.17.2.tgz#66f68591605e59da47523c631416b18508779941" @@ -1129,7 +2361,7 @@ dependencies: regenerator-runtime "^0.13.4" -"@babel/template@^7.12.7", "@babel/template@^7.16.7", "@babel/template@^7.4.0": +"@babel/template@^7.10.4", "@babel/template@^7.16.7", "@babel/template@^7.4.0", "@babel/template@^7.4.4": version "7.16.7" resolved "https://registry.npmjs.org/@babel/template/-/template-7.16.7.tgz#8d126c8701fde4d66b264b3eba3d96f07666d155" integrity sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w== @@ -1162,7 +2394,23 @@ debug "^4.1.0" globals "^11.1.0" -"@babel/traverse@^7.12.10", "@babel/traverse@^7.16.7", "@babel/traverse@^7.17.0", "@babel/traverse@^7.4.3": +"@babel/traverse@^7.12.1", "@babel/traverse@^7.16.8", "@babel/traverse@^7.17.10", "@babel/traverse@^7.17.3", "@babel/traverse@^7.17.9", "@babel/traverse@^7.4.5": + version "7.17.10" + resolved "https://registry.npmjs.org/@babel/traverse/-/traverse-7.17.10.tgz#1ee1a5ac39f4eac844e6cf855b35520e5eb6f8b5" + integrity sha512-VmbrTHQteIdUUQNTb+zE12SHS/xQVIShmBPhlNP12hD5poF2pbITW1Z4172d03HegaQWhLffdkRJYtAzp0AGcw== + dependencies: + "@babel/code-frame" "^7.16.7" + "@babel/generator" "^7.17.10" + "@babel/helper-environment-visitor" "^7.16.7" + "@babel/helper-function-name" "^7.17.9" + "@babel/helper-hoist-variables" "^7.16.7" + "@babel/helper-split-export-declaration" "^7.16.7" + "@babel/parser" "^7.17.10" + "@babel/types" "^7.17.10" + debug "^4.1.0" + globals "^11.1.0" + +"@babel/traverse@^7.16.7", "@babel/traverse@^7.4.3": version "7.17.0" resolved "https://registry.npmjs.org/@babel/traverse/-/traverse-7.17.0.tgz#3143e5066796408ccc880a33ecd3184f3e75cd30" integrity sha512-fpFIXvqD6kC7c7PUNnZ0Z8cQXlarCLtCUpt2S1Dx7PjoRtCFffvOkHHSom+m5HIxMZn5bIBVb71lhabcmjEsqg== @@ -1186,7 +2434,15 @@ "@babel/helper-validator-identifier" "^7.15.7" to-fast-properties "^2.0.0" -"@babel/types@^7.12.10", "@babel/types@^7.16.7", "@babel/types@^7.17.0", "@babel/types@^7.4.0": +"@babel/types@^7.12.1", "@babel/types@^7.12.6", "@babel/types@^7.16.8", "@babel/types@^7.17.10": + version "7.17.10" + resolved "https://registry.npmjs.org/@babel/types/-/types-7.17.10.tgz#d35d7b4467e439fcf06d195f8100e0fea7fc82c4" + integrity sha512-9O26jG0mBYfGkUYCYZRnBwbVLd1UZOICEr2Em6InB6jVfsAv1GKgwXHmrSg+WFWDmeKTA6vyTZiN8tCSM5Oo3A== + dependencies: + "@babel/helper-validator-identifier" "^7.16.7" + to-fast-properties "^2.0.0" + +"@babel/types@^7.16.7", "@babel/types@^7.17.0", "@babel/types@^7.4.0": version "7.17.0" resolved "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz#a826e368bccb6b3d84acd76acad5c0d87342390b" integrity sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw== @@ -1714,7 +2970,7 @@ resolved "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== -"@jest/console@^24.9.0": +"@jest/console@^24.7.1", "@jest/console@^24.9.0": version "24.9.0" resolved "https://registry.npmjs.org/@jest/console/-/console-24.9.0.tgz#79b1bc06fb74a8cfb01cbdedf945584b1b9707f0" integrity sha512-Zuj6b8TnKXi3q4ymac8EQfc3ea/uhLeCGThFqXeC8H9/raaH8ARPUTdId+XyGd03Z4In0/VjD2OYFcBF09fNLQ== @@ -1735,6 +2991,40 @@ jest-util "^26.6.2" slash "^3.0.0" +"@jest/core@^24.9.0": + version "24.9.0" + resolved "https://registry.npmjs.org/@jest/core/-/core-24.9.0.tgz#2ceccd0b93181f9c4850e74f2a9ad43d351369c4" + integrity sha512-Fogg3s4wlAr1VX7q+rhV9RVnUv5tD7VuWfYy1+whMiWUrvl7U3QJSJyWcDio9Lq2prqYsZaeTv2Rz24pWGkJ2A== + dependencies: + "@jest/console" "^24.7.1" + "@jest/reporters" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/transform" "^24.9.0" + "@jest/types" "^24.9.0" + ansi-escapes "^3.0.0" + chalk "^2.0.1" + exit "^0.1.2" + graceful-fs "^4.1.15" + jest-changed-files "^24.9.0" + jest-config "^24.9.0" + jest-haste-map "^24.9.0" + jest-message-util "^24.9.0" + jest-regex-util "^24.3.0" + jest-resolve "^24.9.0" + jest-resolve-dependencies "^24.9.0" + jest-runner "^24.9.0" + jest-runtime "^24.9.0" + jest-snapshot "^24.9.0" + jest-util "^24.9.0" + jest-validate "^24.9.0" + jest-watcher "^24.9.0" + micromatch "^3.1.10" + p-each-series "^1.0.0" + realpath-native "^1.1.0" + rimraf "^2.5.4" + slash "^2.0.0" + strip-ansi "^5.0.0" + "@jest/core@^26.6.3": version "26.6.3" resolved "https://registry.npmjs.org/@jest/core/-/core-26.6.3.tgz#7639fcb3833d748a4656ada54bde193051e45fad" @@ -1769,7 +3059,7 @@ slash "^3.0.0" strip-ansi "^6.0.0" -"@jest/environment@^24.3.0": +"@jest/environment@^24.9.0": version "24.9.0" resolved "https://registry.npmjs.org/@jest/environment/-/environment-24.9.0.tgz#21e3afa2d65c0586cbd6cbefe208bafade44ab18" integrity sha512-5A1QluTPhvdIPFYnO3sZC3smkNeXPVELz7ikPbhUj0bQjB07EoE9qtLrem14ZUYWdVayYbsjVwIiL4WBIMV4aQ== @@ -1789,7 +3079,7 @@ "@types/node" "*" jest-mock "^26.6.2" -"@jest/fake-timers@^24.3.0", "@jest/fake-timers@^24.9.0": +"@jest/fake-timers@^24.9.0": version "24.9.0" resolved "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-24.9.0.tgz#ba3e6bf0eecd09a636049896434d306636540c93" integrity sha512-eWQcNa2YSwzXWIMC5KufBh3oWRIijrQFROsIqt6v/NS9Io/gknw1jsAC9c+ih/RQX4A3O7SeWAhQeN0goKhT9A== @@ -1819,6 +3109,33 @@ "@jest/types" "^26.6.2" expect "^26.6.2" +"@jest/reporters@^24.9.0": + version "24.9.0" + resolved "https://registry.npmjs.org/@jest/reporters/-/reporters-24.9.0.tgz#86660eff8e2b9661d042a8e98a028b8d631a5b43" + integrity sha512-mu4X0yjaHrffOsWmVLzitKmmmWSQ3GGuefgNscUSWNiUNcEOSEQk9k3pERKEQVBb0Cnn88+UESIsZEMH3o88Gw== + dependencies: + "@jest/environment" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/transform" "^24.9.0" + "@jest/types" "^24.9.0" + chalk "^2.0.1" + exit "^0.1.2" + glob "^7.1.2" + istanbul-lib-coverage "^2.0.2" + istanbul-lib-instrument "^3.0.1" + istanbul-lib-report "^2.0.4" + istanbul-lib-source-maps "^3.0.1" + istanbul-reports "^2.2.6" + jest-haste-map "^24.9.0" + jest-resolve "^24.9.0" + jest-runtime "^24.9.0" + jest-util "^24.9.0" + jest-worker "^24.6.0" + node-notifier "^5.4.2" + slash "^2.0.0" + source-map "^0.6.0" + string-length "^2.0.0" + "@jest/reporters@^26.6.2": version "26.6.2" resolved "https://registry.npmjs.org/@jest/reporters/-/reporters-26.6.2.tgz#1f518b99637a5f18307bd3ecf9275f6882a667f6" @@ -1851,7 +3168,7 @@ optionalDependencies: node-notifier "^8.0.0" -"@jest/source-map@^24.9.0": +"@jest/source-map@^24.3.0", "@jest/source-map@^24.9.0": version "24.9.0" resolved "https://registry.npmjs.org/@jest/source-map/-/source-map-24.9.0.tgz#0e263a94430be4b41da683ccc1e6bffe2a191714" integrity sha512-/Xw7xGlsZb4MJzNDgB7PW5crou5JqWiBQaz6xyPd3ArOg2nfn/PunV8+olXbbEZzNl591o5rWKE9BRDaFAuIBg== @@ -1888,6 +3205,16 @@ "@types/istanbul-lib-coverage" "^2.0.0" collect-v8-coverage "^1.0.0" +"@jest/test-sequencer@^24.9.0": + version "24.9.0" + resolved "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-24.9.0.tgz#f8f334f35b625a4f2f355f2fe7e6036dad2e6b31" + integrity sha512-6qqsU4o0kW1dvA95qfNog8v8gkRN9ph6Lz7r96IvZpHdNipP2cBcb07J1Z45mz/VIS01OHJ3pY8T5fUY38tg4A== + dependencies: + "@jest/test-result" "^24.9.0" + jest-haste-map "^24.9.0" + jest-runner "^24.9.0" + jest-runtime "^24.9.0" + "@jest/test-sequencer@^26.6.3": version "26.6.3" resolved "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-26.6.3.tgz#98e8a45100863886d074205e8ffdc5a7eb582b17" @@ -1942,7 +3269,7 @@ source-map "^0.6.1" write-file-atomic "^3.0.0" -"@jest/types@^24.3.0", "@jest/types@^24.9.0": +"@jest/types@^24.9.0": version "24.9.0" resolved "https://registry.npmjs.org/@jest/types/-/types-24.9.0.tgz#63cb26cb7500d069e5a389441a7c6ab5e909fc59" integrity sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw== @@ -1962,6 +3289,37 @@ "@types/yargs" "^15.0.0" chalk "^4.0.0" +"@jridgewell/gen-mapping@^0.1.0": + version "0.1.1" + resolved "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz#e5d2e450306a9491e3bd77e323e38d7aff315996" + integrity sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w== + dependencies: + "@jridgewell/set-array" "^1.0.0" + "@jridgewell/sourcemap-codec" "^1.4.10" + +"@jridgewell/resolve-uri@^3.0.3": + version "3.0.7" + resolved "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.0.7.tgz#30cd49820a962aff48c8fffc5cd760151fca61fe" + integrity sha512-8cXDaBBHOr2pQ7j77Y6Vp5VDT2sIqWyWQ56TjEq4ih/a4iST3dItRe8Q9fp0rrIl9DoKhWQtUQz/YpOxLkXbNA== + +"@jridgewell/set-array@^1.0.0": + version "1.1.1" + resolved "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.1.tgz#36a6acc93987adcf0ba50c66908bd0b70de8afea" + integrity sha512-Ct5MqZkLGEXTVmQYbGtx9SVqD2fqwvdubdps5D3djjAkgkKwT918VNOz65pEHFaYTeWcukmJmH5SwsA9Tn2ObQ== + +"@jridgewell/sourcemap-codec@^1.4.10": + version "1.4.13" + resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.13.tgz#b6461fb0c2964356c469e115f504c95ad97ab88c" + integrity sha512-GryiOJmNcWbovBxTfZSF71V/mXbgcV3MewDe3kIMCLyIh5e7SKAeUZs+rMnJ8jkMolZ/4/VsdBmMrw3l+VdZ3w== + +"@jridgewell/trace-mapping@^0.3.9": + version "0.3.10" + resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.10.tgz#db436f0917d655393851bc258918c00226c9b183" + integrity sha512-Q0YbBd6OTsXm8Y21+YUSDXupHnodNC2M4O18jtd3iwJ3+vMZNdKGols0a9G6JOK0dcJ3IdUUHoh908ZI6qhk8Q== + dependencies: + "@jridgewell/resolve-uri" "^3.0.3" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@juggle/resize-observer@^3.3.1": version "3.3.1" resolved "https://registry.npmjs.org/@juggle/resize-observer/-/resize-observer-3.3.1.tgz#b50a781709c81e10701004214340f25475a171a0" @@ -2674,6 +4032,21 @@ stringify-entities "^3.0.1" stringify-object "^3.3.0" +"@mapbox/node-pre-gyp@^1.0.0": + version "1.0.9" + resolved "https://registry.npmjs.org/@mapbox%2fnode-pre-gyp/-/node-pre-gyp-1.0.9.tgz#09a8781a3a036151cdebbe8719d6f8b25d4058bc" + integrity sha512-aDF3S3rK9Q2gey/WAttUlISduDItz5BU3306M9Eyv6/oS40aMprnopshtlKTykxRNIBEZuRMaZAnbrQ4QtKGyw== + dependencies: + detect-libc "^2.0.0" + https-proxy-agent "^5.0.0" + make-dir "^3.1.0" + node-fetch "^2.6.7" + nopt "^5.0.0" + npmlog "^5.0.1" + rimraf "^3.0.2" + semver "^7.3.5" + tar "^6.1.11" + "@mrmlnc/readdir-enhanced@^2.2.1": version "2.2.1" resolved "https://registry.npmjs.org/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde" @@ -2682,14 +4055,6 @@ call-me-maybe "^1.0.1" glob-to-regexp "^0.3.0" -"@nocobase/utils@^0.5.0-alpha.38": - version "0.5.0-alpha.38" - resolved "https://registry.npmjs.org/@nocobase/utils/-/utils-0.5.0-alpha.38.tgz#2e28fc6d3ac8658a4429809ef2bf83bdeb737e46" - integrity sha512-/ZWgwgqlE4EkB9LmE2zRcQORLztsjsa6jOpTTriAZDi4T9HLBpBha+FaCdfF3QNrn8SbDowK2IeECsix9c/N8w== - dependencies: - deepmerge "^4.2.2" - flat-to-nested "^1.1.1" - "@nodelib/fs.scandir@2.1.5": version "2.1.5" resolved "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" @@ -2982,6 +4347,86 @@ dependencies: dequal "^2.0.2" +"@rollup/plugin-babel@5.3.1": + version "5.3.1" + resolved "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz#04bc0608f4aa4b2e4b1aebf284344d0f68fda283" + integrity sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q== + dependencies: + "@babel/helper-module-imports" "^7.10.4" + "@rollup/pluginutils" "^3.1.0" + +"@rollup/plugin-commonjs@16.0.0": + version "16.0.0" + resolved "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-16.0.0.tgz#169004d56cd0f0a1d0f35915d31a036b0efe281f" + integrity sha512-LuNyypCP3msCGVQJ7ki8PqYdpjfEkE/xtFa5DqlF+7IBD0JsfMZ87C58heSwIMint58sAUZbt3ITqOmdQv/dXw== + dependencies: + "@rollup/pluginutils" "^3.1.0" + commondir "^1.0.1" + estree-walker "^2.0.1" + glob "^7.1.6" + is-reference "^1.2.1" + magic-string "^0.25.7" + resolve "^1.17.0" + +"@rollup/plugin-inject@4.0.2": + version "4.0.2" + resolved "https://registry.npmjs.org/@rollup/plugin-inject/-/plugin-inject-4.0.2.tgz#55b21bb244a07675f7fdde577db929c82fc17395" + integrity sha512-TSLMA8waJ7Dmgmoc8JfPnwUwVZgLjjIAM6MqeIFqPO2ODK36JqE0Cf2F54UTgCUuW8da93Mvoj75a6KAVWgylw== + dependencies: + "@rollup/pluginutils" "^3.0.4" + estree-walker "^1.0.1" + magic-string "^0.25.5" + +"@rollup/plugin-json@4.1.0": + version "4.1.0" + resolved "https://registry.npmjs.org/@rollup/plugin-json/-/plugin-json-4.1.0.tgz#54e09867ae6963c593844d8bd7a9c718294496f3" + integrity sha512-yfLbTdNS6amI/2OpmbiBoW12vngr5NW2jCJVZSBEz+H5KfUJZ2M7sDjk0U6GOOdCWFVScShte29o9NezJ53TPw== + dependencies: + "@rollup/pluginutils" "^3.0.8" + +"@rollup/plugin-node-resolve@10.0.0": + version "10.0.0" + resolved "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-10.0.0.tgz#44064a2b98df7530e66acf8941ff262fc9b4ead8" + integrity sha512-sNijGta8fqzwA1VwUEtTvWCx2E7qC70NMsDh4ZG13byAXYigBNZMxALhKUSycBks5gupJdq0lFrKumFrRZ8H3A== + dependencies: + "@rollup/pluginutils" "^3.1.0" + "@types/resolve" "1.17.1" + builtin-modules "^3.1.0" + deepmerge "^4.2.2" + is-module "^1.0.0" + resolve "^1.17.0" + +"@rollup/plugin-replace@2.3.4": + version "2.3.4" + resolved "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-2.3.4.tgz#7dd84c17755d62b509577f2db37eb524d7ca88ca" + integrity sha512-waBhMzyAtjCL1GwZes2jaE9MjuQ/DQF2BatH3fRivUF3z0JBFrU0U6iBNC/4WR+2rLKhaAhPWDNPYp4mI6RqdQ== + dependencies: + "@rollup/pluginutils" "^3.1.0" + magic-string "^0.25.7" + +"@rollup/plugin-url@5.0.1": + version "5.0.1" + resolved "https://registry.npmjs.org/@rollup/plugin-url/-/plugin-url-5.0.1.tgz#77fc9f56100cd83cfb45109adf7d48af1c8ecdbf" + integrity sha512-/dO8Ic+vR9VtMkHjmFBWzISjX0iDwrB3vLg8sy4A7hxu2Uk0J09kAXbtku7gJb1fqVcJUIByFG5d/4sgNh1DvA== + dependencies: + "@rollup/pluginutils" "^3.0.4" + make-dir "^3.0.0" + mime "^2.4.4" + +"@rollup/pluginutils@^3.0.4", "@rollup/pluginutils@^3.0.8", "@rollup/pluginutils@^3.1.0": + version "3.1.0" + resolved "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz#706b4524ee6dc8b103b3c995533e5ad680c02b9b" + integrity sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg== + dependencies: + "@types/estree" "0.0.39" + estree-walker "^1.0.1" + picomatch "^2.2.2" + +"@sindresorhus/is@^0.14.0": + version "0.14.0" + resolved "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea" + integrity sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ== + "@sinonjs/commons@^1.7.0": version "1.8.3" resolved "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.3.tgz#3802ddd21a50a949b6721ddd72da36e67e7f1b2d" @@ -2996,6 +4441,130 @@ dependencies: "@sinonjs/commons" "^1.7.0" +"@svgr/babel-plugin-add-jsx-attribute@^5.4.0": + version "5.4.0" + resolved "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-5.4.0.tgz#81ef61947bb268eb9d50523446f9c638fb355906" + integrity sha512-ZFf2gs/8/6B8PnSofI0inYXr2SDNTDScPXhN7k5EqD4aZ3gi6u+rbmZHVB8IM3wDyx8ntKACZbtXSm7oZGRqVg== + +"@svgr/babel-plugin-remove-jsx-attribute@^5.4.0": + version "5.4.0" + resolved "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-5.4.0.tgz#6b2c770c95c874654fd5e1d5ef475b78a0a962ef" + integrity sha512-yaS4o2PgUtwLFGTKbsiAy6D0o3ugcUhWK0Z45umJ66EPWunAz9fuFw2gJuje6wqQvQWOTJvIahUwndOXb7QCPg== + +"@svgr/babel-plugin-remove-jsx-empty-expression@^5.0.1": + version "5.0.1" + resolved "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-5.0.1.tgz#25621a8915ed7ad70da6cea3d0a6dbc2ea933efd" + integrity sha512-LA72+88A11ND/yFIMzyuLRSMJ+tRKeYKeQ+mR3DcAZ5I4h5CPWN9AHyUzJbWSYp/u2u0xhmgOe0+E41+GjEueA== + +"@svgr/babel-plugin-replace-jsx-attribute-value@^5.0.1": + version "5.0.1" + resolved "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-5.0.1.tgz#0b221fc57f9fcd10e91fe219e2cd0dd03145a897" + integrity sha512-PoiE6ZD2Eiy5mK+fjHqwGOS+IXX0wq/YDtNyIgOrc6ejFnxN4b13pRpiIPbtPwHEc+NT2KCjteAcq33/F1Y9KQ== + +"@svgr/babel-plugin-svg-dynamic-title@^5.4.0": + version "5.4.0" + resolved "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-5.4.0.tgz#139b546dd0c3186b6e5db4fefc26cb0baea729d7" + integrity sha512-zSOZH8PdZOpuG1ZVx/cLVePB2ibo3WPpqo7gFIjLV9a0QsuQAzJiwwqmuEdTaW2pegyBE17Uu15mOgOcgabQZg== + +"@svgr/babel-plugin-svg-em-dimensions@^5.4.0": + version "5.4.0" + resolved "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-5.4.0.tgz#6543f69526632a133ce5cabab965deeaea2234a0" + integrity sha512-cPzDbDA5oT/sPXDCUYoVXEmm3VIoAWAPT6mSPTJNbQaBNUuEKVKyGH93oDY4e42PYHRW67N5alJx/eEol20abw== + +"@svgr/babel-plugin-transform-react-native-svg@^5.4.0": + version "5.4.0" + resolved "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-5.4.0.tgz#00bf9a7a73f1cad3948cdab1f8dfb774750f8c80" + integrity sha512-3eYP/SaopZ41GHwXma7Rmxcv9uRslRDTY1estspeB1w1ueZWd/tPlMfEOoccYpEMZU3jD4OU7YitnXcF5hLW2Q== + +"@svgr/babel-plugin-transform-svg-component@^5.5.0": + version "5.5.0" + resolved "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-5.5.0.tgz#583a5e2a193e214da2f3afeb0b9e8d3250126b4a" + integrity sha512-q4jSH1UUvbrsOtlo/tKcgSeiCHRSBdXoIoqX1pgcKK/aU3JD27wmMKwGtpB8qRYUYoyXvfGxUVKchLuR5pB3rQ== + +"@svgr/babel-preset@^5.5.0": + version "5.5.0" + resolved "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-5.5.0.tgz#8af54f3e0a8add7b1e2b0fcd5a882c55393df327" + integrity sha512-4FiXBjvQ+z2j7yASeGPEi8VD/5rrGQk4Xrq3EdJmoZgz/tpqChpo5hgXDvmEauwtvOc52q8ghhZK4Oy7qph4ig== + dependencies: + "@svgr/babel-plugin-add-jsx-attribute" "^5.4.0" + "@svgr/babel-plugin-remove-jsx-attribute" "^5.4.0" + "@svgr/babel-plugin-remove-jsx-empty-expression" "^5.0.1" + "@svgr/babel-plugin-replace-jsx-attribute-value" "^5.0.1" + "@svgr/babel-plugin-svg-dynamic-title" "^5.4.0" + "@svgr/babel-plugin-svg-em-dimensions" "^5.4.0" + "@svgr/babel-plugin-transform-react-native-svg" "^5.4.0" + "@svgr/babel-plugin-transform-svg-component" "^5.5.0" + +"@svgr/core@^5.5.0": + version "5.5.0" + resolved "https://registry.npmjs.org/@svgr/core/-/core-5.5.0.tgz#82e826b8715d71083120fe8f2492ec7d7874a579" + integrity sha512-q52VOcsJPvV3jO1wkPtzTuKlvX7Y3xIcWRpCMtBF3MrteZJtBfQw/+u0B1BHy5ColpQc1/YVTrPEtSYIMNZlrQ== + dependencies: + "@svgr/plugin-jsx" "^5.5.0" + camelcase "^6.2.0" + cosmiconfig "^7.0.0" + +"@svgr/hast-util-to-babel-ast@^5.5.0": + version "5.5.0" + resolved "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-5.5.0.tgz#5ee52a9c2533f73e63f8f22b779f93cd432a5461" + integrity sha512-cAaR/CAiZRB8GP32N+1jocovUtvlj0+e65TB50/6Lcime+EA49m/8l+P2ko+XPJ4dw3xaPS3jOL4F2X4KWxoeQ== + dependencies: + "@babel/types" "^7.12.6" + +"@svgr/plugin-jsx@^5.5.0": + version "5.5.0" + resolved "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-5.5.0.tgz#1aa8cd798a1db7173ac043466d7b52236b369000" + integrity sha512-V/wVh33j12hGh05IDg8GpIUXbjAPnTdPTKuP4VNLggnwaHMPNQNae2pRnyTAILWCQdz5GyMqtO488g7CKM8CBA== + dependencies: + "@babel/core" "^7.12.3" + "@svgr/babel-preset" "^5.5.0" + "@svgr/hast-util-to-babel-ast" "^5.5.0" + svg-parser "^2.0.2" + +"@svgr/plugin-svgo@^5.5.0": + version "5.5.0" + resolved "https://registry.npmjs.org/@svgr/plugin-svgo/-/plugin-svgo-5.5.0.tgz#02da55d85320549324e201c7b2e53bf431fcc246" + integrity sha512-r5swKk46GuQl4RrVejVwpeeJaydoxkdwkM1mBKOgJLBUJPGaLci6ylg/IjhrRsREKDkr4kbMWdgOtbXEh0fyLQ== + dependencies: + cosmiconfig "^7.0.0" + deepmerge "^4.2.2" + svgo "^1.2.2" + +"@svgr/rollup@5.5.0": + version "5.5.0" + resolved "https://registry.npmjs.org/@svgr/rollup/-/rollup-5.5.0.tgz#9ceaaa6d463916e69aff8a9e10b3bb8fbb94688a" + integrity sha512-EiZmH2VTr+Xzyb6Ga8XtGa9MEbiU3WQnB5vHmqhwAUqibU3uwuwr7MN+QwIh/gtBk1ucMim8BCfcRTlLVREM8A== + dependencies: + "@babel/core" "^7.12.3" + "@babel/plugin-transform-react-constant-elements" "^7.12.1" + "@babel/preset-env" "^7.12.1" + "@babel/preset-react" "^7.12.5" + "@svgr/core" "^5.5.0" + "@svgr/plugin-jsx" "^5.5.0" + "@svgr/plugin-svgo" "^5.5.0" + rollup-pluginutils "^2.8.2" + +"@szmarczak/http-timer@^1.1.2": + version "1.1.2" + resolved "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz#b1665e2c461a2cd92f4c1bbf50d5454de0d4b421" + integrity sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA== + dependencies: + defer-to-connect "^1.0.1" + +"@testing-library/dom@^7.22.3": + version "7.31.2" + resolved "https://registry.npmjs.org/@testing-library%2fdom/-/dom-7.31.2.tgz#df361db38f5212b88555068ab8119f5d841a8c4a" + integrity sha512-3UqjCpey6HiTZT92vODYLPxTBWlM8ZOOjr3LX5F37/VRipW2M1kX6I/Cm4VXzteZqfGfagg8yXywpcOgQBlNsQ== + dependencies: + "@babel/code-frame" "^7.10.4" + "@babel/runtime" "^7.12.5" + "@types/aria-query" "^4.2.0" + aria-query "^4.2.2" + chalk "^4.1.0" + dom-accessibility-api "^0.5.6" + lz-string "^1.4.4" + pretty-format "^26.6.2" + "@testing-library/dom@^8.0.0": version "8.11.1" resolved "https://registry.npmjs.org/@testing-library/dom/-/dom-8.11.1.tgz#03fa2684aa09ade589b460db46b4c7be9fc69753" @@ -3010,6 +4579,29 @@ lz-string "^1.4.4" pretty-format "^27.0.2" +"@testing-library/jest-dom@^5.11.3": + version "5.16.4" + resolved "https://registry.npmjs.org/@testing-library%2fjest-dom/-/jest-dom-5.16.4.tgz#938302d7b8b483963a3ae821f1c0808f872245cd" + integrity sha512-Gy+IoFutbMQcky0k+bqqumXZ1cTGswLsFqmNLzNdSKkU9KGV2u9oXhukCbbJ9/LRPKiqwxEE8VpV/+YZlfkPUA== + dependencies: + "@babel/runtime" "^7.9.2" + "@types/testing-library__jest-dom" "^5.9.1" + aria-query "^5.0.0" + chalk "^3.0.0" + css "^3.0.0" + css.escape "^1.5.1" + dom-accessibility-api "^0.5.6" + lodash "^4.17.15" + redent "^3.0.0" + +"@testing-library/react@^10.4.8": + version "10.4.9" + resolved "https://registry.npmjs.org/@testing-library%2freact/-/react-10.4.9.tgz#9faa29c6a1a217bf8bbb96a28bd29d7a847ca150" + integrity sha512-pHZKkqUy0tmiD81afs8xfiuseXfU/N7rAX3iKjeZYje86t9VaB0LrxYVa+OOsvkrveX5jCK3IjajVn2MbePvqA== + dependencies: + "@babel/runtime" "^7.10.3" + "@testing-library/dom" "^7.22.3" + "@testing-library/react@^12.1.2": version "12.1.2" resolved "https://registry.npmjs.org/@testing-library/react/-/react-12.1.2.tgz#f1bc9a45943461fa2a598bb4597df1ae044cfc76" @@ -3066,6 +4658,17 @@ "@types/babel__template" "*" "@types/babel__traverse" "*" +"@types/babel__core@^7.1.0": + version "7.1.19" + resolved "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.19.tgz#7b497495b7d1b4812bdb9d02804d0576f43ee460" + integrity sha512-WEOTgRsbYkvA/KCsDwVEGkd7WAr1e3g31VHQ8zy5gul/V1qKullU/BU5I68X5v7V3GnB9eotmom4v5a5gjxorw== + dependencies: + "@babel/parser" "^7.1.0" + "@babel/types" "^7.0.0" + "@types/babel__generator" "*" + "@types/babel__template" "*" + "@types/babel__traverse" "*" + "@types/babel__generator@*": version "7.6.3" resolved "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.3.tgz#f456b4b2ce79137f768aa130d2423d2f0ccfaba5" @@ -3123,6 +4726,16 @@ "@types/keygrip" "*" "@types/node" "*" +"@types/estree@*": + version "0.0.51" + resolved "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz#cfd70924a25a3fd32b218e5e420e6897e1ac4f40" + integrity sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ== + +"@types/estree@0.0.39": + version "0.0.39" + resolved "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f" + integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw== + "@types/express-serve-static-core@^4.17.18": version "4.17.25" resolved "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.25.tgz#e42f7046adc65ece2eb6059b77aecfbe9e9f82e0" @@ -3149,6 +4762,13 @@ dependencies: "@types/node" "*" +"@types/gulp-plumber@^0.0.32": + version "0.0.32" + resolved "https://registry.npmjs.org/@types/gulp-plumber/-/gulp-plumber-0.0.32.tgz#81467e0af4592a86239220ba743718c81846fc6a" + integrity sha512-upPVrIjFivRIHS80b6ApIYafvyToiH/AoCR1r2b2ObKrbRY8C2bF+vFwQ72lSu6jLnLIKHkmAW5CWPXczUz3Wg== + dependencies: + "@types/node" "*" + "@types/hast@^2.0.0": version "2.3.4" resolved "https://registry.npmjs.org/@types/hast/-/hast-2.3.4.tgz#8aa5ef92c117d20d974a82bdfb6a648b08c0bafc" @@ -3211,6 +4831,14 @@ dependencies: "@types/istanbul-lib-report" "*" +"@types/jest@*": + version "27.5.1" + resolved "https://registry.npmjs.org/@types%2fjest/-/jest-27.5.1.tgz#2c8b6dc6ff85c33bcd07d0b62cb3d19ddfdb3ab9" + integrity sha512-fUy7YRpT+rHXto1YlL+J9rs0uLGyiqVt3ZOTQR+4ROc47yNl8WLdVLgUloBRhOxP1PZvguHl44T3H0wAWxahYQ== + dependencies: + jest-matcher-utils "^27.0.0" + pretty-format "^27.0.0" + "@types/jest@^26.0.0": version "26.0.24" resolved "https://registry.npmjs.org/@types/jest/-/jest-26.0.24.tgz#943d11976b16739185913a1936e0de0c4a7d595a" @@ -3330,11 +4958,6 @@ resolved "https://registry.npmjs.org/@types/node/-/node-16.11.7.tgz#36820945061326978c42a01e56b61cd223dfdc42" integrity sha512-QB5D2sqfSjCmTuWcBWyJ+/44bcjO7VbjSbOE0ucoVbAsSNQc4Lt6QkgkVXkTDwkL4z/beecZNDvVX15D4P8Jbw== -"@types/node@^12.6.8": - version "12.20.37" - resolved "https://registry.npmjs.org/@types/node/-/node-12.20.37.tgz#abb38afa9d6e8a2f627a8cb52290b3c80fbe61ed" - integrity sha512-i1KGxqcvJaLQali+WuypQnXwcplhtNtjs66eNsZpp2P2FL/trJJxx/VWsM0YCL2iMoIJrbXje48lvIQAQ4p2ZA== - "@types/node@^14.14.28": version "14.17.34" resolved "https://registry.npmjs.org/@types/node/-/node-14.17.34.tgz#fe4b38b3f07617c0fa31ae923fca9249641038f0" @@ -3372,6 +4995,11 @@ resolved "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.4.tgz#fcf7205c25dff795ee79af1e30da2c9790808f11" integrity sha512-rZ5drC/jWjrArrS8BR6SIr4cWpW09RNTYt9AMZo3Jwwif+iacXAqgVjm0B0Bv/S1jhDXKHqRVNCbACkJ89RAnQ== +"@types/q@^1.5.1": + version "1.5.5" + resolved "https://registry.npmjs.org/@types/q/-/q-1.5.5.tgz#75a2a8e7d8ab4b230414505d92335d1dcb53a6df" + integrity sha512-L28j2FcJfSZOnL1WBjDYp2vUHCeIFlyYI/53EwD/rKUBQ7MtUUfbQWiyKJGpcnv4/WgrhWsFKrcPstcAt/J0tQ== + "@types/qs@*": version "6.9.7" resolved "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz#63bb7d067db107cc1e457c303bc25d511febf6cb" @@ -3458,6 +5086,13 @@ "@types/scheduler" "*" csstype "^3.0.2" +"@types/resolve@1.17.1": + version "1.17.1" + resolved "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz#3afd6ad8967c77e4376c598a82ddd58f46ec45d6" + integrity sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw== + dependencies: + "@types/node" "*" + "@types/sax@^1.2.1": version "1.2.3" resolved "https://registry.npmjs.org/@types/sax/-/sax-1.2.3.tgz#b630ac1403ebd7812e0bf9a10de9bf5077afb348" @@ -3513,6 +5148,13 @@ dependencies: "@types/superagent" "*" +"@types/testing-library__jest-dom@^5.9.1": + version "5.14.3" + resolved "https://registry.npmjs.org/@types%2ftesting-library__jest-dom/-/testing-library__jest-dom-5.14.3.tgz#ee6c7ffe9f8595882ee7bda8af33ae7b8789ef17" + integrity sha512-oKZe+Mf4ioWlMuzVBaXQ9WDnEm1+umLx0InILg+yvZVBBDmzV5KfZyLrCvadtWcx8+916jLmHafcmqqffl+iIw== + dependencies: + "@types/jest" "*" + "@types/unist@*", "@types/unist@^2.0.0", "@types/unist@^2.0.2", "@types/unist@^2.0.3": version "2.0.6" resolved "https://registry.npmjs.org/@types/unist/-/unist-2.0.6.tgz#250a7b16c3b91f672a24552ec64678eeb1d3a08d" @@ -3711,6 +5353,19 @@ jest-worker "24.9.0" prettier "2.2.1" +"@umijs/deps@3.5.23": + version "3.5.23" + resolved "https://registry.npmmirror.com/@umijs/deps/-/deps-3.5.23.tgz#cb29269b7874d2c9645f60aad9e120a180b9be04" + integrity sha512-Z4Tq0GG6PQaguPWIVVtfi+ehruD4JJjTibPXIASxuMT9Xey076ZMY9rjCd5ZBlecFDde2lC53MOkyOcGniCAaQ== + dependencies: + "@bloomberg/record-tuple-polyfill" "0.0.3" + chokidar "3.5.1" + clipboardy "2.3.0" + esbuild "0.12.15" + jest-worker "24.9.0" + prettier "2.2.1" + regenerate-unicode-properties "9.0.0" + "@umijs/plugin-analytics@^0.2.2": version "0.2.2" resolved "https://registry.npmjs.org/@umijs/plugin-analytics/-/plugin-analytics-0.2.2.tgz#575fd231d4327ea13413217aa1b5fc6bdd89465e" @@ -3747,10 +5402,10 @@ regenerator-runtime "0.13.5" schema-utils "^3.0.0" -"@umijs/preset-dumi@1.1.33": - version "1.1.33" - resolved "https://registry.npmjs.org/@umijs/preset-dumi/-/preset-dumi-1.1.33.tgz#936ed9aea16ab912f0a11843002fbfaf4326174f" - integrity sha512-t6IaG/0WcKqHm3eNLkMdCVjGUEzep8Ub+v2E5zQQWB4/P71XfH5cdYnFtIoNv3iB55kiOfPof9WGNoPe7tRKyg== +"@umijs/preset-dumi@1.1.40": + version "1.1.40" + resolved "https://registry.npmjs.org/@umijs%2fpreset-dumi/-/preset-dumi-1.1.40.tgz#2ac29aadce3c1d669fe14a5e8ae95c0ca7442d46" + integrity sha512-ovT7fsIRJ+oAaXthOyiftIUJCl0E27EVVBfwoaRN+nHG3I07QeYQ8+4nwEiuDVWC+QjjASmPNssuTBYZdrX6og== dependencies: "@babel/core" "^7.7.2" "@babel/generator" "^7.7.2" @@ -3766,7 +5421,7 @@ copy-text-to-clipboard "^2.2.0" deepmerge "^4.2.2" dumi-assets-types "1.0.0" - dumi-theme-default "1.1.16" + dumi-theme-default "1.1.21" enhanced-resolve "^4.1.1" github-slugger "^1.3.0" hast-util-has-property "^1.0.4" @@ -3837,24 +5492,6 @@ "@umijs/deps" "3.5.20" "@umijs/utils" "3.5.20" -"@umijs/test@^3.5.20": - version "3.5.20" - resolved "https://registry.npmjs.org/@umijs/test/-/test-3.5.20.tgz#124ee8dd614b56b7774afa3f5dd8df5167de3d8a" - integrity sha512-nxDdKDJYPMgYCEugvbyXbFjwNF/RL+TOLsBUmWzmciiz6PWVghJXrkSkDu2Ii5XO88G7l4xPo4cmReCWBw5I3A== - dependencies: - "@babel/core" "7.12.10" - "@umijs/babel-preset-umi" "3.5.20" - "@umijs/utils" "3.5.20" - babel-core "7.0.0-bridge.0" - babel-jest "^26.6.3" - core-js "3.8.2" - identity-obj-proxy "3.0.0" - jest "^26.6.3" - jest-cli "^26.6.3" - jest-environment-jsdom-fourteen "1.0.1" - regenerator-runtime "^0.13.7" - whatwg-fetch "^3.5.0" - "@umijs/types@3.5.20", "@umijs/types@3.x": version "3.5.20" resolved "https://registry.npmjs.org/@umijs/types/-/types-3.5.20.tgz#3a459ec8e85b2ab53e21a4907ff76f544648f522" @@ -3875,6 +5512,18 @@ dependencies: "@umijs/deps" "3.5.20" +"@umijs/utils@^3.5.20": + version "3.5.23" + resolved "https://registry.npmmirror.com/@umijs/utils/-/utils-3.5.23.tgz#5c26746380c4f3db21631f3ae0c38cc7d3b1ec6a" + integrity sha512-3uGD7DeuQrhfWZBnm3ry7PvP7jZwmdps5na+7TsI1/XpjyIWLWxbuy5vYQszi/1spKA3eIB0UNW9PrroAVxMIg== + dependencies: + "@umijs/deps" "3.5.23" + +"@zeit/schemas@2.6.0": + version "2.6.0" + resolved "https://registry.npmmirror.com/@zeit/schemas/-/schemas-2.6.0.tgz#004e8e553b4cd53d538bd38eac7bcbf58a867fe3" + integrity sha512-uUrgZ8AxS+Lio0fZKAipJjAh415JyrOZowliZAzmnJSsf7piVL5w+G0+gFJ0KSu3QRhvui/7zuvpLz03YjXAhg== + JSONStream@^1.0.4: version "1.3.5" resolved "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0" @@ -3901,7 +5550,35 @@ accepts@^1.3.5: mime-types "~2.1.24" negotiator "0.6.2" -acorn-globals@^4.3.0: +accepts@~1.3.5: + version "1.3.8" + resolved "https://registry.npmmirror.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" + integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== + dependencies: + mime-types "~2.1.34" + negotiator "0.6.3" + +accord@^0.29.0: + version "0.29.0" + resolved "https://registry.npmjs.org/accord/-/accord-0.29.0.tgz#b741c176d00435c5929d466dfe8cf6bee933b1e4" + integrity sha512-3OOR92FTc2p5/EcOzPcXp+Cbo+3C15nV9RXHlOUBCBpHhcB+0frbSNR9ehED/o7sTcyGVtqGJpguToEdlXhD0w== + dependencies: + convert-source-map "^1.5.0" + glob "^7.0.5" + indx "^0.2.3" + lodash.clone "^4.3.2" + lodash.defaults "^4.0.1" + lodash.flatten "^4.2.0" + lodash.merge "^4.4.0" + lodash.partialright "^4.1.4" + lodash.pick "^4.2.1" + lodash.uniq "^4.3.0" + resolve "^1.5.0" + semver "^5.3.0" + uglify-js "^2.8.22" + when "^3.7.8" + +acorn-globals@^4.1.0: version "4.3.4" resolved "https://registry.npmjs.org/acorn-globals/-/acorn-globals-4.3.4.tgz#9fa1926addc11c97308c4e66d7add0d40c3272e7" integrity sha512-clfQEh21R+D0leSbUdWf3OcfqyaCSAQ8Ryq00bofSekfr9W8u1jyYZo6ir0xu9Gtcf7BjcHJpnbZH7JOCpP60A== @@ -3937,7 +5614,12 @@ acorn-walk@^8.1.1: resolved "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz#741210f2e2426454508853a2f44d0ab83b7f69c1" integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA== -acorn@^6.0.1, acorn@^6.0.4: +acorn@^5.5.3: + version "5.7.4" + resolved "https://registry.npmjs.org/acorn/-/acorn-5.7.4.tgz#3e8d8a9947d0599a1796d10225d7432f4a4acf5e" + integrity sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg== + +acorn@^6.0.1, acorn@^6.0.5: version "6.4.2" resolved "https://registry.npmjs.org/acorn/-/acorn-6.4.2.tgz#35866fd710528e92de10cf06016498e47e39e1e6" integrity sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ== @@ -3957,6 +5639,11 @@ acorn@^8.4.1: resolved "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz#90951fde0f8f09df93549481e5fc141445b791cf" integrity sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ== +acorn@^8.5.0: + version "8.7.1" + resolved "https://registry.npmjs.org/acorn/-/acorn-8.7.1.tgz#0197122c843d1bf6d0a5e83220a788f278f63c30" + integrity sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A== + add-stream@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/add-stream/-/add-stream-1.0.0.tgz#6a7990437ca736d5e1288db92bd3266d5f5cb2aa" @@ -4010,6 +5697,21 @@ ahooks@^3.0.5: resize-observer-polyfill "^1.5.1" screenfull "^5.0.0" +airbnb-prop-types@^2.16.0: + version "2.16.0" + resolved "https://registry.npmjs.org/airbnb-prop-types/-/airbnb-prop-types-2.16.0.tgz#b96274cefa1abb14f623f804173ee97c13971dc2" + integrity sha512-7WHOFolP/6cS96PhKNrslCLMYAI8yB1Pp6u6XmxozQOiZbsI5ycglZr5cHhBFfuRcQQjzCMith5ZPZdYiJCxUg== + dependencies: + array.prototype.find "^2.1.1" + function.prototype.name "^1.1.2" + is-regex "^1.1.0" + object-is "^1.1.2" + object.assign "^4.1.0" + object.entries "^1.1.2" + prop-types "^15.7.2" + prop-types-exact "^1.2.0" + react-is "^16.13.1" + ajv-errors@^1.0.0: version "1.0.1" resolved "https://registry.npmjs.org/ajv-errors/-/ajv-errors-1.0.1.tgz#f35986aceb91afadec4102fbd85014950cefa64d" @@ -4020,7 +5722,7 @@ ajv-keywords@^3.1.0, ajv-keywords@^3.5.2: resolved "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== -ajv@^6.1.0, ajv@^6.10.0, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5, ajv@^6.12.6: +ajv@6.12.6, ajv@^6.1.0, ajv@^6.10.0, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5, ajv@^6.12.6: version "6.12.6" resolved "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== @@ -4070,6 +5772,20 @@ ali-oss@^6.16.0: utility "^1.8.0" xml2js "^0.4.16" +align-text@^0.1.1, align-text@^0.1.3: + version "0.1.4" + resolved "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" + integrity sha1-DNkKVhCT810KmSVsIrcGlDP60Rc= + dependencies: + kind-of "^3.0.2" + longest "^1.0.1" + repeat-string "^1.5.2" + +alphanum-sort@^1.0.0: + version "1.0.2" + resolved "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3" + integrity sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM= + amp-message@~0.1.1: version "0.1.2" resolved "https://registry.npmjs.org/amp-message/-/amp-message-0.1.2.tgz#a78f1c98995087ad36192a41298e4db49e3dfc45" @@ -4089,12 +5805,38 @@ ansi-align@^2.0.0: dependencies: string-width "^2.0.0" +ansi-align@^3.0.0: + version "3.0.1" + resolved "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz#0cdf12e111ace773a86e9a1fad1225c43cb19a59" + integrity sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w== + dependencies: + string-width "^4.1.0" + +ansi-colors@^1.0.1: + version "1.1.0" + resolved "https://registry.npmjs.org/ansi-colors/-/ansi-colors-1.1.0.tgz#6374b4dd5d4718ff3ce27a671a3b1cad077132a9" + integrity sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA== + dependencies: + ansi-wrap "^0.1.0" + +ansi-colors@^3.0.5: + version "3.2.4" + resolved "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.4.tgz#e3a3da4bfbae6c86a9c285625de124a234026fbf" + integrity sha512-hHUXGagefjN2iRrID63xckIvotOXOojhQKWIPUZ4mNUZ9nLZW+7FMNoE1lOkEhNWYsx/7ysGIuJYCiMAA9FnrA== + ansi-colors@^4.1.1: version "4.1.1" resolved "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348" integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA== -ansi-escapes@^3.1.0, ansi-escapes@^3.2.0: +ansi-cyan@^0.1.1: + version "0.1.1" + resolved "https://registry.npmjs.org/ansi-cyan/-/ansi-cyan-0.1.1.tgz#538ae528af8982f28ae30d86f2f17456d2609873" + integrity sha1-U4rlKK+JgvKK4w2G8vF0VtJgmHM= + dependencies: + ansi-wrap "0.1.0" + +ansi-escapes@^3.0.0, ansi-escapes@^3.1.0, ansi-escapes@^3.2.0: version "3.2.0" resolved "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b" integrity sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ== @@ -4106,11 +5848,25 @@ ansi-escapes@^4.2.1: dependencies: type-fest "^0.21.3" +ansi-gray@^0.1.1: + version "0.1.1" + resolved "https://registry.npmjs.org/ansi-gray/-/ansi-gray-0.1.1.tgz#2962cf54ec9792c48510a3deb524436861ef7251" + integrity sha1-KWLPVOyXksSFEKPetSRDaGHvclE= + dependencies: + ansi-wrap "0.1.0" + ansi-html@^0.0.7: version "0.0.7" resolved "https://registry.npmjs.org/ansi-html/-/ansi-html-0.0.7.tgz#813584021962a9e9e6fd039f940d12f56ca7859e" integrity sha1-gTWEAhliqenm/QOflA0S9WynhZ4= +ansi-red@^0.1.1: + version "0.1.1" + resolved "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz#8c638f9d1080800a353c9c28c8a81ca4705d946c" + integrity sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw= + dependencies: + ansi-wrap "0.1.0" + ansi-regex@^2.0.0: version "2.1.1" resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" @@ -4155,6 +5911,11 @@ ansi-styles@^5.0.0: resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b" integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA== +ansi-wrap@0.1.0, ansi-wrap@^0.1.0: + version "0.1.0" + resolved "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz#a82250ddb0015e9a27ca82e82ea603bbfa45efaf" + integrity sha1-qCJQ3bABXponyoLoLqYDu/pF768= + antd@~4.19.5: version "4.19.5" resolved "https://registry.npmjs.org/antd/-/antd-4.19.5.tgz#38d08f3e1391a7a69c2ca76f50968bb12ec2ac93" @@ -4225,6 +5986,13 @@ anymatch@^3.0.3, anymatch@~3.1.1, anymatch@~3.1.2: normalize-path "^3.0.0" picomatch "^2.0.4" +append-buffer@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/append-buffer/-/append-buffer-1.0.2.tgz#d8220cf466081525efea50614f3de6514dfa58f1" + integrity sha1-2CIM9GYIFSXv6lBhTz3mUU36WPE= + dependencies: + buffer-equal "^1.0.0" + append-field@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz#1e3440e915f0b1203d23748e78edd7b9b5b43e56" @@ -4235,7 +6003,7 @@ aproba@^1.0.3: resolved "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" integrity sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw== -aproba@^2.0.0: +"aproba@^1.0.3 || ^2.0.0", aproba@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz#52520b8ae5b569215b354efc0caa3fe1e45a8adc" integrity sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ== @@ -4245,6 +6013,22 @@ arch@^2.1.1: resolved "https://registry.npmjs.org/arch/-/arch-2.2.0.tgz#1bc47818f305764f23ab3306b0bfc086c5a29d11" integrity sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ== +are-we-there-yet@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz#372e0e7bd279d8e94c653aaa1f67200884bf3e1c" + integrity sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw== + dependencies: + delegates "^1.0.0" + readable-stream "^3.6.0" + +are-we-there-yet@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.0.tgz#ba20bd6b553e31d62fc8c31bd23d22b95734390d" + integrity sha512-0GWpv50YSOcLXaN6/FAKY3vfRbllXWV2xvfA/oKJF8pzFhWXPV+yjhJXDBbjscDYowv7Yw1A3uigpzn5iEGTyw== + dependencies: + delegates "^1.0.0" + readable-stream "^3.6.0" + are-we-there-yet@~1.1.2: version "1.1.7" resolved "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz#b15474a932adab4ff8a50d9adfa7e4e926f21146" @@ -4253,6 +6037,11 @@ are-we-there-yet@~1.1.2: delegates "^1.0.0" readable-stream "^2.0.6" +arg@2.0.0: + version "2.0.0" + resolved "https://registry.npmmirror.com/arg/-/arg-2.0.0.tgz#c06e7ff69ab05b3a4a03ebe0407fac4cba657545" + integrity sha512-XxNTUzKnz1ctK3ZIcI2XUPlD96wbHP2nGqkPKpvk/HNRlPveYrXIVSTk9m3LcqOgDPg3B1nMvdV/K8wZd7PG4w== + arg@^4.1.0: version "4.1.3" resolved "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" @@ -4270,21 +6059,42 @@ argparse@^1.0.7: dependencies: sprintf-js "~1.0.2" +aria-query@^4.2.2: + version "4.2.2" + resolved "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz#0d2ca6c9aceb56b8977e9fed6aed7e15bbd2f83b" + integrity sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA== + dependencies: + "@babel/runtime" "^7.10.2" + "@babel/runtime-corejs3" "^7.10.2" + aria-query@^5.0.0: version "5.0.0" resolved "https://registry.npmjs.org/aria-query/-/aria-query-5.0.0.tgz#210c21aaf469613ee8c9a62c7f86525e058db52c" integrity sha512-V+SM7AbUwJ+EBnB8+DXs0hPZHO0W6pqBcc0dW90OwtVG02PswOu/teuARoLQjdDOH+t9pJgGnW5/Qmouf3gPJg== +arr-diff@^1.0.1: + version "1.1.0" + resolved "https://registry.npmjs.org/arr-diff/-/arr-diff-1.1.0.tgz#687c32758163588fef7de7b36fabe495eb1a399a" + integrity sha1-aHwydYFjWI/vfeezb6vklesaOZo= + dependencies: + arr-flatten "^1.0.1" + array-slice "^0.2.3" + arr-diff@^4.0.0: version "4.0.0" resolved "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" integrity sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA= -arr-flatten@^1.1.0: +arr-flatten@^1.0.1, arr-flatten@^1.1.0: version "1.1.0" resolved "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== +arr-union@^2.0.1: + version "2.1.0" + resolved "https://registry.npmjs.org/arr-union/-/arr-union-2.1.0.tgz#20f9eab5ec70f5c7d215b1077b1c39161d292c7d" + integrity sha1-IPnqtexw9cfSFbEHexw5Fh0pLH0= + arr-union@^3.1.0: version "3.1.0" resolved "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" @@ -4326,6 +6136,11 @@ array-includes@^3.1.3, array-includes@^3.1.4: get-intrinsic "^1.1.1" is-string "^1.0.7" +array-slice@^0.2.3: + version "0.2.3" + resolved "https://registry.npmjs.org/array-slice/-/array-slice-0.2.3.tgz#dd3cfb80ed7973a75117cdac69b0b99ec86186f5" + integrity sha1-3Tz7gO15c6dRF82sabC5nshhhvU= + array-tree-filter@^2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/array-tree-filter/-/array-tree-filter-2.1.0.tgz#873ac00fec83749f255ac8dd083814b4f6329190" @@ -4353,6 +6168,37 @@ array-unique@^0.3.2: resolved "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= +array.prototype.filter@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/array.prototype.filter/-/array.prototype.filter-1.0.1.tgz#20688792acdb97a09488eaaee9eebbf3966aae21" + integrity sha512-Dk3Ty7N42Odk7PjU/Ci3zT4pLj20YvuVnneG/58ICM6bt4Ij5kZaJTVQ9TSaWaIECX2sFyz4KItkVZqHNnciqw== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.0" + es-array-method-boxes-properly "^1.0.0" + is-string "^1.0.7" + +array.prototype.find@^2.1.1: + version "2.2.0" + resolved "https://registry.npmjs.org/array.prototype.find/-/array.prototype.find-2.2.0.tgz#153b8a28ad8965cd86d3117b07e6596af6f2880d" + integrity sha512-sn40qmUiLYAcRb/1HsIQjTTZ1kCy8II8VtZJpMn2Aoen9twULhbWXisfh3HimGqMlHGUul0/TfKCnXg42LuPpQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.4" + es-shim-unscopables "^1.0.0" + +array.prototype.flat@^1.2.3: + version "1.3.0" + resolved "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.0.tgz#0b0c1567bf57b38b56b4c97b8aa72ab45e4adc7b" + integrity sha512-12IUEkHsAhA4DY5s0FPgNXIdc8VRSqD9Zp78a5au9abH/SOBrsp082JOWFNTjkMozh8mqcdiKuaLGhPeYztxSw== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.2" + es-shim-unscopables "^1.0.0" + array.prototype.flat@^1.2.5: version "1.2.5" resolved "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.2.5.tgz#07e0975d84bbc7c48cd1879d609e682598d33e13" @@ -4381,7 +6227,7 @@ arrify@^2.0.1: resolved "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz#c9655e9331e0abcd588d2a7cad7e9956f66701fa" integrity sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug== -asap@^2.0.0: +asap@^2.0.0, asap@~2.0.3: version "2.0.6" resolved "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" integrity sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY= @@ -4433,11 +6279,21 @@ ast-types@^0.13.2: dependencies: tslib "^2.0.1" +astral-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" + integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== + astral-regex@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== +async-each@^1.0.1: + version "1.0.3" + resolved "https://registry.npmjs.org/async-each/-/async-each-1.0.3.tgz#b727dbf87d7651602f06f4d4ac387f47d91b0cbf" + integrity sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ== + async-limiter@~1.0.0: version "1.0.1" resolved "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz#dd379e94f0db8310b08291f9d64c3209766617fd" @@ -4463,6 +6319,13 @@ async-validator@^4.0.2: resolved "https://registry.npmjs.org/async-validator/-/async-validator-4.0.7.tgz#034a0fd2103a6b2ebf010da75183bec299247afe" integrity sha512-Pj2IR7u8hmUEDOwB++su6baaRi+QvsgajuFB9j95foM1N2gy5HM4z60hfusIO0fBPG5uLAEl6yCJr1jNSVugEQ== +async@^2.6.2: + version "2.6.4" + resolved "https://registry.npmmirror.com/async/-/async-2.6.4.tgz#706b7ff6084664cd7eae713f6f965433b5504221" + integrity sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA== + dependencies: + lodash "^4.17.14" + async@^2.6.3, async@~2.6.1: version "2.6.3" resolved "https://registry.npmjs.org/async/-/async-2.6.3.tgz#d72625e2344a3656e3a3ad4fa749fa83299d82ff" @@ -4490,6 +6353,19 @@ atob@^2.1.2: resolved "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== +autoprefixer@9.6.0: + version "9.6.0" + resolved "https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.6.0.tgz#0111c6bde2ad20c6f17995a33fad7cf6854b4c87" + integrity sha512-kuip9YilBqhirhHEGHaBTZKXL//xxGnzvsD0FtBQa6z+A69qZD6s/BAX9VzDF1i9VKDquTJDQaPLSEhOnL6FvQ== + dependencies: + browserslist "^4.6.1" + caniuse-lite "^1.0.30000971" + chalk "^2.4.2" + normalize-range "^0.1.2" + num2fraction "^1.2.2" + postcss "^7.0.16" + postcss-value-parser "^3.3.1" + autoprefixer@^9.6.1: version "9.8.8" resolved "https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.8.8.tgz#fd4bd4595385fa6f06599de749a4d5f7a474957a" @@ -4544,13 +6420,6 @@ axios@^0.21.0: dependencies: follow-redirects "^1.14.0" -axios@^0.24.0: - version "0.24.0" - resolved "https://registry.npmjs.org/axios/-/axios-0.24.0.tgz#804e6fa1e4b9c5288501dd9dff56a7a0940d20d6" - integrity sha512-Q6cWsys88HoPgAaFAVUb0WpPk0O8iTeisR9IMqy9G8AbO4NlpVknrnQS03zzF9PGAWgO3cgletO3VjV/P7VztA== - dependencies: - follow-redirects "^1.14.4" - axios@^0.26.1: version "0.26.1" resolved "https://registry.npmjs.org/axios/-/axios-0.26.1.tgz#1ede41c51fcf51bbbd6fd43669caaa4f0495aaa9" @@ -4563,6 +6432,19 @@ babel-core@7.0.0-bridge.0, babel-core@^7.0.0-bridge.0: resolved "https://registry.npmjs.org/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece" integrity sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg== +babel-jest@^24.8.0, babel-jest@^24.9.0: + version "24.9.0" + resolved "https://registry.npmjs.org/babel-jest/-/babel-jest-24.9.0.tgz#3fc327cb8467b89d14d7bc70e315104a783ccd54" + integrity sha512-ntuddfyiN+EhMw58PTNL1ph4C9rECiQXjI4nMMBKBaNjXvqLdkXpPRcMSr4iyBrJg/+wz9brFUD6RhOAT6r4Iw== + dependencies: + "@jest/transform" "^24.9.0" + "@jest/types" "^24.9.0" + "@types/babel__core" "^7.1.0" + babel-plugin-istanbul "^5.1.0" + babel-preset-jest "^24.9.0" + chalk "^2.4.2" + slash "^2.0.0" + babel-jest@^26.6.3: version "26.6.3" resolved "https://registry.npmjs.org/babel-jest/-/babel-jest-26.6.3.tgz#d87d25cb0037577a0c89f82e5755c5d293c01056" @@ -4584,7 +6466,7 @@ babel-plugin-dynamic-import-node@^2.3.3: dependencies: object.assign "^4.1.0" -babel-plugin-istanbul@^5.1.0: +babel-plugin-istanbul@^5.1.0, babel-plugin-istanbul@^5.2.0: version "5.2.0" resolved "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-5.2.0.tgz#df4ade83d897a92df069c4d9a25cf2671293c854" integrity sha512-5LphC0USA8t4i1zCtjbbNb6jJj/9+X6P37Qfirc/70EQ34xKlMW+a1RHGwxGI+SwWpNwZ27HqvzAobeqaXwiZw== @@ -4605,6 +6487,13 @@ babel-plugin-istanbul@^6.0.0: istanbul-lib-instrument "^5.0.4" test-exclude "^6.0.0" +babel-plugin-jest-hoist@^24.9.0: + version "24.9.0" + resolved "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-24.9.0.tgz#4f837091eb407e01447c8843cbec546d0002d756" + integrity sha512-2EMA2P8Vp7lG0RAzr4HXqtYwacfMErOuv1U3wrvxHX6rD1sV6xS3WXG3r8TRQ2r6w8OhvSdWt+z41hQNwNm3Xw== + dependencies: + "@types/babel__traverse" "^7.0.6" + babel-plugin-jest-hoist@^26.6.2: version "26.6.2" resolved "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.6.2.tgz#8185bd030348d254c6d7dd974355e6a28b21e62d" @@ -4615,6 +6504,15 @@ babel-plugin-jest-hoist@^26.6.2: "@types/babel__core" "^7.0.0" "@types/babel__traverse" "^7.0.6" +babel-plugin-macros@2.6.1: + version "2.6.1" + resolved "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-2.6.1.tgz#41f7ead616fc36f6a93180e89697f69f51671181" + integrity sha512-6W2nwiXme6j1n2erPOnmRiWfObUhWH7Qw1LMi9XZy8cj+KtESu3T6asZvtk5bMQQjX8te35o7CFueiSdL/2NmQ== + dependencies: + "@babel/runtime" "^7.4.2" + cosmiconfig "^5.2.0" + resolve "^1.10.0" + babel-plugin-macros@^2.6.1: version "2.8.0" resolved "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-2.8.0.tgz#0f958a7cc6556b1e65344465d99111a1e5e10138" @@ -4624,6 +6522,17 @@ babel-plugin-macros@^2.6.1: cosmiconfig "^6.0.0" resolve "^1.12.0" +babel-plugin-module-resolver@3.2.0: + version "3.2.0" + resolved "https://registry.npmjs.org/babel-plugin-module-resolver/-/babel-plugin-module-resolver-3.2.0.tgz#ddfa5e301e3b9aa12d852a9979f18b37881ff5a7" + integrity sha512-tjR0GvSndzPew/Iayf4uICWZqjBwnlMWjSx6brryfQ81F9rxBVqwDJtFCV8oOs0+vJeefK9TmdZtkIFdFe1UnA== + dependencies: + find-babel-config "^1.1.0" + glob "^7.1.2" + pkg-up "^2.0.0" + reselect "^3.0.1" + resolve "^1.4.0" + babel-plugin-polyfill-corejs2@^0.2.3: version "0.2.3" resolved "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.2.3.tgz#6ed8e30981b062f8fe6aca8873a37ebcc8cc1c0f" @@ -4633,6 +6542,15 @@ babel-plugin-polyfill-corejs2@^0.2.3: "@babel/helper-define-polyfill-provider" "^0.2.4" semver "^6.1.1" +babel-plugin-polyfill-corejs2@^0.3.0: + version "0.3.1" + resolved "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.1.tgz#440f1b70ccfaabc6b676d196239b138f8a2cfba5" + integrity sha512-v7/T6EQcNfVLfcN2X8Lulb7DjprieyLWJK/zOWH5DUYcAgex9sP3h25Q+DLsX9TloXe3y1O8l2q2Jv9q8UVB9w== + dependencies: + "@babel/compat-data" "^7.13.11" + "@babel/helper-define-polyfill-provider" "^0.3.1" + semver "^6.1.1" + babel-plugin-polyfill-corejs3@^0.3.0: version "0.3.0" resolved "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.3.0.tgz#fa7ca3d1ee9ddc6193600ffb632c9785d54918af" @@ -4641,6 +6559,14 @@ babel-plugin-polyfill-corejs3@^0.3.0: "@babel/helper-define-polyfill-provider" "^0.2.4" core-js-compat "^3.18.0" +babel-plugin-polyfill-corejs3@^0.5.0: + version "0.5.2" + resolved "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.5.2.tgz#aabe4b2fa04a6e038b688c5e55d44e78cd3a5f72" + integrity sha512-G3uJih0XWiID451fpeFaYGVuxHEjzKTHtc9uGFEjR6hHrvNzeS/PX+LLLcetJcytsB5m4j+K3o/EpXJNb/5IEQ== + dependencies: + "@babel/helper-define-polyfill-provider" "^0.3.1" + core-js-compat "^3.21.0" + babel-plugin-polyfill-regenerator@^0.2.3: version "0.2.3" resolved "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.2.3.tgz#2e9808f5027c4336c994992b48a4262580cb8d6d" @@ -4648,6 +6574,28 @@ babel-plugin-polyfill-regenerator@^0.2.3: dependencies: "@babel/helper-define-polyfill-provider" "^0.2.4" +babel-plugin-polyfill-regenerator@^0.3.0: + version "0.3.1" + resolved "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.3.1.tgz#2c0678ea47c75c8cc2fbb1852278d8fb68233990" + integrity sha512-Y2B06tvgHYt1x0yz17jGkGeeMr5FeKUu+ASJ+N6nB5lQ8Dapfg42i0OVrf8PNGJ3zKL4A23snMi1IRwrqqND7A== + dependencies: + "@babel/helper-define-polyfill-provider" "^0.3.1" + +babel-plugin-react-require@3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/babel-plugin-react-require/-/babel-plugin-react-require-3.0.0.tgz#2e4e7b4496b93a654a1c80042276de4e4eeb20e3" + integrity sha1-Lk57RJa5OmVKHIAEInbeTk7rIOM= + +babel-plugin-react-require@3.1.1: + version "3.1.1" + resolved "https://registry.npmjs.org/babel-plugin-react-require/-/babel-plugin-react-require-3.1.1.tgz#5c3d2564fa16b1e45212ed52519db147b1596106" + integrity sha512-XFz+B0dWx41fnGnugzCWn5rOgrDHb150N5gFhUfO3BgYDCT25o4sofRtd9uUfqUHoRu+t4/r5Cr2RMPIKuCt2g== + +babel-plugin-transform-react-remove-prop-types@0.4.24: + version "0.4.24" + resolved "https://registry.npmjs.org/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz#f2edaf9b4c6a5fbe5c1d678bfb531078c1555f3a" + integrity sha512-eqj0hVcJUR57/Ug2zE1Yswsw4LhuqqHhD+8v120T1cl3kjg76QwtyBrdIk4WVwK+lAhBJVYCd/v+4nc4y+8JsA== + babel-preset-current-node-syntax@^1.0.0: version "1.0.1" resolved "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz#b4399239b89b2a011f9ddbe3e4f401fc40cff73b" @@ -4666,6 +6614,14 @@ babel-preset-current-node-syntax@^1.0.0: "@babel/plugin-syntax-optional-chaining" "^7.8.3" "@babel/plugin-syntax-top-level-await" "^7.8.3" +babel-preset-jest@^24.9.0: + version "24.9.0" + resolved "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-24.9.0.tgz#192b521e2217fb1d1f67cf73f70c336650ad3cdc" + integrity sha512-izTUuhE4TMfTRPF92fFwD2QfdXaZW08qvWTFCI51V8rW5x00UuPgc3ajRoWofXOuxjfcOM5zzSYsQS3H8KGCAg== + dependencies: + "@babel/plugin-syntax-object-rest-spread" "^7.0.0" + babel-plugin-jest-hoist "^24.9.0" + babel-preset-jest@^26.6.2: version "26.6.2" resolved "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-26.6.2.tgz#747872b1171df032252426586881d62d31798fee" @@ -4674,6 +6630,34 @@ babel-preset-jest@^26.6.2: babel-plugin-jest-hoist "^26.6.2" babel-preset-current-node-syntax "^1.0.0" +babel-preset-umi@1.8.4: + version "1.8.4" + resolved "https://registry.npmjs.org/babel-preset-umi/-/babel-preset-umi-1.8.4.tgz#f7db66eca3aa394fda957a51f05dc24d2b77acb6" + integrity sha512-4IU0WuLZTiw7MstZJMwtjyYIGyOhWNUKcpSz1v5T9X8/ka2WXZ3qlkUe8dEb2kBNGrbOdXRw7u8FBEMtexqbow== + dependencies: + "@babel/core" "7.4.5" + "@babel/plugin-proposal-async-generator-functions" "7.2.0" + "@babel/plugin-proposal-class-properties" "7.4.4" + "@babel/plugin-proposal-decorators" "7.4.4" + "@babel/plugin-proposal-do-expressions" "7.2.0" + "@babel/plugin-proposal-export-default-from" "7.2.0" + "@babel/plugin-proposal-export-namespace-from" "7.2.0" + "@babel/plugin-proposal-function-bind" "7.2.0" + "@babel/plugin-proposal-nullish-coalescing-operator" "7.4.4" + "@babel/plugin-proposal-object-rest-spread" "7.4.4" + "@babel/plugin-proposal-optional-catch-binding" "7.2.0" + "@babel/plugin-proposal-optional-chaining" "7.2.0" + "@babel/plugin-proposal-pipeline-operator" "7.3.2" + "@babel/plugin-syntax-dynamic-import" "7.2.0" + "@babel/plugin-transform-destructuring" "7.4.4" + "@babel/plugin-transform-runtime" "7.4.4" + "@babel/preset-env" "7.4.5" + "@babel/preset-react" "7.0.0" + "@babel/runtime" "7.4.5" + babel-plugin-macros "2.6.1" + babel-plugin-react-require "3.0.0" + babel-plugin-transform-react-remove-prop-types "0.4.24" + babel-runtime@^6.26.0: version "6.26.0" resolved "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" @@ -4692,7 +6676,7 @@ balanced-match@^1.0.0: resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== -base64-js@^1.0.2, base64-js@^1.3.1: +base64-js@^1.0.2: version "1.5.1" resolved "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== @@ -4727,6 +6711,11 @@ big.js@^5.2.2: resolved "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328" integrity sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ== +binary-extensions@^1.0.0: + version "1.13.1" + resolved "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz#598afe54755b2868a5330d2aff9d4ebb53209b65" + integrity sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw== + binary-extensions@^2.0.0: version "2.2.0" resolved "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d" @@ -4739,27 +6728,11 @@ bindings@^1.5.0: dependencies: file-uri-to-path "1.0.0" -bl@^4.1.0: - version "4.1.0" - resolved "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" - integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w== - dependencies: - buffer "^5.5.0" - inherits "^2.0.4" - readable-stream "^3.4.0" - blessed@0.1.81: version "0.1.81" resolved "https://registry.npmjs.org/blessed/-/blessed-0.1.81.tgz#f962d687ec2c369570ae71af843256e6d0ca1129" integrity sha1-+WLWh+wsNpVwrnGvhDJW5tDKESk= -block-stream@*: - version "0.0.9" - resolved "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" - integrity sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo= - dependencies: - inherits "~2.0.0" - bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.11.9: version "4.12.0" resolved "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" @@ -4775,11 +6748,30 @@ bodec@^0.1.0: resolved "https://registry.npmjs.org/bodec/-/bodec-0.1.0.tgz#bc851555430f23c9f7650a75ef64c6a94c3418cc" integrity sha1-vIUVVUMPI8n3ZQp172TGqUw0GMw= +boolbase@^1.0.0, boolbase@~1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e" + integrity sha1-aN/1++YMUes3cl6p4+0xDcwed24= + bowser@^1.6.0: version "1.9.4" resolved "https://registry.npmjs.org/bowser/-/bowser-1.9.4.tgz#890c58a2813a9d3243704334fa81b96a5c150c9a" integrity sha512-9IdMmj2KjigRq6oWhmwv1W36pDuA4STQZ8q6YO9um+x07xgYNCD3Oou+WP/3L1HNz7iqythGet3/p4wvc8AAwQ== +boxen@5.1.2: + version "5.1.2" + resolved "https://registry.npmmirror.com/boxen/-/boxen-5.1.2.tgz#788cb686fc83c1f486dfa8a40c68fc2b831d2b50" + integrity sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ== + dependencies: + ansi-align "^3.0.0" + camelcase "^6.2.0" + chalk "^4.1.0" + cli-boxes "^2.2.1" + string-width "^4.2.2" + type-fest "^0.20.2" + widest-line "^3.1.0" + wrap-ansi "^7.0.0" + boxen@^1.2.1: version "1.3.0" resolved "https://registry.npmjs.org/boxen/-/boxen-1.3.0.tgz#55c6c39a8ba58d9c61ad22cd877532deb665a20b" @@ -4793,6 +6785,20 @@ boxen@^1.2.1: term-size "^1.2.0" widest-line "^2.0.0" +boxen@^3.0.0: + version "3.2.0" + resolved "https://registry.npmjs.org/boxen/-/boxen-3.2.0.tgz#fbdff0de93636ab4450886b6ff45b92d098f45eb" + integrity sha512-cU4J/+NodM3IHdSL2yN8bqYqnmlBTidDR4RC7nJs61ZmtGz8VZzM3HLQX0zY5mrSmPtR3xWwsq2jOUQqFZN8+A== + dependencies: + ansi-align "^3.0.0" + camelcase "^5.3.1" + chalk "^2.4.2" + cli-boxes "^2.2.0" + string-width "^3.0.0" + term-size "^1.2.0" + type-fest "^0.3.0" + widest-line "^2.0.0" + brace-expansion@^1.1.7: version "1.1.11" resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" @@ -4801,7 +6807,7 @@ brace-expansion@^1.1.7: balanced-match "^1.0.0" concat-map "0.0.1" -braces@^2.3.1: +braces@^2.3.1, braces@^2.3.2: version "2.3.2" resolved "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== @@ -4834,6 +6840,13 @@ browser-process-hrtime@^1.0.0: resolved "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626" integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== +browser-resolve@^1.11.3: + version "1.11.3" + resolved "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.3.tgz#9b7cbb3d0f510e4cb86bdbd796124d28b5890af6" + integrity sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ== + dependencies: + resolve "1.1.7" + browserify-aes@^1.0.0, browserify-aes@^1.0.4: version "1.2.0" resolved "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz#326734642f403dabc3003209853bb70ad428ef48" @@ -4895,6 +6908,17 @@ browserify-zlib@^0.2.0: dependencies: pako "~1.0.5" +browserslist@^4.0.0, browserslist@^4.20.2, browserslist@^4.20.3, browserslist@^4.6.0, browserslist@^4.6.1: + version "4.20.3" + resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.20.3.tgz#eb7572f49ec430e054f56d52ff0ebe9be915f8bf" + integrity sha512-NBhymBQl1zM0Y5dQT/O+xiLP9/rzOIQdKM/eMJBAq7yBgaB6krIYLGejrwVYnSHZdqjscB1SPuAjHwxjvN6Wdg== + dependencies: + caniuse-lite "^1.0.30001332" + electron-to-chromium "^1.4.118" + escalade "^3.1.1" + node-releases "^2.0.3" + picocolors "^1.0.0" + browserslist@^4.12.0, browserslist@^4.6.4: version "4.18.1" resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.18.1.tgz#60d3920f25b6860eb917c6c7b185576f4d8b017f" @@ -4936,6 +6960,11 @@ buffer-equal-constant-time@1.0.1: resolved "https://registry.npmmirror.com/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz#f8e71132f7ffe6e01a5c9697a4c6f3e48d5cc819" integrity sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA== +buffer-equal@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/buffer-equal/-/buffer-equal-1.0.0.tgz#59616b498304d556abd466966b22eeda3eca5fbe" + integrity sha1-WWFrSYME1Var1GaWayLu2j7KX74= + buffer-from@1.x, buffer-from@^1.0.0: version "1.1.2" resolved "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" @@ -4960,13 +6989,10 @@ buffer@4.9.2, buffer@^4.3.0: ieee754 "^1.1.4" isarray "^1.0.0" -buffer@^5.5.0: - version "5.7.1" - resolved "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" - integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== - dependencies: - base64-js "^1.3.1" - ieee754 "^1.1.13" +builtin-modules@^3.0.0, builtin-modules@^3.1.0: + version "3.2.0" + resolved "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.2.0.tgz#45d5db99e7ee5e6bc4f362e008bf917ab5049887" + integrity sha512-lGzLKcioL90C7wMczpkY0n/oART3MbBa8R9OFGE1rJxoVI86u4WAGfEk8Wjv10eKSyTHVGkSo3bvBylCEtk7LA== builtin-status-codes@^3.0.0: version "3.0.0" @@ -4996,6 +7022,11 @@ byte-size@^7.0.0: resolved "https://registry.npmjs.org/byte-size/-/byte-size-7.0.1.tgz#b1daf3386de7ab9d706b941a748dbfc71130dee3" integrity sha512-crQdqyCwhokxwV1UyDzLZanhkugAgft7vt0qbbdt60C6Zf3CAiGmtUCylbtYwrU6loOUw3euGrNtW1J651ot1A== +bytes@3.0.0: + version "3.0.0" + resolved "https://registry.npmmirror.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" + integrity sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw== + bytes@3.1.1: version "3.1.1" resolved "https://registry.npmjs.org/bytes/-/bytes-3.1.1.tgz#3f018291cb4cbad9accb6e6970bca9c8889e879a" @@ -5048,6 +7079,19 @@ cache-content-type@^1.0.0: mime-types "^2.1.18" ylru "^1.2.0" +cacheable-request@^6.0.0: + version "6.1.0" + resolved "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz#20ffb8bd162ba4be11e9567d823db651052ca912" + integrity sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg== + dependencies: + clone-response "^1.0.2" + get-stream "^5.1.0" + http-cache-semantics "^4.0.0" + keyv "^3.0.0" + lowercase-keys "^2.0.0" + normalize-url "^4.1.0" + responselike "^1.0.2" + call-bind@^1.0.0, call-bind@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c" @@ -5115,6 +7159,11 @@ camelcase-keys@^6.2.2: map-obj "^4.0.0" quick-lru "^4.0.1" +camelcase@^1.0.2: + version "1.2.1" + resolved "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" + integrity sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk= + camelcase@^2.0.0: version "2.1.1" resolved "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz#7c1d16d679a1bbe59ca02cacecfb011e201f5a1f" @@ -5135,6 +7184,26 @@ camelcase@^6.0.0: resolved "https://registry.npmjs.org/camelcase/-/camelcase-6.2.0.tgz#924af881c9d525ac9d87f40d964e5cea982a1809" integrity sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg== +camelcase@^6.2.0: + version "6.3.0" + resolved "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" + integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== + +caniuse-api@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz#5e4d90e2274961d46291997df599e3ed008ee4c0" + integrity sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw== + dependencies: + browserslist "^4.0.0" + caniuse-lite "^1.0.0" + lodash.memoize "^4.1.2" + lodash.uniq "^4.5.0" + +caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000971, caniuse-lite@^1.0.30001332: + version "1.0.30001338" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001338.tgz#b5dd7a7941a51a16480bdf6ff82bded1628eec0d" + integrity sha512-1gLHWyfVoRDsHieO+CaeYe7jSo/MT7D7lhaXUiwwbuR5BwQxORs0f1tAwUSQr3YbxRXJvxHM/PA5FfPQRnsPeQ== + caniuse-lite@^1.0.30000981, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001280: version "1.0.30001283" resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001283.tgz#8573685bdae4d733ef18f78d44ba0ca5fe9e896b" @@ -5167,15 +7236,24 @@ ccount@^1.0.0: resolved "https://registry.npmjs.org/ccount/-/ccount-1.1.0.tgz#246687debb6014735131be8abab2d93898f8d043" integrity sha512-vlNK021QdI7PNeiUh/lKkC/mNHHfV0m/Ad5JoI0TYtlBnJAslM/JIkm/tGC88bkLIwO6OQ5uV6ztS6kVAtCDlg== -chalk@3.0.0, chalk@^3.0.0, chalk@~3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4" - integrity sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg== +center-align@^0.1.1: + version "0.1.3" + resolved "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" + integrity sha1-qg0yYptu6XIgBBHL1EYckHvCt60= dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" + align-text "^0.1.3" + lazy-cache "^1.0.3" -chalk@^2.0.0, chalk@^2.0.1, chalk@^2.3.0, chalk@^2.4.1, chalk@^2.4.2: +chalk@2.4.1: + version "2.4.1" + resolved "https://registry.npmmirror.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e" + integrity sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ== + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + +chalk@2.4.2, chalk@^2.0.0, chalk@^2.0.1, chalk@^2.3.0, chalk@^2.3.2, chalk@^2.4.1, chalk@^2.4.2: version "2.4.2" resolved "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== @@ -5184,15 +7262,15 @@ chalk@^2.0.0, chalk@^2.0.1, chalk@^2.3.0, chalk@^2.4.1, chalk@^2.4.2: escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.1: - version "4.1.2" - resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== +chalk@3.0.0, chalk@^3.0.0, chalk@~3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4" + integrity sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg== dependencies: ansi-styles "^4.1.0" supports-color "^7.1.0" -chalk@~1.1.3: +chalk@^1.1.3, chalk@~1.1.3: version "1.1.3" resolved "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" integrity sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg= @@ -5203,6 +7281,14 @@ chalk@~1.1.3: strip-ansi "^3.0.0" supports-color "^2.0.0" +chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.1: + version "4.1.2" + resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + char-regex@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf" @@ -5238,6 +7324,30 @@ charm@~0.1.1: resolved "https://registry.npmjs.org/charm/-/charm-0.1.2.tgz#06c21eed1a1b06aeb67553cdc53e23274bac2296" integrity sha1-BsIe7RobBq62dVPNxT4jJ0usIpY= +cheerio-select@^1.5.0: + version "1.6.0" + resolved "https://registry.npmjs.org/cheerio-select/-/cheerio-select-1.6.0.tgz#489f36604112c722afa147dedd0d4609c09e1696" + integrity sha512-eq0GdBvxVFbqWgmCm7M3XGs1I8oLy/nExUnh6oLqmBditPO9AqQJrkslDpMun/hZ0yyTs8L0m85OHp4ho6Qm9g== + dependencies: + css-select "^4.3.0" + css-what "^6.0.1" + domelementtype "^2.2.0" + domhandler "^4.3.1" + domutils "^2.8.0" + +cheerio@^1.0.0-rc.3: + version "1.0.0-rc.10" + resolved "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.10.tgz#2ba3dcdfcc26e7956fc1f440e61d51c643379f3e" + integrity sha512-g0J0q/O6mW8z5zxQ3A8E8J1hUgp4SMOvEoW/x84OwyHKe/Zccz83PVT4y5Crcr530FV6NgmKI1qvGTKVl9XXVw== + dependencies: + cheerio-select "^1.5.0" + dom-serializer "^1.3.2" + domhandler "^4.2.0" + htmlparser2 "^6.1.0" + parse5 "^6.0.1" + parse5-htmlparser2-tree-adapter "^6.0.1" + tslib "^2.2.0" + china-division@^2.4.0: version "2.4.0" resolved "https://registry.npmjs.org/china-division/-/china-division-2.4.0.tgz#c9f0efc4b0857d65dfb6205bd1127c1f379a7db2" @@ -5258,7 +7368,26 @@ chokidar@3.5.1: optionalDependencies: fsevents "~2.3.1" -chokidar@^3.5.1: +chokidar@^2.0.4: + version "2.1.8" + resolved "https://registry.npmjs.org/chokidar/-/chokidar-2.1.8.tgz#804b3a7b6a99358c3c5c61e71d8728f041cff917" + integrity sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg== + dependencies: + anymatch "^2.0.0" + async-each "^1.0.1" + braces "^2.3.2" + glob-parent "^3.1.0" + inherits "^2.0.3" + is-binary-path "^1.0.0" + is-glob "^4.0.0" + normalize-path "^3.0.0" + path-is-absolute "^1.0.0" + readdirp "^2.2.1" + upath "^1.1.1" + optionalDependencies: + fsevents "^1.2.7" + +chokidar@^3.0.2, chokidar@^3.5.1: version "3.5.3" resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd" integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== @@ -5331,6 +7460,11 @@ cli-boxes@^1.0.0: resolved "https://registry.npmjs.org/cli-boxes/-/cli-boxes-1.0.0.tgz#4fa917c3e59c94a004cd61f8ee509da651687143" integrity sha1-T6kXw+WclKAEzWH47lCdplFocUM= +cli-boxes@^2.2.0, cli-boxes@^2.2.1: + version "2.2.1" + resolved "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz#ddd5035d25094fce220e9cab40a45840a440318f" + integrity sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw== + cli-cursor@^2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" @@ -5345,11 +7479,6 @@ cli-cursor@^3.1.0: dependencies: restore-cursor "^3.1.0" -cli-spinners@^2.5.0: - version "2.6.1" - resolved "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.6.1.tgz#adc954ebe281c37a6319bfa401e6dd2488ffb70d" - integrity sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g== - cli-tableau@^2.0.0: version "2.0.1" resolved "https://registry.npmjs.org/cli-tableau/-/cli-tableau-2.0.1.tgz#baa78d83e08a2d7ab79b7dad9406f0254977053f" @@ -5376,6 +7505,24 @@ clipboardy@2.3.0: execa "^1.0.0" is-wsl "^2.1.1" +cliui@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" + integrity sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE= + dependencies: + center-align "^0.1.1" + right-align "^0.1.1" + wordwrap "0.0.2" + +cliui@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5" + integrity sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA== + dependencies: + string-width "^3.1.0" + strip-ansi "^5.2.0" + wrap-ansi "^5.1.0" + cliui@^6.0.0: version "6.0.0" resolved "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1" @@ -5394,6 +7541,11 @@ cliui@^7.0.2: strip-ansi "^6.0.0" wrap-ansi "^7.0.0" +clone-buffer@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/clone-buffer/-/clone-buffer-1.0.0.tgz#e3e25b207ac4e701af721e2cb5a16792cac3dc58" + integrity sha1-4+JbIHrE5wGvch4staFnksrD3Fg= + clone-deep@^4.0.1: version "4.0.1" resolved "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387" @@ -5403,16 +7555,37 @@ clone-deep@^4.0.1: kind-of "^6.0.2" shallow-clone "^3.0.0" +clone-response@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz#d1dc973920314df67fbeb94223b4ee350239e96b" + integrity sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws= + dependencies: + mimic-response "^1.0.0" + +clone-stats@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz#b3782dff8bb5474e18b9b6bf0fdfe782f8777680" + integrity sha1-s3gt/4u1R04Yuba/D9/ngvh3doA= + clone@^1.0.2: version "1.0.4" resolved "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" integrity sha1-2jCcwmPfFZlMaIypAheco8fNfH4= -clone@^2.1.1: +clone@^2.1.1, clone@^2.1.2: version "2.1.2" resolved "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz#1b7f4b9f591f1e8f83670401600345a02887435f" integrity sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18= +cloneable-readable@^1.0.0: + version "1.1.3" + resolved "https://registry.npmjs.org/cloneable-readable/-/cloneable-readable-1.1.3.tgz#120a00cb053bfb63a222e709f9683ea2e11d8cec" + integrity sha512-2EF8zTQOxYq70Y4XKtorQupqF0m49MBz2/yf5Bj+MHjvpG3Hy7sImifnqD6UA+TKYxeSV+u6qqQPawN5UvnpKQ== + dependencies: + inherits "^2.0.1" + process-nextick-args "^2.0.0" + readable-stream "^2.3.5" + clsx@^1.0.4: version "1.1.1" resolved "https://registry.npmjs.org/clsx/-/clsx-1.1.1.tgz#98b3134f9abbdf23b2663491ace13c5c03a73188" @@ -5440,6 +7613,15 @@ co@^4.6.0: resolved "https://registry.npmjs.org/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ= +coa@^2.0.2: + version "2.0.2" + resolved "https://registry.npmjs.org/coa/-/coa-2.0.2.tgz#43f6c21151b4ef2bf57187db0d73de229e3e7ec3" + integrity sha512-q5/jG+YQnSy4nRTV4F7lPepBJZ8qBNJJDBuJdoejDyLXgmL7IEo+Le2JDZudFTFt7mrCqIRaSjws4ygRCTCAXA== + dependencies: + "@types/q" "^1.5.1" + chalk "^2.4.1" + q "^1.1.2" + code-point-at@^1.0.0: version "1.1.0" resolved "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" @@ -5458,7 +7640,7 @@ collection-visit@^1.0.0: map-visit "^1.0.0" object-visit "^1.0.0" -color-convert@^1.9.0: +color-convert@^1.9.0, color-convert@^1.9.3: version "1.9.3" resolved "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== @@ -5477,11 +7659,32 @@ color-name@1.1.3: resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= -color-name@~1.1.4: +color-name@^1.0.0, color-name@~1.1.4: version "1.1.4" resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== +color-string@^1.6.0: + version "1.9.1" + resolved "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz#4467f9146f036f855b764dfb5bf8582bf342c7a4" + integrity sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg== + dependencies: + color-name "^1.0.0" + simple-swizzle "^0.2.2" + +color-support@^1.1.2, color-support@^1.1.3: + version "1.1.3" + resolved "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz#93834379a1cc9a0c61f82f52f0d04322251bd5a2" + integrity sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg== + +color@^3.0.0: + version "3.2.1" + resolved "https://registry.npmjs.org/color/-/color-3.2.1.tgz#3544dc198caf4490c3ecc9a790b54fe9ff45e164" + integrity sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA== + dependencies: + color-convert "^1.9.3" + color-string "^1.6.0" + colors@^1.1.2: version "1.4.0" resolved "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78" @@ -5512,7 +7715,7 @@ comma-separated-tokens@^1.0.0: resolved "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz#632b80b6117867a158f1080ad498b2fbe7e3f5ea" integrity sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw== -commander@*, commander@>=7.0.0, commander@^8.1.0, commander@^8.2.0: +commander@*, commander@>=7.0.0: version "8.3.0" resolved "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66" integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww== @@ -5534,6 +7737,11 @@ commander@^2.19.0, commander@^2.20.0: resolved "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== +commander@^9.2.0: + version "9.2.0" + resolved "https://registry.npmmirror.com/commander/-/commander-9.2.0.tgz#6e21014b2ed90d8b7c9647230d8b7a94a4a419a9" + integrity sha512-e2i4wANQiSXgnrBlIatyHtP1odfUp0BbV5Y5nEGbxtIrStkEOAAzCUirvLBNXHLr7kwLvJl6V+4V3XV9x7Wd9w== + commander@~2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/commander/-/commander-2.1.0.tgz#d121bbae860d9992a3d517ba96f56588e47c6781" @@ -5557,6 +7765,26 @@ component-emitter@^1.2.1, component-emitter@^1.3.0: resolved "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0" integrity sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg== +compressible@~2.0.14: + version "2.0.18" + resolved "https://registry.npmmirror.com/compressible/-/compressible-2.0.18.tgz#af53cca6b070d4c3c0750fbd77286a6d7cc46fba" + integrity sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg== + dependencies: + mime-db ">= 1.43.0 < 2" + +compression@1.7.3: + version "1.7.3" + resolved "https://registry.npmmirror.com/compression/-/compression-1.7.3.tgz#27e0e176aaf260f7f2c2813c3e440adb9f1993db" + integrity sha512-HSjyBG5N1Nnz7tF2+O7A9XUhyjru71/fwgNb7oIsEVHR0WShfs2tIS/EySLgiTe98aOK18YDlMXpzjCXY/n9mg== + dependencies: + accepts "~1.3.5" + bytes "3.0.0" + compressible "~2.0.14" + debug "2.6.9" + on-headers "~1.0.1" + safe-buffer "5.1.2" + vary "~1.1.2" + compute-scroll-into-view@^1.0.17: version "1.0.17" resolved "https://registry.npmjs.org/compute-scroll-into-view/-/compute-scroll-into-view-1.0.17.tgz#6a88f18acd9d42e9cf4baa6bec7e0522607ab7ab" @@ -5587,6 +7815,13 @@ concat-stream@^2.0.0: readable-stream "^3.0.2" typedarray "^0.0.6" +concat-with-sourcemaps@^1.0.5, concat-with-sourcemaps@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz#d4ea93f05ae25790951b99e7b3b09e3908a4082e" + integrity sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg== + dependencies: + source-map "^0.6.1" + concurrently@^7.0.0: version "7.0.0" resolved "https://registry.npmjs.org/concurrently/-/concurrently-7.0.0.tgz#78d31b441cec338dab03316c221a2f9a67c529b0" @@ -5621,12 +7856,24 @@ configstore@^3.0.0: write-file-atomic "^2.0.0" xdg-basedir "^3.0.0" +configstore@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/configstore/-/configstore-4.0.0.tgz#5933311e95d3687efb592c528b922d9262d227e7" + integrity sha512-CmquAXFBocrzaSM8mtGPMM/HiWmyIpr4CcJl/rgY2uCObZ/S7cKU0silxslqJejl+t/T9HS8E0PUNQD81JGUEQ== + dependencies: + dot-prop "^4.1.0" + graceful-fs "^4.1.2" + make-dir "^1.0.0" + unique-string "^1.0.0" + write-file-atomic "^2.0.0" + xdg-basedir "^3.0.0" + console-browserify@^1.1.0: version "1.2.0" resolved "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz#67063cef57ceb6cf4993a2ab3a55840ae8c49336" integrity sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA== -console-control-strings@^1.0.0, console-control-strings@~1.1.0: +console-control-strings@^1.0.0, console-control-strings@^1.1.0, console-control-strings@~1.1.0: version "1.1.0" resolved "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" integrity sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4= @@ -5636,6 +7883,11 @@ constants-browserify@^1.0.0: resolved "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" integrity sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U= +content-disposition@0.5.2: + version "0.5.2" + resolved "https://registry.npmmirror.com/content-disposition/-/content-disposition-0.5.2.tgz#0cf68bb9ddf5f2be7961c3a85178cb85dba78cb4" + integrity sha512-kRGRZw3bLlFISDBgwTSA1TMBFN6J6GWDeubmDE3AF+3+yXL8hTWv8r5rkLbqYXY4RjPk/EzHnClI3zQf1cFmHA== + content-disposition@~0.5.2: version "0.5.3" resolved "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz#e130caf7e7279087c5616c2007d0485698984fbd" @@ -5759,7 +8011,7 @@ conventional-recommended-bump@^6.1.0: meow "^8.0.0" q "^1.5.1" -convert-source-map@^1.4.0, convert-source-map@^1.5.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0: +convert-source-map@^1.1.0, convert-source-map@^1.4.0, convert-source-map@^1.5.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0: version "1.8.0" resolved "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz#f3373c32d21b4d780dd8004514684fb791ca4369" integrity sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA== @@ -5779,6 +8031,13 @@ cookies@~0.8.0: depd "~2.0.0" keygrip "~1.1.0" +copy-anything@^2.0.1: + version "2.0.6" + resolved "https://registry.npmjs.org/copy-anything/-/copy-anything-2.0.6.tgz#092454ea9584a7b7ad5573062b2a87f5900fc480" + integrity sha512-1j20GZTsvKNkc4BY3NpMOM8tt///wY3FpIzozTOFO2ffuZcV61nojHXVKIy3WM+7ADCy5FVhdZYHYDdgTU0yJw== + dependencies: + is-what "^3.14.1" + copy-descriptor@^0.1.0: version "0.1.1" resolved "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" @@ -5801,6 +8060,27 @@ copy-to@^2.0.1: resolved "https://registry.npmjs.org/copy-to/-/copy-to-2.0.1.tgz#2680fbb8068a48d08656b6098092bdafc906f4a5" integrity sha1-JoD7uAaKSNCGVrYJgJK9r8kG9KU= +copyfiles@^2.4.1: + version "2.4.1" + resolved "https://registry.npmmirror.com/copyfiles/-/copyfiles-2.4.1.tgz#d2dcff60aaad1015f09d0b66e7f0f1c5cd3c5da5" + integrity sha512-fereAvAvxDrQDOXybk3Qu3dPbOoKoysFMWtkY3mv5BsL8//OSZVL5DCLYqgRfY5cWirgRzlC+WSrxp6Bo3eNZg== + dependencies: + glob "^7.0.5" + minimatch "^3.0.3" + mkdirp "^1.0.4" + noms "0.0.0" + through2 "^2.0.1" + untildify "^4.0.0" + yargs "^16.1.0" + +core-js-compat@^3.1.1, core-js-compat@^3.21.0, core-js-compat@^3.22.1, core-js-compat@^3.6.2: + version "3.22.4" + resolved "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.22.4.tgz#d700f451e50f1d7672dcad0ac85d910e6691e579" + integrity sha512-dIWcsszDezkFZrfm1cnB4f/J85gyhiCpxbgBdohWCDtSVuAaChTSpPV7ldOQf/Xds2U5xCIJZOK82G4ZPAIswA== + dependencies: + browserslist "^4.20.3" + semver "7.0.0" + core-js-compat@^3.18.0, core-js-compat@^3.19.0: version "3.19.1" resolved "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.19.1.tgz#fe598f1a9bf37310d77c3813968e9f7c7bb99476" @@ -5809,21 +8089,26 @@ core-js-compat@^3.18.0, core-js-compat@^3.19.0: browserslist "^4.17.6" semver "7.0.0" +core-js-pure@^3.20.2: + version "3.22.5" + resolved "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.22.5.tgz#bdee0ed2f9b78f2862cda4338a07b13a49b6c9a9" + integrity sha512-8xo9R00iYD7TcV7OrC98GwxiUEAabVWO3dix+uyWjnYrx9fyASLlIX+f/3p5dW5qByaP2bcZ8X/T47s55et/tA== + core-js-pure@^3.8.1: version "3.19.1" resolved "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.19.1.tgz#edffc1fc7634000a55ba05e95b3f0fe9587a5aa4" integrity sha512-Q0Knr8Es84vtv62ei6/6jXH/7izKmOrtrxH9WJTHLCMAVeU+8TF8z8Nr08CsH4Ot0oJKzBzJJL9SJBYIv7WlfQ== +core-js@3.1.4: + version "3.1.4" + resolved "https://registry.npmjs.org/core-js/-/core-js-3.1.4.tgz#3a2837fc48e582e1ae25907afcd6cf03b0cc7a07" + integrity sha512-YNZN8lt82XIMLnLirj9MhKDFZHalwzzrL9YLt6eb0T5D0EDl4IQ90IGkua8mHbnxNrkj1d8hbdizMc0Qmg1WnQ== + core-js@3.6.5: version "3.6.5" resolved "https://registry.npmjs.org/core-js/-/core-js-3.6.5.tgz#7395dc273af37fb2e50e9bd3d9fe841285231d1a" integrity sha512-vZVEEwZoIsI+vPEuoF9Iqf5H7/M3eeQqWlQnYa8FSKKePuYTf5MWnxb5SDAzCa60b3JBRS5g9b+Dq7b1y/RCrA== -core-js@3.8.2: - version "3.8.2" - resolved "https://registry.npmjs.org/core-js/-/core-js-3.8.2.tgz#0a1fd6709246da9ca8eff5bb0cbd15fba9ac7044" - integrity sha512-FfApuSRgrR6G5s58casCBd9M2k+4ikuu4wbW6pJyYU7bd9zvFc9qf7vr5xmrZOhT9nn+8uwlH1oRR9jTnFoA3A== - core-js@^2.4.0: version "2.6.12" resolved "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec" @@ -5847,7 +8132,7 @@ cosmiconfig-typescript-loader@^1.0.0: cosmiconfig "^7" ts-node "^10.4.0" -cosmiconfig@^5.0.0: +cosmiconfig@^5.0.0, cosmiconfig@^5.2.0: version "5.2.1" resolved "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.2.1.tgz#040f726809c591e77a17c0a3626ca45b4f168b1a" integrity sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA== @@ -5937,7 +8222,7 @@ croner@~4.1.92: cross-env@^7.0.3: version "7.0.3" - resolved "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf" + resolved "https://registry.npmmirror.com/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf" integrity sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw== dependencies: cross-spawn "^7.0.1" @@ -6015,6 +8300,19 @@ css-box-model@^1.2.0: dependencies: tiny-invariant "^1.0.6" +css-color-names@0.0.4, css-color-names@^0.0.4: + version "0.0.4" + resolved "https://registry.npmjs.org/css-color-names/-/css-color-names-0.0.4.tgz#808adc2e79cf84738069b646cb20ec27beb629e0" + integrity sha1-gIrcLnnPhHOAabZGyyDsJ762KeA= + +css-declaration-sorter@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-4.0.1.tgz#c198940f63a76d7e36c1e71018b001721054cb22" + integrity sha512-BcxQSKTSEEQUftYpBVnsH4SF05NTuBokb19/sBt6asXGKZ/6VP7PLG1CBCkFDYOnhXhPh0jMhO6xZ71oYHXHBA== + dependencies: + postcss "^7.0.1" + timsort "^0.3.0" + css-has-pseudo@^0.10.0: version "0.10.0" resolved "https://registry.npmjs.org/css-has-pseudo/-/css-has-pseudo-0.10.0.tgz#3c642ab34ca242c59c41a125df9105841f6966ee" @@ -6023,6 +8321,18 @@ css-has-pseudo@^0.10.0: postcss "^7.0.6" postcss-selector-parser "^5.0.0-rc.4" +css-modules-loader-core@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/css-modules-loader-core/-/css-modules-loader-core-1.1.0.tgz#5908668294a1becd261ae0a4ce21b0b551f21d16" + integrity sha1-WQhmgpShvs0mGuCkziGwtVHyHRY= + dependencies: + icss-replace-symbols "1.1.0" + postcss "6.0.1" + postcss-modules-extract-imports "1.1.0" + postcss-modules-local-by-default "1.2.0" + postcss-modules-scope "1.1.0" + postcss-modules-values "1.3.0" + css-prefers-color-scheme@^3.1.1: version "3.1.1" resolved "https://registry.npmjs.org/css-prefers-color-scheme/-/css-prefers-color-scheme-3.1.1.tgz#6f830a2714199d4f0d0d0bb8a27916ed65cff1f4" @@ -6030,6 +8340,66 @@ css-prefers-color-scheme@^3.1.1: dependencies: postcss "^7.0.5" +css-select-base-adapter@^0.1.1: + version "0.1.1" + resolved "https://registry.npmjs.org/css-select-base-adapter/-/css-select-base-adapter-0.1.1.tgz#3b2ff4972cc362ab88561507a95408a1432135d7" + integrity sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w== + +css-select@^2.0.0: + version "2.1.0" + resolved "https://registry.npmjs.org/css-select/-/css-select-2.1.0.tgz#6a34653356635934a81baca68d0255432105dbef" + integrity sha512-Dqk7LQKpwLoH3VovzZnkzegqNSuAziQyNZUcrdDM401iY+R5NkGBXGmtO05/yaXQziALuPogeG0b7UAgjnTJTQ== + dependencies: + boolbase "^1.0.0" + css-what "^3.2.1" + domutils "^1.7.0" + nth-check "^1.0.2" + +css-select@^4.3.0: + version "4.3.0" + resolved "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz#db7129b2846662fd8628cfc496abb2b59e41529b" + integrity sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ== + dependencies: + boolbase "^1.0.0" + css-what "^6.0.1" + domhandler "^4.3.1" + domutils "^2.8.0" + nth-check "^2.0.1" + +css-selector-tokenizer@^0.7.0: + version "0.7.3" + resolved "https://registry.npmjs.org/css-selector-tokenizer/-/css-selector-tokenizer-0.7.3.tgz#735f26186e67c749aaf275783405cf0661fae8f1" + integrity sha512-jWQv3oCEL5kMErj4wRnK/OPoBi0D+P1FR2cDCKYPaMeD2eW3/mttav8HT4hT1CKopiJI/psEULjkClhvJo4Lvg== + dependencies: + cssesc "^3.0.0" + fastparse "^1.1.2" + +css-tree@1.0.0-alpha.37: + version "1.0.0-alpha.37" + resolved "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.37.tgz#98bebd62c4c1d9f960ec340cf9f7522e30709a22" + integrity sha512-DMxWJg0rnz7UgxKT0Q1HU/L9BeJI0M6ksor0OgqOnF+aRCDWg/N2641HmVyU9KVIu0OVVWOb2IpC9A+BJRnejg== + dependencies: + mdn-data "2.0.4" + source-map "^0.6.1" + +css-tree@^1.1.2: + version "1.1.3" + resolved "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz#eb4870fb6fd7707327ec95c2ff2ab09b5e8db91d" + integrity sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q== + dependencies: + mdn-data "2.0.14" + source-map "^0.6.1" + +css-what@^3.2.1: + version "3.4.2" + resolved "https://registry.npmjs.org/css-what/-/css-what-3.4.2.tgz#ea7026fcb01777edbde52124e21f327e7ae950e4" + integrity sha512-ACUm3L0/jiZTqfzRM3Hi9Q8eZqd6IK37mMWPLz9PJxkLWllYeRf+EHUSHYEtFop2Eqytaq1FizFVh7XfBnXCDQ== + +css-what@^6.0.1: + version "6.1.0" + resolved "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz#fb5effcf76f1ddea2c81bdfaa4de44e79bac70f4" + integrity sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw== + css.escape@^1.5.1: version "1.5.1" resolved "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz#42e27d4fa04ae32f931a4b4d4191fa9cddee97cb" @@ -6045,6 +8415,15 @@ css@^2.2.3, css@^2.2.4: source-map-resolve "^0.5.2" urix "^0.1.0" +css@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/css/-/css-3.0.0.tgz#4447a4d58fdd03367c516ca9f64ae365cee4aa5d" + integrity sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ== + dependencies: + inherits "^2.0.4" + source-map "^0.6.1" + source-map-resolve "^0.6.0" + cssdb@^4.4.0: version "4.4.0" resolved "https://registry.npmjs.org/cssdb/-/cssdb-4.4.0.tgz#3bf2f2a68c10f5c6a08abd92378331ee803cddb0" @@ -6060,7 +8439,82 @@ cssesc@^3.0.0: resolved "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee" integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg== -cssom@0.3.x, cssom@^0.3.4, cssom@~0.3.6: +cssnano-preset-default@^4.0.8: + version "4.0.8" + resolved "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-4.0.8.tgz#920622b1fc1e95a34e8838203f1397a504f2d3ff" + integrity sha512-LdAyHuq+VRyeVREFmuxUZR1TXjQm8QQU/ktoo/x7bz+SdOge1YKc5eMN6pRW7YWBmyq59CqYba1dJ5cUukEjLQ== + dependencies: + css-declaration-sorter "^4.0.1" + cssnano-util-raw-cache "^4.0.1" + postcss "^7.0.0" + postcss-calc "^7.0.1" + postcss-colormin "^4.0.3" + postcss-convert-values "^4.0.1" + postcss-discard-comments "^4.0.2" + postcss-discard-duplicates "^4.0.2" + postcss-discard-empty "^4.0.1" + postcss-discard-overridden "^4.0.1" + postcss-merge-longhand "^4.0.11" + postcss-merge-rules "^4.0.3" + postcss-minify-font-values "^4.0.2" + postcss-minify-gradients "^4.0.2" + postcss-minify-params "^4.0.2" + postcss-minify-selectors "^4.0.2" + postcss-normalize-charset "^4.0.1" + postcss-normalize-display-values "^4.0.2" + postcss-normalize-positions "^4.0.2" + postcss-normalize-repeat-style "^4.0.2" + postcss-normalize-string "^4.0.2" + postcss-normalize-timing-functions "^4.0.2" + postcss-normalize-unicode "^4.0.1" + postcss-normalize-url "^4.0.1" + postcss-normalize-whitespace "^4.0.2" + postcss-ordered-values "^4.1.2" + postcss-reduce-initial "^4.0.3" + postcss-reduce-transforms "^4.0.2" + postcss-svgo "^4.0.3" + postcss-unique-selectors "^4.0.1" + +cssnano-util-get-arguments@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/cssnano-util-get-arguments/-/cssnano-util-get-arguments-4.0.0.tgz#ed3a08299f21d75741b20f3b81f194ed49cc150f" + integrity sha1-7ToIKZ8h11dBsg87gfGU7UnMFQ8= + +cssnano-util-get-match@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/cssnano-util-get-match/-/cssnano-util-get-match-4.0.0.tgz#c0e4ca07f5386bb17ec5e52250b4f5961365156d" + integrity sha1-wOTKB/U4a7F+xeUiULT1lhNlFW0= + +cssnano-util-raw-cache@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/cssnano-util-raw-cache/-/cssnano-util-raw-cache-4.0.1.tgz#b26d5fd5f72a11dfe7a7846fb4c67260f96bf282" + integrity sha512-qLuYtWK2b2Dy55I8ZX3ky1Z16WYsx544Q0UWViebptpwn/xDBmog2TLg4f+DBMg1rJ6JDWtn96WHbOKDWt1WQA== + dependencies: + postcss "^7.0.0" + +cssnano-util-same-parent@^4.0.0: + version "4.0.1" + resolved "https://registry.npmjs.org/cssnano-util-same-parent/-/cssnano-util-same-parent-4.0.1.tgz#574082fb2859d2db433855835d9a8456ea18bbf3" + integrity sha512-WcKx5OY+KoSIAxBW6UBBRay1U6vkYheCdjyVNDm85zt5K9mHoGOfsOsqIszfAqrQQFIIKgjh2+FDgIj/zsl21Q== + +cssnano@^4.1.10, cssnano@^4.1.8: + version "4.1.11" + resolved "https://registry.npmjs.org/cssnano/-/cssnano-4.1.11.tgz#c7b5f5b81da269cb1fd982cb960c1200910c9a99" + integrity sha512-6gZm2htn7xIPJOHY824ERgj8cNPgPxyCSnkXc4v7YvNW+TdVfzgngHcEhy/8D11kUWRUMbke+tC+AUcUsnMz2g== + dependencies: + cosmiconfig "^5.0.0" + cssnano-preset-default "^4.0.8" + is-resolvable "^1.0.0" + postcss "^7.0.0" + +csso@^4.0.2: + version "4.2.0" + resolved "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz#ea3a561346e8dc9f546d6febedd50187cf389529" + integrity sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA== + dependencies: + css-tree "^1.1.2" + +cssom@0.3.x, "cssom@>= 0.3.2 < 0.4.0", cssom@~0.3.6: version "0.3.8" resolved "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a" integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg== @@ -6070,7 +8524,7 @@ cssom@^0.4.4: resolved "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz#5a66cf93d2d0b661d80bf6a44fb65f5c2e4e0a10" integrity sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw== -cssstyle@^1.1.1: +cssstyle@^1.0.0: version "1.4.0" resolved "https://registry.npmjs.org/cssstyle/-/cssstyle-1.4.0.tgz#9d31328229d3c565c61e586b02041a28fccdccf1" integrity sha512-GBrLZYZ4X4x6/QEoBnIrqb8B/f5l4+8me2dkom/j1Gtbxy0kBv6OGzKuAsGM75bkGwGAFkt56Iwg28S3XTZgSA== @@ -6118,7 +8572,7 @@ data-uri-to-buffer@3: resolved "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-3.0.1.tgz#594b8973938c5bc2c33046535785341abc4f3636" integrity sha512-WboRycPNsVw3B3TL559F7kuBUM4d8CgMEvk6xEJlOp7OBPjt6G7z8WMWlD2rOFZLk6OYfFIUGsCOWzcQH9K2og== -data-urls@^1.1.0: +data-urls@^1.0.0: version "1.1.0" resolved "https://registry.npmjs.org/data-urls/-/data-urls-1.1.0.tgz#15ee0582baa5e22bb59c77140da8f9c76963bbfe" integrity sha512-YTWYI9se1P55u58gL5GkQHW4P6VJBJ5iBT+B5a7i2Tjadhv52paJG0qHX4A0OR6/t52odI64KP2YvFpkDOi3eQ== @@ -6171,6 +8625,13 @@ dayjs@~1.8.24, dayjs@~1.8.25: resolved "https://registry.npmjs.org/dayjs/-/dayjs-1.8.36.tgz#be36e248467afabf8f5a86bae0de0cdceecced50" integrity sha512-3VmRXEtw7RZKAf+4Tv1Ym9AGeo8r8+CjDi26x+7SYQil1UqtqdaokhzoEJohqlzt0m5kacJSDhJQkG/LWhpRBw== +debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.9: + version "2.6.9" + resolved "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + debug@4, debug@^4.0.0, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2: version "4.3.2" resolved "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b" @@ -6178,14 +8639,14 @@ debug@4, debug@^4.0.0, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, d dependencies: ms "2.1.2" -debug@^2.2.0, debug@^2.3.3, debug@^2.6.9: - version "2.6.9" - resolved "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== +debug@4.1.1: + version "4.1.1" + resolved "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791" + integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw== dependencies: - ms "2.0.0" + ms "^2.1.1" -debug@^3.1.0, debug@^3.2.6, debug@^3.2.7: +debug@^3.1.0, debug@^3.1.1, debug@^3.2.6, debug@^3.2.7: version "3.2.7" resolved "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== @@ -6212,7 +8673,7 @@ decamelize-keys@^1.1.0: decamelize "^1.1.0" map-obj "^1.0.0" -decamelize@^1.1.0, decamelize@^1.1.2, decamelize@^1.2.0: +decamelize@^1.0.0, decamelize@^1.1.0, decamelize@^1.1.2, decamelize@^1.2.0: version "1.2.0" resolved "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= @@ -6227,6 +8688,13 @@ decode-uri-component@^0.2.0: resolved "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= +decompress-response@^3.3.0: + version "3.3.0" + resolved "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz#80a4dd323748384bfa248083622aedec982adff3" + integrity sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M= + dependencies: + mimic-response "^1.0.0" + dedent@^0.7.0: version "0.7.0" resolved "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" @@ -6288,6 +8756,11 @@ defaults@^1.0.3: dependencies: clone "^1.0.2" +defer-to-connect@^1.0.1: + version "1.1.3" + resolved "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz#331ae050c08dcf789f8c83a7b81f0ed94f4ac591" + integrity sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ== + define-properties@^1.1.3: version "1.1.3" resolved "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" @@ -6295,6 +8768,14 @@ define-properties@^1.1.3: dependencies: object-keys "^1.0.12" +define-properties@^1.1.4: + version "1.1.4" + resolved "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz#0b14d7bd7fbeb2f3572c3a7eda80ea5d57fb05b1" + integrity sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA== + dependencies: + has-property-descriptors "^1.0.0" + object-keys "^1.1.1" + define-property@^0.2.5: version "0.2.5" resolved "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" @@ -6385,10 +8866,15 @@ detect-indent@^6.0.0: resolved "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz#592485ebbbf6b3b1ab2be175c8393d04ca0d57e6" integrity sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA== -detect-libc@^1.0.2: - version "1.0.3" - resolved "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" - integrity sha1-+hN8S9aY7fVc1c0CrFWfkaTEups= +detect-libc@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz#e1897aa88fa6ad197862937fbc0441ef352ee0cd" + integrity sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w== + +detect-newline@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" + integrity sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I= detect-newline@^3.0.0: version "3.1.0" @@ -6421,6 +8907,11 @@ diff-sequences@^26.6.2: resolved "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.6.2.tgz#48ba99157de1923412eed41db6b6d4aa9ca7c0b1" integrity sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q== +diff-sequences@^27.5.1: + version "27.5.1" + resolved "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz#eaecc0d327fd68c8d9672a1e64ab8dccb2ef5327" + integrity sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ== + diff@^4.0.1: version "4.0.2" resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" @@ -6462,6 +8953,11 @@ direction@^1.0.3: resolved "https://registry.npmmirror.com/direction/-/direction-1.0.4.tgz#2b86fb686967e987088caf8b89059370d4837442" integrity sha512-GYqKi1aH7PJXxdhTeZBFrg8vUBeKXi+cNprXsC1kpJcbcVnV9wBsrOu1cQEdG0WeQwlfHiy3XvnKfIrJ2R0NzQ== +discontinuous-range@1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/discontinuous-range/-/discontinuous-range-1.0.0.tgz#e38331f0844bba49b9a9cb71c771585aab1bc65a" + integrity sha1-44Mx8IRLukm5qctxx3FYWqsbxlo= + doctrine@^2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" @@ -6476,6 +8972,11 @@ doctrine@^3.0.0: dependencies: esutils "^2.0.2" +dom-accessibility-api@^0.5.6: + version "0.5.14" + resolved "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.14.tgz#56082f71b1dc7aac69d83c4285eef39c15d93f56" + integrity sha512-NMt+m9zFMPZe0JcY9gN224Qvk6qLIdqex29clBvc/y75ZBX9YA9wNK3frsYvu2DI1xcCIwxwnX+TlsJ2DSOADg== + dom-accessibility-api@^0.5.9: version "0.5.10" resolved "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.10.tgz#caa6d08f60388d0bb4539dd75fe458a9a1d0014c" @@ -6494,11 +8995,38 @@ dom-helpers@^5.1.0, dom-helpers@^5.2.0: "@babel/runtime" "^7.8.7" csstype "^3.0.2" +dom-serializer@0: + version "0.2.2" + resolved "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.2.tgz#1afb81f533717175d478655debc5e332d9f9bb51" + integrity sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g== + dependencies: + domelementtype "^2.0.1" + entities "^2.0.0" + +dom-serializer@^1.0.1, dom-serializer@^1.3.2: + version "1.4.1" + resolved "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz#de5d41b1aea290215dc45a6dae8adcf1d32e2d30" + integrity sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag== + dependencies: + domelementtype "^2.0.1" + domhandler "^4.2.0" + entities "^2.0.0" + domain-browser@^1.1.1: version "1.2.0" resolved "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda" integrity sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA== +domelementtype@1: + version "1.3.1" + resolved "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz#d048c44b37b0d10a7f2a3d5fee3f4333d790481f" + integrity sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w== + +domelementtype@^2.0.1, domelementtype@^2.2.0: + version "2.3.0" + resolved "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz#5c45e8e869952626331d7aab326d01daf65d589d" + integrity sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw== + domexception@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90" @@ -6513,6 +9041,30 @@ domexception@^2.0.1: dependencies: webidl-conversions "^5.0.0" +domhandler@^4.0.0, domhandler@^4.2.0, domhandler@^4.3.1: + version "4.3.1" + resolved "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz#8d792033416f59d68bc03a5aa7b018c1ca89279c" + integrity sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ== + dependencies: + domelementtype "^2.2.0" + +domutils@^1.7.0: + version "1.7.0" + resolved "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz#56ea341e834e06e6748af7a1cb25da67ea9f8c2a" + integrity sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg== + dependencies: + dom-serializer "0" + domelementtype "1" + +domutils@^2.5.2, domutils@^2.8.0: + version "2.8.0" + resolved "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz#4437def5db6e2d1f5d6ee859bd95ca7d02048135" + integrity sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A== + dependencies: + dom-serializer "^1.0.1" + domelementtype "^2.2.0" + domhandler "^4.2.0" + dot-case@^3.0.4: version "3.0.4" resolved "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz#9b2b670d00a431667a8a75ba29cd1b98809ce751" @@ -6521,14 +9073,14 @@ dot-case@^3.0.4: no-case "^3.0.4" tslib "^2.0.3" -dot-prop@^4.2.1: +dot-prop@^4.1.0, dot-prop@^4.2.1: version "4.2.1" resolved "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.1.tgz#45884194a71fc2cda71cbb4bceb3a4dd2f433ba4" integrity sha512-l0p4+mIuJIua0mhxGoh4a+iNL9bmeK5DvnSVQa6T0OhrVmaEa1XScX5Etc673FePCJOArq/4Pa2cLGODUWTPOQ== dependencies: is-obj "^1.0.0" -dot-prop@^5.1.0: +dot-prop@^5.1.0, dot-prop@^5.2.0: version "5.3.0" resolved "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz#90ccce708cd9cd82cc4dc8c3ddd9abdd55b20e88" integrity sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q== @@ -6562,23 +9114,24 @@ dumi-assets-types@1.0.0: resolved "https://registry.npmjs.org/dumi-assets-types/-/dumi-assets-types-1.0.0.tgz#d5368cb11045b203bf1ef1080e553b2287a2ec81" integrity sha512-7nhSeWM15vybbUAMPLZsdls2jKoHB2UU4P1RM6kLPucuS8eC/HSmufquFqTTYtX4oIDLHGtil/dVtMreNGwhdA== -dumi-theme-default@1.1.16: - version "1.1.16" - resolved "https://registry.npmjs.org/dumi-theme-default/-/dumi-theme-default-1.1.16.tgz#3bb34997359d9b5252bc59b30a9486610de15dcc" - integrity sha512-nxPXrA+g4EbQ5+8jZbyIXFpQfRGb7LiAmKfO9ajHUCIcQobhgnzwYfzVh8hY7X9JMBpH9iE0kMVaL9DFj/dblA== +dumi-theme-default@1.1.21: + version "1.1.21" + resolved "https://registry.npmjs.org/dumi-theme-default/-/dumi-theme-default-1.1.21.tgz#2dce486ea4f7b76b9ad1d8b3ccdbdefafd3f67f7" + integrity sha512-lh3lV9GnfJhh48Sb9YMlnSBd3da8O/Qs9QfbnoQI+9paDp5P5hLO9O+UJB8skojSSzdxsXiW6VALoHgBC8NGow== dependencies: + lodash.throttle "^4.1.1" prism-react-renderer "^1.1.1" prismjs "^1.21.0" rc-motion "^2.4.1" rc-tabs "^11.7.1" rc-tree "^5.2.0" -dumi@^1.1.33: - version "1.1.33" - resolved "https://registry.npmjs.org/dumi/-/dumi-1.1.33.tgz#73a536a890ef51377a6f131106241b2a2e9624f8" - integrity sha512-AZJeapMSbHRYGo2vSe/LXerSNNcn+HUxnRJC+149Ru0z3ZAyvpYIQVzRSf6sHOs5CovySLg76mzH9GbeVZUXDQ== +dumi@^1.1.40: + version "1.1.40" + resolved "https://registry.npmjs.org/dumi/-/dumi-1.1.40.tgz#c6e67cf06977278584931330dc2a5fa3265558e6" + integrity sha512-ixIGr2zdcpAOjC7Oa0fGMRewaQIYo57eRRcL2i+8F1mBD7WaFECb9JD9Vrvb2ox7+d4bXcgaOe3K00acpOU0JQ== dependencies: - "@umijs/preset-dumi" "1.1.33" + "@umijs/preset-dumi" "1.1.40" umi "^3.0.0" duplexer3@^0.1.4: @@ -6591,6 +9144,16 @@ duplexer@^0.1.1: resolved "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6" integrity sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg== +duplexify@^3.5.0, duplexify@^3.6.0: + version "3.7.1" + resolved "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz#2a4df5317f6ccfd91f86d6fd25d8d8a103b88309" + integrity sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g== + dependencies: + end-of-stream "^1.0.0" + inherits "^2.0.1" + readable-stream "^2.0.0" + stream-shift "^1.0.0" + dynamic-dedupe@^0.3.0: version "0.3.0" resolved "https://registry.npmjs.org/dynamic-dedupe/-/dynamic-dedupe-0.3.0.tgz#06e44c223f5e4e94d78ef9db23a6515ce2f962a1" @@ -6628,6 +9191,11 @@ electron-to-chromium@^1.3.896: resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.1.tgz#623f8fa6ee416e016d93f00efc34fbc73f9f59ed" integrity sha512-9ldvb6QMHiDpUNF1iSwBTiTT0qXEN+xIO5WlCJrC5gt0z74ofOiqR698vaJqYWnri0XZiF0YmnrFmGq/EmpGAA== +electron-to-chromium@^1.4.118: + version "1.4.136" + resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.136.tgz#b6a3595a9c29d6d8f60e092d40ac24f997e4e7ef" + integrity sha512-GnITX8rHnUrIVnTxU9UlsTnSemHUA2iF+6QrRqxFbp/mf0vfuSc/goEyyQhUX3TUUCE3mv/4BNuXOtaJ4ur0eA== + elliptic@^6.5.3: version "6.5.4" resolved "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" @@ -6653,6 +9221,11 @@ emittery@^0.7.1: resolved "https://registry.npmjs.org/emittery/-/emittery-0.7.2.tgz#25595908e13af0f5674ab419396e2fb394cdfa82" integrity sha512-A8OG5SR/ij3SsJdWDJdkkSYUjQdCUx6APQXem0SaEePBSRg4eymGYwBkKo1Y6DU+af/Jn2dBQqDBvjnr9Vi8nQ== +emoji-regex@^7.0.1: + version "7.0.3" + resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" + integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== + emoji-regex@^8.0.0: version "8.0.0" resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" @@ -6675,7 +9248,7 @@ encoding@^0.1.12: dependencies: iconv-lite "^0.6.2" -end-of-stream@^1.1.0: +end-of-stream@^1.0.0, end-of-stream@^1.1.0: version "1.4.4" resolved "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== @@ -6703,6 +9276,11 @@ enquirer@2.3.6, enquirer@^2.3.5: dependencies: ansi-colors "^4.1.1" +entities@^2.0.0: + version "2.2.0" + resolved "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz#098dc90ebb83d8dffa089d55256b351d34c4da55" + integrity sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A== + env-paths@^2.2.0: version "2.2.1" resolved "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz#420399d416ce1fbe9bc0a07c62fa68d67fd0f8f2" @@ -6713,12 +9291,76 @@ envinfo@^7.7.4: resolved "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz#06377e3e5f4d379fea7ac592d5ad8927e0c4d475" integrity sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw== +enzyme-adapter-react-16@^1.14.0: + version "1.15.6" + resolved "https://registry.npmjs.org/enzyme-adapter-react-16/-/enzyme-adapter-react-16-1.15.6.tgz#fd677a658d62661ac5afd7f7f541f141f8085901" + integrity sha512-yFlVJCXh8T+mcQo8M6my9sPgeGzj85HSHi6Apgf1Cvq/7EL/J9+1JoJmJsRxZgyTvPMAqOEpRSu/Ii/ZpyOk0g== + dependencies: + enzyme-adapter-utils "^1.14.0" + enzyme-shallow-equal "^1.0.4" + has "^1.0.3" + object.assign "^4.1.2" + object.values "^1.1.2" + prop-types "^15.7.2" + react-is "^16.13.1" + react-test-renderer "^16.0.0-0" + semver "^5.7.0" + +enzyme-adapter-utils@^1.14.0: + version "1.14.0" + resolved "https://registry.npmjs.org/enzyme-adapter-utils/-/enzyme-adapter-utils-1.14.0.tgz#afbb0485e8033aa50c744efb5f5711e64fbf1ad0" + integrity sha512-F/z/7SeLt+reKFcb7597IThpDp0bmzcH1E9Oabqv+o01cID2/YInlqHbFl7HzWBl4h3OdZYedtwNDOmSKkk0bg== + dependencies: + airbnb-prop-types "^2.16.0" + function.prototype.name "^1.1.3" + has "^1.0.3" + object.assign "^4.1.2" + object.fromentries "^2.0.3" + prop-types "^15.7.2" + semver "^5.7.1" + +enzyme-shallow-equal@^1.0.1, enzyme-shallow-equal@^1.0.4: + version "1.0.4" + resolved "https://registry.npmjs.org/enzyme-shallow-equal/-/enzyme-shallow-equal-1.0.4.tgz#b9256cb25a5f430f9bfe073a84808c1d74fced2e" + integrity sha512-MttIwB8kKxypwHvRynuC3ahyNc+cFbR8mjVIltnmzQ0uKGqmsfO4bfBuLxb0beLNPhjblUEYvEbsg+VSygvF1Q== + dependencies: + has "^1.0.3" + object-is "^1.1.2" + +enzyme@^3.10.0: + version "3.11.0" + resolved "https://registry.npmjs.org/enzyme/-/enzyme-3.11.0.tgz#71d680c580fe9349f6f5ac6c775bc3e6b7a79c28" + integrity sha512-Dw8/Gs4vRjxY6/6i9wU0V+utmQO9kvh9XLnz3LIudviOnVYDEe2ec+0k+NQoMamn1VrjKgCUOWj5jG/5M5M0Qw== + dependencies: + array.prototype.flat "^1.2.3" + cheerio "^1.0.0-rc.3" + enzyme-shallow-equal "^1.0.1" + function.prototype.name "^1.1.2" + has "^1.0.3" + html-element-map "^1.2.0" + is-boolean-object "^1.0.1" + is-callable "^1.1.5" + is-number-object "^1.0.4" + is-regex "^1.0.5" + is-string "^1.0.5" + is-subset "^0.1.1" + lodash.escape "^4.0.1" + lodash.isequal "^4.5.0" + object-inspect "^1.7.0" + object-is "^1.0.2" + object.assign "^4.1.0" + object.entries "^1.1.1" + object.values "^1.1.1" + raf "^3.4.1" + rst-selector-parser "^2.2.3" + string.prototype.trim "^1.2.1" + err-code@^2.0.2: version "2.0.3" resolved "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz#23c2f3b756ffdfc608d30e27c9a941024807e7f9" integrity sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA== -errno@^0.1.3: +errno@^0.1.1, errno@^0.1.3: version "0.1.8" resolved "https://registry.npmjs.org/errno/-/errno-0.1.8.tgz#8bb3e9c7d463be4976ff888f76b4809ebc2e811f" integrity sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A== @@ -6739,6 +9381,35 @@ error-stack-parser@^2.0.6: dependencies: stackframe "^1.1.1" +es-abstract@^1.17.2, es-abstract@^1.19.2, es-abstract@^1.19.4, es-abstract@^1.19.5: + version "1.20.0" + resolved "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.0.tgz#b2d526489cceca004588296334726329e0a6bfb6" + integrity sha512-URbD8tgRthKD3YcC39vbvSDrX23upXnPcnGAjQfgxXF5ID75YcENawc9ZX/9iTP9ptUyfCLIxTTuMYoRfiOVKA== + dependencies: + call-bind "^1.0.2" + es-to-primitive "^1.2.1" + function-bind "^1.1.1" + function.prototype.name "^1.1.5" + get-intrinsic "^1.1.1" + get-symbol-description "^1.0.0" + has "^1.0.3" + has-property-descriptors "^1.0.0" + has-symbols "^1.0.3" + internal-slot "^1.0.3" + is-callable "^1.2.4" + is-negative-zero "^2.0.2" + is-regex "^1.1.4" + is-shared-array-buffer "^1.0.2" + is-string "^1.0.7" + is-weakref "^1.0.2" + object-inspect "^1.12.0" + object-keys "^1.1.1" + object.assign "^4.1.2" + regexp.prototype.flags "^1.4.1" + string.prototype.trimend "^1.0.5" + string.prototype.trimstart "^1.0.5" + unbox-primitive "^1.0.2" + es-abstract@^1.19.0, es-abstract@^1.19.1: version "1.19.1" resolved "https://registry.npmjs.org/es-abstract/-/es-abstract-1.19.1.tgz#d4885796876916959de78edaa0df456627115ec3" @@ -6765,11 +9436,23 @@ es-abstract@^1.19.0, es-abstract@^1.19.1: string.prototype.trimstart "^1.0.4" unbox-primitive "^1.0.1" +es-array-method-boxes-properly@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz#873f3e84418de4ee19c5be752990b2e44718d09e" + integrity sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA== + es-module-lexer@0.7.1: version "0.7.1" resolved "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.7.1.tgz#c2c8e0f46f2df06274cdaf0dd3f3b33e0a0b267d" integrity sha512-MgtWFl5No+4S3TmhDmCz2ObFGm6lEpTnzbQi+Dd+pw4mlTIZTmM2iAs5gRlmx5zS9luzobCSBSI90JM/1/JgOw== +es-shim-unscopables@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz#702e632193201e3edf8713635d083d378e510241" + integrity sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w== + dependencies: + has "^1.0.3" + es-to-primitive@^1.2.1: version "1.2.1" resolved "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" @@ -6779,7 +9462,7 @@ es-to-primitive@^1.2.1: is-date-object "^1.0.1" is-symbol "^1.0.2" -es5-imcompatible-versions@^0.1.62: +es5-imcompatible-versions@^0.1.37, es5-imcompatible-versions@^0.1.62: version "0.1.73" resolved "https://registry.npmjs.org/es5-imcompatible-versions/-/es5-imcompatible-versions-0.1.73.tgz#2d34dbb29cbc54f38902cc1150bbe301b388c014" integrity sha512-P0SgLrYl9iqlrt0h6n/iz5z5P1uuhnfHp9BA/tcLfqgVIWHNvY4Rm+jtSvnh1ADK4DJOYDwJvxlrHMRoLQMgmQ== @@ -6814,7 +9497,7 @@ escape-string-regexp@^4.0.0: resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== -escodegen@^1.11.0, escodegen@^1.8.1: +escodegen@^1.8.1, escodegen@^1.9.1: version "1.14.3" resolved "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz#4e7b81fba61581dc97582ed78cab7f0e8d63f503" integrity sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw== @@ -7083,6 +9766,21 @@ estraverse@^5.1.0, estraverse@^5.2.0, estraverse@^5.3.0: resolved "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== +estree-walker@^0.6.0, estree-walker@^0.6.1: + version "0.6.1" + resolved "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz#53049143f40c6eb918b23671d1fe3219f3a1b362" + integrity sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w== + +estree-walker@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz#31bc5d612c96b704106b477e6dd5d8aa138cb700" + integrity sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg== + +estree-walker@^2.0.1: + version "2.0.2" + resolved "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac" + integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w== + esutils@^2.0.2: version "2.0.3" resolved "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" @@ -7136,21 +9834,6 @@ exec-sh@^0.3.2: resolved "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.6.tgz#ff264f9e325519a60cb5e273692943483cca63bc" integrity sha512-nQn+hI3yp+oD0huYhKwvYI32+JFeq+XkNcD1GAo3Y/MjxsfVGmrrzrnzjWiNY6f+pUCP440fThsFh5gZrRAU/w== -execa@5, execa@^5.0.0: - version "5.1.1" - resolved "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" - integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== - dependencies: - cross-spawn "^7.0.3" - get-stream "^6.0.0" - human-signals "^2.1.0" - is-stream "^2.0.0" - merge-stream "^2.0.0" - npm-run-path "^4.0.1" - onetime "^5.1.2" - signal-exit "^3.0.3" - strip-final-newline "^2.0.0" - execa@^0.4.0, execa@~0.4.0: version "0.4.0" resolved "https://registry.npmjs.org/execa/-/execa-0.4.0.tgz#4eb6467a36a095fabb2970ff9d5e3fb7bce6ebc3" @@ -7204,6 +9887,21 @@ execa@^4.0.0: signal-exit "^3.0.2" strip-final-newline "^2.0.0" +execa@^5.0.0, execa@^5.1.1: + version "5.1.1" + resolved "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" + integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== + dependencies: + cross-spawn "^7.0.3" + get-stream "^6.0.0" + human-signals "^2.1.0" + is-stream "^2.0.0" + merge-stream "^2.0.0" + npm-run-path "^4.0.1" + onetime "^5.1.2" + signal-exit "^3.0.3" + strip-final-newline "^2.0.0" + exenv@^1.2.0: version "1.2.2" resolved "https://registry.npmjs.org/exenv/-/exenv-1.2.2.tgz#2ae78e85d9894158670b03d47bec1f03bd91bb9d" @@ -7227,6 +9925,18 @@ expand-brackets@^2.1.4: snapdragon "^0.8.1" to-regex "^3.0.1" +expect@^24.9.0: + version "24.9.0" + resolved "https://registry.npmjs.org/expect/-/expect-24.9.0.tgz#b75165b4817074fa4a157794f46fe9f1ba15b6ca" + integrity sha512-wvVAx8XIol3Z5m9zvZXiyZOQ+sRJqNTIm6sGjdWlaZIeupQGO3WbYI+15D/AmEwZywL6wtJkbAbJtzkOfBuR0Q== + dependencies: + "@jest/types" "^24.9.0" + ansi-styles "^3.2.0" + jest-get-type "^24.9.0" + jest-matcher-utils "^24.9.0" + jest-message-util "^24.9.0" + jest-regex-util "^24.9.0" + expect@^26.6.2: version "26.6.2" resolved "https://registry.npmjs.org/expect/-/expect-26.6.2.tgz#c6b996bf26bf3fe18b67b2d0f51fc981ba934417" @@ -7239,6 +9949,13 @@ expect@^26.6.2: jest-message-util "^26.6.2" jest-regex-util "^26.0.0" +extend-shallow@^1.1.2: + version "1.1.4" + resolved "https://registry.npmjs.org/extend-shallow/-/extend-shallow-1.1.4.tgz#19d6bf94dfc09d76ba711f39b872d21ff4dd9071" + integrity sha1-Gda/lN/AnXa6cR85uHLSH/TdkHE= + dependencies: + kind-of "^1.1.0" + extend-shallow@^2.0.1: version "2.0.1" resolved "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" @@ -7292,6 +10009,16 @@ extsprintf@^1.2.0: resolved "https://registry.npmjs.org/extsprintf/-/extsprintf-1.4.1.tgz#8d172c064867f235c0c84a596806d279bf4bcc07" integrity sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA== +fancy-log@^1.3.2: + version "1.3.3" + resolved "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.3.tgz#dbc19154f558690150a23953a0adbd035be45fc7" + integrity sha512-k9oEhlyc0FrVh25qYuSELjr8oxsCoc4/LEZfg2iJJrfEk/tZL9bCoJE47gqAvI2m/AUjluCS4+3I0eTx8n3AEw== + dependencies: + ansi-gray "^0.1.1" + color-support "^1.1.3" + parse-node-version "^1.0.0" + time-stamp "^1.0.0" + fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" @@ -7350,6 +10077,18 @@ fast-safe-stringify@^2.0.7: resolved "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz#c406a83b6e70d9e35ce3b30a81141df30aeba884" integrity sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA== +fast-url-parser@1.1.3: + version "1.1.3" + resolved "https://registry.npmmirror.com/fast-url-parser/-/fast-url-parser-1.1.3.tgz#f4af3ea9f34d8a271cf58ad2b3759f431f0b318d" + integrity sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ== + dependencies: + punycode "^1.3.2" + +fastparse@^1.1.2: + version "1.1.2" + resolved "https://registry.npmjs.org/fastparse/-/fastparse-1.1.2.tgz#91728c5a5942eced8531283c79441ee4122c35a9" + integrity sha512-483XLLxTVIwWK3QTrMGRqUfUpoOs/0hbQrl2oz4J0pAcm3A3bu84wxTFqGqkJzewCLdME38xJLJAxBABfQT8sQ== + fastq@^1.6.0: version "1.13.0" resolved "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz#616760f88a7526bdfc596b7cab8c18938c36b98c" @@ -7439,6 +10178,14 @@ filter-obj@^1.1.0: resolved "https://registry.npmjs.org/filter-obj/-/filter-obj-1.1.0.tgz#9b311112bc6c6127a16e016c6c5d7f19e0805c5b" integrity sha1-mzERErxsYSehbgFsbF1/GeCAXFs= +find-babel-config@^1.1.0: + version "1.2.0" + resolved "https://registry.npmjs.org/find-babel-config/-/find-babel-config-1.2.0.tgz#a9b7b317eb5b9860cda9d54740a8c8337a2283a2" + integrity sha512-jB2CHJeqy6a820ssiqwrKMeyC6nNdmrcgkKWJWmpoxpE8RKciYJXCcXRq1h2AzCo5I5BJeN2tkGEO3hLTuePRA== + dependencies: + json5 "^0.5.1" + path-exists "^3.0.0" + find-cache-dir@^2.0.0: version "2.1.0" resolved "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz#8d0f94cd13fe43c6c7c261a0d86115ca918c05f7" @@ -7448,6 +10195,15 @@ find-cache-dir@^2.0.0: make-dir "^2.0.0" pkg-dir "^3.0.0" +find-cache-dir@^3.3.1: + version "3.3.2" + resolved "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz#b30c5b6eff0730731aea9bbd9dbecbd80256d64b" + integrity sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig== + dependencies: + commondir "^1.0.1" + make-dir "^3.0.2" + pkg-dir "^4.1.0" + find-package-json@^1.2.0: version "1.2.0" resolved "https://registry.npmmirror.com/find-package-json/-/find-package-json-1.2.0.tgz#4057d1b943f82d8445fe52dc9cf456f6b8b58083" @@ -7537,16 +10293,19 @@ flow-parser@0.*: resolved "https://registry.npmjs.org/flow-parser/-/flow-parser-0.164.0.tgz#455e16fdba12f24aa1d7631adacc524f1977b6ad" integrity sha512-aJWAhnazcz0o8xIbCW5LBTf+tnsAtLwaMSCcRqA15UTkPBY1Vq1vy1WEPKwcWsve5tos5kkOeCXgd/Nal+LUUQ== +flush-write-stream@^1.0.2: + version "1.1.1" + resolved "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.1.1.tgz#8dd7d873a1babc207d94ead0c2e0e44276ebf2e8" + integrity sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w== + dependencies: + inherits "^2.0.3" + readable-stream "^2.3.6" + follow-redirects@^1.14.0, follow-redirects@^1.14.8: version "1.14.9" resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.9.tgz#dd4ea157de7bfaf9ea9b3fbd85aa16951f78d8d7" integrity sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w== -follow-redirects@^1.14.4: - version "1.14.6" - resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.6.tgz#8cfb281bbc035b3c067d6cd975b0f6ade6e855cd" - integrity sha512-fhUl5EwSJbbl8AR+uYL2KQDxLkdSjZGR36xy46AO7cOMTrCMON6Sa28FmAnC2tRTDbd/Uuzz3aJBv7EBN7JH8A== - for-each@^0.3.3: version "0.3.3" resolved "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e" @@ -7564,6 +10323,11 @@ forever-agent@~0.6.1: resolved "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE= +fork-stream@^0.0.4: + version "0.0.4" + resolved "https://registry.npmjs.org/fork-stream/-/fork-stream-0.0.4.tgz#db849fce77f6708a5f8f386ae533a0907b54ae70" + integrity sha1-24Sfznf2cIpfjzhq5TOgkHtUrnA= + form-data@^3.0.0: version "3.0.1" resolved "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" @@ -7613,6 +10377,15 @@ fresh@~0.5.2: resolved "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" integrity sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac= +fs-extra@8.1.0, fs-extra@^8.1.0: + version "8.1.0" + resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" + integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^4.0.0" + universalify "^0.1.0" + fs-extra@^10.0.0: version "10.0.0" resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.0.tgz#9ff61b655dde53fb34a82df84bb214ce802e17c1" @@ -7622,24 +10395,6 @@ fs-extra@^10.0.0: jsonfile "^6.0.1" universalify "^2.0.0" -fs-extra@^10.0.1: - version "10.0.1" - resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.1.tgz#27de43b4320e833f6867cc044bfce29fdf0ef3b8" - integrity sha512-NbdoVMZso2Lsrn/QwLXOy6rm0ufY2zEOKCDzJR/0kBsb0E6qed0P3iYK+Ath3BfvXEeu4JhEtXLgILx5psUfag== - dependencies: - graceful-fs "^4.2.0" - jsonfile "^6.0.1" - universalify "^2.0.0" - -fs-extra@^8.1.0: - version "8.1.0" - resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" - integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== - dependencies: - graceful-fs "^4.2.0" - jsonfile "^4.0.0" - universalify "^0.1.0" - fs-extra@^9.1.0: version "9.1.0" resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d" @@ -7664,6 +10419,14 @@ fs-minipass@^2.0.0, fs-minipass@^2.1.0: dependencies: minipass "^3.0.0" +fs-mkdirp-stream@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/fs-mkdirp-stream/-/fs-mkdirp-stream-1.0.0.tgz#0b7815fc3201c6a69e14db98ce098c16935259eb" + integrity sha1-C3gV/DIBxqaeFNuYzgmMFpNSWes= + dependencies: + graceful-fs "^4.1.11" + through2 "^2.0.3" + fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" @@ -7682,15 +10445,10 @@ fsevents@^2.1.2, fsevents@~2.3.1, fsevents@~2.3.2: resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== -fstream@^1.0.0, fstream@^1.0.12: - version "1.0.12" - resolved "https://registry.npmjs.org/fstream/-/fstream-1.0.12.tgz#4e8ba8ee2d48be4f7d0de505455548eae5932045" - integrity sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg== - dependencies: - graceful-fs "^4.1.2" - inherits "~2.0.0" - mkdirp ">=0.5 0" - rimraf "2" +fsevents@~2.1.2: + version "2.1.3" + resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz#fb738703ae8d2f9fe900c33836ddebee8b97f23e" + integrity sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ== ftp@^0.3.10: version "0.3.10" @@ -7705,11 +10463,55 @@ function-bind@^1.1.1: resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== +function.prototype.name@^1.1.2, function.prototype.name@^1.1.3, function.prototype.name@^1.1.5: + version "1.1.5" + resolved "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz#cce0505fe1ffb80503e6f9e46cc64e46a12a9621" + integrity sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.0" + functions-have-names "^1.2.2" + functional-red-black-tree@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= +functions-have-names@^1.2.2: + version "1.2.3" + resolved "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" + integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== + +gauge@^3.0.0: + version "3.0.2" + resolved "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz#03bf4441c044383908bcfa0656ad91803259b395" + integrity sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q== + dependencies: + aproba "^1.0.3 || ^2.0.0" + color-support "^1.1.2" + console-control-strings "^1.0.0" + has-unicode "^2.0.1" + object-assign "^4.1.1" + signal-exit "^3.0.0" + string-width "^4.2.3" + strip-ansi "^6.0.1" + wide-align "^1.1.2" + +gauge@^4.0.3: + version "4.0.4" + resolved "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz#52ff0652f2bbf607a989793d53b751bef2328dce" + integrity sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg== + dependencies: + aproba "^1.0.3 || ^2.0.0" + color-support "^1.1.3" + console-control-strings "^1.1.0" + has-unicode "^2.0.1" + signal-exit "^3.0.7" + string-width "^4.2.3" + strip-ansi "^6.0.1" + wide-align "^1.1.5" + gauge@~2.7.3: version "2.7.4" resolved "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" @@ -7731,6 +10533,13 @@ generate-function@^2.3.1: dependencies: is-property "^1.0.2" +generic-names@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/generic-names/-/generic-names-2.0.1.tgz#f8a378ead2ccaa7a34f0317b05554832ae41b872" + integrity sha512-kPCHWa1m9wGG/OwQpeweTwM/PYiQLrUIxXbt/P4Nic3LbGjCP0YwrALHW1uNLKZ0LIMg+RF+XRlj2ekT9ZlZAQ== + dependencies: + loader-utils "^1.1.0" + gensync@^1.0.0-beta.1, gensync@^1.0.0-beta.2: version "1.0.0-beta.2" resolved "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" @@ -7790,14 +10599,14 @@ get-stream@^3.0.0: resolved "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" integrity sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ= -get-stream@^4.0.0: +get-stream@^4.0.0, get-stream@^4.1.0: version "4.1.0" resolved "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== dependencies: pump "^3.0.0" -get-stream@^5.0.0: +get-stream@^5.0.0, get-stream@^5.1.0: version "5.2.0" resolved "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3" integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA== @@ -7943,12 +10752,28 @@ glob-parent@^5.1.1, glob-parent@^5.1.2, glob-parent@~5.1.0, glob-parent@~5.1.2: dependencies: is-glob "^4.0.1" +glob-stream@^6.1.0: + version "6.1.0" + resolved "https://registry.npmjs.org/glob-stream/-/glob-stream-6.1.0.tgz#7045c99413b3eb94888d83ab46d0b404cc7bdde4" + integrity sha1-cEXJlBOz65SIjYOrRtC0BMx73eQ= + dependencies: + extend "^3.0.0" + glob "^7.1.1" + glob-parent "^3.1.0" + is-negated-glob "^1.0.0" + ordered-read-streams "^1.0.0" + pumpify "^1.3.5" + readable-stream "^2.1.5" + remove-trailing-separator "^1.0.1" + to-absolute-glob "^2.0.0" + unique-stream "^2.0.2" + glob-to-regexp@^0.3.0: version "0.3.0" resolved "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz#8c5a1494d2066c570cc3bfe4496175acc4d502ab" integrity sha1-jFoUlNIGbFcMw7/kSWF1rMTVAqs= -glob@^7.0.3, glob@^7.0.5, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: +glob@^7.0.5, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: version "7.2.0" resolved "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023" integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== @@ -8021,6 +10846,28 @@ got@^6.7.1: unzip-response "^2.0.1" url-parse-lax "^1.0.0" +got@^9.6.0: + version "9.6.0" + resolved "https://registry.npmjs.org/got/-/got-9.6.0.tgz#edf45e7d67f99545705de1f7bbeeeb121765ed85" + integrity sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q== + dependencies: + "@sindresorhus/is" "^0.14.0" + "@szmarczak/http-timer" "^1.1.2" + cacheable-request "^6.0.0" + decompress-response "^3.3.0" + duplexer3 "^0.1.4" + get-stream "^4.1.0" + lowercase-keys "^1.0.1" + mimic-response "^1.0.1" + p-cancelable "^1.0.0" + to-readable-stream "^1.0.0" + url-parse-lax "^3.0.0" + +graceful-fs@^4.0.0, graceful-fs@^4.2.6: + version "4.2.10" + resolved "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" + integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== + graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.2, graceful-fs@^4.2.3, graceful-fs@^4.2.4: version "4.2.8" resolved "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.8.tgz#e412b8d33f5e006593cbd3cee6df9f2cebbe802a" @@ -8036,6 +10883,57 @@ growly@^1.3.0: resolved "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" integrity sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE= +gulp-if@2.0.2: + version "2.0.2" + resolved "https://registry.npmjs.org/gulp-if/-/gulp-if-2.0.2.tgz#a497b7e7573005041caa2bc8b7dda3c80444d629" + integrity sha1-pJe351cwBQQcqivIt92jyARE1ik= + dependencies: + gulp-match "^1.0.3" + ternary-stream "^2.0.1" + through2 "^2.0.1" + +gulp-less@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/gulp-less/-/gulp-less-4.0.1.tgz#348c33a5dde7a207c5771b1d8261d1ac1021ceed" + integrity sha512-hmM2k0FfQp7Ptm3ZaqO2CkMX3hqpiIOn4OHtuSsCeFym63F7oWlEua5v6u1cIjVUKYsVIs9zPg9vbqTEb/udpA== + dependencies: + accord "^0.29.0" + less "2.6.x || ^3.7.1" + object-assign "^4.0.1" + plugin-error "^0.1.2" + replace-ext "^1.0.0" + through2 "^2.0.0" + vinyl-sourcemaps-apply "^0.2.0" + +gulp-match@^1.0.3: + version "1.1.0" + resolved "https://registry.npmjs.org/gulp-match/-/gulp-match-1.1.0.tgz#552b7080fc006ee752c90563f9fec9d61aafdf4f" + integrity sha512-DlyVxa1Gj24DitY2OjEsS+X6tDpretuxD6wTfhXE/Rw2hweqc1f6D/XtsJmoiCwLWfXgR87W9ozEityPCVzGtQ== + dependencies: + minimatch "^3.0.3" + +gulp-plumber@^1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/gulp-plumber/-/gulp-plumber-1.2.1.tgz#d38700755a300b9d372318e4ffb5ff7ced0b2c84" + integrity sha512-mctAi9msEAG7XzW5ytDVZ9PxWMzzi1pS2rBH7lA095DhMa6KEXjm+St0GOCc567pJKJ/oCvosVAZEpAey0q2eQ== + dependencies: + chalk "^1.1.3" + fancy-log "^1.3.2" + plugin-error "^0.1.2" + through2 "^2.0.3" + +gulp-typescript@5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/gulp-typescript/-/gulp-typescript-5.0.1.tgz#96c6565a6eb31e08c2aae1c857b1a079e6226d94" + integrity sha512-YuMMlylyJtUSHG1/wuSVTrZp60k1dMEFKYOvDf7OvbAJWrDtxxD4oZon4ancdWwzjj30ztiidhe4VXJniF0pIQ== + dependencies: + ansi-colors "^3.0.5" + plugin-error "^1.0.1" + source-map "^0.7.3" + through2 "^3.0.0" + vinyl "^2.1.0" + vinyl-fs "^3.0.3" + handlebars@^4.7.6: version "4.7.7" resolved "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz#9ce33416aad02dbd6c8fafa8240d5d98004945a1" @@ -8083,6 +10981,16 @@ has-bigints@^1.0.1: resolved "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.1.tgz#64fe6acb020673e3b78db035a5af69aa9d07b113" integrity sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA== +has-bigints@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" + integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== + +has-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" + integrity sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo= + has-flag@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" @@ -8093,11 +11001,23 @@ has-flag@^4.0.0: resolved "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== +has-property-descriptors@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz#610708600606d36961ed04c196193b6a607fa861" + integrity sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ== + dependencies: + get-intrinsic "^1.1.1" + has-symbols@^1.0.1, has-symbols@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz#165d3070c00309752a1236a479331e3ac56f1423" integrity sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw== +has-symbols@^1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" + integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== + has-tostringtag@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz#7e133818a7d394734f941e73c3d3f9291e658b25" @@ -8141,7 +11061,12 @@ has-values@^1.0.0: is-number "^3.0.0" kind-of "^4.0.0" -has@^1.0.3: +has-yarn@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz#137e11354a7b5bf11aa5cb649cf0c6f3ff2b2e77" + integrity sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw== + +has@^1.0.0, has@^1.0.3: version "1.0.3" resolved "https://registry.npmjs.org/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== @@ -8292,6 +11217,11 @@ hastscript@^6.0.0: property-information "^5.0.0" space-separated-tokens "^1.0.0" +hex-color-regex@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/hex-color-regex/-/hex-color-regex-1.1.0.tgz#4c06fccb4602fe2602b3c93df82d7e7dbf1a8a8e" + integrity sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ== + history-with-query@4.10.4: version "4.10.4" resolved "https://registry.npmjs.org/history-with-query/-/history-with-query-4.10.4.tgz#8161ff3c5044e29dfaeb73e7587eb3d4c1a8090e" @@ -8352,11 +11282,29 @@ hosted-git-info@^4.0.0, hosted-git-info@^4.0.1: dependencies: lru-cache "^6.0.0" +hsl-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/hsl-regex/-/hsl-regex-1.0.0.tgz#d49330c789ed819e276a4c0d272dffa30b18fe6e" + integrity sha1-1JMwx4ntgZ4nakwNJy3/owsY/m4= + +hsla-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/hsla-regex/-/hsla-regex-1.0.0.tgz#c1ce7a3168c8c6614033a4b5f7877f3b225f9c38" + integrity sha1-wc56MWjIxmFAM6S194d/OyJfnDg= + html-comment-regex@^1.1.2: version "1.1.2" resolved "https://registry.npmjs.org/html-comment-regex/-/html-comment-regex-1.1.2.tgz#97d4688aeb5c81886a364faa0cad1dda14d433a7" integrity sha512-P+M65QY2JQ5Y0G9KKdlDpo0zK+/OHptU5AaBwUfAIDJZk1MYf32Frm84EcOytfJE0t5JvkAnKlmjsXDnWzCJmQ== +html-element-map@^1.2.0: + version "1.3.1" + resolved "https://registry.npmjs.org/html-element-map/-/html-element-map-1.3.1.tgz#44b2cbcfa7be7aa4ff59779e47e51012e1c73c08" + integrity sha512-6XMlxrAFX4UEEGxctfFnmrFaaZFNf9i5fNuV5wZ3WWQ4FVaNP1aX1LkX9j2mfEx1NpjeE/rL3nmgEn23GdFmrg== + dependencies: + array.prototype.filter "^1.0.0" + call-bind "^1.0.2" + html-encoding-sniffer@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz#e70d84b94da53aa375e11fe3a351be6642ca46f8" @@ -8393,6 +11341,16 @@ html-void-elements@^1.0.0: resolved "https://registry.npmjs.org/html-void-elements/-/html-void-elements-1.0.5.tgz#ce9159494e86d95e45795b166c2021c2cfca4483" integrity sha512-uE/TxKuyNIcx44cIWnjr/rfIATDH7ZaOMmstu0CwhFG1Dunhlp4OC6/NMbhiwoq5BpW0ubi303qnEk/PZj614w== +htmlparser2@^6.1.0: + version "6.1.0" + resolved "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz#c4d762b6c3371a05dbe65e94ae43a9f845fb8fb7" + integrity sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A== + dependencies: + domelementtype "^2.0.1" + domhandler "^4.0.0" + domutils "^2.5.2" + entities "^2.0.0" + http-assert@^1.3.0: version "1.5.0" resolved "https://registry.npmjs.org/http-assert/-/http-assert-1.5.0.tgz#c389ccd87ac16ed2dfa6246fd73b926aa00e6b8f" @@ -8401,7 +11359,7 @@ http-assert@^1.3.0: deep-equal "~1.0.1" http-errors "~1.8.0" -http-cache-semantics@^4.1.0: +http-cache-semantics@^4.0.0, http-cache-semantics@^4.1.0: version "4.1.0" resolved "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz#49e91c5cbf36c9b94bcfcd71c23d5249ec74e390" integrity sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ== @@ -8503,6 +11461,11 @@ iconv-lite@^0.6.2, iconv-lite@^0.6.3: dependencies: safer-buffer ">= 2.1.2 < 3.0.0" +icss-replace-symbols@1.1.0, icss-replace-symbols@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/icss-replace-symbols/-/icss-replace-symbols-1.1.0.tgz#06ea6f83679a7749e386cfe1fe812ae5db223ded" + integrity sha1-Bupvg2ead0njhs/h/oEq5dsiPe0= + identity-obj-proxy@3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/identity-obj-proxy/-/identity-obj-proxy-3.0.0.tgz#94d2bda96084453ef36fbc5aaec37e0f79f1fc14" @@ -8515,12 +11478,12 @@ ieee754@1.1.13: resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz#ec168558e95aa181fd87d37f55c32bbcb6708b84" integrity sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg== -ieee754@^1.1.13, ieee754@^1.1.4: +ieee754@^1.1.4: version "1.2.1" resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== -ignore-walk@^3.0.1, ignore-walk@^3.0.3: +ignore-walk@^3.0.3: version "3.0.4" resolved "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.4.tgz#c9a09f69b7c7b479a5d74ac1a3c0d4236d2a6335" integrity sha512-PY6Ii8o1jMRA1z4F2hRkH/xN59ox43DavKvD3oDpfurRlOJyAHpifIwpbdv1n4jt4ov0jSpw3kQ4GhJnpBL6WQ== @@ -8542,18 +11505,30 @@ ignore@^5.1.1, ignore@^5.1.4, ignore@^5.1.8: resolved "https://registry.npmjs.org/ignore/-/ignore-5.1.9.tgz#9ec1a5cbe8e1446ec60d4420060d43aa6e7382fb" integrity sha512-2zeMQpbKz5dhZ9IwL0gbxSW5w0NK/MSAMtNuhgIHEPmaU3vPdKPL0UdvUCXs5SS4JAwsBxysK5sFMW8ocFiVjQ== +image-size@~0.5.0: + version "0.5.5" + resolved "https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz#09dfd4ab9d20e29eb1c3e80b8990378df9e3cb9c" + integrity sha1-Cd/Uq50g4p6xw+gLiZA3jfnjy5w= + immer@^9.0.6: version "9.0.12" resolved "https://registry.npmmirror.com/immer/-/immer-9.0.12.tgz#2d33ddf3ee1d247deab9d707ca472c8c942a0f20" integrity sha512-lk7UNmSbAukB5B6dh9fnh5D0bJTOFKxVg2cyJWTYrWRfhLrLMBquONcUs3aFq507hNoIZEDDh8lb8UtOizSMhA== -import-cwd@^2.0.0: +import-cwd@^2.0.0, import-cwd@^2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/import-cwd/-/import-cwd-2.1.0.tgz#aa6cf36e722761285cb371ec6519f53e2435b0a9" integrity sha1-qmzzbnInYShcs3HsZRn1PiQ1sKk= dependencies: import-from "^2.1.0" +import-cwd@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/import-cwd/-/import-cwd-3.0.0.tgz#20845547718015126ea9b3676b7592fb8bd4cf92" + integrity sha512-4pnzH16plW+hgvRECbDWpQl3cqtvSofHWh44met7ESfZ8UZOWWddm8hEyDTqREJ9RbYHY8gi8DqmaelApoOGMg== + dependencies: + import-from "^3.0.0" + import-fresh@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546" @@ -8577,11 +11552,26 @@ import-from@^2.1.0: dependencies: resolve-from "^3.0.0" +import-from@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/import-from/-/import-from-3.0.0.tgz#055cfec38cd5a27d8057ca51376d7d3bf0891966" + integrity sha512-CiuXOFFSzkU5x/CR0+z7T91Iht4CXgfCxVOFRhh2Zyhg5wOpWvvDLQUsWl+gcN+QscYBjez8hDCt85O7RLDttQ== + dependencies: + resolve-from "^5.0.0" + import-lazy@^2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43" integrity sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM= +import-local@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/import-local/-/import-local-2.0.0.tgz#55070be38a5993cf18ef6db7e961f5bee5c5a09d" + integrity sha512-b6s04m3O+s3CGSbqDIyP4R6aAwAeYlVq9+WUWep6iHa8ETRf9yei1U48C5MmfJmV9AiLYYBKPMq/W+/WRpQmCQ== + dependencies: + pkg-dir "^3.0.0" + resolve-cwd "^2.0.0" + import-local@^3.0.2: version "3.0.3" resolved "https://registry.npmjs.org/import-local/-/import-local-3.0.3.tgz#4d51c2c495ca9393da259ec66b62e022920211e0" @@ -8617,6 +11607,11 @@ indexes-of@^1.0.1: resolved "https://registry.npmjs.org/indexes-of/-/indexes-of-1.0.1.tgz#f30f716c8e2bd346c7b67d3df3915566a7c05607" integrity sha1-8w9xbI4r00bHtn0985FVZqfAVgc= +indx@^0.2.3: + version "0.2.3" + resolved "https://registry.npmjs.org/indx/-/indx-0.2.3.tgz#15dcf56ee9cf65c0234c513c27fbd580e70fbc50" + integrity sha1-Fdz1bunPZcAjTFE8J/vVgOcPvFA= + infer-owner@^1.0.4: version "1.0.4" resolved "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz#c4cefcaa8e51051c2a40ba2ce8a3d27295af9467" @@ -8640,7 +11635,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.0, inherits@~2.0.1, inherits@~2.0.3: +inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.1, inherits@~2.0.3: version "2.0.4" resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -8730,7 +11725,7 @@ intersection-observer@^0.12.0: resolved "https://registry.npmjs.org/intersection-observer/-/intersection-observer-0.12.0.tgz#6c84628f67ce8698e5f9ccf857d97718745837aa" integrity sha512-2Vkz8z46Dv401zTWudDGwO7KiGHNDkMv417T5ItcNYfmvHR/1qCTVBO9vwH8zZmQ0WkA/1ARwpysR9bsnop4NQ== -invariant@^2.2.4: +invariant@^2.2.2, invariant@^2.2.4: version "2.2.4" resolved "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== @@ -8742,6 +11737,19 @@ ip@^1.1.5: resolved "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz#bdded70114290828c0a039e72ef25f5aaec4354a" integrity sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo= +is-absolute-url@^2.0.0: + version "2.1.0" + resolved "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-2.1.0.tgz#50530dfb84fcc9aa7dbe7852e83a37b93b9f2aa6" + integrity sha1-UFMN+4T8yap9vnhS6Do3uTufKqY= + +is-absolute@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/is-absolute/-/is-absolute-1.0.0.tgz#395e1ae84b11f26ad1795e73c17378e48a301576" + integrity sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA== + dependencies: + is-relative "^1.0.0" + is-windows "^1.0.1" + is-accessor-descriptor@^0.1.6: version "0.1.6" resolved "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" @@ -8782,6 +11790,11 @@ is-arrayish@^0.2.1: resolved "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= +is-arrayish@^0.3.1: + version "0.3.2" + resolved "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz#4574a2ae56f7ab206896fb431eaeed066fdf8f03" + integrity sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ== + is-bigint@^1.0.1: version "1.0.4" resolved "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz#08147a1875bc2b32005d41ccd8291dffc6691df3" @@ -8789,6 +11802,13 @@ is-bigint@^1.0.1: dependencies: has-bigints "^1.0.1" +is-binary-path@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" + integrity sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg= + dependencies: + binary-extensions "^1.0.0" + is-binary-path@~2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" @@ -8801,7 +11821,7 @@ is-blob@^2.1.0: resolved "https://registry.npmjs.org/is-blob/-/is-blob-2.1.0.tgz#e36cd82c90653f1e1b930f11baf9c64216a05385" integrity sha512-SZ/fTft5eUhQM6oF/ZaASFDEdbFVe89Imltn9uZr03wdKMcWNVYSMjQPFtg05QuNkt5l5c135ElvXEQG0rk4tw== -is-boolean-object@^1.1.0: +is-boolean-object@^1.0.1, is-boolean-object@^1.1.0: version "1.1.2" resolved "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz#5c6dc200246dd9321ae4b885a114bb1f75f63719" integrity sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA== @@ -8819,7 +11839,7 @@ is-buffer@^2.0.0, is-buffer@^2.0.5: resolved "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz#ebc252e400d22ff8d77fa09888821a24a658c191" integrity sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ== -is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.4: +is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.1.5, is-callable@^1.2.4: version "1.2.4" resolved "https://registry.npmjs.org/is-callable/-/is-callable-1.2.4.tgz#47301d58dd0259407865547853df6d61fe471945" integrity sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w== @@ -8843,6 +11863,18 @@ is-class-hotfix@~0.0.6: resolved "https://registry.npmjs.org/is-class-hotfix/-/is-class-hotfix-0.0.6.tgz#a527d31fb23279281dde5f385c77b5de70a72435" integrity sha512-0n+pzCC6ICtVr/WXnN2f03TK/3BfXY7me4cjCAqT8TYXEl0+JBRoqBo94JJHXcyDSLUeWbNX8Fvy5g5RJdAstQ== +is-color-stop@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/is-color-stop/-/is-color-stop-1.1.0.tgz#cfff471aee4dd5c9e158598fbe12967b5cdad345" + integrity sha1-z/9HGu5N1cnhWFmPvhKWe1za00U= + dependencies: + css-color-names "^0.0.4" + hex-color-regex "^1.1.0" + hsl-regex "^1.0.0" + hsla-regex "^1.0.0" + rgb-regex "^1.0.1" + rgba-regex "^1.0.0" + is-core-module@^2.2.0, is-core-module@^2.5.0, is-core-module@^2.8.0: version "2.8.0" resolved "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.0.tgz#0321336c3d0925e497fd97f5d95cb114a5ccd548" @@ -8850,6 +11882,13 @@ is-core-module@^2.2.0, is-core-module@^2.5.0, is-core-module@^2.8.0: dependencies: has "^1.0.3" +is-core-module@^2.8.1: + version "2.9.0" + resolved "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz#e1c34429cd51c6dd9e09e0799e396e27b19a9c69" + integrity sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A== + dependencies: + has "^1.0.3" + is-data-descriptor@^0.1.4: version "0.1.4" resolved "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" @@ -8996,26 +12035,41 @@ is-installed-globally@^0.1.0: global-dirs "^0.1.0" is-path-inside "^1.0.0" -is-interactive@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e" - integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== - is-lambda@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz#3d9877899e6a53efc0160504cde15f82e6f061d5" integrity sha1-PZh3iZ5qU+/AFgUEzeFfgubwYdU= +is-module@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz#3258fb69f78c14d5b815d664336b4cffb6441591" + integrity sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE= + +is-negated-glob@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/is-negated-glob/-/is-negated-glob-1.0.0.tgz#6910bca5da8c95e784b5751b976cf5a10fee36d2" + integrity sha1-aRC8pdqMleeEtXUbl2z1oQ/uNtI= + is-negative-zero@^2.0.1: version "2.0.1" resolved "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.1.tgz#3de746c18dda2319241a53675908d8f766f11c24" integrity sha512-2z6JzQvZRa9A2Y7xC6dQQm4FSTSTNWjKIYYTt4246eMTJmIo0Q+ZyOsU66X8lxK1AbB92dFeglPLrhwpeRKO6w== +is-negative-zero@^2.0.2: + version "2.0.2" + resolved "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz#7bf6f03a28003b8b3965de3ac26f664d765f3150" + integrity sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA== + is-npm@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/is-npm/-/is-npm-1.0.0.tgz#f2fb63a65e4905b406c86072765a1a4dc793b9f4" integrity sha1-8vtjpl5JBbQGyGBydloaTceTufQ= +is-npm@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/is-npm/-/is-npm-3.0.0.tgz#ec9147bfb629c43f494cf67936a961edec7e8053" + integrity sha512-wsigDr1Kkschp2opC4G3yA6r9EgVA6NjRpWzIi9axXqeIaAATPRJc4uLujXe3Nd9uO8KoDyA4MD6aZSeXTADhA== + is-number-object@^1.0.4: version "1.0.6" resolved "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.6.tgz#6a7aaf838c7f0686a50b4553f7e54a96494e89f0" @@ -9096,7 +12150,14 @@ is-redirect@^1.0.0: resolved "https://registry.npmjs.org/is-redirect/-/is-redirect-1.0.0.tgz#1d03dded53bd8db0f30c26e4f95d36fc7c87dc24" integrity sha1-HQPd7VO9jbDzDCbk+V02/HyH3CQ= -is-regex@^1.0.4, is-regex@^1.1.4: +is-reference@^1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz#8b2dac0b371f4bc994fdeaba9eb542d03002d0b7" + integrity sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ== + dependencies: + "@types/estree" "*" + +is-regex@^1.0.4, is-regex@^1.0.5, is-regex@^1.1.0, is-regex@^1.1.4: version "1.1.4" resolved "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg== @@ -9109,6 +12170,18 @@ is-regexp@^1.0.0: resolved "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069" integrity sha1-/S2INUXEa6xaYz57mgnof6LLUGk= +is-relative@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz#a1bb6935ce8c5dba1e8b9754b9b2dcc020e2260d" + integrity sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA== + dependencies: + is-unc-path "^1.0.0" + +is-resolvable@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz#fb18f87ce1feb925169c9a407c19318a3206ed88" + integrity sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg== + is-retry-allowed@^1.0.0: version "1.2.0" resolved "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz#d778488bd0a4666a3be8a1482b9f2baafedea8b4" @@ -9119,6 +12192,13 @@ is-shared-array-buffer@^1.0.1: resolved "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.1.tgz#97b0c85fbdacb59c9c446fe653b82cf2b5b7cfe6" integrity sha512-IU0NmyknYZN0rChcKhRO1X8LYz5Isj/Fsqh8NJOSf+N/hCOTwy29F32Ik7a+QszE63IdvmwdTPDd6cZ5pg4cwA== +is-shared-array-buffer@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz#8f259c573b60b6a32d4058a1a07430c0a7344c79" + integrity sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA== + dependencies: + call-bind "^1.0.2" + is-ssh@^1.3.0: version "1.3.3" resolved "https://registry.npmjs.org/is-ssh/-/is-ssh-1.3.3.tgz#7f133285ccd7f2c2c7fc897b771b53d95a2b2c7e" @@ -9143,6 +12223,11 @@ is-string@^1.0.5, is-string@^1.0.7: dependencies: has-tostringtag "^1.0.0" +is-subset@^0.1.1: + version "0.1.1" + resolved "https://registry.npmjs.org/is-subset/-/is-subset-0.1.1.tgz#8a59117d932de1de00f245fcdd39ce43f1e939a6" + integrity sha1-ilkRfZMt4d4A8kX83TnOQ/HpOaY= + is-symbol@^1.0.2, is-symbol@^1.0.3: version "1.0.4" resolved "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz#a6dac93b635b063ca6872236de88910a57af139c" @@ -9171,16 +12256,28 @@ is-typedarray@^1.0.0, is-typedarray@~1.0.0: resolved "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= -is-unicode-supported@^0.1.0: - version "0.1.0" - resolved "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" - integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== +is-unc-path@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz#d731e8898ed090a12c352ad2eaed5095ad322c9d" + integrity sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ== + dependencies: + unc-path-regex "^0.1.2" -is-utf8@^0.2.0: +is-url@1.2.4: + version "1.2.4" + resolved "https://registry.npmjs.org/is-url/-/is-url-1.2.4.tgz#04a4df46d28c4cff3d73d01ff06abeb318a1aa52" + integrity sha512-ITvGim8FhRiYe4IQ5uHSkj7pVaPDrCTkNd3yq3cV7iZAcJdHTUMPMEHcqSOy9xZ9qFenQCvi+2wjH9a1nXqHww== + +is-utf8@^0.2.0, is-utf8@^0.2.1: version "0.2.1" resolved "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" integrity sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI= +is-valid-glob@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/is-valid-glob/-/is-valid-glob-1.0.0.tgz#29bf3eff701be2d4d315dbacc39bc39fe8f601aa" + integrity sha1-Kb8+/3Ab4tTTFdusw5vDn+j2Aao= + is-weakref@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.1.tgz#842dba4ec17fa9ac9850df2d6efbc1737274f2a2" @@ -9188,11 +12285,28 @@ is-weakref@^1.0.1: dependencies: call-bind "^1.0.0" -is-windows@^1.0.2: +is-weakref@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2" + integrity sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ== + dependencies: + call-bind "^1.0.2" + +is-what@^3.14.1: + version "3.14.1" + resolved "https://registry.npmjs.org/is-what/-/is-what-3.14.1.tgz#e1222f46ddda85dead0fd1c9df131760e77755c1" + integrity sha512-sNxgpk9793nzSs7bA6JQJGeIuRBQhAaNGG77kzYQgMkrID+lS6SlK07K5LaptscDlSaIgH+GPFzf+d75FVxozA== + +is-windows@^1.0.1, is-windows@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== +is-wsl@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d" + integrity sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0= + is-wsl@^2.1.1, is-wsl@^2.2.0: version "2.2.0" resolved "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" @@ -9200,6 +12314,11 @@ is-wsl@^2.1.1, is-wsl@^2.2.0: dependencies: is-docker "^2.0.0" +is-yarn-global@^0.3.0: + version "0.3.0" + resolved "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz#d502d3382590ea3004893746754c89139973e232" + integrity sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw== + isarray@0.0.1: version "0.0.1" resolved "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" @@ -9232,7 +12351,7 @@ isstream@~0.1.2: resolved "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" integrity sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo= -istanbul-lib-coverage@^2.0.5: +istanbul-lib-coverage@^2.0.2, istanbul-lib-coverage@^2.0.5: version "2.0.5" resolved "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.5.tgz#675f0ab69503fad4b1d849f736baaca803344f49" integrity sha512-8aXznuEPCJvGnMSRft4udDRDtb1V3pkQkMMI5LI+6HuQz5oQ4J2UFn1H82raA3qJtyOLkkwVqICBQkjnGtn5mA== @@ -9242,7 +12361,7 @@ istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: resolved "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz#189e7909d0a39fa5a3dfad5b03f71947770191d3" integrity sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw== -istanbul-lib-instrument@^3.3.0: +istanbul-lib-instrument@^3.0.1, istanbul-lib-instrument@^3.3.0: version "3.3.0" resolved "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-3.3.0.tgz#a5f63d91f0bbc0c3e479ef4c5de027335ec6d630" integrity sha512-5nnIN4vo5xQZHdXno/YDXJ0G+I3dAm4XgzfSVTPLQpj/zAV2dV6Juy0yaf10/zrJOJeHoN3fraFe+XRq2bFVZA== @@ -9276,6 +12395,15 @@ istanbul-lib-instrument@^5.0.4: istanbul-lib-coverage "^3.2.0" semver "^6.3.0" +istanbul-lib-report@^2.0.4: + version "2.0.8" + resolved "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-2.0.8.tgz#5a8113cd746d43c4889eba36ab10e7d50c9b4f33" + integrity sha512-fHBeG573EIihhAblwgxrSenp0Dby6tJMFR/HvlerBsrCTD5bkUuoNtn3gVh29ZCS824cGGBPn7Sg7cNk+2xUsQ== + dependencies: + istanbul-lib-coverage "^2.0.5" + make-dir "^2.1.0" + supports-color "^6.1.0" + istanbul-lib-report@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#7518fe52ea44de372f460a76b5ecda9ffb73d8a6" @@ -9285,6 +12413,17 @@ istanbul-lib-report@^3.0.0: make-dir "^3.0.0" supports-color "^7.1.0" +istanbul-lib-source-maps@^3.0.1: + version "3.0.6" + resolved "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-3.0.6.tgz#284997c48211752ec486253da97e3879defba8c8" + integrity sha512-R47KzMtDJH6X4/YW9XTx+jrLnZnscW4VpNN+1PViSYTejLVPWv7oov+Duf8YQSPyVRUvueQqz1TcsC6mooZTXw== + dependencies: + debug "^4.1.1" + istanbul-lib-coverage "^2.0.5" + make-dir "^2.1.0" + rimraf "^2.6.3" + source-map "^0.6.1" + istanbul-lib-source-maps@^4.0.0: version "4.0.1" resolved "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz#895f3a709fcfba34c6de5a42939022f3e4358551" @@ -9294,6 +12433,13 @@ istanbul-lib-source-maps@^4.0.0: istanbul-lib-coverage "^3.0.0" source-map "^0.6.1" +istanbul-reports@^2.2.6: + version "2.2.7" + resolved "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-2.2.7.tgz#5d939f6237d7b48393cc0959eab40cd4fd056931" + integrity sha512-uu1F/L1o5Y6LzPVSVZXNOoD/KXpJue9aeLRd0sM9uMXfZvzomB0WxVamWb5ue8kA2vVWEmW7EG+A5n3f1kqHKg== + dependencies: + html-escaper "^2.0.0" + istanbul-reports@^3.0.2: version "3.0.5" resolved "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.5.tgz#a2580107e71279ea6d661ddede929ffc6d693384" @@ -9307,6 +12453,15 @@ javascript-stringify@^2.0.1: resolved "https://registry.npmjs.org/javascript-stringify/-/javascript-stringify-2.1.0.tgz#27c76539be14d8bd128219a2d731b09337904e79" integrity sha512-JVAfqNPTvNq3sB/VHQJAFxN/sPgKnsKrCwyRt15zwNCdrMMJDdcEOdubuy+DuJYYdm0ox1J4uzEuYKkN+9yhVg== +jest-changed-files@^24.9.0: + version "24.9.0" + resolved "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-24.9.0.tgz#08d8c15eb79a7fa3fc98269bc14b451ee82f8039" + integrity sha512-6aTWpe2mHF0DhL28WjdkO8LyGjs3zItPET4bMSeXU6T3ub4FPMw+mcOcbdGXQOAfmLcxofD23/5Bl9Z4AkFwqg== + dependencies: + "@jest/types" "^24.9.0" + execa "^1.0.0" + throat "^4.0.0" + jest-changed-files@^26.6.2: version "26.6.2" resolved "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-26.6.2.tgz#f6198479e1cc66f22f9ae1e22acaa0b429c042d0" @@ -9316,6 +12471,25 @@ jest-changed-files@^26.6.2: execa "^4.0.0" throat "^5.0.0" +jest-cli@^24.8.0, jest-cli@^24.9.0: + version "24.9.0" + resolved "https://registry.npmjs.org/jest-cli/-/jest-cli-24.9.0.tgz#ad2de62d07472d419c6abc301fc432b98b10d2af" + integrity sha512-+VLRKyitT3BWoMeSUIHRxV/2g8y9gw91Jh5z2UmXZzkZKpbC08CSehVxgHUwTpy+HwGcns/tqafQDJW7imYvGg== + dependencies: + "@jest/core" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" + chalk "^2.0.1" + exit "^0.1.2" + import-local "^2.0.0" + is-ci "^2.0.0" + jest-config "^24.9.0" + jest-util "^24.9.0" + jest-validate "^24.9.0" + prompts "^2.0.1" + realpath-native "^1.1.0" + yargs "^13.3.0" + jest-cli@^26.6.3: version "26.6.3" resolved "https://registry.npmjs.org/jest-cli/-/jest-cli-26.6.3.tgz#43117cfef24bc4cd691a174a8796a532e135e92a" @@ -9349,6 +12523,29 @@ jest-codemods@^0.19.1: meow "~3.7.0" update-notifier "^2.2.0" +jest-config@^24.9.0: + version "24.9.0" + resolved "https://registry.npmjs.org/jest-config/-/jest-config-24.9.0.tgz#fb1bbc60c73a46af03590719efa4825e6e4dd1b5" + integrity sha512-RATtQJtVYQrp7fvWg6f5y3pEFj9I+H8sWw4aKxnDZ96mob5i5SD6ZEGWgMLXQ4LE8UurrjbdlLWdUeo+28QpfQ== + dependencies: + "@babel/core" "^7.1.0" + "@jest/test-sequencer" "^24.9.0" + "@jest/types" "^24.9.0" + babel-jest "^24.9.0" + chalk "^2.0.1" + glob "^7.1.1" + jest-environment-jsdom "^24.9.0" + jest-environment-node "^24.9.0" + jest-get-type "^24.9.0" + jest-jasmine2 "^24.9.0" + jest-regex-util "^24.3.0" + jest-resolve "^24.9.0" + jest-util "^24.9.0" + jest-validate "^24.9.0" + micromatch "^3.1.10" + pretty-format "^24.9.0" + realpath-native "^1.1.0" + jest-config@^26.6.3: version "26.6.3" resolved "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz#64f41444eef9eb03dc51d5c53b75c8c71f645349" @@ -9393,6 +12590,23 @@ jest-diff@^26.0.0, jest-diff@^26.6.2: jest-get-type "^26.3.0" pretty-format "^26.6.2" +jest-diff@^27.5.1: + version "27.5.1" + resolved "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz#a07f5011ac9e6643cf8a95a462b7b1ecf6680def" + integrity sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw== + dependencies: + chalk "^4.0.0" + diff-sequences "^27.5.1" + jest-get-type "^27.5.1" + pretty-format "^27.5.1" + +jest-docblock@^24.3.0: + version "24.9.0" + resolved "https://registry.npmjs.org/jest-docblock/-/jest-docblock-24.9.0.tgz#7970201802ba560e1c4092cc25cbedf5af5a8ce2" + integrity sha512-F1DjdpDMJMA1cN6He0FNYNZlo3yYmOtRUnktrT9Q37njYzC5WEaDdmbynIgy0L/IvXvvgsG8OsqhLPXTpfmZAA== + dependencies: + detect-newline "^2.1.0" + jest-docblock@^26.0.0: version "26.0.0" resolved "https://registry.npmjs.org/jest-docblock/-/jest-docblock-26.0.0.tgz#3e2fa20899fc928cb13bd0ff68bd3711a36889b5" @@ -9414,6 +12628,17 @@ jest-dom@^3.1.2: pretty-format "^24.0.0" redent "^2.0.0" +jest-each@^24.9.0: + version "24.9.0" + resolved "https://registry.npmjs.org/jest-each/-/jest-each-24.9.0.tgz#eb2da602e2a610898dbc5f1f6df3ba86b55f8b05" + integrity sha512-ONi0R4BvW45cw8s2Lrx8YgbeXL1oCQ/wIDwmsM3CqM/nlblNCPmnC3IPQlMbRFZu3wKdQ2U8BqM6lh3LJ5Bsog== + dependencies: + "@jest/types" "^24.9.0" + chalk "^2.0.1" + jest-get-type "^24.9.0" + jest-util "^24.9.0" + pretty-format "^24.9.0" + jest-each@^26.6.2: version "26.6.2" resolved "https://registry.npmjs.org/jest-each/-/jest-each-26.6.2.tgz#02526438a77a67401c8a6382dfe5999952c167cb" @@ -9425,17 +12650,17 @@ jest-each@^26.6.2: jest-util "^26.6.2" pretty-format "^26.6.2" -jest-environment-jsdom-fourteen@1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/jest-environment-jsdom-fourteen/-/jest-environment-jsdom-fourteen-1.0.1.tgz#4cd0042f58b4ab666950d96532ecb2fc188f96fb" - integrity sha512-DojMX1sY+at5Ep+O9yME34CdidZnO3/zfPh8UW+918C5fIZET5vCjfkegixmsi7AtdYfkr4bPlIzmWnlvQkP7Q== +jest-environment-jsdom@^24.9.0: + version "24.9.0" + resolved "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-24.9.0.tgz#4b0806c7fc94f95edb369a69cc2778eec2b7375b" + integrity sha512-Zv9FV9NBRzLuALXjvRijO2351DRQeLYXtpD4xNvfoVFw21IOKNhZAEUKcbiEtjTkm2GsJ3boMVgkaR7rN8qetA== dependencies: - "@jest/environment" "^24.3.0" - "@jest/fake-timers" "^24.3.0" - "@jest/types" "^24.3.0" - jest-mock "^24.0.0" - jest-util "^24.0.0" - jsdom "^14.1.0" + "@jest/environment" "^24.9.0" + "@jest/fake-timers" "^24.9.0" + "@jest/types" "^24.9.0" + jest-mock "^24.9.0" + jest-util "^24.9.0" + jsdom "^11.5.1" jest-environment-jsdom@^26.6.2: version "26.6.2" @@ -9450,6 +12675,17 @@ jest-environment-jsdom@^26.6.2: jest-util "^26.6.2" jsdom "^16.4.0" +jest-environment-node@^24.9.0: + version "24.9.0" + resolved "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-24.9.0.tgz#333d2d2796f9687f2aeebf0742b519f33c1cbfd3" + integrity sha512-6d4V2f4nxzIzwendo27Tr0aFm+IXWa0XEUnaH6nU0FMaozxovt+sfRvh4J47wL1OvF83I3SSTu0XK+i4Bqe7uA== + dependencies: + "@jest/environment" "^24.9.0" + "@jest/fake-timers" "^24.9.0" + "@jest/types" "^24.9.0" + jest-mock "^24.9.0" + jest-util "^24.9.0" + jest-environment-node@^26.6.2: version "26.6.2" resolved "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-26.6.2.tgz#824e4c7fb4944646356f11ac75b229b0035f2b0c" @@ -9472,6 +12708,11 @@ jest-get-type@^26.3.0: resolved "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz#e97dc3c3f53c2b406ca7afaed4493b1d099199e0" integrity sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig== +jest-get-type@^27.5.1: + version "27.5.1" + resolved "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz#3cd613c507b0f7ace013df407a1c1cd578bcb4f1" + integrity sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw== + jest-haste-map@^24.9.0: version "24.9.0" resolved "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-24.9.0.tgz#b38a5d64274934e21fa417ae9a9fbeb77ceaac7d" @@ -9512,6 +12753,28 @@ jest-haste-map@^26.6.2: optionalDependencies: fsevents "^2.1.2" +jest-jasmine2@^24.9.0: + version "24.9.0" + resolved "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-24.9.0.tgz#1f7b1bd3242c1774e62acabb3646d96afc3be6a0" + integrity sha512-Cq7vkAgaYKp+PsX+2/JbTarrk0DmNhsEtqBXNwUHkdlbrTBLtMJINADf2mf5FkowNsq8evbPc07/qFO0AdKTzw== + dependencies: + "@babel/traverse" "^7.1.0" + "@jest/environment" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" + chalk "^2.0.1" + co "^4.6.0" + expect "^24.9.0" + is-generator-fn "^2.0.0" + jest-each "^24.9.0" + jest-matcher-utils "^24.9.0" + jest-message-util "^24.9.0" + jest-runtime "^24.9.0" + jest-snapshot "^24.9.0" + jest-util "^24.9.0" + pretty-format "^24.9.0" + throat "^4.0.0" + jest-jasmine2@^26.6.3: version "26.6.3" resolved "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-26.6.3.tgz#adc3cf915deacb5212c93b9f3547cd12958f2edd" @@ -9536,6 +12799,14 @@ jest-jasmine2@^26.6.3: pretty-format "^26.6.2" throat "^5.0.0" +jest-leak-detector@^24.9.0: + version "24.9.0" + resolved "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-24.9.0.tgz#b665dea7c77100c5c4f7dfcb153b65cf07dcf96a" + integrity sha512-tYkFIDsiKTGwb2FG1w8hX9V0aUb2ot8zY/2nFg087dUageonw1zrLMP4W6zsRO59dPkTSKie+D4rhMuP9nRmrA== + dependencies: + jest-get-type "^24.9.0" + pretty-format "^24.9.0" + jest-leak-detector@^26.6.2: version "26.6.2" resolved "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz#7717cf118b92238f2eba65054c8a0c9c653a91af" @@ -9549,7 +12820,7 @@ jest-localstorage-mock@^2.3.0: resolved "https://registry.npmjs.org/jest-localstorage-mock/-/jest-localstorage-mock-2.4.18.tgz#6cf5f84fdc5d8e279f2b45a9417bac1d4fc765d6" integrity sha512-zQTrtPeyGXvqM9Vw8nYd39Z0YAD2SK2hptyxLLaR/Ci5X72pcPBaiTDTfTeNq8FOuH/aVUSp8jhJUeFHMhuNeg== -jest-matcher-utils@^24.0.0: +jest-matcher-utils@^24.0.0, jest-matcher-utils@^24.9.0: version "24.9.0" resolved "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-24.9.0.tgz#f5b3661d5e628dffe6dd65251dfdae0e87c3a073" integrity sha512-OZz2IXsu6eaiMAwe67c1T+5tUAtQyQx27/EMEkbFAGiw52tB9em+uGbzpcgYVpA8wl0hlxKPZxrly4CXU/GjHA== @@ -9569,6 +12840,16 @@ jest-matcher-utils@^26.6.2: jest-get-type "^26.3.0" pretty-format "^26.6.2" +jest-matcher-utils@^27.0.0: + version "27.5.1" + resolved "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz#9c0cdbda8245bc22d2331729d1091308b40cf8ab" + integrity sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw== + dependencies: + chalk "^4.0.0" + jest-diff "^27.5.1" + jest-get-type "^27.5.1" + pretty-format "^27.5.1" + jest-message-util@^24.9.0: version "24.9.0" resolved "https://registry.npmjs.org/jest-message-util/-/jest-message-util-24.9.0.tgz#527f54a1e380f5e202a8d1149b0ec872f43119e3" @@ -9598,7 +12879,7 @@ jest-message-util@^26.6.2: slash "^3.0.0" stack-utils "^2.0.2" -jest-mock@^24.0.0, jest-mock@^24.9.0: +jest-mock@^24.9.0: version "24.9.0" resolved "https://registry.npmjs.org/jest-mock/-/jest-mock-24.9.0.tgz#c22835541ee379b908673ad51087a2185c13f1c6" integrity sha512-3BEYN5WbSq9wd+SyLDES7AHnjH9A/ROBwmz7l2y+ol+NtSFO8DYiEBzoO1CeFc9a8DYy10EO4dDFVv/wN3zl1w== @@ -9613,12 +12894,12 @@ jest-mock@^26.6.2: "@jest/types" "^26.6.2" "@types/node" "*" -jest-pnp-resolver@^1.2.2: +jest-pnp-resolver@^1.2.0, jest-pnp-resolver@^1.2.1, jest-pnp-resolver@^1.2.2: version "1.2.2" resolved "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz#b704ac0ae028a89108a4d040b3f919dfddc8e33c" integrity sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w== -jest-regex-util@^24.9.0: +jest-regex-util@^24.3.0, jest-regex-util@^24.9.0: version "24.9.0" resolved "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-24.9.0.tgz#c13fb3380bde22bf6575432c493ea8fe37965636" integrity sha512-05Cmb6CuxaA+Ys6fjr3PhvV3bGQmO+2p2La4hFbU+W5uOc479f7FdLXUWXw4pYMAhhSZIuKHwSXSu6CsSBAXQA== @@ -9628,6 +12909,15 @@ jest-regex-util@^26.0.0: resolved "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-26.0.0.tgz#d25e7184b36e39fd466c3bc41be0971e821fee28" integrity sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A== +jest-resolve-dependencies@^24.9.0: + version "24.9.0" + resolved "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-24.9.0.tgz#ad055198959c4cfba8a4f066c673a3f0786507ab" + integrity sha512-Fm7b6AlWnYhT0BXy4hXpactHIqER7erNgIsIozDXWl5dVm+k8XdGVe1oTg1JyaFnOxarMEbax3wyRJqGP2Pq+g== + dependencies: + "@jest/types" "^24.9.0" + jest-regex-util "^24.3.0" + jest-snapshot "^24.9.0" + jest-resolve-dependencies@^26.6.3: version "26.6.3" resolved "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-26.6.3.tgz#6680859ee5d22ee5dcd961fe4871f59f4c784fb6" @@ -9637,6 +12927,17 @@ jest-resolve-dependencies@^26.6.3: jest-regex-util "^26.0.0" jest-snapshot "^26.6.2" +jest-resolve@^24.8.0, jest-resolve@^24.9.0: + version "24.9.0" + resolved "https://registry.npmjs.org/jest-resolve/-/jest-resolve-24.9.0.tgz#dff04c7687af34c4dd7e524892d9cf77e5d17321" + integrity sha512-TaLeLVL1l08YFZAt3zaPtjiVvyy4oSA6CRe+0AFPPVX3Q/VI0giIWWoAvoS5L96vj9Dqxj4fB5p2qrHCmTU/MQ== + dependencies: + "@jest/types" "^24.9.0" + browser-resolve "^1.11.3" + chalk "^2.0.1" + jest-pnp-resolver "^1.2.1" + realpath-native "^1.1.0" + jest-resolve@^26.6.2: version "26.6.2" resolved "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.6.2.tgz#a3ab1517217f469b504f1b56603c5bb541fbb507" @@ -9651,6 +12952,31 @@ jest-resolve@^26.6.2: resolve "^1.18.1" slash "^3.0.0" +jest-runner@^24.9.0: + version "24.9.0" + resolved "https://registry.npmjs.org/jest-runner/-/jest-runner-24.9.0.tgz#574fafdbd54455c2b34b4bdf4365a23857fcdf42" + integrity sha512-KksJQyI3/0mhcfspnxxEOBueGrd5E4vV7ADQLT9ESaCzz02WnbdbKWIf5Mkaucoaj7obQckYPVX6JJhgUcoWWg== + dependencies: + "@jest/console" "^24.7.1" + "@jest/environment" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" + chalk "^2.4.2" + exit "^0.1.2" + graceful-fs "^4.1.15" + jest-config "^24.9.0" + jest-docblock "^24.3.0" + jest-haste-map "^24.9.0" + jest-jasmine2 "^24.9.0" + jest-leak-detector "^24.9.0" + jest-message-util "^24.9.0" + jest-resolve "^24.9.0" + jest-runtime "^24.9.0" + jest-util "^24.9.0" + jest-worker "^24.6.0" + source-map-support "^0.5.6" + throat "^4.0.0" + jest-runner@^26.6.3: version "26.6.3" resolved "https://registry.npmjs.org/jest-runner/-/jest-runner-26.6.3.tgz#2d1fed3d46e10f233fd1dbd3bfaa3fe8924be159" @@ -9677,6 +13003,35 @@ jest-runner@^26.6.3: source-map-support "^0.5.6" throat "^5.0.0" +jest-runtime@^24.9.0: + version "24.9.0" + resolved "https://registry.npmjs.org/jest-runtime/-/jest-runtime-24.9.0.tgz#9f14583af6a4f7314a6a9d9f0226e1a781c8e4ac" + integrity sha512-8oNqgnmF3v2J6PVRM2Jfuj8oX3syKmaynlDMMKQ4iyzbQzIG6th5ub/lM2bCMTmoTKM3ykcUYI2Pw9xwNtjMnw== + dependencies: + "@jest/console" "^24.7.1" + "@jest/environment" "^24.9.0" + "@jest/source-map" "^24.3.0" + "@jest/transform" "^24.9.0" + "@jest/types" "^24.9.0" + "@types/yargs" "^13.0.0" + chalk "^2.0.1" + exit "^0.1.2" + glob "^7.1.3" + graceful-fs "^4.1.15" + jest-config "^24.9.0" + jest-haste-map "^24.9.0" + jest-message-util "^24.9.0" + jest-mock "^24.9.0" + jest-regex-util "^24.3.0" + jest-resolve "^24.9.0" + jest-snapshot "^24.9.0" + jest-util "^24.9.0" + jest-validate "^24.9.0" + realpath-native "^1.1.0" + slash "^2.0.0" + strip-bom "^3.0.0" + yargs "^13.3.0" + jest-runtime@^26.6.3: version "26.6.3" resolved "https://registry.npmjs.org/jest-runtime/-/jest-runtime-26.6.3.tgz#4f64efbcfac398331b74b4b3c82d27d401b8fa2b" @@ -9723,6 +13078,25 @@ jest-serializer@^26.6.2: "@types/node" "*" graceful-fs "^4.2.4" +jest-snapshot@^24.9.0: + version "24.9.0" + resolved "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-24.9.0.tgz#ec8e9ca4f2ec0c5c87ae8f925cf97497b0e951ba" + integrity sha512-uI/rszGSs73xCM0l+up7O7a40o90cnrk429LOiK3aeTvfC0HHmldbd81/B7Ix81KSFe1lwkbl7GnBGG4UfuDew== + dependencies: + "@babel/types" "^7.0.0" + "@jest/types" "^24.9.0" + chalk "^2.0.1" + expect "^24.9.0" + jest-diff "^24.9.0" + jest-get-type "^24.9.0" + jest-matcher-utils "^24.9.0" + jest-message-util "^24.9.0" + jest-resolve "^24.9.0" + mkdirp "^0.5.1" + natural-compare "^1.4.0" + pretty-format "^24.9.0" + semver "^6.2.0" + jest-snapshot@^26.6.2: version "26.6.2" resolved "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-26.6.2.tgz#f3b0af1acb223316850bd14e1beea9837fb39c84" @@ -9752,7 +13126,7 @@ jest-styled-components@6.3.3: dependencies: css "^2.2.4" -jest-util@^24.0.0, jest-util@^24.9.0: +jest-util@^24.9.0: version "24.9.0" resolved "https://registry.npmjs.org/jest-util/-/jest-util-24.9.0.tgz#7396814e48536d2e85a37de3e4c431d7cb140162" integrity sha512-x+cZU8VRmOJxbA1K5oDBdxQmdq0OIdADarLxk0Mq+3XS4jgvhG/oKGWcIDCtPG0HgjxOYvF+ilPJQsAyXfbNOg== @@ -9782,6 +13156,18 @@ jest-util@^26.1.0, jest-util@^26.6.2: is-ci "^2.0.0" micromatch "^4.0.2" +jest-validate@^24.9.0: + version "24.9.0" + resolved "https://registry.npmjs.org/jest-validate/-/jest-validate-24.9.0.tgz#0775c55360d173cd854e40180756d4ff52def8ab" + integrity sha512-HPIt6C5ACwiqSiwi+OfSSHbK8sG7akG8eATl+IPKaeIjtPOeBUd/g3J7DghugzxrGjI93qS/+RPKe1H6PqvhRQ== + dependencies: + "@jest/types" "^24.9.0" + camelcase "^5.3.1" + chalk "^2.0.1" + jest-get-type "^24.9.0" + leven "^3.1.0" + pretty-format "^24.9.0" + jest-validate@^26.6.2: version "26.6.2" resolved "https://registry.npmjs.org/jest-validate/-/jest-validate-26.6.2.tgz#23d380971587150467342911c3d7b4ac57ab20ec" @@ -9812,6 +13198,19 @@ jest-watch-lerna-packages@^1.1.0: dependencies: jest-watch-directories "1.1.0" +jest-watcher@^24.9.0: + version "24.9.0" + resolved "https://registry.npmjs.org/jest-watcher/-/jest-watcher-24.9.0.tgz#4b56e5d1ceff005f5b88e528dc9afc8dd4ed2b3b" + integrity sha512-+/fLOfKPXXYJDYlks62/4R4GoT+GU1tYZed99JSCOsmzkkF7727RqKrjNAxtfO4YpGv11wybgRvCjR73lK2GZw== + dependencies: + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" + "@types/yargs" "^13.0.0" + ansi-escapes "^3.0.0" + chalk "^2.0.1" + jest-util "^24.9.0" + string-length "^2.0.0" + jest-watcher@^26.6.2: version "26.6.2" resolved "https://registry.npmjs.org/jest-watcher/-/jest-watcher-26.6.2.tgz#a5b683b8f9d68dbcb1d7dae32172d2cca0592975" @@ -9825,7 +13224,7 @@ jest-watcher@^26.6.2: jest-util "^26.6.2" string-length "^4.0.1" -jest-worker@24.9.0, jest-worker@^24.9.0: +jest-worker@24.9.0, jest-worker@^24.6.0, jest-worker@^24.9.0: version "24.9.0" resolved "https://registry.npmjs.org/jest-worker/-/jest-worker-24.9.0.tgz#5dbfdb5b2d322e98567898238a9697bcce67b3e5" integrity sha512-51PE4haMSXcHohnSMdM42anbvZANYTqMrr52tVKPqqsPJMzoP6FYYDVqahX/HrAoKEKz3uUPzSvKs9A3qR4iVw== @@ -9833,7 +13232,7 @@ jest-worker@24.9.0, jest-worker@^24.9.0: merge-stream "^2.0.0" supports-color "^6.1.0" -jest-worker@26.6.2, jest-worker@^26.6.2: +jest-worker@26.6.2, jest-worker@^26.2.1, jest-worker@^26.6.2: version "26.6.2" resolved "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed" integrity sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ== @@ -9842,7 +13241,15 @@ jest-worker@26.6.2, jest-worker@^26.6.2: merge-stream "^2.0.0" supports-color "^7.0.0" -jest@^26.0.0, jest@^26.6.3: +jest@^24.8.0: + version "24.9.0" + resolved "https://registry.npmjs.org/jest/-/jest-24.9.0.tgz#987d290c05a08b52c56188c1002e368edb007171" + integrity sha512-YvkBL1Zm7d2B1+h5fHEOdyjCG+sGMz4f8D86/0HiqJ6MB4MnDc8FgP5vdWsGnemOQro7lnYo8UakZ3+5A0jxGw== + dependencies: + import-local "^2.0.0" + jest-cli "^24.9.0" + +jest@^26.0.0: version "26.6.3" resolved "https://registry.npmjs.org/jest/-/jest-26.6.3.tgz#40e8fdbe48f00dfa1f0ce8121ca74b88ac9148ef" integrity sha512-lGS5PXGAzR4RF7V5+XObhqz2KZIDUA1yD0DG6pBVmy10eh0ZIXQImRuzocsI/N2XZ1GrLFwTS27In2i2jlpq1Q== @@ -9876,6 +13283,11 @@ js-git@^0.7.8: git-sha1 "^0.1.2" pako "^0.2.5" +js-levenshtein@^1.1.3: + version "1.1.6" + resolved "https://registry.npmjs.org/js-levenshtein/-/js-levenshtein-1.1.6.tgz#c6cee58eb3550372df8deb85fad5ce66ce01d59d" + integrity sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g== + "js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" @@ -9918,36 +13330,36 @@ jscodeshift@^0.6.2: temp "^0.8.1" write-file-atomic "^2.3.0" -jsdom@^14.1.0: - version "14.1.0" - resolved "https://registry.npmjs.org/jsdom/-/jsdom-14.1.0.tgz#916463b6094956b0a6c1782c94e380cd30e1981b" - integrity sha512-O901mfJSuTdwU2w3Sn+74T+RnDVP+FuV5fH8tcPWyqrseRAb0s5xOtPgCFiPOtLcyK7CLIJwPyD83ZqQWvA5ng== +jsdom@^11.5.1: + version "11.12.0" + resolved "https://registry.npmjs.org/jsdom/-/jsdom-11.12.0.tgz#1a80d40ddd378a1de59656e9e6dc5a3ba8657bc8" + integrity sha512-y8Px43oyiBM13Zc1z780FrfNLJCXTL40EWlty/LXUtcjykRBNgLlCjWXpfSPBl2iv+N7koQN+dvqszHZgT/Fjw== dependencies: abab "^2.0.0" - acorn "^6.0.4" - acorn-globals "^4.3.0" + acorn "^5.5.3" + acorn-globals "^4.1.0" array-equal "^1.0.0" - cssom "^0.3.4" - cssstyle "^1.1.1" - data-urls "^1.1.0" + cssom ">= 0.3.2 < 0.4.0" + cssstyle "^1.0.0" + data-urls "^1.0.0" domexception "^1.0.1" - escodegen "^1.11.0" + escodegen "^1.9.1" html-encoding-sniffer "^1.0.2" - nwsapi "^2.1.3" - parse5 "5.1.0" + left-pad "^1.3.0" + nwsapi "^2.0.7" + parse5 "4.0.0" pn "^1.1.0" - request "^2.88.0" + request "^2.87.0" request-promise-native "^1.0.5" - saxes "^3.1.9" + sax "^1.2.4" symbol-tree "^3.2.2" - tough-cookie "^2.5.0" + tough-cookie "^2.3.4" w3c-hr-time "^1.0.1" - w3c-xmlserializer "^1.1.2" webidl-conversions "^4.0.2" - whatwg-encoding "^1.0.5" - whatwg-mimetype "^2.3.0" - whatwg-url "^7.0.0" - ws "^6.1.2" + whatwg-encoding "^1.0.3" + whatwg-mimetype "^2.1.0" + whatwg-url "^6.4.1" + ws "^5.2.0" xml-name-validator "^3.0.0" jsdom@^16.0.0, jsdom@^16.4.0: @@ -9993,6 +13405,11 @@ jsesc@~0.5.0: resolved "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" integrity sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0= +json-buffer@3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz#5b1f397afc75d677bde8bcfc0e47e1f9a3d9a898" + integrity sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg= + json-parse-better-errors@^1.0.1: version "1.0.2" resolved "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" @@ -10050,6 +13467,11 @@ json5@2.x, json5@^2.1.2: dependencies: minimist "^1.2.5" +json5@^0.5.1: + version "0.5.1" + resolved "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" + integrity sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE= + json5@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe" @@ -10057,6 +13479,11 @@ json5@^1.0.1: dependencies: minimist "^1.2.0" +json5@^2.1.0, json5@^2.2.1: + version "2.2.1" + resolved "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c" + integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA== + jsonfile@^4.0.0: version "4.0.0" resolved "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" @@ -10153,6 +13580,18 @@ keygrip@~1.1.0: dependencies: tsscmp "1.0.6" +keyv@^3.0.0: + version "3.1.0" + resolved "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz#ecc228486f69991e49e9476485a5be1e8fc5c4d9" + integrity sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA== + dependencies: + json-buffer "3.0.0" + +kind-of@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/kind-of/-/kind-of-1.1.0.tgz#140a3d2d41a36d2efcfa9377b62c24f8495a5c44" + integrity sha1-FAo9LUGjbS78+pN3tiwk+ElaXEQ= + kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: version "3.2.2" resolved "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" @@ -10263,11 +13702,42 @@ latest-version@^3.0.0: dependencies: package-json "^4.0.0" +latest-version@^5.0.0: + version "5.1.0" + resolved "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz#119dfe908fe38d15dfa43ecd13fa12ec8832face" + integrity sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA== + dependencies: + package-json "^6.3.0" + +lazy-cache@^1.0.3: + version "1.0.4" + resolved "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" + integrity sha1-odePw6UEdMuAhF07O24dpJpEbo4= + lazy@~1.0.11: version "1.0.11" resolved "https://registry.npmjs.org/lazy/-/lazy-1.0.11.tgz#daa068206282542c088288e975c297c1ae77b690" integrity sha1-2qBoIGKCVCwIgojpdcKXwa53tpA= +lazystream@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz#494c831062f1f9408251ec44db1cba29242a2638" + integrity sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw== + dependencies: + readable-stream "^2.0.5" + +lead@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/lead/-/lead-1.0.0.tgz#6f14f99a37be3a9dd784f5495690e5903466ee42" + integrity sha1-bxT5mje+Op3XhPVJVpDlkDRm7kI= + dependencies: + flush-write-stream "^1.0.2" + +left-pad@^1.3.0: + version "1.3.0" + resolved "https://registry.npmjs.org/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e" + integrity sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA== + lerna@^4.0.0: version "4.0.0" resolved "https://registry.npmjs.org/lerna/-/lerna-4.0.0.tgz#b139d685d50ea0ca1be87713a7c2f44a5b678e9e" @@ -10292,6 +13762,46 @@ lerna@^4.0.0: import-local "^3.0.2" npmlog "^4.1.2" +less-plugin-npm-import@2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/less-plugin-npm-import/-/less-plugin-npm-import-2.1.0.tgz#823e6986c93318a98171ca858848b6bead55bf3e" + integrity sha1-gj5phskzGKmBccqFiEi2vq1Vvz4= + dependencies: + promise "~7.0.1" + resolve "~1.1.6" + +"less@2.6.x || ^3.7.1": + version "3.13.1" + resolved "https://registry.npmjs.org/less/-/less-3.13.1.tgz#0ebc91d2a0e9c0c6735b83d496b0ab0583077909" + integrity sha512-SwA1aQXGUvp+P5XdZslUOhhLnClSLIjWvJhmd+Vgib5BFIr9lMNlQwmwUNOjXThF/A0x+MCYYPeWEfeWiLRnTw== + dependencies: + copy-anything "^2.0.1" + tslib "^1.10.0" + optionalDependencies: + errno "^0.1.1" + graceful-fs "^4.1.2" + image-size "~0.5.0" + make-dir "^2.1.0" + mime "^1.4.1" + native-request "^1.0.5" + source-map "~0.6.0" + +less@3.9.0: + version "3.9.0" + resolved "https://registry.npmjs.org/less/-/less-3.9.0.tgz#b7511c43f37cf57dc87dffd9883ec121289b1474" + integrity sha512-31CmtPEZraNUtuUREYjSqRkeETFdyEHSEPAGq4erDlUXtda7pzNmctdljdIagSb589d/qXGWiiP31R5JVf+v0w== + dependencies: + clone "^2.1.2" + optionalDependencies: + errno "^0.1.1" + graceful-fs "^4.1.2" + image-size "~0.5.0" + mime "^1.4.1" + mkdirp "^0.5.0" + promise "^7.1.1" + request "^2.83.0" + source-map "~0.6.0" + leven@^3.1.0: version "3.1.0" resolved "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" @@ -10379,6 +13889,15 @@ loader-utils@^1.0.2, loader-utils@^1.1.0: emojis-list "^3.0.0" json5 "^1.0.1" +loader-utils@^2.0.0: + version "2.0.2" + resolved "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.2.tgz#d6e3b4fb81870721ae4e0868ab11dd638368c129" + integrity sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A== + dependencies: + big.js "^5.2.2" + emojis-list "^3.0.0" + json5 "^2.1.2" + locate-path@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" @@ -10424,6 +13943,11 @@ lodash._reinterpolate@^3.0.0: resolved "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d" integrity sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0= +lodash.camelcase@^4.3.0: + version "4.3.0" + resolved "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6" + integrity sha1-soqmKIorn8ZRA1x3EfZathkDMaY= + lodash.clone@4.3.2: version "4.3.2" resolved "https://registry.npmjs.org/lodash.clone/-/lodash.clone-4.3.2.tgz#e56b176b6823a7dde38f7f2bf58de7d5971200e9" @@ -10431,7 +13955,7 @@ lodash.clone@4.3.2: dependencies: lodash._baseclone "~4.5.0" -lodash.clone@4.5.0: +lodash.clone@4.5.0, lodash.clone@^4.3.2: version "4.5.0" resolved "https://registry.npmjs.org/lodash.clone/-/lodash.clone-4.5.0.tgz#195870450f5a13192478df4bc3d23d2dea1907b6" integrity sha1-GVhwRQ9aExkkeN9Lw9I9LeoZB7Y= @@ -10441,6 +13965,26 @@ lodash.debounce@^4.0.8: resolved "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168= +lodash.defaults@^4.0.1: + version "4.2.0" + resolved "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz#d09178716ffea4dde9e5fb7b37f6f0802274580c" + integrity sha1-0JF4cW/+pN3p5ft7N/bwgCJ0WAw= + +lodash.escape@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/lodash.escape/-/lodash.escape-4.0.1.tgz#c9044690c21e04294beaa517712fded1fa88de98" + integrity sha1-yQRGkMIeBClL6qUXcS/e0fqI3pg= + +lodash.flatten@^4.2.0: + version "4.4.0" + resolved "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz#f31c22225a9632d2bbf8e4addbef240aa765a61f" + integrity sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8= + +lodash.flattendeep@^4.4.0: + version "4.4.0" + resolved "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz#fb030917f86a3134e5bc9bec0d69e0013ddfedb2" + integrity sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI= + lodash.includes@^4.3.0: version "4.3.0" resolved "https://registry.npmmirror.com/lodash.includes/-/lodash.includes-4.3.0.tgz#60bb98a87cb923c68ca1e51325483314849f553f" @@ -10451,6 +13995,11 @@ lodash.isboolean@^3.0.3: resolved "https://registry.npmmirror.com/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz#6c2e171db2a257cd96802fd43b01b20d5f5870f6" integrity sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg== +lodash.isequal@^4.5.0: + version "4.5.0" + resolved "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0" + integrity sha1-QVxEePK8wwEgwizhDtMib30+GOA= + lodash.isinteger@^4.0.4: version "4.0.4" resolved "https://registry.npmmirror.com/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz#619c0af3d03f8b04c31f5882840b77b11cd68343" @@ -10476,7 +14025,12 @@ lodash.isstring@^4.0.1: resolved "https://registry.npmmirror.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451" integrity sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw== -lodash.merge@^4.6.2: +lodash.memoize@^4.1.2: + version "4.1.2" + resolved "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" + integrity sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4= + +lodash.merge@^4.4.0, lodash.merge@^4.6.2: version "4.6.2" resolved "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== @@ -10486,6 +14040,16 @@ lodash.once@^4.0.0: resolved "https://registry.npmmirror.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac" integrity sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg== +lodash.partialright@^4.1.4: + version "4.2.1" + resolved "https://registry.npmjs.org/lodash.partialright/-/lodash.partialright-4.2.1.tgz#0130d80e83363264d40074f329b8a3e7a8a1cc4b" + integrity sha1-ATDYDoM2MmTUAHTzKbij56ihzEs= + +lodash.pick@^4.2.1: + version "4.4.0" + resolved "https://registry.npmjs.org/lodash.pick/-/lodash.pick-4.4.0.tgz#52f05610fff9ded422611441ed1fc123a03001b3" + integrity sha1-UvBWEP/53tQiYRRB7R/BI6AwAbM= + lodash.sortby@^4.7.0: version "4.7.0" resolved "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" @@ -10516,7 +14080,12 @@ lodash.truncate@^4.4.2: resolved "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" integrity sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM= -lodash@4.x, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.4, lodash@^4.7.0: +lodash.uniq@^4.3.0, lodash.uniq@^4.5.0: + version "4.5.0" + resolved "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" + integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M= + +lodash@4.17.21, lodash@4.x, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.4, lodash@^4.7.0: version "4.17.21" resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== @@ -10526,14 +14095,6 @@ log-driver@^1.2.7: resolved "https://registry.npmjs.org/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8" integrity sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg== -log-symbols@^4.1.0: - version "4.1.0" - resolved "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" - integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== - dependencies: - chalk "^4.1.0" - is-unicode-supported "^0.1.0" - long@^4.0.0: version "4.0.0" resolved "https://registry.npmjs.org/long/-/long-4.0.0.tgz#9a7b71cfb7d361a194ea555241c92f7468d5bf28" @@ -10544,6 +14105,11 @@ longest-streak@^2.0.0: resolved "https://registry.npmjs.org/longest-streak/-/longest-streak-2.0.4.tgz#b8599957da5b5dab64dee3fe316fa774597d90e4" integrity sha512-vM6rUVCVUJJt33bnmHiZEvr7wPT78ztX7rojL+LW51bHtLh6HTjx84LA5W4+oa6aKEJA7jJu5LR6vQRBpA5DVg== +longest@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" + integrity sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc= + loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.2.0, loose-envify@^1.3.1, loose-envify@^1.4.0: version "1.4.0" resolved "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" @@ -10566,11 +14132,16 @@ lower-case@^2.0.1, lower-case@^2.0.2: dependencies: tslib "^2.0.3" -lowercase-keys@^1.0.0: +lowercase-keys@^1.0.0, lowercase-keys@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f" integrity sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA== +lowercase-keys@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz#2603e78b7b4b0006cbca2fbcc8a3202558ac9479" + integrity sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA== + lru-cache@^4.0.0, lru-cache@^4.0.1, lru-cache@^4.1.3: version "4.1.5" resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz#8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd" @@ -10598,6 +14169,13 @@ lz-string@^1.4.4: resolved "https://registry.npmjs.org/lz-string/-/lz-string-1.4.4.tgz#c0d8eaf36059f705796e1e344811cf4c498d3a26" integrity sha1-wNjq82BZ9wV5bh40SBHPTEmNOiY= +magic-string@^0.25.2, magic-string@^0.25.5, magic-string@^0.25.7: + version "0.25.9" + resolved "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz#de7f9faf91ef8a1c91d02c2e5314c8277dbcdd1c" + integrity sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ== + dependencies: + sourcemap-codec "^1.4.8" + make-dir@^1.0.0: version "1.3.0" resolved "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c" @@ -10613,7 +14191,7 @@ make-dir@^2.0.0, make-dir@^2.1.0: pify "^4.0.1" semver "^5.6.0" -make-dir@^3.0.0: +make-dir@^3.0.0, make-dir@^3.0.2, make-dir@^3.1.0: version "3.1.0" resolved "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== @@ -10646,7 +14224,7 @@ make-fetch-happen@^8.0.9: socks-proxy-agent "^5.0.0" ssri "^8.0.0" -make-fetch-happen@^9.0.1: +make-fetch-happen@^9.0.1, make-fetch-happen@^9.1.0: version "9.1.0" resolved "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-9.1.0.tgz#53085a09e7971433e6765f7971bf63f4e05cb968" integrity sha512-+zopwDy7DNknmwPQplem5lAZX/eCOzSvSNNcSKm5eVwTkOBzoktEfXsa9L23J/GIRhxRsaxzkPEhrJEpE2F4Gg== @@ -10856,6 +14434,16 @@ mdast-util-to-string@^2.0.0: resolved "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-2.0.0.tgz#b8cfe6a713e1091cb5b728fc48885a4767f8b97b" integrity sha512-AW4DRS3QbBayY/jJmD8437V1Gombjf8RSOUCMFBuo5iHi58AGEgVCKQ+ezHkZZDpAQS75hcBMpLqjpJTjtUL7w== +mdn-data@2.0.14: + version "2.0.14" + resolved "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz#7113fc4281917d63ce29b43446f701e68c25ba50" + integrity sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow== + +mdn-data@2.0.4: + version "2.0.4" + resolved "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.4.tgz#699b3c38ac6f1d728091a64650b65d388502fd5b" + integrity sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA== + mdurl@^1.0.0: version "1.0.1" resolved "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz#fe85b2ec75a59037f2adfec100fd6c601761152e" @@ -10922,6 +14510,13 @@ merge-descriptors@^1.0.1: resolved "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" integrity sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E= +merge-stream@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/merge-stream/-/merge-stream-1.0.1.tgz#4041202d508a342ba00174008df0c251b8c135e1" + integrity sha1-QEEgLVCKNCugAXQAjfDCUbjBNeE= + dependencies: + readable-stream "^2.0.1" + merge-stream@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" @@ -11069,6 +14664,16 @@ mime-db@1.51.0: resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz#d9ff62451859b18342d960850dc3cfb77e63fb0c" integrity sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g== +mime-db@1.52.0, "mime-db@>= 1.43.0 < 2": + version "1.52.0" + resolved "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + +mime-db@~1.33.0: + version "1.33.0" + resolved "https://registry.npmmirror.com/mime-db/-/mime-db-1.33.0.tgz#a3492050a5cb9b63450541e39d9788d2272783db" + integrity sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ== + mime-match@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/mime-match/-/mime-match-1.0.2.tgz#3f87c31e9af1a5fd485fb9db134428b23bbb7ba8" @@ -11076,6 +14681,13 @@ mime-match@^1.0.2: dependencies: wildcard "^1.1.0" +mime-types@2.1.18: + version "2.1.18" + resolved "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.18.tgz#6f323f60a83d11146f831ff11fd66e2fe5503bb8" + integrity sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ== + dependencies: + mime-db "~1.33.0" + mime-types@^2.1.12, mime-types@^2.1.18, mime-types@~2.1.19, mime-types@~2.1.24: version "2.1.34" resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz#5a712f9ec1503511a945803640fafe09d3793c24" @@ -11083,12 +14695,24 @@ mime-types@^2.1.12, mime-types@^2.1.18, mime-types@~2.1.19, mime-types@~2.1.24: dependencies: mime-db "1.51.0" +mime-types@~2.1.34: + version "2.1.35" + resolved "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + mime@1.3.6: version "1.3.6" resolved "https://registry.npmjs.org/mime/-/mime-1.3.6.tgz#591d84d3653a6b0b4a3b9df8de5aa8108e72e5e0" integrity sha1-WR2E02U6awtKO5343lqoEI5y5eA= -mime@^2.4.5, mime@^2.4.6, mime@^2.5.2: +mime@^1.4.1: + version "1.6.0" + resolved "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" + integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== + +mime@^2.4.4, mime@^2.4.5, mime@^2.4.6, mime@^2.5.2: version "2.6.0" resolved "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz#a2a682a95cd4d0cb1d6257e28f83da7e35800367" integrity sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg== @@ -11103,6 +14727,11 @@ mimic-fn@^2.1.0: resolved "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== +mimic-response@^1.0.0, mimic-response@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b" + integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ== + min-indent@^1.0.0: version "1.0.1" resolved "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869" @@ -11126,13 +14755,20 @@ minimalistic-crypto-utils@^1.0.1: resolved "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo= -minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4: +minimatch@3.0.4, minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4: version "3.0.4" resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== dependencies: brace-expansion "^1.1.7" +minimatch@^3.0.3: + version "3.1.2" + resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== + dependencies: + brace-expansion "^1.1.7" + minimist-options@4.1.0: version "4.1.0" resolved "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz#c0655713c53a8a2ebd77ffa247d342c40f010619" @@ -11256,14 +14892,14 @@ mkdirp@1.0.4, mkdirp@1.x, mkdirp@^1.0.3, mkdirp@^1.0.4: resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== -"mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@^0.5.4, mkdirp@^0.5.5: +mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@^0.5.4, mkdirp@^0.5.5: version "0.5.5" resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def" integrity sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ== dependencies: minimist "^1.2.5" -mkdirp@~0.5.4: +mkdirp@~0.5.1, mkdirp@~0.5.4: version "0.5.6" resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== @@ -11299,6 +14935,11 @@ moment-timezone@^0.5.31: resolved "https://registry.npmjs.org/moment/-/moment-2.29.1.tgz#b2be769fa31940be9eeea6469c075e35006fa3d3" integrity sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ== +moo@^0.5.0: + version "0.5.1" + resolved "https://registry.npmjs.org/moo/-/moo-0.5.1.tgz#7aae7f384b9b09f620b6abf6f74ebbcd1b65dbc4" + integrity sha512-I1mnb5xn4fO80BH9BLcF0yLypy2UKl+Cb01Fu0hJRkJjlCRtxZMWkTdAtDd5ZqCOxtCkhmRwyI57vWT+1iZ67w== + mri@^1.1.5: version "1.2.0" resolved "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz#6721480fec2a11a4889861115a48b6cbe7cc8f0b" @@ -11391,7 +15032,7 @@ mute-stream@0.0.8, mute-stream@~0.0.4: resolved "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== -mysql2@^2.1.0: +mysql2@^2.3.3: version "2.3.3" resolved "https://registry.npmjs.org/mysql2/-/mysql2-2.3.3.tgz#944f3deca4b16629052ff8614fbf89d5552545a0" integrity sha512-wxJUev6LgMSgACDkb/InIFxDprRa6T95+VEoR+xPvtngtccNH2dGjEB/fVZ8yg1gWv1510c9CvXuJHi5zUm0ZA== @@ -11454,11 +15095,26 @@ nanomatch@^1.2.9: snapdragon "^0.8.1" to-regex "^3.0.1" +native-request@^1.0.5: + version "1.1.0" + resolved "https://registry.npmjs.org/native-request/-/native-request-1.1.0.tgz#acdb30fe2eefa3e1bc8c54b3a6852e9c5c0d3cb0" + integrity sha512-uZ5rQaeRn15XmpgE0xoPL8YWqcX90VtCFglYwAgkvKM5e8fog+vePLAhHxuuv/gRkrQxIeh5U3q9sMNUrENqWw== + natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc= +nearley@^2.7.10: + version "2.20.1" + resolved "https://registry.npmjs.org/nearley/-/nearley-2.20.1.tgz#246cd33eff0d012faf197ff6774d7ac78acdd474" + integrity sha512-+Mc8UaAebFzgV+KpI5n7DasuuQCHA89dmwm7JXw3TV43ukfNQ9DnBH3Mdb2g/I4Fdxc26pwimBWvjIw0UAILSQ== + dependencies: + commander "^2.19.0" + moo "^0.5.0" + railroad-diagrams "^1.0.0" + randexp "0.4.6" + needle@2.4.0: version "2.4.0" resolved "https://registry.npmjs.org/needle/-/needle-2.4.0.tgz#6833e74975c444642590e15a750288c5f939b57c" @@ -11468,20 +15124,16 @@ needle@2.4.0: iconv-lite "^0.4.4" sax "^1.2.4" -needle@^2.2.1: - version "2.9.1" - resolved "https://registry.npmjs.org/needle/-/needle-2.9.1.tgz#22d1dffbe3490c2b83e301f7709b6736cd8f2684" - integrity sha512-6R9fqJ5Zcmf+uYaFgdIHmLwNldn5HbK8L5ybn7Uz+ylX/rnOsSp1AHcvQSrCaFN+qNM1wpymHqD7mVasEOlHGQ== - dependencies: - debug "^3.2.6" - iconv-lite "^0.4.4" - sax "^1.2.4" - negotiator@0.6.2, negotiator@^0.6.2: version "0.6.2" resolved "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb" integrity sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw== +negotiator@0.6.3: + version "0.6.3" + resolved "https://registry.npmmirror.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" + integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== + neo-async@^2.5.0, neo-async@^2.6.0: version "2.6.2" resolved "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" @@ -11505,10 +15157,10 @@ no-case@^3.0.4: lower-case "^2.0.2" tslib "^2.0.3" -node-addon-api@^3.0.0: - version "3.2.1" - resolved "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.2.1.tgz#81325e0a2117789c0128dab65e7e38f07ceba161" - integrity sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A== +node-addon-api@^4.2.0: + version "4.3.0" + resolved "https://registry.npmjs.org/node-addon-api/-/node-addon-api-4.3.0.tgz#52a1a0b475193e0928e98e0426a0d1254782b77f" + integrity sha512-73sE9+3UaLYYFmDsFZnqCInzPyh3MqIwZO9cw58yIqAZhONrrabrYyYe3TuIqtIiOuTXVhsGau8hcrhhwSsDIQ== node-dir@^0.1.17: version "0.1.17" @@ -11517,6 +15169,11 @@ node-dir@^0.1.17: dependencies: minimatch "^3.0.2" +node-fetch@2.6.0: + version "2.6.0" + resolved "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.0.tgz#e633456386d4aa55863f676a7ab0daa8fdecb0fd" + integrity sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA== + node-fetch@^2.6.1: version "2.6.6" resolved "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.6.tgz#1751a7c01834e8e1697758732e9efb6eeadfaf89" @@ -11524,23 +15181,28 @@ node-fetch@^2.6.1: dependencies: whatwg-url "^5.0.0" -node-gyp@3.x: - version "3.8.0" - resolved "https://registry.npmjs.org/node-gyp/-/node-gyp-3.8.0.tgz#540304261c330e80d0d5edce253a68cb3964218c" - integrity sha512-3g8lYefrRRzvGeSowdJKAKyks8oUpLEd/DyPV4eMhVlhJ0aNaZqIrNUIPuEWWTAoPqyFkfGrM67MC69baqn6vA== +node-fetch@^2.6.7: + version "2.6.7" + resolved "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad" + integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ== dependencies: - fstream "^1.0.0" - glob "^7.0.3" - graceful-fs "^4.1.2" - mkdirp "^0.5.0" - nopt "2 || 3" - npmlog "0 || 1 || 2 || 3 || 4" - osenv "0" - request "^2.87.0" - rimraf "2" - semver "~5.3.0" - tar "^2.0.0" - which "1" + whatwg-url "^5.0.0" + +node-gyp@8.x: + version "8.4.1" + resolved "https://registry.npmjs.org/node-gyp/-/node-gyp-8.4.1.tgz#3d49308fc31f768180957d6b5746845fbd429937" + integrity sha512-olTJRgUtAb/hOXG0E93wZDs5YiJlgbXxTwQAFHyNlRsXQnYzUaF2aGgujZbw+hR8aF4ZG/rST57bWMWD16jr9w== + dependencies: + env-paths "^2.2.0" + glob "^7.1.4" + graceful-fs "^4.2.6" + make-fetch-happen "^9.1.0" + nopt "^5.0.0" + npmlog "^6.0.0" + rimraf "^3.0.2" + semver "^7.3.5" + tar "^6.1.2" + which "^2.0.2" node-gyp@^5.0.2: version "5.1.1" @@ -11614,6 +15276,17 @@ node-modules-regexp@^1.0.0: resolved "https://registry.npmjs.org/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz#8d9dbe28964a4ac5712e9131642107c71e90ec40" integrity sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA= +node-notifier@^5.4.2: + version "5.4.5" + resolved "https://registry.npmjs.org/node-notifier/-/node-notifier-5.4.5.tgz#0cbc1a2b0f658493b4025775a13ad938e96091ef" + integrity sha512-tVbHs7DyTLtzOiN78izLA85zRqB9NvEXkAf014Vx3jtSvn/xBl6bR8ZYifj+dFcFrKI21huSQgJZ6ZtL3B4HfQ== + dependencies: + growly "^1.3.0" + is-wsl "^1.1.0" + semver "^5.5.0" + shellwords "^0.1.1" + which "^1.3.0" + node-notifier@^8.0.0: version "8.0.2" resolved "https://registry.npmjs.org/node-notifier/-/node-notifier-8.0.2.tgz#f3167a38ef0d2c8a866a83e318c1ba0efeb702c5" @@ -11626,27 +15299,16 @@ node-notifier@^8.0.0: uuid "^8.3.0" which "^2.0.2" -node-pre-gyp@^0.11.0: - version "0.11.0" - resolved "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.11.0.tgz#db1f33215272f692cd38f03238e3e9b47c5dd054" - integrity sha512-TwWAOZb0j7e9eGaf9esRx3ZcLaE5tQ2lvYy1pb5IAaG1a2e2Kv5Lms1Y4hpj+ciXJRofIxxlt5haeQ/2ANeE0Q== - dependencies: - detect-libc "^1.0.2" - mkdirp "^0.5.1" - needle "^2.2.1" - nopt "^4.0.1" - npm-packlist "^1.1.6" - npmlog "^4.0.2" - rc "^1.2.7" - rimraf "^2.6.1" - semver "^5.3.0" - tar "^4" - node-releases@^2.0.1: version "2.0.1" resolved "https://registry.npmjs.org/node-releases/-/node-releases-2.0.1.tgz#3d1d395f204f1f2f29a54358b9fb678765ad2fc5" integrity sha512-CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcxA== +node-releases@^2.0.3: + version "2.0.4" + resolved "https://registry.npmjs.org/node-releases/-/node-releases-2.0.4.tgz#f38252370c43854dc48aa431c766c6c398f40476" + integrity sha512-gbMzqQtTtDz/00jQzZ21PQzdI9PyLYqUSvD0p3naOhX4odFji0ZxYdnVwPTxmSwkmxhcFImpozceidSG+AgoPQ== + nodemailer-mock@^1.5.11: version "1.5.11" resolved "https://registry.npmjs.org/nodemailer-mock/-/nodemailer-mock-1.5.11.tgz#1bb6b9af44e9007380191d32e33555ea136a819f" @@ -11660,12 +15322,13 @@ nodemailer@^6.6.1, nodemailer@^6.x: resolved "https://registry.npmjs.org/nodemailer/-/nodemailer-6.7.2.tgz#44b2ad5f7ed71b7067f7a21c4fedabaec62b85e0" integrity sha512-Dz7zVwlef4k5R71fdmxwR8Q39fiboGbu3xgswkzGwczUfjp873rVxt1O46+Fh0j1ORnAC6L9+heI8uUpO6DT7Q== -"nopt@2 || 3": - version "3.0.6" - resolved "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9" - integrity sha1-xkZdvwirzU2zWTF/eaxopkayj/k= +noms@0.0.0: + version "0.0.0" + resolved "https://registry.npmmirror.com/noms/-/noms-0.0.0.tgz#da8ebd9f3af9d6760919b27d9cdc8092a7332859" + integrity sha512-lNDU9VJaOPxUmXcLb+HQFeUgQQPtMI24Gt6hgfuMHRJgMRHMF/qZ4HJD3GDru4sSw9IQl2jPjAYnQrdIeLbwow== dependencies: - abbrev "1" + inherits "^2.0.1" + readable-stream "~1.0.31" nopt@^4.0.1: version "4.0.3" @@ -11729,12 +15392,29 @@ normalize-url@1.9.1: query-string "^4.1.0" sort-keys "^1.0.0" +normalize-url@^3.0.0: + version "3.3.0" + resolved "https://registry.npmjs.org/normalize-url/-/normalize-url-3.3.0.tgz#b2e1c4dc4f7c6d57743df733a4f5978d18650559" + integrity sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg== + +normalize-url@^4.1.0: + version "4.5.1" + resolved "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz#0dd90cf1288ee1d1313b87081c9a5932ee48518a" + integrity sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA== + normalize-url@^6.1.0: version "6.1.0" resolved "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz#40d0885b535deffe3f3147bec877d05fe4c5668a" integrity sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A== -npm-bundled@^1.0.1, npm-bundled@^1.1.1: +now-and-later@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/now-and-later/-/now-and-later-2.0.1.tgz#8e579c8685764a7cc02cb680380e94f43ccb1f7c" + integrity sha512-KGvQ0cB70AQfg107Xvs/Fbu+dGmZoTRJp2TaPwcwQm3/7PteUyN2BCgk8KBMPGBUXZdVwyWS8fDCGFygBm19UQ== + dependencies: + once "^1.3.2" + +npm-bundled@^1.1.1: version "1.1.2" resolved "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.1.2.tgz#944c78789bd739035b70baa2ca5cc32b8d860bc1" integrity sha512-x5DHup0SuyQcmL3s7Rx/YQ8sbw/Hzg0rj48eN0dV7hf5cmQq5PXIeioroH3raV1QC1yh3uTYuMThvEQF3iKgGQ== @@ -11776,15 +15456,6 @@ npm-package-arg@^8.0.0, npm-package-arg@^8.0.1, npm-package-arg@^8.1.0, npm-pack semver "^7.3.4" validate-npm-package-name "^3.0.0" -npm-packlist@^1.1.6: - version "1.4.8" - resolved "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.4.8.tgz#56ee6cc135b9f98ad3d51c1c95da22bbb9b2ef3e" - integrity sha512-5+AZgwru5IevF5ZdnFglB5wNlHG1AOOuw28WhUq8/8emhBmLv6jX5by4WJCh7lW0uSYZYS6DXqIsyZVIXRZU9A== - dependencies: - ignore-walk "^3.0.1" - npm-bundled "^1.0.1" - npm-normalize-package-bin "^1.0.1" - npm-packlist@^2.1.4: version "2.2.2" resolved "https://registry.npmjs.org/npm-packlist/-/npm-packlist-2.2.2.tgz#076b97293fa620f632833186a7a8f65aaa6148c8" @@ -11852,7 +15523,7 @@ npm-run-path@^4.0.0, npm-run-path@^4.0.1: dependencies: path-key "^3.0.0" -"npmlog@0 || 1 || 2 || 3 || 4", npmlog@^4.0.2, npmlog@^4.1.2: +npmlog@^4.1.2: version "4.1.2" resolved "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" integrity sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg== @@ -11862,6 +15533,26 @@ npm-run-path@^4.0.0, npm-run-path@^4.0.1: gauge "~2.7.3" set-blocking "~2.0.0" +npmlog@^5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz#f06678e80e29419ad67ab964e0fa69959c1eb8b0" + integrity sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw== + dependencies: + are-we-there-yet "^2.0.0" + console-control-strings "^1.1.0" + gauge "^3.0.0" + set-blocking "^2.0.0" + +npmlog@^6.0.0: + version "6.0.2" + resolved "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz#c8166017a42f2dea92d6453168dd865186a70830" + integrity sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg== + dependencies: + are-we-there-yet "^3.0.0" + console-control-strings "^1.1.0" + gauge "^4.0.3" + set-blocking "^2.0.0" + nssocket@0.6.0: version "0.6.0" resolved "https://registry.npmjs.org/nssocket/-/nssocket-0.6.0.tgz#59f96f6ff321566f33c70f7dbeeecdfdc07154fa" @@ -11870,6 +15561,20 @@ nssocket@0.6.0: eventemitter2 "~0.4.14" lazy "~1.0.11" +nth-check@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz#b2bd295c37e3dd58a3bf0700376663ba4d9cf05c" + integrity sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg== + dependencies: + boolbase "~1.0.0" + +nth-check@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/nth-check/-/nth-check-2.0.1.tgz#2efe162f5c3da06a28959fbd3db75dbeea9f0fc2" + integrity sha512-it1vE95zF6dTT9lBsYbxvqh0Soy4SPowchj0UBGj/V6cTPnXXtQOPUbhZ6CmGzAD/rW22LQK6E96pcdJXk4A4w== + dependencies: + boolbase "^1.0.0" + num2fraction@^1.2.2: version "1.2.2" resolved "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz#6f682b6a027a4e9ddfa4564cd2589d1d4e669ede" @@ -11880,7 +15585,7 @@ number-is-nan@^1.0.0: resolved "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" integrity sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0= -nwsapi@^2.1.3, nwsapi@^2.2.0: +nwsapi@^2.0.7, nwsapi@^2.2.0: version "2.2.0" resolved "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.0.tgz#204879a9e3d068ff2a55139c2c772780681a38b7" integrity sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ== @@ -11909,7 +15614,12 @@ object-inspect@^1.11.0, object-inspect@^1.9.0: resolved "https://registry.npmjs.org/object-inspect/-/object-inspect-1.11.0.tgz#9dceb146cedd4148a0d9e51ab88d34cf509922b1" integrity sha512-jp7ikS6Sd3GxQfZJPyH3cjcbJF6GZPClgdV+EFygjFLQ5FmW/dRUnTd9PQ9k0JhoNDabWFbpF1yCdSWCC6gexg== -object-is@^1.0.1: +object-inspect@^1.12.0, object-inspect@^1.7.0: + version "1.12.0" + resolved "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.0.tgz#6e2c120e868fd1fd18cb4f18c31741d0d6e776f0" + integrity sha512-Ho2z80bVIvJloH+YzRmpZVQe87+qASmBUKZDWgx9cu+KDrX2ZDH/3tMy+gXbZETVGs2M8YdxObOh7XAtim9Y0g== + +object-is@^1.0.1, object-is@^1.0.2, object-is@^1.1.2: version "1.1.5" resolved "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz#b9deeaa5fc7f1846a0faecdceec138e5778f53ac" integrity sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw== @@ -11934,7 +15644,7 @@ object-visit@^1.0.0: dependencies: isobject "^3.0.0" -object.assign@^4.1.0, object.assign@^4.1.2: +object.assign@^4.0.4, object.assign@^4.1.0, object.assign@^4.1.2: version "4.1.2" resolved "https://registry.npmjs.org/object.assign/-/object.assign-4.1.2.tgz#0ed54a342eceb37b38ff76eb831a0e788cb63940" integrity sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ== @@ -11944,7 +15654,7 @@ object.assign@^4.1.0, object.assign@^4.1.2: has-symbols "^1.0.1" object-keys "^1.1.1" -object.entries@^1.1.5: +object.entries@^1.1.1, object.entries@^1.1.2, object.entries@^1.1.5: version "1.1.5" resolved "https://registry.npmjs.org/object.entries/-/object.entries-1.1.5.tgz#e1acdd17c4de2cd96d5a08487cfb9db84d881861" integrity sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g== @@ -11953,7 +15663,7 @@ object.entries@^1.1.5: define-properties "^1.1.3" es-abstract "^1.19.1" -object.fromentries@^2.0.5: +object.fromentries@^2.0.3, object.fromentries@^2.0.5: version "2.0.5" resolved "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.5.tgz#7b37b205109c21e741e605727fe8b0ad5fa08251" integrity sha512-CAyG5mWQRRiBU57Re4FKoTBjXfDoNwdFVH2Y1tS9PqCsfUTymAohOkEMSG3aRNKmv4lV3O7p1et7c187q6bynw== @@ -11962,7 +15672,7 @@ object.fromentries@^2.0.5: define-properties "^1.1.3" es-abstract "^1.19.1" -object.getownpropertydescriptors@^2.0.3, object.getownpropertydescriptors@^2.1.1: +object.getownpropertydescriptors@^2.0.3, object.getownpropertydescriptors@^2.1.0, object.getownpropertydescriptors@^2.1.1: version "2.1.3" resolved "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.3.tgz#b223cf38e17fefb97a63c10c91df72ccb386df9e" integrity sha512-VdDoCwvJI4QdC6ndjpqFmoL3/+HxffFBbcJzKi5hwLLqqx3mdbedRpfZDdK0SrOSauj8X4GzBvnDZl4vTN7dOw== @@ -11986,7 +15696,7 @@ object.pick@^1.3.0: dependencies: isobject "^3.0.1" -object.values@^1.1.5: +object.values@^1.1.0, object.values@^1.1.1, object.values@^1.1.2, object.values@^1.1.5: version "1.1.5" resolved "https://registry.npmjs.org/object.values/-/object.values-1.1.5.tgz#959f63e3ce9ef108720333082131e4a459b716ac" integrity sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg== @@ -12002,7 +15712,12 @@ on-finished@^2.3.0: dependencies: ee-first "1.1.1" -once@^1.3.0, once@^1.3.1, once@^1.4.0: +on-headers@~1.0.1: + version "1.0.2" + resolved "https://registry.npmmirror.com/on-headers/-/on-headers-1.0.2.tgz#772b0ae6aaa525c399e489adfad90c403eb3c28f" + integrity sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA== + +once@^1.3.0, once@^1.3.1, once@^1.3.2, once@^1.4.0: version "1.4.0" resolved "https://registry.npmjs.org/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= @@ -12062,20 +15777,12 @@ optionator@^0.9.1: type-check "^0.4.0" word-wrap "^1.2.3" -ora@^5.4.1: - version "5.4.1" - resolved "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18" - integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ== +ordered-read-streams@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/ordered-read-streams/-/ordered-read-streams-1.0.1.tgz#77c0cb37c41525d64166d990ffad7ec6a0e1363e" + integrity sha1-d8DLN8QVJdZBZtmQ/61+xqDhNj4= dependencies: - bl "^4.1.0" - chalk "^4.1.0" - cli-cursor "^3.1.0" - cli-spinners "^2.5.0" - is-interactive "^1.0.0" - is-unicode-supported "^0.1.0" - log-symbols "^4.1.0" - strip-ansi "^6.0.0" - wcwidth "^1.0.1" + readable-stream "^2.0.1" os-browserify@^0.3.0: version "0.3.0" @@ -12100,7 +15807,7 @@ os-tmpdir@^1.0.0, os-tmpdir@~1.0.2: resolved "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= -osenv@0, osenv@^0.1.4: +osenv@^0.1.4: version "0.1.5" resolved "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" integrity sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g== @@ -12115,6 +15822,18 @@ osx-release@^1.0.0: dependencies: minimist "^1.1.0" +p-cancelable@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz#d078d15a3af409220c886f1d9a0ca2e441ab26cc" + integrity sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw== + +p-each-series@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/p-each-series/-/p-each-series-1.0.0.tgz#930f3d12dd1f50e7434457a22cd6f04ac6ad7f71" + integrity sha1-kw89Et0fUOdDRFeiLNbwSsatf3E= + dependencies: + p-reduce "^1.0.0" + p-each-series@^2.1.0: version "2.2.0" resolved "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz#105ab0357ce72b202a8a8b94933672657b5e2a9a" @@ -12191,7 +15910,12 @@ p-pipe@^3.1.0: resolved "https://registry.npmjs.org/p-pipe/-/p-pipe-3.1.0.tgz#48b57c922aa2e1af6a6404cb7c6bf0eb9cc8e60e" integrity sha512-08pj8ATpzMR0Y80x50yJHn37NF6vjrqHutASaX5LiH5npS9XPvrUmscd9MF5R4fuYRHOxQR1FfMIlF7AzwoPqw== -p-queue@^6.6.2: +p-queue@^2.4.2: + version "2.4.2" + resolved "https://registry.npmjs.org/p-queue/-/p-queue-2.4.2.tgz#03609826682b743be9a22dba25051bd46724fc34" + integrity sha512-n8/y+yDJwBjoLQe1GSJbbaYQLTI7QHNZI2+rpmCDbe++WLf9HC3gf6iqj5yfPAV71W4UF3ql5W1+UBPXoXTxng== + +p-queue@^6.3.0, p-queue@^6.6.2: version "6.6.2" resolved "https://registry.npmjs.org/p-queue/-/p-queue-6.6.2.tgz#2068a9dcf8e67dd0ec3e7a2bcb76810faa85e426" integrity sha512-RwFpb72c/BhQLEXIZ5K2e+AhgNVmIejGlTgiB9MzZ0e93GRvqZ7uSi0dvRF7/XIXDeNkra2fNHBxTyPDGySpjQ== @@ -12199,6 +15923,11 @@ p-queue@^6.6.2: eventemitter3 "^4.0.4" p-timeout "^3.2.0" +p-reduce@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/p-reduce/-/p-reduce-1.0.0.tgz#18c2b0dd936a4690a529f8231f58a0fdb6a47dfa" + integrity sha1-GMKw3ZNqRpClKfgjH1ig/bakffo= + p-reduce@^2.0.0, p-reduce@^2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/p-reduce/-/p-reduce-2.1.0.tgz#09408da49507c6c274faa31f28df334bc712b64a" @@ -12262,6 +15991,16 @@ package-json@^4.0.0: registry-url "^3.0.3" semver "^5.1.0" +package-json@^6.3.0: + version "6.5.0" + resolved "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz#6feedaca35e75725876d0b0e64974697fed145b0" + integrity sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ== + dependencies: + got "^9.6.0" + registry-auth-token "^4.0.0" + registry-url "^5.0.0" + semver "^6.2.0" + packet-reader@1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/packet-reader/-/packet-reader-1.0.0.tgz#9238e5480dedabacfe1fe3f2771063f164157d74" @@ -12370,6 +16109,11 @@ parse-json@^5.0.0: json-parse-even-better-errors "^2.3.0" lines-and-columns "^1.1.6" +parse-node-version@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/parse-node-version/-/parse-node-version-1.0.1.tgz#e2b5dbede00e7fa9bc363607f53327e8b073189b" + integrity sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA== + parse-path@^4.0.0: version "4.0.3" resolved "https://registry.npmjs.org/parse-path/-/parse-path-4.0.3.tgz#82d81ec3e071dcc4ab49aa9f2c9c0b8966bb22bf" @@ -12390,12 +16134,19 @@ parse-url@^6.0.0: parse-path "^4.0.0" protocols "^1.4.0" -parse5@5.1.0: - version "5.1.0" - resolved "https://registry.npmjs.org/parse5/-/parse5-5.1.0.tgz#c59341c9723f414c452975564c7c00a68d58acd2" - integrity sha512-fxNG2sQjHvlVAYmzBZS9YlDp6PTSSDwa98vkD4QgVDDCAo84z5X1t5XyJQ62ImdLXx5NdIIfihey6xpum9/gRQ== +parse5-htmlparser2-tree-adapter@^6.0.1: + version "6.0.1" + resolved "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz#2cdf9ad823321140370d4dbf5d3e92c7c8ddc6e6" + integrity sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA== + dependencies: + parse5 "^6.0.1" -parse5@6.0.1, parse5@^6.0.0: +parse5@4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/parse5/-/parse5-4.0.0.tgz#6d78656e3da8d78b4ec0b906f7c08ef1dfe3f608" + integrity sha512-VrZ7eOd3T1Fk4XWNXMgiGBK/z0MG48BWG2uQNU4I72fkQuKUTZpl+u9k+CxEG0twMVzSmXEEz12z5Fnw1jIQFA== + +parse5@6.0.1, parse5@^6.0.0, parse5@^6.0.1: version "6.0.1" resolved "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b" integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw== @@ -12450,7 +16201,7 @@ path-is-absolute@1.0.1, path-is-absolute@^1.0.0: resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= -path-is-inside@^1.0.1, path-is-inside@^1.0.2: +path-is-inside@1.0.2, path-is-inside@^1.0.1, path-is-inside@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" integrity sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM= @@ -12475,6 +16226,11 @@ path-parse@^1.0.6, path-parse@^1.0.7: resolved "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== +path-to-regexp@2.2.1: + version "2.2.1" + resolved "https://registry.npmmirror.com/path-to-regexp/-/path-to-regexp-2.2.1.tgz#90b617025a16381a879bc82a38d4e8bdeb2bcf45" + integrity sha512-gu9bD6Ta5bwGrrU8muHzVOBFFREpp2iRkVfhBJahwJ6p6Xw20SjT0MxLnwkjOibQmGSYhiUnf2FLe7k+jcFmGQ== + path-to-regexp@^1.7.0: version "1.8.0" resolved "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz#887b3ba9d84393e87a0a0b9f4cb756198b53548a" @@ -12536,7 +16292,7 @@ pg-connection-string@^2.5.0: resolved "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.5.0.tgz#538cadd0f7e603fc09a12590f3b8a452c2c0cf34" integrity sha512-r5o/V/ORTA6TmUnyWZR9nCj1klXCO2CEKNRlVuJptZe85QuhFayC7WeMic7ndayT5IRIR0S0xFxFi2ousartlQ== -pg-hstore@^2.3.3: +pg-hstore@^2.3.4: version "2.3.4" resolved "https://registry.npmjs.org/pg-hstore/-/pg-hstore-2.3.4.tgz#4425e3e2a3e15d2a334c35581186c27cf2e9b8dd" integrity sha512-N3SGs/Rf+xA1M2/n0JBiXFDVMzdekwLZLAO0g7mpDY9ouX+fDI7jS6kTq3JujmYbtNSJ53TJ0q4G98KVZSM4EA== @@ -12548,10 +16304,10 @@ pg-int8@1.0.1: resolved "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz#943bd463bf5b71b4170115f80f8efc9a0c0eb78c" integrity sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw== -pg-pool@^3.4.1: - version "3.4.1" - resolved "https://registry.npmjs.org/pg-pool/-/pg-pool-3.4.1.tgz#0e71ce2c67b442a5e862a9c182172c37eda71e9c" - integrity sha512-TVHxR/gf3MeJRvchgNHxsYsTCHQ+4wm3VIHSS19z8NC0+gioEhq1okDY1sm/TYbfoP6JLFx01s0ShvZ3puP/iQ== +pg-pool@^3.5.1: + version "3.5.1" + resolved "https://registry.npmjs.org/pg-pool/-/pg-pool-3.5.1.tgz#f499ce76f9bf5097488b3b83b19861f28e4ed905" + integrity sha512-6iCR0wVrro6OOHFsyavV+i6KYL4lVNyYAB9RD18w66xSzN+d8b66HiwuP30Gp1SH5O9T82fckkzsRjlrhD0ioQ== pg-protocol@^1.5.0: version "1.5.0" @@ -12569,15 +16325,15 @@ pg-types@^2.1.0: postgres-date "~1.0.4" postgres-interval "^1.1.0" -pg@^8.3.3: - version "8.7.1" - resolved "https://registry.npmjs.org/pg/-/pg-8.7.1.tgz#9ea9d1ec225980c36f94e181d009ab9f4ce4c471" - integrity sha512-7bdYcv7V6U3KAtWjpQJJBww0UEsWuh4yQ/EjNf2HeO/NnvKjpvhEIe/A/TleP6wtmSKnUnghs5A9jUoK6iDdkA== +pg@^8.7.3: + version "8.7.3" + resolved "https://registry.npmjs.org/pg/-/pg-8.7.3.tgz#8a5bdd664ca4fda4db7997ec634c6e5455b27c44" + integrity sha512-HPmH4GH4H3AOprDJOazoIcpI49XFsHCe8xlrjHkWiapdbHK+HLtbm/GQzXYAZwmPju/kzKhjaSfMACG+8cgJcw== dependencies: buffer-writer "2.0.0" packet-reader "1.0.0" pg-connection-string "^2.5.0" - pg-pool "^3.4.1" + pg-pool "^3.5.1" pg-protocol "^1.5.0" pg-types "^2.1.0" pgpass "1.x" @@ -12604,6 +16360,11 @@ picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.3: resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972" integrity sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw== +picomatch@^2.2.2: + version "2.3.1" + resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" + integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== + pidusage@^2.0.21: version "2.0.21" resolved "https://registry.npmjs.org/pidusage/-/pidusage-2.0.21.tgz#7068967b3d952baea73e57668c98b9eaa876894e" @@ -12657,6 +16418,14 @@ pirates@^4.0.0, pirates@^4.0.1: dependencies: node-modules-regexp "^1.0.0" +pkg-conf@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/pkg-conf/-/pkg-conf-2.1.0.tgz#2126514ca6f2abfebd168596df18ba57867f0058" + integrity sha1-ISZRTKbyq/69FoWW3xi6V4Z/AFg= + dependencies: + find-up "^2.0.0" + load-json-file "^4.0.0" + pkg-dir@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b" @@ -12671,18 +16440,53 @@ pkg-dir@^3.0.0: dependencies: find-up "^3.0.0" -pkg-dir@^4.2.0: +pkg-dir@^4.1.0, pkg-dir@^4.2.0: version "4.2.0" resolved "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== dependencies: find-up "^4.0.0" +pkg-up@3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz#100ec235cc150e4fd42519412596a28512a0def5" + integrity sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA== + dependencies: + find-up "^3.0.0" + +pkg-up@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/pkg-up/-/pkg-up-2.0.0.tgz#c819ac728059a461cab1c3889a2be3c49a004d7f" + integrity sha1-yBmscoBZpGHKscOImivjxJoATX8= + dependencies: + find-up "^2.1.0" + platform@^1.3.1: version "1.3.6" resolved "https://registry.npmjs.org/platform/-/platform-1.3.6.tgz#48b4ce983164b209c2d45a107adb31f473a6e7a7" integrity sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg== +plugin-error@^0.1.2: + version "0.1.2" + resolved "https://registry.npmjs.org/plugin-error/-/plugin-error-0.1.2.tgz#3b9bb3335ccf00f425e07437e19276967da47ace" + integrity sha1-O5uzM1zPAPQl4HQ34ZJ2ln2kes4= + dependencies: + ansi-cyan "^0.1.1" + ansi-red "^0.1.1" + arr-diff "^1.0.1" + arr-union "^2.0.1" + extend-shallow "^1.1.2" + +plugin-error@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz#77016bd8919d0ac377fdcdd0322328953ca5781c" + integrity sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA== + dependencies: + ansi-colors "^1.0.1" + arr-diff "^4.0.0" + arr-union "^3.1.0" + extend-shallow "^3.0.2" + pm2-axon-rpc@~0.7.0, pm2-axon-rpc@~0.7.1: version "0.7.1" resolved "https://registry.npmjs.org/pm2-axon-rpc/-/pm2-axon-rpc-0.7.1.tgz#2daec5383a63135b3f18babb70266dacdcbc429a" @@ -12768,6 +16572,15 @@ pn@^1.1.0: resolved "https://registry.npmjs.org/pn/-/pn-1.1.0.tgz#e2f4cef0e219f463c179ab37463e4e1ecdccbafb" integrity sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA== +portfinder@^1.0.28: + version "1.0.28" + resolved "https://registry.npmmirror.com/portfinder/-/portfinder-1.0.28.tgz#67c4622852bd5374dd1dd900f779f53462fac778" + integrity sha512-Se+2isanIcEqf2XMHjyUKskczxbPH7dQnlMjXX6+dybayyHvAf/TCgyMRlzf/B6QDhAEFOGes0pzRo3by4AbMA== + dependencies: + async "^2.6.2" + debug "^3.1.1" + mkdirp "^0.5.5" + posix-character-classes@^0.1.0: version "0.1.1" resolved "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" @@ -12781,6 +16594,15 @@ postcss-attribute-case-insensitive@^4.0.1: postcss "^7.0.2" postcss-selector-parser "^6.0.2" +postcss-calc@^7.0.1: + version "7.0.5" + resolved "https://registry.npmjs.org/postcss-calc/-/postcss-calc-7.0.5.tgz#f8a6e99f12e619c2ebc23cf6c486fdc15860933e" + integrity sha512-1tKHutbGtLtEZF6PT4JSihCHfIVldU72mZ8SdZHIYriIZ9fh9k9aWSppaT8rHsyI3dX+KSR+W+Ix9BMY3AODrg== + dependencies: + postcss "^7.0.27" + postcss-selector-parser "^6.0.2" + postcss-value-parser "^4.0.2" + postcss-color-functional-notation@^2.0.1: version "2.0.1" resolved "https://registry.npmjs.org/postcss-color-functional-notation/-/postcss-color-functional-notation-2.0.1.tgz#5efd37a88fbabeb00a2966d1e53d98ced93f74e0" @@ -12823,6 +16645,25 @@ postcss-color-rebeccapurple@^4.0.1: postcss "^7.0.2" postcss-values-parser "^2.0.0" +postcss-colormin@^4.0.3: + version "4.0.3" + resolved "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-4.0.3.tgz#ae060bce93ed794ac71264f08132d550956bd381" + integrity sha512-WyQFAdDZpExQh32j0U0feWisZ0dmOtPl44qYmJKkq9xFWY3p+4qnRzCHeNrkeRhwPHz9bQ3mo0/yVkaply0MNw== + dependencies: + browserslist "^4.0.0" + color "^3.0.0" + has "^1.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-convert-values@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-4.0.1.tgz#ca3813ed4da0f812f9d43703584e449ebe189a7f" + integrity sha512-Kisdo1y77KUC0Jmn0OXU/COOJbzM8cImvw1ZFsBgBgMgb1iL23Zs/LXRe3r+EZqM3vGYKdQ2YJVQ5VkJI+zEJQ== + dependencies: + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + postcss-custom-media@^7.0.8: version "7.0.8" resolved "https://registry.npmjs.org/postcss-custom-media/-/postcss-custom-media-7.0.8.tgz#fffd13ffeffad73621be5f387076a28b00294e0c" @@ -12854,6 +16695,34 @@ postcss-dir-pseudo-class@^5.0.0: postcss "^7.0.2" postcss-selector-parser "^5.0.0-rc.3" +postcss-discard-comments@^4.0.2: + version "4.0.2" + resolved "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-4.0.2.tgz#1fbabd2c246bff6aaad7997b2b0918f4d7af4033" + integrity sha512-RJutN259iuRf3IW7GZyLM5Sw4GLTOH8FmsXBnv8Ab/Tc2k4SR4qbV4DNbyyY4+Sjo362SyDmW2DQ7lBSChrpkg== + dependencies: + postcss "^7.0.0" + +postcss-discard-duplicates@^4.0.2: + version "4.0.2" + resolved "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-4.0.2.tgz#3fe133cd3c82282e550fc9b239176a9207b784eb" + integrity sha512-ZNQfR1gPNAiXZhgENFfEglF93pciw0WxMkJeVmw8eF+JZBbMD7jp6C67GqJAXVZP2BWbOztKfbsdmMp/k8c6oQ== + dependencies: + postcss "^7.0.0" + +postcss-discard-empty@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-4.0.1.tgz#c8c951e9f73ed9428019458444a02ad90bb9f765" + integrity sha512-B9miTzbznhDjTfjvipfHoqbWKwd0Mj+/fL5s1QOz06wufguil+Xheo4XpOnc4NqKYBCNqqEzgPv2aPBIJLox0w== + dependencies: + postcss "^7.0.0" + +postcss-discard-overridden@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-4.0.1.tgz#652aef8a96726f029f5e3e00146ee7a4e755ff57" + integrity sha512-IYY2bEDD7g1XM1IDEsUT4//iEYCxAmP5oDSFMVU/JVvT7gh+l4fmjciLqGgwjdWpQIdb0Che2VX00QObS5+cTg== + dependencies: + postcss "^7.0.0" + postcss-double-position-gradients@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/postcss-double-position-gradients/-/postcss-double-position-gradients-1.0.0.tgz#fc927d52fddc896cb3a2812ebc5df147e110522e" @@ -12937,7 +16806,7 @@ postcss-lab-function@^2.0.1: postcss "^7.0.2" postcss-values-parser "^2.0.0" -postcss-load-config@^2.0.0: +postcss-load-config@^2.0.0, postcss-load-config@^2.1.0: version "2.1.2" resolved "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-2.1.2.tgz#c5ea504f2c4aef33c7359a34de3573772ad7502a" integrity sha512-/rDeGV6vMUo3mwJZmeHfEDvwnTKKqQ0S7OHUi/kJvvtx3aWtyWG2/0ZWnzCt2keEclwN6Tf0DST2v9kITdOKYw== @@ -12969,6 +16838,121 @@ postcss-media-minmax@^4.0.0: dependencies: postcss "^7.0.2" +postcss-merge-longhand@^4.0.11: + version "4.0.11" + resolved "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-4.0.11.tgz#62f49a13e4a0ee04e7b98f42bb16062ca2549e24" + integrity sha512-alx/zmoeXvJjp7L4mxEMjh8lxVlDFX1gqWHzaaQewwMZiVhLo42TEClKaeHbRf6J7j82ZOdTJ808RtN0ZOZwvw== + dependencies: + css-color-names "0.0.4" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + stylehacks "^4.0.0" + +postcss-merge-rules@^4.0.3: + version "4.0.3" + resolved "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-4.0.3.tgz#362bea4ff5a1f98e4075a713c6cb25aefef9a650" + integrity sha512-U7e3r1SbvYzO0Jr3UT/zKBVgYYyhAz0aitvGIYOYK5CPmkNih+WDSsS5tvPrJ8YMQYlEMvsZIiqmn7HdFUaeEQ== + dependencies: + browserslist "^4.0.0" + caniuse-api "^3.0.0" + cssnano-util-same-parent "^4.0.0" + postcss "^7.0.0" + postcss-selector-parser "^3.0.0" + vendors "^1.0.0" + +postcss-minify-font-values@^4.0.2: + version "4.0.2" + resolved "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-4.0.2.tgz#cd4c344cce474343fac5d82206ab2cbcb8afd5a6" + integrity sha512-j85oO6OnRU9zPf04+PZv1LYIYOprWm6IA6zkXkrJXyRveDEuQggG6tvoy8ir8ZwjLxLuGfNkCZEQG7zan+Hbtg== + dependencies: + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-minify-gradients@^4.0.2: + version "4.0.2" + resolved "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-4.0.2.tgz#93b29c2ff5099c535eecda56c4aa6e665a663471" + integrity sha512-qKPfwlONdcf/AndP1U8SJ/uzIJtowHlMaSioKzebAXSG4iJthlWC9iSWznQcX4f66gIWX44RSA841HTHj3wK+Q== + dependencies: + cssnano-util-get-arguments "^4.0.0" + is-color-stop "^1.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-minify-params@^4.0.2: + version "4.0.2" + resolved "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-4.0.2.tgz#6b9cef030c11e35261f95f618c90036d680db874" + integrity sha512-G7eWyzEx0xL4/wiBBJxJOz48zAKV2WG3iZOqVhPet/9geefm/Px5uo1fzlHu+DOjT+m0Mmiz3jkQzVHe6wxAWg== + dependencies: + alphanum-sort "^1.0.0" + browserslist "^4.0.0" + cssnano-util-get-arguments "^4.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + uniqs "^2.0.0" + +postcss-minify-selectors@^4.0.2: + version "4.0.2" + resolved "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-4.0.2.tgz#e2e5eb40bfee500d0cd9243500f5f8ea4262fbd8" + integrity sha512-D5S1iViljXBj9kflQo4YutWnJmwm8VvIsU1GeXJGiG9j8CIg9zs4voPMdQDUmIxetUOh60VilsNzCiAFTOqu3g== + dependencies: + alphanum-sort "^1.0.0" + has "^1.0.0" + postcss "^7.0.0" + postcss-selector-parser "^3.0.0" + +postcss-modules-extract-imports@1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-1.1.0.tgz#b614c9720be6816eaee35fb3a5faa1dba6a05ddb" + integrity sha1-thTJcgvmgW6u41+zpfqh26agXds= + dependencies: + postcss "^6.0.1" + +postcss-modules-local-by-default@1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-1.2.0.tgz#f7d80c398c5a393fa7964466bd19500a7d61c069" + integrity sha1-99gMOYxaOT+nlkRmvRlQCn1hwGk= + dependencies: + css-selector-tokenizer "^0.7.0" + postcss "^6.0.1" + +postcss-modules-scope@1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-1.1.0.tgz#d6ea64994c79f97b62a72b426fbe6056a194bb90" + integrity sha1-1upkmUx5+XtipytCb75gVqGUu5A= + dependencies: + css-selector-tokenizer "^0.7.0" + postcss "^6.0.1" + +postcss-modules-values@1.3.0: + version "1.3.0" + resolved "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-1.3.0.tgz#ecffa9d7e192518389f42ad0e83f72aec456ea20" + integrity sha1-7P+p1+GSUYOJ9CrQ6D9yrsRW6iA= + dependencies: + icss-replace-symbols "^1.1.0" + postcss "^6.0.1" + +postcss-modules@^1.4.1: + version "1.5.0" + resolved "https://registry.npmjs.org/postcss-modules/-/postcss-modules-1.5.0.tgz#08da6ce43fcfadbc685a021fe6ed30ef929f0bcc" + integrity sha512-KiAihzcV0TxTTNA5OXreyIXctuHOfR50WIhqBpc8pe0Q5dcs/Uap9EVlifOI9am7zGGdGOJQ6B1MPYKo2UxgOg== + dependencies: + css-modules-loader-core "^1.1.0" + generic-names "^2.0.1" + lodash.camelcase "^4.3.0" + postcss "^7.0.1" + string-hash "^1.1.1" + +postcss-modules@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/postcss-modules/-/postcss-modules-2.0.0.tgz#473d0d7326651d8408585c2a154115d5cb36cce0" + integrity sha512-eqp+Bva+U2cwQO7dECJ8/V+X+uH1HduNeITB0CPPFAu6d/8LKQ32/j+p9rQ2YL1QytVcrNU0X+fBqgGmQIA1Rw== + dependencies: + css-modules-loader-core "^1.1.0" + generic-names "^2.0.1" + lodash.camelcase "^4.3.0" + postcss "^7.0.1" + string-hash "^1.1.1" + postcss-nesting@^7.0.0: version "7.0.1" resolved "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-7.0.1.tgz#b50ad7b7f0173e5b5e3880c3501344703e04c052" @@ -12976,6 +16960,96 @@ postcss-nesting@^7.0.0: dependencies: postcss "^7.0.2" +postcss-normalize-charset@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-4.0.1.tgz#8b35add3aee83a136b0471e0d59be58a50285dd4" + integrity sha512-gMXCrrlWh6G27U0hF3vNvR3w8I1s2wOBILvA87iNXaPvSNo5uZAMYsZG7XjCUf1eVxuPfyL4TJ7++SGZLc9A3g== + dependencies: + postcss "^7.0.0" + +postcss-normalize-display-values@^4.0.2: + version "4.0.2" + resolved "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-4.0.2.tgz#0dbe04a4ce9063d4667ed2be476bb830c825935a" + integrity sha512-3F2jcsaMW7+VtRMAqf/3m4cPFhPD3EFRgNs18u+k3lTJJlVe7d0YPO+bnwqo2xg8YiRpDXJI2u8A0wqJxMsQuQ== + dependencies: + cssnano-util-get-match "^4.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-normalize-positions@^4.0.2: + version "4.0.2" + resolved "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-4.0.2.tgz#05f757f84f260437378368a91f8932d4b102917f" + integrity sha512-Dlf3/9AxpxE+NF1fJxYDeggi5WwV35MXGFnnoccP/9qDtFrTArZ0D0R+iKcg5WsUd8nUYMIl8yXDCtcrT8JrdA== + dependencies: + cssnano-util-get-arguments "^4.0.0" + has "^1.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-normalize-repeat-style@^4.0.2: + version "4.0.2" + resolved "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-4.0.2.tgz#c4ebbc289f3991a028d44751cbdd11918b17910c" + integrity sha512-qvigdYYMpSuoFs3Is/f5nHdRLJN/ITA7huIoCyqqENJe9PvPmLhNLMu7QTjPdtnVf6OcYYO5SHonx4+fbJE1+Q== + dependencies: + cssnano-util-get-arguments "^4.0.0" + cssnano-util-get-match "^4.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-normalize-string@^4.0.2: + version "4.0.2" + resolved "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-4.0.2.tgz#cd44c40ab07a0c7a36dc5e99aace1eca4ec2690c" + integrity sha512-RrERod97Dnwqq49WNz8qo66ps0swYZDSb6rM57kN2J+aoyEAJfZ6bMx0sx/F9TIEX0xthPGCmeyiam/jXif0eA== + dependencies: + has "^1.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-normalize-timing-functions@^4.0.2: + version "4.0.2" + resolved "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-4.0.2.tgz#8e009ca2a3949cdaf8ad23e6b6ab99cb5e7d28d9" + integrity sha512-acwJY95edP762e++00Ehq9L4sZCEcOPyaHwoaFOhIwWCDfik6YvqsYNxckee65JHLKzuNSSmAdxwD2Cud1Z54A== + dependencies: + cssnano-util-get-match "^4.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-normalize-unicode@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-4.0.1.tgz#841bd48fdcf3019ad4baa7493a3d363b52ae1cfb" + integrity sha512-od18Uq2wCYn+vZ/qCOeutvHjB5jm57ToxRaMeNuf0nWVHaP9Hua56QyMF6fs/4FSUnVIw0CBPsU0K4LnBPwYwg== + dependencies: + browserslist "^4.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-normalize-url@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-4.0.1.tgz#10e437f86bc7c7e58f7b9652ed878daaa95faae1" + integrity sha512-p5oVaF4+IHwu7VpMan/SSpmpYxcJMtkGppYf0VbdH5B6hN8YNmVyJLuY9FmLQTzY3fag5ESUUHDqM+heid0UVA== + dependencies: + is-absolute-url "^2.0.0" + normalize-url "^3.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-normalize-whitespace@^4.0.2: + version "4.0.2" + resolved "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-4.0.2.tgz#bf1d4070fe4fcea87d1348e825d8cc0c5faa7d82" + integrity sha512-tO8QIgrsI3p95r8fyqKV+ufKlSHh9hMJqACqbv2XknufqEDhDvbguXGBBqxw9nsQoXWf0qOqppziKJKHMD4GtA== + dependencies: + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-ordered-values@^4.1.2: + version "4.1.2" + resolved "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-4.1.2.tgz#0cf75c820ec7d5c4d280189559e0b571ebac0eee" + integrity sha512-2fCObh5UanxvSxeXrtLtlwVThBvHn6MQcu4ksNT2tsaV2Fg76R2CV98W7wNSlX+5/pFwEyaDwKLLoEV7uRybAw== + dependencies: + cssnano-util-get-arguments "^4.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + postcss-overflow-shorthand@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/postcss-overflow-shorthand/-/postcss-overflow-shorthand-2.0.0.tgz#31ecf350e9c6f6ddc250a78f0c3e111f32dd4c30" @@ -13049,6 +17123,26 @@ postcss-pseudo-class-any-link@^6.0.0: postcss "^7.0.2" postcss-selector-parser "^5.0.0-rc.3" +postcss-reduce-initial@^4.0.3: + version "4.0.3" + resolved "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-4.0.3.tgz#7fd42ebea5e9c814609639e2c2e84ae270ba48df" + integrity sha512-gKWmR5aUulSjbzOfD9AlJiHCGH6AEVLaM0AV+aSioxUDd16qXP1PCh8d1/BGVvpdWn8k/HiK7n6TjeoXN1F7DA== + dependencies: + browserslist "^4.0.0" + caniuse-api "^3.0.0" + has "^1.0.0" + postcss "^7.0.0" + +postcss-reduce-transforms@^4.0.2: + version "4.0.2" + resolved "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-4.0.2.tgz#17efa405eacc6e07be3414a5ca2d1074681d4e29" + integrity sha512-EEVig1Q2QJ4ELpJXMZR8Vt5DQx8/mo+dGWSR7vWXqcob2gQLyQGsionYcGKATXvQzMPn6DSN1vTN7yFximdIAg== + dependencies: + cssnano-util-get-match "^4.0.0" + has "^1.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + postcss-replace-overflow-wrap@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/postcss-replace-overflow-wrap/-/postcss-replace-overflow-wrap-3.0.0.tgz#61b360ffdaedca84c7c918d2b0f0d0ea559ab01c" @@ -13079,6 +17173,15 @@ postcss-selector-not@^4.0.0: balanced-match "^1.0.0" postcss "^7.0.2" +postcss-selector-parser@^3.0.0: + version "3.1.2" + resolved "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-3.1.2.tgz#b310f5c4c0fdaf76f94902bbaa30db6aa84f5270" + integrity sha512-h7fJ/5uWuRVyOtkO45pnt1Ih40CEleeyCHzipqAZO2e5H20g25Y48uYnFUiShvY4rZWNJ/Bib/KVPmanaCtOhA== + dependencies: + dot-prop "^5.2.0" + indexes-of "^1.0.1" + uniq "^1.0.1" + postcss-selector-parser@^5.0.0-rc.3, postcss-selector-parser@^5.0.0-rc.4: version "5.0.0" resolved "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz#249044356697b33b64f1a8f7c80922dddee7195c" @@ -13096,6 +17199,34 @@ postcss-selector-parser@^6.0.2: cssesc "^3.0.0" util-deprecate "^1.0.2" +postcss-svgo@^4.0.3: + version "4.0.3" + resolved "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-4.0.3.tgz#343a2cdbac9505d416243d496f724f38894c941e" + integrity sha512-NoRbrcMWTtUghzuKSoIm6XV+sJdvZ7GZSc3wdBN0W19FTtp2ko8NqLsgoh/m9CzNhU3KLPvQmjIwtaNFkaFTvw== + dependencies: + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + svgo "^1.0.0" + +postcss-unique-selectors@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-4.0.1.tgz#9446911f3289bfd64c6d680f073c03b1f9ee4bac" + integrity sha512-+JanVaryLo9QwZjKrmJgkI4Fn8SBgRO6WXQBJi7KiAVPlmxikB5Jzc4EvXMT2H0/m0RjrVVm9rGNhZddm/8Spg== + dependencies: + alphanum-sort "^1.0.0" + postcss "^7.0.0" + uniqs "^2.0.0" + +postcss-value-parser@^3.0.0, postcss-value-parser@^3.3.1: + version "3.3.1" + resolved "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz#9ff822547e2893213cf1c30efa51ac5fd1ba8281" + integrity sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ== + +postcss-value-parser@^4.0.2: + version "4.2.0" + resolved "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514" + integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== + postcss-value-parser@^4.1.0: version "4.1.0" resolved "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.1.0.tgz#443f6a20ced6481a2bda4fa8532a6e55d789a2cb" @@ -13110,6 +17241,15 @@ postcss-values-parser@^2.0.0, postcss-values-parser@^2.0.1: indexes-of "^1.0.1" uniq "^1.0.1" +postcss@6.0.1: + version "6.0.1" + resolved "https://registry.npmjs.org/postcss/-/postcss-6.0.1.tgz#000dbd1f8eef217aa368b9a212c5fc40b2a8f3f2" + integrity sha1-AA29H47vIXqjaLmiEsX8QLKo8/I= + dependencies: + chalk "^1.1.3" + source-map "^0.5.6" + supports-color "^3.2.3" + postcss@7.0.32: version "7.0.32" resolved "https://registry.npmjs.org/postcss/-/postcss-7.0.32.tgz#4310d6ee347053da3433db2be492883d62cec59d" @@ -13119,7 +17259,16 @@ postcss@7.0.32: source-map "^0.6.1" supports-color "^6.1.0" -postcss@^7.0.0, postcss@^7.0.14, postcss@^7.0.17, postcss@^7.0.18, postcss@^7.0.2, postcss@^7.0.26, postcss@^7.0.31, postcss@^7.0.32, postcss@^7.0.5, postcss@^7.0.6: +postcss@^6.0.1: + version "6.0.23" + resolved "https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz#61c82cc328ac60e677645f979054eb98bc0e3324" + integrity sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag== + dependencies: + chalk "^2.4.1" + source-map "^0.6.1" + supports-color "^5.4.0" + +postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.14, postcss@^7.0.16, postcss@^7.0.17, postcss@^7.0.18, postcss@^7.0.2, postcss@^7.0.26, postcss@^7.0.27, postcss@^7.0.31, postcss@^7.0.32, postcss@^7.0.5, postcss@^7.0.6: version "7.0.39" resolved "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz#9624375d965630e2e1f2c02a935c82a59cb48309" integrity sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA== @@ -13164,6 +17313,11 @@ prepend-http@^1.0.0, prepend-http@^1.0.1: resolved "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" integrity sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw= +prepend-http@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897" + integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc= + prettier-linter-helpers@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" @@ -13171,6 +17325,11 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" +prettier@1.15.3: + version "1.15.3" + resolved "https://registry.npmjs.org/prettier/-/prettier-1.15.3.tgz#1feaac5bdd181237b54dbe65d874e02a1472786a" + integrity sha512-gAU9AGAPMaKb3NNSUUuhhFAS7SCO4ALTN4nRIn6PJ075Qd28Yn2Ig2ahEJWdJwJmlEBTUfC7mMUSFy8MwsOCfg== + prettier@2.2.1: version "2.2.1" resolved "https://registry.npmjs.org/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5" @@ -13201,6 +17360,15 @@ pretty-format@^26.0.0, pretty-format@^26.6.2: ansi-styles "^4.0.0" react-is "^17.0.1" +pretty-format@^27.0.0, pretty-format@^27.5.1: + version "27.5.1" + resolved "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz#2181879fdea51a7a5851fb39d920faa63f01d88e" + integrity sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ== + dependencies: + ansi-regex "^5.0.1" + ansi-styles "^5.0.0" + react-is "^17.0.1" + pretty-format@^27.0.2: version "27.4.6" resolved "https://registry.npmjs.org/pretty-format/-/pretty-format-27.4.6.tgz#1b784d2f53c68db31797b2348fa39b49e31846b7" @@ -13237,7 +17405,7 @@ private@~0.1.5: resolved "https://registry.npmjs.org/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" integrity sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg== -process-nextick-args@~2.0.0: +process-nextick-args@^2.0.0, process-nextick-args@~2.0.0: version "2.0.1" resolved "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== @@ -13265,6 +17433,25 @@ promise-retry@^2.0.1: err-code "^2.0.2" retry "^0.12.0" +promise.series@^0.2.0: + version "0.2.0" + resolved "https://registry.npmjs.org/promise.series/-/promise.series-0.2.0.tgz#2cc7ebe959fc3a6619c04ab4dbdc9e452d864bbd" + integrity sha1-LMfr6Vn8OmYZwEq029yeRS2GS70= + +promise@^7.1.1: + version "7.3.1" + resolved "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf" + integrity sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg== + dependencies: + asap "~2.0.3" + +promise@~7.0.1: + version "7.0.4" + resolved "https://registry.npmjs.org/promise/-/promise-7.0.4.tgz#363e84a4c36c8356b890fed62c91ce85d02ed539" + integrity sha1-Nj6EpMNsg1a4kP7WLJHOhdAu1Tk= + dependencies: + asap "~2.0.3" + promptly@^2: version "2.2.0" resolved "https://registry.npmjs.org/promptly/-/promptly-2.2.0.tgz#2a13fa063688a2a5983b161fff0108a07d26fc74" @@ -13295,6 +17482,15 @@ promzard@^0.3.0: dependencies: read "1" +prop-types-exact@^1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/prop-types-exact/-/prop-types-exact-1.2.0.tgz#825d6be46094663848237e3925a98c6e944e9869" + integrity sha512-K+Tk3Kd9V0odiXFP9fwDHUYRyvK3Nun3GVyPapSIs5OBkITAm15W0CPFD/YKTkMUAbc0b9CUwRQp2ybiBIq+eA== + dependencies: + has "^1.0.3" + object.assign "^4.1.0" + reflect.ownkeys "^0.2.0" + prop-types@^15.5.10, prop-types@^15.5.8: version "15.8.1" resolved "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5" @@ -13376,6 +17572,14 @@ public-encrypt@^4.0.0: randombytes "^2.0.1" safe-buffer "^5.1.2" +pump@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz#12399add6e4cf7526d973cbc8b5ce2e2908b3909" + integrity sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA== + dependencies: + end-of-stream "^1.1.0" + once "^1.3.1" + pump@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" @@ -13384,12 +17588,21 @@ pump@^3.0.0: end-of-stream "^1.1.0" once "^1.3.1" +pumpify@^1.3.5: + version "1.5.1" + resolved "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz#36513be246ab27570b1a374a5ce278bfd74370ce" + integrity sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ== + dependencies: + duplexify "^3.6.0" + inherits "^2.0.3" + pump "^2.0.0" + punycode@1.3.2: version "1.3.2" resolved "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" integrity sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0= -punycode@^1.2.4: +punycode@^1.2.4, punycode@^1.3.2: version "1.4.1" resolved "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" integrity sha1-wNWmOycYgArY4esPpSachN1BhF4= @@ -13399,7 +17612,7 @@ punycode@^2.1.0, punycode@^2.1.1: resolved "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== -q@^1.5.1: +q@^1.1.2, q@^1.5.1: version "1.5.1" resolved "https://registry.npmjs.org/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7" integrity sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc= @@ -13480,7 +17693,27 @@ raf-schd@^4.0.2: resolved "https://registry.npmjs.org/raf-schd/-/raf-schd-4.0.3.tgz#5d6c34ef46f8b2a0e880a8fcdb743efc5bfdbc1a" integrity sha512-tQkJl2GRWh83ui2DiPTJz9wEiMN20syf+5oKfB03yYP7ioZcJwsIK8FjrtLwH1m7C7e+Tt2yYBlrOpdT+dyeIQ== -randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5: +raf@^3.4.1: + version "3.4.1" + resolved "https://registry.npmjs.org/raf/-/raf-3.4.1.tgz#0742e99a4a6552f445d73e3ee0328af0ff1ede39" + integrity sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA== + dependencies: + performance-now "^2.1.0" + +railroad-diagrams@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/railroad-diagrams/-/railroad-diagrams-1.0.0.tgz#eb7e6267548ddedfb899c1b90e57374559cddb7e" + integrity sha1-635iZ1SN3t+4mcG5Dlc3RVnN234= + +randexp@0.4.6: + version "0.4.6" + resolved "https://registry.npmjs.org/randexp/-/randexp-0.4.6.tgz#e986ad5e5e31dae13ddd6f7b3019aa7c87f60ca3" + integrity sha512-80WNmd9DA0tmZrw9qQa62GPPWfuXJknrmVmLcxvq4uZBdYqb1wYoKTmnlGUchvVWe0XiLupYkBoXVOxz3C8DYQ== + dependencies: + discontinuous-range "1.0.0" + ret "~0.1.10" + +randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5, randombytes@^2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== @@ -13495,6 +17728,11 @@ randomfill@^1.0.3: randombytes "^2.0.5" safe-buffer "^5.1.0" +range-parser@1.2.0: + version "1.2.0" + resolved "https://registry.npmmirror.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e" + integrity sha512-kA5WQoNVo4t9lNx2kQNFCxKeBl5IbbSNBl1M/tLkw9WCn+hxNBAW5Qh8gdhs63CJnhjJ2zQWFoqPJP2sK1AV5A== + raw-body@^2.2.0, raw-body@^2.3.3: version "2.4.2" resolved "https://registry.npmjs.org/raw-body/-/raw-body-2.4.2.tgz#baf3e9c21eebced59dd6533ac872b71f7b61cb32" @@ -13957,7 +18195,7 @@ rc-virtual-list@^3.2.0, rc-virtual-list@^3.4.1: rc-resize-observer "^1.0.0" rc-util "^5.0.7" -rc@^1.0.1, rc@^1.1.6, rc@^1.2.7: +rc@^1.0.1, rc@^1.1.6, rc@^1.2.8: version "1.2.8" resolved "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw== @@ -14012,7 +18250,7 @@ react-dom-factories@^1.0.0: resolved "https://registry.npmjs.org/react-dom-factories/-/react-dom-factories-1.0.2.tgz#eb7705c4db36fb501b3aa38ff759616aa0ff96e0" integrity sha1-63cFxNs2+1AbOqOP91lhaqD/luA= -react-dom@16.x: +react-dom@16.x, react-dom@^16.8.6: version "16.14.0" resolved "https://registry.npmjs.org/react-dom/-/react-dom-16.14.0.tgz#7ad838ec29a777fb3c75c3a190f661cf92ab8b89" integrity sha512-1gCeQXDLoIqMgqD3IO2Ah9bnf0w9kzhwN5q4FGnHZ67hBm9yePzB5JJAIQCc8x3pFnNlwFq4RidZggNAAkzWWw== @@ -14022,7 +18260,7 @@ react-dom@16.x: prop-types "^15.6.2" scheduler "^0.19.1" -react-dom@17.x, react-dom@^17.0.1: +react-dom@17.x: version "17.0.2" resolved "https://registry.npmjs.org/react-dom/-/react-dom-17.0.2.tgz#ecffb6845e3ad8dbfcdc498f0d0a939736502c23" integrity sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA== @@ -14071,7 +18309,7 @@ react-image-lightbox@^5.1.4: prop-types "^15.7.2" react-modal "^3.11.1" -react-is@^16.12.0, react-is@^16.13.1, react-is@^16.6.0, react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.4: +react-is@^16.12.0, react-is@^16.13.1, react-is@^16.6.0, react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.4, react-is@^16.8.6: version "16.13.1" resolved "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== @@ -14226,7 +18464,17 @@ react-sticky-box@^0.9.3: "@babel/runtime" "^7.1.5" resize-observer-polyfill "^1.5.1" -react@16.x: +react-test-renderer@^16.0.0-0, react-test-renderer@^16.13.1: + version "16.14.0" + resolved "https://registry.npmjs.org/react-test-renderer/-/react-test-renderer-16.14.0.tgz#e98360087348e260c56d4fe2315e970480c228ae" + integrity sha512-L8yPjqPE5CZO6rKsKXRO/rVPiaCOy0tQQJbC+UjPNlobl5mad59lvPjwFsQHTvL03caVDIVr9x9/OSgDe6I5Eg== + dependencies: + object-assign "^4.1.1" + prop-types "^15.6.2" + react-is "^16.8.6" + scheduler "^0.19.1" + +react@16.x, react@^16.8.6: version "16.14.0" resolved "https://registry.npmjs.org/react/-/react-16.14.0.tgz#94d776ddd0aaa37da3eda8fc5b6b18a4c9a3114d" integrity sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g== @@ -14235,7 +18483,7 @@ react@16.x: object-assign "^4.1.1" prop-types "^15.6.2" -react@17.x, react@^17.0.1: +react@17.x: version "17.0.2" resolved "https://registry.npmjs.org/react/-/react-17.0.2.tgz#d0b5cc516d29eb3eee383f75b62864cfb6800037" integrity sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA== @@ -14373,7 +18621,7 @@ readable-stream@1.1.x: isarray "0.0.1" string_decoder "~0.10.x" -readable-stream@3, readable-stream@^3.0.0, readable-stream@^3.0.2, readable-stream@^3.4.0, readable-stream@^3.6.0: +"readable-stream@2 || 3", readable-stream@3, readable-stream@^3.0.0, readable-stream@^3.0.2, readable-stream@^3.6.0: version "3.6.0" resolved "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA== @@ -14382,7 +18630,7 @@ readable-stream@3, readable-stream@^3.0.0, readable-stream@^3.0.2, readable-stre string_decoder "^1.1.1" util-deprecate "^1.0.1" -readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.2.2, readable-stream@^2.3.3, readable-stream@^2.3.6, readable-stream@~2.3.6: +readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.3, readable-stream@^2.3.5, readable-stream@^2.3.6, readable-stream@~2.3.6: version "2.3.7" resolved "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57" integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw== @@ -14395,6 +18643,16 @@ readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.6, readable string_decoder "~1.1.1" util-deprecate "~1.0.1" +readable-stream@~1.0.31: + version "1.0.34" + resolved "https://registry.npmmirror.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c" + integrity sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg== + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.1" + isarray "0.0.1" + string_decoder "~0.10.x" + readdir-scoped-modules@^1.0.0: version "1.1.0" resolved "https://registry.npmjs.org/readdir-scoped-modules/-/readdir-scoped-modules-1.1.0.tgz#8d45407b4f870a0dcaebc0e28670d18e74514309" @@ -14405,6 +18663,15 @@ readdir-scoped-modules@^1.0.0: graceful-fs "^4.1.2" once "^1.3.0" +readdirp@^2.2.1: + version "2.2.1" + resolved "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz#0e87622a3325aa33e892285caf8b4e846529a525" + integrity sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ== + dependencies: + graceful-fs "^4.1.11" + micromatch "^3.1.10" + readable-stream "^2.0.2" + readdirp@~3.5.0: version "3.5.0" resolved "https://registry.npmjs.org/readdirp/-/readdirp-3.5.0.tgz#9ba74c019b15d365278d2e91bb8c48d7b4d42c9e" @@ -14467,18 +18734,35 @@ redux@^4.0.0, redux@^4.0.4: dependencies: "@babel/runtime" "^7.9.2" -regenerate-unicode-properties@^9.0.0: +reflect.ownkeys@^0.2.0: + version "0.2.0" + resolved "https://registry.npmjs.org/reflect.ownkeys/-/reflect.ownkeys-0.2.0.tgz#749aceec7f3fdf8b63f927a04809e90c5c0b3460" + integrity sha1-dJrO7H8/34tj+SegSAnpDFwLNGA= + +regenerate-unicode-properties@9.0.0, regenerate-unicode-properties@^9.0.0: version "9.0.0" resolved "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-9.0.0.tgz#54d09c7115e1f53dc2314a974b32c1c344efe326" integrity sha512-3E12UeNSPfjrgwjkR81m5J7Aw/T55Tu7nUyZVQYCKEOs+2dkxEY+DpPtZzO4YruuiPb7NkYLVcyJC4+zCbk5pA== dependencies: regenerate "^1.4.2" +regenerate-unicode-properties@^10.0.1: + version "10.0.1" + resolved "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.0.1.tgz#7f442732aa7934a3740c779bb9b3340dccc1fb56" + integrity sha512-vn5DU6yg6h8hP/2OkQo3K7uVILvY4iu0oI4t3HFa81UPkhGJwkRwM10JEc3upjdhHjs/k8GJY1sRBhk5sr69Bw== + dependencies: + regenerate "^1.4.2" + regenerate@^1.4.2: version "1.4.2" resolved "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a" integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A== +regenerator-runtime@0.13.2: + version "0.13.2" + resolved "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.2.tgz#32e59c9a6fb9b1a4aff09b4930ca2d4477343447" + integrity sha512-S/TQAZJO+D3m9xeN1WTI8dLKBBiRgXBlTJvbWjCThHWZj9EvHK70Ff50/tYj2J/fvBY6JtFVwRuazHN2E7M9BA== + regenerator-runtime@0.13.5: version "0.13.5" resolved "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz#d878a1d094b4306d10b9096484b33ebd55e26697" @@ -14489,7 +18773,7 @@ regenerator-runtime@^0.11.0: resolved "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg== -regenerator-runtime@^0.13.4, regenerator-runtime@^0.13.7: +regenerator-runtime@^0.13.2, regenerator-runtime@^0.13.4: version "0.13.9" resolved "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52" integrity sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA== @@ -14501,6 +18785,13 @@ regenerator-transform@^0.14.2: dependencies: "@babel/runtime" "^7.8.4" +regenerator-transform@^0.15.0: + version "0.15.0" + resolved "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.0.tgz#cbd9ead5d77fae1a48d957cf889ad0586adb6537" + integrity sha512-LsrGtPmbYg19bcPHwdtmXwbW+TqNvtY4riE3P83foeHRroMbH6/2ddFBfab3t7kbzc7v7p4wbkIecHImqt0QNg== + dependencies: + "@babel/runtime" "^7.8.4" + regex-not@^1.0.0, regex-not@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" @@ -14525,6 +18816,15 @@ regexp.prototype.flags@^1.3.1: call-bind "^1.0.2" define-properties "^1.1.3" +regexp.prototype.flags@^1.4.1: + version "1.4.3" + resolved "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz#87cab30f80f66660181a3bb7bf5981a872b367ac" + integrity sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + functions-have-names "^1.2.2" + regexpp@^3.0.0, regexpp@^3.1.0: version "3.2.0" resolved "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" @@ -14542,6 +18842,26 @@ regexpu-core@^4.7.1: unicode-match-property-ecmascript "^2.0.0" unicode-match-property-value-ecmascript "^2.0.0" +regexpu-core@^5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.0.1.tgz#c531122a7840de743dcf9c83e923b5560323ced3" + integrity sha512-CriEZlrKK9VJw/xQGJpQM5rY88BtuL8DM+AEwvcThHilbxiTAy8vq4iJnd2tqq8wLmjbGZzP7ZcKFjbGkmEFrw== + dependencies: + regenerate "^1.4.2" + regenerate-unicode-properties "^10.0.1" + regjsgen "^0.6.0" + regjsparser "^0.8.2" + unicode-match-property-ecmascript "^2.0.0" + unicode-match-property-value-ecmascript "^2.0.0" + +registry-auth-token@3.3.2: + version "3.3.2" + resolved "https://registry.npmmirror.com/registry-auth-token/-/registry-auth-token-3.3.2.tgz#851fd49038eecb586911115af845260eec983f20" + integrity sha512-JL39c60XlzCVgNrO+qq68FoNb56w/m7JYvGR2jT5iR1xBrUA3Mfx5Twk5rqTThPmQKMWydGmq8oFtDlxfrmxnQ== + dependencies: + rc "^1.1.6" + safe-buffer "^5.0.1" + registry-auth-token@^3.0.1: version "3.4.0" resolved "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.4.0.tgz#d7446815433f5d5ed6431cd5dca21048f66b397e" @@ -14550,18 +18870,37 @@ registry-auth-token@^3.0.1: rc "^1.1.6" safe-buffer "^5.0.1" -registry-url@^3.0.3: +registry-auth-token@^4.0.0: + version "4.2.1" + resolved "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.1.tgz#6d7b4006441918972ccd5fedcd41dc322c79b250" + integrity sha512-6gkSb4U6aWJB4SF2ZvLb76yCBjcvufXBqvvEx1HbmKPkutswjW1xNVRY0+daljIYRbogN7O0etYSlbiaEQyMyw== + dependencies: + rc "^1.2.8" + +registry-url@3.1.0, registry-url@^3.0.3: version "3.1.0" resolved "https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz#3d4ef870f73dde1d77f0cf9a381432444e174942" integrity sha1-PU74cPc93h138M+aOBQyRE4XSUI= dependencies: rc "^1.0.1" +registry-url@^5.0.0: + version "5.1.0" + resolved "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz#e98334b50d5434b81136b44ec638d9c2009c5009" + integrity sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw== + dependencies: + rc "^1.2.8" + regjsgen@^0.5.2: version "0.5.2" resolved "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.2.tgz#92ff295fb1deecbf6ecdab2543d207e91aa33733" integrity sha512-OFFT3MfrH90xIW8OOSyUrk6QHD5E9JOTeGodiJeBS3J6IwlgzJMNE/1bZklWz5oTg+9dCMyEetclvCVXOPoN3A== +regjsgen@^0.6.0: + version "0.6.0" + resolved "https://registry.npmjs.org/regjsgen/-/regjsgen-0.6.0.tgz#83414c5354afd7d6627b16af5f10f41c4e71808d" + integrity sha512-ozE883Uigtqj3bx7OhL1KNbCzGyW2NQZPl6Hs09WTvCuZD5sTI4JY58bkbQWa/Y9hxIsvJ3M8Nbf7j54IqeZbA== + regjsparser@^0.7.0: version "0.7.0" resolved "https://registry.npmjs.org/regjsparser/-/regjsparser-0.7.0.tgz#a6b667b54c885e18b52554cb4960ef71187e9968" @@ -14569,6 +18908,13 @@ regjsparser@^0.7.0: dependencies: jsesc "~0.5.0" +regjsparser@^0.8.2: + version "0.8.4" + resolved "https://registry.npmjs.org/regjsparser/-/regjsparser-0.8.4.tgz#8a14285ffcc5de78c5b95d62bbf413b6bc132d5f" + integrity sha512-J3LABycON/VNEu3abOviqGHuB/LOtOQj8SKmfP9anY5GfAVw/SPjwzSjxGjbZXIxbGfqTHtJw58C2Li/WkStmA== + dependencies: + jsesc "~0.5.0" + rehype-autolink-headings@^4.0.0: version "4.0.0" resolved "https://registry.npmjs.org/rehype-autolink-headings/-/rehype-autolink-headings-4.0.0.tgz#9d5d78c9fb9c787b40efdc95e99cbeb573133e47" @@ -14651,6 +18997,23 @@ remark-stringify@^9.0.0: dependencies: mdast-util-to-markdown "^0.6.0" +remove-bom-buffer@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/remove-bom-buffer/-/remove-bom-buffer-3.0.0.tgz#c2bf1e377520d324f623892e33c10cac2c252b53" + integrity sha512-8v2rWhaakv18qcvNeli2mZ/TMTL2nEyAKRvzo1WtnZBl15SHyEhrCu2/xKlJyUFKHiHgfXIyuY6g2dObJJycXQ== + dependencies: + is-buffer "^1.1.5" + is-utf8 "^0.2.1" + +remove-bom-stream@^1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/remove-bom-stream/-/remove-bom-stream-1.2.0.tgz#05f1a593f16e42e1fb90ebf59de8e569525f9523" + integrity sha1-BfGlk/FuQuH7kOv1nejlaVJflSM= + dependencies: + remove-bom-buffer "^3.0.0" + safe-buffer "^5.1.0" + through2 "^2.0.3" + remove-trailing-separator@^1.0.1: version "1.1.0" resolved "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" @@ -14661,7 +19024,7 @@ repeat-element@^1.1.2: resolved "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz#be681520847ab58c7568ac75fbfad28ed42d39e9" integrity sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ== -repeat-string@^1.0.0, repeat-string@^1.6.1: +repeat-string@^1.0.0, repeat-string@^1.5.2, repeat-string@^1.6.1: version "1.6.1" resolved "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc= @@ -14673,6 +19036,11 @@ repeating@^2.0.0: dependencies: is-finite "^1.0.0" +replace-ext@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.1.tgz#2d6d996d04a15855d967443631dd5f77825b016a" + integrity sha512-yD5BHCe7quCgBph4rMQ+0KkIRKwWCrHDOX1p1Gp6HwjPM5kVoCdKGNhN7ydqqsX6lJEnQDKZ/tFMiEdQ1dvPEw== + request-promise-core@1.1.4: version "1.1.4" resolved "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.4.tgz#3eedd4223208d419867b78ce815167d10593a22f" @@ -14689,7 +19057,7 @@ request-promise-native@^1.0.5: stealthy-require "^1.1.1" tough-cookie "^2.3.3" -request@^2.87.0, request@^2.88.0, request@^2.88.2: +request@^2.83.0, request@^2.87.0, request@^2.88.0, request@^2.88.2: version "2.88.2" resolved "https://registry.npmjs.org/request/-/request-2.88.2.tgz#d73c918731cb5a87da047e207234146f664d12b3" integrity sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw== @@ -14739,11 +19107,28 @@ require-main-filename@^2.0.0: resolved "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== +reselect@^3.0.1: + version "3.0.1" + resolved "https://registry.npmjs.org/reselect/-/reselect-3.0.1.tgz#efdaa98ea7451324d092b2b2163a6a1d7a9a2147" + integrity sha1-79qpjqdFEyTQkrKyFjpqHXqaIUc= + +reserved-words@^0.1.2: + version "0.1.2" + resolved "https://registry.npmjs.org/reserved-words/-/reserved-words-0.1.2.tgz#00a0940f98cd501aeaaac316411d9adc52b31ab1" + integrity sha1-AKCUD5jNUBrqqsMWQR2a3FKzGrE= + resize-observer-polyfill@^1.5.0, resize-observer-polyfill@^1.5.1: version "1.5.1" resolved "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz#0e9020dd3d21024458d4ebd27e23e40269810464" integrity sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg== +resolve-cwd@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-2.0.0.tgz#00a9f7387556e27038eae232caa372a6a59b665a" + integrity sha1-AKn3OHVW4nA46uIyyqNypqWbZlo= + dependencies: + resolve-from "^3.0.0" + resolve-cwd@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d" @@ -14773,6 +19158,13 @@ resolve-global@1.0.0, resolve-global@^1.0.0: dependencies: global-dirs "^0.1.1" +resolve-options@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/resolve-options/-/resolve-options-1.1.0.tgz#32bb9e39c06d67338dc9378c0d6d6074566ad131" + integrity sha1-MrueOcBtZzONyTeMDW1gdFZq0TE= + dependencies: + value-or-function "^3.0.0" + resolve-path@^1.4.0: version "1.4.0" resolved "https://registry.npmjs.org/resolve-path/-/resolve-path-1.4.0.tgz#c4bda9f5efb2fce65247873ab36bb4d834fe16f7" @@ -14791,6 +19183,18 @@ resolve-url@^0.2.1: resolved "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= +resolve@1.1.7, resolve@~1.1.6: + version "1.1.7" + resolved "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" + integrity sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs= + +resolve@1.17.0: + version "1.17.0" + resolved "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz#b25941b54968231cc2d1bb76a79cb7f2c0bf8444" + integrity sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w== + dependencies: + path-parse "^1.0.6" + resolve@^1.0.0: version "1.21.1" resolved "https://registry.npmjs.org/resolve/-/resolve-1.21.1.tgz#1a88c73f5ca8ab0aabc8b888c4170de26c92c4cc" @@ -14808,6 +19212,15 @@ resolve@^1.10.0, resolve@^1.10.1, resolve@^1.12.0, resolve@^1.14.2, resolve@^1.1 is-core-module "^2.2.0" path-parse "^1.0.6" +resolve@^1.16.1, resolve@^1.17.0, resolve@^1.3.2, resolve@^1.4.0, resolve@^1.5.0, resolve@^1.8.1: + version "1.22.0" + resolved "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz#5e0b8c67c15df57a89bdbabe603a002f21731198" + integrity sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw== + dependencies: + is-core-module "^2.8.1" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" + resolve@^2.0.0-next.3: version "2.0.0-next.3" resolved "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.3.tgz#d41016293d4a8586a39ca5d9b5f15cbea1f55e46" @@ -14816,6 +19229,13 @@ resolve@^2.0.0-next.3: is-core-module "^2.2.0" path-parse "^1.0.6" +responselike@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7" + integrity sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec= + dependencies: + lowercase-keys "^1.0.0" + restore-cursor@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" @@ -14854,7 +19274,31 @@ reusify@^1.0.4: resolved "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== -rimraf@2, rimraf@^2.6.1, rimraf@^2.6.3: +rgb-regex@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/rgb-regex/-/rgb-regex-1.0.1.tgz#c0e0d6882df0e23be254a475e8edd41915feaeb1" + integrity sha1-wODWiC3w4jviVKR16O3UGRX+rrE= + +rgba-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/rgba-regex/-/rgba-regex-1.0.0.tgz#43374e2e2ca0968b0ef1523460b7d730ff22eeb3" + integrity sha1-QzdOLiyglosO8VI0YLfXMP8i7rM= + +right-align@^0.1.1: + version "0.1.3" + resolved "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" + integrity sha1-YTObci/mo1FWiSENJOFMlhSGE+8= + dependencies: + align-text "^0.1.1" + +rimraf@2.6.3, rimraf@~2.6.2: + version "2.6.3" + resolved "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" + integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== + dependencies: + glob "^7.1.3" + +rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.2, rimraf@^2.6.3: version "2.7.1" resolved "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== @@ -14868,13 +19312,6 @@ rimraf@^3.0.0, rimraf@^3.0.2: dependencies: glob "^7.1.3" -rimraf@~2.6.2: - version "2.6.3" - resolved "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" - integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== - dependencies: - glob "^7.1.3" - ripemd160@^2.0.0, ripemd160@^2.0.1: version "2.0.2" resolved "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" @@ -14883,6 +19320,125 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: hash-base "^3.0.0" inherits "^2.0.1" +rollup-plugin-commonjs@^9.2.0: + version "9.3.4" + resolved "https://registry.npmjs.org/rollup-plugin-commonjs/-/rollup-plugin-commonjs-9.3.4.tgz#2b3dddbbbded83d45c36ff101cdd29e924fd23bc" + integrity sha512-DTZOvRoiVIHHLFBCL4pFxOaJt8pagxsVldEXBOn6wl3/V21wVaj17HFfyzTsQUuou3sZL3lEJZVWKPFblJfI6w== + dependencies: + estree-walker "^0.6.0" + magic-string "^0.25.2" + resolve "^1.10.0" + rollup-pluginutils "^2.6.0" + +rollup-plugin-node-resolve@4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-4.0.0.tgz#9bc6b8205e9936cc0e26bba2415f1ecf1e64d9b2" + integrity sha512-7Ni+/M5RPSUBfUaP9alwYQiIKnKeXCOHiqBpKUl9kwp3jX5ZJtgXAait1cne6pGEVUUztPD6skIKH9Kq9sNtfw== + dependencies: + builtin-modules "^3.0.0" + is-module "^1.0.0" + resolve "^1.8.1" + +rollup-plugin-postcss@2.0.3: + version "2.0.3" + resolved "https://registry.npmjs.org/rollup-plugin-postcss/-/rollup-plugin-postcss-2.0.3.tgz#1fd5b7e1fc7545cb0084d9c99d11b259e41a05e6" + integrity sha512-d12oKl6za/GGXmlytzVPzzTdPCKgti/Kq2kNhtfm5vv9hkNbyrTvizMBm6zZ5rRWX/sIWl3znjIJ8xy6Hofoeg== + dependencies: + chalk "^2.4.2" + concat-with-sourcemaps "^1.0.5" + cssnano "^4.1.8" + import-cwd "^2.1.0" + p-queue "^2.4.2" + pify "^3.0.0" + postcss "^7.0.14" + postcss-load-config "^2.0.0" + postcss-modules "^1.4.1" + promise.series "^0.2.0" + reserved-words "^0.1.2" + resolve "^1.5.0" + rollup-pluginutils "^2.0.1" + style-inject "^0.3.0" + +rollup-plugin-postcss@3.1.8: + version "3.1.8" + resolved "https://registry.npmjs.org/rollup-plugin-postcss/-/rollup-plugin-postcss-3.1.8.tgz#d1bcaf8eb0fcb0936e3684c22dd8628d13a82fd1" + integrity sha512-JHnGfW8quNc6ePxEkZ05HEZ1YiRxDgY9RKEetMfsrwxR2kh/d90OVScTc6b1c2Q17Cs/5TRYL+1uddG21lQe3w== + dependencies: + chalk "^4.0.0" + concat-with-sourcemaps "^1.1.0" + cssnano "^4.1.10" + import-cwd "^3.0.0" + p-queue "^6.3.0" + pify "^5.0.0" + postcss "^7.0.27" + postcss-load-config "^2.1.0" + postcss-modules "^2.0.0" + promise.series "^0.2.0" + resolve "^1.16.1" + rollup-pluginutils "^2.8.2" + safe-identifier "^0.4.1" + style-inject "^0.3.0" + +rollup-plugin-replace@^2.1.0: + version "2.2.0" + resolved "https://registry.npmjs.org/rollup-plugin-replace/-/rollup-plugin-replace-2.2.0.tgz#f41ae5372e11e7a217cde349c8b5d5fd115e70e3" + integrity sha512-/5bxtUPkDHyBJAKketb4NfaeZjL5yLZdeUihSfbF2PQMz+rSTEb8ARKoOl3UBT4m7/X+QOXJo3sLTcq+yMMYTA== + dependencies: + magic-string "^0.25.2" + rollup-pluginutils "^2.6.0" + +rollup-plugin-terser@7.0.2: + version "7.0.2" + resolved "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz#e8fbba4869981b2dc35ae7e8a502d5c6c04d324d" + integrity sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ== + dependencies: + "@babel/code-frame" "^7.10.4" + jest-worker "^26.2.1" + serialize-javascript "^4.0.0" + terser "^5.0.0" + +rollup-plugin-typescript2@0.29.0: + version "0.29.0" + resolved "https://registry.npmjs.org/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.29.0.tgz#b7ad83f5241dbc5bdf1e98d9c3fca005ffe39e1a" + integrity sha512-YytahBSZCIjn/elFugEGQR5qTsVhxhUwGZIsA9TmrSsC88qroGo65O5HZP/TTArH2dm0vUmYWhKchhwi2wL9bw== + dependencies: + "@rollup/pluginutils" "^3.1.0" + find-cache-dir "^3.3.1" + fs-extra "8.1.0" + resolve "1.17.0" + tslib "2.0.1" + +rollup-pluginutils@^2.0.1, rollup-pluginutils@^2.6.0, rollup-pluginutils@^2.8.2: + version "2.8.2" + resolved "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz#72f2af0748b592364dbd3389e600e5a9444a351e" + integrity sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ== + dependencies: + estree-walker "^0.6.1" + +rollup@1.1.2: + version "1.1.2" + resolved "https://registry.npmjs.org/rollup/-/rollup-1.1.2.tgz#8d094b85683b810d0c05a16bd7618cf70d48eba7" + integrity sha512-OkdMxqMl8pWoQc5D8y1cIinYQPPLV8ZkfLgCzL6SytXeNA2P7UHynEQXI9tYxuAjAMsSyvRaWnyJDLHMxq0XAg== + dependencies: + "@types/estree" "0.0.39" + "@types/node" "*" + acorn "^6.0.5" + +rollup@2.33.3: + version "2.33.3" + resolved "https://registry.npmjs.org/rollup/-/rollup-2.33.3.tgz#ae72ce31f992b09a580072951bfea76e9df17342" + integrity sha512-RpayhPTe4Gu/uFGCmk7Gp5Z9Qic2VsqZ040G+KZZvsZYdcuWaJg678JeDJJvJeEQXminu24a2au+y92CUWVd+w== + optionalDependencies: + fsevents "~2.1.2" + +rst-selector-parser@^2.2.3: + version "2.2.3" + resolved "https://registry.npmjs.org/rst-selector-parser/-/rst-selector-parser-2.2.3.tgz#81b230ea2fcc6066c89e3472de794285d9b03d91" + integrity sha1-gbIw6i/MYGbInjRy3nlChdmwPZE= + dependencies: + lodash.flattendeep "^4.4.0" + nearley "^2.7.10" + rsvp@^4.8.4: version "4.8.5" resolved "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz#c8f155311d167f68f21e168df71ec5b083113734" @@ -14922,6 +19478,11 @@ safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== +safe-identifier@^0.4.1: + version "0.4.2" + resolved "https://registry.npmjs.org/safe-identifier/-/safe-identifier-0.4.2.tgz#cf6bfca31c2897c588092d1750d30ef501d59fcb" + integrity sha512-6pNbSMW6OhAi9j+N8V+U715yBQsaWJ7eyEUaOrawX+isg5ZxhUlV1NipNtgaKHmFGiABwt+ZF04Ii+3Xjkg+8w== + safe-regex@^1.1.0: version "1.1.0" resolved "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" @@ -14954,18 +19515,11 @@ sax@1.2.1: resolved "https://registry.npmjs.org/sax/-/sax-1.2.1.tgz#7b8e656190b228e81a66aea748480d828cd2d37a" integrity sha1-e45lYZCyKOgaZq6nSEgNgozS03o= -sax@>=0.6.0, sax@^1.2.4: +sax@>=0.6.0, sax@^1.2.4, sax@~1.2.4: version "1.2.4" resolved "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== -saxes@^3.1.9: - version "3.1.11" - resolved "https://registry.npmjs.org/saxes/-/saxes-3.1.11.tgz#d59d1fd332ec92ad98a2e0b2ee644702384b1c5b" - integrity sha512-Ydydq3zC+WYDJK1+gRxRapLIED9PWeSuuS41wqyoRmzvhhh9nc+QQrVMKJYzJFULazeGhzSV0QleN2wD3boh2g== - dependencies: - xmlchars "^2.1.1" - saxes@^5.0.1: version "5.0.1" resolved "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz#eebab953fa3b7608dbe94e5dadb15c888fa6696d" @@ -15040,12 +19594,17 @@ semver-diff@^2.0.0: dependencies: semver "^5.0.3" -"semver@2 || 3 || 4 || 5", semver@^5.0.1, semver@^5.0.3, semver@^5.1.0, semver@^5.3.0, semver@^5.4.1, semver@^5.5.0, semver@^5.6.0, semver@^5.7.1: +"semver@2 || 3 || 4 || 5", semver@^5.0.1, semver@^5.0.3, semver@^5.1.0, semver@^5.3.0, semver@^5.4.1, semver@^5.5.0, semver@^5.5.1, semver@^5.6.0, semver@^5.7.0, semver@^5.7.1: version "5.7.1" resolved "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== -semver@6.3.0, semver@^6.0.0, semver@^6.1.0, semver@^6.1.1, semver@^6.1.2, semver@^6.3.0: +semver@6.1.1: + version "6.1.1" + resolved "https://registry.npmjs.org/semver/-/semver-6.1.1.tgz#53f53da9b30b2103cd4f15eab3a18ecbcb210c9b" + integrity sha512-rWYq2e5iYW+fFe/oPPtYJxYgjBm8sC4rmoGdUOgBB7VnwKt6HrL793l2voH1UlsyYZpJ4g0wfjnTEO1s1NP2eQ== + +semver@6.3.0, semver@^6.0.0, semver@^6.1.0, semver@^6.1.1, semver@^6.1.2, semver@^6.2.0, semver@^6.3.0: version "6.3.0" resolved "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== @@ -15062,11 +19621,6 @@ semver@7.3.5, semver@7.x, semver@^7.1.1, semver@^7.1.3, semver@^7.2, semver@^7.2 dependencies: lru-cache "^6.0.0" -semver@~5.3.0: - version "5.3.0" - resolved "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" - integrity sha1-myzl094C0XxgEq0yaqa00M9U+U8= - semver@~7.2.0: version "7.2.3" resolved "https://registry.npmjs.org/semver/-/semver-7.2.3.tgz#3641217233c6382173c76bf2c7ecd1e1c16b0d8a" @@ -15102,6 +19656,42 @@ sequelize@^6.9.0: validator "^13.7.0" wkx "^0.5.0" +serialize-javascript@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz#b525e1238489a5ecfc42afacc3fe99e666f4b1aa" + integrity sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw== + dependencies: + randombytes "^2.1.0" + +serve-handler@6.1.3: + version "6.1.3" + resolved "https://registry.npmmirror.com/serve-handler/-/serve-handler-6.1.3.tgz#1bf8c5ae138712af55c758477533b9117f6435e8" + integrity sha512-FosMqFBNrLyeiIDvP1zgO6YoTzFYHxLDEIavhlmQ+knB2Z7l1t+kGLHkZIDN7UVWqQAmKI3D20A6F6jo3nDd4w== + dependencies: + bytes "3.0.0" + content-disposition "0.5.2" + fast-url-parser "1.1.3" + mime-types "2.1.18" + minimatch "3.0.4" + path-is-inside "1.0.2" + path-to-regexp "2.2.1" + range-parser "1.2.0" + +serve@^13.0.2: + version "13.0.2" + resolved "https://registry.npmmirror.com/serve/-/serve-13.0.2.tgz#b19ccb854dfdf3085613cd3a4033c7807aeaf85b" + integrity sha512-71R6fKvNgKrqARAag6lYJNnxDzpH7DCNrMuvPY5PLVaC2PDhJsGTj/34o4o4tPWhTuLgEXqvgnAWbATQ9zGZTQ== + dependencies: + "@zeit/schemas" "2.6.0" + ajv "6.12.6" + arg "2.0.0" + boxen "5.1.2" + chalk "2.4.1" + clipboardy "2.3.0" + compression "1.7.3" + serve-handler "6.1.3" + update-check "1.5.2" + set-blocking@^2.0.0, set-blocking@~2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" @@ -15200,6 +19790,27 @@ signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3: resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.5.tgz#9e3e8cc0c75a99472b44321033a7702e7738252f" integrity sha512-KWcOiKeQj6ZyXx7zq4YxSMgHRlod4czeBQZrPb8OKcohcqAXShm7E20kEMle9WBt26hFcAf0qLOcp5zmY7kOqQ== +signal-exit@^3.0.7: + version "3.0.7" + resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" + integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== + +signale@1.4.0, signale@^1.3.0: + version "1.4.0" + resolved "https://registry.npmjs.org/signale/-/signale-1.4.0.tgz#c4be58302fb0262ac00fc3d886a7c113759042f1" + integrity sha512-iuh+gPf28RkltuJC7W5MRi6XAjTDCAPC/prJUpQoG4vIP3MJZ+GTydVnodXA7pwvTKb2cA0m9OFZW/cdWy/I/w== + dependencies: + chalk "^2.3.2" + figures "^2.0.0" + pkg-conf "^2.1.0" + +simple-swizzle@^0.2.2: + version "0.2.2" + resolved "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz#a4da6b635ffcccca33f70d17cb92592de95e557a" + integrity sha1-pNprY1/8zMoz9w0Xy5JZLeleVXo= + dependencies: + is-arrayish "^0.3.1" + sisteransi@^1.0.0, sisteransi@^1.0.5: version "1.0.5" resolved "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed" @@ -15215,7 +19826,7 @@ sitemap@^6.3.3: arg "^5.0.0" sax "^1.2.4" -slash2@^2.0.0: +slash2@2.0.0, slash2@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/slash2/-/slash2-2.0.0.tgz#f4e0a11708b8545b912695981cf7096f52c63487" integrity sha512-7ElvBydJPi3MHU/KEOblFSbO/skl4Z69jKkFCpYIYVOMSIZsKi4gYU43HGeZPmjxCXrHekoDAAewphPQNnsqtA== @@ -15372,6 +19983,14 @@ source-map-resolve@^0.5.0, source-map-resolve@^0.5.2: source-map-url "^0.4.0" urix "^0.1.0" +source-map-resolve@^0.6.0: + version "0.6.0" + resolved "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz#3d9df87e236b53f16d01e58150fc7711138e5ed2" + integrity sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w== + dependencies: + atob "^2.1.2" + decode-uri-component "^0.2.0" + source-map-support@0.5.19: version "0.5.19" resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" @@ -15401,12 +20020,12 @@ source-map-url@^0.4.0: resolved "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.1.tgz#0af66605a745a5a2f91cf1bbf8a7afbc283dec56" integrity sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw== -source-map@^0.5.0, source-map@^0.5.6, source-map@^0.5.7: +source-map@^0.5.0, source-map@^0.5.1, source-map@^0.5.6, source-map@^0.5.7, source-map@~0.5.1: version "0.5.7" resolved "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= -source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: +source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.0, source-map@~0.6.1: version "0.6.1" resolved "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== @@ -15416,6 +20035,18 @@ source-map@^0.7.3, source-map@~0.7.2: resolved "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ== +source-map@~0.8.0-beta.0: + version "0.8.0-beta.0" + resolved "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz#d4c1bb42c3f7ee925f005927ba10709e0d1d1f11" + integrity sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA== + dependencies: + whatwg-url "^7.0.0" + +sourcemap-codec@^1.4.8: + version "1.4.8" + resolved "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4" + integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA== + space-separated-tokens@^1.0.0: version "1.1.5" resolved "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz#85f32c3d10d9682007e917414ddc5c26d1aa6899" @@ -15502,15 +20133,16 @@ sprintf-js@~1.0.2: resolved "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= -sqlite3@^5.0.2: - version "5.0.2" - resolved "https://registry.npmjs.org/sqlite3/-/sqlite3-5.0.2.tgz#00924adcc001c17686e0a6643b6cbbc2d3965083" - integrity sha512-1SdTNo+BVU211Xj1csWa8lV6KM0CtucDwRyA0VHl91wEH1Mgh7RxUpI4rVvG7OhHrzCSGaVyW5g8vKvlrk9DJA== +sqlite3@^5.0.8: + version "5.0.8" + resolved "https://registry.npmjs.org/sqlite3/-/sqlite3-5.0.8.tgz#b4b7eab7156debec80866ef492e01165b4688272" + integrity sha512-f2ACsbSyb2D1qFFcqIXPfFscLtPVOWJr5GmUzYxf4W+0qelu5MWrR+FAQE1d5IUArEltBrzSDxDORG8P/IkqyQ== dependencies: - node-addon-api "^3.0.0" - node-pre-gyp "^0.11.0" + "@mapbox/node-pre-gyp" "^1.0.0" + node-addon-api "^4.2.0" + tar "^6.1.11" optionalDependencies: - node-gyp "3.x" + node-gyp "8.x" sqlstring@^2.3.2: version "2.3.2" @@ -15539,6 +20171,11 @@ ssri@^8.0.0, ssri@^8.0.1: dependencies: minipass "^3.1.1" +stable@^0.1.8: + version "0.1.8" + resolved "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz#836eb3c8382fe2936feaf544631017ce7d47a3cf" + integrity sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w== + stack-utils@^1.0.1: version "1.0.5" resolved "https://registry.npmjs.org/stack-utils/-/stack-utils-1.0.5.tgz#a19b0b01947e0029c8e451d5d61a498f5bb1471b" @@ -15606,6 +20243,11 @@ stream-http@^2.7.2: to-arraybuffer "^1.0.0" xtend "^4.0.0" +stream-shift@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz#d7088281559ab2778424279b0877da3c392d5a3d" + integrity sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ== + stream-wormhole@^1.0.4: version "1.1.0" resolved "https://registry.npmjs.org/stream-wormhole/-/stream-wormhole-1.1.0.tgz#300aff46ced553cfec642a05251885417693c33d" @@ -15631,6 +20273,19 @@ string-convert@^0.2.0: resolved "https://registry.npmjs.org/string-convert/-/string-convert-0.2.1.tgz#6982cc3049fbb4cd85f8b24568b9d9bf39eeff97" integrity sha1-aYLMMEn7tM2F+LJFaLnZvznu/5c= +string-hash@^1.1.1: + version "1.1.3" + resolved "https://registry.npmjs.org/string-hash/-/string-hash-1.1.3.tgz#e8aafc0ac1855b4666929ed7dd1275df5d6c811b" + integrity sha1-6Kr8CsGFW0Zmkp7X3RJ1311sgRs= + +string-length@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/string-length/-/string-length-2.0.0.tgz#d40dbb686a3ace960c1cffca562bf2c45f8363ed" + integrity sha1-1A27aGo6zpYMHP/KVivyxF+DY+0= + dependencies: + astral-regex "^1.0.0" + strip-ansi "^4.0.0" + string-length@^4.0.1: version "4.0.2" resolved "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a" @@ -15648,7 +20303,7 @@ string-width@^1.0.1: is-fullwidth-code-point "^1.0.0" strip-ansi "^3.0.0" -"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: +"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3: version "4.2.3" resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -15665,6 +20320,15 @@ string-width@^2.0.0, string-width@^2.1.0, string-width@^2.1.1: is-fullwidth-code-point "^2.0.0" strip-ansi "^4.0.0" +string-width@^3.0.0, string-width@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961" + integrity sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w== + dependencies: + emoji-regex "^7.0.1" + is-fullwidth-code-point "^2.0.0" + strip-ansi "^5.1.0" + string.prototype.matchall@^4.0.6: version "4.0.6" resolved "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.6.tgz#5abb5dabc94c7b0ea2380f65ba610b3a544b15fa" @@ -15679,6 +20343,15 @@ string.prototype.matchall@^4.0.6: regexp.prototype.flags "^1.3.1" side-channel "^1.0.4" +string.prototype.trim@^1.2.1: + version "1.2.6" + resolved "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.6.tgz#824960787db37a9e24711802ed0c1d1c0254f83e" + integrity sha512-8lMR2m+U0VJTPp6JjvJTtGyc4FIGq9CdRt7O9p6T0e6K4vjU+OP+SQJpbe/SBmRcCUIvNUnjsbmY6lnMp8MhsQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.19.5" + string.prototype.trimend@^1.0.4: version "1.0.4" resolved "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz#e75ae90c2942c63504686c18b287b4a0b1a45f80" @@ -15687,6 +20360,15 @@ string.prototype.trimend@^1.0.4: call-bind "^1.0.2" define-properties "^1.1.3" +string.prototype.trimend@^1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz#914a65baaab25fbdd4ee291ca7dde57e869cb8d0" + integrity sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.19.5" + string.prototype.trimstart@^1.0.4: version "1.0.4" resolved "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.4.tgz#b36399af4ab2999b4c9c648bd7a3fb2bb26feeed" @@ -15695,6 +20377,15 @@ string.prototype.trimstart@^1.0.4: call-bind "^1.0.2" define-properties "^1.1.3" +string.prototype.trimstart@^1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz#5466d93ba58cfa2134839f81d7f42437e8c01fef" + integrity sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.19.5" + string_decoder@^1.0.0, string_decoder@^1.1.1: version "1.3.0" resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" @@ -15746,7 +20437,7 @@ strip-ansi@^4.0.0: dependencies: ansi-regex "^3.0.0" -strip-ansi@^5.1.0: +strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: version "5.2.0" resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== @@ -15825,6 +20516,11 @@ strong-log-transformer@^2.1.0: minimist "^1.2.0" through "^2.3.4" +style-inject@^0.3.0: + version "0.3.0" + resolved "https://registry.npmjs.org/style-inject/-/style-inject-0.3.0.tgz#d21c477affec91811cc82355832a700d22bf8dd3" + integrity sha512-IezA2qp+vcdlhJaVm5SOdPPTUu0FCEqfNSli2vRuSIBbu5Nq5UvygTk/VzeCqfLz2Atj3dVII5QBKGZRZ0edzw== + style-to-object@^0.3.0: version "0.3.0" resolved "https://registry.npmjs.org/style-to-object/-/style-to-object-0.3.0.tgz#b1b790d205991cc783801967214979ee19a76e46" @@ -15832,6 +20528,15 @@ style-to-object@^0.3.0: dependencies: inline-style-parser "0.1.1" +stylehacks@^4.0.0: + version "4.0.3" + resolved "https://registry.npmjs.org/stylehacks/-/stylehacks-4.0.3.tgz#6718fcaf4d1e07d8a1318690881e8d96726a71d5" + integrity sha512-7GlLk9JwlElY4Y6a/rmbH2MhVlTyVmiJd1PfTCqFaIBEGMYNsrO/v3SeGTdhBThLg4Z+NbOk/qFMwCa+J+3p/g== + dependencies: + browserslist "^4.0.0" + postcss "^7.0.0" + postcss-selector-parser "^3.0.0" + stylis@4.0.13: version "4.0.13" resolved "https://registry.npmjs.org/stylis/-/stylis-4.0.13.tgz#f5db332e376d13cc84ecfe5dace9a2a51d954c91" @@ -15867,7 +20572,14 @@ supports-color@^2.0.0: resolved "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" integrity sha1-U10EXOa2Nj+kARcIRimZXp3zJMc= -supports-color@^5.3.0: +supports-color@^3.2.3: + version "3.2.3" + resolved "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6" + integrity sha1-ZawFBLOVQXHYpklGsq48u4pfVPY= + dependencies: + has-flag "^1.0.0" + +supports-color@^5.3.0, supports-color@^5.4.0: version "5.5.0" resolved "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== @@ -15908,6 +20620,30 @@ supports-preserve-symlinks-flag@^1.0.0: resolved "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== +svg-parser@^2.0.2: + version "2.0.4" + resolved "https://registry.npmjs.org/svg-parser/-/svg-parser-2.0.4.tgz#fdc2e29e13951736140b76cb122c8ee6630eb6b5" + integrity sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ== + +svgo@^1.0.0, svgo@^1.2.2: + version "1.3.2" + resolved "https://registry.npmjs.org/svgo/-/svgo-1.3.2.tgz#b6dc511c063346c9e415b81e43401145b96d4167" + integrity sha512-yhy/sQYxR5BkC98CY7o31VGsg014AKLEPxdfhora76l36hD9Rdy5NZA/Ocn6yayNPgSamYdtX2rFJdcv07AYVw== + dependencies: + chalk "^2.4.1" + coa "^2.0.2" + css-select "^2.0.0" + css-select-base-adapter "^0.1.1" + css-tree "1.0.0-alpha.37" + csso "^4.0.2" + js-yaml "^3.13.1" + mkdirp "~0.5.1" + object.values "^1.1.0" + sax "~1.2.4" + stable "^0.1.8" + unquote "~1.1.1" + util.promisify "~1.0.0" + symbol-tree@^3.2.2, symbol-tree@^3.2.4: version "3.2.4" resolved "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" @@ -15934,16 +20670,19 @@ tapable@^1.0.0: resolved "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz#a1fccc06b58db61fd7a45da2da44f5f3a3e67ba2" integrity sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA== -tar@^2.0.0: - version "2.2.2" - resolved "https://registry.npmjs.org/tar/-/tar-2.2.2.tgz#0ca8848562c7299b8b446ff6a4d60cdbb23edc40" - integrity sha512-FCEhQ/4rE1zYv9rYXJw/msRqsnmlje5jHP6huWeBZ704jUTy02c5AZyWujpMR1ax6mVw9NyJMfuK2CMDWVIfgA== +tar@6.1.11, tar@^6.0.2, tar@^6.1.0, tar@^6.1.11, tar@^6.1.2: + version "6.1.11" + resolved "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz#6760a38f003afa1b2ffd0ffe9e9abbd0eab3d621" + integrity sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA== dependencies: - block-stream "*" - fstream "^1.0.12" - inherits "2" + chownr "^2.0.0" + fs-minipass "^2.0.0" + minipass "^3.0.0" + minizlib "^2.1.1" + mkdirp "^1.0.3" + yallist "^4.0.0" -tar@^4, tar@^4.4.12: +tar@^4.4.12: version "4.4.19" resolved "https://registry.npmjs.org/tar/-/tar-4.4.19.tgz#2e4d7263df26f2b914dee10c825ab132123742f3" integrity sha512-a20gEsvHnWe0ygBY8JbxoM4w3SJdhc7ZAuxkLqh+nvNQN2IOt0B5lLgM490X5Hl8FF0dl0tOf2ewFYAlIFgzVA== @@ -15956,17 +20695,10 @@ tar@^4, tar@^4.4.12: safe-buffer "^5.2.1" yallist "^3.1.1" -tar@^6.0.2, tar@^6.1.0, tar@^6.1.11: - version "6.1.11" - resolved "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz#6760a38f003afa1b2ffd0ffe9e9abbd0eab3d621" - integrity sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA== - dependencies: - chownr "^2.0.0" - fs-minipass "^2.0.0" - minipass "^3.0.0" - minizlib "^2.1.1" - mkdirp "^1.0.3" - yallist "^4.0.0" +temp-dir@2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz#bde92b05bdfeb1516e804c9c00ad45177f31321e" + integrity sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg== temp-dir@^1.0.0: version "1.0.0" @@ -16006,6 +20738,16 @@ terminal-link@^2.0.0: ansi-escapes "^4.2.1" supports-hyperlinks "^2.0.0" +ternary-stream@^2.0.1: + version "2.1.1" + resolved "https://registry.npmjs.org/ternary-stream/-/ternary-stream-2.1.1.tgz#4ad64b98668d796a085af2c493885a435a8a8bfc" + integrity sha512-j6ei9hxSoyGlqTmoMjOm+QNvUKDOIY6bNl4Uh1lhBvl6yjPW2iLqxDUYyfDPZknQ4KdRziFl+ec99iT4l7g0cw== + dependencies: + duplexify "^3.5.0" + fork-stream "^0.0.4" + merge-stream "^1.0.0" + through2 "^2.0.1" + terser@5.6.0: version "5.6.0" resolved "https://registry.npmjs.org/terser/-/terser-5.6.0.tgz#138cdf21c5e3100b1b3ddfddf720962f88badcd2" @@ -16015,6 +20757,16 @@ terser@5.6.0: source-map "~0.7.2" source-map-support "~0.5.19" +terser@^5.0.0: + version "5.13.1" + resolved "https://registry.npmjs.org/terser/-/terser-5.13.1.tgz#66332cdc5a01b04a224c9fad449fc1a18eaa1799" + integrity sha512-hn4WKOfwnwbYfe48NgrQjqNOH9jzLqRcIfbYytOXCOv46LBfWr9bDS17MQqOi+BWGD0sJK3Sj5NC/gJjiojaoA== + dependencies: + acorn "^8.5.0" + commander "^2.20.0" + source-map "~0.8.0-beta.0" + source-map-support "~0.5.20" + terser@^5.5.1: version "5.10.0" resolved "https://registry.npmjs.org/terser/-/terser-5.10.0.tgz#b86390809c0389105eb0a0b62397563096ddafcc" @@ -16067,12 +20819,40 @@ thenify-all@^1.0.0: dependencies: any-promise "^1.0.0" +throat@^4.0.0: + version "4.1.0" + resolved "https://registry.npmjs.org/throat/-/throat-4.1.0.tgz#89037cbc92c56ab18926e6ba4cbb200e15672a6a" + integrity sha1-iQN8vJLFarGJJua6TLsgDhVnKmo= + throat@^5.0.0: version "5.0.0" resolved "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz#c5199235803aad18754a667d659b5e72ce16764b" integrity sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA== -through2@^2.0.0: +through2-filter@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/through2-filter/-/through2-filter-3.0.0.tgz#700e786df2367c2c88cd8aa5be4cf9c1e7831254" + integrity sha512-jaRjI2WxN3W1V8/FMZ9HKIBXixtiqs3SQSX4/YGIiP3gL6djW48VoZq9tDqeCWs3MT8YY5wb/zli8VW8snY1CA== + dependencies: + through2 "~2.0.0" + xtend "~4.0.0" + +through2@3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/through2/-/through2-3.0.0.tgz#468b461df9cd9fcc170f22ebf6852e467e578ff2" + integrity sha512-8B+sevlqP4OiCjonI1Zw03Sf8PuV1eRsYQgLad5eonILOdyeRsY27A/2Ze8IlvlMvq31OH+3fz/styI7Ya62yQ== + dependencies: + readable-stream "2 || 3" + xtend "~4.0.1" + +through2@3.0.1: + version "3.0.1" + resolved "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz#39276e713c3302edf9e388dd9c812dd3b825bd5a" + integrity sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww== + dependencies: + readable-stream "2 || 3" + +through2@^2.0.0, through2@^2.0.1, through2@^2.0.3, through2@~2.0.0: version "2.0.5" resolved "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd" integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ== @@ -16080,6 +20860,14 @@ through2@^2.0.0: readable-stream "~2.3.6" xtend "~4.0.1" +through2@^3.0.0: + version "3.0.2" + resolved "https://registry.npmjs.org/through2/-/through2-3.0.2.tgz#99f88931cfc761ec7678b41d5d7336b5b6a07bf4" + integrity sha512-enaDQ4MUyP2W6ZyT6EsMzqBPZaM/avg8iuo+l2d3QCs0J+6RaqkHV/2/lOwDTueBHeJ/2LG9lrLW3d5rWPucuQ== + dependencies: + inherits "^2.0.4" + readable-stream "2 || 3" + through2@^4.0.0: version "4.0.2" resolved "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz#a7ce3ac2a7a8b0b966c80e7c49f0484c3b239764" @@ -16092,6 +20880,11 @@ through@2, "through@>=2.2.7 <3", through@^2.3.4, through@^2.3.6, through@~2.3: resolved "https://registry.npmjs.org/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= +time-stamp@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/time-stamp/-/time-stamp-1.1.0.tgz#764a5a11af50561921b133f3b44e618687e0f5c3" + integrity sha1-dkpaEa9QVhkhsTPztE5hhofg9cM= + timed-out@^4.0.0: version "4.0.1" resolved "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f" @@ -16104,6 +20897,11 @@ timers-browserify@^2.0.4: dependencies: setimmediate "^1.0.4" +timsort@^0.3.0: + version "0.3.0" + resolved "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4" + integrity sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q= + tiny-invariant@1.0.6: version "1.0.6" resolved "https://registry.npmmirror.com/tiny-invariant/-/tiny-invariant-1.0.6.tgz#b3f9b38835e36a41c843a3b0907a5a7b3755de73" @@ -16131,6 +20929,14 @@ tmpl@1.0.5: resolved "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== +to-absolute-glob@^2.0.0: + version "2.0.2" + resolved "https://registry.npmjs.org/to-absolute-glob/-/to-absolute-glob-2.0.2.tgz#1865f43d9e74b0822db9f145b78cff7d0f7c849b" + integrity sha1-GGX0PZ50sIItufFFt4z/fQ98hJs= + dependencies: + is-absolute "^1.0.0" + is-negated-glob "^1.0.0" + to-arraybuffer@^1.0.0: version "1.0.1" resolved "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" @@ -16148,6 +20954,11 @@ to-object-path@^0.3.0: dependencies: kind-of "^3.0.2" +to-readable-stream@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz#ce0aa0c2f3df6adf852efb404a783e77c0475771" + integrity sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q== + to-regex-range@^2.1.0: version "2.1.1" resolved "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" @@ -16173,6 +20984,13 @@ to-regex@^3.0.1, to-regex@^3.0.2: regex-not "^1.0.2" safe-regex "^1.1.0" +to-through@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/to-through/-/to-through-2.0.0.tgz#fc92adaba072647bc0b67d6b03664aa195093af6" + integrity sha1-/JKtq6ByZHvAtn1rA2ZKoZUJOvY= + dependencies: + through2 "^2.0.3" + toggle-selection@^1.0.6: version "1.0.6" resolved "https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.6.tgz#6e45b1263f2017fa0acc7d89d78b15b8bf77da32" @@ -16188,7 +21006,7 @@ toposort-class@^1.0.1: resolved "https://registry.npmjs.org/toposort-class/-/toposort-class-1.0.1.tgz#7ffd1f78c8be28c3ba45cd4e1a3f5ee193bd9988" integrity sha1-f/0feMi+KMO6Rc1OGj9e4ZO9mYg= -tough-cookie@^2.3.3, tough-cookie@^2.5.0, tough-cookie@~2.5.0: +tough-cookie@^2.3.3, tough-cookie@^2.3.4, tough-cookie@~2.5.0: version "2.5.0" resolved "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2" integrity sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g== @@ -16271,6 +21089,17 @@ ts-loader@^7.0.4: micromatch "^4.0.0" semver "^6.0.0" +ts-loader@^8.0.7: + version "8.4.0" + resolved "https://registry.npmjs.org/ts-loader/-/ts-loader-8.4.0.tgz#e845ea0f38d140bdc3d7d60293ca18d12ff2720f" + integrity sha512-6nFY3IZ2//mrPc+ImY3hNWx1vCHyEhl6V+wLmL4CZcm6g1CqX7UKrkc6y0i4FwcfOhxyMPCfaEvh20f4r9GNpw== + dependencies: + chalk "^4.1.0" + enhanced-resolve "^4.0.0" + loader-utils "^2.0.0" + micromatch "^4.0.0" + semver "^7.3.4" + ts-node-dev@^1.1.8: version "1.1.8" resolved "https://registry.npmjs.org/ts-node-dev/-/ts-node-dev-1.1.8.tgz#95520d8ab9d45fffa854d6668e2f8f9286241066" @@ -16352,7 +21181,12 @@ tslib@1.9.3: resolved "https://registry.npmjs.org/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286" integrity sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ== -tslib@^1.8.1, tslib@^1.9.0: +tslib@2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/tslib/-/tslib-2.0.1.tgz#410eb0d113e5b6356490eec749603725b021b43e" + integrity sha512-SgIkNheinmEBgx1IUNirK0TUD4X9yjjBRTqqjggWCU3pUEqIk3/Uwl3yRixYKT6WjQuGiwDv4NomL3wqRCj+CQ== + +tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.0: version "1.14.1" resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== @@ -16362,6 +21196,11 @@ tslib@^2.0.0, tslib@^2.0.1, tslib@^2.0.3, tslib@^2.3.1: resolved "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01" integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw== +tslib@^2.2.0: + version "2.4.0" + resolved "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3" + integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ== + tsscmp@1.0.6: version "1.0.6" resolved "https://registry.npmjs.org/tsscmp/-/tsscmp-1.0.6.tgz#85b99583ac3589ec4bfef825b5000aa911d605eb" @@ -16437,6 +21276,11 @@ type-fest@^0.21.3: resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== +type-fest@^0.3.0: + version "0.3.1" + resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.3.1.tgz#63d00d204e059474fe5e1b7c011112bbd1dc29e1" + integrity sha512-cUGJnCdr4STbePCgqNFbpVNCepa+kAVohJs1sLhxzdH+gnEoOd8VhbYa7pD3zZYGiURWM2xzEII3fQcRizDkYQ== + type-fest@^0.4.1: version "0.4.1" resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.4.1.tgz#8bdf77743385d8a4f13ba95f610f5ccd68c728f8" @@ -16472,6 +21316,16 @@ typedarray@^0.0.6: resolved "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= +typescript@^3.7.2: + version "3.9.10" + resolved "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz#70f3910ac7a51ed6bef79da7800690b19bf778b8" + integrity sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q== + +typescript@^4.0.5: + version "4.6.4" + resolved "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9" + integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg== + typescript@^4.1.5: version "4.4.4" resolved "https://registry.npmjs.org/typescript/-/typescript-4.4.4.tgz#2cd01a1a1f160704d3101fd5a58ff0f9fcb8030c" @@ -16482,11 +21336,26 @@ typescript@^4.4.3: resolved "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz#d8c953832d28924a9e3d37c73d729c846c5896f3" integrity sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA== +uglify-js@^2.8.22: + version "2.8.29" + resolved "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd" + integrity sha1-KcVzMUgFe7Th913zW3qcty5qWd0= + dependencies: + source-map "~0.5.1" + yargs "~3.10.0" + optionalDependencies: + uglify-to-browserify "~1.0.0" + uglify-js@^3.1.4: version "3.14.3" resolved "https://registry.npmjs.org/uglify-js/-/uglify-js-3.14.3.tgz#c0f25dfea1e8e5323eccf59610be08b6043c15cf" integrity sha512-mic3aOdiq01DuSVx0TseaEzMIVqebMZ0Z3vaeDhFEh9bsc24hV1TFvN74reA2vs08D0ZWfNjAcJ3UbVLaBss+g== +uglify-to-browserify@~1.0.0: + version "1.0.2" + resolved "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" + integrity sha1-bgkk1r2mta/jSeOabWMoUKD4grc= + uid-number@0.0.6: version "0.0.6" resolved "https://registry.npmjs.org/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" @@ -16497,6 +21366,73 @@ umask@^1.1.0: resolved "https://registry.npmjs.org/umask/-/umask-1.1.0.tgz#f29cebf01df517912bb58ff9c4e50fde8e33320d" integrity sha1-8pzr8B31F5ErtY/5xOUP3o4zMg0= +umi-test@^1.2.0: + version "1.9.6" + resolved "https://registry.npmjs.org/umi-test/-/umi-test-1.9.6.tgz#63856c511d396def5a088e6df7cdfc5311da2321" + integrity sha512-2t5YbLAKLE9HhCiFzgy32yUrYG7fjTLgYcIdLBROnD17bB7KoOWj+Y83RZIJqH3rUSpOqWxOKqv7cUdArbEqTQ== + dependencies: + "@babel/core" "7.4.5" + "@babel/preset-typescript" "7.3.3" + babel-core "7.0.0-bridge.0" + babel-jest "^24.8.0" + babel-plugin-module-resolver "3.2.0" + babel-preset-umi "1.8.4" + core-js "3.1.4" + debug "4.1.1" + enzyme "^3.10.0" + enzyme-adapter-react-16 "^1.14.0" + identity-obj-proxy "3.0.0" + jest "^24.8.0" + jest-cli "^24.8.0" + jest-pnp-resolver "^1.2.0" + jest-resolve "^24.8.0" + react "^16.8.6" + react-dom "^16.8.6" + regenerator-runtime "0.13.2" + typescript "^3.7.2" + umi-utils "1.7.2" + yargs-parser "13.1.1" + +umi-tools@^0.4.0: + version "0.4.0" + resolved "https://registry.npmjs.org/umi-tools/-/umi-tools-0.4.0.tgz#ff1573df6abc6a579ed523a522581ed68246ff3e" + integrity sha512-RX9vEnVM6Zx6h1nkhFxNf8vYYFYGeB/MTEqFYkMk+qxc022VJUX0veIfiXSkC0apAAJ070Kp6HyyQ8ZlSkpzBg== + dependencies: + "@babel/core" "^7.1.2" + "@babel/plugin-proposal-class-properties" "^7.1.0" + "@babel/plugin-proposal-do-expressions" "^7.0.0" + "@babel/plugin-proposal-export-default-from" "^7.0.0" + "@babel/preset-env" "^7.1.0" + "@babel/preset-react" "^7.0.0" + "@babel/preset-typescript" "^7.1.0" + "@babel/runtime" "^7.3.0" + chalk "^2.4.1" + chokidar "^2.0.4" + rimraf "^2.6.2" + rollup "1.1.2" + rollup-plugin-commonjs "^9.2.0" + rollup-plugin-node-resolve "4.0.0" + rollup-plugin-postcss "2.0.3" + rollup-plugin-replace "^2.1.0" + signale "^1.3.0" + slash2 "^2.0.0" + through2 "3.0.0" + umi-test "^1.2.0" + vinyl-fs "^3.0.3" + yargs-parser "13.0.0" + +umi-utils@1.7.2: + version "1.7.2" + resolved "https://registry.npmjs.org/umi-utils/-/umi-utils-1.7.2.tgz#940448f1241630843dd55e7b3b48a5c3d1aff53d" + integrity sha512-l/IV3bcPqjhzTi4L4HkcWVh8+mLzXupXdsQi87RmGHcPR9CRlZW91PLRVaybZ3G/KTBbhlVl4pF4RrtU972/QA== + dependencies: + chalk "2.4.2" + dotenv "^8.2.0" + is-url "1.2.4" + node-fetch "2.6.0" + prettier "1.15.3" + slash2 "2.0.0" + umi@^3.0.0, umi@^3.5.20: version "3.5.20" resolved "https://registry.npmjs.org/umi/-/umi-3.5.20.tgz#7380d4dd62b9b5b3e6da303a3312a7b68a10eb51" @@ -16523,6 +21459,21 @@ unbox-primitive@^1.0.1: has-symbols "^1.0.2" which-boxed-primitive "^1.0.2" +unbox-primitive@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz#29032021057d5e6cdbd08c5129c226dff8ed6f9e" + integrity sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw== + dependencies: + call-bind "^1.0.2" + has-bigints "^1.0.2" + has-symbols "^1.0.3" + which-boxed-primitive "^1.0.2" + +unc-path-regex@^0.1.2: + version "0.1.2" + resolved "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz#e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa" + integrity sha1-5z3T17DXxe2G+6xrCufYxqadUPo= + uncontrollable@^7.0.0: version "7.2.1" resolved "https://registry.npmjs.org/uncontrollable/-/uncontrollable-7.2.1.tgz#1fa70ba0c57a14d5f78905d533cf63916dc75738" @@ -16594,6 +21545,11 @@ uniq@^1.0.1: resolved "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz#b31c5ae8254844a3a8281541ce2b04b865a734ff" integrity sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8= +uniqs@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/uniqs/-/uniqs-2.0.0.tgz#ffede4b36b25290696e6e165d4a59edb998e6b02" + integrity sha1-/+3ks2slKQaW5uFl1KWe25mOawI= + unique-filename@^1.1.1: version "1.1.1" resolved "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz#1d69769369ada0583103a1e6ae87681b56573230" @@ -16608,6 +21564,14 @@ unique-slug@^2.0.0: dependencies: imurmurhash "^0.1.4" +unique-stream@^2.0.2: + version "2.3.1" + resolved "https://registry.npmjs.org/unique-stream/-/unique-stream-2.3.1.tgz#c65d110e9a4adf9a6c5948b28053d9a8d04cbeac" + integrity sha512-2nY4TnBE70yoxHkDli7DMazpWiP7xMdCYqU2nBRO0UB+ZpEkGsSija7MvmvnZFUeC+mrgiUfcHSr3LmRFIg4+A== + dependencies: + json-stable-stringify-without-jsonify "^1.0.1" + through2-filter "^3.0.0" + unique-string@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/unique-string/-/unique-string-1.0.0.tgz#9e1057cca851abb93398f8b33ae187b99caec11a" @@ -16693,6 +21657,11 @@ unpipe@1.0.0: resolved "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" integrity sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw= +unquote@~1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/unquote/-/unquote-1.1.1.tgz#8fded7324ec6e88a0ff8b905e7c098cdc086d544" + integrity sha1-j97XMk7G6IoP+LkF58CYzcCG1UQ= + unset-value@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" @@ -16701,16 +21670,52 @@ unset-value@^1.0.0: has-value "^0.3.1" isobject "^3.0.0" +untildify@^4.0.0: + version "4.0.0" + resolved "https://registry.npmmirror.com/untildify/-/untildify-4.0.0.tgz#2bc947b953652487e4600949fb091e3ae8cd919b" + integrity sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw== + unzip-response@^2.0.1: version "2.0.1" resolved "https://registry.npmjs.org/unzip-response/-/unzip-response-2.0.1.tgz#d2f0f737d16b0615e72a6935ed04214572d56f97" integrity sha1-0vD3N9FrBhXnKmk17QQhRXLVb5c= +upath@^1.1.1: + version "1.2.0" + resolved "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz#8f66dbcd55a883acdae4408af8b035a5044c1894" + integrity sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg== + upath@^2.0.1: version "2.0.1" resolved "https://registry.npmjs.org/upath/-/upath-2.0.1.tgz#50c73dea68d6f6b990f51d279ce6081665d61a8b" integrity sha512-1uEe95xksV1O0CYKXo8vQvN1JEbtJp7lb7C5U9HMsIp6IVwntkH/oNUzyVNQSd4S1sYk2FpSSW44FqMc8qee5w== +update-check@1.5.2: + version "1.5.2" + resolved "https://registry.npmmirror.com/update-check/-/update-check-1.5.2.tgz#2fe09f725c543440b3d7dabe8971f2d5caaedc28" + integrity sha512-1TrmYLuLj/5ZovwUS7fFd1jMH3NnFDN1y1A8dboedIDt7zs/zJMo6TwwlhYKkSeEwzleeiSBV5/3c9ufAQWDaQ== + dependencies: + registry-auth-token "3.3.2" + registry-url "3.1.0" + +update-notifier@3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/update-notifier/-/update-notifier-3.0.0.tgz#e9bbf8f0f5b7a2ce6666ca46334fdb29492e8fab" + integrity sha512-6Xe3oF2bvuoj4YECUc52yxVs94yWrxwqHbzyveDktTS1WhnlTRpNcQMxUshcB7nRVGi1jEXiqL5cW1S5WSyzKg== + dependencies: + boxen "^3.0.0" + chalk "^2.0.1" + configstore "^4.0.0" + has-yarn "^2.1.0" + import-lazy "^2.1.0" + is-ci "^2.0.0" + is-installed-globally "^0.1.0" + is-npm "^3.0.0" + is-yarn-global "^0.3.0" + latest-version "^5.0.0" + semver-diff "^2.0.0" + xdg-basedir "^3.0.0" + update-notifier@^2.2.0: version "2.5.0" resolved "https://registry.npmjs.org/update-notifier/-/update-notifier-2.5.0.tgz#d0744593e13f161e406acb1d9408b72cad08aff6" @@ -16753,6 +21758,13 @@ url-parse-lax@^1.0.0: dependencies: prepend-http "^1.0.1" +url-parse-lax@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz#16b5cafc07dbe3676c1b1999177823d6503acb0c" + integrity sha1-FrXK/Afb42dsGxmZF3gj1lA6yww= + dependencies: + prepend-http "^2.0.0" + url@0.10.3: version "0.10.3" resolved "https://registry.npmjs.org/url/-/url-0.10.3.tgz#021e4d9c7705f21bbf37d03ceb58767402774c64" @@ -16838,6 +21850,16 @@ util.promisify@^1.0.0: has-symbols "^1.0.1" object.getownpropertydescriptors "^2.1.1" +util.promisify@~1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/util.promisify/-/util.promisify-1.0.1.tgz#6baf7774b80eeb0f7520d8b81d07982a59abbaee" + integrity sha512-g9JpC/3He3bm38zsLupWryXHoEcS22YHthuPQSJdMy6KNrzIRzWqcsHzD/WUnqe45whVou4VIsPew37DoXWNrA== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.2" + has-symbols "^1.0.1" + object.getownpropertydescriptors "^2.1.0" + util@0.10.3: version "0.10.3" resolved "https://registry.npmjs.org/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9" @@ -16924,11 +21946,21 @@ value-equal@^1.0.1: resolved "https://registry.npmjs.org/value-equal/-/value-equal-1.0.1.tgz#1e0b794c734c5c0cade179c437d356d931a34d6c" integrity sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw== -vary@^1.1.2: +value-or-function@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/value-or-function/-/value-or-function-3.0.0.tgz#1c243a50b595c1be54a754bfece8563b9ff8d813" + integrity sha1-HCQ6ULWVwb5Up1S/7OhWO5/42BM= + +vary@^1.1.2, vary@~1.1.2: version "1.1.2" resolved "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw= +vendors@^1.0.0: + version "1.0.4" + resolved "https://registry.npmjs.org/vendors/-/vendors-1.0.4.tgz#e2b800a53e7a29b93506c3cf41100d16c4c4ad8e" + integrity sha512-/juG65kTL4Cy2su4P8HjtkTxk6VmJDiOPBufWniqQ6wknac6jNiXS9vU+hO3wgusiyqWlzTbVHi0dyJqRONg3w== + verror@1.10.0: version "1.10.0" resolved "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" @@ -16961,6 +21993,61 @@ vfile@^4.0.0: unist-util-stringify-position "^2.0.0" vfile-message "^2.0.0" +vinyl-fs@3.0.3, vinyl-fs@^3.0.3: + version "3.0.3" + resolved "https://registry.npmjs.org/vinyl-fs/-/vinyl-fs-3.0.3.tgz#c85849405f67428feabbbd5c5dbdd64f47d31bc7" + integrity sha512-vIu34EkyNyJxmP0jscNzWBSygh7VWhqun6RmqVfXePrOwi9lhvRs//dOaGOTRUQr4tx7/zd26Tk5WeSVZitgng== + dependencies: + fs-mkdirp-stream "^1.0.0" + glob-stream "^6.1.0" + graceful-fs "^4.0.0" + is-valid-glob "^1.0.0" + lazystream "^1.0.0" + lead "^1.0.0" + object.assign "^4.0.4" + pumpify "^1.3.5" + readable-stream "^2.3.3" + remove-bom-buffer "^3.0.0" + remove-bom-stream "^1.2.0" + resolve-options "^1.1.0" + through2 "^2.0.0" + to-through "^2.0.0" + value-or-function "^3.0.0" + vinyl "^2.0.0" + vinyl-sourcemap "^1.1.0" + +vinyl-sourcemap@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/vinyl-sourcemap/-/vinyl-sourcemap-1.1.0.tgz#92a800593a38703a8cdb11d8b300ad4be63b3e16" + integrity sha1-kqgAWTo4cDqM2xHYswCtS+Y7PhY= + dependencies: + append-buffer "^1.0.2" + convert-source-map "^1.5.0" + graceful-fs "^4.1.6" + normalize-path "^2.1.1" + now-and-later "^2.0.0" + remove-bom-buffer "^3.0.0" + vinyl "^2.0.0" + +vinyl-sourcemaps-apply@^0.2.0: + version "0.2.1" + resolved "https://registry.npmjs.org/vinyl-sourcemaps-apply/-/vinyl-sourcemaps-apply-0.2.1.tgz#ab6549d61d172c2b1b87be5c508d239c8ef87705" + integrity sha1-q2VJ1h0XLCsbh75cUI0jnI74dwU= + dependencies: + source-map "^0.5.1" + +vinyl@^2.0.0, vinyl@^2.1.0: + version "2.2.1" + resolved "https://registry.npmjs.org/vinyl/-/vinyl-2.2.1.tgz#23cfb8bbab5ece3803aa2c0a1eb28af7cbba1974" + integrity sha512-LII3bXRFBZLlezoG5FfZVcXflZgWP/4dCwKtxd5ky9+LOtM4CS3bIRQsmR1KMnMW07jpE8fqR2lcxPZ+8sJIcw== + dependencies: + clone "^2.1.1" + clone-buffer "^1.0.0" + clone-stats "^1.0.0" + cloneable-readable "^1.0.0" + remove-trailing-separator "^1.0.1" + replace-ext "^1.0.0" + vizion@~2.2.1: version "2.2.1" resolved "https://registry.npmjs.org/vizion/-/vizion-2.2.1.tgz#04201ea45ffd145d5b5210e385a8f35170387fb2" @@ -17006,15 +22093,6 @@ w3c-hr-time@^1.0.1, w3c-hr-time@^1.0.2: dependencies: browser-process-hrtime "^1.0.0" -w3c-xmlserializer@^1.1.2: - version "1.1.2" - resolved "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-1.1.2.tgz#30485ca7d70a6fd052420a3d12fd90e6339ce794" - integrity sha512-p10l/ayESzrBMYWRID6xbuCKh2Fp77+sA0doRuGn4tTIMrrZVeqfpKjXHY+oDh3K4nLdPgNwMTVP6Vp4pvqbNg== - dependencies: - domexception "^1.0.1" - webidl-conversions "^4.0.2" - xml-name-validator "^3.0.0" - w3c-xmlserializer@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz#3e7104a05b75146cc60f564380b7f683acf1020a" @@ -17036,7 +22114,7 @@ warning@^4.0.3: dependencies: loose-envify "^1.0.0" -wcwidth@^1.0.0, wcwidth@^1.0.1: +wcwidth@^1.0.0: version "1.0.1" resolved "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" integrity sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g= @@ -17076,19 +22154,14 @@ webpack-chain@6.5.1: deepmerge "^1.5.2" javascript-stringify "^2.0.1" -whatwg-encoding@^1.0.1, whatwg-encoding@^1.0.5: +whatwg-encoding@^1.0.1, whatwg-encoding@^1.0.3, whatwg-encoding@^1.0.5: version "1.0.5" resolved "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz#5abacf777c32166a51d085d6b4f3e7d27113ddb0" integrity sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw== dependencies: iconv-lite "0.4.24" -whatwg-fetch@^3.5.0: - version "3.6.2" - resolved "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz#dced24f37f2624ed0281725d51d0e2e3fe677f8c" - integrity sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA== - -whatwg-mimetype@^2.2.0, whatwg-mimetype@^2.3.0: +whatwg-mimetype@^2.1.0, whatwg-mimetype@^2.2.0, whatwg-mimetype@^2.3.0: version "2.3.0" resolved "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== @@ -17101,6 +22174,15 @@ whatwg-url@^5.0.0: tr46 "~0.0.3" webidl-conversions "^3.0.0" +whatwg-url@^6.4.1: + version "6.5.0" + resolved "https://registry.npmjs.org/whatwg-url/-/whatwg-url-6.5.0.tgz#f2df02bff176fd65070df74ad5ccbb5a199965a8" + integrity sha512-rhRZRqx/TLJQWUpQ6bmrt2UV4f0HCQ463yQuONJqC6fO2VoEb1pTYddbe59SkYq87aoM5A3bdhMZiUiVws+fzQ== + dependencies: + lodash.sortby "^4.7.0" + tr46 "^1.0.1" + webidl-conversions "^4.0.2" + whatwg-url@^7.0.0: version "7.1.0" resolved "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz#c2c492f1eca612988efd3d2266be1b9fc6170d06" @@ -17119,6 +22201,11 @@ whatwg-url@^8.0.0, whatwg-url@^8.4.0, whatwg-url@^8.5.0: tr46 "^2.1.0" webidl-conversions "^6.1.0" +when@^3.7.8: + version "3.7.8" + resolved "https://registry.npmjs.org/when/-/when-3.7.8.tgz#c7130b6a7ea04693e842cdc9e7a1f2aa39a39f82" + integrity sha1-xxMLan6gRpPoQs3J56Hyqjmjn4I= + which-boxed-primitive@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6" @@ -17135,7 +22222,7 @@ which-module@^2.0.0: resolved "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= -which@1, which@^1.2.8, which@^1.2.9, which@^1.3.1: +which@^1.2.8, which@^1.2.9, which@^1.3.0, which@^1.3.1: version "1.3.1" resolved "https://registry.npmjs.org/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== @@ -17154,7 +22241,7 @@ wicked-good-xpath@^1.3.0: resolved "https://registry.npmjs.org/wicked-good-xpath/-/wicked-good-xpath-1.3.0.tgz#81b0e95e8650e49c94b22298fff8686b5553cf6c" integrity sha1-gbDpXoZQ5JyUsiKY//hoa1VTz2w= -wide-align@^1.1.0: +wide-align@^1.1.0, wide-align@^1.1.2, wide-align@^1.1.5: version "1.1.5" resolved "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz#df1d4c206854369ecf3c9a4898f1b23fbd9d15d3" integrity sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg== @@ -17168,6 +22255,13 @@ widest-line@^2.0.0: dependencies: string-width "^2.1.1" +widest-line@^3.1.0: + version "3.1.0" + resolved "https://registry.npmmirror.com/widest-line/-/widest-line-3.1.0.tgz#8292333bbf66cb45ff0de1603b136b7ae1496eca" + integrity sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg== + dependencies: + string-width "^4.0.0" + wildcard@^1.1.0: version "1.1.2" resolved "https://registry.npmjs.org/wildcard/-/wildcard-1.1.2.tgz#a7020453084d8cd2efe70ba9d3696263de1710a5" @@ -17180,6 +22274,11 @@ win-release@^1.0.0: dependencies: semver "^5.0.1" +window-size@0.1.0: + version "0.1.0" + resolved "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" + integrity sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0= + wkx@^0.5.0: version "0.5.0" resolved "https://registry.npmjs.org/wkx/-/wkx-0.5.0.tgz#c6c37019acf40e517cc6b94657a25a3d4aa33e8c" @@ -17192,11 +22291,25 @@ word-wrap@^1.2.3, word-wrap@~1.2.3: resolved "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== +wordwrap@0.0.2: + version "0.0.2" + resolved "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" + integrity sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8= + wordwrap@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus= +wrap-ansi@^5.1.0: + version "5.1.0" + resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz#1fd1f67235d5b6d0fee781056001bfb694c03b09" + integrity sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q== + dependencies: + ansi-styles "^3.2.0" + string-width "^3.0.0" + strip-ansi "^5.0.0" + wrap-ansi@^6.2.0: version "6.2.0" resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" @@ -17281,10 +22394,10 @@ write-pkg@^4.0.0: type-fest "^0.4.1" write-json-file "^3.2.0" -ws@^6.1.2: - version "6.2.2" - resolved "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz#dd5cdbd57a9979916097652d78f1cc5faea0c32e" - integrity sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw== +ws@^5.2.0: + version "5.2.3" + resolved "https://registry.npmjs.org/ws/-/ws-5.2.3.tgz#05541053414921bc29c63bee14b8b0dd50b07b3d" + integrity sha512-jZArVERrMsKUatIdnLzqvcfydI85dvd/Fp1u/VOpfdDWQ4c9qWXe+VIeAbQ5FrDwciAkr+lzofXLz3Kuf26AOA== dependencies: async-limiter "~1.0.0" @@ -17339,7 +22452,7 @@ xmlbuilder@~9.0.1: resolved "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-9.0.7.tgz#132ee63d2ec5565c557e20f4c22df9aca686b10d" integrity sha1-Ey7mPS7FVlxVfiD0wi35rKaGsQ0= -xmlchars@^2.1.1, xmlchars@^2.2.0: +xmlchars@^2.2.0: version "2.2.0" resolved "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== @@ -17354,7 +22467,7 @@ xregexp@2.0.0: resolved "https://registry.npmjs.org/xregexp/-/xregexp-2.0.0.tgz#52a63e56ca0b84a7f3a5f3d61872f126ad7a5943" integrity sha1-UqY+VsoLhKfzpfPWGHLxJq16WUM= -xtend@^4.0.0, xtend@~4.0.1: +xtend@^4.0.0, xtend@~4.0.0, xtend@~4.0.1: version "4.0.2" resolved "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== @@ -17397,6 +22510,30 @@ yamljs@0.3.0: argparse "^1.0.7" glob "^7.0.5" +yargs-parser@13.0.0: + version "13.0.0" + resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.0.0.tgz#3fc44f3e76a8bdb1cc3602e860108602e5ccde8b" + integrity sha512-w2LXjoL8oRdRQN+hOyppuXs+V/fVAYtpcrRxZuF7Kt/Oc+Jr2uAcVntaUTNT6w5ihoWfFDpNY8CPx1QskxZ/pw== + dependencies: + camelcase "^5.0.0" + decamelize "^1.2.0" + +yargs-parser@13.1.1: + version "13.1.1" + resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.1.tgz#d26058532aa06d365fe091f6a1fc06b2f7e5eca0" + integrity sha512-oVAVsHz6uFrg3XQheFII8ESO2ssAf9luWuAd6Wexsu4F3OtIW0o8IribPXYrD4WC24LWtPrJlGy87y5udK+dxQ== + dependencies: + camelcase "^5.0.0" + decamelize "^1.2.0" + +yargs-parser@13.1.2, yargs-parser@^13.1.2: + version "13.1.2" + resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz#130f09702ebaeef2650d54ce6e3e5706f7a4fb38" + integrity sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg== + dependencies: + camelcase "^5.0.0" + decamelize "^1.2.0" + yargs-parser@20.2.4: version "20.2.4" resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" @@ -17420,6 +22557,22 @@ yargs-parser@^21.0.0: resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.0.0.tgz#a485d3966be4317426dd56bdb6a30131b281dc55" integrity sha512-z9kApYUOCwoeZ78rfRYYWdiU/iNL6mwwYlkkZfJoyMR1xps+NEBX5X7XmRpxkZHhXJ6+Ey00IwKxBBSW9FIjyA== +yargs@^13.3.0: + version "13.3.2" + resolved "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz#ad7ffefec1aa59565ac915f82dccb38a9c31a2dd" + integrity sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw== + dependencies: + cliui "^5.0.0" + find-up "^3.0.0" + get-caller-file "^2.0.1" + require-directory "^2.1.1" + require-main-filename "^2.0.0" + set-blocking "^2.0.0" + string-width "^3.0.0" + which-module "^2.0.0" + y18n "^4.0.0" + yargs-parser "^13.1.2" + yargs@^15.4.1: version "15.4.1" resolved "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" @@ -17437,7 +22590,7 @@ yargs@^15.4.1: y18n "^4.0.0" yargs-parser "^18.1.2" -yargs@^16.2.0: +yargs@^16.1.0, yargs@^16.2.0: version "16.2.0" resolved "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== @@ -17463,6 +22616,16 @@ yargs@^17.0.0: y18n "^5.0.5" yargs-parser "^21.0.0" +yargs@~3.10.0: + version "3.10.0" + resolved "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" + integrity sha1-9+572FfdfB0tOMDnTvvWgdFDH9E= + dependencies: + camelcase "^1.0.2" + cliui "^2.1.0" + decamelize "^1.0.0" + window-size "0.1.0" + ylru@^1.2.0: version "1.2.1" resolved "https://registry.npmjs.org/ylru/-/ylru-1.2.1.tgz#f576b63341547989c1de7ba288760923b27fe84f"