├── .editorconfig ├── .eslintignore ├── .eslintrc ├── .github └── workflows │ └── release.yml ├── .gitignore ├── .npmrc ├── CHANGELOG.md ├── LICENSE ├── Makefile ├── README.md ├── esbuild.config.mjs ├── main.ts ├── manifest-beta.json ├── manifest.json ├── package-lock.json ├── package.json ├── src ├── i18n │ └── i18n.ts ├── installer.ts ├── setting │ ├── funding.ts │ ├── setting.ts │ └── suggester │ │ ├── FileSuggest.ts │ │ ├── Suggest.ts │ │ └── TextInputSuggest.ts └── utils.ts ├── tsconfig.json ├── version-bump.mjs └── versions.json /.editorconfig: -------------------------------------------------------------------------------- 1 | # top-most EditorConfig file 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | end_of_line = lf 7 | insert_final_newline = true 8 | indent_style = tab 9 | indent_size = 4 10 | tab_width = 4 11 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | 3 | main.js 4 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | "parser": "@typescript-eslint/parser", 4 | "env": { "node": true }, 5 | "plugins": [ 6 | "@typescript-eslint" 7 | ], 8 | "extends": [ 9 | "eslint:recommended", 10 | "plugin:@typescript-eslint/eslint-recommended", 11 | "plugin:@typescript-eslint/recommended" 12 | ], 13 | "parserOptions": { 14 | "sourceType": "module" 15 | }, 16 | "rules": { 17 | "no-unused-vars": "off", 18 | "@typescript-eslint/no-unused-vars": ["error", { "args": "none" }], 19 | "@typescript-eslint/ban-ts-comment": "off", 20 | "no-prototype-builtins": "off", 21 | "@typescript-eslint/no-empty-function": "off" 22 | } 23 | } -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release plugin 2 | 3 | on: 4 | push: 5 | # Sequence of patterns matched against refs/tags 6 | tags: 7 | - "*" # Push events to matching any tag format, i.e. 1.0, 20.15.10 8 | 9 | env: 10 | PLUGIN_NAME: obsidian-share-my-plugin-list 11 | 12 | jobs: 13 | build: 14 | runs-on: ubuntu-latest 15 | 16 | steps: 17 | - uses: actions/checkout@v2 18 | - name: Use Node.js 19 | uses: actions/setup-node@v1 20 | with: 21 | node-version: "14.x" # You might need to adjust this value to your own version 22 | - name: Build 23 | id: build 24 | run: | 25 | npm install -g yarn 26 | yarn 27 | yarn run build --if-present 28 | mkdir ${{ env.PLUGIN_NAME }} 29 | cp main.js manifest.json ${{ env.PLUGIN_NAME }} 30 | zip -r ${{ env.PLUGIN_NAME }}.zip ${{ env.PLUGIN_NAME }} 31 | ls 32 | echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)" 33 | - name: Create Release 34 | id: create_release 35 | uses: actions/create-release@v1 36 | env: 37 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 38 | VERSION: ${{ github.ref }} 39 | with: 40 | tag_name: ${{ github.ref }} 41 | release_name: ${{ github.ref }} 42 | draft: false 43 | prerelease: ${{ contains(github.ref, 'b') && true || false }} 44 | - name: Upload zip file 45 | id: upload-zip 46 | uses: actions/upload-release-asset@v1 47 | env: 48 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 49 | with: 50 | upload_url: ${{ steps.create_release.outputs.upload_url }} 51 | asset_path: ./${{ env.PLUGIN_NAME }}.zip 52 | asset_name: ${{ env.PLUGIN_NAME }}-${{ steps.build.outputs.tag_name }}.zip 53 | asset_content_type: application/zip 54 | - name: Upload main.js 55 | id: upload-main 56 | uses: actions/upload-release-asset@v1 57 | env: 58 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 59 | with: 60 | upload_url: ${{ steps.create_release.outputs.upload_url }} 61 | asset_path: ./main.js 62 | asset_name: main.js 63 | asset_content_type: text/javascript 64 | - name: Upload manifest.json 65 | id: upload-manifest 66 | uses: actions/upload-release-asset@v1 67 | env: 68 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 69 | with: 70 | upload_url: ${{ steps.create_release.outputs.upload_url }} 71 | asset_path: ./manifest.json 72 | asset_name: manifest.json 73 | asset_content_type: application/json 74 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # vscode 2 | .vscode 3 | 4 | # Intellij 5 | *.iml 6 | .idea 7 | 8 | # npm 9 | node_modules 10 | 11 | # Don't include the compiled main.js file in the repo. 12 | # They should be uploaded to GitHub releases instead. 13 | main.js 14 | 15 | # Exclude sourcemaps 16 | *.map 17 | 18 | # obsidian 19 | data.json 20 | 21 | # Exclude macOS Finder (System Explorer) View States 22 | .DS_Store 23 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | tag-version-prefix="" -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 0.3.0 4 | - [feature] protocol link for install plugins 5 | 6 | ## 0.2.1 7 | - [feature] plugin description #11 8 | 9 | ## 0.2.0 10 | - [feature] List of disabled plugins #3 11 | - [updated] Export to file: export once plugin loaded (or Obsidian is opened) #8 12 | - [updated] Export to file: specify the overwrite location in file #7 13 | - [updated] Export to file: open file after exporting #6 14 | - [updated] Export to file: create folder when the path is invalid #5 15 | 16 | ## 0.1.0 17 | - [feature] new command: export to file [#2](https://github.com/Benature/obsidian-share-my-plugin-list/issues/2) 18 | - [updated] specific funding symbol 19 | - www.buymeacoffee.com: ☕️ 20 | - afdian.net: ⚡️ 21 | - default: ♡ 22 | 23 | ## 0.0.7 24 | - [updated] Update plugin name as requested as sentence case. 25 | 26 | ## 0.0.6 27 | - [updated] i18n support 28 | 29 | ## 0.0.5 30 | - [feature] support multi-funding 31 | 32 | ## 0.0.4 33 | - [feature] add funding url 34 | - [updated] read BRAT's beta plugin list and update its url to github directly (may be buggy, i.e. fail to match plugin) 35 | 36 | ## 0.0.3 37 | - [updated] Chinese language support: command, table headers. 38 | 39 | ## 0.0.2 40 | - Get plugin list from `this.app.plugins.plugins` rather than read `.obsidian/community-plugins.json` file. 41 | - [feature] generate table format 42 | 43 | ## 0.0.1 44 | - [feature] generate a list of plugins. 45 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Benature Wong 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | 2 | push: 3 | @git tag "$(tag)" 4 | @git push origin "$(tag)" 5 | 6 | del: 7 | @git tag -d "$(tag)" 8 | @git push origin --delete "$(tag)" 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Share My Plugin List 2 | 3 |
4 | 5 | ![Obsidian Downloads](https://img.shields.io/badge/dynamic/json?logo=obsidian&color=%23483699&label=downloads&query=%24%5B%22share-my-plugin-list%22%5D.downloads&url=https%3A%2F%2Fraw.githubusercontent.com%2Fobsidianmd%2Fobsidian-releases%2Fmaster%2Fcommunity-plugin-stats.json) ![GitHub stars](https://img.shields.io/github/stars/Benature/obsidian-share-my-plugin-list?style=flat) ![latest download](https://img.shields.io/github/downloads/Benature/obsidian-share-my-plugin-list/latest/total?style=plastic) 6 | [![Github release](https://img.shields.io/github/manifest-json/v/Benature/obsidian-share-my-plugin-list?color=blue)](https://github.com/Benature/obsidian-share-my-plugin-list/releases/latest) ![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/Benature/obsidian-share-my-plugin-list?include_prereleases&label=BRAT%20beta) 7 | 8 | [Click to install](https://obsidian.md/plugins?id=share-my-plugin-list) 9 | 10 |
11 | 12 | This plugin helps you to share/recommend the plugins you are using to others. 13 | 14 | - Share the obsidian plugins that are active or inactive in your vault. 15 | - Click ⬇️ to install plugin directly. (v0.3.3+) 16 | - `Install all ...` command in Command palette to install all uninstalled plugins in one command! (v0.3.3+) 17 | 18 | >[Roadmap](https://github.com/Benature/obsidian-share-my-plugin-list/labels/status%2Fvote) 19 | 20 | 21 |
22 | 23 |
24 | 25 | > Simple Chinese introduction: [公众号](https://mp.weixin.qq.com/s/WZEncNTYAwyHFB5xfoY4Zg) / [小红书](http://xhslink.com/JgqVzF) 26 | > (如有汉化需要请联系`木一Benature`) 27 | 28 | 29 | ## Feature descriptions 30 | > If you are looking forward to some new features, you can discuss the feature request in the [issues](https://github.com/Benature/obsidian-share-my-plugin-list). 31 | 32 | ### Export as list 33 | 34 | Support active plugins or inactive plugins. 35 | 36 |
Example 37 | 38 | Preview: 39 | - [**Dataview**](https://obsidian.md/plugins?id=dataview) by [*Michael Brenan*](https://github.com/blacksmithgu) 40 | - [**Text Format**](https://obsidian.md/plugins?id=obsidian-text-format) by [*Benature*](https://github.com/Benature) [☕️](https://www.buymeacoffee.com/benature) / [⚡️](https://afdian.net/a/Benature-K) / [♡](https://s2.loli.net/2024/04/01/VtX3vYLobdF6MBc.png) 41 | - [**Metadata Icon**](https://obsidian.md/plugins?id=metadata-icon) by [*Benature*](https://github.com/Benature) [☕️](https://www.buymeacoffee.com/benature) / [⚡️](https://afdian.net/a/Benature-K) / [♡](https://s2.loli.net/2024/04/01/VtX3vYLobdF6MBc.png) 42 | 43 | 44 | Source: 45 | ```md 46 | - [**Dataview**](https://obsidian.md/plugins?id=dataview) by [*Michael Brenan*](https://github.com/blacksmithgu) 47 | - [**Text Format**](https://obsidian.md/plugins?id=obsidian-text-format) by [*Benature*](https://github.com/Benature) [☕️](https://www.buymeacoffee.com/benature) / [⚡️](https://afdian.net/a/Benature-K) / [♡](https://s2.loli.net/2024/04/01/VtX3vYLobdF6MBc.png) 48 | - [**Metadata Icon**](https://obsidian.md/plugins?id=metadata-icon) by [*Benature*](https://github.com/Benature) [☕️](https://www.buymeacoffee.com/benature) / [⚡️](https://afdian.net/a/Benature-K) / [♡](https://s2.loli.net/2024/04/01/VtX3vYLobdF6MBc.png) 49 | ``` 50 | 51 |
52 | 53 | 54 | 55 | 56 | 57 | ### Export as table 58 | 59 | Support active plugins or inactive plugins. 60 | 61 |
Example 62 | 63 | Preview: 64 | 65 | | Name | Author | Version | 66 | | ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | 67 | | [**Dataview**](https://obsidian.md/plugins?id=dataview) | [Michael Brenan](https://github.com/blacksmithgu) | 0.5.64 | 68 | | [**Text Format**](https://obsidian.md/plugins?id=obsidian-text-format) | [Benature](https://github.com/Benature) [☕️](https://www.buymeacoffee.com/benature) / [⚡️](https://afdian.net/a/Benature-K) / [♡](https://s2.loli.net/2024/04/01/VtX3vYLobdF6MBc.png) | 2.6.0 | 69 | | [**Metadata Icon**](https://obsidian.md/plugins?id=metadata-icon) | [Benature](https://github.com/Benature) [☕️](https://www.buymeacoffee.com/benature) / [⚡️](https://afdian.net/a/Benature-K) / [♡](https://s2.loli.net/2024/04/01/VtX3vYLobdF6MBc.png) | 0.0.9 | 70 | | [**Plugin Reloader**](https://obsidian.md/plugins?id=plugin-reloader) | [Benature](https://github.com/Benature) [☕️](https://www.buymeacoffee.com/benature) / [⚡️](https://afdian.net/a/Benature-K) / [♡](https://s2.loli.net/2024/04/01/VtX3vYLobdF6MBc.png) | 0.0.2 | 71 | | [**Metadata Hider**](https://obsidian.md/plugins?id=metadata-hider) | [Benature](https://github.com/Benature) [☕️](https://www.buymeacoffee.com/benature) / [⚡️](https://afdian.net/a/Benature-K) / [♡](https://s2.loli.net/2024/04/01/VtX3vYLobdF6MBc.png) | 0.1.1 | 72 | 73 | 74 | Source: 75 | 76 | ```md 77 | | Name | Author | Version | 78 | | ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | 79 | | [**Dataview**](https://obsidian.md/plugins?id=dataview) | [Michael Brenan](https://github.com/blacksmithgu) | 0.5.64 | 80 | | [**Text Format**](https://obsidian.md/plugins?id=obsidian-text-format) | [Benature](https://github.com/Benature) [☕️](https://www.buymeacoffee.com/benature) / [⚡️](https://afdian.net/a/Benature-K) / [♡](https://s2.loli.net/2024/04/01/VtX3vYLobdF6MBc.png) | 2.6.0 | 81 | | [**Metadata Icon**](https://obsidian.md/plugins?id=metadata-icon) | [Benature](https://github.com/Benature) [☕️](https://www.buymeacoffee.com/benature) / [⚡️](https://afdian.net/a/Benature-K) / [♡](https://s2.loli.net/2024/04/01/VtX3vYLobdF6MBc.png) | 0.0.9 | 82 | | [**Plugin Reloader**](https://obsidian.md/plugins?id=plugin-reloader) | [Benature](https://github.com/Benature) [☕️](https://www.buymeacoffee.com/benature) / [⚡️](https://afdian.net/a/Benature-K) / [♡](https://s2.loli.net/2024/04/01/VtX3vYLobdF6MBc.png) | 0.0.2 | 83 | | [**Metadata Hider**](https://obsidian.md/plugins?id=metadata-hider) | [Benature](https://github.com/Benature) [☕️](https://www.buymeacoffee.com/benature) / [⚡️](https://afdian.net/a/Benature-K) / [♡](https://s2.loli.net/2024/04/01/VtX3vYLobdF6MBc.png) | 0.1.1 | 84 | ``` 85 | 86 | 87 |
88 | 89 | 90 | ### Export to file 91 | 92 | You can export the list of activated plugins to a file with command `Export to file`. The file that will be saved in your vault folder can be configured in the plugin settings. 93 | 94 | The exported content is surrounded by `` and ``: 95 | ```md 96 | 97 | - Plugin 1 98 | - Plugin 2 99 | - ... 100 | 101 | ``` 102 | Contents between the comments will be overwritten by the plugin when you export again, whereas the contents outside the comments will be preserved. 103 | 104 | 105 | ## Support 106 | 107 | If you find this plugin useful and would like to support its development, you can sponsor me via [Buy Me a Coffee ☕️](https://www.buymeacoffee.com/benature), WeChat, Alipay or [AiFaDian](https://afdian.net/a/Benature-K). Any amount is welcome, thank you! 108 | 109 |

110 | 111 |

112 | 113 | ## Other install methods 114 | 115 | ### Install by [BRAT Plugin](https://obsidian.md/plugins?id=obsidian42-brat) 116 | 117 | - First install [BRAT Plugin](https://obsidian.md/plugins?id=obsidian42-brat): 118 | - In BRAT Plugin, click `Add Beta plugin` 119 | - Enter https://github.com/Benature/obsidian-share-my-plugin-list 120 | - Enable `Share My Plugin List` in `Community plugins` 121 | 122 | ### Manually install 123 | 124 | - Download latest version in [Releases](https://github.com/Benature/obsidian-share-my-plugin-list/releases/latest) 125 | - Copy over `main.js`, `manifest.json` to your vault `VaultFolder/.obsidian/plugins/metadata-icon/` 126 | - Reload plugins in `Community plugins` and enable `Share My Plugin List` 127 | 128 | ## How to build 129 | 130 | - `git clone https://github.com/Benature/obsidian-share-my-plugin-list` clone this repo. 131 | - `npm i` install dependencies 132 | - `npm run dev` to start compilation in watch mode. 133 | - `npm run build` to build production. 134 | -------------------------------------------------------------------------------- /esbuild.config.mjs: -------------------------------------------------------------------------------- 1 | import esbuild from "esbuild"; 2 | import process from "process"; 3 | import builtins from "builtin-modules"; 4 | 5 | const banner = 6 | `/* 7 | THIS IS A GENERATED/BUNDLED FILE BY ESBUILD 8 | if you want to view the source, please visit the github repository of this plugin 9 | */ 10 | `; 11 | 12 | const prod = (process.argv[2] === "production"); 13 | 14 | const context = await esbuild.context({ 15 | banner: { 16 | js: banner, 17 | }, 18 | entryPoints: ["main.ts"], 19 | bundle: true, 20 | external: [ 21 | "obsidian", 22 | "electron", 23 | "@codemirror/autocomplete", 24 | "@codemirror/collab", 25 | "@codemirror/commands", 26 | "@codemirror/language", 27 | "@codemirror/lint", 28 | "@codemirror/search", 29 | "@codemirror/state", 30 | "@codemirror/view", 31 | "@lezer/common", 32 | "@lezer/highlight", 33 | "@lezer/lr", 34 | ...builtins], 35 | format: "cjs", 36 | target: "es2018", 37 | logLevel: "info", 38 | sourcemap: prod ? false : "inline", 39 | treeShaking: true, 40 | outfile: "main.js", 41 | }); 42 | 43 | if (prod) { 44 | await context.rebuild(); 45 | process.exit(0); 46 | } else { 47 | await context.watch(); 48 | } -------------------------------------------------------------------------------- /main.ts: -------------------------------------------------------------------------------- 1 | import { App, Editor, MarkdownView, Modal, Notice, ObsidianProtocolData, Plugin, normalizePath } from 'obsidian'; 2 | import { PluginSettings, DEFAULT_SETTINGS, ShareMyPluginSettingTab as ShareMyPluginSettingTab } from "src/setting/setting"; 3 | import * as fs from 'fs'; 4 | import { Locals } from "./src/i18n/i18n"; 5 | import { processFunding, touchFolder } from "./src/utils" 6 | import PluginInstaller from 'src/installer'; 7 | 8 | export default class ShareMyPlugin extends Plugin { 9 | settings: PluginSettings; 10 | installer: PluginInstaller; 11 | 12 | async loadSettings() { 13 | this.settings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData()); 14 | } 15 | 16 | async saveSettings() { 17 | await this.saveData(this.settings); 18 | } 19 | 20 | async onload() { 21 | 22 | const t = Locals.get(); 23 | await this.loadSettings(); 24 | this.addSettingTab(new ShareMyPluginSettingTab(this.app, this)); 25 | this.installer = new PluginInstaller(this); 26 | 27 | 28 | this.addCommand({ 29 | id: 'generate-list-of-active-plugins', 30 | name: t.command.GenerateActiveList, 31 | editorCallback: async (editor: Editor, view: MarkdownView) => { 32 | const plugins = await this.getActivePlugins(); 33 | editor.replaceSelection(this.genList(plugins)); 34 | } 35 | }); 36 | this.addCommand({ 37 | id: 'generate-table-of-active-plugins', 38 | name: t.command.GenerateActiveTable, 39 | editorCallback: async (editor: Editor, view: MarkdownView) => { 40 | const plugins = await this.getActivePlugins(); 41 | editor.replaceSelection(this.genTable(plugins)); 42 | } 43 | }); 44 | this.addCommand({ 45 | id: 'generate-list-of-inactive-plugins', 46 | name: t.command.GenerateInactiveList, 47 | editorCallback: async (editor: Editor, view: MarkdownView) => { 48 | const plugins = await this.getInactivePlugins(); 49 | editor.replaceSelection(this.genList(plugins)); 50 | } 51 | }); 52 | this.addCommand({ 53 | id: 'generate-table-of-inactive-plugins', 54 | name: t.command.GenerateInactiveTable, 55 | editorCallback: async (editor: Editor, view: MarkdownView) => { 56 | const plugins = await this.getInactivePlugins(); 57 | editor.replaceSelection(this.genTable(plugins)); 58 | } 59 | }); 60 | this.addCommand({ 61 | id: 'export-file', 62 | name: t.command.ExportFile, 63 | callback: async () => { 64 | await this.exportToFile(); 65 | } 66 | }); 67 | 68 | this.addCommand({ 69 | id: 'install-all', 70 | name: t.command.InstallAllInFill, 71 | editorCallback: async (editor: Editor, view: MarkdownView) => { 72 | let text = editor.getValue(); 73 | const urls: Set = new Set(); 74 | text.match(/obsidian:\/\/SP-install\?[^\s\]\)]+/g)?.forEach(url => { 75 | urls.add(url); 76 | }) 77 | for (const urlString of urls) { 78 | const url = new URL(urlString); 79 | let params: ObsidianProtocolData = { action: url.pathname.replace(/^\/+/g, "") }; 80 | for (const k of url.searchParams.keys()) { 81 | params[k] = url.searchParams.get(k) ?? ""; 82 | } 83 | await this.installer.parseAndInstallPlugin(params); 84 | } 85 | } 86 | }); 87 | 88 | this.registerObsidianProtocolHandler("SP-install", async (params: ObsidianProtocolData) => { 89 | await this.installer.parseAndInstallPlugin(params); 90 | }) 91 | 92 | if (this.settings.exportFileWhenLoaded) { 93 | setTimeout(async () => { 94 | await this.exportToFile(false); 95 | }, 1000); 96 | } 97 | 98 | this.getInactivePlugins(); 99 | } 100 | 101 | debug(...args: any[]): void { 102 | if (this.settings.debugMode) { 103 | console.log(...args); 104 | } 105 | } 106 | 107 | async exportToFile(open = true) { 108 | this.debug("exportToFile") 109 | let content: string; 110 | const plugins = await this.getActivePlugins(); 111 | switch (this.settings.exportFileFormat) { 112 | case "list": 113 | content = this.genList(plugins); 114 | break; 115 | case "table": 116 | content = this.genTable(plugins); 117 | break; 118 | default: 119 | new Notice(`Unknown export file format: ${this.settings.exportFileFormat}`); 120 | return; 121 | } 122 | 123 | const commentPrefix = ""; 124 | const commentSuffix = ""; 125 | content = commentPrefix + "\n\n" + content + "\n\n" + commentSuffix; 126 | this.debug(content) 127 | 128 | const vault = this.app.vault; 129 | const path = this.settings.exportFilePath; 130 | await touchFolder(vault, path.split(/[\/\\]/).slice(0, -1).join("/")); 131 | if (await vault.adapter.exists(path)) { 132 | let contentOriginal = await vault.adapter.read(path); 133 | this.debug("contentOriginal", contentOriginal) 134 | const r = RegExp(commentPrefix + String.raw`[\s\S]*?` + commentSuffix, "m"); 135 | let contentNew = r.test(contentOriginal) ? contentOriginal.replace(r, content) : content; 136 | await vault.adapter.write(path, contentNew); 137 | } else { 138 | await vault.create(path, content); 139 | } 140 | 141 | new Notice(`Exported plugin ${this.settings.exportFileFormat} to ${path}.`); 142 | 143 | if (open && this.settings.exportFileOpen) { 144 | this.app.workspace.openLinkText(path, path, this.settings.exportFileNewLeaf); 145 | } 146 | } 147 | 148 | genList(plugins: any): string { 149 | this.debug("genList"); 150 | // const plugins = this.getActivePlugins(); 151 | this.debug(plugins) 152 | let text: string[] = []; 153 | for (let key in plugins) { 154 | // this.debug(key) 155 | const m = plugins[key].manifest; 156 | this.debug(m) 157 | let line = `- [⬇️](${m.installLink}) [**${m.name}**](${m.pluginUrl})` 158 | if (m.author && m.authorUrl) { 159 | line += ` by [*${m.author2}*](${m.authorUrl})` 160 | } 161 | line += processFunding(m); 162 | if (this.settings.descriptionLength >= 0) { 163 | line += ` ^[${m?.description}]` 164 | } 165 | text.push(line); 166 | } 167 | this.debug(text); 168 | return text.join('\n') + "\n\n"; 169 | } 170 | 171 | genTable(plugins: any): string { 172 | this.debug("genTable") 173 | // const plugins = this.getActivePlugins(); 174 | const t = Locals.get(); 175 | const hasDesc = this.settings.descriptionLength >= 0; 176 | 177 | let text: string[] = [""]; 178 | text.push(t.genTableTemplate.Heading + (hasDesc ? t.genTableTemplate.headerDescription : "")); 179 | text.push(t.genTableTemplate.Align + (hasDesc ? "---|" : "")); 180 | 181 | for (let key in plugins) { 182 | this.debug(plugins[key]); 183 | const m = plugins[key].manifest; 184 | let name = `[**${m.name}**](${m.pluginUrl}) [⬇️](${m.installLink})` 185 | let author = ""; 186 | if (m.author && m.authorUrl) { 187 | author = `[${m?.author2}](${m?.authorUrl})` 188 | } 189 | author += processFunding(m); 190 | 191 | let line = `|${name}|${author}|${m?.version}|`; 192 | if (hasDesc) { 193 | let description = m?.description; 194 | if (this.settings.descriptionLength > 0 && description.length > this.settings.descriptionLength) { 195 | description = description.slice(0, this.settings.descriptionLength).replace(/ +.{1,8}$/, ""); 196 | description += "..."; 197 | } 198 | line += `${description}|`; 199 | } 200 | text.push(line); 201 | } 202 | this.debug(text) 203 | return text.join('\n') + "\n"; 204 | } 205 | 206 | async getActivePlugins() { 207 | this.debug("getActivePlugins"); 208 | // @ts-ignore 209 | const originPlugins = this.app.plugins.plugins; 210 | return await this.processPlugins(originPlugins); 211 | } 212 | 213 | async getInactivePlugins() { 214 | this.debug("getInactivePlugins"); 215 | // @ts-ignore 216 | const appPlugins = this.app.plugins; 217 | const activePlugins = appPlugins.plugins; 218 | const activePluginFolderName: string[] = []; 219 | for (let n in activePlugins) { 220 | activePluginFolderName.push(activePlugins[n].manifest.dir.split(/[\/\\]/)[2]); 221 | } 222 | this.debug(activePluginFolderName) 223 | 224 | // const vault = this.app.vault 225 | // @ts-ignore 226 | // const basePath = vault.adapter.basePath; 227 | // const pluginPath = normalizePath(basePath + "/" + vault.configDir + "/plugins"); 228 | 229 | // const pluginsArray: { [key: string]: any } = {}; 230 | 231 | // all plugins (enable & disable) 232 | const allPluginManifests = appPlugins.manifests; 233 | const inactivePluginManifests: { [key: string]: any } = {}; 234 | for (const id in allPluginManifests) { 235 | if (id in activePlugins) { continue; } 236 | inactivePluginManifests[id] = { 237 | manifest: allPluginManifests[id], 238 | disabled: true, 239 | } 240 | } 241 | // const inactivePluginManifests = allPluginManifests.filter( 242 | // (p: { [key: string]: any }) => Object.keys(activePlugins).includes(p.id)); 243 | // console.log(inactivePluginManifests) 244 | return inactivePluginManifests; 245 | 246 | // const pluginFolderNames: Promise = new Promise((resolve, reject) => { 247 | // fs.readdir(pluginPath, (err, files) => { 248 | // if (err) { 249 | // reject(err); 250 | // } else { 251 | // resolve(files); 252 | // } 253 | // }); 254 | // }); 255 | // for (let folderName of await pluginFolderNames) { 256 | // if (!activePluginFolderName.includes(folderName)) { 257 | // // @ts-ignore 258 | // const { plugins } = this.app; 259 | // const manifestPath = normalizePath(basePath + "/" + plugins.getPluginFolder() + "/" + folderName + "/manifest.json"); 260 | // if (fs.existsSync(manifestPath)) { 261 | // const manifest = JSON.parse(fs.readFileSync(manifestPath, "utf-8")); 262 | // pluginsArray[manifest.id] = { manifest: manifest }; 263 | // } 264 | // } 265 | // } 266 | // return await this.processPlugins(pluginsArray); 267 | } 268 | 269 | async processPlugins(originPlugins: any) { 270 | let plugins: any = {}; 271 | for (let name in originPlugins) { 272 | try { 273 | let plugin = { ...originPlugins[name] }; // new an object and make it extensible 274 | plugin.manifest = { ...originPlugins[name].manifest } 275 | plugin.manifest["pluginUrl"] = `https://obsidian.md/plugins?id=${plugin.manifest.id}`; 276 | plugin.manifest["author2"] = plugin.manifest.author?.replace(/<.*?@.*?\..*?>/g, "").trim(); // remove email address 277 | plugin.manifest["installLink"] = `obsidian://SP-install?id=${plugin.manifest.id}&enable=true`; 278 | plugins[name] = plugin; 279 | } catch (e) { 280 | console.error(name, e); 281 | console.log(originPlugins[name]); 282 | console.log(originPlugins[name].manifest); 283 | console.log(typeof originPlugins[name].manifest); 284 | } 285 | } 286 | if ("obsidian42-brat" in plugins == false) { 287 | return plugins; 288 | } 289 | const BRAT = plugins["obsidian42-brat"]; 290 | for (let repo of BRAT.settings.pluginList) { 291 | const manifest = await fetch(`https://raw.githubusercontent.com/${repo}/HEAD/manifest.json`).then(r => r.json()); 292 | if (!(manifest.id in this.installer.communityPlugins) && (manifest.id in originPlugins)) { 293 | plugins[manifest.id].manifest.pluginUrl = `https://github.com/${repo}`; 294 | plugins[manifest.id].manifest["installLink"] = `obsidian://SP-install?id=${plugins[manifest.id].manifest.id}&enable=true&github=${repo}`; 295 | } 296 | } 297 | return plugins; 298 | } 299 | 300 | onunload() { 301 | } 302 | } 303 | -------------------------------------------------------------------------------- /manifest-beta.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "share-my-plugin-list", 3 | "name": "Share my plugin list", 4 | "version": "0.3.0-b1", 5 | "minAppVersion": "0.15.0", 6 | "description": "Share the enabled plugins in list/table format.", 7 | "author": "Benature", 8 | "authorUrl": "https://github.com/Benature", 9 | "fundingUrl": { 10 | "Buy Me a Coffee": "https://www.buymeacoffee.com/benature", 11 | "爱发电": "https://afdian.net/a/Benature-K", 12 | "微信/支付宝": "https://s2.loli.net/2024/01/30/jQ9fTSyBxvXRoOM.png" 13 | }, 14 | "isDesktopOnly": false 15 | } 16 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "share-my-plugin-list", 3 | "name": "Share my plugin list", 4 | "version": "0.3.3", 5 | "minAppVersion": "0.15.0", 6 | "description": "Share the enabled plugins in list/table format.", 7 | "author": "Benature", 8 | "authorUrl": "https://github.com/Benature", 9 | "fundingUrl": { 10 | "Buy Me a Coffee": "https://www.buymeacoffee.com/benature", 11 | "爱发电": "https://afdian.net/a/Benature-K", 12 | "微信/支付宝": "https://s2.loli.net/2024/01/30/jQ9fTSyBxvXRoOM.png" 13 | }, 14 | "isDesktopOnly": false 15 | } -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "obsidian-sample-plugin", 3 | "version": "1.0.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "obsidian-sample-plugin", 9 | "version": "1.0.0", 10 | "license": "MIT", 11 | "dependencies": { 12 | "@popperjs/core": "^2.11.6" 13 | }, 14 | "devDependencies": { 15 | "@types/node": "^16.11.6", 16 | "@typescript-eslint/eslint-plugin": "5.29.0", 17 | "@typescript-eslint/parser": "5.29.0", 18 | "builtin-modules": "3.3.0", 19 | "esbuild": "0.17.3", 20 | "obsidian": "latest", 21 | "tslib": "2.4.0", 22 | "typescript": "4.7.4" 23 | } 24 | }, 25 | "node_modules/@aashutoshrathi/word-wrap": { 26 | "version": "1.2.6", 27 | "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", 28 | "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", 29 | "dev": true, 30 | "peer": true, 31 | "engines": { 32 | "node": ">=0.10.0" 33 | } 34 | }, 35 | "node_modules/@codemirror/state": { 36 | "version": "6.4.1", 37 | "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.4.1.tgz", 38 | "integrity": "sha512-QkEyUiLhsJoZkbumGZlswmAhA7CBU02Wrz7zvH4SrcifbsqwlXShVXg65f3v/ts57W3dqyamEriMhij1Z3Zz4A==", 39 | "dev": true, 40 | "peer": true 41 | }, 42 | "node_modules/@codemirror/view": { 43 | "version": "6.26.1", 44 | "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.26.1.tgz", 45 | "integrity": "sha512-wLw0t3R9AwOSQThdZ5Onw8QQtem5asE7+bPlnzc57eubPqiuJKIzwjMZ+C42vQett+iva+J8VgFV4RYWDBh5FA==", 46 | "dev": true, 47 | "peer": true, 48 | "dependencies": { 49 | "@codemirror/state": "^6.4.0", 50 | "style-mod": "^4.1.0", 51 | "w3c-keyname": "^2.2.4" 52 | } 53 | }, 54 | "node_modules/@esbuild/android-arm": { 55 | "version": "0.17.3", 56 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.3.tgz", 57 | "integrity": "sha512-1Mlz934GvbgdDmt26rTLmf03cAgLg5HyOgJN+ZGCeP3Q9ynYTNMn2/LQxIl7Uy+o4K6Rfi2OuLsr12JQQR8gNg==", 58 | "cpu": [ 59 | "arm" 60 | ], 61 | "dev": true, 62 | "optional": true, 63 | "os": [ 64 | "android" 65 | ], 66 | "engines": { 67 | "node": ">=12" 68 | } 69 | }, 70 | "node_modules/@esbuild/android-arm64": { 71 | "version": "0.17.3", 72 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.3.tgz", 73 | "integrity": "sha512-XvJsYo3dO3Pi4kpalkyMvfQsjxPWHYjoX4MDiB/FUM4YMfWcXa5l4VCwFWVYI1+92yxqjuqrhNg0CZg3gSouyQ==", 74 | "cpu": [ 75 | "arm64" 76 | ], 77 | "dev": true, 78 | "optional": true, 79 | "os": [ 80 | "android" 81 | ], 82 | "engines": { 83 | "node": ">=12" 84 | } 85 | }, 86 | "node_modules/@esbuild/android-x64": { 87 | "version": "0.17.3", 88 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.3.tgz", 89 | "integrity": "sha512-nuV2CmLS07Gqh5/GrZLuqkU9Bm6H6vcCspM+zjp9TdQlxJtIe+qqEXQChmfc7nWdyr/yz3h45Utk1tUn8Cz5+A==", 90 | "cpu": [ 91 | "x64" 92 | ], 93 | "dev": true, 94 | "optional": true, 95 | "os": [ 96 | "android" 97 | ], 98 | "engines": { 99 | "node": ">=12" 100 | } 101 | }, 102 | "node_modules/@esbuild/darwin-arm64": { 103 | "version": "0.17.3", 104 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.3.tgz", 105 | "integrity": "sha512-01Hxaaat6m0Xp9AXGM8mjFtqqwDjzlMP0eQq9zll9U85ttVALGCGDuEvra5Feu/NbP5AEP1MaopPwzsTcUq1cw==", 106 | "cpu": [ 107 | "arm64" 108 | ], 109 | "dev": true, 110 | "optional": true, 111 | "os": [ 112 | "darwin" 113 | ], 114 | "engines": { 115 | "node": ">=12" 116 | } 117 | }, 118 | "node_modules/@esbuild/darwin-x64": { 119 | "version": "0.17.3", 120 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.3.tgz", 121 | "integrity": "sha512-Eo2gq0Q/er2muf8Z83X21UFoB7EU6/m3GNKvrhACJkjVThd0uA+8RfKpfNhuMCl1bKRfBzKOk6xaYKQZ4lZqvA==", 122 | "cpu": [ 123 | "x64" 124 | ], 125 | "dev": true, 126 | "optional": true, 127 | "os": [ 128 | "darwin" 129 | ], 130 | "engines": { 131 | "node": ">=12" 132 | } 133 | }, 134 | "node_modules/@esbuild/freebsd-arm64": { 135 | "version": "0.17.3", 136 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.3.tgz", 137 | "integrity": "sha512-CN62ESxaquP61n1ZjQP/jZte8CE09M6kNn3baos2SeUfdVBkWN5n6vGp2iKyb/bm/x4JQzEvJgRHLGd5F5b81w==", 138 | "cpu": [ 139 | "arm64" 140 | ], 141 | "dev": true, 142 | "optional": true, 143 | "os": [ 144 | "freebsd" 145 | ], 146 | "engines": { 147 | "node": ">=12" 148 | } 149 | }, 150 | "node_modules/@esbuild/freebsd-x64": { 151 | "version": "0.17.3", 152 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.3.tgz", 153 | "integrity": "sha512-feq+K8TxIznZE+zhdVurF3WNJ/Sa35dQNYbaqM/wsCbWdzXr5lyq+AaTUSER2cUR+SXPnd/EY75EPRjf4s1SLg==", 154 | "cpu": [ 155 | "x64" 156 | ], 157 | "dev": true, 158 | "optional": true, 159 | "os": [ 160 | "freebsd" 161 | ], 162 | "engines": { 163 | "node": ">=12" 164 | } 165 | }, 166 | "node_modules/@esbuild/linux-arm": { 167 | "version": "0.17.3", 168 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.3.tgz", 169 | "integrity": "sha512-CLP3EgyNuPcg2cshbwkqYy5bbAgK+VhyfMU7oIYyn+x4Y67xb5C5ylxsNUjRmr8BX+MW3YhVNm6Lq6FKtRTWHQ==", 170 | "cpu": [ 171 | "arm" 172 | ], 173 | "dev": true, 174 | "optional": true, 175 | "os": [ 176 | "linux" 177 | ], 178 | "engines": { 179 | "node": ">=12" 180 | } 181 | }, 182 | "node_modules/@esbuild/linux-arm64": { 183 | "version": "0.17.3", 184 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.3.tgz", 185 | "integrity": "sha512-JHeZXD4auLYBnrKn6JYJ0o5nWJI9PhChA/Nt0G4MvLaMrvXuWnY93R3a7PiXeJQphpL1nYsaMcoV2QtuvRnF/g==", 186 | "cpu": [ 187 | "arm64" 188 | ], 189 | "dev": true, 190 | "optional": true, 191 | "os": [ 192 | "linux" 193 | ], 194 | "engines": { 195 | "node": ">=12" 196 | } 197 | }, 198 | "node_modules/@esbuild/linux-ia32": { 199 | "version": "0.17.3", 200 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.3.tgz", 201 | "integrity": "sha512-FyXlD2ZjZqTFh0sOQxFDiWG1uQUEOLbEh9gKN/7pFxck5Vw0qjWSDqbn6C10GAa1rXJpwsntHcmLqydY9ST9ZA==", 202 | "cpu": [ 203 | "ia32" 204 | ], 205 | "dev": true, 206 | "optional": true, 207 | "os": [ 208 | "linux" 209 | ], 210 | "engines": { 211 | "node": ">=12" 212 | } 213 | }, 214 | "node_modules/@esbuild/linux-loong64": { 215 | "version": "0.17.3", 216 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.3.tgz", 217 | "integrity": "sha512-OrDGMvDBI2g7s04J8dh8/I7eSO+/E7nMDT2Z5IruBfUO/RiigF1OF6xoH33Dn4W/OwAWSUf1s2nXamb28ZklTA==", 218 | "cpu": [ 219 | "loong64" 220 | ], 221 | "dev": true, 222 | "optional": true, 223 | "os": [ 224 | "linux" 225 | ], 226 | "engines": { 227 | "node": ">=12" 228 | } 229 | }, 230 | "node_modules/@esbuild/linux-mips64el": { 231 | "version": "0.17.3", 232 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.3.tgz", 233 | "integrity": "sha512-DcnUpXnVCJvmv0TzuLwKBC2nsQHle8EIiAJiJ+PipEVC16wHXaPEKP0EqN8WnBe0TPvMITOUlP2aiL5YMld+CQ==", 234 | "cpu": [ 235 | "mips64el" 236 | ], 237 | "dev": true, 238 | "optional": true, 239 | "os": [ 240 | "linux" 241 | ], 242 | "engines": { 243 | "node": ">=12" 244 | } 245 | }, 246 | "node_modules/@esbuild/linux-ppc64": { 247 | "version": "0.17.3", 248 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.3.tgz", 249 | "integrity": "sha512-BDYf/l1WVhWE+FHAW3FzZPtVlk9QsrwsxGzABmN4g8bTjmhazsId3h127pliDRRu5674k1Y2RWejbpN46N9ZhQ==", 250 | "cpu": [ 251 | "ppc64" 252 | ], 253 | "dev": true, 254 | "optional": true, 255 | "os": [ 256 | "linux" 257 | ], 258 | "engines": { 259 | "node": ">=12" 260 | } 261 | }, 262 | "node_modules/@esbuild/linux-riscv64": { 263 | "version": "0.17.3", 264 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.3.tgz", 265 | "integrity": "sha512-WViAxWYMRIi+prTJTyV1wnqd2mS2cPqJlN85oscVhXdb/ZTFJdrpaqm/uDsZPGKHtbg5TuRX/ymKdOSk41YZow==", 266 | "cpu": [ 267 | "riscv64" 268 | ], 269 | "dev": true, 270 | "optional": true, 271 | "os": [ 272 | "linux" 273 | ], 274 | "engines": { 275 | "node": ">=12" 276 | } 277 | }, 278 | "node_modules/@esbuild/linux-s390x": { 279 | "version": "0.17.3", 280 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.3.tgz", 281 | "integrity": "sha512-Iw8lkNHUC4oGP1O/KhumcVy77u2s6+KUjieUqzEU3XuWJqZ+AY7uVMrrCbAiwWTkpQHkr00BuXH5RpC6Sb/7Ug==", 282 | "cpu": [ 283 | "s390x" 284 | ], 285 | "dev": true, 286 | "optional": true, 287 | "os": [ 288 | "linux" 289 | ], 290 | "engines": { 291 | "node": ">=12" 292 | } 293 | }, 294 | "node_modules/@esbuild/linux-x64": { 295 | "version": "0.17.3", 296 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.3.tgz", 297 | "integrity": "sha512-0AGkWQMzeoeAtXQRNB3s4J1/T2XbigM2/Mn2yU1tQSmQRmHIZdkGbVq2A3aDdNslPyhb9/lH0S5GMTZ4xsjBqg==", 298 | "cpu": [ 299 | "x64" 300 | ], 301 | "dev": true, 302 | "optional": true, 303 | "os": [ 304 | "linux" 305 | ], 306 | "engines": { 307 | "node": ">=12" 308 | } 309 | }, 310 | "node_modules/@esbuild/netbsd-x64": { 311 | "version": "0.17.3", 312 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.3.tgz", 313 | "integrity": "sha512-4+rR/WHOxIVh53UIQIICryjdoKdHsFZFD4zLSonJ9RRw7bhKzVyXbnRPsWSfwybYqw9sB7ots/SYyufL1mBpEg==", 314 | "cpu": [ 315 | "x64" 316 | ], 317 | "dev": true, 318 | "optional": true, 319 | "os": [ 320 | "netbsd" 321 | ], 322 | "engines": { 323 | "node": ">=12" 324 | } 325 | }, 326 | "node_modules/@esbuild/openbsd-x64": { 327 | "version": "0.17.3", 328 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.3.tgz", 329 | "integrity": "sha512-cVpWnkx9IYg99EjGxa5Gc0XmqumtAwK3aoz7O4Dii2vko+qXbkHoujWA68cqXjhh6TsLaQelfDO4MVnyr+ODeA==", 330 | "cpu": [ 331 | "x64" 332 | ], 333 | "dev": true, 334 | "optional": true, 335 | "os": [ 336 | "openbsd" 337 | ], 338 | "engines": { 339 | "node": ">=12" 340 | } 341 | }, 342 | "node_modules/@esbuild/sunos-x64": { 343 | "version": "0.17.3", 344 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.3.tgz", 345 | "integrity": "sha512-RxmhKLbTCDAY2xOfrww6ieIZkZF+KBqG7S2Ako2SljKXRFi+0863PspK74QQ7JpmWwncChY25JTJSbVBYGQk2Q==", 346 | "cpu": [ 347 | "x64" 348 | ], 349 | "dev": true, 350 | "optional": true, 351 | "os": [ 352 | "sunos" 353 | ], 354 | "engines": { 355 | "node": ">=12" 356 | } 357 | }, 358 | "node_modules/@esbuild/win32-arm64": { 359 | "version": "0.17.3", 360 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.3.tgz", 361 | "integrity": "sha512-0r36VeEJ4efwmofxVJRXDjVRP2jTmv877zc+i+Pc7MNsIr38NfsjkQj23AfF7l0WbB+RQ7VUb+LDiqC/KY/M/A==", 362 | "cpu": [ 363 | "arm64" 364 | ], 365 | "dev": true, 366 | "optional": true, 367 | "os": [ 368 | "win32" 369 | ], 370 | "engines": { 371 | "node": ">=12" 372 | } 373 | }, 374 | "node_modules/@esbuild/win32-ia32": { 375 | "version": "0.17.3", 376 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.3.tgz", 377 | "integrity": "sha512-wgO6rc7uGStH22nur4aLFcq7Wh86bE9cOFmfTr/yxN3BXvDEdCSXyKkO+U5JIt53eTOgC47v9k/C1bITWL/Teg==", 378 | "cpu": [ 379 | "ia32" 380 | ], 381 | "dev": true, 382 | "optional": true, 383 | "os": [ 384 | "win32" 385 | ], 386 | "engines": { 387 | "node": ">=12" 388 | } 389 | }, 390 | "node_modules/@esbuild/win32-x64": { 391 | "version": "0.17.3", 392 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.3.tgz", 393 | "integrity": "sha512-FdVl64OIuiKjgXBjwZaJLKp0eaEckifbhn10dXWhysMJkWblg3OEEGKSIyhiD5RSgAya8WzP3DNkngtIg3Nt7g==", 394 | "cpu": [ 395 | "x64" 396 | ], 397 | "dev": true, 398 | "optional": true, 399 | "os": [ 400 | "win32" 401 | ], 402 | "engines": { 403 | "node": ">=12" 404 | } 405 | }, 406 | "node_modules/@eslint-community/eslint-utils": { 407 | "version": "4.4.0", 408 | "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", 409 | "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", 410 | "dev": true, 411 | "peer": true, 412 | "dependencies": { 413 | "eslint-visitor-keys": "^3.3.0" 414 | }, 415 | "engines": { 416 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 417 | }, 418 | "peerDependencies": { 419 | "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" 420 | } 421 | }, 422 | "node_modules/@eslint-community/regexpp": { 423 | "version": "4.10.0", 424 | "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", 425 | "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", 426 | "dev": true, 427 | "peer": true, 428 | "engines": { 429 | "node": "^12.0.0 || ^14.0.0 || >=16.0.0" 430 | } 431 | }, 432 | "node_modules/@eslint/eslintrc": { 433 | "version": "2.1.4", 434 | "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", 435 | "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", 436 | "dev": true, 437 | "peer": true, 438 | "dependencies": { 439 | "ajv": "^6.12.4", 440 | "debug": "^4.3.2", 441 | "espree": "^9.6.0", 442 | "globals": "^13.19.0", 443 | "ignore": "^5.2.0", 444 | "import-fresh": "^3.2.1", 445 | "js-yaml": "^4.1.0", 446 | "minimatch": "^3.1.2", 447 | "strip-json-comments": "^3.1.1" 448 | }, 449 | "engines": { 450 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 451 | }, 452 | "funding": { 453 | "url": "https://opencollective.com/eslint" 454 | } 455 | }, 456 | "node_modules/@eslint/js": { 457 | "version": "8.57.0", 458 | "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", 459 | "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", 460 | "dev": true, 461 | "peer": true, 462 | "engines": { 463 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 464 | } 465 | }, 466 | "node_modules/@humanwhocodes/config-array": { 467 | "version": "0.11.14", 468 | "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", 469 | "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", 470 | "dev": true, 471 | "peer": true, 472 | "dependencies": { 473 | "@humanwhocodes/object-schema": "^2.0.2", 474 | "debug": "^4.3.1", 475 | "minimatch": "^3.0.5" 476 | }, 477 | "engines": { 478 | "node": ">=10.10.0" 479 | } 480 | }, 481 | "node_modules/@humanwhocodes/module-importer": { 482 | "version": "1.0.1", 483 | "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", 484 | "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", 485 | "dev": true, 486 | "peer": true, 487 | "engines": { 488 | "node": ">=12.22" 489 | }, 490 | "funding": { 491 | "type": "github", 492 | "url": "https://github.com/sponsors/nzakas" 493 | } 494 | }, 495 | "node_modules/@humanwhocodes/object-schema": { 496 | "version": "2.0.3", 497 | "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", 498 | "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", 499 | "dev": true, 500 | "peer": true 501 | }, 502 | "node_modules/@nodelib/fs.scandir": { 503 | "version": "2.1.5", 504 | "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", 505 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", 506 | "dev": true, 507 | "dependencies": { 508 | "@nodelib/fs.stat": "2.0.5", 509 | "run-parallel": "^1.1.9" 510 | }, 511 | "engines": { 512 | "node": ">= 8" 513 | } 514 | }, 515 | "node_modules/@nodelib/fs.stat": { 516 | "version": "2.0.5", 517 | "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", 518 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", 519 | "dev": true, 520 | "engines": { 521 | "node": ">= 8" 522 | } 523 | }, 524 | "node_modules/@nodelib/fs.walk": { 525 | "version": "1.2.8", 526 | "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", 527 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", 528 | "dev": true, 529 | "dependencies": { 530 | "@nodelib/fs.scandir": "2.1.5", 531 | "fastq": "^1.6.0" 532 | }, 533 | "engines": { 534 | "node": ">= 8" 535 | } 536 | }, 537 | "node_modules/@popperjs/core": { 538 | "version": "2.11.8", 539 | "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", 540 | "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", 541 | "funding": { 542 | "type": "opencollective", 543 | "url": "https://opencollective.com/popperjs" 544 | } 545 | }, 546 | "node_modules/@types/codemirror": { 547 | "version": "5.60.8", 548 | "resolved": "https://registry.npmjs.org/@types/codemirror/-/codemirror-5.60.8.tgz", 549 | "integrity": "sha512-VjFgDF/eB+Aklcy15TtOTLQeMjTo07k7KAjql8OK5Dirr7a6sJY4T1uVBDuTVG9VEmn1uUsohOpYnVfgC6/jyw==", 550 | "dev": true, 551 | "dependencies": { 552 | "@types/tern": "*" 553 | } 554 | }, 555 | "node_modules/@types/estree": { 556 | "version": "1.0.5", 557 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", 558 | "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", 559 | "dev": true 560 | }, 561 | "node_modules/@types/json-schema": { 562 | "version": "7.0.15", 563 | "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", 564 | "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", 565 | "dev": true 566 | }, 567 | "node_modules/@types/node": { 568 | "version": "16.18.94", 569 | "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.94.tgz", 570 | "integrity": "sha512-X8q3DoKq8t/QhA0Rk/9wJUajxtXRDiCK+cVaONKLxpsjPhu+xX6uZuEj4UKGLQ4p0obTdFxa0cP/BMvf9mOYZA==", 571 | "dev": true 572 | }, 573 | "node_modules/@types/tern": { 574 | "version": "0.23.9", 575 | "resolved": "https://registry.npmjs.org/@types/tern/-/tern-0.23.9.tgz", 576 | "integrity": "sha512-ypzHFE/wBzh+BlH6rrBgS5I/Z7RD21pGhZ2rltb/+ZrVM1awdZwjx7hE5XfuYgHWk9uvV5HLZN3SloevCAp3Bw==", 577 | "dev": true, 578 | "dependencies": { 579 | "@types/estree": "*" 580 | } 581 | }, 582 | "node_modules/@typescript-eslint/eslint-plugin": { 583 | "version": "5.29.0", 584 | "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.29.0.tgz", 585 | "integrity": "sha512-kgTsISt9pM53yRFQmLZ4npj99yGl3x3Pl7z4eA66OuTzAGC4bQB5H5fuLwPnqTKU3yyrrg4MIhjF17UYnL4c0w==", 586 | "dev": true, 587 | "dependencies": { 588 | "@typescript-eslint/scope-manager": "5.29.0", 589 | "@typescript-eslint/type-utils": "5.29.0", 590 | "@typescript-eslint/utils": "5.29.0", 591 | "debug": "^4.3.4", 592 | "functional-red-black-tree": "^1.0.1", 593 | "ignore": "^5.2.0", 594 | "regexpp": "^3.2.0", 595 | "semver": "^7.3.7", 596 | "tsutils": "^3.21.0" 597 | }, 598 | "engines": { 599 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 600 | }, 601 | "funding": { 602 | "type": "opencollective", 603 | "url": "https://opencollective.com/typescript-eslint" 604 | }, 605 | "peerDependencies": { 606 | "@typescript-eslint/parser": "^5.0.0", 607 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" 608 | }, 609 | "peerDependenciesMeta": { 610 | "typescript": { 611 | "optional": true 612 | } 613 | } 614 | }, 615 | "node_modules/@typescript-eslint/parser": { 616 | "version": "5.29.0", 617 | "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.29.0.tgz", 618 | "integrity": "sha512-ruKWTv+x0OOxbzIw9nW5oWlUopvP/IQDjB5ZqmTglLIoDTctLlAJpAQFpNPJP/ZI7hTT9sARBosEfaKbcFuECw==", 619 | "dev": true, 620 | "dependencies": { 621 | "@typescript-eslint/scope-manager": "5.29.0", 622 | "@typescript-eslint/types": "5.29.0", 623 | "@typescript-eslint/typescript-estree": "5.29.0", 624 | "debug": "^4.3.4" 625 | }, 626 | "engines": { 627 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 628 | }, 629 | "funding": { 630 | "type": "opencollective", 631 | "url": "https://opencollective.com/typescript-eslint" 632 | }, 633 | "peerDependencies": { 634 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" 635 | }, 636 | "peerDependenciesMeta": { 637 | "typescript": { 638 | "optional": true 639 | } 640 | } 641 | }, 642 | "node_modules/@typescript-eslint/scope-manager": { 643 | "version": "5.29.0", 644 | "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.29.0.tgz", 645 | "integrity": "sha512-etbXUT0FygFi2ihcxDZjz21LtC+Eps9V2xVx09zFoN44RRHPrkMflidGMI+2dUs821zR1tDS6Oc9IXxIjOUZwA==", 646 | "dev": true, 647 | "dependencies": { 648 | "@typescript-eslint/types": "5.29.0", 649 | "@typescript-eslint/visitor-keys": "5.29.0" 650 | }, 651 | "engines": { 652 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 653 | }, 654 | "funding": { 655 | "type": "opencollective", 656 | "url": "https://opencollective.com/typescript-eslint" 657 | } 658 | }, 659 | "node_modules/@typescript-eslint/type-utils": { 660 | "version": "5.29.0", 661 | "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.29.0.tgz", 662 | "integrity": "sha512-JK6bAaaiJozbox3K220VRfCzLa9n0ib/J+FHIwnaV3Enw/TO267qe0pM1b1QrrEuy6xun374XEAsRlA86JJnyg==", 663 | "dev": true, 664 | "dependencies": { 665 | "@typescript-eslint/utils": "5.29.0", 666 | "debug": "^4.3.4", 667 | "tsutils": "^3.21.0" 668 | }, 669 | "engines": { 670 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 671 | }, 672 | "funding": { 673 | "type": "opencollective", 674 | "url": "https://opencollective.com/typescript-eslint" 675 | }, 676 | "peerDependencies": { 677 | "eslint": "*" 678 | }, 679 | "peerDependenciesMeta": { 680 | "typescript": { 681 | "optional": true 682 | } 683 | } 684 | }, 685 | "node_modules/@typescript-eslint/types": { 686 | "version": "5.29.0", 687 | "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.29.0.tgz", 688 | "integrity": "sha512-X99VbqvAXOMdVyfFmksMy3u8p8yoRGITgU1joBJPzeYa0rhdf5ok9S56/itRoUSh99fiDoMtarSIJXo7H/SnOg==", 689 | "dev": true, 690 | "engines": { 691 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 692 | }, 693 | "funding": { 694 | "type": "opencollective", 695 | "url": "https://opencollective.com/typescript-eslint" 696 | } 697 | }, 698 | "node_modules/@typescript-eslint/typescript-estree": { 699 | "version": "5.29.0", 700 | "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.29.0.tgz", 701 | "integrity": "sha512-mQvSUJ/JjGBdvo+1LwC+GY2XmSYjK1nAaVw2emp/E61wEVYEyibRHCqm1I1vEKbXCpUKuW4G7u9ZCaZhJbLoNQ==", 702 | "dev": true, 703 | "dependencies": { 704 | "@typescript-eslint/types": "5.29.0", 705 | "@typescript-eslint/visitor-keys": "5.29.0", 706 | "debug": "^4.3.4", 707 | "globby": "^11.1.0", 708 | "is-glob": "^4.0.3", 709 | "semver": "^7.3.7", 710 | "tsutils": "^3.21.0" 711 | }, 712 | "engines": { 713 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 714 | }, 715 | "funding": { 716 | "type": "opencollective", 717 | "url": "https://opencollective.com/typescript-eslint" 718 | }, 719 | "peerDependenciesMeta": { 720 | "typescript": { 721 | "optional": true 722 | } 723 | } 724 | }, 725 | "node_modules/@typescript-eslint/utils": { 726 | "version": "5.29.0", 727 | "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.29.0.tgz", 728 | "integrity": "sha512-3Eos6uP1nyLOBayc/VUdKZikV90HahXE5Dx9L5YlSd/7ylQPXhLk1BYb29SDgnBnTp+jmSZUU0QxUiyHgW4p7A==", 729 | "dev": true, 730 | "dependencies": { 731 | "@types/json-schema": "^7.0.9", 732 | "@typescript-eslint/scope-manager": "5.29.0", 733 | "@typescript-eslint/types": "5.29.0", 734 | "@typescript-eslint/typescript-estree": "5.29.0", 735 | "eslint-scope": "^5.1.1", 736 | "eslint-utils": "^3.0.0" 737 | }, 738 | "engines": { 739 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 740 | }, 741 | "funding": { 742 | "type": "opencollective", 743 | "url": "https://opencollective.com/typescript-eslint" 744 | }, 745 | "peerDependencies": { 746 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" 747 | } 748 | }, 749 | "node_modules/@typescript-eslint/visitor-keys": { 750 | "version": "5.29.0", 751 | "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.29.0.tgz", 752 | "integrity": "sha512-Hpb/mCWsjILvikMQoZIE3voc9wtQcS0A9FUw3h8bhr9UxBdtI/tw1ZDZUOXHXLOVMedKCH5NxyzATwnU78bWCQ==", 753 | "dev": true, 754 | "dependencies": { 755 | "@typescript-eslint/types": "5.29.0", 756 | "eslint-visitor-keys": "^3.3.0" 757 | }, 758 | "engines": { 759 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 760 | }, 761 | "funding": { 762 | "type": "opencollective", 763 | "url": "https://opencollective.com/typescript-eslint" 764 | } 765 | }, 766 | "node_modules/@ungap/structured-clone": { 767 | "version": "1.2.0", 768 | "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", 769 | "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", 770 | "dev": true, 771 | "peer": true 772 | }, 773 | "node_modules/acorn": { 774 | "version": "8.11.3", 775 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", 776 | "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", 777 | "dev": true, 778 | "peer": true, 779 | "bin": { 780 | "acorn": "bin/acorn" 781 | }, 782 | "engines": { 783 | "node": ">=0.4.0" 784 | } 785 | }, 786 | "node_modules/acorn-jsx": { 787 | "version": "5.3.2", 788 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", 789 | "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", 790 | "dev": true, 791 | "peer": true, 792 | "peerDependencies": { 793 | "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" 794 | } 795 | }, 796 | "node_modules/ajv": { 797 | "version": "6.12.6", 798 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 799 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 800 | "dev": true, 801 | "peer": true, 802 | "dependencies": { 803 | "fast-deep-equal": "^3.1.1", 804 | "fast-json-stable-stringify": "^2.0.0", 805 | "json-schema-traverse": "^0.4.1", 806 | "uri-js": "^4.2.2" 807 | }, 808 | "funding": { 809 | "type": "github", 810 | "url": "https://github.com/sponsors/epoberezkin" 811 | } 812 | }, 813 | "node_modules/ansi-regex": { 814 | "version": "5.0.1", 815 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 816 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 817 | "dev": true, 818 | "peer": true, 819 | "engines": { 820 | "node": ">=8" 821 | } 822 | }, 823 | "node_modules/ansi-styles": { 824 | "version": "4.3.0", 825 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 826 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 827 | "dev": true, 828 | "peer": true, 829 | "dependencies": { 830 | "color-convert": "^2.0.1" 831 | }, 832 | "engines": { 833 | "node": ">=8" 834 | }, 835 | "funding": { 836 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 837 | } 838 | }, 839 | "node_modules/argparse": { 840 | "version": "2.0.1", 841 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 842 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 843 | "dev": true, 844 | "peer": true 845 | }, 846 | "node_modules/array-union": { 847 | "version": "2.1.0", 848 | "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", 849 | "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", 850 | "dev": true, 851 | "engines": { 852 | "node": ">=8" 853 | } 854 | }, 855 | "node_modules/balanced-match": { 856 | "version": "1.0.2", 857 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 858 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 859 | "dev": true, 860 | "peer": true 861 | }, 862 | "node_modules/brace-expansion": { 863 | "version": "1.1.11", 864 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 865 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 866 | "dev": true, 867 | "peer": true, 868 | "dependencies": { 869 | "balanced-match": "^1.0.0", 870 | "concat-map": "0.0.1" 871 | } 872 | }, 873 | "node_modules/braces": { 874 | "version": "3.0.2", 875 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 876 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 877 | "dev": true, 878 | "dependencies": { 879 | "fill-range": "^7.0.1" 880 | }, 881 | "engines": { 882 | "node": ">=8" 883 | } 884 | }, 885 | "node_modules/builtin-modules": { 886 | "version": "3.3.0", 887 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", 888 | "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", 889 | "dev": true, 890 | "engines": { 891 | "node": ">=6" 892 | }, 893 | "funding": { 894 | "url": "https://github.com/sponsors/sindresorhus" 895 | } 896 | }, 897 | "node_modules/callsites": { 898 | "version": "3.1.0", 899 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 900 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 901 | "dev": true, 902 | "peer": true, 903 | "engines": { 904 | "node": ">=6" 905 | } 906 | }, 907 | "node_modules/chalk": { 908 | "version": "4.1.2", 909 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 910 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 911 | "dev": true, 912 | "peer": true, 913 | "dependencies": { 914 | "ansi-styles": "^4.1.0", 915 | "supports-color": "^7.1.0" 916 | }, 917 | "engines": { 918 | "node": ">=10" 919 | }, 920 | "funding": { 921 | "url": "https://github.com/chalk/chalk?sponsor=1" 922 | } 923 | }, 924 | "node_modules/color-convert": { 925 | "version": "2.0.1", 926 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 927 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 928 | "dev": true, 929 | "peer": true, 930 | "dependencies": { 931 | "color-name": "~1.1.4" 932 | }, 933 | "engines": { 934 | "node": ">=7.0.0" 935 | } 936 | }, 937 | "node_modules/color-name": { 938 | "version": "1.1.4", 939 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 940 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 941 | "dev": true, 942 | "peer": true 943 | }, 944 | "node_modules/concat-map": { 945 | "version": "0.0.1", 946 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 947 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 948 | "dev": true, 949 | "peer": true 950 | }, 951 | "node_modules/cross-spawn": { 952 | "version": "7.0.3", 953 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", 954 | "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", 955 | "dev": true, 956 | "peer": true, 957 | "dependencies": { 958 | "path-key": "^3.1.0", 959 | "shebang-command": "^2.0.0", 960 | "which": "^2.0.1" 961 | }, 962 | "engines": { 963 | "node": ">= 8" 964 | } 965 | }, 966 | "node_modules/debug": { 967 | "version": "4.3.4", 968 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", 969 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", 970 | "dev": true, 971 | "dependencies": { 972 | "ms": "2.1.2" 973 | }, 974 | "engines": { 975 | "node": ">=6.0" 976 | }, 977 | "peerDependenciesMeta": { 978 | "supports-color": { 979 | "optional": true 980 | } 981 | } 982 | }, 983 | "node_modules/deep-is": { 984 | "version": "0.1.4", 985 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", 986 | "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", 987 | "dev": true, 988 | "peer": true 989 | }, 990 | "node_modules/dir-glob": { 991 | "version": "3.0.1", 992 | "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", 993 | "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", 994 | "dev": true, 995 | "dependencies": { 996 | "path-type": "^4.0.0" 997 | }, 998 | "engines": { 999 | "node": ">=8" 1000 | } 1001 | }, 1002 | "node_modules/doctrine": { 1003 | "version": "3.0.0", 1004 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", 1005 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", 1006 | "dev": true, 1007 | "peer": true, 1008 | "dependencies": { 1009 | "esutils": "^2.0.2" 1010 | }, 1011 | "engines": { 1012 | "node": ">=6.0.0" 1013 | } 1014 | }, 1015 | "node_modules/esbuild": { 1016 | "version": "0.17.3", 1017 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.3.tgz", 1018 | "integrity": "sha512-9n3AsBRe6sIyOc6kmoXg2ypCLgf3eZSraWFRpnkto+svt8cZNuKTkb1bhQcitBcvIqjNiK7K0J3KPmwGSfkA8g==", 1019 | "dev": true, 1020 | "hasInstallScript": true, 1021 | "bin": { 1022 | "esbuild": "bin/esbuild" 1023 | }, 1024 | "engines": { 1025 | "node": ">=12" 1026 | }, 1027 | "optionalDependencies": { 1028 | "@esbuild/android-arm": "0.17.3", 1029 | "@esbuild/android-arm64": "0.17.3", 1030 | "@esbuild/android-x64": "0.17.3", 1031 | "@esbuild/darwin-arm64": "0.17.3", 1032 | "@esbuild/darwin-x64": "0.17.3", 1033 | "@esbuild/freebsd-arm64": "0.17.3", 1034 | "@esbuild/freebsd-x64": "0.17.3", 1035 | "@esbuild/linux-arm": "0.17.3", 1036 | "@esbuild/linux-arm64": "0.17.3", 1037 | "@esbuild/linux-ia32": "0.17.3", 1038 | "@esbuild/linux-loong64": "0.17.3", 1039 | "@esbuild/linux-mips64el": "0.17.3", 1040 | "@esbuild/linux-ppc64": "0.17.3", 1041 | "@esbuild/linux-riscv64": "0.17.3", 1042 | "@esbuild/linux-s390x": "0.17.3", 1043 | "@esbuild/linux-x64": "0.17.3", 1044 | "@esbuild/netbsd-x64": "0.17.3", 1045 | "@esbuild/openbsd-x64": "0.17.3", 1046 | "@esbuild/sunos-x64": "0.17.3", 1047 | "@esbuild/win32-arm64": "0.17.3", 1048 | "@esbuild/win32-ia32": "0.17.3", 1049 | "@esbuild/win32-x64": "0.17.3" 1050 | } 1051 | }, 1052 | "node_modules/escape-string-regexp": { 1053 | "version": "4.0.0", 1054 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 1055 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 1056 | "dev": true, 1057 | "peer": true, 1058 | "engines": { 1059 | "node": ">=10" 1060 | }, 1061 | "funding": { 1062 | "url": "https://github.com/sponsors/sindresorhus" 1063 | } 1064 | }, 1065 | "node_modules/eslint": { 1066 | "version": "8.57.0", 1067 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", 1068 | "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", 1069 | "dev": true, 1070 | "peer": true, 1071 | "dependencies": { 1072 | "@eslint-community/eslint-utils": "^4.2.0", 1073 | "@eslint-community/regexpp": "^4.6.1", 1074 | "@eslint/eslintrc": "^2.1.4", 1075 | "@eslint/js": "8.57.0", 1076 | "@humanwhocodes/config-array": "^0.11.14", 1077 | "@humanwhocodes/module-importer": "^1.0.1", 1078 | "@nodelib/fs.walk": "^1.2.8", 1079 | "@ungap/structured-clone": "^1.2.0", 1080 | "ajv": "^6.12.4", 1081 | "chalk": "^4.0.0", 1082 | "cross-spawn": "^7.0.2", 1083 | "debug": "^4.3.2", 1084 | "doctrine": "^3.0.0", 1085 | "escape-string-regexp": "^4.0.0", 1086 | "eslint-scope": "^7.2.2", 1087 | "eslint-visitor-keys": "^3.4.3", 1088 | "espree": "^9.6.1", 1089 | "esquery": "^1.4.2", 1090 | "esutils": "^2.0.2", 1091 | "fast-deep-equal": "^3.1.3", 1092 | "file-entry-cache": "^6.0.1", 1093 | "find-up": "^5.0.0", 1094 | "glob-parent": "^6.0.2", 1095 | "globals": "^13.19.0", 1096 | "graphemer": "^1.4.0", 1097 | "ignore": "^5.2.0", 1098 | "imurmurhash": "^0.1.4", 1099 | "is-glob": "^4.0.0", 1100 | "is-path-inside": "^3.0.3", 1101 | "js-yaml": "^4.1.0", 1102 | "json-stable-stringify-without-jsonify": "^1.0.1", 1103 | "levn": "^0.4.1", 1104 | "lodash.merge": "^4.6.2", 1105 | "minimatch": "^3.1.2", 1106 | "natural-compare": "^1.4.0", 1107 | "optionator": "^0.9.3", 1108 | "strip-ansi": "^6.0.1", 1109 | "text-table": "^0.2.0" 1110 | }, 1111 | "bin": { 1112 | "eslint": "bin/eslint.js" 1113 | }, 1114 | "engines": { 1115 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1116 | }, 1117 | "funding": { 1118 | "url": "https://opencollective.com/eslint" 1119 | } 1120 | }, 1121 | "node_modules/eslint-scope": { 1122 | "version": "5.1.1", 1123 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", 1124 | "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", 1125 | "dev": true, 1126 | "dependencies": { 1127 | "esrecurse": "^4.3.0", 1128 | "estraverse": "^4.1.1" 1129 | }, 1130 | "engines": { 1131 | "node": ">=8.0.0" 1132 | } 1133 | }, 1134 | "node_modules/eslint-utils": { 1135 | "version": "3.0.0", 1136 | "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", 1137 | "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", 1138 | "dev": true, 1139 | "dependencies": { 1140 | "eslint-visitor-keys": "^2.0.0" 1141 | }, 1142 | "engines": { 1143 | "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" 1144 | }, 1145 | "funding": { 1146 | "url": "https://github.com/sponsors/mysticatea" 1147 | }, 1148 | "peerDependencies": { 1149 | "eslint": ">=5" 1150 | } 1151 | }, 1152 | "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { 1153 | "version": "2.1.0", 1154 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", 1155 | "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", 1156 | "dev": true, 1157 | "engines": { 1158 | "node": ">=10" 1159 | } 1160 | }, 1161 | "node_modules/eslint-visitor-keys": { 1162 | "version": "3.4.3", 1163 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", 1164 | "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", 1165 | "dev": true, 1166 | "engines": { 1167 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1168 | }, 1169 | "funding": { 1170 | "url": "https://opencollective.com/eslint" 1171 | } 1172 | }, 1173 | "node_modules/eslint/node_modules/eslint-scope": { 1174 | "version": "7.2.2", 1175 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", 1176 | "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", 1177 | "dev": true, 1178 | "peer": true, 1179 | "dependencies": { 1180 | "esrecurse": "^4.3.0", 1181 | "estraverse": "^5.2.0" 1182 | }, 1183 | "engines": { 1184 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1185 | }, 1186 | "funding": { 1187 | "url": "https://opencollective.com/eslint" 1188 | } 1189 | }, 1190 | "node_modules/eslint/node_modules/estraverse": { 1191 | "version": "5.3.0", 1192 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1193 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1194 | "dev": true, 1195 | "peer": true, 1196 | "engines": { 1197 | "node": ">=4.0" 1198 | } 1199 | }, 1200 | "node_modules/espree": { 1201 | "version": "9.6.1", 1202 | "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", 1203 | "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", 1204 | "dev": true, 1205 | "peer": true, 1206 | "dependencies": { 1207 | "acorn": "^8.9.0", 1208 | "acorn-jsx": "^5.3.2", 1209 | "eslint-visitor-keys": "^3.4.1" 1210 | }, 1211 | "engines": { 1212 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1213 | }, 1214 | "funding": { 1215 | "url": "https://opencollective.com/eslint" 1216 | } 1217 | }, 1218 | "node_modules/esquery": { 1219 | "version": "1.5.0", 1220 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", 1221 | "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", 1222 | "dev": true, 1223 | "peer": true, 1224 | "dependencies": { 1225 | "estraverse": "^5.1.0" 1226 | }, 1227 | "engines": { 1228 | "node": ">=0.10" 1229 | } 1230 | }, 1231 | "node_modules/esquery/node_modules/estraverse": { 1232 | "version": "5.3.0", 1233 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1234 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1235 | "dev": true, 1236 | "peer": true, 1237 | "engines": { 1238 | "node": ">=4.0" 1239 | } 1240 | }, 1241 | "node_modules/esrecurse": { 1242 | "version": "4.3.0", 1243 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", 1244 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", 1245 | "dev": true, 1246 | "dependencies": { 1247 | "estraverse": "^5.2.0" 1248 | }, 1249 | "engines": { 1250 | "node": ">=4.0" 1251 | } 1252 | }, 1253 | "node_modules/esrecurse/node_modules/estraverse": { 1254 | "version": "5.3.0", 1255 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1256 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1257 | "dev": true, 1258 | "engines": { 1259 | "node": ">=4.0" 1260 | } 1261 | }, 1262 | "node_modules/estraverse": { 1263 | "version": "4.3.0", 1264 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", 1265 | "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", 1266 | "dev": true, 1267 | "engines": { 1268 | "node": ">=4.0" 1269 | } 1270 | }, 1271 | "node_modules/esutils": { 1272 | "version": "2.0.3", 1273 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 1274 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 1275 | "dev": true, 1276 | "peer": true, 1277 | "engines": { 1278 | "node": ">=0.10.0" 1279 | } 1280 | }, 1281 | "node_modules/fast-deep-equal": { 1282 | "version": "3.1.3", 1283 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 1284 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 1285 | "dev": true, 1286 | "peer": true 1287 | }, 1288 | "node_modules/fast-glob": { 1289 | "version": "3.3.2", 1290 | "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", 1291 | "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", 1292 | "dev": true, 1293 | "dependencies": { 1294 | "@nodelib/fs.stat": "^2.0.2", 1295 | "@nodelib/fs.walk": "^1.2.3", 1296 | "glob-parent": "^5.1.2", 1297 | "merge2": "^1.3.0", 1298 | "micromatch": "^4.0.4" 1299 | }, 1300 | "engines": { 1301 | "node": ">=8.6.0" 1302 | } 1303 | }, 1304 | "node_modules/fast-glob/node_modules/glob-parent": { 1305 | "version": "5.1.2", 1306 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 1307 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 1308 | "dev": true, 1309 | "dependencies": { 1310 | "is-glob": "^4.0.1" 1311 | }, 1312 | "engines": { 1313 | "node": ">= 6" 1314 | } 1315 | }, 1316 | "node_modules/fast-json-stable-stringify": { 1317 | "version": "2.1.0", 1318 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 1319 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 1320 | "dev": true, 1321 | "peer": true 1322 | }, 1323 | "node_modules/fast-levenshtein": { 1324 | "version": "2.0.6", 1325 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 1326 | "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", 1327 | "dev": true, 1328 | "peer": true 1329 | }, 1330 | "node_modules/fastq": { 1331 | "version": "1.17.1", 1332 | "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", 1333 | "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", 1334 | "dev": true, 1335 | "dependencies": { 1336 | "reusify": "^1.0.4" 1337 | } 1338 | }, 1339 | "node_modules/file-entry-cache": { 1340 | "version": "6.0.1", 1341 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", 1342 | "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", 1343 | "dev": true, 1344 | "peer": true, 1345 | "dependencies": { 1346 | "flat-cache": "^3.0.4" 1347 | }, 1348 | "engines": { 1349 | "node": "^10.12.0 || >=12.0.0" 1350 | } 1351 | }, 1352 | "node_modules/fill-range": { 1353 | "version": "7.0.1", 1354 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 1355 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 1356 | "dev": true, 1357 | "dependencies": { 1358 | "to-regex-range": "^5.0.1" 1359 | }, 1360 | "engines": { 1361 | "node": ">=8" 1362 | } 1363 | }, 1364 | "node_modules/find-up": { 1365 | "version": "5.0.0", 1366 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 1367 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 1368 | "dev": true, 1369 | "peer": true, 1370 | "dependencies": { 1371 | "locate-path": "^6.0.0", 1372 | "path-exists": "^4.0.0" 1373 | }, 1374 | "engines": { 1375 | "node": ">=10" 1376 | }, 1377 | "funding": { 1378 | "url": "https://github.com/sponsors/sindresorhus" 1379 | } 1380 | }, 1381 | "node_modules/flat-cache": { 1382 | "version": "3.2.0", 1383 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", 1384 | "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", 1385 | "dev": true, 1386 | "peer": true, 1387 | "dependencies": { 1388 | "flatted": "^3.2.9", 1389 | "keyv": "^4.5.3", 1390 | "rimraf": "^3.0.2" 1391 | }, 1392 | "engines": { 1393 | "node": "^10.12.0 || >=12.0.0" 1394 | } 1395 | }, 1396 | "node_modules/flatted": { 1397 | "version": "3.3.1", 1398 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", 1399 | "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", 1400 | "dev": true, 1401 | "peer": true 1402 | }, 1403 | "node_modules/fs.realpath": { 1404 | "version": "1.0.0", 1405 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1406 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", 1407 | "dev": true, 1408 | "peer": true 1409 | }, 1410 | "node_modules/functional-red-black-tree": { 1411 | "version": "1.0.1", 1412 | "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", 1413 | "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", 1414 | "dev": true 1415 | }, 1416 | "node_modules/glob": { 1417 | "version": "7.2.3", 1418 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 1419 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 1420 | "dev": true, 1421 | "peer": true, 1422 | "dependencies": { 1423 | "fs.realpath": "^1.0.0", 1424 | "inflight": "^1.0.4", 1425 | "inherits": "2", 1426 | "minimatch": "^3.1.1", 1427 | "once": "^1.3.0", 1428 | "path-is-absolute": "^1.0.0" 1429 | }, 1430 | "engines": { 1431 | "node": "*" 1432 | }, 1433 | "funding": { 1434 | "url": "https://github.com/sponsors/isaacs" 1435 | } 1436 | }, 1437 | "node_modules/glob-parent": { 1438 | "version": "6.0.2", 1439 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", 1440 | "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", 1441 | "dev": true, 1442 | "peer": true, 1443 | "dependencies": { 1444 | "is-glob": "^4.0.3" 1445 | }, 1446 | "engines": { 1447 | "node": ">=10.13.0" 1448 | } 1449 | }, 1450 | "node_modules/globals": { 1451 | "version": "13.24.0", 1452 | "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", 1453 | "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", 1454 | "dev": true, 1455 | "peer": true, 1456 | "dependencies": { 1457 | "type-fest": "^0.20.2" 1458 | }, 1459 | "engines": { 1460 | "node": ">=8" 1461 | }, 1462 | "funding": { 1463 | "url": "https://github.com/sponsors/sindresorhus" 1464 | } 1465 | }, 1466 | "node_modules/globby": { 1467 | "version": "11.1.0", 1468 | "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", 1469 | "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", 1470 | "dev": true, 1471 | "dependencies": { 1472 | "array-union": "^2.1.0", 1473 | "dir-glob": "^3.0.1", 1474 | "fast-glob": "^3.2.9", 1475 | "ignore": "^5.2.0", 1476 | "merge2": "^1.4.1", 1477 | "slash": "^3.0.0" 1478 | }, 1479 | "engines": { 1480 | "node": ">=10" 1481 | }, 1482 | "funding": { 1483 | "url": "https://github.com/sponsors/sindresorhus" 1484 | } 1485 | }, 1486 | "node_modules/graphemer": { 1487 | "version": "1.4.0", 1488 | "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", 1489 | "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", 1490 | "dev": true, 1491 | "peer": true 1492 | }, 1493 | "node_modules/has-flag": { 1494 | "version": "4.0.0", 1495 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1496 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1497 | "dev": true, 1498 | "peer": true, 1499 | "engines": { 1500 | "node": ">=8" 1501 | } 1502 | }, 1503 | "node_modules/ignore": { 1504 | "version": "5.3.1", 1505 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", 1506 | "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", 1507 | "dev": true, 1508 | "engines": { 1509 | "node": ">= 4" 1510 | } 1511 | }, 1512 | "node_modules/import-fresh": { 1513 | "version": "3.3.0", 1514 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", 1515 | "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", 1516 | "dev": true, 1517 | "peer": true, 1518 | "dependencies": { 1519 | "parent-module": "^1.0.0", 1520 | "resolve-from": "^4.0.0" 1521 | }, 1522 | "engines": { 1523 | "node": ">=6" 1524 | }, 1525 | "funding": { 1526 | "url": "https://github.com/sponsors/sindresorhus" 1527 | } 1528 | }, 1529 | "node_modules/imurmurhash": { 1530 | "version": "0.1.4", 1531 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 1532 | "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", 1533 | "dev": true, 1534 | "peer": true, 1535 | "engines": { 1536 | "node": ">=0.8.19" 1537 | } 1538 | }, 1539 | "node_modules/inflight": { 1540 | "version": "1.0.6", 1541 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1542 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 1543 | "dev": true, 1544 | "peer": true, 1545 | "dependencies": { 1546 | "once": "^1.3.0", 1547 | "wrappy": "1" 1548 | } 1549 | }, 1550 | "node_modules/inherits": { 1551 | "version": "2.0.4", 1552 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1553 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1554 | "dev": true, 1555 | "peer": true 1556 | }, 1557 | "node_modules/is-extglob": { 1558 | "version": "2.1.1", 1559 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1560 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 1561 | "dev": true, 1562 | "engines": { 1563 | "node": ">=0.10.0" 1564 | } 1565 | }, 1566 | "node_modules/is-glob": { 1567 | "version": "4.0.3", 1568 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 1569 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1570 | "dev": true, 1571 | "dependencies": { 1572 | "is-extglob": "^2.1.1" 1573 | }, 1574 | "engines": { 1575 | "node": ">=0.10.0" 1576 | } 1577 | }, 1578 | "node_modules/is-number": { 1579 | "version": "7.0.0", 1580 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1581 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1582 | "dev": true, 1583 | "engines": { 1584 | "node": ">=0.12.0" 1585 | } 1586 | }, 1587 | "node_modules/is-path-inside": { 1588 | "version": "3.0.3", 1589 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", 1590 | "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", 1591 | "dev": true, 1592 | "peer": true, 1593 | "engines": { 1594 | "node": ">=8" 1595 | } 1596 | }, 1597 | "node_modules/isexe": { 1598 | "version": "2.0.0", 1599 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1600 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 1601 | "dev": true, 1602 | "peer": true 1603 | }, 1604 | "node_modules/js-yaml": { 1605 | "version": "4.1.0", 1606 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 1607 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 1608 | "dev": true, 1609 | "peer": true, 1610 | "dependencies": { 1611 | "argparse": "^2.0.1" 1612 | }, 1613 | "bin": { 1614 | "js-yaml": "bin/js-yaml.js" 1615 | } 1616 | }, 1617 | "node_modules/json-buffer": { 1618 | "version": "3.0.1", 1619 | "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", 1620 | "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", 1621 | "dev": true, 1622 | "peer": true 1623 | }, 1624 | "node_modules/json-schema-traverse": { 1625 | "version": "0.4.1", 1626 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 1627 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 1628 | "dev": true, 1629 | "peer": true 1630 | }, 1631 | "node_modules/json-stable-stringify-without-jsonify": { 1632 | "version": "1.0.1", 1633 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", 1634 | "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", 1635 | "dev": true, 1636 | "peer": true 1637 | }, 1638 | "node_modules/keyv": { 1639 | "version": "4.5.4", 1640 | "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", 1641 | "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", 1642 | "dev": true, 1643 | "peer": true, 1644 | "dependencies": { 1645 | "json-buffer": "3.0.1" 1646 | } 1647 | }, 1648 | "node_modules/levn": { 1649 | "version": "0.4.1", 1650 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", 1651 | "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", 1652 | "dev": true, 1653 | "peer": true, 1654 | "dependencies": { 1655 | "prelude-ls": "^1.2.1", 1656 | "type-check": "~0.4.0" 1657 | }, 1658 | "engines": { 1659 | "node": ">= 0.8.0" 1660 | } 1661 | }, 1662 | "node_modules/locate-path": { 1663 | "version": "6.0.0", 1664 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 1665 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 1666 | "dev": true, 1667 | "peer": true, 1668 | "dependencies": { 1669 | "p-locate": "^5.0.0" 1670 | }, 1671 | "engines": { 1672 | "node": ">=10" 1673 | }, 1674 | "funding": { 1675 | "url": "https://github.com/sponsors/sindresorhus" 1676 | } 1677 | }, 1678 | "node_modules/lodash.merge": { 1679 | "version": "4.6.2", 1680 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", 1681 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", 1682 | "dev": true, 1683 | "peer": true 1684 | }, 1685 | "node_modules/lru-cache": { 1686 | "version": "6.0.0", 1687 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 1688 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 1689 | "dev": true, 1690 | "dependencies": { 1691 | "yallist": "^4.0.0" 1692 | }, 1693 | "engines": { 1694 | "node": ">=10" 1695 | } 1696 | }, 1697 | "node_modules/merge2": { 1698 | "version": "1.4.1", 1699 | "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", 1700 | "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", 1701 | "dev": true, 1702 | "engines": { 1703 | "node": ">= 8" 1704 | } 1705 | }, 1706 | "node_modules/micromatch": { 1707 | "version": "4.0.5", 1708 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", 1709 | "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", 1710 | "dev": true, 1711 | "dependencies": { 1712 | "braces": "^3.0.2", 1713 | "picomatch": "^2.3.1" 1714 | }, 1715 | "engines": { 1716 | "node": ">=8.6" 1717 | } 1718 | }, 1719 | "node_modules/minimatch": { 1720 | "version": "3.1.2", 1721 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1722 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1723 | "dev": true, 1724 | "peer": true, 1725 | "dependencies": { 1726 | "brace-expansion": "^1.1.7" 1727 | }, 1728 | "engines": { 1729 | "node": "*" 1730 | } 1731 | }, 1732 | "node_modules/moment": { 1733 | "version": "2.29.4", 1734 | "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", 1735 | "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", 1736 | "dev": true, 1737 | "engines": { 1738 | "node": "*" 1739 | } 1740 | }, 1741 | "node_modules/ms": { 1742 | "version": "2.1.2", 1743 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1744 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1745 | "dev": true 1746 | }, 1747 | "node_modules/natural-compare": { 1748 | "version": "1.4.0", 1749 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 1750 | "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", 1751 | "dev": true, 1752 | "peer": true 1753 | }, 1754 | "node_modules/obsidian": { 1755 | "version": "1.5.7-1", 1756 | "resolved": "https://registry.npmjs.org/obsidian/-/obsidian-1.5.7-1.tgz", 1757 | "integrity": "sha512-T5ZRuQ1FnfXqEoakTTHVDYvzUEEoT8zSPnQCW31PVgYwG4D4tZCQfKHN2hTz1ifnCe8upvwa6mBTAP2WUA5Vng==", 1758 | "dev": true, 1759 | "dependencies": { 1760 | "@types/codemirror": "5.60.8", 1761 | "moment": "2.29.4" 1762 | }, 1763 | "peerDependencies": { 1764 | "@codemirror/state": "^6.0.0", 1765 | "@codemirror/view": "^6.0.0" 1766 | } 1767 | }, 1768 | "node_modules/once": { 1769 | "version": "1.4.0", 1770 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1771 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 1772 | "dev": true, 1773 | "peer": true, 1774 | "dependencies": { 1775 | "wrappy": "1" 1776 | } 1777 | }, 1778 | "node_modules/optionator": { 1779 | "version": "0.9.3", 1780 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", 1781 | "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", 1782 | "dev": true, 1783 | "peer": true, 1784 | "dependencies": { 1785 | "@aashutoshrathi/word-wrap": "^1.2.3", 1786 | "deep-is": "^0.1.3", 1787 | "fast-levenshtein": "^2.0.6", 1788 | "levn": "^0.4.1", 1789 | "prelude-ls": "^1.2.1", 1790 | "type-check": "^0.4.0" 1791 | }, 1792 | "engines": { 1793 | "node": ">= 0.8.0" 1794 | } 1795 | }, 1796 | "node_modules/p-limit": { 1797 | "version": "3.1.0", 1798 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 1799 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 1800 | "dev": true, 1801 | "peer": true, 1802 | "dependencies": { 1803 | "yocto-queue": "^0.1.0" 1804 | }, 1805 | "engines": { 1806 | "node": ">=10" 1807 | }, 1808 | "funding": { 1809 | "url": "https://github.com/sponsors/sindresorhus" 1810 | } 1811 | }, 1812 | "node_modules/p-locate": { 1813 | "version": "5.0.0", 1814 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 1815 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 1816 | "dev": true, 1817 | "peer": true, 1818 | "dependencies": { 1819 | "p-limit": "^3.0.2" 1820 | }, 1821 | "engines": { 1822 | "node": ">=10" 1823 | }, 1824 | "funding": { 1825 | "url": "https://github.com/sponsors/sindresorhus" 1826 | } 1827 | }, 1828 | "node_modules/parent-module": { 1829 | "version": "1.0.1", 1830 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 1831 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 1832 | "dev": true, 1833 | "peer": true, 1834 | "dependencies": { 1835 | "callsites": "^3.0.0" 1836 | }, 1837 | "engines": { 1838 | "node": ">=6" 1839 | } 1840 | }, 1841 | "node_modules/path-exists": { 1842 | "version": "4.0.0", 1843 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 1844 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 1845 | "dev": true, 1846 | "peer": true, 1847 | "engines": { 1848 | "node": ">=8" 1849 | } 1850 | }, 1851 | "node_modules/path-is-absolute": { 1852 | "version": "1.0.1", 1853 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1854 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 1855 | "dev": true, 1856 | "peer": true, 1857 | "engines": { 1858 | "node": ">=0.10.0" 1859 | } 1860 | }, 1861 | "node_modules/path-key": { 1862 | "version": "3.1.1", 1863 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 1864 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 1865 | "dev": true, 1866 | "peer": true, 1867 | "engines": { 1868 | "node": ">=8" 1869 | } 1870 | }, 1871 | "node_modules/path-type": { 1872 | "version": "4.0.0", 1873 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", 1874 | "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", 1875 | "dev": true, 1876 | "engines": { 1877 | "node": ">=8" 1878 | } 1879 | }, 1880 | "node_modules/picomatch": { 1881 | "version": "2.3.1", 1882 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1883 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1884 | "dev": true, 1885 | "engines": { 1886 | "node": ">=8.6" 1887 | }, 1888 | "funding": { 1889 | "url": "https://github.com/sponsors/jonschlinkert" 1890 | } 1891 | }, 1892 | "node_modules/prelude-ls": { 1893 | "version": "1.2.1", 1894 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", 1895 | "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", 1896 | "dev": true, 1897 | "peer": true, 1898 | "engines": { 1899 | "node": ">= 0.8.0" 1900 | } 1901 | }, 1902 | "node_modules/punycode": { 1903 | "version": "2.3.1", 1904 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", 1905 | "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", 1906 | "dev": true, 1907 | "peer": true, 1908 | "engines": { 1909 | "node": ">=6" 1910 | } 1911 | }, 1912 | "node_modules/queue-microtask": { 1913 | "version": "1.2.3", 1914 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", 1915 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", 1916 | "dev": true, 1917 | "funding": [ 1918 | { 1919 | "type": "github", 1920 | "url": "https://github.com/sponsors/feross" 1921 | }, 1922 | { 1923 | "type": "patreon", 1924 | "url": "https://www.patreon.com/feross" 1925 | }, 1926 | { 1927 | "type": "consulting", 1928 | "url": "https://feross.org/support" 1929 | } 1930 | ] 1931 | }, 1932 | "node_modules/regexpp": { 1933 | "version": "3.2.0", 1934 | "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", 1935 | "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", 1936 | "dev": true, 1937 | "engines": { 1938 | "node": ">=8" 1939 | }, 1940 | "funding": { 1941 | "url": "https://github.com/sponsors/mysticatea" 1942 | } 1943 | }, 1944 | "node_modules/resolve-from": { 1945 | "version": "4.0.0", 1946 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 1947 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 1948 | "dev": true, 1949 | "peer": true, 1950 | "engines": { 1951 | "node": ">=4" 1952 | } 1953 | }, 1954 | "node_modules/reusify": { 1955 | "version": "1.0.4", 1956 | "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", 1957 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", 1958 | "dev": true, 1959 | "engines": { 1960 | "iojs": ">=1.0.0", 1961 | "node": ">=0.10.0" 1962 | } 1963 | }, 1964 | "node_modules/rimraf": { 1965 | "version": "3.0.2", 1966 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", 1967 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", 1968 | "dev": true, 1969 | "peer": true, 1970 | "dependencies": { 1971 | "glob": "^7.1.3" 1972 | }, 1973 | "bin": { 1974 | "rimraf": "bin.js" 1975 | }, 1976 | "funding": { 1977 | "url": "https://github.com/sponsors/isaacs" 1978 | } 1979 | }, 1980 | "node_modules/run-parallel": { 1981 | "version": "1.2.0", 1982 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", 1983 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", 1984 | "dev": true, 1985 | "funding": [ 1986 | { 1987 | "type": "github", 1988 | "url": "https://github.com/sponsors/feross" 1989 | }, 1990 | { 1991 | "type": "patreon", 1992 | "url": "https://www.patreon.com/feross" 1993 | }, 1994 | { 1995 | "type": "consulting", 1996 | "url": "https://feross.org/support" 1997 | } 1998 | ], 1999 | "dependencies": { 2000 | "queue-microtask": "^1.2.2" 2001 | } 2002 | }, 2003 | "node_modules/semver": { 2004 | "version": "7.6.0", 2005 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", 2006 | "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", 2007 | "dev": true, 2008 | "dependencies": { 2009 | "lru-cache": "^6.0.0" 2010 | }, 2011 | "bin": { 2012 | "semver": "bin/semver.js" 2013 | }, 2014 | "engines": { 2015 | "node": ">=10" 2016 | } 2017 | }, 2018 | "node_modules/shebang-command": { 2019 | "version": "2.0.0", 2020 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 2021 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 2022 | "dev": true, 2023 | "peer": true, 2024 | "dependencies": { 2025 | "shebang-regex": "^3.0.0" 2026 | }, 2027 | "engines": { 2028 | "node": ">=8" 2029 | } 2030 | }, 2031 | "node_modules/shebang-regex": { 2032 | "version": "3.0.0", 2033 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 2034 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 2035 | "dev": true, 2036 | "peer": true, 2037 | "engines": { 2038 | "node": ">=8" 2039 | } 2040 | }, 2041 | "node_modules/slash": { 2042 | "version": "3.0.0", 2043 | "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", 2044 | "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", 2045 | "dev": true, 2046 | "engines": { 2047 | "node": ">=8" 2048 | } 2049 | }, 2050 | "node_modules/strip-ansi": { 2051 | "version": "6.0.1", 2052 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2053 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2054 | "dev": true, 2055 | "peer": true, 2056 | "dependencies": { 2057 | "ansi-regex": "^5.0.1" 2058 | }, 2059 | "engines": { 2060 | "node": ">=8" 2061 | } 2062 | }, 2063 | "node_modules/strip-json-comments": { 2064 | "version": "3.1.1", 2065 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 2066 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 2067 | "dev": true, 2068 | "peer": true, 2069 | "engines": { 2070 | "node": ">=8" 2071 | }, 2072 | "funding": { 2073 | "url": "https://github.com/sponsors/sindresorhus" 2074 | } 2075 | }, 2076 | "node_modules/style-mod": { 2077 | "version": "4.1.2", 2078 | "resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.1.2.tgz", 2079 | "integrity": "sha512-wnD1HyVqpJUI2+eKZ+eo1UwghftP6yuFheBqqe+bWCotBjC2K1YnteJILRMs3SM4V/0dLEW1SC27MWP5y+mwmw==", 2080 | "dev": true, 2081 | "peer": true 2082 | }, 2083 | "node_modules/supports-color": { 2084 | "version": "7.2.0", 2085 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 2086 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 2087 | "dev": true, 2088 | "peer": true, 2089 | "dependencies": { 2090 | "has-flag": "^4.0.0" 2091 | }, 2092 | "engines": { 2093 | "node": ">=8" 2094 | } 2095 | }, 2096 | "node_modules/text-table": { 2097 | "version": "0.2.0", 2098 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", 2099 | "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", 2100 | "dev": true, 2101 | "peer": true 2102 | }, 2103 | "node_modules/to-regex-range": { 2104 | "version": "5.0.1", 2105 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 2106 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 2107 | "dev": true, 2108 | "dependencies": { 2109 | "is-number": "^7.0.0" 2110 | }, 2111 | "engines": { 2112 | "node": ">=8.0" 2113 | } 2114 | }, 2115 | "node_modules/tslib": { 2116 | "version": "2.4.0", 2117 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", 2118 | "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", 2119 | "dev": true 2120 | }, 2121 | "node_modules/tsutils": { 2122 | "version": "3.21.0", 2123 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", 2124 | "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", 2125 | "dev": true, 2126 | "dependencies": { 2127 | "tslib": "^1.8.1" 2128 | }, 2129 | "engines": { 2130 | "node": ">= 6" 2131 | }, 2132 | "peerDependencies": { 2133 | "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" 2134 | } 2135 | }, 2136 | "node_modules/tsutils/node_modules/tslib": { 2137 | "version": "1.14.1", 2138 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 2139 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", 2140 | "dev": true 2141 | }, 2142 | "node_modules/type-check": { 2143 | "version": "0.4.0", 2144 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", 2145 | "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", 2146 | "dev": true, 2147 | "peer": true, 2148 | "dependencies": { 2149 | "prelude-ls": "^1.2.1" 2150 | }, 2151 | "engines": { 2152 | "node": ">= 0.8.0" 2153 | } 2154 | }, 2155 | "node_modules/type-fest": { 2156 | "version": "0.20.2", 2157 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", 2158 | "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", 2159 | "dev": true, 2160 | "peer": true, 2161 | "engines": { 2162 | "node": ">=10" 2163 | }, 2164 | "funding": { 2165 | "url": "https://github.com/sponsors/sindresorhus" 2166 | } 2167 | }, 2168 | "node_modules/typescript": { 2169 | "version": "4.7.4", 2170 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", 2171 | "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", 2172 | "dev": true, 2173 | "bin": { 2174 | "tsc": "bin/tsc", 2175 | "tsserver": "bin/tsserver" 2176 | }, 2177 | "engines": { 2178 | "node": ">=4.2.0" 2179 | } 2180 | }, 2181 | "node_modules/uri-js": { 2182 | "version": "4.4.1", 2183 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 2184 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 2185 | "dev": true, 2186 | "peer": true, 2187 | "dependencies": { 2188 | "punycode": "^2.1.0" 2189 | } 2190 | }, 2191 | "node_modules/w3c-keyname": { 2192 | "version": "2.2.8", 2193 | "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz", 2194 | "integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==", 2195 | "dev": true, 2196 | "peer": true 2197 | }, 2198 | "node_modules/which": { 2199 | "version": "2.0.2", 2200 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 2201 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 2202 | "dev": true, 2203 | "peer": true, 2204 | "dependencies": { 2205 | "isexe": "^2.0.0" 2206 | }, 2207 | "bin": { 2208 | "node-which": "bin/node-which" 2209 | }, 2210 | "engines": { 2211 | "node": ">= 8" 2212 | } 2213 | }, 2214 | "node_modules/wrappy": { 2215 | "version": "1.0.2", 2216 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2217 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 2218 | "dev": true, 2219 | "peer": true 2220 | }, 2221 | "node_modules/yallist": { 2222 | "version": "4.0.0", 2223 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 2224 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", 2225 | "dev": true 2226 | }, 2227 | "node_modules/yocto-queue": { 2228 | "version": "0.1.0", 2229 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 2230 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 2231 | "dev": true, 2232 | "peer": true, 2233 | "engines": { 2234 | "node": ">=10" 2235 | }, 2236 | "funding": { 2237 | "url": "https://github.com/sponsors/sindresorhus" 2238 | } 2239 | } 2240 | } 2241 | } 2242 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "obsidian-sample-plugin", 3 | "version": "1.0.0", 4 | "description": "This is a sample plugin for Obsidian (https://obsidian.md)", 5 | "main": "main.js", 6 | "scripts": { 7 | "dev": "node esbuild.config.mjs", 8 | "build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production", 9 | "version": "node version-bump.mjs && git add manifest.json versions.json" 10 | }, 11 | "keywords": [], 12 | "author": "", 13 | "license": "MIT", 14 | "devDependencies": { 15 | "@types/node": "^16.11.6", 16 | "@typescript-eslint/eslint-plugin": "5.29.0", 17 | "@typescript-eslint/parser": "5.29.0", 18 | "builtin-modules": "3.3.0", 19 | "esbuild": "0.17.3", 20 | "obsidian": "latest", 21 | "tslib": "2.4.0", 22 | "typescript": "4.7.4" 23 | }, 24 | "dependencies": { 25 | "@popperjs/core": "^2.11.6" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/i18n/i18n.ts: -------------------------------------------------------------------------------- 1 | const EN = { 2 | command: { 3 | GenerateActiveList: 'Export active plugins as list', 4 | GenerateActiveTable: 'Export active plugins as table', 5 | GenerateInactiveList: 'Export inactive plugins as list', 6 | GenerateInactiveTable: 'Export inactive plugins as table', 7 | ExportFile: "Export to file", 8 | InstallAllInFill: "Install all plugins by link in the file" 9 | }, 10 | genTableTemplate: { 11 | Heading: "|Name|Author|Version|", 12 | Align: "|----|------|-------|", 13 | headerDescription: "Description|" 14 | } 15 | } 16 | 17 | const ZH = { 18 | command: { 19 | GenerateActiveList: '导出启用插件列表', 20 | GenerateActiveTable: '导出启用插件表格', 21 | GenerateInactiveList: '导出禁用插件列表', 22 | GenerateInactiveTable: '导出禁用插件表格', 23 | ExportFile: "导出到文件", 24 | InstallAllInFill: "在文件中通过链接安装所有插件" 25 | }, 26 | genTableTemplate: { 27 | Heading: "|名称|作者|版本|", 28 | Align: "|---|---|---|", 29 | headerDescription: "描述|", 30 | } 31 | } 32 | 33 | const ZHtw = { 34 | command: { 35 | GenerateActiveList: '匯出啟用插件列表', 36 | GenerateActiveTable: '匯出啟用插件表格', 37 | GenerateInactiveList: '匯出禁用插件列表', 38 | GenerateInactiveTable: '匯出禁用插件表格', 39 | ExportFile: "匯出到檔案" 40 | }, 41 | genTableTemplate: { 42 | Heading: "|名稱|作者|版本|", 43 | Align: "|---|---|---|" 44 | } 45 | } 46 | 47 | 48 | export class Locals { 49 | static get() { 50 | const lang = window.localStorage.getItem("language"); 51 | switch (lang) { 52 | case "zh": 53 | return ZH; 54 | case "zh-tw": 55 | return ZH; 56 | default: 57 | return EN; 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/installer.ts: -------------------------------------------------------------------------------- 1 | import ShareMyPlugin from "main"; 2 | import { Notice, ObsidianProtocolData, debounce } from "obsidian"; 3 | 4 | export let communityPlugins: any; 5 | 6 | export default class pluginInstaller { 7 | plugin: ShareMyPlugin; 8 | communityPlugins: Record; 9 | loaded: boolean; 10 | debounceFetch = debounce(async () => { await this.fetchCommunityPlugins }, 1000 * 60 * 60); // 1 hour 11 | 12 | async fetchCommunityPlugins() { 13 | const pluginList = await fetch(`https://raw.githubusercontent.com/obsidianmd/obsidian-releases/master/community-plugins.json`).then(r => r.json()); 14 | const keyedPluginList: Record = {}; 15 | for (const item of pluginList) keyedPluginList[item.id] = item; 16 | this.communityPlugins = keyedPluginList; 17 | this.loaded = true; 18 | } 19 | 20 | constructor(SMPL: ShareMyPlugin) { 21 | this.plugin = SMPL; 22 | this.loaded = false; 23 | this.fetchCommunityPlugins(); 24 | } 25 | 26 | /** 27 | * Params 28 | * @param id: string - The id of the plugin to install 29 | * @param version: string | null - The version of the plugin to install (if null, the latest version will be installed, if "", don't check the version) 30 | * @param enable: boolean - Whether to enable the plugin after installing it 31 | */ 32 | public async installPlugin(id: string, version: string = "", enable: boolean = false, github: string = "") { 33 | console.log(`Share My Plugin List: begin installing plugin -- ${id} - ${version} - ${enable} - ${github}`) 34 | if (!this.loaded) { 35 | await this.fetchCommunityPlugins(); 36 | } else { 37 | this.debounceFetch(); 38 | } 39 | // @ts-ignore 40 | const pluginRegistry = this.plugin.app.plugins; 41 | 42 | let installFlag = false; 43 | const repo = github !== "" ? github : this.communityPlugins[id]?.repo; 44 | if (!repo) { 45 | new Notice(`Unknown plugin id: ${id}`); 46 | return; 47 | } 48 | 49 | if (pluginRegistry.manifests[id]) { 50 | // Plugin already installed 51 | new Notice(`Plugin ${pluginRegistry.manifests[id].name} already installed.`) 52 | if (version !== "" && version !== pluginRegistry.manifests[id]?.version) { 53 | installFlag = true; 54 | } 55 | } else { 56 | installFlag = true; 57 | } 58 | 59 | if (installFlag) { 60 | const manifest = await fetch(`https://raw.githubusercontent.com/${repo}/HEAD/manifest.json`).then(r => r.json()); 61 | if (version.toLowerCase() === "latest" || version === "") version = manifest.version; 62 | await pluginRegistry.installPlugin(repo, version, manifest); 63 | } 64 | 65 | if (enable) { 66 | await pluginRegistry.loadPlugin(id); 67 | await pluginRegistry.enablePluginAndSave(id); 68 | } 69 | else { 70 | await pluginRegistry.disablePlugin(id); 71 | } 72 | } 73 | 74 | public async parseAndInstallPlugin(params: ObsidianProtocolData) { 75 | let args = { 76 | id: params.id, 77 | version: params?.version ?? "", 78 | enable: ["", "true", "1"].includes(params.enable.toLowerCase()), 79 | github: params.github ?? "", 80 | } 81 | this.installPlugin(args.id, args.version, args.enable); 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /src/setting/funding.ts: -------------------------------------------------------------------------------- 1 | const buyMeACoffee = ` 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | `; 24 | 25 | 26 | export function addFundingElement(containerEl: HTMLElement) { 27 | const donateELdiv = containerEl.createEl("div"); 28 | donateELdiv.setAttribute("style", "text-align: center; margin-top: 50px;"); 29 | const donateELa1 = document.createElement('p'); 30 | donateELa1.appendText("If you find this plugin useful and would like to support its development, you can sponsor me by the button below."); 31 | donateELa1.setAttribute("style", "color: gray; style: italic; font-size: 10px;"); 32 | donateELdiv.appendChild(donateELa1); 33 | const parser = new DOMParser(); 34 | const donateELa2 = document.createElement('a'); 35 | donateELa2.setAttribute('href', "https://www.buymeacoffee.com/benature"); 36 | donateELa2.addClass('advanced-tables-donate-button'); 37 | donateELa2.appendChild(parser.parseFromString(buyMeACoffee, 'text/xml').documentElement); 38 | donateELdiv.appendChild(donateELa2); 39 | } 40 | -------------------------------------------------------------------------------- /src/setting/setting.ts: -------------------------------------------------------------------------------- 1 | import { Setting, PluginSettingTab, App, ButtonComponent, Notice } from "obsidian"; 2 | import ShareMyPlugin from "../../main"; 3 | 4 | import { FileSuggest } from "./suggester/FileSuggest"; 5 | import { addFundingElement } from "./funding"; 6 | 7 | 8 | export interface PluginSettings { 9 | exportFilePath: string, 10 | exportFileFormat: string, 11 | exportFileOpen: boolean, 12 | exportFileNewLeaf: boolean, 13 | exportFileWhenLoaded: boolean, 14 | debugMode: boolean, 15 | descriptionLength: number 16 | } 17 | 18 | export const DEFAULT_SETTINGS: PluginSettings = { 19 | exportFilePath: "ShareMyPlugin.md", 20 | exportFileFormat: "list", 21 | exportFileOpen: true, 22 | exportFileNewLeaf: true, 23 | exportFileWhenLoaded: false, 24 | debugMode: false, 25 | descriptionLength: 50, 26 | }; 27 | 28 | export class ShareMyPluginSettingTab extends PluginSettingTab { 29 | plugin: ShareMyPlugin; 30 | 31 | constructor(app: App, plugin: ShareMyPlugin) { 32 | super(app, plugin); 33 | this.plugin = plugin; 34 | } 35 | 36 | display(): void { 37 | let { containerEl } = this; 38 | 39 | containerEl.empty(); 40 | new Setting(this.containerEl) 41 | .setName("Max length of description") 42 | .setDesc("-1: do not output description. 0: output description no matter how long it is. >0: output description up to the specified length.") 43 | .addText((cb) => { 44 | cb.setPlaceholder("length") 45 | .setValue(this.plugin.settings.descriptionLength.toString()) 46 | .onChange(async (newValue) => { 47 | const v = Number(newValue); 48 | if (Number.isNaN(v)) { 49 | new Notice(`The length must be a number!`); 50 | } else { 51 | this.plugin.settings.descriptionLength = v; 52 | await this.plugin.saveSettings(); 53 | } 54 | }); 55 | }); 56 | 57 | containerEl.createEl("h2", { text: "Export to file" }); 58 | new Setting(this.containerEl) 59 | .setName("Path of file to export") 60 | .setDesc("IMPORTANT: This file will be overwritten by the plugin, i.e., old content would be deleted.") 61 | .addText((cb) => { 62 | new FileSuggest(this.app, cb.inputEl); 63 | cb.setPlaceholder("output/ShareMyPlugin.md") 64 | .setValue(this.plugin.settings.exportFilePath) 65 | .onChange(async (newValue) => { 66 | this.plugin.settings.exportFilePath = newValue; 67 | await this.plugin.saveSettings(); 68 | }); 69 | }); 70 | 71 | new Setting(containerEl) 72 | .setName('Export format') 73 | .setDesc('') 74 | .addDropdown(dropDown => 75 | dropDown 76 | .addOption('list', 'List') 77 | .addOption('table', 'Table') 78 | .setValue(this.plugin.settings.exportFileFormat || 'list') 79 | .onChange((value: string) => { 80 | this.plugin.settings.exportFileFormat = value; 81 | this.plugin.saveSettings(); 82 | })); 83 | 84 | new Setting(containerEl) 85 | .setName("Open file after export") 86 | .setDesc("Open the exported file after export.") 87 | .addToggle((toggle) => { 88 | toggle 89 | .setValue(this.plugin.settings.exportFileOpen) 90 | .onChange(async (value) => { 91 | this.plugin.settings.exportFileOpen = value; 92 | await this.plugin.saveSettings(); 93 | this.display(); 94 | }); 95 | }); 96 | if (this.plugin.settings.exportFileOpen) { 97 | new Setting(containerEl) 98 | .setName("Open in new tab") 99 | .setDesc("Open the exported file in a new tab (leaf).") 100 | .addToggle((toggle) => { 101 | toggle 102 | .setValue(this.plugin.settings.exportFileNewLeaf) 103 | .onChange(async (value) => { 104 | this.plugin.settings.exportFileNewLeaf = value; 105 | await this.plugin.saveSettings(); 106 | }); 107 | }); 108 | } 109 | new Setting(containerEl) 110 | .setName("Export file once Obsidian is started.") 111 | .setDesc("Automatically update each time Obsidian is started") 112 | .addToggle((toggle) => { 113 | toggle 114 | .setValue(this.plugin.settings.exportFileWhenLoaded) 115 | .onChange(async (value) => { 116 | this.plugin.settings.exportFileWhenLoaded = value; 117 | await this.plugin.saveSettings(); 118 | this.display(); 119 | }); 120 | }); 121 | 122 | containerEl.createEl("h2", { text: "Advance settings" }); 123 | new Setting(containerEl) 124 | .setName("Debug mode") 125 | .setDesc("verbose log in the console") 126 | .addToggle((toggle) => { 127 | toggle 128 | .setValue(this.plugin.settings.debugMode) 129 | .onChange(async (value) => { 130 | this.plugin.settings.debugMode = value; 131 | await this.plugin.saveSettings(); 132 | }); 133 | }); 134 | 135 | 136 | addFundingElement(containerEl); 137 | } 138 | } 139 | 140 | -------------------------------------------------------------------------------- /src/setting/suggester/FileSuggest.ts: -------------------------------------------------------------------------------- 1 | import { TAbstractFile, TFile, TFolder } from "obsidian"; 2 | import { TextInputSuggest } from "./TextInputSuggest"; 3 | // Credits go to Liam's Periodic Notes Plugin: https://github.com/liamcain/obsidian-periodic-notes 4 | 5 | export class FileSuggest extends TextInputSuggest { 6 | getSuggestions(inputStr: string): TFile[] { 7 | const abstractFiles = this.app.vault.getAllLoadedFiles(); 8 | const files: TFile[] = []; 9 | const lowerCaseInputStr = inputStr.toLowerCase(); 10 | 11 | abstractFiles.forEach((file: TAbstractFile) => { 12 | if ( 13 | file instanceof TFile && 14 | file.extension === "md" && 15 | file.path.toLowerCase().contains(lowerCaseInputStr) 16 | ) { 17 | files.push(file); 18 | } 19 | }); 20 | 21 | return files; 22 | } 23 | 24 | renderSuggestion(file: TFile, el: HTMLElement): void { 25 | el.setText(file.path); 26 | } 27 | 28 | selectSuggestion(file: TFile): void { 29 | this.inputEl.value = file.path; 30 | this.inputEl.trigger("input"); 31 | this.close(); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/setting/suggester/Suggest.ts: -------------------------------------------------------------------------------- 1 | import { App, ISuggestOwner, Scope } from "obsidian"; 2 | 3 | // Credits go to Liam's Periodic Notes Plugin: https://github.com/liamcain/obsidian-periodic-notes 4 | 5 | const wrapAround = (value: number, size: number): number => { 6 | return ((value % size) + size) % size; 7 | }; 8 | 9 | export default class Suggest { 10 | private owner: ISuggestOwner; 11 | private values: T[]; 12 | private suggestions: HTMLDivElement[]; 13 | private selectedItem: number; 14 | private containerEl: HTMLElement; 15 | 16 | constructor(owner: ISuggestOwner, containerEl: HTMLElement, scope: Scope) { 17 | this.owner = owner; 18 | this.containerEl = containerEl; 19 | 20 | containerEl.on("click", ".suggestion-item", this.onSuggestionClick.bind(this)); 21 | containerEl.on( 22 | "mousemove", 23 | ".suggestion-item", 24 | this.onSuggestionMouseover.bind(this) 25 | ); 26 | 27 | scope.register([], "ArrowUp", (event) => { 28 | if (!event.isComposing) { 29 | this.setSelectedItem(this.selectedItem - 1, true); 30 | return false; 31 | } 32 | }); 33 | 34 | scope.register([], "ArrowDown", (event) => { 35 | if (!event.isComposing) { 36 | this.setSelectedItem(this.selectedItem + 1, true); 37 | return false; 38 | } 39 | }); 40 | 41 | scope.register([], "Enter", (event) => { 42 | if (!event.isComposing) { 43 | this.useSelectedItem(event); 44 | return false; 45 | } 46 | }); 47 | } 48 | 49 | onSuggestionClick(event: MouseEvent, el: HTMLDivElement): void { 50 | event.preventDefault(); 51 | 52 | const item = this.suggestions.indexOf(el); 53 | this.setSelectedItem(item, false); 54 | this.useSelectedItem(event); 55 | } 56 | 57 | onSuggestionMouseover(_event: MouseEvent, el: HTMLDivElement): void { 58 | const item = this.suggestions.indexOf(el); 59 | this.setSelectedItem(item, false); 60 | } 61 | 62 | setSuggestions(values: T[]) { 63 | this.containerEl.empty(); 64 | const suggestionEls: HTMLDivElement[] = []; 65 | 66 | values.forEach((value) => { 67 | const suggestionEl = this.containerEl.createDiv("suggestion-item"); 68 | this.owner.renderSuggestion(value, suggestionEl); 69 | suggestionEls.push(suggestionEl); 70 | }); 71 | 72 | this.values = values; 73 | this.suggestions = suggestionEls; 74 | this.setSelectedItem(0, false); 75 | } 76 | 77 | useSelectedItem(event: MouseEvent | KeyboardEvent) { 78 | const currentValue = this.values[this.selectedItem]; 79 | if (currentValue) { 80 | this.owner.selectSuggestion(currentValue, event); 81 | } 82 | } 83 | 84 | setSelectedItem(selectedIndex: number, scrollIntoView: boolean) { 85 | const normalizedIndex = wrapAround(selectedIndex, this.suggestions.length); 86 | const prevSelectedSuggestion = this.suggestions[this.selectedItem]; 87 | const selectedSuggestion = this.suggestions[normalizedIndex]; 88 | 89 | prevSelectedSuggestion?.removeClass("is-selected"); 90 | selectedSuggestion?.addClass("is-selected"); 91 | 92 | this.selectedItem = normalizedIndex; 93 | 94 | if (scrollIntoView) { 95 | selectedSuggestion.scrollIntoView(false); 96 | } 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /src/setting/suggester/TextInputSuggest.ts: -------------------------------------------------------------------------------- 1 | import { App, ISuggestOwner, Scope } from "obsidian"; 2 | import Suggest from "./Suggest"; 3 | import { createPopper, type Instance as PopperInstance } from "@popperjs/core"; 4 | 5 | 6 | // Credits go to Liam's Periodic Notes Plugin: https://github.com/liamcain/obsidian-periodic-notes 7 | 8 | export abstract class TextInputSuggest implements ISuggestOwner { 9 | protected app: App; 10 | protected inputEl: HTMLInputElement; 11 | 12 | private popper: PopperInstance; 13 | private scope: Scope; 14 | private suggestEl: HTMLElement; 15 | private suggest: Suggest; 16 | 17 | constructor(app: App, inputEl: HTMLInputElement) { 18 | this.app = app; 19 | this.inputEl = inputEl; 20 | this.scope = new Scope(); 21 | 22 | this.suggestEl = createDiv("suggestion-container"); 23 | const suggestion = this.suggestEl.createDiv("suggestion"); 24 | this.suggest = new Suggest(this, suggestion, this.scope); 25 | 26 | this.scope.register([], "Escape", this.close.bind(this)); 27 | 28 | this.inputEl.addEventListener("input", this.onInputChanged.bind(this)); 29 | this.inputEl.addEventListener("focus", this.onInputChanged.bind(this)); 30 | this.inputEl.addEventListener("blur", this.close.bind(this)); 31 | this.suggestEl.on("mousedown", ".suggestion-container", (event: MouseEvent) => { 32 | event.preventDefault(); 33 | }); 34 | } 35 | 36 | onInputChanged(): void { 37 | const inputStr = this.inputEl.value; 38 | const suggestions = this.getSuggestions(inputStr); 39 | 40 | if (suggestions.length > 0) { 41 | this.suggest.setSuggestions(suggestions); 42 | // eslint-disable-next-line @typescript-eslint/no-explicit-any 43 | this.open((this.app).dom.appContainerEl, this.inputEl); 44 | } 45 | } 46 | 47 | open(container: HTMLElement, inputEl: HTMLElement): void { 48 | // eslint-disable-next-line @typescript-eslint/no-explicit-any 49 | (this.app).keymap.pushScope(this.scope); 50 | 51 | container.appendChild(this.suggestEl); 52 | this.popper = createPopper(inputEl, this.suggestEl, { 53 | placement: "bottom-start", 54 | modifiers: [ 55 | { 56 | name: "sameWidth", 57 | enabled: true, 58 | fn: ({ state, instance }) => { 59 | // Note: positioning needs to be calculated twice - 60 | // first pass - positioning it according to the width of the popper 61 | // second pass - position it with the width bound to the reference element 62 | // we need to early exit to avoid an infinite loop 63 | const targetWidth = `${state.rects.reference.width}px`; 64 | if (state.styles.popper.width === targetWidth) { 65 | return; 66 | } 67 | state.styles.popper.width = targetWidth; 68 | instance.update(); 69 | }, 70 | phase: "beforeWrite", 71 | requires: ["computeStyles"], 72 | }, 73 | ], 74 | }); 75 | } 76 | 77 | close(): void { 78 | // eslint-disable-next-line @typescript-eslint/no-explicit-any 79 | (this.app).keymap.popScope(this.scope); 80 | 81 | this.suggest.setSuggestions([]); 82 | this.popper.destroy(); 83 | this.suggestEl.detach(); 84 | } 85 | 86 | abstract getSuggestions(inputStr: string): T[]; 87 | abstract renderSuggestion(item: T, el: HTMLElement): void; 88 | abstract selectSuggestion(item: T): void; 89 | } 90 | -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- 1 | 2 | export function processFunding(m: any): string { 3 | let info: string = ""; 4 | if (m.fundingUrl) { 5 | if (typeof (m.fundingUrl) == 'string') { 6 | info += ` [♡](${m.fundingUrl})`; 7 | } else if (typeof (m.fundingUrl) == 'object') { 8 | let sep = " " 9 | for (let key in m.fundingUrl) { 10 | const url = m.fundingUrl[key] 11 | let symbol = "♡" 12 | let domain = /https?:\/\/([\w\.]+)\//g.exec(url); 13 | if (domain) { 14 | switch (domain[1]) { 15 | case "www.buymeacoffee.com": 16 | symbol = "☕️"; break; 17 | case "afdian.net": 18 | symbol = "⚡️"; break; 19 | } 20 | } 21 | info += `${sep}[${symbol}](${url})`; 22 | sep = "/" 23 | } 24 | } 25 | } 26 | return info; 27 | } 28 | 29 | 30 | 31 | 32 | export async function touchFolder(vault: any, folder: string, debug: boolean = false) { 33 | if (debug) { 34 | console.log("touch Folder", folder); 35 | } 36 | if (await vault.adapter.exists(folder)) { 37 | return; 38 | } 39 | const folders = folder.split(/[\/\\]/); 40 | if (folders.length > 1) { 41 | await touchFolder(vault, folders.slice(0, -1).join("/")); 42 | } 43 | await vault.adapter.mkdir(folder); 44 | } 45 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "inlineSourceMap": true, 5 | "inlineSources": true, 6 | "module": "ESNext", 7 | "target": "ES6", 8 | "allowJs": true, 9 | "noImplicitAny": true, 10 | "moduleResolution": "node", 11 | "importHelpers": true, 12 | "isolatedModules": true, 13 | "strictNullChecks": true, 14 | "lib": [ 15 | "DOM", 16 | "ES5", 17 | "ES6", 18 | "ES7" 19 | ] 20 | }, 21 | "include": [ 22 | "**/*.ts" 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /version-bump.mjs: -------------------------------------------------------------------------------- 1 | import { readFileSync, writeFileSync } from "fs"; 2 | 3 | const targetVersion = process.env.npm_package_version; 4 | 5 | // read minAppVersion from manifest.json and bump version to target version 6 | let manifest = JSON.parse(readFileSync("manifest.json", "utf8")); 7 | const { minAppVersion } = manifest; 8 | manifest.version = targetVersion; 9 | writeFileSync("manifest.json", JSON.stringify(manifest, null, "\t")); 10 | 11 | // update versions.json with target version and minAppVersion from manifest.json 12 | let versions = JSON.parse(readFileSync("versions.json", "utf8")); 13 | versions[targetVersion] = minAppVersion; 14 | writeFileSync("versions.json", JSON.stringify(versions, null, "\t")); 15 | -------------------------------------------------------------------------------- /versions.json: -------------------------------------------------------------------------------- 1 | { 2 | "1.0.0": "0.15.0" 3 | } 4 | --------------------------------------------------------------------------------