├── .editorconfig ├── .eslintignore ├── .eslintrc ├── .github └── workflows │ └── release.yml ├── .gitignore ├── .npmrc ├── LICENSE.txt ├── README.md ├── demo └── Auto-Hyperlink-Demo.pdf ├── esbuild.config.mjs ├── main.ts ├── manifest.json ├── package-lock.json ├── package.json ├── 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 Obsidian plugin 2 | 3 | on: 4 | push: 5 | tags: 6 | - "*" 7 | 8 | env: 9 | PLUGIN_NAME: auto-hyperlink 10 | 11 | jobs: 12 | build: 13 | runs-on: ubuntu-latest 14 | 15 | steps: 16 | - uses: actions/checkout@v2 17 | - name: Use Node.js 18 | uses: actions/setup-node@v1 19 | with: 20 | node-version: "14.x" 21 | 22 | - name: Build 23 | id: build 24 | run: | 25 | npm install 26 | npm run build 27 | mkdir ${{ env.PLUGIN_NAME }} 28 | cp main.js manifest.json styles.css ${{ env.PLUGIN_NAME }} 29 | zip -r ${{ env.PLUGIN_NAME }}.zip ${{ env.PLUGIN_NAME }} 30 | ls 31 | echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)" 32 | 33 | - name: Create Release 34 | id: create_release 35 | uses: actions/create-release@v1 36 | env: 37 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 38 | VERSION: ${{ github.ref }} 39 | with: 40 | tag_name: ${{ github.ref }} 41 | release_name: ${{ github.ref }} 42 | draft: false 43 | prerelease: false 44 | 45 | - name: Upload zip file 46 | id: upload-zip 47 | uses: actions/upload-release-asset@v1 48 | env: 49 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 50 | with: 51 | upload_url: ${{ steps.create_release.outputs.upload_url }} 52 | asset_path: ./${{ env.PLUGIN_NAME }}.zip 53 | asset_name: ${{ env.PLUGIN_NAME }}-${{ steps.build.outputs.tag_name }}.zip 54 | asset_content_type: application/zip 55 | 56 | - name: Upload main.js 57 | id: upload-main 58 | uses: actions/upload-release-asset@v1 59 | env: 60 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 61 | with: 62 | upload_url: ${{ steps.create_release.outputs.upload_url }} 63 | asset_path: ./main.js 64 | asset_name: main.js 65 | asset_content_type: text/javascript 66 | 67 | - name: Upload manifest.json 68 | id: upload-manifest 69 | uses: actions/upload-release-asset@v1 70 | env: 71 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 72 | with: 73 | upload_url: ${{ steps.create_release.outputs.upload_url }} 74 | asset_path: ./manifest.json 75 | asset_name: manifest.json 76 | asset_content_type: application/json 77 | 78 | - name: Upload styles.css 79 | id: upload-css 80 | uses: actions/upload-release-asset@v1 81 | env: 82 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 83 | with: 84 | upload_url: ${{ steps.create_release.outputs.upload_url }} 85 | asset_path: ./styles.css 86 | asset_name: styles.css 87 | asset_content_type: text/css -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # vscode 2 | .vscode 3 | 4 | # Intellij 5 | *.iml 6 | .idea 7 | 8 | # npm 9 | node_modules 10 | 11 | # Don't include the compiled main.js file in the repo. 12 | # They should be uploaded to GitHub releases instead. 13 | main.js 14 | 15 | # Exclude sourcemaps 16 | *.map 17 | 18 | # obsidian 19 | data.json 20 | 21 | # Exclude macOS Finder (System Explorer) View States 22 | .DS_Store 23 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | tag-version-prefix="" -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 take6 (github.com/take6) 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. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Auto Hyperlink Plugin 2 | 3 | This plugin inserts hyperlink into reading view of Obsidian documents according to user-defined rule. 4 | 5 | **EXPERIMENTAL:** The plugin has new option to insert hyperlink to editor view. To enable this feature, please enable the option in the setting menu. Note that it directly edits your documents. Since this feature is still experimental, edits could result in unexpected result. 6 | 7 | ### Basic Usage 8 | 9 | In the plugin setting pane, you can define hyperlink rule in the form of JSON. Its key should be a pattern that matches the words that you want to insert hyperlink. Corresponding value is a template for URL to be inserted. For example, the following rule will detect every words of "Obsidian" and insert a link to `https://github.com/obsidianmd`, which is almost equivalent to write `[Obsidian](https://github.com/obsidianmd)` in editing mode. If your document contains many "Obsidian"'s, this plugin automatically inserts a link to all of them - no manual linking, no omission. 10 | 11 | ``` 12 | { 13 | "Obsidian": "github.com/obsidianmd" 14 | } 15 | ``` 16 | 17 | If you omit `https://`, the plugin automatically prepend it. If you need to access the site with http (non-secure HTTP), the template have to start with `http://`. 18 | 19 | ### Advanced Usage: Regex and Placeholder 20 | 21 | You can use regex (regular expression) for matching. Pattern string is given to [RegExp](https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/RegExp) to enable regex mathing. The following rule will detect all of "Obsidian" (capitalized) and "obsidian" (lower letter), insert a link to `https://obsidian.md`. 22 | 23 | ``` 24 | { 25 | "[oO]bsidian": "obsidian.md" 26 | } 27 | ``` 28 | 29 | JSON value can be a _template_ rather than direct URL. You can embed matched string using **placeholder**. The above rule is equivalent to the following. 30 | 31 | ``` 32 | { 33 | "[oO]bsidian": "$0.md" 34 | } 35 | ``` 36 | 37 | In the template, `$0` is a placeholder that is replaced by matched pattern. Resulting URL will be `obsidian.md` or `Obsidian.md` depending on the matched string is either capitalized or in lower letter case (it seems that the latter URL is redirected to the former). You can use placeholders for subpattern as `$` with positive integer like `$1`. The following example uses subpattern to insert a link to GitHub pull requests. 38 | 39 | ``` 40 | { 41 | "Obsidian PR #([0-9]+)": "github.com/obsidianmd/obsidian-releases/pull/$1" 42 | } 43 | ``` 44 | 45 | When the pattern matches "Obsidian PR #10", `$0` corresponds to whole matched string while `$1` is replaced with the first subpattern enclosed by parenthesis, which is `10` in this case. So, resulting URL will be `https://github.com/obsidianmd/obsidian-releases/pull/10` 46 | 47 | ### Multiple Rules 48 | 49 | You can define multiple rules by separating them with comma. Be careful about the ordering of rules. If multiple rules exist, **upper rule take priority**. If you have the following two rules, "obsidian" (lower letter) will be linked to `https://obsidian.md` but "Obsidian" (capitalized) will be linked to `https://github.com/obsidianmd` because upper rule takes priority. 50 | 51 | ``` 52 | { 53 | "Obsidian": "github.com/obsidianmd", 54 | "[oO]bsidian": "$0.md" 55 | } 56 | ``` 57 | 58 | ### Enable Feature on Mobile 59 | 60 | There is a toggle to enable/disable feature on mobile environment. The feature is disabled by default because it is still experimental. 61 | 62 | ### Example 63 | 64 | This section demonstrates how plugin works. 65 | 66 | Suppose you have the following markdown text. 67 | 68 | ``` 69 | ## Section: Obsidian 70 | 71 | Obsidian and obsidian, its public releases are hosted by GitHub. Obsidian PR #10 had been issued to add table-editor-obsidian plugin. 72 | 73 | - Auto Hyperlink inserts all occurrence of "Obsidian" or "obsidian" even in the list item 74 | ``` 75 | 76 | And you have hyperlink rule below. 77 | 78 | ``` 79 | { 80 | "Obsidian PR #([0-9]+)": "github.com/obsidianmd/obsidian-releases/pull/$1", 81 | "Obsidian": "github.com/obsidianmd", 82 | "[oO]bsidian": "https://$0.md" 83 | } 84 | ``` 85 | 86 | When you switch to reading view, you will find that many links are inserted by the plugin. The link is also available in the [exported PDF file](./demo/Auto-Hyperlink-Demo.pdf). 87 | 88 | You can try it by yourself with the following procedure. 89 | 90 | 1. install Auto Hyperlink plugin and enable it 91 | 2. create new file, copy above markdown text 92 | 3. open plugin setting, and copy above rule to the text area 93 | 4. go back to newly created file, switch to reading view 94 | 95 | ### Author 96 | 97 | [@take6](https://github.com/take6) 98 | -------------------------------------------------------------------------------- /demo/Auto-Hyperlink-Demo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/take6/obsidian-plugin-auto-hyperlink/a9b65456046599efe657ccf74381dd7f34f4d0c4/demo/Auto-Hyperlink-Demo.pdf -------------------------------------------------------------------------------- /esbuild.config.mjs: -------------------------------------------------------------------------------- 1 | import esbuild from "esbuild"; 2 | import process from "process"; 3 | import builtins from "builtin-modules"; 4 | 5 | const banner = 6 | `/* 7 | THIS IS A GENERATED/BUNDLED FILE BY ESBUILD 8 | if you want to view the source, please visit the github repository of this plugin 9 | */ 10 | `; 11 | 12 | const prod = (process.argv[2] === "production"); 13 | 14 | const context = await esbuild.context({ 15 | banner: { 16 | js: banner, 17 | }, 18 | entryPoints: ["main.ts"], 19 | bundle: true, 20 | external: [ 21 | "obsidian", 22 | "electron", 23 | "@codemirror/autocomplete", 24 | "@codemirror/collab", 25 | "@codemirror/commands", 26 | "@codemirror/language", 27 | "@codemirror/lint", 28 | "@codemirror/search", 29 | "@codemirror/state", 30 | "@codemirror/view", 31 | "@lezer/common", 32 | "@lezer/highlight", 33 | "@lezer/lr", 34 | ...builtins], 35 | format: "cjs", 36 | target: "es2018", 37 | logLevel: "info", 38 | sourcemap: prod ? false : "inline", 39 | treeShaking: true, 40 | outfile: "main.js", 41 | }); 42 | 43 | if (prod) { 44 | await context.rebuild(); 45 | process.exit(0); 46 | } else { 47 | await context.watch(); 48 | } -------------------------------------------------------------------------------- /main.ts: -------------------------------------------------------------------------------- 1 | import { assert } from 'console'; 2 | import { App, ButtonComponent, Editor, EditorPosition, MarkdownFileInfo, MarkdownView, Modal, Notice, Platform, Plugin, PluginSettingTab, Setting, TextAreaComponent, ToggleComponent, Workspace } from 'obsidian'; 3 | 4 | 5 | interface AutoHyperlinkSettings { 6 | enableEditorMode: boolean; 7 | enableMobile: boolean; 8 | rule: string; 9 | } 10 | 11 | const DEFAULT_SETTINGS: AutoHyperlinkSettings = { 12 | enableEditorMode: false, 13 | enableMobile: false, 14 | rule: '[]' 15 | } 16 | 17 | interface MatchRecord { 18 | match: RegExpMatchArray, 19 | start: number, 20 | length: number, 21 | line: number, 22 | regex: RegExp, 23 | url: string 24 | } 25 | 26 | export default class AutoHyperlinkPlugin extends Plugin { 27 | settings: AutoHyperlinkSettings; 28 | 29 | async onload() { 30 | await this.loadSettings(); 31 | 32 | let getUrl = (urlTemplate: string, match: RegExpMatchArray) => { 33 | let url = urlTemplate.substring(0); 34 | for (let i = 0; i < match.length ; ++i) { 35 | let x = "$" + i.toString(); 36 | if (i == 0) { 37 | url = url.replace(x, match[i].substring(0, match[i].length)); 38 | } else { 39 | url = url.replace(x, match[i]); 40 | } 41 | console.log("i = ", i, ", x = ", x, ", url=\"", url, "\""); 42 | } 43 | if (!url.startsWith("https://") && !url.startsWith("http://")) { 44 | url = "https://" + url; 45 | } 46 | return url; 47 | } 48 | 49 | let currentRecord: MatchRecord | null = null; 50 | let getMatchFromLine = (line: string, cursorPos: EditorPosition, start: number = 0) => { 51 | // obtain rule 52 | const rules = JSON.parse(this.settings.rule); 53 | // get cursor position 54 | let pos = cursorPos.ch; 55 | // search matched string 56 | let lineSlice = line.substring(start); 57 | for (const [pattern, urlTemplate] of Object.entries(rules)) { 58 | // get all matches 59 | const regex = new RegExp(pattern, 'g'); 60 | let matches = lineSlice.matchAll(regex); 61 | for (const match of matches) { 62 | // skip if matched position is undefined 63 | if (match.index === undefined) { 64 | continue; 65 | } 66 | console.log('match candidate: ' + match[0]); 67 | // skip if matched position is far from cursor position 68 | console.log('pos ' + pos); 69 | console.log('match range: ' + match.index + ', ' + match.index + match[0].length); 70 | if (pos < match.index + start || match.index + start + match[0].length < pos) { 71 | continue; 72 | } 73 | console.log("Found ", match[0], " start=", match.index, " end=", match.index + match[0].length, "match.length = ", match.length); 74 | let index = match.index + start; 75 | let url = getUrl(urlTemplate, match); 76 | let record: MatchRecord = { 77 | match: match, 78 | start: index, 79 | length: match[0].length, 80 | line: cursorPos.line, 81 | regex: regex, 82 | url: url 83 | } 84 | return record; 85 | } 86 | } 87 | 88 | // no match is found 89 | return null; 90 | } 91 | 92 | let isPartOfAppliedString = (line: string, record: MatchRecord) => { 93 | let index = 0; 94 | let isApplied = false; 95 | let pos = record.match.index; 96 | let url = record.url; 97 | while (pos && index > 0) { 98 | index = line.indexOf(url, index); 99 | if (index <= pos && pos <= index + url.length) { 100 | isApplied = true; 101 | break; 102 | } 103 | } 104 | return false; 105 | } 106 | 107 | let applyRuleToLine = (line: string, record: MatchRecord) => { 108 | console.log('insert hyperlink...'); 109 | let url = record.url; 110 | let match = record.match; 111 | let start = record.start; 112 | let appliedLine = line; 113 | if (typeof start == "number") { 114 | let end = start + match[0].length; 115 | if (line.substring(end, end + url.length + 3) != '](' + url + ')') { 116 | appliedLine = line.substring(0, start) + '[' + match[0] + '](' + url + ')' + line.substring(end); 117 | } 118 | } 119 | return appliedLine; 120 | } 121 | 122 | let applyInProgress = false; 123 | let applyCurrentRecord = function(editor: Editor, record: MatchRecord) { 124 | console.log('Current match: ', record.match[0], record.line, record.start, record.length); 125 | let cursor = editor.getCursor(); 126 | let lineString = editor.getLine(record.line); 127 | let isApplied = isPartOfAppliedString(lineString, record); 128 | console.log('isApplied', isApplied); 129 | if (!isApplied) { 130 | let applied = applyRuleToLine(lineString, record); 131 | 132 | applyInProgress = true; 133 | 134 | console.log('Applied: ' + applied); 135 | editor.setLine(record.line, applied); 136 | 137 | // restore cursor position 138 | if (cursor.line == record.line) { 139 | editor.setCursor(record.line, cursor.ch + applied.length - lineString.length); 140 | } 141 | 142 | applyInProgress = false; 143 | } 144 | } 145 | 146 | let applyInPlace = function(editor: Editor, info: MarkdownView | MarkdownFileInfo) { 147 | const isEnabledOnEditorMode = this.settings.enableEditorMode; 148 | if (!isEnabledOnEditorMode) { 149 | // feature is not enabled 150 | return; 151 | } 152 | 153 | const isMobile = Platform.isMobile; 154 | const isEnabledOnMobile = this.settings.enableMobile; 155 | if (isMobile && !isEnabledOnMobile) { 156 | // feature is not enabled on mobile environment 157 | return; 158 | } 159 | 160 | console.log('applyInPlace: Line -> ', editor.getLine(editor.getCursor().line)); 161 | if (applyInProgress) { 162 | return; 163 | } 164 | 165 | // console.log(info); 166 | 167 | const cursorPos = editor.getCursor(); 168 | if (!cursorPos) { 169 | return; 170 | } 171 | 172 | if (currentRecord) { 173 | // there is match record 174 | console.log('Previous match record: ', currentRecord.match[0]); 175 | if (cursorPos.line != currentRecord.line) { 176 | // cursor is on the different line -> apply rule & clear record 177 | applyCurrentRecord(editor, currentRecord); 178 | currentRecord = null; 179 | } else { 180 | // Check if match record need to be updated 181 | let start = currentRecord.match.index; 182 | assert(typeof start == "number"); 183 | let end = cursorPos.ch; 184 | let lineString = editor.getLine(cursorPos.line); 185 | let updatedRecord = getMatchFromLine(lineString, cursorPos, start); 186 | if (updatedRecord) { 187 | console.log('New match: ', updatedRecord.match[0], updatedRecord.start, updatedRecord.length); 188 | console.log('Old match: ', currentRecord.match[0], currentRecord.start, currentRecord.length); 189 | } 190 | if (updatedRecord && (updatedRecord.start + updatedRecord.length) == end) { 191 | // new match found -> update record 192 | console.log('New match record: ', updatedRecord.match[0]); 193 | currentRecord = updatedRecord; 194 | } else { 195 | // no match found -> apply rule 196 | if (!(cursorPos.ch < currentRecord.start + currentRecord.length)) { 197 | // apply only when any character was added 198 | // i.e. do not apply rule when any character was deleted 199 | applyCurrentRecord(editor, currentRecord); 200 | } 201 | currentRecord = null; 202 | } 203 | console.log(currentRecord); 204 | } 205 | } else { 206 | // get string from the current line 207 | let line = editor.getLine(cursorPos.line); 208 | console.log('Line: ' + line); 209 | // search matched string 210 | // matched range should include current cursor position 211 | let record = getMatchFromLine(line, cursorPos); 212 | if (record && !isPartOfAppliedString(line, record)) { 213 | currentRecord = record; 214 | } 215 | } 216 | }; 217 | 218 | this.app.workspace.on('editor-change', applyInPlace, this); 219 | // this.app.workspace.on('editor-paste', applyOnPaste); 220 | 221 | let applyRule = (node: Node, pattern: string, urlTemplate: string) => { 222 | console.debug("applyRule"); 223 | if (!node.textContent) { 224 | return; 225 | } 226 | 227 | let parent = node.parentElement; 228 | let regexStr = pattern; 229 | const regex = new RegExp(regexStr, 'g'); 230 | let txt = node.textContent; 231 | let matches = txt.matchAll(regex); 232 | let txtStartIndex = 0; 233 | let converted = new Array(); 234 | for (const match of matches) { 235 | if (match.index === undefined) { 236 | continue; 237 | } 238 | 239 | console.debug("Found ", match[0], " start=", match.index, " end=", match.index + match[0].length, "match.length = ", match.length); 240 | let a = document.createElement('a'); 241 | a.textContent = match[0]; 242 | let url = urlTemplate; 243 | for (let i = 0; i < match.length ; ++i) { 244 | let x = "$" + i.toString(); 245 | url = url.replace(x, match[i]); 246 | console.debug("i = ", i, ", x = ", x, ", url=\"", url, "\""); 247 | } 248 | if (url.startsWith('https://') || url.startsWith('http://')) { 249 | a.setAttribute('href', url); 250 | } else { 251 | a.setAttribute('href', "https://" + url); 252 | } 253 | if (txtStartIndex < match.index) { 254 | const substr = txt.substring(txtStartIndex, match.index); 255 | converted = converted.concat(document.createTextNode(substr)); 256 | } 257 | converted = converted.concat(a); 258 | txtStartIndex = match.index + match[0].length; 259 | } 260 | console.debug("converted = ", converted); 261 | if (converted.length > 0) { 262 | if (txtStartIndex < txt.length) { 263 | const substr = txt.substring(txtStartIndex, txt.length); 264 | console.debug("tail = ", substr); 265 | node.textContent = substr; 266 | } else { 267 | node.textContent = ""; 268 | } 269 | for (let x of converted) { 270 | console.debug("inserting ", x); 271 | parent?.insertBefore(x, node); 272 | } 273 | } 274 | }; 275 | 276 | let applyRecursive = (node: Node, pattern: string, urlTemplate: string) => { 277 | console.debug("applyRecursive"); 278 | console.debug("element.nodeName = ", node.nodeName); 279 | const ignoreNodeList = ["A", "PRE"]; 280 | if (node.nodeName == "A" || node.nodeName == "PRE") { 281 | console.debug("ignoring ", node.nodeName); 282 | return; 283 | } 284 | 285 | node.childNodes.forEach((child) => { 286 | console.debug(" Apply rule to child", child.nodeName); 287 | if (child.nodeName == "#text") { 288 | // apply converter and continue 289 | applyRule(child, pattern, urlTemplate); 290 | } else { 291 | applyRecursive(child, pattern, urlTemplate); 292 | } 293 | }); 294 | }; 295 | 296 | // post processing to insert external link 297 | this.registerMarkdownPostProcessor((element, context) => { 298 | const isMobile = Platform.isMobile; 299 | const isEnabledOnMobile = this.settings.enableMobile; 300 | if (isMobile && !(isEnabledOnMobile)) { 301 | console.log('Feature is disabled on mobile'); 302 | return; 303 | } 304 | 305 | console.debug("Processing element", element); 306 | console.debug("context = ", context); 307 | 308 | console.debug(this.settings.rule); 309 | const rules = JSON.parse(this.settings.rule); 310 | 311 | for (const [pattern, urlTemplate] of Object.entries(rules)) { 312 | applyRecursive(element, pattern, urlTemplate); 313 | } 314 | }); 315 | 316 | // This adds a settings tab so the user can configure various aspects of the plugin 317 | this.addSettingTab(new AutoHyperlinkSettingTab(this.app, this)); 318 | 319 | // If the plugin hooks up any global DOM events (on parts of the app that doesn't belong to this plugin) 320 | // Using this function will automatically remove the event listener when this plugin is disabled. 321 | // this.registerDomEvent(document, 'click', (evt: MouseEvent) => { 322 | // console.log('click', evt); 323 | // }); 324 | } 325 | 326 | onunload() { 327 | 328 | } 329 | 330 | async loadSettings() { 331 | this.settings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData()); 332 | } 333 | 334 | async saveSettings() { 335 | await this.saveData(this.settings); 336 | } 337 | } 338 | 339 | 340 | class AutoHyperlinkSettingTab extends PluginSettingTab { 341 | plugin: AutoHyperlinkPlugin; 342 | timeoutId: any; 343 | 344 | constructor(app: App, plugin: AutoHyperlinkPlugin) { 345 | super(app, plugin); 346 | this.plugin = plugin; 347 | this.timeoutId = null; 348 | } 349 | 350 | display(): void { 351 | const {containerEl} = this; 352 | 353 | containerEl.empty(); 354 | 355 | // only use headings under settings if you have more than one section 356 | // containerEl.createEl('h2', {text: 'Setting for AutoHyperlink'}); 357 | let editorModeToggle = new Setting(containerEl) 358 | .setName('Enable feature on Editor View') 359 | .setDesc( 360 | 'Experimental: enable the feature on Editor View. ' + 361 | 'Please note that your text will be directly edited ' + 362 | 'if you enable this mode. Also, you might encounter ' + 363 | 'unexpected behavior as this is still experimental.' 364 | ) 365 | .addToggle((toggle: ToggleComponent) => { 366 | toggle.setValue(this.plugin.settings.enableEditorMode); 367 | toggle.onChange(async (value: boolean) => { 368 | this.plugin.settings.enableEditorMode = value; 369 | await this.plugin.saveSettings(); 370 | }); 371 | }); 372 | 373 | let mobileToggle = new Setting(containerEl) 374 | .setName('Enable on Mobile') 375 | .setDesc('Experimental: enable the feature on mobile app.') 376 | .addToggle((toggle: ToggleComponent) => { 377 | toggle.setValue(this.plugin.settings.enableMobile); 378 | toggle.onChange(async (value: boolean) => { 379 | this.plugin.settings.enableMobile = value; 380 | await this.plugin.saveSettings(); 381 | }); 382 | }); 383 | 384 | let settingItem = new Setting(containerEl) 385 | .setName('Rule') 386 | .setDesc( 387 | 'String must be JSON of "pattern":"urlTemplate" pairs, ' + 388 | 'where urlTemplate can contain placeholder such as "$0" ' + 389 | 'to embed matched string into url.' 390 | ); 391 | 392 | let warningItem = new Setting(containerEl) 393 | .setDesc(''); 394 | 395 | warningItem.descEl.setAttribute( 396 | 'class', 397 | warningItem.descEl.getAttribute('class') + ' json-parse-error' 398 | ); 399 | 400 | settingItem.addTextArea(textArea => { 401 | const currentValue = this.plugin.settings.rule; 402 | if (currentValue.length == 0 || currentValue == DEFAULT_SETTINGS.rule) { 403 | textArea.setPlaceholder('{"Obsidian": "obsidian.md"}'); 404 | } else { 405 | textArea.setValue(currentValue); 406 | } 407 | 408 | if (!Platform.isMobile) { 409 | textArea.inputEl.rows = 10; 410 | const pxPerCols = textArea.inputEl.innerWidth / textArea.inputEl.cols; 411 | const pxPerRows = textArea.inputEl.innerHeight / textArea.inputEl.rows; 412 | 413 | let h = containerEl.innerHeight; 414 | let w = containerEl.innerWidth; 415 | console.log('pxPerCols = ', pxPerCols, ', w = ', w); 416 | console.log('pxPerRows = ', pxPerRows, ', h = ', h); 417 | textArea.inputEl.rows = Math.floor(h * 0.75 / pxPerRows); 418 | textArea.inputEl.cols = Math.floor(w * 0.4 / pxPerCols); 419 | console.log('resulting size: ', textArea.inputEl.rows, 'x', textArea.inputEl.cols); 420 | } 421 | 422 | let validate = async (value: string) => { 423 | // reset timeoutId 424 | this.timeoutId = null; 425 | 426 | console.log('rule JSON: ', value); 427 | this.plugin.settings.rule = value; 428 | try { 429 | JSON.parse(this.plugin.settings.rule); 430 | } catch (error) { 431 | warningItem.descEl.setText('JSON parse error. Please fix your rule.'); 432 | console.warn('JSON parse error. Falling back to default setting.'); 433 | this.plugin.settings.rule = DEFAULT_SETTINGS.rule; 434 | } 435 | await this.plugin.saveSettings(); 436 | } 437 | 438 | // call validate when textArea becomes out of focus 439 | textArea.inputEl.addEventListener('focusout', async (e) => { 440 | warningItem.setDesc(''); 441 | await validate(textArea.getValue()); 442 | }); 443 | 444 | return textArea 445 | .onChange(async (value) => { 446 | warningItem.setDesc(''); 447 | 448 | // validate input lazily so that validation 449 | // is not performed while user keeps typing 450 | const LAZY_INTERVAL = 500; // msec 451 | if (this.timeoutId === null) { 452 | console.log('register new validation'); 453 | this.timeoutId = setTimeout(validate, LAZY_INTERVAL, value); 454 | } else { 455 | console.log('renew validation interval'); 456 | clearTimeout(this.timeoutId); 457 | this.timeoutId = setTimeout(validate, LAZY_INTERVAL, value); 458 | } 459 | }); 460 | }); 461 | } 462 | } 463 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "auto-hyperlink", 3 | "name": "Auto Hyperlink", 4 | "version": "0.4.2", 5 | "minAppVersion": "0.15.0", 6 | "description": "Insert hyperlink according to user-defined rule", 7 | "author": "take6", 8 | "authorUrl": "https://github.com/take6", 9 | "isDesktopOnly": false 10 | } 11 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "auto-hyperlink", 3 | "version": "0.2.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "auto-hyperlink", 9 | "version": "0.2.0", 10 | "license": "MIT", 11 | "devDependencies": { 12 | "@types/node": "^16.11.6", 13 | "@typescript-eslint/eslint-plugin": "5.29.0", 14 | "@typescript-eslint/parser": "5.29.0", 15 | "builtin-modules": "3.3.0", 16 | "esbuild": "0.17.3", 17 | "obsidian": "latest", 18 | "tslib": "2.4.0", 19 | "typescript": "4.7.4" 20 | } 21 | }, 22 | "node_modules/@codemirror/state": { 23 | "version": "6.2.1", 24 | "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.2.1.tgz", 25 | "integrity": "sha512-RupHSZ8+OjNT38zU9fKH2sv+Dnlr8Eb8sl4NOnnqz95mCFTZUaiRP8Xv5MeeaG0px2b8Bnfe7YGwCV3nsBhbuw==", 26 | "dev": true, 27 | "peer": true 28 | }, 29 | "node_modules/@codemirror/view": { 30 | "version": "6.13.0", 31 | "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.13.0.tgz", 32 | "integrity": "sha512-oXTfJzHJ5Tl7f6T8ZO0HKf981zubxgKohjddLobbntbNZHlOZGMRL+pPZGtclDWFaFJWtGBYRGyNdjQ6Xsx5yA==", 33 | "dev": true, 34 | "peer": true, 35 | "dependencies": { 36 | "@codemirror/state": "^6.1.4", 37 | "style-mod": "^4.0.0", 38 | "w3c-keyname": "^2.2.4" 39 | } 40 | }, 41 | "node_modules/@esbuild/android-arm": { 42 | "version": "0.17.3", 43 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.3.tgz", 44 | "integrity": "sha512-1Mlz934GvbgdDmt26rTLmf03cAgLg5HyOgJN+ZGCeP3Q9ynYTNMn2/LQxIl7Uy+o4K6Rfi2OuLsr12JQQR8gNg==", 45 | "cpu": [ 46 | "arm" 47 | ], 48 | "dev": true, 49 | "optional": true, 50 | "os": [ 51 | "android" 52 | ], 53 | "engines": { 54 | "node": ">=12" 55 | } 56 | }, 57 | "node_modules/@esbuild/android-arm64": { 58 | "version": "0.17.3", 59 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.3.tgz", 60 | "integrity": "sha512-XvJsYo3dO3Pi4kpalkyMvfQsjxPWHYjoX4MDiB/FUM4YMfWcXa5l4VCwFWVYI1+92yxqjuqrhNg0CZg3gSouyQ==", 61 | "cpu": [ 62 | "arm64" 63 | ], 64 | "dev": true, 65 | "optional": true, 66 | "os": [ 67 | "android" 68 | ], 69 | "engines": { 70 | "node": ">=12" 71 | } 72 | }, 73 | "node_modules/@esbuild/android-x64": { 74 | "version": "0.17.3", 75 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.3.tgz", 76 | "integrity": "sha512-nuV2CmLS07Gqh5/GrZLuqkU9Bm6H6vcCspM+zjp9TdQlxJtIe+qqEXQChmfc7nWdyr/yz3h45Utk1tUn8Cz5+A==", 77 | "cpu": [ 78 | "x64" 79 | ], 80 | "dev": true, 81 | "optional": true, 82 | "os": [ 83 | "android" 84 | ], 85 | "engines": { 86 | "node": ">=12" 87 | } 88 | }, 89 | "node_modules/@esbuild/darwin-arm64": { 90 | "version": "0.17.3", 91 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.3.tgz", 92 | "integrity": "sha512-01Hxaaat6m0Xp9AXGM8mjFtqqwDjzlMP0eQq9zll9U85ttVALGCGDuEvra5Feu/NbP5AEP1MaopPwzsTcUq1cw==", 93 | "cpu": [ 94 | "arm64" 95 | ], 96 | "dev": true, 97 | "optional": true, 98 | "os": [ 99 | "darwin" 100 | ], 101 | "engines": { 102 | "node": ">=12" 103 | } 104 | }, 105 | "node_modules/@esbuild/darwin-x64": { 106 | "version": "0.17.3", 107 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.3.tgz", 108 | "integrity": "sha512-Eo2gq0Q/er2muf8Z83X21UFoB7EU6/m3GNKvrhACJkjVThd0uA+8RfKpfNhuMCl1bKRfBzKOk6xaYKQZ4lZqvA==", 109 | "cpu": [ 110 | "x64" 111 | ], 112 | "dev": true, 113 | "optional": true, 114 | "os": [ 115 | "darwin" 116 | ], 117 | "engines": { 118 | "node": ">=12" 119 | } 120 | }, 121 | "node_modules/@esbuild/freebsd-arm64": { 122 | "version": "0.17.3", 123 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.3.tgz", 124 | "integrity": "sha512-CN62ESxaquP61n1ZjQP/jZte8CE09M6kNn3baos2SeUfdVBkWN5n6vGp2iKyb/bm/x4JQzEvJgRHLGd5F5b81w==", 125 | "cpu": [ 126 | "arm64" 127 | ], 128 | "dev": true, 129 | "optional": true, 130 | "os": [ 131 | "freebsd" 132 | ], 133 | "engines": { 134 | "node": ">=12" 135 | } 136 | }, 137 | "node_modules/@esbuild/freebsd-x64": { 138 | "version": "0.17.3", 139 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.3.tgz", 140 | "integrity": "sha512-feq+K8TxIznZE+zhdVurF3WNJ/Sa35dQNYbaqM/wsCbWdzXr5lyq+AaTUSER2cUR+SXPnd/EY75EPRjf4s1SLg==", 141 | "cpu": [ 142 | "x64" 143 | ], 144 | "dev": true, 145 | "optional": true, 146 | "os": [ 147 | "freebsd" 148 | ], 149 | "engines": { 150 | "node": ">=12" 151 | } 152 | }, 153 | "node_modules/@esbuild/linux-arm": { 154 | "version": "0.17.3", 155 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.3.tgz", 156 | "integrity": "sha512-CLP3EgyNuPcg2cshbwkqYy5bbAgK+VhyfMU7oIYyn+x4Y67xb5C5ylxsNUjRmr8BX+MW3YhVNm6Lq6FKtRTWHQ==", 157 | "cpu": [ 158 | "arm" 159 | ], 160 | "dev": true, 161 | "optional": true, 162 | "os": [ 163 | "linux" 164 | ], 165 | "engines": { 166 | "node": ">=12" 167 | } 168 | }, 169 | "node_modules/@esbuild/linux-arm64": { 170 | "version": "0.17.3", 171 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.3.tgz", 172 | "integrity": "sha512-JHeZXD4auLYBnrKn6JYJ0o5nWJI9PhChA/Nt0G4MvLaMrvXuWnY93R3a7PiXeJQphpL1nYsaMcoV2QtuvRnF/g==", 173 | "cpu": [ 174 | "arm64" 175 | ], 176 | "dev": true, 177 | "optional": true, 178 | "os": [ 179 | "linux" 180 | ], 181 | "engines": { 182 | "node": ">=12" 183 | } 184 | }, 185 | "node_modules/@esbuild/linux-ia32": { 186 | "version": "0.17.3", 187 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.3.tgz", 188 | "integrity": "sha512-FyXlD2ZjZqTFh0sOQxFDiWG1uQUEOLbEh9gKN/7pFxck5Vw0qjWSDqbn6C10GAa1rXJpwsntHcmLqydY9ST9ZA==", 189 | "cpu": [ 190 | "ia32" 191 | ], 192 | "dev": true, 193 | "optional": true, 194 | "os": [ 195 | "linux" 196 | ], 197 | "engines": { 198 | "node": ">=12" 199 | } 200 | }, 201 | "node_modules/@esbuild/linux-loong64": { 202 | "version": "0.17.3", 203 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.3.tgz", 204 | "integrity": "sha512-OrDGMvDBI2g7s04J8dh8/I7eSO+/E7nMDT2Z5IruBfUO/RiigF1OF6xoH33Dn4W/OwAWSUf1s2nXamb28ZklTA==", 205 | "cpu": [ 206 | "loong64" 207 | ], 208 | "dev": true, 209 | "optional": true, 210 | "os": [ 211 | "linux" 212 | ], 213 | "engines": { 214 | "node": ">=12" 215 | } 216 | }, 217 | "node_modules/@esbuild/linux-mips64el": { 218 | "version": "0.17.3", 219 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.3.tgz", 220 | "integrity": "sha512-DcnUpXnVCJvmv0TzuLwKBC2nsQHle8EIiAJiJ+PipEVC16wHXaPEKP0EqN8WnBe0TPvMITOUlP2aiL5YMld+CQ==", 221 | "cpu": [ 222 | "mips64el" 223 | ], 224 | "dev": true, 225 | "optional": true, 226 | "os": [ 227 | "linux" 228 | ], 229 | "engines": { 230 | "node": ">=12" 231 | } 232 | }, 233 | "node_modules/@esbuild/linux-ppc64": { 234 | "version": "0.17.3", 235 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.3.tgz", 236 | "integrity": "sha512-BDYf/l1WVhWE+FHAW3FzZPtVlk9QsrwsxGzABmN4g8bTjmhazsId3h127pliDRRu5674k1Y2RWejbpN46N9ZhQ==", 237 | "cpu": [ 238 | "ppc64" 239 | ], 240 | "dev": true, 241 | "optional": true, 242 | "os": [ 243 | "linux" 244 | ], 245 | "engines": { 246 | "node": ">=12" 247 | } 248 | }, 249 | "node_modules/@esbuild/linux-riscv64": { 250 | "version": "0.17.3", 251 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.3.tgz", 252 | "integrity": "sha512-WViAxWYMRIi+prTJTyV1wnqd2mS2cPqJlN85oscVhXdb/ZTFJdrpaqm/uDsZPGKHtbg5TuRX/ymKdOSk41YZow==", 253 | "cpu": [ 254 | "riscv64" 255 | ], 256 | "dev": true, 257 | "optional": true, 258 | "os": [ 259 | "linux" 260 | ], 261 | "engines": { 262 | "node": ">=12" 263 | } 264 | }, 265 | "node_modules/@esbuild/linux-s390x": { 266 | "version": "0.17.3", 267 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.3.tgz", 268 | "integrity": "sha512-Iw8lkNHUC4oGP1O/KhumcVy77u2s6+KUjieUqzEU3XuWJqZ+AY7uVMrrCbAiwWTkpQHkr00BuXH5RpC6Sb/7Ug==", 269 | "cpu": [ 270 | "s390x" 271 | ], 272 | "dev": true, 273 | "optional": true, 274 | "os": [ 275 | "linux" 276 | ], 277 | "engines": { 278 | "node": ">=12" 279 | } 280 | }, 281 | "node_modules/@esbuild/linux-x64": { 282 | "version": "0.17.3", 283 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.3.tgz", 284 | "integrity": "sha512-0AGkWQMzeoeAtXQRNB3s4J1/T2XbigM2/Mn2yU1tQSmQRmHIZdkGbVq2A3aDdNslPyhb9/lH0S5GMTZ4xsjBqg==", 285 | "cpu": [ 286 | "x64" 287 | ], 288 | "dev": true, 289 | "optional": true, 290 | "os": [ 291 | "linux" 292 | ], 293 | "engines": { 294 | "node": ">=12" 295 | } 296 | }, 297 | "node_modules/@esbuild/netbsd-x64": { 298 | "version": "0.17.3", 299 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.3.tgz", 300 | "integrity": "sha512-4+rR/WHOxIVh53UIQIICryjdoKdHsFZFD4zLSonJ9RRw7bhKzVyXbnRPsWSfwybYqw9sB7ots/SYyufL1mBpEg==", 301 | "cpu": [ 302 | "x64" 303 | ], 304 | "dev": true, 305 | "optional": true, 306 | "os": [ 307 | "netbsd" 308 | ], 309 | "engines": { 310 | "node": ">=12" 311 | } 312 | }, 313 | "node_modules/@esbuild/openbsd-x64": { 314 | "version": "0.17.3", 315 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.3.tgz", 316 | "integrity": "sha512-cVpWnkx9IYg99EjGxa5Gc0XmqumtAwK3aoz7O4Dii2vko+qXbkHoujWA68cqXjhh6TsLaQelfDO4MVnyr+ODeA==", 317 | "cpu": [ 318 | "x64" 319 | ], 320 | "dev": true, 321 | "optional": true, 322 | "os": [ 323 | "openbsd" 324 | ], 325 | "engines": { 326 | "node": ">=12" 327 | } 328 | }, 329 | "node_modules/@esbuild/sunos-x64": { 330 | "version": "0.17.3", 331 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.3.tgz", 332 | "integrity": "sha512-RxmhKLbTCDAY2xOfrww6ieIZkZF+KBqG7S2Ako2SljKXRFi+0863PspK74QQ7JpmWwncChY25JTJSbVBYGQk2Q==", 333 | "cpu": [ 334 | "x64" 335 | ], 336 | "dev": true, 337 | "optional": true, 338 | "os": [ 339 | "sunos" 340 | ], 341 | "engines": { 342 | "node": ">=12" 343 | } 344 | }, 345 | "node_modules/@esbuild/win32-arm64": { 346 | "version": "0.17.3", 347 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.3.tgz", 348 | "integrity": "sha512-0r36VeEJ4efwmofxVJRXDjVRP2jTmv877zc+i+Pc7MNsIr38NfsjkQj23AfF7l0WbB+RQ7VUb+LDiqC/KY/M/A==", 349 | "cpu": [ 350 | "arm64" 351 | ], 352 | "dev": true, 353 | "optional": true, 354 | "os": [ 355 | "win32" 356 | ], 357 | "engines": { 358 | "node": ">=12" 359 | } 360 | }, 361 | "node_modules/@esbuild/win32-ia32": { 362 | "version": "0.17.3", 363 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.3.tgz", 364 | "integrity": "sha512-wgO6rc7uGStH22nur4aLFcq7Wh86bE9cOFmfTr/yxN3BXvDEdCSXyKkO+U5JIt53eTOgC47v9k/C1bITWL/Teg==", 365 | "cpu": [ 366 | "ia32" 367 | ], 368 | "dev": true, 369 | "optional": true, 370 | "os": [ 371 | "win32" 372 | ], 373 | "engines": { 374 | "node": ">=12" 375 | } 376 | }, 377 | "node_modules/@esbuild/win32-x64": { 378 | "version": "0.17.3", 379 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.3.tgz", 380 | "integrity": "sha512-FdVl64OIuiKjgXBjwZaJLKp0eaEckifbhn10dXWhysMJkWblg3OEEGKSIyhiD5RSgAya8WzP3DNkngtIg3Nt7g==", 381 | "cpu": [ 382 | "x64" 383 | ], 384 | "dev": true, 385 | "optional": true, 386 | "os": [ 387 | "win32" 388 | ], 389 | "engines": { 390 | "node": ">=12" 391 | } 392 | }, 393 | "node_modules/@eslint-community/eslint-utils": { 394 | "version": "4.4.0", 395 | "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", 396 | "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", 397 | "dev": true, 398 | "peer": true, 399 | "dependencies": { 400 | "eslint-visitor-keys": "^3.3.0" 401 | }, 402 | "engines": { 403 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 404 | }, 405 | "peerDependencies": { 406 | "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" 407 | } 408 | }, 409 | "node_modules/@eslint-community/regexpp": { 410 | "version": "4.5.1", 411 | "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", 412 | "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", 413 | "dev": true, 414 | "peer": true, 415 | "engines": { 416 | "node": "^12.0.0 || ^14.0.0 || >=16.0.0" 417 | } 418 | }, 419 | "node_modules/@eslint/eslintrc": { 420 | "version": "2.0.3", 421 | "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz", 422 | "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==", 423 | "dev": true, 424 | "peer": true, 425 | "dependencies": { 426 | "ajv": "^6.12.4", 427 | "debug": "^4.3.2", 428 | "espree": "^9.5.2", 429 | "globals": "^13.19.0", 430 | "ignore": "^5.2.0", 431 | "import-fresh": "^3.2.1", 432 | "js-yaml": "^4.1.0", 433 | "minimatch": "^3.1.2", 434 | "strip-json-comments": "^3.1.1" 435 | }, 436 | "engines": { 437 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 438 | }, 439 | "funding": { 440 | "url": "https://opencollective.com/eslint" 441 | } 442 | }, 443 | "node_modules/@eslint/js": { 444 | "version": "8.42.0", 445 | "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.42.0.tgz", 446 | "integrity": "sha512-6SWlXpWU5AvId8Ac7zjzmIOqMOba/JWY8XZ4A7q7Gn1Vlfg/SFFIlrtHXt9nPn4op9ZPAkl91Jao+QQv3r/ukw==", 447 | "dev": true, 448 | "peer": true, 449 | "engines": { 450 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 451 | } 452 | }, 453 | "node_modules/@humanwhocodes/config-array": { 454 | "version": "0.11.10", 455 | "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz", 456 | "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==", 457 | "dev": true, 458 | "peer": true, 459 | "dependencies": { 460 | "@humanwhocodes/object-schema": "^1.2.1", 461 | "debug": "^4.1.1", 462 | "minimatch": "^3.0.5" 463 | }, 464 | "engines": { 465 | "node": ">=10.10.0" 466 | } 467 | }, 468 | "node_modules/@humanwhocodes/module-importer": { 469 | "version": "1.0.1", 470 | "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", 471 | "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", 472 | "dev": true, 473 | "peer": true, 474 | "engines": { 475 | "node": ">=12.22" 476 | }, 477 | "funding": { 478 | "type": "github", 479 | "url": "https://github.com/sponsors/nzakas" 480 | } 481 | }, 482 | "node_modules/@humanwhocodes/object-schema": { 483 | "version": "1.2.1", 484 | "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", 485 | "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", 486 | "dev": true, 487 | "peer": true 488 | }, 489 | "node_modules/@nodelib/fs.scandir": { 490 | "version": "2.1.5", 491 | "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", 492 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", 493 | "dev": true, 494 | "dependencies": { 495 | "@nodelib/fs.stat": "2.0.5", 496 | "run-parallel": "^1.1.9" 497 | }, 498 | "engines": { 499 | "node": ">= 8" 500 | } 501 | }, 502 | "node_modules/@nodelib/fs.stat": { 503 | "version": "2.0.5", 504 | "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", 505 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", 506 | "dev": true, 507 | "engines": { 508 | "node": ">= 8" 509 | } 510 | }, 511 | "node_modules/@nodelib/fs.walk": { 512 | "version": "1.2.8", 513 | "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", 514 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", 515 | "dev": true, 516 | "dependencies": { 517 | "@nodelib/fs.scandir": "2.1.5", 518 | "fastq": "^1.6.0" 519 | }, 520 | "engines": { 521 | "node": ">= 8" 522 | } 523 | }, 524 | "node_modules/@types/codemirror": { 525 | "version": "0.0.108", 526 | "resolved": "https://registry.npmjs.org/@types/codemirror/-/codemirror-0.0.108.tgz", 527 | "integrity": "sha512-3FGFcus0P7C2UOGCNUVENqObEb4SFk+S8Dnxq7K6aIsLVs/vDtlangl3PEO0ykaKXyK56swVF6Nho7VsA44uhw==", 528 | "dev": true, 529 | "dependencies": { 530 | "@types/tern": "*" 531 | } 532 | }, 533 | "node_modules/@types/estree": { 534 | "version": "1.0.1", 535 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", 536 | "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==", 537 | "dev": true 538 | }, 539 | "node_modules/@types/json-schema": { 540 | "version": "7.0.12", 541 | "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", 542 | "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==", 543 | "dev": true 544 | }, 545 | "node_modules/@types/node": { 546 | "version": "16.18.35", 547 | "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.35.tgz", 548 | "integrity": "sha512-yqU2Rf94HFZqgHf6Tuyc/IqVD0l3U91KjvypSr1GtJKyrnl6L/kfnxVqN4QOwcF5Zx9tO/HKK+fozGr5AtqA+g==", 549 | "dev": true 550 | }, 551 | "node_modules/@types/tern": { 552 | "version": "0.23.4", 553 | "resolved": "https://registry.npmjs.org/@types/tern/-/tern-0.23.4.tgz", 554 | "integrity": "sha512-JAUw1iXGO1qaWwEOzxTKJZ/5JxVeON9kvGZ/osgZaJImBnyjyn0cjovPsf6FNLmyGY8Vw9DoXZCMlfMkMwHRWg==", 555 | "dev": true, 556 | "dependencies": { 557 | "@types/estree": "*" 558 | } 559 | }, 560 | "node_modules/@typescript-eslint/eslint-plugin": { 561 | "version": "5.29.0", 562 | "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.29.0.tgz", 563 | "integrity": "sha512-kgTsISt9pM53yRFQmLZ4npj99yGl3x3Pl7z4eA66OuTzAGC4bQB5H5fuLwPnqTKU3yyrrg4MIhjF17UYnL4c0w==", 564 | "dev": true, 565 | "dependencies": { 566 | "@typescript-eslint/scope-manager": "5.29.0", 567 | "@typescript-eslint/type-utils": "5.29.0", 568 | "@typescript-eslint/utils": "5.29.0", 569 | "debug": "^4.3.4", 570 | "functional-red-black-tree": "^1.0.1", 571 | "ignore": "^5.2.0", 572 | "regexpp": "^3.2.0", 573 | "semver": "^7.3.7", 574 | "tsutils": "^3.21.0" 575 | }, 576 | "engines": { 577 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 578 | }, 579 | "funding": { 580 | "type": "opencollective", 581 | "url": "https://opencollective.com/typescript-eslint" 582 | }, 583 | "peerDependencies": { 584 | "@typescript-eslint/parser": "^5.0.0", 585 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" 586 | }, 587 | "peerDependenciesMeta": { 588 | "typescript": { 589 | "optional": true 590 | } 591 | } 592 | }, 593 | "node_modules/@typescript-eslint/parser": { 594 | "version": "5.29.0", 595 | "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.29.0.tgz", 596 | "integrity": "sha512-ruKWTv+x0OOxbzIw9nW5oWlUopvP/IQDjB5ZqmTglLIoDTctLlAJpAQFpNPJP/ZI7hTT9sARBosEfaKbcFuECw==", 597 | "dev": true, 598 | "dependencies": { 599 | "@typescript-eslint/scope-manager": "5.29.0", 600 | "@typescript-eslint/types": "5.29.0", 601 | "@typescript-eslint/typescript-estree": "5.29.0", 602 | "debug": "^4.3.4" 603 | }, 604 | "engines": { 605 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 606 | }, 607 | "funding": { 608 | "type": "opencollective", 609 | "url": "https://opencollective.com/typescript-eslint" 610 | }, 611 | "peerDependencies": { 612 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" 613 | }, 614 | "peerDependenciesMeta": { 615 | "typescript": { 616 | "optional": true 617 | } 618 | } 619 | }, 620 | "node_modules/@typescript-eslint/scope-manager": { 621 | "version": "5.29.0", 622 | "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.29.0.tgz", 623 | "integrity": "sha512-etbXUT0FygFi2ihcxDZjz21LtC+Eps9V2xVx09zFoN44RRHPrkMflidGMI+2dUs821zR1tDS6Oc9IXxIjOUZwA==", 624 | "dev": true, 625 | "dependencies": { 626 | "@typescript-eslint/types": "5.29.0", 627 | "@typescript-eslint/visitor-keys": "5.29.0" 628 | }, 629 | "engines": { 630 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 631 | }, 632 | "funding": { 633 | "type": "opencollective", 634 | "url": "https://opencollective.com/typescript-eslint" 635 | } 636 | }, 637 | "node_modules/@typescript-eslint/type-utils": { 638 | "version": "5.29.0", 639 | "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.29.0.tgz", 640 | "integrity": "sha512-JK6bAaaiJozbox3K220VRfCzLa9n0ib/J+FHIwnaV3Enw/TO267qe0pM1b1QrrEuy6xun374XEAsRlA86JJnyg==", 641 | "dev": true, 642 | "dependencies": { 643 | "@typescript-eslint/utils": "5.29.0", 644 | "debug": "^4.3.4", 645 | "tsutils": "^3.21.0" 646 | }, 647 | "engines": { 648 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 649 | }, 650 | "funding": { 651 | "type": "opencollective", 652 | "url": "https://opencollective.com/typescript-eslint" 653 | }, 654 | "peerDependencies": { 655 | "eslint": "*" 656 | }, 657 | "peerDependenciesMeta": { 658 | "typescript": { 659 | "optional": true 660 | } 661 | } 662 | }, 663 | "node_modules/@typescript-eslint/types": { 664 | "version": "5.29.0", 665 | "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.29.0.tgz", 666 | "integrity": "sha512-X99VbqvAXOMdVyfFmksMy3u8p8yoRGITgU1joBJPzeYa0rhdf5ok9S56/itRoUSh99fiDoMtarSIJXo7H/SnOg==", 667 | "dev": true, 668 | "engines": { 669 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 670 | }, 671 | "funding": { 672 | "type": "opencollective", 673 | "url": "https://opencollective.com/typescript-eslint" 674 | } 675 | }, 676 | "node_modules/@typescript-eslint/typescript-estree": { 677 | "version": "5.29.0", 678 | "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.29.0.tgz", 679 | "integrity": "sha512-mQvSUJ/JjGBdvo+1LwC+GY2XmSYjK1nAaVw2emp/E61wEVYEyibRHCqm1I1vEKbXCpUKuW4G7u9ZCaZhJbLoNQ==", 680 | "dev": true, 681 | "dependencies": { 682 | "@typescript-eslint/types": "5.29.0", 683 | "@typescript-eslint/visitor-keys": "5.29.0", 684 | "debug": "^4.3.4", 685 | "globby": "^11.1.0", 686 | "is-glob": "^4.0.3", 687 | "semver": "^7.3.7", 688 | "tsutils": "^3.21.0" 689 | }, 690 | "engines": { 691 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 692 | }, 693 | "funding": { 694 | "type": "opencollective", 695 | "url": "https://opencollective.com/typescript-eslint" 696 | }, 697 | "peerDependenciesMeta": { 698 | "typescript": { 699 | "optional": true 700 | } 701 | } 702 | }, 703 | "node_modules/@typescript-eslint/utils": { 704 | "version": "5.29.0", 705 | "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.29.0.tgz", 706 | "integrity": "sha512-3Eos6uP1nyLOBayc/VUdKZikV90HahXE5Dx9L5YlSd/7ylQPXhLk1BYb29SDgnBnTp+jmSZUU0QxUiyHgW4p7A==", 707 | "dev": true, 708 | "dependencies": { 709 | "@types/json-schema": "^7.0.9", 710 | "@typescript-eslint/scope-manager": "5.29.0", 711 | "@typescript-eslint/types": "5.29.0", 712 | "@typescript-eslint/typescript-estree": "5.29.0", 713 | "eslint-scope": "^5.1.1", 714 | "eslint-utils": "^3.0.0" 715 | }, 716 | "engines": { 717 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 718 | }, 719 | "funding": { 720 | "type": "opencollective", 721 | "url": "https://opencollective.com/typescript-eslint" 722 | }, 723 | "peerDependencies": { 724 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" 725 | } 726 | }, 727 | "node_modules/@typescript-eslint/visitor-keys": { 728 | "version": "5.29.0", 729 | "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.29.0.tgz", 730 | "integrity": "sha512-Hpb/mCWsjILvikMQoZIE3voc9wtQcS0A9FUw3h8bhr9UxBdtI/tw1ZDZUOXHXLOVMedKCH5NxyzATwnU78bWCQ==", 731 | "dev": true, 732 | "dependencies": { 733 | "@typescript-eslint/types": "5.29.0", 734 | "eslint-visitor-keys": "^3.3.0" 735 | }, 736 | "engines": { 737 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 738 | }, 739 | "funding": { 740 | "type": "opencollective", 741 | "url": "https://opencollective.com/typescript-eslint" 742 | } 743 | }, 744 | "node_modules/acorn": { 745 | "version": "8.8.2", 746 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", 747 | "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", 748 | "dev": true, 749 | "peer": true, 750 | "bin": { 751 | "acorn": "bin/acorn" 752 | }, 753 | "engines": { 754 | "node": ">=0.4.0" 755 | } 756 | }, 757 | "node_modules/acorn-jsx": { 758 | "version": "5.3.2", 759 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", 760 | "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", 761 | "dev": true, 762 | "peer": true, 763 | "peerDependencies": { 764 | "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" 765 | } 766 | }, 767 | "node_modules/ajv": { 768 | "version": "6.12.6", 769 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 770 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 771 | "dev": true, 772 | "peer": true, 773 | "dependencies": { 774 | "fast-deep-equal": "^3.1.1", 775 | "fast-json-stable-stringify": "^2.0.0", 776 | "json-schema-traverse": "^0.4.1", 777 | "uri-js": "^4.2.2" 778 | }, 779 | "funding": { 780 | "type": "github", 781 | "url": "https://github.com/sponsors/epoberezkin" 782 | } 783 | }, 784 | "node_modules/ansi-regex": { 785 | "version": "5.0.1", 786 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 787 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 788 | "dev": true, 789 | "peer": true, 790 | "engines": { 791 | "node": ">=8" 792 | } 793 | }, 794 | "node_modules/ansi-styles": { 795 | "version": "4.3.0", 796 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 797 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 798 | "dev": true, 799 | "peer": true, 800 | "dependencies": { 801 | "color-convert": "^2.0.1" 802 | }, 803 | "engines": { 804 | "node": ">=8" 805 | }, 806 | "funding": { 807 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 808 | } 809 | }, 810 | "node_modules/argparse": { 811 | "version": "2.0.1", 812 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 813 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 814 | "dev": true, 815 | "peer": true 816 | }, 817 | "node_modules/array-union": { 818 | "version": "2.1.0", 819 | "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", 820 | "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", 821 | "dev": true, 822 | "engines": { 823 | "node": ">=8" 824 | } 825 | }, 826 | "node_modules/balanced-match": { 827 | "version": "1.0.2", 828 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 829 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 830 | "dev": true, 831 | "peer": true 832 | }, 833 | "node_modules/brace-expansion": { 834 | "version": "1.1.11", 835 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 836 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 837 | "dev": true, 838 | "peer": true, 839 | "dependencies": { 840 | "balanced-match": "^1.0.0", 841 | "concat-map": "0.0.1" 842 | } 843 | }, 844 | "node_modules/braces": { 845 | "version": "3.0.2", 846 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 847 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 848 | "dev": true, 849 | "dependencies": { 850 | "fill-range": "^7.0.1" 851 | }, 852 | "engines": { 853 | "node": ">=8" 854 | } 855 | }, 856 | "node_modules/builtin-modules": { 857 | "version": "3.3.0", 858 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", 859 | "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", 860 | "dev": true, 861 | "engines": { 862 | "node": ">=6" 863 | }, 864 | "funding": { 865 | "url": "https://github.com/sponsors/sindresorhus" 866 | } 867 | }, 868 | "node_modules/callsites": { 869 | "version": "3.1.0", 870 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 871 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 872 | "dev": true, 873 | "peer": true, 874 | "engines": { 875 | "node": ">=6" 876 | } 877 | }, 878 | "node_modules/chalk": { 879 | "version": "4.1.2", 880 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 881 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 882 | "dev": true, 883 | "peer": true, 884 | "dependencies": { 885 | "ansi-styles": "^4.1.0", 886 | "supports-color": "^7.1.0" 887 | }, 888 | "engines": { 889 | "node": ">=10" 890 | }, 891 | "funding": { 892 | "url": "https://github.com/chalk/chalk?sponsor=1" 893 | } 894 | }, 895 | "node_modules/color-convert": { 896 | "version": "2.0.1", 897 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 898 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 899 | "dev": true, 900 | "peer": true, 901 | "dependencies": { 902 | "color-name": "~1.1.4" 903 | }, 904 | "engines": { 905 | "node": ">=7.0.0" 906 | } 907 | }, 908 | "node_modules/color-name": { 909 | "version": "1.1.4", 910 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 911 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 912 | "dev": true, 913 | "peer": true 914 | }, 915 | "node_modules/concat-map": { 916 | "version": "0.0.1", 917 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 918 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 919 | "dev": true, 920 | "peer": true 921 | }, 922 | "node_modules/cross-spawn": { 923 | "version": "7.0.3", 924 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", 925 | "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", 926 | "dev": true, 927 | "peer": true, 928 | "dependencies": { 929 | "path-key": "^3.1.0", 930 | "shebang-command": "^2.0.0", 931 | "which": "^2.0.1" 932 | }, 933 | "engines": { 934 | "node": ">= 8" 935 | } 936 | }, 937 | "node_modules/debug": { 938 | "version": "4.3.4", 939 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", 940 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", 941 | "dev": true, 942 | "dependencies": { 943 | "ms": "2.1.2" 944 | }, 945 | "engines": { 946 | "node": ">=6.0" 947 | }, 948 | "peerDependenciesMeta": { 949 | "supports-color": { 950 | "optional": true 951 | } 952 | } 953 | }, 954 | "node_modules/deep-is": { 955 | "version": "0.1.4", 956 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", 957 | "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", 958 | "dev": true, 959 | "peer": true 960 | }, 961 | "node_modules/dir-glob": { 962 | "version": "3.0.1", 963 | "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", 964 | "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", 965 | "dev": true, 966 | "dependencies": { 967 | "path-type": "^4.0.0" 968 | }, 969 | "engines": { 970 | "node": ">=8" 971 | } 972 | }, 973 | "node_modules/doctrine": { 974 | "version": "3.0.0", 975 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", 976 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", 977 | "dev": true, 978 | "peer": true, 979 | "dependencies": { 980 | "esutils": "^2.0.2" 981 | }, 982 | "engines": { 983 | "node": ">=6.0.0" 984 | } 985 | }, 986 | "node_modules/esbuild": { 987 | "version": "0.17.3", 988 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.3.tgz", 989 | "integrity": "sha512-9n3AsBRe6sIyOc6kmoXg2ypCLgf3eZSraWFRpnkto+svt8cZNuKTkb1bhQcitBcvIqjNiK7K0J3KPmwGSfkA8g==", 990 | "dev": true, 991 | "hasInstallScript": true, 992 | "bin": { 993 | "esbuild": "bin/esbuild" 994 | }, 995 | "engines": { 996 | "node": ">=12" 997 | }, 998 | "optionalDependencies": { 999 | "@esbuild/android-arm": "0.17.3", 1000 | "@esbuild/android-arm64": "0.17.3", 1001 | "@esbuild/android-x64": "0.17.3", 1002 | "@esbuild/darwin-arm64": "0.17.3", 1003 | "@esbuild/darwin-x64": "0.17.3", 1004 | "@esbuild/freebsd-arm64": "0.17.3", 1005 | "@esbuild/freebsd-x64": "0.17.3", 1006 | "@esbuild/linux-arm": "0.17.3", 1007 | "@esbuild/linux-arm64": "0.17.3", 1008 | "@esbuild/linux-ia32": "0.17.3", 1009 | "@esbuild/linux-loong64": "0.17.3", 1010 | "@esbuild/linux-mips64el": "0.17.3", 1011 | "@esbuild/linux-ppc64": "0.17.3", 1012 | "@esbuild/linux-riscv64": "0.17.3", 1013 | "@esbuild/linux-s390x": "0.17.3", 1014 | "@esbuild/linux-x64": "0.17.3", 1015 | "@esbuild/netbsd-x64": "0.17.3", 1016 | "@esbuild/openbsd-x64": "0.17.3", 1017 | "@esbuild/sunos-x64": "0.17.3", 1018 | "@esbuild/win32-arm64": "0.17.3", 1019 | "@esbuild/win32-ia32": "0.17.3", 1020 | "@esbuild/win32-x64": "0.17.3" 1021 | } 1022 | }, 1023 | "node_modules/escape-string-regexp": { 1024 | "version": "4.0.0", 1025 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 1026 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 1027 | "dev": true, 1028 | "peer": true, 1029 | "engines": { 1030 | "node": ">=10" 1031 | }, 1032 | "funding": { 1033 | "url": "https://github.com/sponsors/sindresorhus" 1034 | } 1035 | }, 1036 | "node_modules/eslint": { 1037 | "version": "8.42.0", 1038 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.42.0.tgz", 1039 | "integrity": "sha512-ulg9Ms6E1WPf67PHaEY4/6E2tEn5/f7FXGzr3t9cBMugOmf1INYvuUwwh1aXQN4MfJ6a5K2iNwP3w4AColvI9A==", 1040 | "dev": true, 1041 | "peer": true, 1042 | "dependencies": { 1043 | "@eslint-community/eslint-utils": "^4.2.0", 1044 | "@eslint-community/regexpp": "^4.4.0", 1045 | "@eslint/eslintrc": "^2.0.3", 1046 | "@eslint/js": "8.42.0", 1047 | "@humanwhocodes/config-array": "^0.11.10", 1048 | "@humanwhocodes/module-importer": "^1.0.1", 1049 | "@nodelib/fs.walk": "^1.2.8", 1050 | "ajv": "^6.10.0", 1051 | "chalk": "^4.0.0", 1052 | "cross-spawn": "^7.0.2", 1053 | "debug": "^4.3.2", 1054 | "doctrine": "^3.0.0", 1055 | "escape-string-regexp": "^4.0.0", 1056 | "eslint-scope": "^7.2.0", 1057 | "eslint-visitor-keys": "^3.4.1", 1058 | "espree": "^9.5.2", 1059 | "esquery": "^1.4.2", 1060 | "esutils": "^2.0.2", 1061 | "fast-deep-equal": "^3.1.3", 1062 | "file-entry-cache": "^6.0.1", 1063 | "find-up": "^5.0.0", 1064 | "glob-parent": "^6.0.2", 1065 | "globals": "^13.19.0", 1066 | "graphemer": "^1.4.0", 1067 | "ignore": "^5.2.0", 1068 | "import-fresh": "^3.0.0", 1069 | "imurmurhash": "^0.1.4", 1070 | "is-glob": "^4.0.0", 1071 | "is-path-inside": "^3.0.3", 1072 | "js-yaml": "^4.1.0", 1073 | "json-stable-stringify-without-jsonify": "^1.0.1", 1074 | "levn": "^0.4.1", 1075 | "lodash.merge": "^4.6.2", 1076 | "minimatch": "^3.1.2", 1077 | "natural-compare": "^1.4.0", 1078 | "optionator": "^0.9.1", 1079 | "strip-ansi": "^6.0.1", 1080 | "strip-json-comments": "^3.1.0", 1081 | "text-table": "^0.2.0" 1082 | }, 1083 | "bin": { 1084 | "eslint": "bin/eslint.js" 1085 | }, 1086 | "engines": { 1087 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1088 | }, 1089 | "funding": { 1090 | "url": "https://opencollective.com/eslint" 1091 | } 1092 | }, 1093 | "node_modules/eslint-scope": { 1094 | "version": "5.1.1", 1095 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", 1096 | "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", 1097 | "dev": true, 1098 | "dependencies": { 1099 | "esrecurse": "^4.3.0", 1100 | "estraverse": "^4.1.1" 1101 | }, 1102 | "engines": { 1103 | "node": ">=8.0.0" 1104 | } 1105 | }, 1106 | "node_modules/eslint-utils": { 1107 | "version": "3.0.0", 1108 | "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", 1109 | "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", 1110 | "dev": true, 1111 | "dependencies": { 1112 | "eslint-visitor-keys": "^2.0.0" 1113 | }, 1114 | "engines": { 1115 | "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" 1116 | }, 1117 | "funding": { 1118 | "url": "https://github.com/sponsors/mysticatea" 1119 | }, 1120 | "peerDependencies": { 1121 | "eslint": ">=5" 1122 | } 1123 | }, 1124 | "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { 1125 | "version": "2.1.0", 1126 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", 1127 | "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", 1128 | "dev": true, 1129 | "engines": { 1130 | "node": ">=10" 1131 | } 1132 | }, 1133 | "node_modules/eslint-visitor-keys": { 1134 | "version": "3.4.1", 1135 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", 1136 | "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", 1137 | "dev": true, 1138 | "engines": { 1139 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1140 | }, 1141 | "funding": { 1142 | "url": "https://opencollective.com/eslint" 1143 | } 1144 | }, 1145 | "node_modules/eslint/node_modules/eslint-scope": { 1146 | "version": "7.2.0", 1147 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", 1148 | "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", 1149 | "dev": true, 1150 | "peer": true, 1151 | "dependencies": { 1152 | "esrecurse": "^4.3.0", 1153 | "estraverse": "^5.2.0" 1154 | }, 1155 | "engines": { 1156 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1157 | }, 1158 | "funding": { 1159 | "url": "https://opencollective.com/eslint" 1160 | } 1161 | }, 1162 | "node_modules/eslint/node_modules/estraverse": { 1163 | "version": "5.3.0", 1164 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1165 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1166 | "dev": true, 1167 | "peer": true, 1168 | "engines": { 1169 | "node": ">=4.0" 1170 | } 1171 | }, 1172 | "node_modules/espree": { 1173 | "version": "9.5.2", 1174 | "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", 1175 | "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", 1176 | "dev": true, 1177 | "peer": true, 1178 | "dependencies": { 1179 | "acorn": "^8.8.0", 1180 | "acorn-jsx": "^5.3.2", 1181 | "eslint-visitor-keys": "^3.4.1" 1182 | }, 1183 | "engines": { 1184 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1185 | }, 1186 | "funding": { 1187 | "url": "https://opencollective.com/eslint" 1188 | } 1189 | }, 1190 | "node_modules/esquery": { 1191 | "version": "1.5.0", 1192 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", 1193 | "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", 1194 | "dev": true, 1195 | "peer": true, 1196 | "dependencies": { 1197 | "estraverse": "^5.1.0" 1198 | }, 1199 | "engines": { 1200 | "node": ">=0.10" 1201 | } 1202 | }, 1203 | "node_modules/esquery/node_modules/estraverse": { 1204 | "version": "5.3.0", 1205 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1206 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1207 | "dev": true, 1208 | "peer": true, 1209 | "engines": { 1210 | "node": ">=4.0" 1211 | } 1212 | }, 1213 | "node_modules/esrecurse": { 1214 | "version": "4.3.0", 1215 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", 1216 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", 1217 | "dev": true, 1218 | "dependencies": { 1219 | "estraverse": "^5.2.0" 1220 | }, 1221 | "engines": { 1222 | "node": ">=4.0" 1223 | } 1224 | }, 1225 | "node_modules/esrecurse/node_modules/estraverse": { 1226 | "version": "5.3.0", 1227 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1228 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1229 | "dev": true, 1230 | "engines": { 1231 | "node": ">=4.0" 1232 | } 1233 | }, 1234 | "node_modules/estraverse": { 1235 | "version": "4.3.0", 1236 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", 1237 | "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", 1238 | "dev": true, 1239 | "engines": { 1240 | "node": ">=4.0" 1241 | } 1242 | }, 1243 | "node_modules/esutils": { 1244 | "version": "2.0.3", 1245 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 1246 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 1247 | "dev": true, 1248 | "peer": true, 1249 | "engines": { 1250 | "node": ">=0.10.0" 1251 | } 1252 | }, 1253 | "node_modules/fast-deep-equal": { 1254 | "version": "3.1.3", 1255 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 1256 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 1257 | "dev": true, 1258 | "peer": true 1259 | }, 1260 | "node_modules/fast-glob": { 1261 | "version": "3.2.12", 1262 | "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", 1263 | "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", 1264 | "dev": true, 1265 | "dependencies": { 1266 | "@nodelib/fs.stat": "^2.0.2", 1267 | "@nodelib/fs.walk": "^1.2.3", 1268 | "glob-parent": "^5.1.2", 1269 | "merge2": "^1.3.0", 1270 | "micromatch": "^4.0.4" 1271 | }, 1272 | "engines": { 1273 | "node": ">=8.6.0" 1274 | } 1275 | }, 1276 | "node_modules/fast-glob/node_modules/glob-parent": { 1277 | "version": "5.1.2", 1278 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 1279 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 1280 | "dev": true, 1281 | "dependencies": { 1282 | "is-glob": "^4.0.1" 1283 | }, 1284 | "engines": { 1285 | "node": ">= 6" 1286 | } 1287 | }, 1288 | "node_modules/fast-json-stable-stringify": { 1289 | "version": "2.1.0", 1290 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 1291 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 1292 | "dev": true, 1293 | "peer": true 1294 | }, 1295 | "node_modules/fast-levenshtein": { 1296 | "version": "2.0.6", 1297 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 1298 | "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", 1299 | "dev": true, 1300 | "peer": true 1301 | }, 1302 | "node_modules/fastq": { 1303 | "version": "1.15.0", 1304 | "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", 1305 | "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", 1306 | "dev": true, 1307 | "dependencies": { 1308 | "reusify": "^1.0.4" 1309 | } 1310 | }, 1311 | "node_modules/file-entry-cache": { 1312 | "version": "6.0.1", 1313 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", 1314 | "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", 1315 | "dev": true, 1316 | "peer": true, 1317 | "dependencies": { 1318 | "flat-cache": "^3.0.4" 1319 | }, 1320 | "engines": { 1321 | "node": "^10.12.0 || >=12.0.0" 1322 | } 1323 | }, 1324 | "node_modules/fill-range": { 1325 | "version": "7.0.1", 1326 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 1327 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 1328 | "dev": true, 1329 | "dependencies": { 1330 | "to-regex-range": "^5.0.1" 1331 | }, 1332 | "engines": { 1333 | "node": ">=8" 1334 | } 1335 | }, 1336 | "node_modules/find-up": { 1337 | "version": "5.0.0", 1338 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 1339 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 1340 | "dev": true, 1341 | "peer": true, 1342 | "dependencies": { 1343 | "locate-path": "^6.0.0", 1344 | "path-exists": "^4.0.0" 1345 | }, 1346 | "engines": { 1347 | "node": ">=10" 1348 | }, 1349 | "funding": { 1350 | "url": "https://github.com/sponsors/sindresorhus" 1351 | } 1352 | }, 1353 | "node_modules/flat-cache": { 1354 | "version": "3.0.4", 1355 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", 1356 | "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", 1357 | "dev": true, 1358 | "peer": true, 1359 | "dependencies": { 1360 | "flatted": "^3.1.0", 1361 | "rimraf": "^3.0.2" 1362 | }, 1363 | "engines": { 1364 | "node": "^10.12.0 || >=12.0.0" 1365 | } 1366 | }, 1367 | "node_modules/flatted": { 1368 | "version": "3.2.7", 1369 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", 1370 | "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", 1371 | "dev": true, 1372 | "peer": true 1373 | }, 1374 | "node_modules/fs.realpath": { 1375 | "version": "1.0.0", 1376 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1377 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", 1378 | "dev": true, 1379 | "peer": true 1380 | }, 1381 | "node_modules/functional-red-black-tree": { 1382 | "version": "1.0.1", 1383 | "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", 1384 | "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", 1385 | "dev": true 1386 | }, 1387 | "node_modules/glob": { 1388 | "version": "7.2.3", 1389 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 1390 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 1391 | "dev": true, 1392 | "peer": true, 1393 | "dependencies": { 1394 | "fs.realpath": "^1.0.0", 1395 | "inflight": "^1.0.4", 1396 | "inherits": "2", 1397 | "minimatch": "^3.1.1", 1398 | "once": "^1.3.0", 1399 | "path-is-absolute": "^1.0.0" 1400 | }, 1401 | "engines": { 1402 | "node": "*" 1403 | }, 1404 | "funding": { 1405 | "url": "https://github.com/sponsors/isaacs" 1406 | } 1407 | }, 1408 | "node_modules/glob-parent": { 1409 | "version": "6.0.2", 1410 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", 1411 | "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", 1412 | "dev": true, 1413 | "peer": true, 1414 | "dependencies": { 1415 | "is-glob": "^4.0.3" 1416 | }, 1417 | "engines": { 1418 | "node": ">=10.13.0" 1419 | } 1420 | }, 1421 | "node_modules/globals": { 1422 | "version": "13.20.0", 1423 | "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", 1424 | "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", 1425 | "dev": true, 1426 | "peer": true, 1427 | "dependencies": { 1428 | "type-fest": "^0.20.2" 1429 | }, 1430 | "engines": { 1431 | "node": ">=8" 1432 | }, 1433 | "funding": { 1434 | "url": "https://github.com/sponsors/sindresorhus" 1435 | } 1436 | }, 1437 | "node_modules/globby": { 1438 | "version": "11.1.0", 1439 | "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", 1440 | "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", 1441 | "dev": true, 1442 | "dependencies": { 1443 | "array-union": "^2.1.0", 1444 | "dir-glob": "^3.0.1", 1445 | "fast-glob": "^3.2.9", 1446 | "ignore": "^5.2.0", 1447 | "merge2": "^1.4.1", 1448 | "slash": "^3.0.0" 1449 | }, 1450 | "engines": { 1451 | "node": ">=10" 1452 | }, 1453 | "funding": { 1454 | "url": "https://github.com/sponsors/sindresorhus" 1455 | } 1456 | }, 1457 | "node_modules/graphemer": { 1458 | "version": "1.4.0", 1459 | "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", 1460 | "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", 1461 | "dev": true, 1462 | "peer": true 1463 | }, 1464 | "node_modules/has-flag": { 1465 | "version": "4.0.0", 1466 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1467 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1468 | "dev": true, 1469 | "peer": true, 1470 | "engines": { 1471 | "node": ">=8" 1472 | } 1473 | }, 1474 | "node_modules/ignore": { 1475 | "version": "5.2.4", 1476 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", 1477 | "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", 1478 | "dev": true, 1479 | "engines": { 1480 | "node": ">= 4" 1481 | } 1482 | }, 1483 | "node_modules/import-fresh": { 1484 | "version": "3.3.0", 1485 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", 1486 | "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", 1487 | "dev": true, 1488 | "peer": true, 1489 | "dependencies": { 1490 | "parent-module": "^1.0.0", 1491 | "resolve-from": "^4.0.0" 1492 | }, 1493 | "engines": { 1494 | "node": ">=6" 1495 | }, 1496 | "funding": { 1497 | "url": "https://github.com/sponsors/sindresorhus" 1498 | } 1499 | }, 1500 | "node_modules/imurmurhash": { 1501 | "version": "0.1.4", 1502 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 1503 | "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", 1504 | "dev": true, 1505 | "peer": true, 1506 | "engines": { 1507 | "node": ">=0.8.19" 1508 | } 1509 | }, 1510 | "node_modules/inflight": { 1511 | "version": "1.0.6", 1512 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1513 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 1514 | "dev": true, 1515 | "peer": true, 1516 | "dependencies": { 1517 | "once": "^1.3.0", 1518 | "wrappy": "1" 1519 | } 1520 | }, 1521 | "node_modules/inherits": { 1522 | "version": "2.0.4", 1523 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1524 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1525 | "dev": true, 1526 | "peer": true 1527 | }, 1528 | "node_modules/is-extglob": { 1529 | "version": "2.1.1", 1530 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1531 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 1532 | "dev": true, 1533 | "engines": { 1534 | "node": ">=0.10.0" 1535 | } 1536 | }, 1537 | "node_modules/is-glob": { 1538 | "version": "4.0.3", 1539 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 1540 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1541 | "dev": true, 1542 | "dependencies": { 1543 | "is-extglob": "^2.1.1" 1544 | }, 1545 | "engines": { 1546 | "node": ">=0.10.0" 1547 | } 1548 | }, 1549 | "node_modules/is-number": { 1550 | "version": "7.0.0", 1551 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1552 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1553 | "dev": true, 1554 | "engines": { 1555 | "node": ">=0.12.0" 1556 | } 1557 | }, 1558 | "node_modules/is-path-inside": { 1559 | "version": "3.0.3", 1560 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", 1561 | "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", 1562 | "dev": true, 1563 | "peer": true, 1564 | "engines": { 1565 | "node": ">=8" 1566 | } 1567 | }, 1568 | "node_modules/isexe": { 1569 | "version": "2.0.0", 1570 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1571 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 1572 | "dev": true, 1573 | "peer": true 1574 | }, 1575 | "node_modules/js-yaml": { 1576 | "version": "4.1.0", 1577 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 1578 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 1579 | "dev": true, 1580 | "peer": true, 1581 | "dependencies": { 1582 | "argparse": "^2.0.1" 1583 | }, 1584 | "bin": { 1585 | "js-yaml": "bin/js-yaml.js" 1586 | } 1587 | }, 1588 | "node_modules/json-schema-traverse": { 1589 | "version": "0.4.1", 1590 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 1591 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 1592 | "dev": true, 1593 | "peer": true 1594 | }, 1595 | "node_modules/json-stable-stringify-without-jsonify": { 1596 | "version": "1.0.1", 1597 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", 1598 | "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", 1599 | "dev": true, 1600 | "peer": true 1601 | }, 1602 | "node_modules/levn": { 1603 | "version": "0.4.1", 1604 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", 1605 | "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", 1606 | "dev": true, 1607 | "peer": true, 1608 | "dependencies": { 1609 | "prelude-ls": "^1.2.1", 1610 | "type-check": "~0.4.0" 1611 | }, 1612 | "engines": { 1613 | "node": ">= 0.8.0" 1614 | } 1615 | }, 1616 | "node_modules/locate-path": { 1617 | "version": "6.0.0", 1618 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 1619 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 1620 | "dev": true, 1621 | "peer": true, 1622 | "dependencies": { 1623 | "p-locate": "^5.0.0" 1624 | }, 1625 | "engines": { 1626 | "node": ">=10" 1627 | }, 1628 | "funding": { 1629 | "url": "https://github.com/sponsors/sindresorhus" 1630 | } 1631 | }, 1632 | "node_modules/lodash.merge": { 1633 | "version": "4.6.2", 1634 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", 1635 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", 1636 | "dev": true, 1637 | "peer": true 1638 | }, 1639 | "node_modules/lru-cache": { 1640 | "version": "6.0.0", 1641 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 1642 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 1643 | "dev": true, 1644 | "dependencies": { 1645 | "yallist": "^4.0.0" 1646 | }, 1647 | "engines": { 1648 | "node": ">=10" 1649 | } 1650 | }, 1651 | "node_modules/merge2": { 1652 | "version": "1.4.1", 1653 | "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", 1654 | "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", 1655 | "dev": true, 1656 | "engines": { 1657 | "node": ">= 8" 1658 | } 1659 | }, 1660 | "node_modules/micromatch": { 1661 | "version": "4.0.5", 1662 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", 1663 | "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", 1664 | "dev": true, 1665 | "dependencies": { 1666 | "braces": "^3.0.2", 1667 | "picomatch": "^2.3.1" 1668 | }, 1669 | "engines": { 1670 | "node": ">=8.6" 1671 | } 1672 | }, 1673 | "node_modules/minimatch": { 1674 | "version": "3.1.2", 1675 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1676 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1677 | "dev": true, 1678 | "peer": true, 1679 | "dependencies": { 1680 | "brace-expansion": "^1.1.7" 1681 | }, 1682 | "engines": { 1683 | "node": "*" 1684 | } 1685 | }, 1686 | "node_modules/moment": { 1687 | "version": "2.29.4", 1688 | "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", 1689 | "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", 1690 | "dev": true, 1691 | "engines": { 1692 | "node": "*" 1693 | } 1694 | }, 1695 | "node_modules/ms": { 1696 | "version": "2.1.2", 1697 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1698 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1699 | "dev": true 1700 | }, 1701 | "node_modules/natural-compare": { 1702 | "version": "1.4.0", 1703 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 1704 | "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", 1705 | "dev": true, 1706 | "peer": true 1707 | }, 1708 | "node_modules/obsidian": { 1709 | "version": "1.2.8", 1710 | "resolved": "https://registry.npmjs.org/obsidian/-/obsidian-1.2.8.tgz", 1711 | "integrity": "sha512-HrC+feA8o0tXspj4lEAqxb1btwLwHD2oHXSwbbN+CdRHURqbCkuIDLld+nkuyJ1w1c9uvVDRVk8BoeOnWheOrQ==", 1712 | "dev": true, 1713 | "dependencies": { 1714 | "@types/codemirror": "0.0.108", 1715 | "moment": "2.29.4" 1716 | }, 1717 | "peerDependencies": { 1718 | "@codemirror/state": "^6.0.0", 1719 | "@codemirror/view": "^6.0.0" 1720 | } 1721 | }, 1722 | "node_modules/once": { 1723 | "version": "1.4.0", 1724 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1725 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 1726 | "dev": true, 1727 | "peer": true, 1728 | "dependencies": { 1729 | "wrappy": "1" 1730 | } 1731 | }, 1732 | "node_modules/optionator": { 1733 | "version": "0.9.1", 1734 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", 1735 | "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", 1736 | "dev": true, 1737 | "peer": true, 1738 | "dependencies": { 1739 | "deep-is": "^0.1.3", 1740 | "fast-levenshtein": "^2.0.6", 1741 | "levn": "^0.4.1", 1742 | "prelude-ls": "^1.2.1", 1743 | "type-check": "^0.4.0", 1744 | "word-wrap": "^1.2.3" 1745 | }, 1746 | "engines": { 1747 | "node": ">= 0.8.0" 1748 | } 1749 | }, 1750 | "node_modules/p-limit": { 1751 | "version": "3.1.0", 1752 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 1753 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 1754 | "dev": true, 1755 | "peer": true, 1756 | "dependencies": { 1757 | "yocto-queue": "^0.1.0" 1758 | }, 1759 | "engines": { 1760 | "node": ">=10" 1761 | }, 1762 | "funding": { 1763 | "url": "https://github.com/sponsors/sindresorhus" 1764 | } 1765 | }, 1766 | "node_modules/p-locate": { 1767 | "version": "5.0.0", 1768 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 1769 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 1770 | "dev": true, 1771 | "peer": true, 1772 | "dependencies": { 1773 | "p-limit": "^3.0.2" 1774 | }, 1775 | "engines": { 1776 | "node": ">=10" 1777 | }, 1778 | "funding": { 1779 | "url": "https://github.com/sponsors/sindresorhus" 1780 | } 1781 | }, 1782 | "node_modules/parent-module": { 1783 | "version": "1.0.1", 1784 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 1785 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 1786 | "dev": true, 1787 | "peer": true, 1788 | "dependencies": { 1789 | "callsites": "^3.0.0" 1790 | }, 1791 | "engines": { 1792 | "node": ">=6" 1793 | } 1794 | }, 1795 | "node_modules/path-exists": { 1796 | "version": "4.0.0", 1797 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 1798 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 1799 | "dev": true, 1800 | "peer": true, 1801 | "engines": { 1802 | "node": ">=8" 1803 | } 1804 | }, 1805 | "node_modules/path-is-absolute": { 1806 | "version": "1.0.1", 1807 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1808 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 1809 | "dev": true, 1810 | "peer": true, 1811 | "engines": { 1812 | "node": ">=0.10.0" 1813 | } 1814 | }, 1815 | "node_modules/path-key": { 1816 | "version": "3.1.1", 1817 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 1818 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 1819 | "dev": true, 1820 | "peer": true, 1821 | "engines": { 1822 | "node": ">=8" 1823 | } 1824 | }, 1825 | "node_modules/path-type": { 1826 | "version": "4.0.0", 1827 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", 1828 | "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", 1829 | "dev": true, 1830 | "engines": { 1831 | "node": ">=8" 1832 | } 1833 | }, 1834 | "node_modules/picomatch": { 1835 | "version": "2.3.1", 1836 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1837 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1838 | "dev": true, 1839 | "engines": { 1840 | "node": ">=8.6" 1841 | }, 1842 | "funding": { 1843 | "url": "https://github.com/sponsors/jonschlinkert" 1844 | } 1845 | }, 1846 | "node_modules/prelude-ls": { 1847 | "version": "1.2.1", 1848 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", 1849 | "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", 1850 | "dev": true, 1851 | "peer": true, 1852 | "engines": { 1853 | "node": ">= 0.8.0" 1854 | } 1855 | }, 1856 | "node_modules/punycode": { 1857 | "version": "2.3.0", 1858 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", 1859 | "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", 1860 | "dev": true, 1861 | "peer": true, 1862 | "engines": { 1863 | "node": ">=6" 1864 | } 1865 | }, 1866 | "node_modules/queue-microtask": { 1867 | "version": "1.2.3", 1868 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", 1869 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", 1870 | "dev": true, 1871 | "funding": [ 1872 | { 1873 | "type": "github", 1874 | "url": "https://github.com/sponsors/feross" 1875 | }, 1876 | { 1877 | "type": "patreon", 1878 | "url": "https://www.patreon.com/feross" 1879 | }, 1880 | { 1881 | "type": "consulting", 1882 | "url": "https://feross.org/support" 1883 | } 1884 | ] 1885 | }, 1886 | "node_modules/regexpp": { 1887 | "version": "3.2.0", 1888 | "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", 1889 | "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", 1890 | "dev": true, 1891 | "engines": { 1892 | "node": ">=8" 1893 | }, 1894 | "funding": { 1895 | "url": "https://github.com/sponsors/mysticatea" 1896 | } 1897 | }, 1898 | "node_modules/resolve-from": { 1899 | "version": "4.0.0", 1900 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 1901 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 1902 | "dev": true, 1903 | "peer": true, 1904 | "engines": { 1905 | "node": ">=4" 1906 | } 1907 | }, 1908 | "node_modules/reusify": { 1909 | "version": "1.0.4", 1910 | "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", 1911 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", 1912 | "dev": true, 1913 | "engines": { 1914 | "iojs": ">=1.0.0", 1915 | "node": ">=0.10.0" 1916 | } 1917 | }, 1918 | "node_modules/rimraf": { 1919 | "version": "3.0.2", 1920 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", 1921 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", 1922 | "dev": true, 1923 | "peer": true, 1924 | "dependencies": { 1925 | "glob": "^7.1.3" 1926 | }, 1927 | "bin": { 1928 | "rimraf": "bin.js" 1929 | }, 1930 | "funding": { 1931 | "url": "https://github.com/sponsors/isaacs" 1932 | } 1933 | }, 1934 | "node_modules/run-parallel": { 1935 | "version": "1.2.0", 1936 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", 1937 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", 1938 | "dev": true, 1939 | "funding": [ 1940 | { 1941 | "type": "github", 1942 | "url": "https://github.com/sponsors/feross" 1943 | }, 1944 | { 1945 | "type": "patreon", 1946 | "url": "https://www.patreon.com/feross" 1947 | }, 1948 | { 1949 | "type": "consulting", 1950 | "url": "https://feross.org/support" 1951 | } 1952 | ], 1953 | "dependencies": { 1954 | "queue-microtask": "^1.2.2" 1955 | } 1956 | }, 1957 | "node_modules/semver": { 1958 | "version": "7.5.1", 1959 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", 1960 | "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", 1961 | "dev": true, 1962 | "dependencies": { 1963 | "lru-cache": "^6.0.0" 1964 | }, 1965 | "bin": { 1966 | "semver": "bin/semver.js" 1967 | }, 1968 | "engines": { 1969 | "node": ">=10" 1970 | } 1971 | }, 1972 | "node_modules/shebang-command": { 1973 | "version": "2.0.0", 1974 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 1975 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 1976 | "dev": true, 1977 | "peer": true, 1978 | "dependencies": { 1979 | "shebang-regex": "^3.0.0" 1980 | }, 1981 | "engines": { 1982 | "node": ">=8" 1983 | } 1984 | }, 1985 | "node_modules/shebang-regex": { 1986 | "version": "3.0.0", 1987 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 1988 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 1989 | "dev": true, 1990 | "peer": true, 1991 | "engines": { 1992 | "node": ">=8" 1993 | } 1994 | }, 1995 | "node_modules/slash": { 1996 | "version": "3.0.0", 1997 | "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", 1998 | "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", 1999 | "dev": true, 2000 | "engines": { 2001 | "node": ">=8" 2002 | } 2003 | }, 2004 | "node_modules/strip-ansi": { 2005 | "version": "6.0.1", 2006 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2007 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2008 | "dev": true, 2009 | "peer": true, 2010 | "dependencies": { 2011 | "ansi-regex": "^5.0.1" 2012 | }, 2013 | "engines": { 2014 | "node": ">=8" 2015 | } 2016 | }, 2017 | "node_modules/strip-json-comments": { 2018 | "version": "3.1.1", 2019 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 2020 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 2021 | "dev": true, 2022 | "peer": true, 2023 | "engines": { 2024 | "node": ">=8" 2025 | }, 2026 | "funding": { 2027 | "url": "https://github.com/sponsors/sindresorhus" 2028 | } 2029 | }, 2030 | "node_modules/style-mod": { 2031 | "version": "4.0.3", 2032 | "resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.0.3.tgz", 2033 | "integrity": "sha512-78Jv8kYJdjbvRwwijtCevYADfsI0lGzYJe4mMFdceO8l75DFFDoqBhR1jVDicDRRaX4//g1u9wKeo+ztc2h1Rw==", 2034 | "dev": true, 2035 | "peer": true 2036 | }, 2037 | "node_modules/supports-color": { 2038 | "version": "7.2.0", 2039 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 2040 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 2041 | "dev": true, 2042 | "peer": true, 2043 | "dependencies": { 2044 | "has-flag": "^4.0.0" 2045 | }, 2046 | "engines": { 2047 | "node": ">=8" 2048 | } 2049 | }, 2050 | "node_modules/text-table": { 2051 | "version": "0.2.0", 2052 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", 2053 | "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", 2054 | "dev": true, 2055 | "peer": true 2056 | }, 2057 | "node_modules/to-regex-range": { 2058 | "version": "5.0.1", 2059 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 2060 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 2061 | "dev": true, 2062 | "dependencies": { 2063 | "is-number": "^7.0.0" 2064 | }, 2065 | "engines": { 2066 | "node": ">=8.0" 2067 | } 2068 | }, 2069 | "node_modules/tslib": { 2070 | "version": "2.4.0", 2071 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", 2072 | "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", 2073 | "dev": true 2074 | }, 2075 | "node_modules/tsutils": { 2076 | "version": "3.21.0", 2077 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", 2078 | "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", 2079 | "dev": true, 2080 | "dependencies": { 2081 | "tslib": "^1.8.1" 2082 | }, 2083 | "engines": { 2084 | "node": ">= 6" 2085 | }, 2086 | "peerDependencies": { 2087 | "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" 2088 | } 2089 | }, 2090 | "node_modules/tsutils/node_modules/tslib": { 2091 | "version": "1.14.1", 2092 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 2093 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", 2094 | "dev": true 2095 | }, 2096 | "node_modules/type-check": { 2097 | "version": "0.4.0", 2098 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", 2099 | "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", 2100 | "dev": true, 2101 | "peer": true, 2102 | "dependencies": { 2103 | "prelude-ls": "^1.2.1" 2104 | }, 2105 | "engines": { 2106 | "node": ">= 0.8.0" 2107 | } 2108 | }, 2109 | "node_modules/type-fest": { 2110 | "version": "0.20.2", 2111 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", 2112 | "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", 2113 | "dev": true, 2114 | "peer": true, 2115 | "engines": { 2116 | "node": ">=10" 2117 | }, 2118 | "funding": { 2119 | "url": "https://github.com/sponsors/sindresorhus" 2120 | } 2121 | }, 2122 | "node_modules/typescript": { 2123 | "version": "4.7.4", 2124 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", 2125 | "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", 2126 | "dev": true, 2127 | "bin": { 2128 | "tsc": "bin/tsc", 2129 | "tsserver": "bin/tsserver" 2130 | }, 2131 | "engines": { 2132 | "node": ">=4.2.0" 2133 | } 2134 | }, 2135 | "node_modules/uri-js": { 2136 | "version": "4.4.1", 2137 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 2138 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 2139 | "dev": true, 2140 | "peer": true, 2141 | "dependencies": { 2142 | "punycode": "^2.1.0" 2143 | } 2144 | }, 2145 | "node_modules/w3c-keyname": { 2146 | "version": "2.2.8", 2147 | "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz", 2148 | "integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==", 2149 | "dev": true, 2150 | "peer": true 2151 | }, 2152 | "node_modules/which": { 2153 | "version": "2.0.2", 2154 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 2155 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 2156 | "dev": true, 2157 | "peer": true, 2158 | "dependencies": { 2159 | "isexe": "^2.0.0" 2160 | }, 2161 | "bin": { 2162 | "node-which": "bin/node-which" 2163 | }, 2164 | "engines": { 2165 | "node": ">= 8" 2166 | } 2167 | }, 2168 | "node_modules/word-wrap": { 2169 | "version": "1.2.3", 2170 | "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", 2171 | "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", 2172 | "dev": true, 2173 | "peer": true, 2174 | "engines": { 2175 | "node": ">=0.10.0" 2176 | } 2177 | }, 2178 | "node_modules/wrappy": { 2179 | "version": "1.0.2", 2180 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2181 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 2182 | "dev": true, 2183 | "peer": true 2184 | }, 2185 | "node_modules/yallist": { 2186 | "version": "4.0.0", 2187 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 2188 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", 2189 | "dev": true 2190 | }, 2191 | "node_modules/yocto-queue": { 2192 | "version": "0.1.0", 2193 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 2194 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 2195 | "dev": true, 2196 | "peer": true, 2197 | "engines": { 2198 | "node": ">=10" 2199 | }, 2200 | "funding": { 2201 | "url": "https://github.com/sponsors/sindresorhus" 2202 | } 2203 | } 2204 | } 2205 | } 2206 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "auto-hyperlink", 3 | "version": "0.4.2", 4 | "description": "Insert hyperlink according to user-defined rule", 5 | "main": "main.js", 6 | "scripts": { 7 | "dev": "node esbuild.config.mjs", 8 | "build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production", 9 | "version": "node version-bump.mjs && git add manifest.json versions.json" 10 | }, 11 | "keywords": [], 12 | "author": "", 13 | "license": "MIT", 14 | "devDependencies": { 15 | "@types/node": "^16.11.6", 16 | "@typescript-eslint/eslint-plugin": "5.29.0", 17 | "@typescript-eslint/parser": "5.29.0", 18 | "builtin-modules": "3.3.0", 19 | "esbuild": "0.17.3", 20 | "obsidian": "latest", 21 | "tslib": "2.4.0", 22 | "typescript": "4.7.4" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /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 | 10 | .json-parse-error { 11 | color:yellow; 12 | } 13 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "inlineSourceMap": true, 5 | "inlineSources": true, 6 | "module": "ESNext", 7 | "target": "ES6", 8 | "allowJs": true, 9 | "noImplicitAny": true, 10 | "moduleResolution": "node", 11 | "importHelpers": true, 12 | "isolatedModules": true, 13 | "strictNullChecks": true, 14 | "lib": [ 15 | "DOM", 16 | "ES5", 17 | "ES6", 18 | "ES7" 19 | ] 20 | }, 21 | "include": [ 22 | "**/*.ts" 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /version-bump.mjs: -------------------------------------------------------------------------------- 1 | import { readFileSync, writeFileSync } from "fs"; 2 | 3 | const targetVersion = process.env.npm_package_version; 4 | 5 | // read minAppVersion from manifest.json and bump version to target version 6 | let manifest = JSON.parse(readFileSync("manifest.json", "utf8")); 7 | const { minAppVersion } = manifest; 8 | manifest.version = targetVersion; 9 | writeFileSync("manifest.json", JSON.stringify(manifest, null, "\t")); 10 | 11 | // update versions.json with target version and minAppVersion from manifest.json 12 | let versions = JSON.parse(readFileSync("versions.json", "utf8")); 13 | versions[targetVersion] = minAppVersion; 14 | writeFileSync("versions.json", JSON.stringify(versions, null, "\t")); 15 | -------------------------------------------------------------------------------- /versions.json: -------------------------------------------------------------------------------- 1 | { 2 | "1.0.0": "0.15.0" 3 | } 4 | --------------------------------------------------------------------------------