├── .editorconfig ├── .eslintignore ├── .eslintrc ├── .github └── workflows │ └── release.yml ├── .gitignore ├── .npmrc ├── LICENSE ├── README.md ├── config.ts ├── esbuild.config.mjs ├── logo.svg ├── main.ts ├── manifest.json ├── package-lock.json ├── package.json ├── src ├── mainProcessor.ts ├── markdownProcessor.ts └── types.ts ├── styles.css ├── 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 Obsidiosaurus Plugin 2 | 3 | on: 4 | push: 5 | tags: 6 | - "*" 7 | 8 | jobs: 9 | build: 10 | runs-on: ubuntu-latest 11 | 12 | steps: 13 | - uses: actions/checkout@v3 14 | 15 | - name: Use Node.js 16 | uses: actions/setup-node@v3 17 | with: 18 | node-version: "18.x" 19 | 20 | - name: Build plugin 21 | run: | 22 | npm install 23 | npm run build 24 | 25 | - name: Create release 26 | env: 27 | GITHUB_TOKEN: ${{ secrets.PAT }} 28 | run: | 29 | tag="${GITHUB_REF#refs/tags/}" 30 | 31 | gh release create "$tag" \ 32 | --title="$tag" \ 33 | --draft \ 34 | main.js manifest.json 35 | -------------------------------------------------------------------------------- /.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 | 24 | # Pycache 25 | .pyc 26 | __pycache__ 27 | .history -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | tag-version-prefix="" -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 CIMSTA 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | Obsidiosaurus
3 | Obisidiosaurus 4 |

5 | 6 | _

Obsidian + Docusaurus = Where your Obsidian notes meet the web

_ 7 | 8 |

9 | 10 | 11 |

12 | 13 | # 👋 Introduction 14 | 15 | Obsidiosaurus is a converter for [Obsidian](https://obsidian.md/) markdown notes to the static site builder [Docusaurus](https://docusaurus.io/) 16 | 17 | It allows for a better experience writing and maintaining the markdown files, since both share a lot of common features. 18 | 19 | 🚧 CURRENTLY IN DEVELOPMENT! EXPECT BUGS 20 | 21 | # 👀 Documentation 22 | 23 | You find detailed instructions on how to use and setup in the [official Documentation](https://cimsta.github.io/obsidiosaurus-docs/docs/main/Introduction) 24 | Website made with Docusaurus and Obsidian using Obsidiosaurus, interested to see the Docs repo? [Check here](https://github.com/CIMSTA/obsidiosaurus-docs) 25 | 26 | # 📃 Features: 27 | 28 | Overview about what is currently supported: 29 | 30 | ## General 31 | 32 | - Documentation: ✅ 33 | - Blog: ✅ 34 | - Multiple Blogs: ✅ 35 | - Localisation i18n: ✅ 36 | - Multiple Sidebars: ✅ 37 | - Versioning: ⛔ (kinda complex) 38 | 39 | ## Standard Formating 40 | 41 | - Links: ✅ 42 | - Tables: ✅ 43 | - Admoninitions: ✅ 44 | - Quotes: ✅ 45 | - iFrames: ✅ 46 | - Codeblocks: ✅ 47 | - Head Metadata: ✅ 48 | - Checklists: ✅ 49 | 50 | ## Assets 51 | 52 | - Images: ✅ (.png & .svg) 53 | - Image resize: ✅ 54 | - Image converter: ✅ (.jpg, .png, .webp) 55 | - Themed Images: ✅ (light & dark mode) 56 | - Files: ✅ (.pdf, .docx, ..) 57 | 58 | ## Drawings & Diagrams 59 | 60 | - Excalidraw: ✅ (light & dark mode) 61 | - diagrams.net ✅ (light only mode) 62 | - Math Equaitons: ✅ 63 | - Mermaid: ✅ 64 | - UML Diagrams: ❌ (not supported in Docusaurus) 65 | - D2 Diagrams: ❌ (not supported in Docusaurus) 66 | 67 | ## Advanced 68 | 69 | - Docusaurus Tabs: ❌ (not supported in Obsidian) 70 | - MDX Support: ❌ (not supported in Obsidian) 71 | 72 | # 💭 Need help? 73 | 74 | If you need more info, help or want to provide general feedback, join our [Obsidiosaurus Discord Channel](https://discord.gg/SSGK5tuqJh). 75 | 76 | # ✍ Author 77 | 78 | [Mat4m0](https://github.com/Mat4m0) - Matthias 79 | -------------------------------------------------------------------------------- /config.ts: -------------------------------------------------------------------------------- 1 | import { Config } from 'src/types' 2 | 3 | export let config: Config; 4 | 5 | export function setSettings(settings: Config) { 6 | config = settings; 7 | } 8 | -------------------------------------------------------------------------------- /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 | //outfile: "../obsidiosaurus-docs/vault/.obsidian/plugins/obsidiosaurus/main.js", 42 | }); 43 | 44 | if (prod) { 45 | await context.rebuild(); 46 | process.exit(0); 47 | } else { 48 | await context.watch(); 49 | } -------------------------------------------------------------------------------- /logo.svg: -------------------------------------------------------------------------------- 1 | 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 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /main.ts: -------------------------------------------------------------------------------- 1 | import { App, Plugin, PluginSettingTab, Setting, Notice, FileSystemAdapter } from 'obsidian'; 2 | import obsidiosaurusProcess from 'src/mainProcessor' 3 | import { Config } from 'src/types' 4 | import pino from 'pino'; 5 | import path from 'path'; 6 | import { setSettings } from 'config'; 7 | 8 | export const logger = pino(); 9 | 10 | export const config: Config = { 11 | obsidianVaultDirectory: "./vault", 12 | docusaurusWebsiteDirectory: "./website", 13 | obsidianAssetSubfolderName: "assets", 14 | docusaurusAssetSubfolderName: "assets", 15 | mainLanguage: "en", 16 | convertedImageType: "webp", 17 | convertedImageMaxWidth: "2500", 18 | debug: false, 19 | developer: false 20 | } 21 | 22 | export default class Obsidisaurus extends Plugin { 23 | settings: Config; 24 | 25 | async onload() { 26 | await this.loadSettings(); 27 | if (this.settings.debug) { 28 | logger.info("🟢 Obsidiosaurus Plugin loaded"); 29 | } 30 | 31 | const ribbonIconEl = this.addRibbonIcon('file-up', 'Obsidiosaurus', async (evt: MouseEvent) => { 32 | try { 33 | logger.info("🚀 Obsidiosaurus started"); 34 | new Notice("🚀 Obsidiosaurus started") 35 | // @ts-ignore, it says there is no property basePath, but it is? 36 | if(this.app.vault.adapter instanceof FileSystemAdapter) { 37 | const basePath = path.dirname(this.app.vault.adapter.getBasePath()); 38 | await obsidiosaurusProcess(basePath); 39 | } 40 | } catch (error) { 41 | if (this.settings.debug) { 42 | const errorMessage = `❌ Obsidiosaurus crashed in function with the following error:\n${error.stack}`; 43 | logger.error(errorMessage); 44 | new Notice(`❌ Obsidiosaurus crashed. \n${errorMessage}`); 45 | } else { 46 | logger.error(`❌ Obsidiosaurus crashed with error message: \n${error} `); 47 | new Notice("❌ Obsidiosaurus crashed. \n Check log files for more info") 48 | } 49 | } 50 | }); 51 | 52 | ribbonIconEl.addClass('my-plugin-ribbon-class'); 53 | 54 | this.addSettingTab(new SettingTab(this.app, this)); 55 | 56 | } 57 | 58 | onunload() { 59 | if (config.debug) { 60 | logger.info('⚪ Obsidiosaurus Plugin unloaded'); 61 | } 62 | } 63 | 64 | async loadSettings() { 65 | this.settings = Object.assign({}, config, await this.loadData()); 66 | setSettings(this.settings); 67 | } 68 | 69 | async saveSettings() { 70 | await this.saveData(this.settings); 71 | } 72 | 73 | } 74 | 75 | 76 | class SettingTab extends PluginSettingTab { 77 | plugin: Obsidisaurus; 78 | 79 | constructor(app: App, plugin: Obsidisaurus) { 80 | super(app, plugin); 81 | this.plugin = plugin; 82 | } 83 | 84 | display(): void { 85 | const { containerEl } = this; 86 | 87 | containerEl.empty(); 88 | 89 | containerEl.createEl('h1', { text: 'Directories' }); 90 | 91 | new Setting(containerEl) 92 | .setName('Docusaurus Directory') 93 | .setDesc('Path to your docusaurus instance') 94 | .addText(text => text 95 | .setPlaceholder('Enter paths') 96 | .setValue(this.plugin.settings.docusaurusWebsiteDirectory) 97 | .onChange(async (value) => { 98 | this.plugin.settings.docusaurusWebsiteDirectory = value; 99 | await this.plugin.saveSettings(); 100 | })); 101 | 102 | containerEl.createEl('h1', { text: 'Assets' }); 103 | 104 | new Setting(containerEl) 105 | .setName('Obsidian Asset Folder') 106 | .setDesc('Name of Obsidian Asset Folder') 107 | .addText(text => text 108 | .setPlaceholder('Enter folders') 109 | .setValue(this.plugin.settings.obsidianAssetSubfolderName) 110 | .onChange(async (value) => { 111 | this.plugin.settings.obsidianAssetSubfolderName = value; 112 | await this.plugin.saveSettings(); 113 | })); 114 | new Setting(containerEl) 115 | .setName('Docusaurus Asset Folder') 116 | .setDesc('Name of Docusaurus Asset Folder') 117 | .addText(text => text 118 | .setPlaceholder('Enter folders') 119 | .setValue(this.plugin.settings.docusaurusAssetSubfolderName) 120 | .onChange(async (value) => { 121 | this.plugin.settings.docusaurusAssetSubfolderName = value; 122 | await this.plugin.saveSettings(); 123 | })); 124 | new Setting(containerEl) 125 | .setName('Image Type') 126 | .setDesc('Format in which to convert all images') 127 | .addDropdown(dropdown => dropdown 128 | .addOptions({ 129 | 'webp': 'WebP', 130 | }) 131 | .setValue(this.plugin.settings.convertedImageType) 132 | .onChange(async (value) => { 133 | this.plugin.settings.convertedImageType = value; 134 | await this.plugin.saveSettings(); 135 | })); 136 | new Setting(containerEl) 137 | .setName('Image Width') 138 | .setDesc('Set the max width for the images in [px]') 139 | .addText(number => number 140 | .setPlaceholder('2500') 141 | .setValue(this.plugin.settings.convertedImageMaxWidth) 142 | .onChange(async (value) => { 143 | this.plugin.settings.convertedImageMaxWidth = value; 144 | await this.plugin.saveSettings(); 145 | })); 146 | 147 | containerEl.createEl('h1', { text: 'Language' }); 148 | 149 | new Setting(containerEl) 150 | .setName('Main Language') 151 | .setDesc('Your main language code to publish') 152 | .addText(text => text 153 | .setPlaceholder('Enter language code') 154 | .setValue(this.plugin.settings.mainLanguage) 155 | .onChange(async (value) => { 156 | this.plugin.settings.mainLanguage = value; 157 | await this.plugin.saveSettings(); 158 | })); 159 | 160 | containerEl.createEl('h1', { text: 'Dev Options' }); 161 | 162 | new Setting(containerEl) 163 | .setName('Debug mode') 164 | .setDesc('Better logging for debugging') 165 | .addToggle((value) => { 166 | value.setValue(this.plugin.settings.debug).onChange((value) => { 167 | this.plugin.settings.debug = value; 168 | this.plugin.saveSettings(); 169 | }); 170 | }); 171 | 172 | new Setting(containerEl) 173 | .setName('Developer mode') 174 | .setDesc('Only for plugin developers') 175 | .addToggle((value) => { 176 | value.setValue(this.plugin.settings.debug).onChange((value) => { 177 | this.plugin.settings.debug = value; 178 | this.plugin.saveSettings(); 179 | }); 180 | }); 181 | 182 | 183 | } 184 | } 185 | 186 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "obsidiosaurus", 3 | "name": "Obsidiosaurus", 4 | "version": "0.3.2", 5 | "description": "Connect your vault to Docusaurus", 6 | "author": "CIMSTA", 7 | "authorUrl": "https://cimsta.com", 8 | "isDesktopOnly": true 9 | } 10 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "obsidiosaurus", 3 | "version": "0.3.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "obsidiosaurus", 9 | "version": "1.0.0", 10 | "license": "MIT", 11 | "devDependencies": { 12 | "@types/codemirror": "^5.60.7", 13 | "@types/gm": "^1.25.1", 14 | "@types/node": "^16.11.6", 15 | "@typescript-eslint/eslint-plugin": "5.29.0", 16 | "@typescript-eslint/parser": "5.29.0", 17 | "builtin-modules": "3.3.0", 18 | "esbuild": "0.17.3", 19 | "gm": "^1.25.0", 20 | "obsidian": "latest", 21 | "pino": "^8.14.1", 22 | "tslib": "2.4.0", 23 | "typescript": "4.7.4" 24 | } 25 | }, 26 | "node_modules/@codemirror/state": { 27 | "version": "6.2.1", 28 | "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.2.1.tgz", 29 | "integrity": "sha512-RupHSZ8+OjNT38zU9fKH2sv+Dnlr8Eb8sl4NOnnqz95mCFTZUaiRP8Xv5MeeaG0px2b8Bnfe7YGwCV3nsBhbuw==", 30 | "dev": true, 31 | "peer": true 32 | }, 33 | "node_modules/@codemirror/view": { 34 | "version": "6.12.0", 35 | "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.12.0.tgz", 36 | "integrity": "sha512-xNHvbJBc2v8JuEcIGOck6EUGShpP+TYGCEMVEVQMYxbFXfMhYnoF3znxB/2GgeKR0nrxBs+nhBupiTYQqCp2kw==", 37 | "dev": true, 38 | "peer": true, 39 | "dependencies": { 40 | "@codemirror/state": "^6.1.4", 41 | "style-mod": "^4.0.0", 42 | "w3c-keyname": "^2.2.4" 43 | } 44 | }, 45 | "node_modules/@esbuild/android-arm": { 46 | "version": "0.17.3", 47 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.3.tgz", 48 | "integrity": "sha512-1Mlz934GvbgdDmt26rTLmf03cAgLg5HyOgJN+ZGCeP3Q9ynYTNMn2/LQxIl7Uy+o4K6Rfi2OuLsr12JQQR8gNg==", 49 | "cpu": [ 50 | "arm" 51 | ], 52 | "dev": true, 53 | "optional": true, 54 | "os": [ 55 | "android" 56 | ], 57 | "engines": { 58 | "node": ">=12" 59 | } 60 | }, 61 | "node_modules/@esbuild/android-arm64": { 62 | "version": "0.17.3", 63 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.3.tgz", 64 | "integrity": "sha512-XvJsYo3dO3Pi4kpalkyMvfQsjxPWHYjoX4MDiB/FUM4YMfWcXa5l4VCwFWVYI1+92yxqjuqrhNg0CZg3gSouyQ==", 65 | "cpu": [ 66 | "arm64" 67 | ], 68 | "dev": true, 69 | "optional": true, 70 | "os": [ 71 | "android" 72 | ], 73 | "engines": { 74 | "node": ">=12" 75 | } 76 | }, 77 | "node_modules/@esbuild/android-x64": { 78 | "version": "0.17.3", 79 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.3.tgz", 80 | "integrity": "sha512-nuV2CmLS07Gqh5/GrZLuqkU9Bm6H6vcCspM+zjp9TdQlxJtIe+qqEXQChmfc7nWdyr/yz3h45Utk1tUn8Cz5+A==", 81 | "cpu": [ 82 | "x64" 83 | ], 84 | "dev": true, 85 | "optional": true, 86 | "os": [ 87 | "android" 88 | ], 89 | "engines": { 90 | "node": ">=12" 91 | } 92 | }, 93 | "node_modules/@esbuild/darwin-arm64": { 94 | "version": "0.17.3", 95 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.3.tgz", 96 | "integrity": "sha512-01Hxaaat6m0Xp9AXGM8mjFtqqwDjzlMP0eQq9zll9U85ttVALGCGDuEvra5Feu/NbP5AEP1MaopPwzsTcUq1cw==", 97 | "cpu": [ 98 | "arm64" 99 | ], 100 | "dev": true, 101 | "optional": true, 102 | "os": [ 103 | "darwin" 104 | ], 105 | "engines": { 106 | "node": ">=12" 107 | } 108 | }, 109 | "node_modules/@esbuild/darwin-x64": { 110 | "version": "0.17.3", 111 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.3.tgz", 112 | "integrity": "sha512-Eo2gq0Q/er2muf8Z83X21UFoB7EU6/m3GNKvrhACJkjVThd0uA+8RfKpfNhuMCl1bKRfBzKOk6xaYKQZ4lZqvA==", 113 | "cpu": [ 114 | "x64" 115 | ], 116 | "dev": true, 117 | "optional": true, 118 | "os": [ 119 | "darwin" 120 | ], 121 | "engines": { 122 | "node": ">=12" 123 | } 124 | }, 125 | "node_modules/@esbuild/freebsd-arm64": { 126 | "version": "0.17.3", 127 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.3.tgz", 128 | "integrity": "sha512-CN62ESxaquP61n1ZjQP/jZte8CE09M6kNn3baos2SeUfdVBkWN5n6vGp2iKyb/bm/x4JQzEvJgRHLGd5F5b81w==", 129 | "cpu": [ 130 | "arm64" 131 | ], 132 | "dev": true, 133 | "optional": true, 134 | "os": [ 135 | "freebsd" 136 | ], 137 | "engines": { 138 | "node": ">=12" 139 | } 140 | }, 141 | "node_modules/@esbuild/freebsd-x64": { 142 | "version": "0.17.3", 143 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.3.tgz", 144 | "integrity": "sha512-feq+K8TxIznZE+zhdVurF3WNJ/Sa35dQNYbaqM/wsCbWdzXr5lyq+AaTUSER2cUR+SXPnd/EY75EPRjf4s1SLg==", 145 | "cpu": [ 146 | "x64" 147 | ], 148 | "dev": true, 149 | "optional": true, 150 | "os": [ 151 | "freebsd" 152 | ], 153 | "engines": { 154 | "node": ">=12" 155 | } 156 | }, 157 | "node_modules/@esbuild/linux-arm": { 158 | "version": "0.17.3", 159 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.3.tgz", 160 | "integrity": "sha512-CLP3EgyNuPcg2cshbwkqYy5bbAgK+VhyfMU7oIYyn+x4Y67xb5C5ylxsNUjRmr8BX+MW3YhVNm6Lq6FKtRTWHQ==", 161 | "cpu": [ 162 | "arm" 163 | ], 164 | "dev": true, 165 | "optional": true, 166 | "os": [ 167 | "linux" 168 | ], 169 | "engines": { 170 | "node": ">=12" 171 | } 172 | }, 173 | "node_modules/@esbuild/linux-arm64": { 174 | "version": "0.17.3", 175 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.3.tgz", 176 | "integrity": "sha512-JHeZXD4auLYBnrKn6JYJ0o5nWJI9PhChA/Nt0G4MvLaMrvXuWnY93R3a7PiXeJQphpL1nYsaMcoV2QtuvRnF/g==", 177 | "cpu": [ 178 | "arm64" 179 | ], 180 | "dev": true, 181 | "optional": true, 182 | "os": [ 183 | "linux" 184 | ], 185 | "engines": { 186 | "node": ">=12" 187 | } 188 | }, 189 | "node_modules/@esbuild/linux-ia32": { 190 | "version": "0.17.3", 191 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.3.tgz", 192 | "integrity": "sha512-FyXlD2ZjZqTFh0sOQxFDiWG1uQUEOLbEh9gKN/7pFxck5Vw0qjWSDqbn6C10GAa1rXJpwsntHcmLqydY9ST9ZA==", 193 | "cpu": [ 194 | "ia32" 195 | ], 196 | "dev": true, 197 | "optional": true, 198 | "os": [ 199 | "linux" 200 | ], 201 | "engines": { 202 | "node": ">=12" 203 | } 204 | }, 205 | "node_modules/@esbuild/linux-loong64": { 206 | "version": "0.17.3", 207 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.3.tgz", 208 | "integrity": "sha512-OrDGMvDBI2g7s04J8dh8/I7eSO+/E7nMDT2Z5IruBfUO/RiigF1OF6xoH33Dn4W/OwAWSUf1s2nXamb28ZklTA==", 209 | "cpu": [ 210 | "loong64" 211 | ], 212 | "dev": true, 213 | "optional": true, 214 | "os": [ 215 | "linux" 216 | ], 217 | "engines": { 218 | "node": ">=12" 219 | } 220 | }, 221 | "node_modules/@esbuild/linux-mips64el": { 222 | "version": "0.17.3", 223 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.3.tgz", 224 | "integrity": "sha512-DcnUpXnVCJvmv0TzuLwKBC2nsQHle8EIiAJiJ+PipEVC16wHXaPEKP0EqN8WnBe0TPvMITOUlP2aiL5YMld+CQ==", 225 | "cpu": [ 226 | "mips64el" 227 | ], 228 | "dev": true, 229 | "optional": true, 230 | "os": [ 231 | "linux" 232 | ], 233 | "engines": { 234 | "node": ">=12" 235 | } 236 | }, 237 | "node_modules/@esbuild/linux-ppc64": { 238 | "version": "0.17.3", 239 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.3.tgz", 240 | "integrity": "sha512-BDYf/l1WVhWE+FHAW3FzZPtVlk9QsrwsxGzABmN4g8bTjmhazsId3h127pliDRRu5674k1Y2RWejbpN46N9ZhQ==", 241 | "cpu": [ 242 | "ppc64" 243 | ], 244 | "dev": true, 245 | "optional": true, 246 | "os": [ 247 | "linux" 248 | ], 249 | "engines": { 250 | "node": ">=12" 251 | } 252 | }, 253 | "node_modules/@esbuild/linux-riscv64": { 254 | "version": "0.17.3", 255 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.3.tgz", 256 | "integrity": "sha512-WViAxWYMRIi+prTJTyV1wnqd2mS2cPqJlN85oscVhXdb/ZTFJdrpaqm/uDsZPGKHtbg5TuRX/ymKdOSk41YZow==", 257 | "cpu": [ 258 | "riscv64" 259 | ], 260 | "dev": true, 261 | "optional": true, 262 | "os": [ 263 | "linux" 264 | ], 265 | "engines": { 266 | "node": ">=12" 267 | } 268 | }, 269 | "node_modules/@esbuild/linux-s390x": { 270 | "version": "0.17.3", 271 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.3.tgz", 272 | "integrity": "sha512-Iw8lkNHUC4oGP1O/KhumcVy77u2s6+KUjieUqzEU3XuWJqZ+AY7uVMrrCbAiwWTkpQHkr00BuXH5RpC6Sb/7Ug==", 273 | "cpu": [ 274 | "s390x" 275 | ], 276 | "dev": true, 277 | "optional": true, 278 | "os": [ 279 | "linux" 280 | ], 281 | "engines": { 282 | "node": ">=12" 283 | } 284 | }, 285 | "node_modules/@esbuild/linux-x64": { 286 | "version": "0.17.3", 287 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.3.tgz", 288 | "integrity": "sha512-0AGkWQMzeoeAtXQRNB3s4J1/T2XbigM2/Mn2yU1tQSmQRmHIZdkGbVq2A3aDdNslPyhb9/lH0S5GMTZ4xsjBqg==", 289 | "cpu": [ 290 | "x64" 291 | ], 292 | "dev": true, 293 | "optional": true, 294 | "os": [ 295 | "linux" 296 | ], 297 | "engines": { 298 | "node": ">=12" 299 | } 300 | }, 301 | "node_modules/@esbuild/netbsd-x64": { 302 | "version": "0.17.3", 303 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.3.tgz", 304 | "integrity": "sha512-4+rR/WHOxIVh53UIQIICryjdoKdHsFZFD4zLSonJ9RRw7bhKzVyXbnRPsWSfwybYqw9sB7ots/SYyufL1mBpEg==", 305 | "cpu": [ 306 | "x64" 307 | ], 308 | "dev": true, 309 | "optional": true, 310 | "os": [ 311 | "netbsd" 312 | ], 313 | "engines": { 314 | "node": ">=12" 315 | } 316 | }, 317 | "node_modules/@esbuild/openbsd-x64": { 318 | "version": "0.17.3", 319 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.3.tgz", 320 | "integrity": "sha512-cVpWnkx9IYg99EjGxa5Gc0XmqumtAwK3aoz7O4Dii2vko+qXbkHoujWA68cqXjhh6TsLaQelfDO4MVnyr+ODeA==", 321 | "cpu": [ 322 | "x64" 323 | ], 324 | "dev": true, 325 | "optional": true, 326 | "os": [ 327 | "openbsd" 328 | ], 329 | "engines": { 330 | "node": ">=12" 331 | } 332 | }, 333 | "node_modules/@esbuild/sunos-x64": { 334 | "version": "0.17.3", 335 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.3.tgz", 336 | "integrity": "sha512-RxmhKLbTCDAY2xOfrww6ieIZkZF+KBqG7S2Ako2SljKXRFi+0863PspK74QQ7JpmWwncChY25JTJSbVBYGQk2Q==", 337 | "cpu": [ 338 | "x64" 339 | ], 340 | "dev": true, 341 | "optional": true, 342 | "os": [ 343 | "sunos" 344 | ], 345 | "engines": { 346 | "node": ">=12" 347 | } 348 | }, 349 | "node_modules/@esbuild/win32-arm64": { 350 | "version": "0.17.3", 351 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.3.tgz", 352 | "integrity": "sha512-0r36VeEJ4efwmofxVJRXDjVRP2jTmv877zc+i+Pc7MNsIr38NfsjkQj23AfF7l0WbB+RQ7VUb+LDiqC/KY/M/A==", 353 | "cpu": [ 354 | "arm64" 355 | ], 356 | "dev": true, 357 | "optional": true, 358 | "os": [ 359 | "win32" 360 | ], 361 | "engines": { 362 | "node": ">=12" 363 | } 364 | }, 365 | "node_modules/@esbuild/win32-ia32": { 366 | "version": "0.17.3", 367 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.3.tgz", 368 | "integrity": "sha512-wgO6rc7uGStH22nur4aLFcq7Wh86bE9cOFmfTr/yxN3BXvDEdCSXyKkO+U5JIt53eTOgC47v9k/C1bITWL/Teg==", 369 | "cpu": [ 370 | "ia32" 371 | ], 372 | "dev": true, 373 | "optional": true, 374 | "os": [ 375 | "win32" 376 | ], 377 | "engines": { 378 | "node": ">=12" 379 | } 380 | }, 381 | "node_modules/@esbuild/win32-x64": { 382 | "version": "0.17.3", 383 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.3.tgz", 384 | "integrity": "sha512-FdVl64OIuiKjgXBjwZaJLKp0eaEckifbhn10dXWhysMJkWblg3OEEGKSIyhiD5RSgAya8WzP3DNkngtIg3Nt7g==", 385 | "cpu": [ 386 | "x64" 387 | ], 388 | "dev": true, 389 | "optional": true, 390 | "os": [ 391 | "win32" 392 | ], 393 | "engines": { 394 | "node": ">=12" 395 | } 396 | }, 397 | "node_modules/@eslint-community/eslint-utils": { 398 | "version": "4.4.0", 399 | "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", 400 | "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", 401 | "dev": true, 402 | "peer": true, 403 | "dependencies": { 404 | "eslint-visitor-keys": "^3.3.0" 405 | }, 406 | "engines": { 407 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 408 | }, 409 | "peerDependencies": { 410 | "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" 411 | } 412 | }, 413 | "node_modules/@eslint-community/regexpp": { 414 | "version": "4.5.1", 415 | "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", 416 | "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", 417 | "dev": true, 418 | "peer": true, 419 | "engines": { 420 | "node": "^12.0.0 || ^14.0.0 || >=16.0.0" 421 | } 422 | }, 423 | "node_modules/@eslint/eslintrc": { 424 | "version": "2.0.3", 425 | "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz", 426 | "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==", 427 | "dev": true, 428 | "peer": true, 429 | "dependencies": { 430 | "ajv": "^6.12.4", 431 | "debug": "^4.3.2", 432 | "espree": "^9.5.2", 433 | "globals": "^13.19.0", 434 | "ignore": "^5.2.0", 435 | "import-fresh": "^3.2.1", 436 | "js-yaml": "^4.1.0", 437 | "minimatch": "^3.1.2", 438 | "strip-json-comments": "^3.1.1" 439 | }, 440 | "engines": { 441 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 442 | }, 443 | "funding": { 444 | "url": "https://opencollective.com/eslint" 445 | } 446 | }, 447 | "node_modules/@eslint/js": { 448 | "version": "8.41.0", 449 | "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.41.0.tgz", 450 | "integrity": "sha512-LxcyMGxwmTh2lY9FwHPGWOHmYFCZvbrFCBZL4FzSSsxsRPuhrYUg/49/0KDfW8tnIEaEHtfmn6+NPN+1DqaNmA==", 451 | "dev": true, 452 | "peer": true, 453 | "engines": { 454 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 455 | } 456 | }, 457 | "node_modules/@humanwhocodes/config-array": { 458 | "version": "0.11.8", 459 | "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", 460 | "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", 461 | "dev": true, 462 | "peer": true, 463 | "dependencies": { 464 | "@humanwhocodes/object-schema": "^1.2.1", 465 | "debug": "^4.1.1", 466 | "minimatch": "^3.0.5" 467 | }, 468 | "engines": { 469 | "node": ">=10.10.0" 470 | } 471 | }, 472 | "node_modules/@humanwhocodes/module-importer": { 473 | "version": "1.0.1", 474 | "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", 475 | "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", 476 | "dev": true, 477 | "peer": true, 478 | "engines": { 479 | "node": ">=12.22" 480 | }, 481 | "funding": { 482 | "type": "github", 483 | "url": "https://github.com/sponsors/nzakas" 484 | } 485 | }, 486 | "node_modules/@humanwhocodes/object-schema": { 487 | "version": "1.2.1", 488 | "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", 489 | "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", 490 | "dev": true, 491 | "peer": true 492 | }, 493 | "node_modules/@nodelib/fs.scandir": { 494 | "version": "2.1.5", 495 | "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", 496 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", 497 | "dev": true, 498 | "dependencies": { 499 | "@nodelib/fs.stat": "2.0.5", 500 | "run-parallel": "^1.1.9" 501 | }, 502 | "engines": { 503 | "node": ">= 8" 504 | } 505 | }, 506 | "node_modules/@nodelib/fs.stat": { 507 | "version": "2.0.5", 508 | "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", 509 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", 510 | "dev": true, 511 | "engines": { 512 | "node": ">= 8" 513 | } 514 | }, 515 | "node_modules/@nodelib/fs.walk": { 516 | "version": "1.2.8", 517 | "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", 518 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", 519 | "dev": true, 520 | "dependencies": { 521 | "@nodelib/fs.scandir": "2.1.5", 522 | "fastq": "^1.6.0" 523 | }, 524 | "engines": { 525 | "node": ">= 8" 526 | } 527 | }, 528 | "node_modules/@types/codemirror": { 529 | "version": "5.60.7", 530 | "resolved": "https://registry.npmjs.org/@types/codemirror/-/codemirror-5.60.7.tgz", 531 | "integrity": "sha512-QXIC+RPzt/1BGSuD6iFn6UMC9TDp+9hkOANYNPVsjjrDdzKphfRkwQDKGp2YaC54Yhz0g6P5uYTCCibZZEiMAA==", 532 | "dev": true, 533 | "dependencies": { 534 | "@types/tern": "*" 535 | } 536 | }, 537 | "node_modules/@types/estree": { 538 | "version": "1.0.1", 539 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", 540 | "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==", 541 | "dev": true 542 | }, 543 | "node_modules/@types/gm": { 544 | "version": "1.25.1", 545 | "resolved": "https://registry.npmjs.org/@types/gm/-/gm-1.25.1.tgz", 546 | "integrity": "sha512-WLqlPvjot5jxpt1AFxaWm0fgWZUBGXOPJC3ZrQgRpvpHYjwYbvr/4GwRzd0mXFfxzX+TrvXaow+/WbmWFHomlQ==", 547 | "dev": true, 548 | "dependencies": { 549 | "@types/node": "*" 550 | } 551 | }, 552 | "node_modules/@types/json-schema": { 553 | "version": "7.0.12", 554 | "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", 555 | "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==", 556 | "dev": true 557 | }, 558 | "node_modules/@types/node": { 559 | "version": "16.18.34", 560 | "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.34.tgz", 561 | "integrity": "sha512-VmVm7gXwhkUimRfBwVI1CHhwp86jDWR04B5FGebMMyxV90SlCmFujwUHrxTD4oO+SOYU86SoxvhgeRQJY7iXFg==", 562 | "dev": true 563 | }, 564 | "node_modules/@types/tern": { 565 | "version": "0.23.4", 566 | "resolved": "https://registry.npmjs.org/@types/tern/-/tern-0.23.4.tgz", 567 | "integrity": "sha512-JAUw1iXGO1qaWwEOzxTKJZ/5JxVeON9kvGZ/osgZaJImBnyjyn0cjovPsf6FNLmyGY8Vw9DoXZCMlfMkMwHRWg==", 568 | "dev": true, 569 | "dependencies": { 570 | "@types/estree": "*" 571 | } 572 | }, 573 | "node_modules/@typescript-eslint/eslint-plugin": { 574 | "version": "5.29.0", 575 | "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.29.0.tgz", 576 | "integrity": "sha512-kgTsISt9pM53yRFQmLZ4npj99yGl3x3Pl7z4eA66OuTzAGC4bQB5H5fuLwPnqTKU3yyrrg4MIhjF17UYnL4c0w==", 577 | "dev": true, 578 | "dependencies": { 579 | "@typescript-eslint/scope-manager": "5.29.0", 580 | "@typescript-eslint/type-utils": "5.29.0", 581 | "@typescript-eslint/utils": "5.29.0", 582 | "debug": "^4.3.4", 583 | "functional-red-black-tree": "^1.0.1", 584 | "ignore": "^5.2.0", 585 | "regexpp": "^3.2.0", 586 | "semver": "^7.3.7", 587 | "tsutils": "^3.21.0" 588 | }, 589 | "engines": { 590 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 591 | }, 592 | "funding": { 593 | "type": "opencollective", 594 | "url": "https://opencollective.com/typescript-eslint" 595 | }, 596 | "peerDependencies": { 597 | "@typescript-eslint/parser": "^5.0.0", 598 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" 599 | }, 600 | "peerDependenciesMeta": { 601 | "typescript": { 602 | "optional": true 603 | } 604 | } 605 | }, 606 | "node_modules/@typescript-eslint/parser": { 607 | "version": "5.29.0", 608 | "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.29.0.tgz", 609 | "integrity": "sha512-ruKWTv+x0OOxbzIw9nW5oWlUopvP/IQDjB5ZqmTglLIoDTctLlAJpAQFpNPJP/ZI7hTT9sARBosEfaKbcFuECw==", 610 | "dev": true, 611 | "dependencies": { 612 | "@typescript-eslint/scope-manager": "5.29.0", 613 | "@typescript-eslint/types": "5.29.0", 614 | "@typescript-eslint/typescript-estree": "5.29.0", 615 | "debug": "^4.3.4" 616 | }, 617 | "engines": { 618 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 619 | }, 620 | "funding": { 621 | "type": "opencollective", 622 | "url": "https://opencollective.com/typescript-eslint" 623 | }, 624 | "peerDependencies": { 625 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" 626 | }, 627 | "peerDependenciesMeta": { 628 | "typescript": { 629 | "optional": true 630 | } 631 | } 632 | }, 633 | "node_modules/@typescript-eslint/scope-manager": { 634 | "version": "5.29.0", 635 | "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.29.0.tgz", 636 | "integrity": "sha512-etbXUT0FygFi2ihcxDZjz21LtC+Eps9V2xVx09zFoN44RRHPrkMflidGMI+2dUs821zR1tDS6Oc9IXxIjOUZwA==", 637 | "dev": true, 638 | "dependencies": { 639 | "@typescript-eslint/types": "5.29.0", 640 | "@typescript-eslint/visitor-keys": "5.29.0" 641 | }, 642 | "engines": { 643 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 644 | }, 645 | "funding": { 646 | "type": "opencollective", 647 | "url": "https://opencollective.com/typescript-eslint" 648 | } 649 | }, 650 | "node_modules/@typescript-eslint/type-utils": { 651 | "version": "5.29.0", 652 | "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.29.0.tgz", 653 | "integrity": "sha512-JK6bAaaiJozbox3K220VRfCzLa9n0ib/J+FHIwnaV3Enw/TO267qe0pM1b1QrrEuy6xun374XEAsRlA86JJnyg==", 654 | "dev": true, 655 | "dependencies": { 656 | "@typescript-eslint/utils": "5.29.0", 657 | "debug": "^4.3.4", 658 | "tsutils": "^3.21.0" 659 | }, 660 | "engines": { 661 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 662 | }, 663 | "funding": { 664 | "type": "opencollective", 665 | "url": "https://opencollective.com/typescript-eslint" 666 | }, 667 | "peerDependencies": { 668 | "eslint": "*" 669 | }, 670 | "peerDependenciesMeta": { 671 | "typescript": { 672 | "optional": true 673 | } 674 | } 675 | }, 676 | "node_modules/@typescript-eslint/types": { 677 | "version": "5.29.0", 678 | "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.29.0.tgz", 679 | "integrity": "sha512-X99VbqvAXOMdVyfFmksMy3u8p8yoRGITgU1joBJPzeYa0rhdf5ok9S56/itRoUSh99fiDoMtarSIJXo7H/SnOg==", 680 | "dev": true, 681 | "engines": { 682 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 683 | }, 684 | "funding": { 685 | "type": "opencollective", 686 | "url": "https://opencollective.com/typescript-eslint" 687 | } 688 | }, 689 | "node_modules/@typescript-eslint/typescript-estree": { 690 | "version": "5.29.0", 691 | "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.29.0.tgz", 692 | "integrity": "sha512-mQvSUJ/JjGBdvo+1LwC+GY2XmSYjK1nAaVw2emp/E61wEVYEyibRHCqm1I1vEKbXCpUKuW4G7u9ZCaZhJbLoNQ==", 693 | "dev": true, 694 | "dependencies": { 695 | "@typescript-eslint/types": "5.29.0", 696 | "@typescript-eslint/visitor-keys": "5.29.0", 697 | "debug": "^4.3.4", 698 | "globby": "^11.1.0", 699 | "is-glob": "^4.0.3", 700 | "semver": "^7.3.7", 701 | "tsutils": "^3.21.0" 702 | }, 703 | "engines": { 704 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 705 | }, 706 | "funding": { 707 | "type": "opencollective", 708 | "url": "https://opencollective.com/typescript-eslint" 709 | }, 710 | "peerDependenciesMeta": { 711 | "typescript": { 712 | "optional": true 713 | } 714 | } 715 | }, 716 | "node_modules/@typescript-eslint/utils": { 717 | "version": "5.29.0", 718 | "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.29.0.tgz", 719 | "integrity": "sha512-3Eos6uP1nyLOBayc/VUdKZikV90HahXE5Dx9L5YlSd/7ylQPXhLk1BYb29SDgnBnTp+jmSZUU0QxUiyHgW4p7A==", 720 | "dev": true, 721 | "dependencies": { 722 | "@types/json-schema": "^7.0.9", 723 | "@typescript-eslint/scope-manager": "5.29.0", 724 | "@typescript-eslint/types": "5.29.0", 725 | "@typescript-eslint/typescript-estree": "5.29.0", 726 | "eslint-scope": "^5.1.1", 727 | "eslint-utils": "^3.0.0" 728 | }, 729 | "engines": { 730 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 731 | }, 732 | "funding": { 733 | "type": "opencollective", 734 | "url": "https://opencollective.com/typescript-eslint" 735 | }, 736 | "peerDependencies": { 737 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" 738 | } 739 | }, 740 | "node_modules/@typescript-eslint/visitor-keys": { 741 | "version": "5.29.0", 742 | "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.29.0.tgz", 743 | "integrity": "sha512-Hpb/mCWsjILvikMQoZIE3voc9wtQcS0A9FUw3h8bhr9UxBdtI/tw1ZDZUOXHXLOVMedKCH5NxyzATwnU78bWCQ==", 744 | "dev": true, 745 | "dependencies": { 746 | "@typescript-eslint/types": "5.29.0", 747 | "eslint-visitor-keys": "^3.3.0" 748 | }, 749 | "engines": { 750 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 751 | }, 752 | "funding": { 753 | "type": "opencollective", 754 | "url": "https://opencollective.com/typescript-eslint" 755 | } 756 | }, 757 | "node_modules/abort-controller": { 758 | "version": "3.0.0", 759 | "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", 760 | "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", 761 | "dev": true, 762 | "dependencies": { 763 | "event-target-shim": "^5.0.0" 764 | }, 765 | "engines": { 766 | "node": ">=6.5" 767 | } 768 | }, 769 | "node_modules/acorn": { 770 | "version": "8.8.2", 771 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", 772 | "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", 773 | "dev": true, 774 | "peer": true, 775 | "bin": { 776 | "acorn": "bin/acorn" 777 | }, 778 | "engines": { 779 | "node": ">=0.4.0" 780 | } 781 | }, 782 | "node_modules/acorn-jsx": { 783 | "version": "5.3.2", 784 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", 785 | "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", 786 | "dev": true, 787 | "peer": true, 788 | "peerDependencies": { 789 | "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" 790 | } 791 | }, 792 | "node_modules/ajv": { 793 | "version": "6.12.6", 794 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 795 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 796 | "dev": true, 797 | "peer": true, 798 | "dependencies": { 799 | "fast-deep-equal": "^3.1.1", 800 | "fast-json-stable-stringify": "^2.0.0", 801 | "json-schema-traverse": "^0.4.1", 802 | "uri-js": "^4.2.2" 803 | }, 804 | "funding": { 805 | "type": "github", 806 | "url": "https://github.com/sponsors/epoberezkin" 807 | } 808 | }, 809 | "node_modules/ansi-regex": { 810 | "version": "5.0.1", 811 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 812 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 813 | "dev": true, 814 | "peer": true, 815 | "engines": { 816 | "node": ">=8" 817 | } 818 | }, 819 | "node_modules/ansi-styles": { 820 | "version": "4.3.0", 821 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 822 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 823 | "dev": true, 824 | "peer": true, 825 | "dependencies": { 826 | "color-convert": "^2.0.1" 827 | }, 828 | "engines": { 829 | "node": ">=8" 830 | }, 831 | "funding": { 832 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 833 | } 834 | }, 835 | "node_modules/argparse": { 836 | "version": "2.0.1", 837 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 838 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 839 | "dev": true, 840 | "peer": true 841 | }, 842 | "node_modules/array-parallel": { 843 | "version": "0.1.3", 844 | "resolved": "https://registry.npmjs.org/array-parallel/-/array-parallel-0.1.3.tgz", 845 | "integrity": "sha512-TDPTwSWW5E4oiFiKmz6RGJ/a80Y91GuLgUYuLd49+XBS75tYo8PNgaT2K/OxuQYqkoI852MDGBorg9OcUSTQ8w==", 846 | "dev": true 847 | }, 848 | "node_modules/array-series": { 849 | "version": "0.1.5", 850 | "resolved": "https://registry.npmjs.org/array-series/-/array-series-0.1.5.tgz", 851 | "integrity": "sha512-L0XlBwfx9QetHOsbLDrE/vh2t018w9462HM3iaFfxRiK83aJjAt/Ja3NMkOW7FICwWTlQBa3ZbL5FKhuQWkDrg==", 852 | "dev": true 853 | }, 854 | "node_modules/array-union": { 855 | "version": "2.1.0", 856 | "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", 857 | "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", 858 | "dev": true, 859 | "engines": { 860 | "node": ">=8" 861 | } 862 | }, 863 | "node_modules/atomic-sleep": { 864 | "version": "1.0.0", 865 | "resolved": "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz", 866 | "integrity": "sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==", 867 | "dev": true, 868 | "engines": { 869 | "node": ">=8.0.0" 870 | } 871 | }, 872 | "node_modules/balanced-match": { 873 | "version": "1.0.2", 874 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 875 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 876 | "dev": true, 877 | "peer": true 878 | }, 879 | "node_modules/base64-js": { 880 | "version": "1.5.1", 881 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", 882 | "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", 883 | "dev": true, 884 | "funding": [ 885 | { 886 | "type": "github", 887 | "url": "https://github.com/sponsors/feross" 888 | }, 889 | { 890 | "type": "patreon", 891 | "url": "https://www.patreon.com/feross" 892 | }, 893 | { 894 | "type": "consulting", 895 | "url": "https://feross.org/support" 896 | } 897 | ] 898 | }, 899 | "node_modules/brace-expansion": { 900 | "version": "1.1.11", 901 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 902 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 903 | "dev": true, 904 | "peer": true, 905 | "dependencies": { 906 | "balanced-match": "^1.0.0", 907 | "concat-map": "0.0.1" 908 | } 909 | }, 910 | "node_modules/braces": { 911 | "version": "3.0.2", 912 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 913 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 914 | "dev": true, 915 | "dependencies": { 916 | "fill-range": "^7.0.1" 917 | }, 918 | "engines": { 919 | "node": ">=8" 920 | } 921 | }, 922 | "node_modules/builtin-modules": { 923 | "version": "3.3.0", 924 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", 925 | "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", 926 | "dev": true, 927 | "engines": { 928 | "node": ">=6" 929 | }, 930 | "funding": { 931 | "url": "https://github.com/sponsors/sindresorhus" 932 | } 933 | }, 934 | "node_modules/callsites": { 935 | "version": "3.1.0", 936 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 937 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 938 | "dev": true, 939 | "peer": true, 940 | "engines": { 941 | "node": ">=6" 942 | } 943 | }, 944 | "node_modules/chalk": { 945 | "version": "4.1.2", 946 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 947 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 948 | "dev": true, 949 | "peer": true, 950 | "dependencies": { 951 | "ansi-styles": "^4.1.0", 952 | "supports-color": "^7.1.0" 953 | }, 954 | "engines": { 955 | "node": ">=10" 956 | }, 957 | "funding": { 958 | "url": "https://github.com/chalk/chalk?sponsor=1" 959 | } 960 | }, 961 | "node_modules/color-convert": { 962 | "version": "2.0.1", 963 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 964 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 965 | "dev": true, 966 | "peer": true, 967 | "dependencies": { 968 | "color-name": "~1.1.4" 969 | }, 970 | "engines": { 971 | "node": ">=7.0.0" 972 | } 973 | }, 974 | "node_modules/color-name": { 975 | "version": "1.1.4", 976 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 977 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 978 | "dev": true, 979 | "peer": true 980 | }, 981 | "node_modules/concat-map": { 982 | "version": "0.0.1", 983 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 984 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 985 | "dev": true, 986 | "peer": true 987 | }, 988 | "node_modules/cross-spawn": { 989 | "version": "7.0.3", 990 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", 991 | "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", 992 | "dev": true, 993 | "peer": true, 994 | "dependencies": { 995 | "path-key": "^3.1.0", 996 | "shebang-command": "^2.0.0", 997 | "which": "^2.0.1" 998 | }, 999 | "engines": { 1000 | "node": ">= 8" 1001 | } 1002 | }, 1003 | "node_modules/debug": { 1004 | "version": "4.3.4", 1005 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", 1006 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", 1007 | "dev": true, 1008 | "dependencies": { 1009 | "ms": "2.1.2" 1010 | }, 1011 | "engines": { 1012 | "node": ">=6.0" 1013 | }, 1014 | "peerDependenciesMeta": { 1015 | "supports-color": { 1016 | "optional": true 1017 | } 1018 | } 1019 | }, 1020 | "node_modules/deep-is": { 1021 | "version": "0.1.4", 1022 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", 1023 | "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", 1024 | "dev": true, 1025 | "peer": true 1026 | }, 1027 | "node_modules/dir-glob": { 1028 | "version": "3.0.1", 1029 | "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", 1030 | "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", 1031 | "dev": true, 1032 | "dependencies": { 1033 | "path-type": "^4.0.0" 1034 | }, 1035 | "engines": { 1036 | "node": ">=8" 1037 | } 1038 | }, 1039 | "node_modules/doctrine": { 1040 | "version": "3.0.0", 1041 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", 1042 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", 1043 | "dev": true, 1044 | "peer": true, 1045 | "dependencies": { 1046 | "esutils": "^2.0.2" 1047 | }, 1048 | "engines": { 1049 | "node": ">=6.0.0" 1050 | } 1051 | }, 1052 | "node_modules/esbuild": { 1053 | "version": "0.17.3", 1054 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.3.tgz", 1055 | "integrity": "sha512-9n3AsBRe6sIyOc6kmoXg2ypCLgf3eZSraWFRpnkto+svt8cZNuKTkb1bhQcitBcvIqjNiK7K0J3KPmwGSfkA8g==", 1056 | "dev": true, 1057 | "hasInstallScript": true, 1058 | "bin": { 1059 | "esbuild": "bin/esbuild" 1060 | }, 1061 | "engines": { 1062 | "node": ">=12" 1063 | }, 1064 | "optionalDependencies": { 1065 | "@esbuild/android-arm": "0.17.3", 1066 | "@esbuild/android-arm64": "0.17.3", 1067 | "@esbuild/android-x64": "0.17.3", 1068 | "@esbuild/darwin-arm64": "0.17.3", 1069 | "@esbuild/darwin-x64": "0.17.3", 1070 | "@esbuild/freebsd-arm64": "0.17.3", 1071 | "@esbuild/freebsd-x64": "0.17.3", 1072 | "@esbuild/linux-arm": "0.17.3", 1073 | "@esbuild/linux-arm64": "0.17.3", 1074 | "@esbuild/linux-ia32": "0.17.3", 1075 | "@esbuild/linux-loong64": "0.17.3", 1076 | "@esbuild/linux-mips64el": "0.17.3", 1077 | "@esbuild/linux-ppc64": "0.17.3", 1078 | "@esbuild/linux-riscv64": "0.17.3", 1079 | "@esbuild/linux-s390x": "0.17.3", 1080 | "@esbuild/linux-x64": "0.17.3", 1081 | "@esbuild/netbsd-x64": "0.17.3", 1082 | "@esbuild/openbsd-x64": "0.17.3", 1083 | "@esbuild/sunos-x64": "0.17.3", 1084 | "@esbuild/win32-arm64": "0.17.3", 1085 | "@esbuild/win32-ia32": "0.17.3", 1086 | "@esbuild/win32-x64": "0.17.3" 1087 | } 1088 | }, 1089 | "node_modules/escape-string-regexp": { 1090 | "version": "4.0.0", 1091 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 1092 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 1093 | "dev": true, 1094 | "peer": true, 1095 | "engines": { 1096 | "node": ">=10" 1097 | }, 1098 | "funding": { 1099 | "url": "https://github.com/sponsors/sindresorhus" 1100 | } 1101 | }, 1102 | "node_modules/eslint": { 1103 | "version": "8.41.0", 1104 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.41.0.tgz", 1105 | "integrity": "sha512-WQDQpzGBOP5IrXPo4Hc0814r4/v2rrIsB0rhT7jtunIalgg6gYXWhRMOejVO8yH21T/FGaxjmFjBMNqcIlmH1Q==", 1106 | "dev": true, 1107 | "peer": true, 1108 | "dependencies": { 1109 | "@eslint-community/eslint-utils": "^4.2.0", 1110 | "@eslint-community/regexpp": "^4.4.0", 1111 | "@eslint/eslintrc": "^2.0.3", 1112 | "@eslint/js": "8.41.0", 1113 | "@humanwhocodes/config-array": "^0.11.8", 1114 | "@humanwhocodes/module-importer": "^1.0.1", 1115 | "@nodelib/fs.walk": "^1.2.8", 1116 | "ajv": "^6.10.0", 1117 | "chalk": "^4.0.0", 1118 | "cross-spawn": "^7.0.2", 1119 | "debug": "^4.3.2", 1120 | "doctrine": "^3.0.0", 1121 | "escape-string-regexp": "^4.0.0", 1122 | "eslint-scope": "^7.2.0", 1123 | "eslint-visitor-keys": "^3.4.1", 1124 | "espree": "^9.5.2", 1125 | "esquery": "^1.4.2", 1126 | "esutils": "^2.0.2", 1127 | "fast-deep-equal": "^3.1.3", 1128 | "file-entry-cache": "^6.0.1", 1129 | "find-up": "^5.0.0", 1130 | "glob-parent": "^6.0.2", 1131 | "globals": "^13.19.0", 1132 | "graphemer": "^1.4.0", 1133 | "ignore": "^5.2.0", 1134 | "import-fresh": "^3.0.0", 1135 | "imurmurhash": "^0.1.4", 1136 | "is-glob": "^4.0.0", 1137 | "is-path-inside": "^3.0.3", 1138 | "js-yaml": "^4.1.0", 1139 | "json-stable-stringify-without-jsonify": "^1.0.1", 1140 | "levn": "^0.4.1", 1141 | "lodash.merge": "^4.6.2", 1142 | "minimatch": "^3.1.2", 1143 | "natural-compare": "^1.4.0", 1144 | "optionator": "^0.9.1", 1145 | "strip-ansi": "^6.0.1", 1146 | "strip-json-comments": "^3.1.0", 1147 | "text-table": "^0.2.0" 1148 | }, 1149 | "bin": { 1150 | "eslint": "bin/eslint.js" 1151 | }, 1152 | "engines": { 1153 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1154 | }, 1155 | "funding": { 1156 | "url": "https://opencollective.com/eslint" 1157 | } 1158 | }, 1159 | "node_modules/eslint-scope": { 1160 | "version": "5.1.1", 1161 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", 1162 | "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", 1163 | "dev": true, 1164 | "dependencies": { 1165 | "esrecurse": "^4.3.0", 1166 | "estraverse": "^4.1.1" 1167 | }, 1168 | "engines": { 1169 | "node": ">=8.0.0" 1170 | } 1171 | }, 1172 | "node_modules/eslint-utils": { 1173 | "version": "3.0.0", 1174 | "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", 1175 | "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", 1176 | "dev": true, 1177 | "dependencies": { 1178 | "eslint-visitor-keys": "^2.0.0" 1179 | }, 1180 | "engines": { 1181 | "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" 1182 | }, 1183 | "funding": { 1184 | "url": "https://github.com/sponsors/mysticatea" 1185 | }, 1186 | "peerDependencies": { 1187 | "eslint": ">=5" 1188 | } 1189 | }, 1190 | "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { 1191 | "version": "2.1.0", 1192 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", 1193 | "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", 1194 | "dev": true, 1195 | "engines": { 1196 | "node": ">=10" 1197 | } 1198 | }, 1199 | "node_modules/eslint-visitor-keys": { 1200 | "version": "3.4.1", 1201 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", 1202 | "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", 1203 | "dev": true, 1204 | "engines": { 1205 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1206 | }, 1207 | "funding": { 1208 | "url": "https://opencollective.com/eslint" 1209 | } 1210 | }, 1211 | "node_modules/eslint/node_modules/eslint-scope": { 1212 | "version": "7.2.0", 1213 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", 1214 | "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", 1215 | "dev": true, 1216 | "peer": true, 1217 | "dependencies": { 1218 | "esrecurse": "^4.3.0", 1219 | "estraverse": "^5.2.0" 1220 | }, 1221 | "engines": { 1222 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1223 | }, 1224 | "funding": { 1225 | "url": "https://opencollective.com/eslint" 1226 | } 1227 | }, 1228 | "node_modules/eslint/node_modules/estraverse": { 1229 | "version": "5.3.0", 1230 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1231 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1232 | "dev": true, 1233 | "peer": true, 1234 | "engines": { 1235 | "node": ">=4.0" 1236 | } 1237 | }, 1238 | "node_modules/espree": { 1239 | "version": "9.5.2", 1240 | "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", 1241 | "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", 1242 | "dev": true, 1243 | "peer": true, 1244 | "dependencies": { 1245 | "acorn": "^8.8.0", 1246 | "acorn-jsx": "^5.3.2", 1247 | "eslint-visitor-keys": "^3.4.1" 1248 | }, 1249 | "engines": { 1250 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1251 | }, 1252 | "funding": { 1253 | "url": "https://opencollective.com/eslint" 1254 | } 1255 | }, 1256 | "node_modules/esquery": { 1257 | "version": "1.5.0", 1258 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", 1259 | "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", 1260 | "dev": true, 1261 | "peer": true, 1262 | "dependencies": { 1263 | "estraverse": "^5.1.0" 1264 | }, 1265 | "engines": { 1266 | "node": ">=0.10" 1267 | } 1268 | }, 1269 | "node_modules/esquery/node_modules/estraverse": { 1270 | "version": "5.3.0", 1271 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1272 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1273 | "dev": true, 1274 | "peer": true, 1275 | "engines": { 1276 | "node": ">=4.0" 1277 | } 1278 | }, 1279 | "node_modules/esrecurse": { 1280 | "version": "4.3.0", 1281 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", 1282 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", 1283 | "dev": true, 1284 | "dependencies": { 1285 | "estraverse": "^5.2.0" 1286 | }, 1287 | "engines": { 1288 | "node": ">=4.0" 1289 | } 1290 | }, 1291 | "node_modules/esrecurse/node_modules/estraverse": { 1292 | "version": "5.3.0", 1293 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1294 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1295 | "dev": true, 1296 | "engines": { 1297 | "node": ">=4.0" 1298 | } 1299 | }, 1300 | "node_modules/estraverse": { 1301 | "version": "4.3.0", 1302 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", 1303 | "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", 1304 | "dev": true, 1305 | "engines": { 1306 | "node": ">=4.0" 1307 | } 1308 | }, 1309 | "node_modules/esutils": { 1310 | "version": "2.0.3", 1311 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 1312 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 1313 | "dev": true, 1314 | "peer": true, 1315 | "engines": { 1316 | "node": ">=0.10.0" 1317 | } 1318 | }, 1319 | "node_modules/event-target-shim": { 1320 | "version": "5.0.1", 1321 | "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", 1322 | "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", 1323 | "dev": true, 1324 | "engines": { 1325 | "node": ">=6" 1326 | } 1327 | }, 1328 | "node_modules/events": { 1329 | "version": "3.3.0", 1330 | "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", 1331 | "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", 1332 | "dev": true, 1333 | "engines": { 1334 | "node": ">=0.8.x" 1335 | } 1336 | }, 1337 | "node_modules/fast-deep-equal": { 1338 | "version": "3.1.3", 1339 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 1340 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 1341 | "dev": true, 1342 | "peer": true 1343 | }, 1344 | "node_modules/fast-glob": { 1345 | "version": "3.2.12", 1346 | "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", 1347 | "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", 1348 | "dev": true, 1349 | "dependencies": { 1350 | "@nodelib/fs.stat": "^2.0.2", 1351 | "@nodelib/fs.walk": "^1.2.3", 1352 | "glob-parent": "^5.1.2", 1353 | "merge2": "^1.3.0", 1354 | "micromatch": "^4.0.4" 1355 | }, 1356 | "engines": { 1357 | "node": ">=8.6.0" 1358 | } 1359 | }, 1360 | "node_modules/fast-glob/node_modules/glob-parent": { 1361 | "version": "5.1.2", 1362 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 1363 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 1364 | "dev": true, 1365 | "dependencies": { 1366 | "is-glob": "^4.0.1" 1367 | }, 1368 | "engines": { 1369 | "node": ">= 6" 1370 | } 1371 | }, 1372 | "node_modules/fast-json-stable-stringify": { 1373 | "version": "2.1.0", 1374 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 1375 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 1376 | "dev": true, 1377 | "peer": true 1378 | }, 1379 | "node_modules/fast-levenshtein": { 1380 | "version": "2.0.6", 1381 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 1382 | "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", 1383 | "dev": true, 1384 | "peer": true 1385 | }, 1386 | "node_modules/fast-redact": { 1387 | "version": "3.2.0", 1388 | "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.2.0.tgz", 1389 | "integrity": "sha512-zaTadChr+NekyzallAMXATXLOR8MNx3zqpZ0MUF2aGf4EathnG0f32VLODNlY8IuGY3HoRO2L6/6fSzNsLaHIw==", 1390 | "dev": true, 1391 | "engines": { 1392 | "node": ">=6" 1393 | } 1394 | }, 1395 | "node_modules/fastq": { 1396 | "version": "1.15.0", 1397 | "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", 1398 | "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", 1399 | "dev": true, 1400 | "dependencies": { 1401 | "reusify": "^1.0.4" 1402 | } 1403 | }, 1404 | "node_modules/file-entry-cache": { 1405 | "version": "6.0.1", 1406 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", 1407 | "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", 1408 | "dev": true, 1409 | "peer": true, 1410 | "dependencies": { 1411 | "flat-cache": "^3.0.4" 1412 | }, 1413 | "engines": { 1414 | "node": "^10.12.0 || >=12.0.0" 1415 | } 1416 | }, 1417 | "node_modules/fill-range": { 1418 | "version": "7.0.1", 1419 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 1420 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 1421 | "dev": true, 1422 | "dependencies": { 1423 | "to-regex-range": "^5.0.1" 1424 | }, 1425 | "engines": { 1426 | "node": ">=8" 1427 | } 1428 | }, 1429 | "node_modules/find-up": { 1430 | "version": "5.0.0", 1431 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 1432 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 1433 | "dev": true, 1434 | "peer": true, 1435 | "dependencies": { 1436 | "locate-path": "^6.0.0", 1437 | "path-exists": "^4.0.0" 1438 | }, 1439 | "engines": { 1440 | "node": ">=10" 1441 | }, 1442 | "funding": { 1443 | "url": "https://github.com/sponsors/sindresorhus" 1444 | } 1445 | }, 1446 | "node_modules/flat-cache": { 1447 | "version": "3.0.4", 1448 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", 1449 | "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", 1450 | "dev": true, 1451 | "peer": true, 1452 | "dependencies": { 1453 | "flatted": "^3.1.0", 1454 | "rimraf": "^3.0.2" 1455 | }, 1456 | "engines": { 1457 | "node": "^10.12.0 || >=12.0.0" 1458 | } 1459 | }, 1460 | "node_modules/flatted": { 1461 | "version": "3.2.7", 1462 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", 1463 | "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", 1464 | "dev": true, 1465 | "peer": true 1466 | }, 1467 | "node_modules/fs.realpath": { 1468 | "version": "1.0.0", 1469 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1470 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", 1471 | "dev": true, 1472 | "peer": true 1473 | }, 1474 | "node_modules/functional-red-black-tree": { 1475 | "version": "1.0.1", 1476 | "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", 1477 | "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", 1478 | "dev": true 1479 | }, 1480 | "node_modules/glob": { 1481 | "version": "7.2.3", 1482 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 1483 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 1484 | "dev": true, 1485 | "peer": true, 1486 | "dependencies": { 1487 | "fs.realpath": "^1.0.0", 1488 | "inflight": "^1.0.4", 1489 | "inherits": "2", 1490 | "minimatch": "^3.1.1", 1491 | "once": "^1.3.0", 1492 | "path-is-absolute": "^1.0.0" 1493 | }, 1494 | "engines": { 1495 | "node": "*" 1496 | }, 1497 | "funding": { 1498 | "url": "https://github.com/sponsors/isaacs" 1499 | } 1500 | }, 1501 | "node_modules/glob-parent": { 1502 | "version": "6.0.2", 1503 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", 1504 | "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", 1505 | "dev": true, 1506 | "peer": true, 1507 | "dependencies": { 1508 | "is-glob": "^4.0.3" 1509 | }, 1510 | "engines": { 1511 | "node": ">=10.13.0" 1512 | } 1513 | }, 1514 | "node_modules/globals": { 1515 | "version": "13.20.0", 1516 | "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", 1517 | "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", 1518 | "dev": true, 1519 | "peer": true, 1520 | "dependencies": { 1521 | "type-fest": "^0.20.2" 1522 | }, 1523 | "engines": { 1524 | "node": ">=8" 1525 | }, 1526 | "funding": { 1527 | "url": "https://github.com/sponsors/sindresorhus" 1528 | } 1529 | }, 1530 | "node_modules/globby": { 1531 | "version": "11.1.0", 1532 | "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", 1533 | "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", 1534 | "dev": true, 1535 | "dependencies": { 1536 | "array-union": "^2.1.0", 1537 | "dir-glob": "^3.0.1", 1538 | "fast-glob": "^3.2.9", 1539 | "ignore": "^5.2.0", 1540 | "merge2": "^1.4.1", 1541 | "slash": "^3.0.0" 1542 | }, 1543 | "engines": { 1544 | "node": ">=10" 1545 | }, 1546 | "funding": { 1547 | "url": "https://github.com/sponsors/sindresorhus" 1548 | } 1549 | }, 1550 | "node_modules/gm": { 1551 | "version": "1.25.0", 1552 | "resolved": "https://registry.npmjs.org/gm/-/gm-1.25.0.tgz", 1553 | "integrity": "sha512-4kKdWXTtgQ4biIo7hZA396HT062nDVVHPjQcurNZ3o/voYN+o5FUC5kOwuORbpExp3XbTJ3SU7iRipiIhQtovw==", 1554 | "dev": true, 1555 | "dependencies": { 1556 | "array-parallel": "~0.1.3", 1557 | "array-series": "~0.1.5", 1558 | "cross-spawn": "^4.0.0", 1559 | "debug": "^3.1.0" 1560 | }, 1561 | "engines": { 1562 | "node": ">=14" 1563 | } 1564 | }, 1565 | "node_modules/gm/node_modules/cross-spawn": { 1566 | "version": "4.0.2", 1567 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-4.0.2.tgz", 1568 | "integrity": "sha512-yAXz/pA1tD8Gtg2S98Ekf/sewp3Lcp3YoFKJ4Hkp5h5yLWnKVTDU0kwjKJ8NDCYcfTLfyGkzTikst+jWypT1iA==", 1569 | "dev": true, 1570 | "dependencies": { 1571 | "lru-cache": "^4.0.1", 1572 | "which": "^1.2.9" 1573 | } 1574 | }, 1575 | "node_modules/gm/node_modules/debug": { 1576 | "version": "3.2.7", 1577 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", 1578 | "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", 1579 | "dev": true, 1580 | "dependencies": { 1581 | "ms": "^2.1.1" 1582 | } 1583 | }, 1584 | "node_modules/gm/node_modules/lru-cache": { 1585 | "version": "4.1.5", 1586 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", 1587 | "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", 1588 | "dev": true, 1589 | "dependencies": { 1590 | "pseudomap": "^1.0.2", 1591 | "yallist": "^2.1.2" 1592 | } 1593 | }, 1594 | "node_modules/gm/node_modules/which": { 1595 | "version": "1.3.1", 1596 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", 1597 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", 1598 | "dev": true, 1599 | "dependencies": { 1600 | "isexe": "^2.0.0" 1601 | }, 1602 | "bin": { 1603 | "which": "bin/which" 1604 | } 1605 | }, 1606 | "node_modules/gm/node_modules/yallist": { 1607 | "version": "2.1.2", 1608 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", 1609 | "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==", 1610 | "dev": true 1611 | }, 1612 | "node_modules/graphemer": { 1613 | "version": "1.4.0", 1614 | "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", 1615 | "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", 1616 | "dev": true, 1617 | "peer": true 1618 | }, 1619 | "node_modules/has-flag": { 1620 | "version": "4.0.0", 1621 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1622 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1623 | "dev": true, 1624 | "peer": true, 1625 | "engines": { 1626 | "node": ">=8" 1627 | } 1628 | }, 1629 | "node_modules/ieee754": { 1630 | "version": "1.2.1", 1631 | "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", 1632 | "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", 1633 | "dev": true, 1634 | "funding": [ 1635 | { 1636 | "type": "github", 1637 | "url": "https://github.com/sponsors/feross" 1638 | }, 1639 | { 1640 | "type": "patreon", 1641 | "url": "https://www.patreon.com/feross" 1642 | }, 1643 | { 1644 | "type": "consulting", 1645 | "url": "https://feross.org/support" 1646 | } 1647 | ] 1648 | }, 1649 | "node_modules/ignore": { 1650 | "version": "5.2.4", 1651 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", 1652 | "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", 1653 | "dev": true, 1654 | "engines": { 1655 | "node": ">= 4" 1656 | } 1657 | }, 1658 | "node_modules/import-fresh": { 1659 | "version": "3.3.0", 1660 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", 1661 | "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", 1662 | "dev": true, 1663 | "peer": true, 1664 | "dependencies": { 1665 | "parent-module": "^1.0.0", 1666 | "resolve-from": "^4.0.0" 1667 | }, 1668 | "engines": { 1669 | "node": ">=6" 1670 | }, 1671 | "funding": { 1672 | "url": "https://github.com/sponsors/sindresorhus" 1673 | } 1674 | }, 1675 | "node_modules/imurmurhash": { 1676 | "version": "0.1.4", 1677 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 1678 | "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", 1679 | "dev": true, 1680 | "peer": true, 1681 | "engines": { 1682 | "node": ">=0.8.19" 1683 | } 1684 | }, 1685 | "node_modules/inflight": { 1686 | "version": "1.0.6", 1687 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1688 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 1689 | "dev": true, 1690 | "peer": true, 1691 | "dependencies": { 1692 | "once": "^1.3.0", 1693 | "wrappy": "1" 1694 | } 1695 | }, 1696 | "node_modules/inherits": { 1697 | "version": "2.0.4", 1698 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1699 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1700 | "dev": true, 1701 | "peer": true 1702 | }, 1703 | "node_modules/is-extglob": { 1704 | "version": "2.1.1", 1705 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1706 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 1707 | "dev": true, 1708 | "engines": { 1709 | "node": ">=0.10.0" 1710 | } 1711 | }, 1712 | "node_modules/is-glob": { 1713 | "version": "4.0.3", 1714 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 1715 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1716 | "dev": true, 1717 | "dependencies": { 1718 | "is-extglob": "^2.1.1" 1719 | }, 1720 | "engines": { 1721 | "node": ">=0.10.0" 1722 | } 1723 | }, 1724 | "node_modules/is-number": { 1725 | "version": "7.0.0", 1726 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1727 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1728 | "dev": true, 1729 | "engines": { 1730 | "node": ">=0.12.0" 1731 | } 1732 | }, 1733 | "node_modules/is-path-inside": { 1734 | "version": "3.0.3", 1735 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", 1736 | "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", 1737 | "dev": true, 1738 | "peer": true, 1739 | "engines": { 1740 | "node": ">=8" 1741 | } 1742 | }, 1743 | "node_modules/isexe": { 1744 | "version": "2.0.0", 1745 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1746 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 1747 | "dev": true 1748 | }, 1749 | "node_modules/js-yaml": { 1750 | "version": "4.1.0", 1751 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 1752 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 1753 | "dev": true, 1754 | "peer": true, 1755 | "dependencies": { 1756 | "argparse": "^2.0.1" 1757 | }, 1758 | "bin": { 1759 | "js-yaml": "bin/js-yaml.js" 1760 | } 1761 | }, 1762 | "node_modules/json-schema-traverse": { 1763 | "version": "0.4.1", 1764 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 1765 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 1766 | "dev": true, 1767 | "peer": true 1768 | }, 1769 | "node_modules/json-stable-stringify-without-jsonify": { 1770 | "version": "1.0.1", 1771 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", 1772 | "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", 1773 | "dev": true, 1774 | "peer": true 1775 | }, 1776 | "node_modules/levn": { 1777 | "version": "0.4.1", 1778 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", 1779 | "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", 1780 | "dev": true, 1781 | "peer": true, 1782 | "dependencies": { 1783 | "prelude-ls": "^1.2.1", 1784 | "type-check": "~0.4.0" 1785 | }, 1786 | "engines": { 1787 | "node": ">= 0.8.0" 1788 | } 1789 | }, 1790 | "node_modules/locate-path": { 1791 | "version": "6.0.0", 1792 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 1793 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 1794 | "dev": true, 1795 | "peer": true, 1796 | "dependencies": { 1797 | "p-locate": "^5.0.0" 1798 | }, 1799 | "engines": { 1800 | "node": ">=10" 1801 | }, 1802 | "funding": { 1803 | "url": "https://github.com/sponsors/sindresorhus" 1804 | } 1805 | }, 1806 | "node_modules/lodash.merge": { 1807 | "version": "4.6.2", 1808 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", 1809 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", 1810 | "dev": true, 1811 | "peer": true 1812 | }, 1813 | "node_modules/lru-cache": { 1814 | "version": "6.0.0", 1815 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 1816 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 1817 | "dev": true, 1818 | "dependencies": { 1819 | "yallist": "^4.0.0" 1820 | }, 1821 | "engines": { 1822 | "node": ">=10" 1823 | } 1824 | }, 1825 | "node_modules/merge2": { 1826 | "version": "1.4.1", 1827 | "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", 1828 | "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", 1829 | "dev": true, 1830 | "engines": { 1831 | "node": ">= 8" 1832 | } 1833 | }, 1834 | "node_modules/micromatch": { 1835 | "version": "4.0.5", 1836 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", 1837 | "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", 1838 | "dev": true, 1839 | "dependencies": { 1840 | "braces": "^3.0.2", 1841 | "picomatch": "^2.3.1" 1842 | }, 1843 | "engines": { 1844 | "node": ">=8.6" 1845 | } 1846 | }, 1847 | "node_modules/minimatch": { 1848 | "version": "3.1.2", 1849 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1850 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1851 | "dev": true, 1852 | "peer": true, 1853 | "dependencies": { 1854 | "brace-expansion": "^1.1.7" 1855 | }, 1856 | "engines": { 1857 | "node": "*" 1858 | } 1859 | }, 1860 | "node_modules/moment": { 1861 | "version": "2.29.4", 1862 | "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", 1863 | "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", 1864 | "dev": true, 1865 | "engines": { 1866 | "node": "*" 1867 | } 1868 | }, 1869 | "node_modules/ms": { 1870 | "version": "2.1.2", 1871 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1872 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1873 | "dev": true 1874 | }, 1875 | "node_modules/natural-compare": { 1876 | "version": "1.4.0", 1877 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 1878 | "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", 1879 | "dev": true, 1880 | "peer": true 1881 | }, 1882 | "node_modules/obsidian": { 1883 | "version": "1.2.8", 1884 | "resolved": "https://registry.npmjs.org/obsidian/-/obsidian-1.2.8.tgz", 1885 | "integrity": "sha512-HrC+feA8o0tXspj4lEAqxb1btwLwHD2oHXSwbbN+CdRHURqbCkuIDLld+nkuyJ1w1c9uvVDRVk8BoeOnWheOrQ==", 1886 | "dev": true, 1887 | "dependencies": { 1888 | "@types/codemirror": "0.0.108", 1889 | "moment": "2.29.4" 1890 | }, 1891 | "peerDependencies": { 1892 | "@codemirror/state": "^6.0.0", 1893 | "@codemirror/view": "^6.0.0" 1894 | } 1895 | }, 1896 | "node_modules/obsidian/node_modules/@types/codemirror": { 1897 | "version": "0.0.108", 1898 | "resolved": "https://registry.npmjs.org/@types/codemirror/-/codemirror-0.0.108.tgz", 1899 | "integrity": "sha512-3FGFcus0P7C2UOGCNUVENqObEb4SFk+S8Dnxq7K6aIsLVs/vDtlangl3PEO0ykaKXyK56swVF6Nho7VsA44uhw==", 1900 | "dev": true, 1901 | "dependencies": { 1902 | "@types/tern": "*" 1903 | } 1904 | }, 1905 | "node_modules/on-exit-leak-free": { 1906 | "version": "2.1.0", 1907 | "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.0.tgz", 1908 | "integrity": "sha512-VuCaZZAjReZ3vUwgOB8LxAosIurDiAW0s13rI1YwmaP++jvcxP77AWoQvenZebpCA2m8WC1/EosPYPMjnRAp/w==", 1909 | "dev": true 1910 | }, 1911 | "node_modules/once": { 1912 | "version": "1.4.0", 1913 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1914 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 1915 | "dev": true, 1916 | "peer": true, 1917 | "dependencies": { 1918 | "wrappy": "1" 1919 | } 1920 | }, 1921 | "node_modules/optionator": { 1922 | "version": "0.9.1", 1923 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", 1924 | "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", 1925 | "dev": true, 1926 | "peer": true, 1927 | "dependencies": { 1928 | "deep-is": "^0.1.3", 1929 | "fast-levenshtein": "^2.0.6", 1930 | "levn": "^0.4.1", 1931 | "prelude-ls": "^1.2.1", 1932 | "type-check": "^0.4.0", 1933 | "word-wrap": "^1.2.3" 1934 | }, 1935 | "engines": { 1936 | "node": ">= 0.8.0" 1937 | } 1938 | }, 1939 | "node_modules/p-limit": { 1940 | "version": "3.1.0", 1941 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 1942 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 1943 | "dev": true, 1944 | "peer": true, 1945 | "dependencies": { 1946 | "yocto-queue": "^0.1.0" 1947 | }, 1948 | "engines": { 1949 | "node": ">=10" 1950 | }, 1951 | "funding": { 1952 | "url": "https://github.com/sponsors/sindresorhus" 1953 | } 1954 | }, 1955 | "node_modules/p-locate": { 1956 | "version": "5.0.0", 1957 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 1958 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 1959 | "dev": true, 1960 | "peer": true, 1961 | "dependencies": { 1962 | "p-limit": "^3.0.2" 1963 | }, 1964 | "engines": { 1965 | "node": ">=10" 1966 | }, 1967 | "funding": { 1968 | "url": "https://github.com/sponsors/sindresorhus" 1969 | } 1970 | }, 1971 | "node_modules/parent-module": { 1972 | "version": "1.0.1", 1973 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 1974 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 1975 | "dev": true, 1976 | "peer": true, 1977 | "dependencies": { 1978 | "callsites": "^3.0.0" 1979 | }, 1980 | "engines": { 1981 | "node": ">=6" 1982 | } 1983 | }, 1984 | "node_modules/path-exists": { 1985 | "version": "4.0.0", 1986 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 1987 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 1988 | "dev": true, 1989 | "peer": true, 1990 | "engines": { 1991 | "node": ">=8" 1992 | } 1993 | }, 1994 | "node_modules/path-is-absolute": { 1995 | "version": "1.0.1", 1996 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1997 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 1998 | "dev": true, 1999 | "peer": true, 2000 | "engines": { 2001 | "node": ">=0.10.0" 2002 | } 2003 | }, 2004 | "node_modules/path-key": { 2005 | "version": "3.1.1", 2006 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 2007 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 2008 | "dev": true, 2009 | "peer": true, 2010 | "engines": { 2011 | "node": ">=8" 2012 | } 2013 | }, 2014 | "node_modules/path-type": { 2015 | "version": "4.0.0", 2016 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", 2017 | "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", 2018 | "dev": true, 2019 | "engines": { 2020 | "node": ">=8" 2021 | } 2022 | }, 2023 | "node_modules/picomatch": { 2024 | "version": "2.3.1", 2025 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 2026 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 2027 | "dev": true, 2028 | "engines": { 2029 | "node": ">=8.6" 2030 | }, 2031 | "funding": { 2032 | "url": "https://github.com/sponsors/jonschlinkert" 2033 | } 2034 | }, 2035 | "node_modules/pino": { 2036 | "version": "8.14.1", 2037 | "resolved": "https://registry.npmjs.org/pino/-/pino-8.14.1.tgz", 2038 | "integrity": "sha512-8LYNv7BKWXSfS+k6oEc6occy5La+q2sPwU3q2ljTX5AZk7v+5kND2o5W794FyRaqha6DJajmkNRsWtPpFyMUdw==", 2039 | "dev": true, 2040 | "dependencies": { 2041 | "atomic-sleep": "^1.0.0", 2042 | "fast-redact": "^3.1.1", 2043 | "on-exit-leak-free": "^2.1.0", 2044 | "pino-abstract-transport": "v1.0.0", 2045 | "pino-std-serializers": "^6.0.0", 2046 | "process-warning": "^2.0.0", 2047 | "quick-format-unescaped": "^4.0.3", 2048 | "real-require": "^0.2.0", 2049 | "safe-stable-stringify": "^2.3.1", 2050 | "sonic-boom": "^3.1.0", 2051 | "thread-stream": "^2.0.0" 2052 | }, 2053 | "bin": { 2054 | "pino": "bin.js" 2055 | } 2056 | }, 2057 | "node_modules/pino-abstract-transport": { 2058 | "version": "1.0.0", 2059 | "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.0.0.tgz", 2060 | "integrity": "sha512-c7vo5OpW4wIS42hUVcT5REsL8ZljsUfBjqV/e2sFxmFEFZiq1XLUp5EYLtuDH6PEHq9W1egWqRbnLUP5FuZmOA==", 2061 | "dev": true, 2062 | "dependencies": { 2063 | "readable-stream": "^4.0.0", 2064 | "split2": "^4.0.0" 2065 | } 2066 | }, 2067 | "node_modules/pino-abstract-transport/node_modules/buffer": { 2068 | "version": "6.0.3", 2069 | "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", 2070 | "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", 2071 | "dev": true, 2072 | "funding": [ 2073 | { 2074 | "type": "github", 2075 | "url": "https://github.com/sponsors/feross" 2076 | }, 2077 | { 2078 | "type": "patreon", 2079 | "url": "https://www.patreon.com/feross" 2080 | }, 2081 | { 2082 | "type": "consulting", 2083 | "url": "https://feross.org/support" 2084 | } 2085 | ], 2086 | "dependencies": { 2087 | "base64-js": "^1.3.1", 2088 | "ieee754": "^1.2.1" 2089 | } 2090 | }, 2091 | "node_modules/pino-abstract-transport/node_modules/readable-stream": { 2092 | "version": "4.4.0", 2093 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.4.0.tgz", 2094 | "integrity": "sha512-kDMOq0qLtxV9f/SQv522h8cxZBqNZXuXNyjyezmfAAuribMyVXziljpQ/uQhfE1XLg2/TLTW2DsnoE4VAi/krg==", 2095 | "dev": true, 2096 | "dependencies": { 2097 | "abort-controller": "^3.0.0", 2098 | "buffer": "^6.0.3", 2099 | "events": "^3.3.0", 2100 | "process": "^0.11.10" 2101 | }, 2102 | "engines": { 2103 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 2104 | } 2105 | }, 2106 | "node_modules/pino-std-serializers": { 2107 | "version": "6.2.1", 2108 | "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-6.2.1.tgz", 2109 | "integrity": "sha512-wHuWB+CvSVb2XqXM0W/WOYUkVSPbiJb9S5fNB7TBhd8s892Xq910bRxwHtC4l71hgztObTjXL6ZheZXFjhDrDQ==", 2110 | "dev": true 2111 | }, 2112 | "node_modules/prelude-ls": { 2113 | "version": "1.2.1", 2114 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", 2115 | "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", 2116 | "dev": true, 2117 | "peer": true, 2118 | "engines": { 2119 | "node": ">= 0.8.0" 2120 | } 2121 | }, 2122 | "node_modules/process": { 2123 | "version": "0.11.10", 2124 | "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", 2125 | "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", 2126 | "dev": true, 2127 | "engines": { 2128 | "node": ">= 0.6.0" 2129 | } 2130 | }, 2131 | "node_modules/process-warning": { 2132 | "version": "2.2.0", 2133 | "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-2.2.0.tgz", 2134 | "integrity": "sha512-/1WZ8+VQjR6avWOgHeEPd7SDQmFQ1B5mC1eRXsCm5TarlNmx/wCsa5GEaxGm05BORRtyG/Ex/3xq3TuRvq57qg==", 2135 | "dev": true 2136 | }, 2137 | "node_modules/pseudomap": { 2138 | "version": "1.0.2", 2139 | "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", 2140 | "integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==", 2141 | "dev": true 2142 | }, 2143 | "node_modules/punycode": { 2144 | "version": "2.3.0", 2145 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", 2146 | "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", 2147 | "dev": true, 2148 | "peer": true, 2149 | "engines": { 2150 | "node": ">=6" 2151 | } 2152 | }, 2153 | "node_modules/queue-microtask": { 2154 | "version": "1.2.3", 2155 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", 2156 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", 2157 | "dev": true, 2158 | "funding": [ 2159 | { 2160 | "type": "github", 2161 | "url": "https://github.com/sponsors/feross" 2162 | }, 2163 | { 2164 | "type": "patreon", 2165 | "url": "https://www.patreon.com/feross" 2166 | }, 2167 | { 2168 | "type": "consulting", 2169 | "url": "https://feross.org/support" 2170 | } 2171 | ] 2172 | }, 2173 | "node_modules/quick-format-unescaped": { 2174 | "version": "4.0.4", 2175 | "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", 2176 | "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==", 2177 | "dev": true 2178 | }, 2179 | "node_modules/real-require": { 2180 | "version": "0.2.0", 2181 | "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz", 2182 | "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==", 2183 | "dev": true, 2184 | "engines": { 2185 | "node": ">= 12.13.0" 2186 | } 2187 | }, 2188 | "node_modules/regexpp": { 2189 | "version": "3.2.0", 2190 | "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", 2191 | "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", 2192 | "dev": true, 2193 | "engines": { 2194 | "node": ">=8" 2195 | }, 2196 | "funding": { 2197 | "url": "https://github.com/sponsors/mysticatea" 2198 | } 2199 | }, 2200 | "node_modules/resolve-from": { 2201 | "version": "4.0.0", 2202 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 2203 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 2204 | "dev": true, 2205 | "peer": true, 2206 | "engines": { 2207 | "node": ">=4" 2208 | } 2209 | }, 2210 | "node_modules/reusify": { 2211 | "version": "1.0.4", 2212 | "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", 2213 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", 2214 | "dev": true, 2215 | "engines": { 2216 | "iojs": ">=1.0.0", 2217 | "node": ">=0.10.0" 2218 | } 2219 | }, 2220 | "node_modules/rimraf": { 2221 | "version": "3.0.2", 2222 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", 2223 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", 2224 | "dev": true, 2225 | "peer": true, 2226 | "dependencies": { 2227 | "glob": "^7.1.3" 2228 | }, 2229 | "bin": { 2230 | "rimraf": "bin.js" 2231 | }, 2232 | "funding": { 2233 | "url": "https://github.com/sponsors/isaacs" 2234 | } 2235 | }, 2236 | "node_modules/run-parallel": { 2237 | "version": "1.2.0", 2238 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", 2239 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", 2240 | "dev": true, 2241 | "funding": [ 2242 | { 2243 | "type": "github", 2244 | "url": "https://github.com/sponsors/feross" 2245 | }, 2246 | { 2247 | "type": "patreon", 2248 | "url": "https://www.patreon.com/feross" 2249 | }, 2250 | { 2251 | "type": "consulting", 2252 | "url": "https://feross.org/support" 2253 | } 2254 | ], 2255 | "dependencies": { 2256 | "queue-microtask": "^1.2.2" 2257 | } 2258 | }, 2259 | "node_modules/safe-stable-stringify": { 2260 | "version": "2.4.3", 2261 | "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz", 2262 | "integrity": "sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==", 2263 | "dev": true, 2264 | "engines": { 2265 | "node": ">=10" 2266 | } 2267 | }, 2268 | "node_modules/semver": { 2269 | "version": "7.5.1", 2270 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", 2271 | "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", 2272 | "dev": true, 2273 | "dependencies": { 2274 | "lru-cache": "^6.0.0" 2275 | }, 2276 | "bin": { 2277 | "semver": "bin/semver.js" 2278 | }, 2279 | "engines": { 2280 | "node": ">=10" 2281 | } 2282 | }, 2283 | "node_modules/shebang-command": { 2284 | "version": "2.0.0", 2285 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 2286 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 2287 | "dev": true, 2288 | "peer": true, 2289 | "dependencies": { 2290 | "shebang-regex": "^3.0.0" 2291 | }, 2292 | "engines": { 2293 | "node": ">=8" 2294 | } 2295 | }, 2296 | "node_modules/shebang-regex": { 2297 | "version": "3.0.0", 2298 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 2299 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 2300 | "dev": true, 2301 | "peer": true, 2302 | "engines": { 2303 | "node": ">=8" 2304 | } 2305 | }, 2306 | "node_modules/slash": { 2307 | "version": "3.0.0", 2308 | "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", 2309 | "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", 2310 | "dev": true, 2311 | "engines": { 2312 | "node": ">=8" 2313 | } 2314 | }, 2315 | "node_modules/sonic-boom": { 2316 | "version": "3.3.0", 2317 | "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.3.0.tgz", 2318 | "integrity": "sha512-LYxp34KlZ1a2Jb8ZQgFCK3niIHzibdwtwNUWKg0qQRzsDoJ3Gfgkf8KdBTFU3SkejDEIlWwnSnpVdOZIhFMl/g==", 2319 | "dev": true, 2320 | "dependencies": { 2321 | "atomic-sleep": "^1.0.0" 2322 | } 2323 | }, 2324 | "node_modules/split2": { 2325 | "version": "4.2.0", 2326 | "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", 2327 | "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", 2328 | "dev": true, 2329 | "engines": { 2330 | "node": ">= 10.x" 2331 | } 2332 | }, 2333 | "node_modules/strip-ansi": { 2334 | "version": "6.0.1", 2335 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2336 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2337 | "dev": true, 2338 | "peer": true, 2339 | "dependencies": { 2340 | "ansi-regex": "^5.0.1" 2341 | }, 2342 | "engines": { 2343 | "node": ">=8" 2344 | } 2345 | }, 2346 | "node_modules/strip-json-comments": { 2347 | "version": "3.1.1", 2348 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 2349 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 2350 | "dev": true, 2351 | "peer": true, 2352 | "engines": { 2353 | "node": ">=8" 2354 | }, 2355 | "funding": { 2356 | "url": "https://github.com/sponsors/sindresorhus" 2357 | } 2358 | }, 2359 | "node_modules/style-mod": { 2360 | "version": "4.0.3", 2361 | "resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.0.3.tgz", 2362 | "integrity": "sha512-78Jv8kYJdjbvRwwijtCevYADfsI0lGzYJe4mMFdceO8l75DFFDoqBhR1jVDicDRRaX4//g1u9wKeo+ztc2h1Rw==", 2363 | "dev": true, 2364 | "peer": true 2365 | }, 2366 | "node_modules/supports-color": { 2367 | "version": "7.2.0", 2368 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 2369 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 2370 | "dev": true, 2371 | "peer": true, 2372 | "dependencies": { 2373 | "has-flag": "^4.0.0" 2374 | }, 2375 | "engines": { 2376 | "node": ">=8" 2377 | } 2378 | }, 2379 | "node_modules/text-table": { 2380 | "version": "0.2.0", 2381 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", 2382 | "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", 2383 | "dev": true, 2384 | "peer": true 2385 | }, 2386 | "node_modules/thread-stream": { 2387 | "version": "2.3.0", 2388 | "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.3.0.tgz", 2389 | "integrity": "sha512-kaDqm1DET9pp3NXwR8382WHbnpXnRkN9xGN9dQt3B2+dmXiW8X1SOwmFOxAErEQ47ObhZ96J6yhZNXuyCOL7KA==", 2390 | "dev": true, 2391 | "dependencies": { 2392 | "real-require": "^0.2.0" 2393 | } 2394 | }, 2395 | "node_modules/to-regex-range": { 2396 | "version": "5.0.1", 2397 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 2398 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 2399 | "dev": true, 2400 | "dependencies": { 2401 | "is-number": "^7.0.0" 2402 | }, 2403 | "engines": { 2404 | "node": ">=8.0" 2405 | } 2406 | }, 2407 | "node_modules/tslib": { 2408 | "version": "2.4.0", 2409 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", 2410 | "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", 2411 | "dev": true 2412 | }, 2413 | "node_modules/tsutils": { 2414 | "version": "3.21.0", 2415 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", 2416 | "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", 2417 | "dev": true, 2418 | "dependencies": { 2419 | "tslib": "^1.8.1" 2420 | }, 2421 | "engines": { 2422 | "node": ">= 6" 2423 | }, 2424 | "peerDependencies": { 2425 | "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" 2426 | } 2427 | }, 2428 | "node_modules/tsutils/node_modules/tslib": { 2429 | "version": "1.14.1", 2430 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 2431 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", 2432 | "dev": true 2433 | }, 2434 | "node_modules/type-check": { 2435 | "version": "0.4.0", 2436 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", 2437 | "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", 2438 | "dev": true, 2439 | "peer": true, 2440 | "dependencies": { 2441 | "prelude-ls": "^1.2.1" 2442 | }, 2443 | "engines": { 2444 | "node": ">= 0.8.0" 2445 | } 2446 | }, 2447 | "node_modules/type-fest": { 2448 | "version": "0.20.2", 2449 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", 2450 | "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", 2451 | "dev": true, 2452 | "peer": true, 2453 | "engines": { 2454 | "node": ">=10" 2455 | }, 2456 | "funding": { 2457 | "url": "https://github.com/sponsors/sindresorhus" 2458 | } 2459 | }, 2460 | "node_modules/typescript": { 2461 | "version": "4.7.4", 2462 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", 2463 | "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", 2464 | "dev": true, 2465 | "bin": { 2466 | "tsc": "bin/tsc", 2467 | "tsserver": "bin/tsserver" 2468 | }, 2469 | "engines": { 2470 | "node": ">=4.2.0" 2471 | } 2472 | }, 2473 | "node_modules/uri-js": { 2474 | "version": "4.4.1", 2475 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 2476 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 2477 | "dev": true, 2478 | "peer": true, 2479 | "dependencies": { 2480 | "punycode": "^2.1.0" 2481 | } 2482 | }, 2483 | "node_modules/w3c-keyname": { 2484 | "version": "2.2.7", 2485 | "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.7.tgz", 2486 | "integrity": "sha512-XB8aa62d4rrVfoZYQaYNy3fy+z4nrfy2ooea3/0BnBzXW0tSdZ+lRgjzBZhk0La0H6h8fVyYCxx/qkQcAIuvfg==", 2487 | "dev": true, 2488 | "peer": true 2489 | }, 2490 | "node_modules/which": { 2491 | "version": "2.0.2", 2492 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 2493 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 2494 | "dev": true, 2495 | "peer": true, 2496 | "dependencies": { 2497 | "isexe": "^2.0.0" 2498 | }, 2499 | "bin": { 2500 | "node-which": "bin/node-which" 2501 | }, 2502 | "engines": { 2503 | "node": ">= 8" 2504 | } 2505 | }, 2506 | "node_modules/word-wrap": { 2507 | "version": "1.2.3", 2508 | "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", 2509 | "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", 2510 | "dev": true, 2511 | "peer": true, 2512 | "engines": { 2513 | "node": ">=0.10.0" 2514 | } 2515 | }, 2516 | "node_modules/wrappy": { 2517 | "version": "1.0.2", 2518 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2519 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 2520 | "dev": true, 2521 | "peer": true 2522 | }, 2523 | "node_modules/yallist": { 2524 | "version": "4.0.0", 2525 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 2526 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", 2527 | "dev": true 2528 | }, 2529 | "node_modules/yocto-queue": { 2530 | "version": "0.1.0", 2531 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 2532 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 2533 | "dev": true, 2534 | "peer": true, 2535 | "engines": { 2536 | "node": ">=10" 2537 | }, 2538 | "funding": { 2539 | "url": "https://github.com/sponsors/sindresorhus" 2540 | } 2541 | } 2542 | } 2543 | } 2544 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "obsidiosaurus", 3 | "version": "1.0.0", 4 | "description": "Obsidian to Docusaurus Converter Plugin", 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 | "Docusaurus", 13 | "Converter", 14 | "Obsidian.md" 15 | ], 16 | "author": "CIMSTA", 17 | "license": "MIT", 18 | "devDependencies": { 19 | "@types/codemirror": "^5.60.7", 20 | "@types/gm": "^1.25.1", 21 | "@types/node": "^16.11.6", 22 | "@typescript-eslint/eslint-plugin": "5.29.0", 23 | "@typescript-eslint/parser": "5.29.0", 24 | "builtin-modules": "3.3.0", 25 | "esbuild": "0.17.3", 26 | "gm": "^1.25.0", 27 | "obsidian": "latest", 28 | "pino": "^8.14.1", 29 | "tslib": "2.4.0", 30 | "typescript": "4.7.4" 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/mainProcessor.ts: -------------------------------------------------------------------------------- 1 | import { MainFolder, SourceFileInfo, FilesToProcess, Asset } from "./types"; 2 | import processMarkdown from "./markdownProcessor"; 3 | import { Notice } from "obsidian"; 4 | import { logger } from "main"; 5 | import { config } from "config"; 6 | import * as fs from "fs"; 7 | import * as path from "path"; 8 | import util from "util"; 9 | 10 | //////////////////////////////////////////////////////////////// 11 | // MAIN 12 | //////////////////////////////////////////////////////////////// 13 | 14 | export default async function obsidiosaurusProcess( 15 | basePath: string 16 | ): Promise { 17 | // Docusaurus and Obsidian Vault paths 18 | const websitePath = path.join(basePath, "website"); 19 | const vaultPath = path.join(basePath, "vault"); 20 | 21 | // Get the main folders of the vault e.g. docs, assets, .. 22 | const mainFolders = getMainfolders(vaultPath); 23 | mainFolders.forEach((folder) => processSingleFolder(folder, vaultPath)); 24 | 25 | // Log folder structure when in debug mode 26 | if (config.debug) { 27 | logger.info( 28 | "📁 Folder structure with Files: %s", 29 | JSON.stringify(mainFolders) 30 | ); 31 | } 32 | 33 | // Get all the file info from the main folders and separate assets from other files 34 | const allInfo = mainFolders.flatMap((folder) => 35 | folder.files.map((file) => 36 | getSourceFileInfo(basePath, folder, file, vaultPath) 37 | ) 38 | ); 39 | const allSourceFilesInfo: Partial[] = allInfo.filter( 40 | (info) => info.type !== "assets" 41 | ); 42 | const allSourceAssetsInfo: Partial[] = allInfo.filter( 43 | (info) => info.type === "assets" 44 | ); 45 | 46 | // Initialize or read the targetJson and assetJson 47 | let targetJson: SourceFileInfo[] = await initializeJsonFile( 48 | path.join(basePath, "allFilesInfo.json") 49 | ); 50 | let assetJson = await initializeJsonFile( 51 | path.join(basePath, "assetInfo.json") 52 | ); 53 | 54 | // Verify existence of files in target.json and remove if not present 55 | targetJson = await checkFilesExistence(targetJson); 56 | 57 | // Check if source files are newer or missing in vault and prepare for deletion 58 | const filesToDelete = await getFilesToDelete( 59 | allSourceFilesInfo, 60 | targetJson 61 | ); 62 | 63 | // Process deletion of files and assets 64 | await deleteFiles(filesToDelete, targetJson, basePath); 65 | await removeAssetReferences(filesToDelete, assetJson, websitePath); 66 | 67 | // Write files and assets info to their respective JSON files 68 | targetJson = await writeJsonToFile( 69 | path.join(basePath, "allFilesInfo.json"), 70 | targetJson 71 | ); 72 | await writeJsonToFile( 73 | path.join(basePath, "allSourceAssetsInfo.json"), 74 | allSourceAssetsInfo 75 | ); 76 | 77 | // Compare source and target files to determine which ones to process 78 | const filesToProcess = await compareSource(allSourceFilesInfo, targetJson); 79 | 80 | // Process markdown conversion if there are files to process 81 | if (filesToProcess.length > 0) { 82 | new Notice(`⚙ Processing ${filesToProcess.length} Files`); 83 | 84 | // Get the indices of files to process and filter them from source files 85 | const filesToProcessIndices = filesToProcess.map((file) => file.index); 86 | const filesToMarkdownProcess = allSourceFilesInfo.filter((_, index) => 87 | filesToProcessIndices.includes(index) 88 | ); 89 | 90 | // Start the actual Markdown conversion and copy to Docusaurus folder 91 | await copyMarkdownFilesToTarget( 92 | filesToMarkdownProcess, 93 | basePath, 94 | targetJson, 95 | assetJson 96 | ); 97 | 98 | // Write new allFilesInfo -> Used to compare for next run 99 | await writeJsonToFile( 100 | path.join(basePath, "allFilesInfo.json"), 101 | targetJson 102 | ); 103 | } else { 104 | new Notice(`💤 Nothing to process`); 105 | } 106 | 107 | augmentPathForMacOS(); 108 | 109 | // Find all assets that need to be processed and perform the conversion 110 | const assetsToProcess = await getAssetsToProcess(assetJson, websitePath); 111 | new Notice(`⚙ Processing ${assetsToProcess.length} Assets`); 112 | if (assetsToProcess.length > 0) { 113 | await copyAssetFilesToTarget( 114 | vaultPath, 115 | websitePath, 116 | assetJson, 117 | assetsToProcess 118 | ); 119 | } 120 | 121 | // Delete unused markdown files from Docusaurus 122 | deleteUnusedFiles(targetJson, websitePath); 123 | 124 | logger.info("✅ Obsidiosaurus run successfully"); 125 | new Notice("✅ Obsidiosaurus run successfully"); 126 | 127 | return true; 128 | } 129 | 130 | //////////////////////////////////////////////////////////////// 131 | // UTILS 132 | //////////////////////////////////////////////////////////////// 133 | 134 | /** 135 | * Initializes a JSON file with default content if the file does not exist. 136 | * Reads the file content and returns it as JSON if the file exists. 137 | * 138 | * @param {string} filePath - The path to the JSON file. 139 | * @param {string} defaultContent - The default content to initialize the file with. 140 | * @returns {Promise} A promise that resolves with the content of the JSON file as an array. 141 | */ 142 | async function initializeJsonFile( 143 | filePath: string, 144 | defaultContent: string = "[]" 145 | ) { 146 | let jsonContent = []; 147 | try { 148 | jsonContent = JSON.parse(await fs.promises.readFile(filePath, "utf-8")); 149 | } catch (error) { 150 | if (error.code === "ENOENT") { 151 | await fs.promises.writeFile(filePath, defaultContent); 152 | console.log(`Created ${filePath}`); 153 | } else { 154 | console.error(`Error reading file: ${filePath}`, error); 155 | } 156 | } 157 | return jsonContent; 158 | } 159 | 160 | /** 161 | * Writes JSON content to a file and then reads the file content and returns it as JSON. 162 | * 163 | * @param {string} filePath - The path to the JSON file. 164 | * @param {any} content - The content to be written to the file. 165 | * @returns {Promise} A promise that resolves with the content of the JSON file. 166 | */ 167 | async function writeJsonToFile(filePath: string, content: any) { 168 | await fs.promises.writeFile(filePath, JSON.stringify(content, null, 2)); 169 | return JSON.parse(await fs.promises.readFile(filePath, "utf-8")); 170 | } 171 | 172 | /** 173 | * Augments the Obsidian PATH environment variable for macOS to include the Homebrew path if it's not already included. 174 | */ 175 | function augmentPathForMacOS() { 176 | const os = require("os"); 177 | 178 | if (config.debug) { 179 | logger.info(`🗺️ Current Obsidian ENV PATH: ${process.env.PATH}`); 180 | } 181 | 182 | if (os.platform() === "darwin") { 183 | // Add paths for homebrew on Apple Silicion and Intel 184 | const homebrewPath = "/opt/homebrew/bin:/usr/local/bin/brew"; 185 | //@ts-ignore 186 | if (!process.env.PATH.includes(homebrewPath)) { 187 | process.env.PATH = homebrewPath + ":" + process.env.PATH; 188 | if (config.debug) { 189 | logger.info(`🗺️ New ENV PATH: ${process.env.PATH}`); 190 | } 191 | } 192 | } 193 | } 194 | 195 | //////////////////////////////////////////////////////////////// 196 | // FOLDERS 197 | //////////////////////////////////////////////////////////////// 198 | 199 | function getMainfolders(folderPath: string): MainFolder[] { 200 | const folders: MainFolder[] = []; 201 | const absoluteFolderPath = path.resolve(folderPath); 202 | 203 | if (config.debug) { 204 | logger.info("📁 Processing path: %s", absoluteFolderPath); 205 | } 206 | 207 | const objects = fs.readdirSync(absoluteFolderPath); 208 | if (config.debug) { 209 | logger.info("📂 Found files: %o", objects); 210 | } 211 | objects.forEach((object) => { 212 | const filePath = path.join(absoluteFolderPath, object); 213 | const stats = fs.statSync(filePath); 214 | 215 | if (stats.isDirectory()) { 216 | let type: string | undefined; 217 | if (object.endsWith("__blog")) { 218 | type = "blogMulti"; 219 | } else if (object.includes("blog")) { 220 | type = "blog"; 221 | } else if (object.includes("docs")) { 222 | type = "docs"; 223 | } else if (object.includes(config.obsidianAssetSubfolderName)) { 224 | type = "assets"; 225 | } else { 226 | type = "ignore"; 227 | } 228 | 229 | if (type !== "ignore" && type !== undefined) { 230 | const folderObject: MainFolder = { 231 | name: object, 232 | type: type, 233 | files: [], 234 | }; 235 | folders.push(folderObject); 236 | } 237 | 238 | if (config.debug) { 239 | logger.info("🔍 File: %s, Type: %s", object, type); 240 | } 241 | } 242 | }); 243 | 244 | if (config.debug) { 245 | logger.info("📤 Returning folders: %o", folders); 246 | } 247 | return folders; 248 | } 249 | 250 | function searchFilesInFolder(directory: string): string[] { 251 | let results: string[] = []; 252 | let skipFiles = ".DS_Store"; 253 | const files = fs.readdirSync(directory); 254 | 255 | files.forEach((file) => { 256 | if (skipFiles.includes(file)) { 257 | if (config.debug) { 258 | logger.info(`⏭️ Skipped ${file}`); 259 | } 260 | return; 261 | } 262 | 263 | const filePath = path.join(directory, file); 264 | const stat = fs.statSync(filePath); 265 | 266 | if (stat && stat.isDirectory()) { 267 | results = results.concat(searchFilesInFolder(filePath)); 268 | } else { 269 | results.push(filePath); 270 | } 271 | }); 272 | 273 | return results; 274 | } 275 | 276 | function processSingleFolder(folder: MainFolder, basePath: string): void { 277 | const dirPath = path.join(basePath, folder.name); 278 | const files = searchFilesInFolder(dirPath); 279 | folder.files = files; 280 | 281 | if (config.debug) { 282 | logger.info( 283 | "📄 Vault Files for %s: %s", 284 | folder.name, 285 | JSON.stringify(files) 286 | ); 287 | } 288 | } 289 | 290 | async function deleteParentDirectories(filepath: string) { 291 | let dirPath = path.dirname(filepath); 292 | while (dirPath !== path.dirname(dirPath)) { 293 | // while dirPath has a parent directory 294 | try { 295 | await fs.promises.rmdir(dirPath); 296 | if (config.debug) { 297 | logger.info(`🧨 Successfully deleted directory ${dirPath}`); 298 | } 299 | } catch (error) { 300 | // Ignore the error if the directory is not empty 301 | if ( 302 | error.code !== "ENOTEMPTY" && 303 | error.code !== "EEXIST" && 304 | error.code !== "EPERM" 305 | ) { 306 | logger.info( 307 | `❌ Failed to delete directory ${dirPath}: ${error}` 308 | ); 309 | } 310 | return; 311 | } 312 | dirPath = path.dirname(dirPath); 313 | } 314 | } 315 | 316 | async function ensureDirectoryExistence(filePath: string) { 317 | const dir = path.dirname(filePath); 318 | 319 | if (fs.existsSync(dir)) { 320 | return true; 321 | } 322 | 323 | await fs.promises.mkdir(dir, { recursive: true }); 324 | } 325 | 326 | async function compareSource( 327 | sourceJson: Partial[], 328 | targetJson: Partial[] 329 | ): Promise { 330 | const filesToProcess: FilesToProcess[] = []; 331 | 332 | // Iterate over sourceJson files 333 | sourceJson.forEach((sourceFile, i) => { 334 | // Find a matching file in targetJson 335 | const matchingTargetFile = targetJson.find( 336 | (file) => file.pathSourceRelative === sourceFile.pathSourceRelative 337 | ); 338 | 339 | // Add to the filesToProcess array if no matching file is found 340 | if (!matchingTargetFile) { 341 | filesToProcess.push({ 342 | index: i, 343 | reason: "Does not exist in targetJson", 344 | }); 345 | if (config.debug) { 346 | logger.info( 347 | "📝 File to process: %s", 348 | sourceFile.pathSourceRelative 349 | ); 350 | } 351 | } 352 | }); 353 | 354 | return filesToProcess; 355 | } 356 | 357 | //////////////////////////////////////////////////////////////// 358 | // FILES 359 | //////////////////////////////////////////////////////////////// 360 | 361 | function getSourceFileInfo( 362 | basePath: string, 363 | folder: MainFolder, 364 | filePath: string, 365 | vaultPath: string 366 | ): Partial { 367 | filePath = path.resolve(filePath); 368 | const stats = fs.statSync(filePath); 369 | const fileName = path.basename(filePath); 370 | 371 | const { fileNameClean, fileExtension, language } = 372 | sanitizeFileName(fileName); 373 | 374 | const pathSourceRelative = path.relative(vaultPath, filePath); 375 | 376 | let sourceFileInfo: Partial = { 377 | fileName, 378 | fileNameClean, 379 | fileExtension, 380 | language, 381 | mainFolder: folder.name, 382 | parentFolder: path.basename(path.dirname(filePath)), 383 | pathSourceAbsolute: filePath, 384 | pathSourceRelative, 385 | dateModified: stats.mtime, 386 | size: stats.size, 387 | type: folder.type, 388 | }; 389 | 390 | sourceFileInfo = getTargetPath(sourceFileInfo, basePath); 391 | 392 | return sourceFileInfo; 393 | } 394 | 395 | function sanitizeFileName(fileName: string): { 396 | fileNameClean: string; 397 | fileExtension: string; 398 | language: string; 399 | } { 400 | const parsedPath = path.parse(fileName); 401 | const fileNameWithoutExtension = parsedPath.name; 402 | const fileExtension = parsedPath.ext; 403 | 404 | let fileNameClean = fileNameWithoutExtension; 405 | 406 | const languageMatch = fileNameClean.match(/__([a-z]{2})$/i); 407 | let language = null; 408 | if (languageMatch) { 409 | fileNameClean = fileNameClean.split("__")[0]; 410 | language = languageMatch ? languageMatch[1] : null; 411 | } 412 | 413 | if (language === null) { 414 | if (config && config.mainLanguage) { 415 | language = config.mainLanguage; 416 | } else { 417 | const errorMessage = 418 | "❌ Main language not defined in the configuration"; 419 | logger.error(errorMessage); 420 | throw new Error(errorMessage); 421 | } 422 | } 423 | 424 | return { fileNameClean: fileNameClean.trim(), fileExtension, language }; 425 | } 426 | 427 | /** 428 | * Constructs target path for a given source file. 429 | * 430 | * This function uses the properties of the source file, particularly its type, 431 | * language, and other properties, to construct the path where it should be placed 432 | * in the target directory. 433 | * 434 | * @param {Partial} sourceFileInfo - An object that contains information about the source file. 435 | * @param {string} basePath - The base path where the files will be placed. 436 | * @returns {Partial} - An object that contains the original information plus the target path. 437 | * @throws {Error} - If a required property is missing in the sourceFileInfo object. 438 | */ 439 | function getTargetPath( 440 | sourceFileInfo: Partial, 441 | basePath: string 442 | ): Partial { 443 | const { 444 | type, 445 | language, 446 | pathSourceRelative, 447 | mainFolder, 448 | parentFolder, 449 | fileExtension, 450 | } = sourceFileInfo; 451 | 452 | // Check if all required properties exist 453 | if ( 454 | !type || 455 | !language || 456 | !pathSourceRelative || 457 | !parentFolder || 458 | !fileExtension || 459 | !mainFolder 460 | ) { 461 | logger.error("🚨 Required properties missing on sourceFileInfo"); 462 | throw new Error("Missing required properties on sourceFileInfo"); 463 | } 464 | 465 | // Check if main language is used 466 | const isMainLanguage = language === config.mainLanguage; 467 | 468 | const mainPathDict = { 469 | docs: isMainLanguage 470 | ? "" 471 | : path.join( 472 | "i18n", 473 | language, 474 | "docusaurus-plugin-content-docs", 475 | "current" 476 | ), 477 | blog: isMainLanguage 478 | ? "" 479 | : path.join("i18n", language, "docusaurus-plugin-content-blog"), 480 | blogMulti: 481 | isMainLanguage || !mainFolder 482 | ? "" 483 | : path.join( 484 | "i18n", 485 | language, 486 | `docusaurus-plugin-content-blog-${mainFolder}` 487 | ), 488 | assets: path.join("static", config.docusaurusAssetSubfolderName), 489 | }; 490 | 491 | // Get the main path from the dictionary 492 | //@ts-ignore 493 | const mainPath = mainPathDict[type] || ""; 494 | 495 | // Construct final relative source path 496 | let finalPathSourceRelative = pathSourceRelative; 497 | 498 | if (parentFolder.endsWith("+")) { 499 | const pathParts = finalPathSourceRelative.split(path.sep); 500 | 501 | // If parent folder name ends with '+', remove the last part of the path 502 | pathParts.pop(); 503 | 504 | // To remove e.g. "docs" from relative path -> otherwise "i18n/language/docusaurus-plugin-content-docs/current/docs<- remove/... 505 | if (!isMainLanguage) { 506 | pathParts.shift(); 507 | } 508 | 509 | if (pathParts.length > 0) { 510 | let lastPart = pathParts[pathParts.length - 1]; 511 | 512 | // Remove '+' from the end of the parent folder 513 | if (lastPart.endsWith("+")) { 514 | lastPart = lastPart.slice(0, -1); 515 | pathParts[pathParts.length - 1] = lastPart; 516 | } 517 | 518 | finalPathSourceRelative = pathParts.join(path.sep) + fileExtension; 519 | } 520 | } 521 | 522 | // Remove the language + seperator from final path 523 | finalPathSourceRelative = finalPathSourceRelative.replace( 524 | `__${language}`, 525 | "" 526 | ); 527 | 528 | // If the file is a .yml.md file, remove the .md part 529 | if (finalPathSourceRelative.endsWith(".yml.md")) { 530 | finalPathSourceRelative = finalPathSourceRelative.replace( 531 | ".yml.md", 532 | ".yml" 533 | ); 534 | } 535 | 536 | // Construct target relative and absolute paths 537 | sourceFileInfo.pathTargetRelative = path.join( 538 | mainPath, 539 | finalPathSourceRelative 540 | ); 541 | sourceFileInfo.pathTargetAbsolute = path.join( 542 | basePath, 543 | config.docusaurusWebsiteDirectory, 544 | sourceFileInfo.pathTargetRelative 545 | ); 546 | 547 | return sourceFileInfo; 548 | } 549 | /** 550 | * This asynchronous function compares source and target files to identify files that need to be deleted. 551 | * 552 | * @param {Partial[]} allSourceFilesInfo - Array of source files information. Each object containing details about a source file 553 | * @param {SourceFileInfo[]} targetJson - Array of target files information. Each element is an object containing details about a file from the target. 554 | * @return {Promise} - A promise that resolves with an array of objects containing indices of files to delete and the reasons for 555 | * their deletion. Each object has two properties: 'index' and 'reason'. 556 | * 557 | * @async 558 | * 559 | * 1) This function iterates over each file in the 'targetJson' array and attempts to find a matching file in the 'allSourceFilesInfo' array based on 560 | * their relative paths. If no matching source file is found, it implies that the target file should be deleted, and it is added to the 'filesToDelete' 561 | * array with the reason "it does not exist in sourceJson". 562 | * 563 | * 2) If a matching source file is found, their modification dates are compared. If the source file has a more recent modification date than the target file, 564 | * it implies that the target file should be updated. As a part of the update process, the older target file needs to be deleted first, 565 | * so it is added to the 'filesToDelete' array with the reason "its last modification date is older than the date in sourceJson". 566 | * The function returns a promise that resolves with the 'filesToDelete' array. 567 | */ 568 | async function getFilesToDelete( 569 | allSourceFilesInfo: Partial[], 570 | targetJson: SourceFileInfo[] 571 | ): Promise { 572 | // Load JSON data 573 | 574 | const sourceJson: Partial[] = allSourceFilesInfo; 575 | 576 | const filesToDelete: FilesToProcess[] = []; 577 | 578 | // Iterate over targetJson files 579 | targetJson.forEach((targetFile, i) => { 580 | // Find a matching file in sourceJson 581 | const matchingSourceFile = sourceJson.find( 582 | (file) => file.pathSourceRelative === targetFile.pathSourceRelative 583 | ); 584 | 585 | // Create Date objects from dateModified strings 586 | const targetDate = new Date(targetFile.dateModified); 587 | const sourceDate = matchingSourceFile?.dateModified 588 | ? new Date(matchingSourceFile.dateModified) 589 | : null; 590 | 591 | // Add to the filesToDelete array based on certain conditions 592 | if (!matchingSourceFile) { 593 | filesToDelete.push({ 594 | index: i, 595 | reason: "it does not exist in sourceJson", 596 | pathKey: targetFile.pathSourceRelative, 597 | }); 598 | if (config.debug) { 599 | logger.info( 600 | "🗑️ File to delete: %s", 601 | targetFile.pathSourceRelative 602 | ); 603 | } 604 | } else if (sourceDate && targetDate.getTime() < sourceDate.getTime()) { 605 | filesToDelete.push({ 606 | index: i, 607 | reason: `its last modification date ${targetDate} is older than the date in sourceJson ${sourceDate}`, 608 | pathKey: targetFile.pathSourceRelative, 609 | }); 610 | if (config.debug) { 611 | logger.info( 612 | "🔄 File to update: %s, Target: %s Source: %s", 613 | targetFile.pathSourceRelative, 614 | targetDate, 615 | sourceDate 616 | ); 617 | } 618 | } 619 | }); 620 | 621 | return filesToDelete; 622 | } 623 | 624 | async function deleteFiles( 625 | filesToDelete: FilesToProcess[], 626 | targetJson: SourceFileInfo[], 627 | basePath: string 628 | ) { 629 | const errors: Error[] = []; 630 | 631 | // Sort filesToDelete in descending order based on index 632 | filesToDelete.sort((a, b) => b.index - a.index); 633 | 634 | // Delete files 635 | for (const fileToDelete of filesToDelete) { 636 | const targetFile = targetJson[fileToDelete.index]; 637 | 638 | try { 639 | await fs.promises.unlink( 640 | path.join(basePath, targetFile.pathTargetRelative) 641 | ); 642 | if (config.debug) { 643 | logger.info( 644 | `✅ Successfully deleted file %s`, 645 | targetFile.pathTargetRelative 646 | ); 647 | } 648 | await deleteParentDirectories( 649 | path.join(basePath, targetFile.pathTargetRelative) 650 | ); 651 | 652 | // Remove the deleted file from targetJson immediately after successful deletion 653 | targetJson.splice(fileToDelete.index, 1); 654 | } catch (error) { 655 | // If error code is ENOENT, the file was not found, which we consider as a successful deletion. 656 | if (error.code !== "ENOENT") { 657 | logger.error( 658 | `❌ Failed to delete file %s: %s`, 659 | targetFile.pathTargetRelative, 660 | error 661 | ); 662 | errors.push(error); 663 | continue; // If deletion failed for other reasons, we keep the file in targetJson. 664 | } 665 | if (config.debug) { 666 | logger.info( 667 | `🗑️ File %s was not found, considered as deleted`, 668 | targetFile.pathTargetRelative 669 | ); 670 | } 671 | targetJson.splice(fileToDelete.index, 1); 672 | } 673 | } 674 | } 675 | 676 | async function checkFilesExistence( 677 | targetJson: SourceFileInfo[] 678 | ): Promise { 679 | const existentFiles = await Promise.all( 680 | targetJson.map(async (fileInfo) => { 681 | try { 682 | await fs.promises.access(fileInfo.pathTargetAbsolute); 683 | const stats = await fs.promises.stat( 684 | fileInfo.pathTargetAbsolute 685 | ); 686 | fileInfo.dateModifiedTarget = stats.mtime; 687 | fileInfo.sizeTarget = stats.size; 688 | return fileInfo; 689 | } catch (err) { 690 | if (err.code !== "ENOENT") { 691 | throw err; // re-throw unexpected errors 692 | } 693 | // File doesn't exist, return null 694 | console.log(`File not fond: ${fileInfo.pathSourceRelative}`); 695 | return null; 696 | } 697 | }) 698 | ); 699 | const len = existentFiles.length; 700 | // Filter out null entries (i.e., non-existent files) 701 | const files = existentFiles.filter((fileInfo) => fileInfo !== null); 702 | 703 | if (config.debug) { 704 | logger.info("Removed %i Files", len - files.length); 705 | } 706 | 707 | return files as SourceFileInfo[]; 708 | } 709 | 710 | export function deleteUnusedFiles(json: SourceFileInfo[], websitePath: string) { 711 | const targetDirectories = ["blog", "i18n", "docs"]; 712 | const blogSuffix = "__blog"; 713 | 714 | let filesFound: string[] = []; 715 | 716 | function exploreDirectory(directory: string) { 717 | const entries = fs.readdirSync(directory, { withFileTypes: true }); 718 | for (const entry of entries) { 719 | const fullPath = path.join(directory, entry.name); 720 | if (entry.isDirectory()) { 721 | exploreDirectory(fullPath); 722 | } else if (entry.isFile()) { 723 | filesFound.push(fullPath); 724 | } 725 | } 726 | } 727 | 728 | // Scan each target directory 729 | targetDirectories.forEach((dir) => { 730 | const dirPath = path.join(websitePath, dir); 731 | if (fs.existsSync(dirPath)) { 732 | exploreDirectory(dirPath); 733 | } 734 | }); 735 | 736 | // Go through other directories and look for blogSuffix folders 737 | const allDirectories = fs.readdirSync(websitePath, { withFileTypes: true }); 738 | const otherDirectories = allDirectories.filter((dir) => 739 | dir.name.endsWith(blogSuffix) 740 | ); 741 | 742 | otherDirectories.forEach((dir) => { 743 | const dirPath = path.join(websitePath, dir.name); 744 | exploreDirectory(dirPath); 745 | }); 746 | 747 | // Iterate through filesFound and check against the json 748 | filesFound.forEach(async (file) => { 749 | const fileIsUsed = json.some((j) => j.pathTargetAbsolute === file); 750 | 751 | // Delete the file if it's not used 752 | if (!fileIsUsed) { 753 | await fs.promises.unlink(file); 754 | console.log(`Deleted unused file: ${file}`); 755 | } 756 | }); 757 | } 758 | 759 | //////////////////////////////////////////////////////////////// 760 | // Markdown Conversion 761 | //////////////////////////////////////////////////////////////// 762 | 763 | async function copyMarkdownFilesToTarget( 764 | files: Partial[], 765 | basePath: string, 766 | targetJson: Partial[], 767 | assetJson: Asset[] 768 | ) { 769 | const results: SourceFileInfo[] = []; 770 | 771 | const promises = files.map(async (file) => { 772 | const { pathTargetAbsolute, pathSourceAbsolute, pathSourceRelative } = 773 | file; 774 | // Ensure the directory exists 775 | 776 | if (pathTargetAbsolute && pathSourceAbsolute && pathSourceRelative) { 777 | await ensureDirectoryExistence(pathTargetAbsolute); 778 | 779 | const sourceContent = await fs.promises.readFile( 780 | pathSourceAbsolute, 781 | "utf-8" 782 | ); 783 | // Actual markdown conversion process 784 | const transformedContent = await processMarkdown( 785 | pathSourceRelative, 786 | sourceContent, 787 | assetJson 788 | ); 789 | if (transformedContent) { 790 | await fs.promises.writeFile( 791 | pathTargetAbsolute, 792 | String(transformedContent) 793 | ); 794 | } 795 | 796 | if (config.debug) { 797 | logger.info( 798 | `📤 Converted file from ${pathSourceAbsolute} to ${pathTargetAbsolute}` 799 | ); 800 | } 801 | } 802 | 803 | results.push(file as SourceFileInfo); 804 | }); 805 | 806 | // Wait for all copy operations to finish 807 | await Promise.all(promises); 808 | 809 | // Add results to targetJson 810 | targetJson.push(...results); 811 | 812 | await fs.promises.writeFile( 813 | path.join(basePath, "assetInfo.json"), 814 | JSON.stringify(assetJson, null, 2) 815 | ); 816 | } 817 | 818 | //////////////////////////////////////////////////////////////// 819 | // Asset 820 | //////////////////////////////////////////////////////////////// 821 | 822 | async function removeAssetReferences( 823 | filesToDelete: FilesToProcess[], 824 | assetJson: Asset[], 825 | websitePath: string 826 | ): Promise { 827 | for (const fileToDelete of filesToDelete) { 828 | if (!fileToDelete.pathKey) { 829 | continue; 830 | } 831 | 832 | // Iterate backwards through each asset in the json 833 | for ( 834 | let assetIndex = assetJson.length - 1; 835 | assetIndex >= 0; 836 | assetIndex-- 837 | ) { 838 | const asset = assetJson[assetIndex]; 839 | 840 | // Iterate backwards through each size in the asset 841 | for ( 842 | let sizeIndex = asset.sizes.length - 1; 843 | sizeIndex >= 0; 844 | sizeIndex-- 845 | ) { 846 | const size = asset.sizes[sizeIndex]; 847 | 848 | // Find the index of the filePath in inDocuments array 849 | const docIndex = size.inDocuments.indexOf(fileToDelete.pathKey); 850 | 851 | // If the filePath is found in the inDocuments array 852 | if (docIndex !== -1) { 853 | // Remove the filePath from inDocuments array 854 | size.inDocuments.splice(docIndex, 1); 855 | if (config.debug) { 856 | logger.info( 857 | `🗑 Removed filePath from inDocuments: ${fileToDelete.pathKey}` 858 | ); 859 | } 860 | // If inDocuments array is empty, remove the size entry 861 | if (size.inDocuments.length === 0) { 862 | const assetToRemove = size.newName; 863 | await removeAssetFromTarget( 864 | assetToRemove, 865 | config.docusaurusAssetSubfolderName, 866 | websitePath 867 | ); 868 | 869 | asset.sizes.splice(sizeIndex, 1); 870 | if (config.debug) { 871 | logger.info( 872 | `🔥 Removed size from sizes: ${size.size}` 873 | ); 874 | } 875 | } 876 | } 877 | } 878 | 879 | // If sizes array is empty, remove the asset entry 880 | if (asset.sizes.length === 0) { 881 | assetJson.splice(assetIndex, 1); 882 | if (config.debug) { 883 | logger.info( 884 | `💥 Removed asset from assetJson: ${asset.fileName}` 885 | ); 886 | } 887 | } 888 | } 889 | } 890 | 891 | return assetJson; 892 | } 893 | 894 | async function removeAssetFromTarget( 895 | assetToRemove: string[], 896 | docusaurusAssetSubfolderName: string, 897 | websitePath: string 898 | ): Promise { 899 | for (const asset of assetToRemove) { 900 | const assetPath = path.join( 901 | websitePath, 902 | "static", 903 | docusaurusAssetSubfolderName, 904 | asset 905 | ); 906 | try { 907 | await fs.promises.unlink(assetPath); 908 | if (config.debug) { 909 | logger.info(`🗑 Removed asset: ${assetPath}`); 910 | } 911 | } catch (error) { 912 | if (config.debug) { 913 | logger.error(`❌ Error removing asset: ${assetPath}`, error); 914 | } 915 | } 916 | } 917 | } 918 | 919 | const copyFile = util.promisify(fs.copyFile); 920 | const mkdir = util.promisify(fs.mkdir); 921 | 922 | async function copyAssetFilesToTarget( 923 | vaultPathPath: string, 924 | websitePath: string, 925 | assetJson: Asset[], 926 | assetsToProcess: { assetIndex: number; sizeIndex: number; path: string }[] 927 | ): Promise { 928 | const docusaurusAssetFolderPath = path.join( 929 | websitePath, 930 | "static", 931 | config.docusaurusAssetSubfolderName 932 | ); 933 | await mkdir(docusaurusAssetFolderPath, { recursive: true }); 934 | for (const assetToProcess of assetsToProcess) { 935 | // Use the indexes to find the original asset and size 936 | const asset = assetJson[assetToProcess.assetIndex]; 937 | const size = asset.sizes[assetToProcess.sizeIndex]; 938 | 939 | // Build the original file path 940 | const originalFilePath = path 941 | .join( 942 | vaultPathPath, 943 | config.obsidianAssetSubfolderName, 944 | asset.originalFileName 945 | ) 946 | .replace(/%20/g, " "); 947 | 948 | for (const newName of size.newName) { 949 | const newFilePath = path.join(docusaurusAssetFolderPath, newName); 950 | 951 | // Check if it's an image 952 | if ( 953 | ["jpg", "png", "webp", "jpeg", "bmp", "gif"].includes( 954 | asset.fileExtension 955 | ) 956 | ) { 957 | try { 958 | // If size is standard, there is no resize needed for gifs, just increase file size 959 | if ( 960 | size.size === "standard" && 961 | asset.fileExtension === "gif" 962 | ) { 963 | await fs.copyFileSync(originalFilePath, newFilePath); 964 | if (config.debug) { 965 | logger.info( 966 | `Image copied from ${originalFilePath} to ${newFilePath}` 967 | ); 968 | } 969 | } else { 970 | await resizeImage( 971 | originalFilePath, 972 | newFilePath, 973 | size.size 974 | ); 975 | if (config.debug) { 976 | logger.info( 977 | `Image resized and copied from ${originalFilePath} to ${newFilePath}` 978 | ); 979 | } 980 | } 981 | } catch (error) { 982 | if (config.debug) { 983 | logger.info( 984 | `Failed to resize image and copy from ${originalFilePath} to ${newFilePath}: ${error.message}` 985 | ); 986 | } 987 | } 988 | } else if (asset.fileExtension == "svg") { 989 | await copySVG(originalFilePath, newFilePath); 990 | } else if ([asset.fileExtension].includes("excalidraw")) { 991 | await copyExcalidraw(originalFilePath, newFilePath); 992 | } else { 993 | // Copy the file to the new location 994 | try { 995 | await copyFile(originalFilePath, newFilePath); 996 | if (config.debug) { 997 | logger.info( 998 | `File copied from ${originalFilePath} to ${newFilePath}` 999 | ); 1000 | } 1001 | } catch (error) { 1002 | if (config.debug) { 1003 | logger.error( 1004 | `Failed to copy file from ${originalFilePath} to ${newFilePath}: ${error.message}` 1005 | ); 1006 | } 1007 | } 1008 | } 1009 | } 1010 | } 1011 | } 1012 | 1013 | async function copySVG(originalFilePath: string, newFilePath: string) { 1014 | await copyFile(originalFilePath, newFilePath); 1015 | } 1016 | 1017 | async function copyExcalidraw(originalFilePath: string, newFilePath: string) { 1018 | const filePath = originalFilePath.replace(".md", ""); 1019 | const newDarkFilePath = newFilePath.replace(".light", ".dark"); 1020 | const darkFilePath = filePath + ".dark.svg"; 1021 | await copyFile(darkFilePath, newDarkFilePath); 1022 | 1023 | const lightFilePath = filePath + ".light.svg"; 1024 | await copyFile(lightFilePath, newFilePath); 1025 | } 1026 | 1027 | // Intitalize GraphicksMagic 1028 | const gm = require("gm").subClass({ imageMagick: "7+" }); 1029 | 1030 | async function resizeImage( 1031 | originalFilePath: string, 1032 | newFilePath: string, 1033 | size: string 1034 | ): Promise { 1035 | const widthOriginal: number = await getImageWidth(originalFilePath); 1036 | let width: number; 1037 | let height: string | number; 1038 | let auto = true; 1039 | 1040 | if (size === "standard") { 1041 | width = Math.min( 1042 | widthOriginal, 1043 | parseInt(config.convertedImageMaxWidth) 1044 | ); 1045 | height = ""; // auto height 1046 | } else { 1047 | const dimensions = size.split("x"); 1048 | width = parseInt(dimensions[0]); 1049 | height = dimensions.length > 1 ? parseInt(dimensions[1]) : ""; 1050 | if (height) { 1051 | auto = false; 1052 | } 1053 | } 1054 | 1055 | let imageProcess = gm(originalFilePath).coalesce(); 1056 | 1057 | if (auto) { 1058 | imageProcess = imageProcess.resize(width, height); 1059 | } else { 1060 | imageProcess = imageProcess.resize(width, height, "!"); 1061 | } 1062 | 1063 | imageProcess.write(newFilePath, function (err: Error) { 1064 | if (err) logger.error(err); 1065 | }); 1066 | } 1067 | 1068 | function getImageWidth(imagePath: string): Promise { 1069 | return new Promise((resolve, reject) => { 1070 | //@ts-ignore 1071 | gm(imagePath).size((err: Error, size) => { 1072 | if (err) { 1073 | logger.error("Error getting image width: ", err); 1074 | reject(err); 1075 | } else { 1076 | resolve(size.width); 1077 | } 1078 | }); 1079 | }); 1080 | } 1081 | 1082 | async function getAssetsToProcess( 1083 | assetJson: Asset[], 1084 | websitePath: string 1085 | ): Promise<{ assetIndex: number; sizeIndex: number; path: string }[]> { 1086 | const documents = []; 1087 | 1088 | // Loop through all assets 1089 | for (const [assetIndex, asset] of assetJson.entries()) { 1090 | // Loop through all sizes of each asset 1091 | for (const [sizeIndex, size] of asset.sizes.entries()) { 1092 | // Add all documents for each size to the array, along with the asset and size index 1093 | for (const name of size.newName) { 1094 | documents.push({ assetIndex, sizeIndex, path: name }); 1095 | } 1096 | } 1097 | } 1098 | 1099 | // Check if each document exists, if it does remove it from the array 1100 | const assetsToProcess = documents.filter((document) => { 1101 | const fileExists = fs.existsSync( 1102 | path.join( 1103 | websitePath, 1104 | "static", 1105 | config.docusaurusAssetSubfolderName, 1106 | document.path 1107 | ) 1108 | ); 1109 | 1110 | if (!fileExists && config.debug) { 1111 | logger.info(`File ${document.path} does not exist.`); 1112 | } 1113 | return !fileExists; // Only keep it in the array if the file does not exist 1114 | }); 1115 | return assetsToProcess; 1116 | } 1117 | -------------------------------------------------------------------------------- /src/markdownProcessor.ts: -------------------------------------------------------------------------------- 1 | import * as readline from 'readline'; 2 | import * as stream from 'stream' 3 | import { logger } from 'main'; 4 | import { Admonition, Asset, Size } from "./types"; 5 | import { config } from 'config'; 6 | 7 | 8 | export default async function processMarkdown(processedFileName: string, sourceContent: string, assetJson: Asset[]): Promise { 9 | // Create a stream from the source content 10 | const sourceStream = new stream.Readable(); 11 | sourceStream.push(sourceContent); 12 | sourceStream.push(null); 13 | 14 | // Create a readline interface from the stream 15 | const rl = readline.createInterface({ 16 | input: sourceStream, 17 | output: process.stdout, 18 | terminal: false 19 | }); 20 | 21 | // Initialize the transformed content as an empty string 22 | let transformedContent = ''; 23 | let inAdmonition = false, inQuote = false; 24 | let admonition = { type: '', title: '', whitespaces: 0 }; 25 | 26 | // Iterate over the lines 27 | for await (const line of rl) { 28 | 29 | let processedLine = await convertObsidianLinks(line); 30 | processedLine = checkForAssets(processedLine, processedFileName, assetJson); 31 | processedLine = checkForLinks(processedLine); 32 | [processedLine, inAdmonition, inQuote, admonition] = convertAdmonition(processedLine, inAdmonition, inQuote, admonition); 33 | 34 | // Append the processed line to the transformed content 35 | transformedContent += processedLine + '\n'; 36 | } 37 | 38 | // Return the transformed content 39 | return transformedContent; 40 | } 41 | 42 | async function convertObsidianLinks(line: string) { 43 | 44 | const pattern = new RegExp(`!\\[\\[(${config.docusaurusAssetSubfolderName}/.*?)\\]\\]`); 45 | const match = line.match(pattern); 46 | 47 | if (match !== null) { 48 | const newPath = `![](${match[1]})`; 49 | return line.replace(match[0], newPath); 50 | 51 | } else { 52 | return line; 53 | } 54 | } 55 | 56 | const parseAdmonitionData = (line: string): Admonition => { 57 | const match = line.match(/^>\s*\[!(?.*)](?.*)?/); 58 | if (!match) return { type: '', title: '', whitespaces: 0 }; 59 | 60 | return { 61 | type: match.groups?.type || '', 62 | title: match.groups?.title?.trim() || '', 63 | whitespaces: line.indexOf("[") - line.indexOf(">"), 64 | }; 65 | }; 66 | 67 | // Function to convert Admonition and quote blocks 68 | const convertAdmonition = (line: string, isInAdmonition: boolean, isInQuote: boolean, admonition: Admonition): [string, boolean, boolean, Admonition] => { 69 | // Parse data if the line is the start of a new Admonition or quote 70 | if (!isInAdmonition && !isInQuote) { 71 | admonition = parseAdmonitionData(line); 72 | } 73 | 74 | // Process the line based on whether it's part of an Admonition, a quote, or a normal line 75 | if (isInAdmonition) { 76 | if (line.trim() === '') { 77 | // If the line is empty, it's the end of the Admonition 78 | line = ":::\n" 79 | isInAdmonition = false 80 | } else { 81 | // If the line is not empty, it's part of the Admonition 82 | line = line.slice(admonition.whitespaces); 83 | } 84 | } else if (isInQuote) { 85 | if (line.trim() === '') { 86 | // If the line is empty, it's the end of the quote 87 | line = ">\n> — " + admonition.title + "\n"; 88 | isInQuote = false; 89 | } 90 | } else if (admonition.type) { 91 | if (admonition.type === "quote") { 92 | // The line is the start of a new quote 93 | line = ""; 94 | isInQuote = true; 95 | } else { 96 | // The line is the start of a new Admonition 97 | isInAdmonition = true; 98 | line = ":::" + admonition.type; 99 | if (admonition.title) { 100 | line += " " + admonition.title; 101 | } 102 | line += "\n"; 103 | } 104 | } 105 | 106 | return [line, isInAdmonition, isInQuote, admonition]; 107 | }; 108 | 109 | function checkForLinks(line: string): string { 110 | const pattern = /\[([^\]]+)\]\(([^)]+)\)/; 111 | const match = line.match(pattern); 112 | 113 | if (match) { 114 | 115 | const url = match[2]; 116 | 117 | // keep external links as is 118 | if (url.includes("http")) { 119 | return line; 120 | // only continue with internal links 121 | } else { 122 | const urlParts = url.split("/"); 123 | 124 | if (urlParts.length <= 1) return line; 125 | 126 | let mainFolder = urlParts[0]; 127 | 128 | const isBlog = isBlogFolder(mainFolder); 129 | 130 | if (isBlog) { 131 | mainFolder = removeBlogSuffix(mainFolder); 132 | urlParts[0] = mainFolder; 133 | } 134 | 135 | const processedUrlParts = processUrlParts(urlParts, isBlog); 136 | 137 | const newUrl = "/" + processedUrlParts.join("/"); 138 | return line.replace(url, newUrl); 139 | } 140 | } 141 | return line 142 | } 143 | 144 | function processUrlParts(urlParts: string[], isBlog: boolean): string[] { 145 | urlParts = [...urlParts]; // create a copy to not modify original 146 | 147 | const [file, anchor] = urlParts[urlParts.length - 1].split("#"); 148 | 149 | let parentFolder = urlParts[urlParts.length - 2]; 150 | 151 | if (parentFolder.endsWith("+")) { 152 | parentFolder = parentFolder.replace("+", ""); 153 | urlParts.pop(); 154 | 155 | urlParts[urlParts.length - 1] = isBlog 156 | ? parentFolder.split("-").join("/") 157 | : removeNumberPrefix(parentFolder); 158 | } else if (file.endsWith(".md")) { 159 | urlParts[urlParts.length - 1] = file.replace(".md", ""); 160 | } 161 | 162 | if (isBlog) { 163 | urlParts[urlParts.length - 1] = urlParts[urlParts.length - 1].split("-").join("/"); 164 | } 165 | 166 | if (!isBlog) { 167 | urlParts = urlParts.map(part => removeNumberPrefix(part)); 168 | } 169 | 170 | if (anchor) { 171 | urlParts[urlParts.length - 1] = urlParts[urlParts.length - 1] + "#" + anchor.split("%20").join("-").toLowerCase(); 172 | } 173 | 174 | return urlParts; 175 | } 176 | 177 | function isBlogFolder(mainFolder: string): boolean { 178 | return mainFolder === "blog" || mainFolder.endsWith("__blog"); 179 | } 180 | 181 | function removeBlogSuffix(mainFolder: string): string { 182 | return mainFolder.replace("__blog", ""); 183 | } 184 | 185 | function removeNumberPrefix(str: string): string { 186 | // Removes all common numbering styles: 1), 1., 1 -, ... 187 | return str.replace(/^\d+[\.\-\)\s%20]*\s*/, "").trim(); 188 | } 189 | 190 | function getOrCreateSize(sizes: Size[], size: string, processedFileName: string): Size { 191 | let existingSize = sizes.find(s => s.size === size); 192 | if (!existingSize) { 193 | existingSize = { 194 | size, 195 | inDocuments: [processedFileName], 196 | newName: [] 197 | }; 198 | sizes.push(existingSize); 199 | } else if (!existingSize.inDocuments.includes(processedFileName)) { 200 | existingSize.inDocuments.push(processedFileName); 201 | } 202 | return existingSize; 203 | } 204 | 205 | function checkForAssets(line: string, processedFileName: string, assetJson: Asset[]): string { 206 | const match = line.match(/!\[(?:\|(?<size>\d+(x\d+)?))?\]\((?<path>.*?)\)/); 207 | 208 | if (match && match.groups) { 209 | // eslint-disable-next-line prefer-const 210 | let { size, path } = match.groups; 211 | const fileNameWithExtension = path.split('/').pop(); 212 | // eslint-disable-next-line prefer-const 213 | //@ts-ignore 214 | let [fileName, fileExtension] = fileNameWithExtension.split('.'); 215 | fileName = fileName.replace(/ /g, "_"); 216 | fileName = fileName.replace(/%20/g, "_"); 217 | 218 | if (!size?.trim()) { 219 | size = "standard" 220 | } 221 | 222 | let existingAsset = assetJson.find(item => item.fileName === fileName); 223 | let existingSize: Size; 224 | if (existingAsset) { 225 | existingSize = getOrCreateSize(existingAsset.sizes, size, processedFileName); 226 | } else { 227 | existingAsset = { 228 | fileName, 229 | //@ts-ignore 230 | originalFileName: fileNameWithExtension, 231 | fileExtension, 232 | dateModified: new Date().toISOString(), 233 | sourcePathRelative: path, 234 | sizes: [] 235 | }; 236 | //@ts-ignore 237 | existingSize = getOrCreateSize(existingAsset.sizes, size, processedFileName); 238 | //@ts-ignore 239 | assetJson.push(existingAsset); 240 | } 241 | 242 | if (["jpg", "png", "webp", "jpeg", "bmp", "gif", "svg", "excalidraw"].includes(fileExtension)) { 243 | line = processImage(line, fileName, fileExtension, size, existingSize); 244 | } else { 245 | line = processAsset(line, fileName, fileExtension); 246 | } 247 | } 248 | return line; 249 | } 250 | 251 | 252 | function processImage(line: string, fileName: string, fileExtension: string, size: string, sizeObject: Size): string { 253 | const sizeSuffix = size === "standard" ? "" : `_${size}`; 254 | 255 | const extensionFormatMap: { [index: string]: string } = { 256 | "gif": `/assets/${fileName}${sizeSuffix}.${fileExtension}`, 257 | "svg": `/assets/${fileName}${sizeSuffix}.${fileExtension}`, 258 | //"svg": `/assets/${fileName}${sizeSuffix}.light.svg#light`, 259 | "excalidraw": `/assets/${fileName}${sizeSuffix}.excalidraw.light.svg#light` 260 | }; 261 | 262 | let newPath = `/assets/${fileName}${sizeSuffix}.${config.convertedImageType}`; 263 | 264 | if (extensionFormatMap[fileExtension]) { 265 | newPath = extensionFormatMap[fileExtension]; 266 | line = `![${fileName}](${newPath})`; 267 | 268 | // Special handling for SVG and excalidraw files 269 | if (fileExtension === "excalidraw") { 270 | const darkPath = newPath.replace('.light.svg#light', '.dark.svg#dark'); 271 | line += `\n![${fileName}](${darkPath})`; 272 | } 273 | } else { 274 | line = `![${fileName}](${newPath})`; 275 | } 276 | 277 | const newName = newPath.split("/").pop()?.split("#")[0]; 278 | // Only add newName if it doesn't already exist in sizeObject.newName 279 | if (newName && !sizeObject.newName.includes(newName)) { 280 | sizeObject.newName.push(newName); 281 | } 282 | return line; 283 | } 284 | 285 | function processAsset(line: string, fileName: string, fileExtension: string) { 286 | line = `[Download ${fileName}.${fileExtension}](${config.docusaurusAssetSubfolderName}/${fileName}.${fileExtension})`; 287 | return line; 288 | } 289 | -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- 1 | export interface Config { 2 | obsidianVaultDirectory: string, 3 | docusaurusWebsiteDirectory: string, 4 | obsidianAssetSubfolderName: string, 5 | docusaurusAssetSubfolderName: string, 6 | mainLanguage: string, 7 | convertedImageType: string, 8 | convertedImageMaxWidth: string, 9 | debug: boolean, 10 | developer: boolean 11 | } 12 | 13 | export interface MainFolder { 14 | name: string; 15 | size?: string; 16 | type: string; 17 | files: string[]; 18 | } 19 | 20 | export interface SourceFileInfo { 21 | fileName: string; 22 | fileNameClean: string; 23 | fileExtension: string; 24 | mainFolder: string; 25 | parentFolder: string; 26 | type: string; 27 | pathSourceAbsolute: string; 28 | pathSourceRelative: string; 29 | pathSourceRelativeSplit: string[]; 30 | pathTargetAbsolute: string; 31 | pathTargetRelative: string; 32 | dateModified: Date; 33 | dateModifiedTarget: Date; 34 | size: number; 35 | sizeTarget: number; 36 | language: string; 37 | } 38 | 39 | 40 | export interface FilesToProcess { 41 | index: number; 42 | reason: string; 43 | pathKey?: string; 44 | } 45 | 46 | 47 | export interface Admonition{ 48 | type: string; 49 | title: string; 50 | whitespaces: number; 51 | } 52 | 53 | export interface Asset { 54 | fileName: string; 55 | originalFileName: string; 56 | fileExtension: string; 57 | dateModified: string; 58 | sourcePathRelative: string; 59 | sizes: Size[]; 60 | } 61 | 62 | export interface Size { 63 | size: string; 64 | inDocuments: string[]; 65 | newName: string[]; 66 | } -------------------------------------------------------------------------------- /styles.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | This CSS file will be included with your plugin, and 4 | available in the app when your plugin is enabled. 5 | 6 | If your plugin does not need CSS, delete this file. 7 | 8 | */ 9 | -------------------------------------------------------------------------------- /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 | "allowSyntheticDefaultImports": true, 14 | "strictNullChecks": true, 15 | "lib": [ 16 | "DOM", 17 | "ES5", 18 | "ES6", 19 | "ES7" 20 | ] 21 | }, 22 | "include": [ 23 | "**/*.ts" 24 | ], 25 | 26 | } 27 | -------------------------------------------------------------------------------- /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 | --------------------------------------------------------------------------------