diff --git a/.editorconfig b/.editorconfig index ebe51d3..53b061a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,6 +1,3 @@ -# EditorConfig is awesome: https://EditorConfig.org - -# top-most EditorConfig file root = true [*] @@ -8,5 +5,5 @@ indent_style = space indent_size = 2 end_of_line = lf charset = utf-8 -trim_trailing_whitespace = false -insert_final_newline = false \ No newline at end of file +trim_trailing_whitespace = true +insert_final_newline = true \ No newline at end of file diff --git a/.gitattributes b/.gitattributes index 17f3b34..29691ca 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,218 +1,13 @@ -# From https://github.com/gitattributes/gitattributes/blob/master/Web.gitattributes -## GITATTRIBUTES FOR WEB PROJECTS -# -# These settings are for any web project. -# -# Details per file setting: -# text These files should be normalized (i.e. convert CRLF to LF). -# binary These files are binary and should be left untouched. -# -# Note that binary is a macro for -text -diff. -###################################################################### - -# Auto detect -## Handle line endings automatically for files detected as -## text and leave all files detected as binary untouched. -## This will handle all files NOT defined below. -* text=auto - -# Source code -*.bash text eol=lf -*.bat text eol=crlf -*.cmd text eol=crlf -*.coffee text -*.css text diff=css -*.htm text diff=html -*.html text diff=html -*.inc text -*.ini text -*.js text -*.mjs text -*.cjs text -*.json text -*.jsx text -*.less text -*.ls text -*.map text -diff -*.od text -*.onlydata text -*.php text diff=php -*.pl text -*.ps1 text eol=crlf -*.py text diff=python -*.rb text diff=ruby -*.sass text -*.scm text -*.scss text diff=css -*.sh text eol=lf -.husky/* text eol=lf -*.sql text -*.styl text -*.tag text -*.ts text -*.tsx text -*.xml text -*.xhtml text diff=html - -# Docker -Dockerfile text - -# Documentation -*.ipynb text eol=lf -*.markdown text diff=markdown -*.md text diff=markdown -*.mdwn text diff=markdown -*.mdown text diff=markdown -*.mkd text diff=markdown -*.mkdn text diff=markdown -*.mdtxt text -*.mdtext text -*.txt text -AUTHORS text -CHANGELOG text -CHANGES text -CONTRIBUTING text -COPYING text -copyright text -*COPYRIGHT* text -INSTALL text -license text -LICENSE text -NEWS text -readme text -*README* text -TODO text - -# Templates -*.dot text -*.ejs text -*.erb text -*.haml text -*.handlebars text -*.hbs text -*.hbt text -*.jade text -*.latte text -*.mustache text -*.njk text -*.phtml text -*.svelte text -*.tmpl text -*.tpl text -*.twig text -*.vue text - -# Configs -*.cnf text -*.conf text -*.config text -.editorconfig text -.env text -.gitattributes text -.gitconfig text -.htaccess text -*.lock text -diff -package.json text eol=lf -package-lock.json text eol=lf -diff -pnpm-lock.yaml text eol=lf -diff -.prettierrc text -yarn.lock text -diff -*.toml text -*.yaml text -*.yml text -browserslist text -Makefile text -makefile text -# Fixes syntax highlighting on GitHub to allow comments -tsconfig.json linguist-language=JSON-with-Comments - -# Heroku -Procfile text - -# Graphics -*.ai binary -*.bmp binary -*.eps binary -*.gif binary -*.gifv binary -*.ico binary -*.jng binary -*.jp2 binary -*.jpg binary -*.jpeg binary -*.jpx binary -*.jxr binary -*.pdf binary -*.png binary -*.psb binary -*.psd binary -# SVG treated as an asset (binary) by default. -*.svg text -# If you want to treat it as binary, -# use the following line instead. -# *.svg binary -*.svgz binary -*.tif binary -*.tiff binary -*.wbmp binary -*.webp binary - -# Audio -*.kar binary -*.m4a binary -*.mid binary -*.midi binary -*.mp3 binary -*.ogg binary -*.ra binary - -# Video -*.3gpp binary -*.3gp binary -*.as binary -*.asf binary -*.asx binary -*.avi binary -*.fla binary -*.flv binary -*.m4v binary -*.mng binary -*.mov binary -*.mp4 binary -*.mpeg binary -*.mpg binary -*.ogv binary -*.swc binary -*.swf binary -*.webm binary - -# Archives -*.7z binary -*.gz binary -*.jar binary -*.rar binary -*.tar binary -*.zip binary - -# Fonts -*.ttf binary -*.eot binary -*.otf binary -*.woff binary -*.woff2 binary - -# Executables -*.exe binary -*.pyc binary -# Prevents massive diffs caused by vendored, minified files -**/.yarn/releases/** binary -**/.yarn/plugins/** binary - -# RC files (like .babelrc or .eslintrc) -*.*rc text - -# Ignore files (like .npmignore or .gitignore) -*.*ignore text - -# Prevents massive diffs from built files -dist/* binary \ No newline at end of file +# Disable LF normalization for all files +# Use LF as EOL for all files +# Use UTF-8 encoding for all files +# Enable IDENT support +# Enable whitespace checks +* -text eol=LF encoding=UTF-8 ident whitespace=space-before-tab,-indent-with-non-tab,tab-in-indent,trailing-space,-cr-at-eol + +# Enable diff drivers +*.md diff=markdown +*.py diff=python +*.cfg diff=cfg +.gitconfig diff=cfg +.gitattributes diff=attr diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000..8710f20 --- /dev/null +++ b/.gitconfig @@ -0,0 +1,79 @@ +[core] + filemode = true + hideDotFiles = true + ignoreCase = true + precomposeUnicode = true + protectHFS = true + protectNTFS = true + fsmonitorHookVersion = 2 + trustctime = false + checkStat = minimal + eol = lf + symlinks = false + bare = false + repositoryformatversion = 1 + compression = 9 + looseCompression = 9 + fsyncObjectFiles = true + abbrev = auto + whitespace = space-before-tab,-indent-with-non-tab,tab-in-indent,trailing-space,-cr-at-eol + +[blame] + markUnblamables = true + markIgnoredLines = true + +[diff] + dirstat = changes,noncumulative + mnemonicPrefix = true + renames = copies + renameLimit = 0 + algorithm = histogram + wsErrorHighlight = none,new + colorMoved = true + +[diff "cfg"] + xfuncname = "^(\\[.*)$" + +[diff "attr"] + xfuncname = "^(#.*)$" + +[gc] + autoDetach = false + +[grep] + patternType = perl + +[hooks] + allownonascii = false + +[index] + threads = true + +[merge] + conflictStyle = diff3 + renormalize = true + +[notes] + rewriteMode = cat_sort_uniq + rewriteRef = refs/notes/commits + +[protocol] + version = 2 + +[rebase] + stat = true + missingCommitsCheck = warn + +[receive] + denyCurrentBranch = true + fsckObjects = true + +[rerere] + enabled = true + +[status] + showStash = true + showUntrackedFiles = all + +[user] + useConfigOnly = true diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..3205926 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,41 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: + +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + +- OS: [e.g. iOS] +- Browser [e.g. chrome, safari] +- Version [e.g. 22] + +**Smartphone (please complete the following information):** + +- Device: [e.g. iPhone6] +- OS: [e.g. iOS8.1] +- Browser [e.g. stock browser, safari] +- Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml deleted file mode 100644 index 0d63cec..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ /dev/null @@ -1,71 +0,0 @@ -name: "\U0001F41E Bug report" -description: Create a report to help us improve -title: '[Bug]: ' -labels: ['bug'] -assignees: - - sonofmagic -body: - - type: markdown - attributes: - value: | - **Before You Start...** - - This form is only for submitting bug reports. If you have a usage question - or are unsure if this is really a bug, make sure to: - - Also try to search for your issue - it may have already been answered or even fixed in the development branch. - However, if you find that an old, closed issue still persists in the latest version, - you should open a new issue using the form below instead of commenting on the old issue. - - type: input - id: version - attributes: - label: version - validations: - required: true - - type: input - id: reproduction-link - attributes: - label: Link to minimal reproduction - description: | - You can always provide a GitHub repository. - - The reproduction should be **minimal** - i.e. it should contain only the bare minimum amount of code needed - to show the bug. - - Please do not just fill in a random link. The issue will be closed if no valid reproduction is provided. - placeholder: Reproduction Link - validations: - required: true - - type: textarea - id: steps-to-reproduce - attributes: - label: Steps to reproduce - description: | - What do we need to do after opening your repro in order to make the bug happen? Clear and concise reproduction instructions are important for us to be able to triage your issue in a timely manner. Note that you can use [Markdown](https://guides.github.com/features/mastering-markdown/) to format lists and code. - placeholder: Steps to reproduce - validations: - required: true - - type: textarea - id: expected - attributes: - label: What is expected? - validations: - required: true - - type: textarea - id: actually-happening - attributes: - label: What is actually happening? - validations: - required: true - - type: textarea - id: system-info - attributes: - label: System Info - description: Output of `npx envinfo --system --npmPackages --binaries` - render: shell - placeholder: System, Binaries - - type: textarea - id: additional-comments - attributes: - label: Any additional comments? - description: e.g. some background/context of how you ran into this bug. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 5b59188..3ba13e0 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,17 +1 @@ blank_issues_enabled: false -contact_links: - - name: Feature Request - url: https://github.com/sonofmagic/npm-lib-template/discussions - about: Suggest new features for consideration - # - name: Discord Chat - # url: https://chat.vuejs.org - # about: Ask questions and discuss with other Vue users in real time. - # - name: Questions & Discussions - # url: https://github.com/vuejs/core/discussions - # about: Use GitHub discussions for message-board style questions and discussions. - # - name: Patreon - # url: https://www.patreon.com/evanyou - # about: Love Vue.js? Please consider supporting us via Patreon. - # - name: Open Collective - # url: https://opencollective.com/vuejs/donate - # about: Love Vue.js? Please consider supporting us via Open Collective. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..bbcbbe7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..19b4b75 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,9 @@ +version: 2 +updates: + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "daily" + open-pull-requests-limit: 20 + rebase-strategy: "auto" + versioning-strategy: increase diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index f0ca0ae..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: Release - -permissions: - contents: read - -on: - workflow_dispatch: - push: - branches: - - main - - next - - alpha - - beta - -jobs: - release: - permissions: - contents: write # to be able to publish a GitHub release - issues: write # to be able to comment on released issues - pull-requests: write # to be able to comment on released pull requests - id-token: write # to enable use of OIDC for npm provenance - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - # run before Set node , otherwise show Unable to locate executable file: pnpm error - - name: Use just - - uses: extractions/setup-just@v2 - - - name: Use bun - - uses: oven-sh/setup-bun@v2 - - - name: Set node - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: npm - registry-url: 'https://registry.npmjs.org' - - - name: Install Dependencies - run: just install - - - name: Build - run: just build - - name: Test - run: just test - - uses: codecov/codecov-action@v4 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - # https://github.com/semantic-release/semantic-release/issues/2313 - # continue-on-error: true - - # - name: Publish to NPM - # run: pnpm publish --access public --no-git-checks - # env: - # NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - # NPM_CONFIG_PROVENANCE: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 252d3e9..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: test - -on: - # push: - # branches: - # - main - pull_request: - branches: - - main - - next - - alpha - - beta - workflow_dispatch: - -jobs: - build: - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - node-version: [18, 20, 22] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v4 - - uses: extractions/setup-just@v2 - - uses: oven-sh/setup-bun@v2 - - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - - run: just install - - run: just build - - run: just test - - - uses: codecov/codecov-action@v4 diff --git a/.gitignore b/.gitignore index 6e7a22e..2e5e9ca 100644 --- a/.gitignore +++ b/.gitignore @@ -1,109 +1,15 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* - -# Diagnostic reports (https://nodejs.org/api/report.html) -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage -*.lcov - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories +dist/ node_modules/ -jspm_packages/ - -# TypeScript v1 declaration files -typings/ - -# TypeScript cache -*.tsbuildinfo - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Microbundle cache -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env -.env.test - -# parcel-bundler cache (https://parceljs.org/) -.cache - -# Next.js build output -.next - -# Nuxt.js build / generate output -.nuxt -dist - -# Gatsby files -.cache/ -# Comment in the public line in if your project uses Gatsby and *not* Next.js -# https://nextjs.org/blog/next-9-1#public-directory-support -# public - -# vuepress build output -.vuepress/dist - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ - -# TernJS port file -.tern-port - - -stats/*.html -.DS_Store \ No newline at end of file +.* +!.github/ +!.husky/ +!.editorconfig +!.eslintrc.json +!.gitattributes +!.gitconfig +!.gitignore +!.gitkeep +!.markdownlint.jsonc +!.npmrc +!.prettierrc.json diff --git a/.husky/pre-commit b/.husky/pre-commit index 8b13789..edacb90 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1 @@ - +pnpm format diff --git a/.npmrc b/.npmrc index a511dc8..246db3d 100644 --- a/.npmrc +++ b/.npmrc @@ -1,3 +1,6 @@ -registry=http://registry.npmmirror.com/ -msvs_version=2017 -package-manager-strict=false \ No newline at end of file +node-linker = hoisted +shamefully-hoist = true +lockfile-include-tarball-url = true +use-node-version = 20.10.0 +link-workspace-packages = deep +shell-emulator = true diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 81f6911..0000000 --- a/.prettierrc +++ /dev/null @@ -1,7 +0,0 @@ -{ - "semi": true, - "singleQuote": true, - "printWidth": 80, - "tabWidth": 2, - "trailingComma": "es5" -} diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md deleted file mode 100644 index e019e10..0000000 --- a/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,128 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -We as members, contributors, and leaders pledge to make participation in our -community a harassment-free experience for everyone, regardless of age, body -size, visible or invisible disability, ethnicity, sex characteristics, gender -identity and expression, level of experience, education, socio-economic status, -nationality, personal appearance, race, religion, or sexual identity -and orientation. - -We pledge to act and interact in ways that contribute to an open, welcoming, -diverse, inclusive, and healthy community. - -## Our Standards - -Examples of behavior that contributes to a positive environment for our -community include: - -- Demonstrating empathy and kindness toward other people -- Being respectful of differing opinions, viewpoints, and experiences -- Giving and gracefully accepting constructive feedback -- Accepting responsibility and apologizing to those affected by our mistakes, - and learning from the experience -- Focusing on what is best not just for us as individuals, but for the - overall community - -Examples of unacceptable behavior include: - -- The use of sexualized language or imagery, and sexual attention or - advances of any kind -- Trolling, insulting or derogatory comments, and personal or political attacks -- Public or private harassment -- Publishing others' private information, such as a physical or email - address, without their explicit permission -- Other conduct which could reasonably be considered inappropriate in a - professional setting - -## Enforcement Responsibilities - -Community leaders are responsible for clarifying and enforcing our standards of -acceptable behavior and will take appropriate and fair corrective action in -response to any behavior that they deem inappropriate, threatening, offensive, -or harmful. - -Community leaders have the right and responsibility to remove, edit, or reject -comments, commits, code, wiki edits, issues, and other contributions that are -not aligned to this Code of Conduct, and will communicate reasons for moderation -decisions when appropriate. - -## Scope - -This Code of Conduct applies within all community spaces, and also applies when -an individual is officially representing the community in public spaces. -Examples of representing our community include using an official e-mail address, -posting via an official social media account, or acting as an appointed -representative at an online or offline event. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported to the community leaders responsible for enforcement at -<1324318532@qq.com>. -All complaints will be reviewed and investigated promptly and fairly. - -All community leaders are obligated to respect the privacy and security of the -reporter of any incident. - -## Enforcement Guidelines - -Community leaders will follow these Community Impact Guidelines in determining -the consequences for any action they deem in violation of this Code of Conduct: - -### 1. Correction - -**Community Impact**: Use of inappropriate language or other behavior deemed -unprofessional or unwelcome in the community. - -**Consequence**: A private, written warning from community leaders, providing -clarity around the nature of the violation and an explanation of why the -behavior was inappropriate. A public apology may be requested. - -### 2. Warning - -**Community Impact**: A violation through a single incident or series -of actions. - -**Consequence**: A warning with consequences for continued behavior. No -interaction with the people involved, including unsolicited interaction with -those enforcing the Code of Conduct, for a specified period of time. This -includes avoiding interactions in community spaces as well as external channels -like social media. Violating these terms may lead to a temporary or -permanent ban. - -### 3. Temporary Ban - -**Community Impact**: A serious violation of community standards, including -sustained inappropriate behavior. - -**Consequence**: A temporary ban from any sort of interaction or public -communication with the community for a specified period of time. No public or -private interaction with the people involved, including unsolicited interaction -with those enforcing the Code of Conduct, is allowed during this period. -Violating these terms may lead to a permanent ban. - -### 4. Permanent Ban - -**Community Impact**: Demonstrating a pattern of violation of community -standards, including sustained inappropriate behavior, harassment of an -individual, or aggression toward or disparagement of classes of individuals. - -**Consequence**: A permanent ban from any sort of public interaction within -the community. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], -version 2.0, available at -. - -Community Impact Guidelines were inspired by [Mozilla's code of conduct -enforcement ladder](https://github.com/mozilla/diversity). - -[homepage]: https://www.contributor-covenant.org - -For answers to common questions about this code of conduct, see the FAQ at -. Translations are available at -. diff --git a/README.md b/README.md index 35260e8..b08c63f 100644 --- a/README.md +++ b/README.md @@ -1,44 +1,86 @@ -# mostro-tools +### **Updated README for `@mostrop2p/mostro-tools`** -Tools for developing Mostro clients. +--- -This package is only providing lower-level functionality. +# @mostrop2p/mostro-tools -## Roadmap +**Tools for developing Mostro clients** -### Mostro Core Implementation +`@mostrop2p/mostro-tools` is a lightweight and extensible library designed to simplify the development of Mostro clients. It provides low-level functionality for interacting with the Mostro protocol, including order management, messaging, dispute resolution, and more. -Implementation of core functionality in TypeScript/JavaScript. See [mostro-core](https://github.com/MostroP2P/mostro-core). +This library is ideal for developers building decentralized peer-to-peer Bitcoin trading platforms powered by the [Mostro protocol](https://mostro.network/). -#### Core Functions: +--- -- `dispute.ts` - Handles dispute resolution logic -- `lib.ts` - Core library utilities -- `message.ts` - Message handling functionality -- `order.ts` - Order management system -- `rating.ts` - User rating implementation -- `user.ts` - User management functionality +## **Features** +- **Core Protocol Support**: Implements fundamental Mostro operations such as order creation, dispute handling, and messaging. +- **Flexible Client Integration**: Designed for easy integration with relays and Mostro-compatible clients. +- **Secure Key Management**: Supports NIP-06 and NIP-59 for deterministic key generation and privacy-focused operations. +- **Customizable Configurations**: Offers private mode and advanced options for reputation handling. +- **Developer-Friendly**: Written in TypeScript with comprehensive type definitions and modular architecture. -### Client Implementation +--- -Implementation of core functionality in TypeScript/JavaScript. See [mostro-core](https://github.com/MostroP2P/mostro-cli). +## **Installation** -#### Client Functions: +Using [pnpm](https://pnpm.io/): -- `listorders` -Requests open orders from Mostro pubkey -- `neworder` -Create a new buy/sell order on Mostro -- `takesell` -Take a sell order from a Mostro pubkey -- `takebuy ` -Take a buy order from a Mostro pubkey -- `addinvoice` -Buyer add a new invoice to receive the payment -- `getdm ` -Get the latest direct messages from Mostro -- `fiatsent` -Send fiat sent message to confirm payment to other user -- `release ` -Settle the hold invoice and pay to buyer -- `cancel` -Cancel a pending order -- `rate` -Rate counterpart after a successful trade -- `dispute` -Start a dispute -- `admcancel` -Cancel an order (only admin) -- `admsettle` - Settle a seller's hold invoice (only admin) -- `admlistdisputes` -Requests open disputes from Mostro pubkey -- `admaddsolver` - Add a new dispute's solver (only admin) -- `admtakedispute` - Admin or solver take a Pending dispute (only admin) -- `help` -Print this message or the help of the given subcommand(s) +```bash +pnpm install @mostrop2p/mostro-tools +``` + +--- + +## **Roadmap** + +### **Core Implementation** +Development of foundational modules to enable Mostro protocol interactions: +- **Key Management**: Deterministic key generation (NIP-06) and rotation (NIP-59). +- **Order Management**: Create, list, take, and cancel orders. +- **Messaging**: Handle direct messages, confirmations, and encrypted communication. +- **Dispute Resolution**: Initiate and manage disputes. +- **Reputation Handling**: Implement rating and reputation updates. + +--- + +### **Client Features** +Expand library capabilities with client-side utilities: +- **Order Functions**: + - List open orders (`listorders`). + - Create new buy/sell orders (`neworder`). + - Take orders (`takesell`, `takebuy`). + - Cancel pending orders (`cancel`). +- **Messaging Functions**: + - Add invoices (`addinvoice`). + - Confirm fiat payments (`fiatsent`). + - Settle transactions (`release`). +- **Administrative Tools**: + - Cancel orders as admin (`admcancel`). + - Resolve disputes as admin (`admsettle`). +- **Privacy Features**: + - Private mode to ensure full anonymity without affecting usability. + +--- + +## **Goals** +1. **Ease of Use**: Abstract complexities of the Mostro protocol, providing simple and intuitive APIs. +2. **Security First**: Adhere to best practices for cryptographic operations and data integrity. +3. **Scalability**: Design with modularity and extensibility to support future protocol updates. +4. **Community Support**: Enable seamless contribution through clear documentation and developer tools. + +--- + +## **Get Involved** + +- **Website**: [mostro.network](https://mostro.network/) +- **Report Issues**: [GitHub Issues](https://github.com/MostroP2P/mostro-tools/issues) +- **Contribute**: Contributions are welcome! Follow the [Contribution Guidelines](https://github.com/MostroP2P/mostro-tools). + +--- + +## **License** +`@mostrop2p/mostro-tools` is licensed under the MIT License. See the [LICENSE](https://github.com/MostroP2P/mostro-tools/blob/main/LICENSE) file for details. + +--- + +This updated README provides a polished introduction, highlights key features, and sets clear expectations for potential users and contributors. Let me know if you'd like additional sections or modifications! diff --git a/build.js b/build.js deleted file mode 100755 index a5f2da0..0000000 --- a/build.js +++ /dev/null @@ -1,63 +0,0 @@ -const fs = require('node:fs'); -const esbuild = require('esbuild'); -const { join } = require('path'); - -const entryPoints = fs.readdirSync(process.cwd()).filter( - (file) => - file.endsWith('.ts') && - // file !== 'core.ts' && - // file !== 'test-helpers.ts' && - // file !== 'helpers.ts' && - // file !== 'benchmarks.ts' && - !file.endsWith('.config.d.ts') && - !file.endsWith('.config.ts') && - !file.endsWith('.test.ts') && - fs.statSync(join(process.cwd(), file)).isFile() -); - -let common = { - entryPoints, - bundle: true, - sourcemap: 'external', -}; - -esbuild - .build({ - ...common, - outdir: 'lib/esm', - format: 'esm', - packages: 'external', - tsconfig: './tsconfig.json', - }) - .then(() => console.log('esm build success.')); - -esbuild - .build({ - ...common, - outdir: 'lib/cjs', - format: 'cjs', - packages: 'external', - tsconfig: './tsconfig.json', - }) - .then(() => { - const packageJson = JSON.stringify({ type: 'commonjs' }); - fs.writeFileSync(`${__dirname}/lib/cjs/package.json`, packageJson, 'utf8'); - - console.log('cjs build success.'); - }); - -esbuild - .build({ - ...common, - entryPoints: ['index.ts'], - outfile: 'lib/mostro.bundle.js', - format: 'iife', - globalName: 'MostroTools', - define: { - window: 'self', - global: 'self', - process: '{"env": {}}', - }, - tsconfig: './tsconfig.json', - }) - .then(() => console.log('standalone build success.')); diff --git a/bun.lockb b/bun.lockb deleted file mode 100755 index b5f6ae4..0000000 Binary files a/bun.lockb and /dev/null differ diff --git a/client.test.ts b/client.test.ts deleted file mode 100644 index 3f09606..0000000 --- a/client.test.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { test, expect } from 'bun:test'; -import { client } from './mostro.ts'; - -test('Client', () => { - const testValue = 'Mostro'; - const result = client.hello(testValue); - const expected = `Hello Mostro! I am a cli :)`; - - expect(result).toEqual(expected); -}); diff --git a/client.ts b/client.ts deleted file mode 100644 index e179fcc..0000000 --- a/client.ts +++ /dev/null @@ -1,113 +0,0 @@ -export function hello(name: string): string { - return `Hello ${name}! I am a cli :)`; -} - -export function dispute(name: string): string { - return `Hello ${name}! I am the core :)`; -} - -export function neworder(name: string): string { - return `Hello ${name}! I am the core :)`; -} - -export function takesell(name: string): string { - return `Hello ${name}! I am the core :)`; -} - -export function takebuy(name: string): string { - return `Hello ${name}! I am the core :)`; -} - -export function addinvoice(name: string): string { - return `Hello ${name}! I am the core :)`; -} - -export function getdm(name: string): string { - return `Hello ${name}! I am the core :)`; -} - -export function fiatsent(name: string): string { - return `Hello ${name}! I am the core :)`; -} -export function release(name: string): string { - return `Hello ${name}! I am the core :)`; -} -export function cancel(name: string): string { - return `Hello ${name}! I am the core :)`; -} -export function rate(name: string): string { - return `Hello ${name}! I am the core :)`; -} -export function admcancel(name: string): string { - return `Hello ${name}! I am the core :)`; -} -export function admsettle(name: string): string { - return `Hello ${name}! I am the core :)`; -} -export function admlistdisputes(name: string): string { - return `Hello ${name}! I am the core :)`; -} -export function admaddsolver(name: string): string { - return `Hello ${name}! I am the core :)`; -} -export function admtakedispute(name: string): string { - return `Hello ${name}! I am the core :)`; -} - -export function help(command: string): string { - let result = ''; - const commandList = `listorders, neworder, takesell, takebuy , addinvoice, getdm, fiatsent, release, cancel, rate, dispute, admcancel, admsettle, admlistdisputes, admaddsolver, admtakedispute`; - switch (command) { - case 'listorders': - result = `Requests open orders from Mostro pubkey`; - break; - case 'neworder': - result = `Create a new buy/sell order on Mostro`; - break; - case 'takesell': - result = `Take a sell order from a Mostro pubkey`; - break; - case 'takebuy': - result = `Take a buy order from a Mostro pubkey`; - break; - case 'addinvoice': - result = `Buyer add a new invoice to receive the payment`; - break; - case 'getdm': - result = `Get the latest direct messages from Mostro`; - break; - case 'fiatsent': - result = `Send fiat sent message to confirm payment to other user`; - break; - case 'release': - result = `Settle the hold invoice and pay to buyer`; - break; - case 'cancel': - result = `Cancel a pending order`; - break; - case 'rate': - result = `Rate counterpart after a successful trade`; - break; - case 'dispute': - result = `Start a dispute`; - break; - case 'admcancel': - result = `Cancel an order (only admin)`; - break; - case 'admsettle': - result = `Settle a seller's hold invoice (only admin)`; - break; - case 'admlistdisputes': - result = `Requests open disputes from Mostro pubkey`; - break; - case 'admaddsolver': - result = `Add a new dispute's solver (only admin)`; - break; - case 'admtakedispute': - result = `Admin or solver take a Pending dispute (only admin)`; - break; - default: - result = `we don't have that command; Choosea supported one (${commandList})`; - } - return result; -} diff --git a/commitlint.config.ts b/commitlint.config.ts deleted file mode 100644 index c9b45a6..0000000 --- a/commitlint.config.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { UserConfig } from '@commitlint/types'; -// import { RuleConfigSeverity } from '@commitlint/types' - -export default { - extends: ['@commitlint/config-conventional'], -}; diff --git a/core.test.ts b/core.test.ts deleted file mode 100644 index b741987..0000000 --- a/core.test.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { test, expect } from 'bun:test'; -import { core } from './mostro.ts'; - -test('Core', () => { - const testValue = 'Mostro'; - const result = core.hello(testValue); - const expected = `Hello Mostro! I am the core :)`; - - expect(result).toEqual(expected); -}); diff --git a/core.ts b/core.ts deleted file mode 100644 index 0373e73..0000000 --- a/core.ts +++ /dev/null @@ -1,56 +0,0 @@ -export function hello(name: string): string { - return `Hello ${name}! I am the core :)`; -} - -export function dispute(name: string): string { - return `Hello ${name}! I am the core :)`; -} - -export function lib(name: string): string { - return `Hello ${name}! I am the core :)`; -} - -export function message(name: string): string { - return `Hello ${name}! I am the core :)`; -} - -export function order(name: string): string { - return `Hello ${name}! I am the core :)`; -} - -export function rating(name: string): string { - return `Hello ${name}! I am the core :)`; -} - -export function user(name: string): string { - return `Hello ${name}! I am the core :)`; -} - -export function help(command: string): string { - let result = ''; - - switch (command) { - case 'dispute': - result = 'Handles dispute resolution logic'; - break; - case 'lib': - result = 'Core library utilities'; - break; - case 'message': - result = 'Message handling functionality'; - break; - case 'order': - result = 'Order management system'; - break; - case 'rating': - result = 'User rating implementation'; - break; - case 'user': - result = 'User management functionality'; - break; - default: - result = - "we don't have that command; Choosea supported one (dispute, lib, message, order. rating, user)"; - } - return result; -} diff --git a/eslint.config.mjs b/eslint.config.mjs deleted file mode 100644 index 499e1bb..0000000 --- a/eslint.config.mjs +++ /dev/null @@ -1,10 +0,0 @@ -// @ts-check - -import eslint from '@eslint/js'; -import tseslint from 'typescript-eslint'; - -export default tseslint.config( - eslint.configs.recommended, - ...tseslint.configs.recommended, - { ignores: ['lib/*', 'build.js'] } -); diff --git a/.husky/commit-msg b/etc/.gitkeep similarity index 100% rename from .husky/commit-msg rename to etc/.gitkeep diff --git a/etc/.markdownlint.jsonc b/etc/.markdownlint.jsonc new file mode 100644 index 0000000..f6bd723 --- /dev/null +++ b/etc/.markdownlint.jsonc @@ -0,0 +1,214 @@ +{ + "default": true, + "extends": null, + // MD001/heading-increment: Heading levels should only increment by one level at a time + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md001.md + "MD001": true, + // MD003/heading-style: Heading style + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md003.md + "MD003": { + "style": "atx" + }, + // MD004/ul-style: Unordered list style + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md004.md + "MD004": { + "style": "dash" + }, + // MD005/list-indent: Inconsistent indentation for list items at the same level + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md005.md + "MD005": true, + // MD007/ul-indent: Unordered list indentation + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md007.md + "MD007": { + "indent": 2 + }, + // MD009/no-trailing-spaces: Trailing spaces + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md009.md + "MD009": { + "br_spaces": 0, + "list_item_empty_lines": false, + "strict": true + }, + // MD010/no-hard-tabs: Hard tabs + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md010.md + "MD010": { + "code_blocks": true, + "ignore_code_languages": [], + "spaces_per_tab": 2 + }, + // MD011/no-reversed-links: Reversed link syntax + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md011.md + "MD011": true, + // MD012/no-multiple-blanks: Multiple consecutive blank lines + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md012.md + "MD012": { + "maximum": 1 + }, + // MD013/line-length: Line length + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md013.md + "MD013": false, + // MD014/commands-show-output: Dollar signs used before commands without showing output + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md014.md + "MD014": true, + // MD018/no-missing-space-atx: No space after hash on atx style heading + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md018.md + "MD018": true, + // MD019/no-multiple-space-atx: Multiple spaces after hash on atx style heading + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md019.md + "MD019": true, + // MD020/no-missing-space-closed-atx: No space inside hashes on closed atx style heading + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md020.md + "MD020": true, + // MD021/no-multiple-space-closed-atx: Multiple spaces inside hashes on closed atx style heading + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md021.md + "MD021": true, + // MD022/blanks-around-headings: Headings should be surrounded by blank lines + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md022.md + "MD022": { + "lines_above": 1, + "lines_below": 1 + }, + // MD023/heading-start-left: Headings must start at the beginning of the line + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md023.md + "MD023": true, + // MD024/no-duplicate-heading: Multiple headings with the same content + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md024.md + "MD024": { + "siblings_only": true + }, + // MD025/single-title/single-h1: Multiple top-level headings in the same document + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md025.md + "MD025": { + "level": 1 + }, + // MD026/no-trailing-punctuation: Trailing punctuation in heading + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md026.md + "MD026": { + "punctuation": ".,;:!\u3002\uff0c\uff1b\uff1a\uff01" + }, + // MD027/no-multiple-space-blockquote: Multiple spaces after blockquote symbol + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md027.md + "MD027": true, + // MD028/no-blanks-blockquote: Blank line inside blockquote + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md028.md + "MD028": true, + + // MD029/ol-prefix: Ordered list item prefix + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md029.md + "MD029": { + "style": "ordered" + }, + // MD030/list-marker-space: Spaces after list markers + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md030.md + "MD030": { + "ul_single": 1, + "ol_single": 1, + "ul_multi": 1, + "ol_multi": 1 + }, + // MD031/blanks-around-fences: Fenced code blocks should be surrounded by blank lines + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md031.md + "MD031": { + "list_items": true + }, + // MD032/blanks-around-lists: Lists should be surrounded by blank lines + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md032.md + "MD032": true, + // MD033/no-inline-html: Inline HTML + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md033.md + "MD033": { + "allowed_elements": ["a"] + }, + // MD034/no-bare-urls: Bare URL used + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md034.md + "MD034": true, + // MD035/hr-style: Horizontal rule style + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md035.md + "MD035": { + "style": "---" + }, + // MD036/no-emphasis-as-heading: Emphasis used instead of a heading + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md036.md + "MD036": { + "punctuation": ".,;:!\u3002\uff0c\uff1b\uff1a\uff01" + }, + // MD037/no-space-in-emphasis: Spaces inside emphasis markers + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md037.md + "MD037": true, + // MD038/no-space-in-code: Spaces inside code span elements + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md038.md + "MD038": true, + // MD039/no-space-in-links: Spaces inside link text + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md039.md + "MD039": true, + // MD040/fenced-code-language: Fenced code blocks should have a language specified + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md040.md + "MD040": true, + // MD041/first-line-heading/first-line-h1: First line in a file should be a top-level heading + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md041.md + "MD041": { + "level": 1 + }, + // MD042/no-empty-links: No empty links + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md042.md + "MD042": true, + // MD043/required-headings: Required heading structure + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md043.md + "MD043": false, + // MD044/proper-names: Proper names should have the correct capitalization + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md044.md + "MD044": { + "names": [], + "code_blocks": false, + "html_elements": true + }, + // MD045/no-alt-text: Images should have alternate text (alt text) + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md045.md + "MD045": true, + // MD046/code-block-style: Code block style + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md046.md + "MD046": { + "style": "fenced" + }, + // MD047/single-trailing-newline: Files should end with a single newline character + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md047.md + "MD047": true, + // MD048/code-fence-style: Code fence style + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md048.md + "MD048": { + "style": "backtick" + }, + // MD049/emphasis-style: Emphasis style + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md049.md + "MD049": { + "style": "underscore" + }, + // MD050/strong-style: Strong style + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md050.md + "MD050": { + "style": "asterisk" + }, + // MD051/link-fragments: Link fragments should be valid + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md051.md + "MD051": true, + // MD052/reference-links-images: Reference links and images should use a label that is defined + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md052.md + "MD052": { + "shortcut_syntax": false + }, + // MD053/link-image-reference-definitions: Link and image reference definitions should be needed + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md053.md + "MD053": { + "ignored_definitions": [] + }, + // MD054/link-image-style: Link and image style + // https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md054.md + "MD054": { + "autolink": true, + "inline": true, + "full": true, + "collapsed": true, + "shortcut": true, + "url_inline": true + } +} \ No newline at end of file diff --git a/etc/.prettierrc.json b/etc/.prettierrc.json new file mode 100644 index 0000000..9c2c4b8 --- /dev/null +++ b/etc/.prettierrc.json @@ -0,0 +1,45 @@ +{ + "printWidth": 120, + "semi": true, + "singleQuote": true, + "tabWidth": 2, + "trailingComma": "all", + "overrides": [ + { + "files": "*.ts", + "options": { + "parser": "typescript" + } + }, + { + "files": "*.md", + "options": { + "parser": "markdown" + } + }, + { + "files": "*.json", + "options": { + "parser": "json", + "singleQuote": false, + "tabWidth": 2, + "trailingComma": "none" + } + }, + { + "files": "*.jsonc", + "options": { + "parser": "jsonc", + "singleQuote": false, + "tabWidth": 2, + "trailingComma": "none" + } + }, + { + "files": "*.{yml,yaml}", + "options": { + "parser": "yaml" + } + } + ] +} \ No newline at end of file diff --git a/etc/analyze.js b/etc/analyze.js new file mode 100644 index 0000000..1801c44 --- /dev/null +++ b/etc/analyze.js @@ -0,0 +1,5 @@ +import { readFileSync } from 'fs'; + +import { analyzeMetafile } from 'esbuild'; + +console.log(await analyzeMetafile(JSON.parse(readFileSync('./dist/meta.json')), { verbose: true })); \ No newline at end of file diff --git a/etc/build.js b/etc/build.js new file mode 100644 index 0000000..c01b429 --- /dev/null +++ b/etc/build.js @@ -0,0 +1,53 @@ +import { writeFileSync } from 'fs'; + +import { build } from 'esbuild'; +import { umdWrapper } from 'esbuild-plugin-umd-wrapper'; + +const name = 'opentimestamps'; + +const umdWrapperOptions = { + libraryName: name, +}; + +const buildOptions = { + bundle: true, + entryPoints: ['./src/index.ts'], + globalName: name, + logLevel: 'debug', + metafile: true, + platform: 'neutral', + sourcemap: 'linked', + sourcesContent: false, + tsconfig: './etc/tsconfig.build.json', +}; + +const results = await Promise.all([ + build({ + ...buildOptions, + format: 'esm', + outfile: './dist/esm/index.js', + packages: 'external', + }), + // + build({ + ...buildOptions, + format: 'esm', + outfile: './dist/esm/index.min.js', + minify: true, + }), + build({ + ...buildOptions, + format: 'umd', + outfile: './dist/umd/index.js', + plugins: [umdWrapper(umdWrapperOptions)], + }), + build({ + ...buildOptions, + format: 'umd', + minify: true, + outfile: './dist/umd/index.min.js', + plugins: [umdWrapper(umdWrapperOptions)], + }), +]); + +writeFileSync('./dist/meta.json', JSON.stringify(results[0].metafile, null, 2)); \ No newline at end of file diff --git a/etc/eslint.config.js b/etc/eslint.config.js new file mode 100644 index 0000000..e4580fd --- /dev/null +++ b/etc/eslint.config.js @@ -0,0 +1,31 @@ +export default { + root: true, + parser: '@typescript-eslint/parser', + parserOptions: { + project: './etc/tsconfig.eslint.json', + }, + extends: ['eslint:recommended', 'plugin:@typescript-eslint/strict-type-checked', 'prettier'], + plugins: ['import', '@typescript-eslint'], + rules: { + '@typescript-eslint/no-non-null-assertion': 0, + '@typescript-eslint/no-unused-vars': [ + 'error', + { + varsIgnorePattern: '^_', + argsIgnorePattern: '^_', + caughtErrors: 'all', + caughtErrorsIgnorePattern: '^_', + destructuredArrayIgnorePattern: '^_', + }, + ], + }, + ignorePatterns: ['pnpm-lock.yaml', 'dist/'], + settings: { + 'import/parsers': { + '@typescript-eslint/parser': ['.ts'], + }, + 'import/resolver': { + typescript: {}, + }, + }, +}; \ No newline at end of file diff --git a/etc/jest.meta.config.cjs b/etc/jest.meta.config.cjs new file mode 100644 index 0000000..ef70cb0 --- /dev/null +++ b/etc/jest.meta.config.cjs @@ -0,0 +1,23 @@ +/** @type {import('ts-jest').JestConfigWithTsJest} */ +module.exports = { + clearMocks: true, + collectCoverage: true, + collectCoverageFrom: ['/test/helpers.ts'], + coveragePathIgnorePatterns: ['\\.test\\.ts'], + coverageDirectory: '/dist/.coverage/meta', + coverageProvider: 'babel', + logHeapUsage: true, + passWithNoTests: true, + preset: 'ts-jest', + randomize: true, + resetModules: true, + restoreMocks: false, + rootDir: '..', + testEnvironment: 'node', + testMatch: ['/test/helpers.test.ts'], + transform: { + '\\.ts$': 'ts-jest', + }, + verbose: true, + maxWorkers: 1, +}; \ No newline at end of file diff --git a/etc/jest.regression.config.cjs b/etc/jest.regression.config.cjs new file mode 100644 index 0000000..812455e --- /dev/null +++ b/etc/jest.regression.config.cjs @@ -0,0 +1,19 @@ +/** @type {import('ts-jest').JestConfigWithTsJest} */ +module.exports = { + clearMocks: true, + collectCoverage: false, + logHeapUsage: true, + passWithNoTests: true, + preset: 'ts-jest', + randomize: true, + resetModules: true, + restoreMocks: false, + rootDir: '..', + testEnvironment: 'node', + testMatch: ['/test/regression/**/*.test.ts'], + transform: { + '\\.ts$': 'ts-jest', + }, + verbose: true, + maxWorkers: 1, +}; \ No newline at end of file diff --git a/etc/jest.unit.config.cjs b/etc/jest.unit.config.cjs new file mode 100644 index 0000000..50feeda --- /dev/null +++ b/etc/jest.unit.config.cjs @@ -0,0 +1,23 @@ +/** @type {import('ts-jest').JestConfigWithTsJest} */ +module.exports = { + clearMocks: true, + collectCoverage: true, + collectCoverageFrom: ['/src/**/*.ts', '/test/unit/**/*.ts'], + coveragePathIgnorePatterns: ['\\.test\\.ts'], + coverageDirectory: '/dist/.coverage/unit', + coverageProvider: 'babel', + logHeapUsage: true, + passWithNoTests: true, + preset: 'ts-jest', + randomize: true, + resetModules: true, + restoreMocks: false, + rootDir: '..', + testEnvironment: 'node', + testMatch: ['/test/unit/**/*.test.ts'], + transform: { + '\\.ts$': 'ts-jest', + }, + verbose: true, + maxWorkers: 1, +}; \ No newline at end of file diff --git a/etc/tsconfig.build.json b/etc/tsconfig.build.json new file mode 100644 index 0000000..0c6648a --- /dev/null +++ b/etc/tsconfig.build.json @@ -0,0 +1,7 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "rootDir": "../src" + }, + "include": ["../src/**/*"] +} \ No newline at end of file diff --git a/etc/tsconfig.eslint.json b/etc/tsconfig.eslint.json new file mode 100644 index 0000000..7a9a3fe --- /dev/null +++ b/etc/tsconfig.eslint.json @@ -0,0 +1,5 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": {}, + "include": ["../test/**/*", "../src/**/*", "./jest.unit.config.js"] +} \ No newline at end of file diff --git a/etc/typedoc-tweaks.css b/etc/typedoc-tweaks.css new file mode 100644 index 0000000..443c747 --- /dev/null +++ b/etc/typedoc-tweaks.css @@ -0,0 +1,8 @@ +a.external[target='_blank'] { + background-image: none; + padding-right: 0px; +} + +div.mermaid { + text-align: center; +} \ No newline at end of file diff --git a/etc/typedoc.api.json b/etc/typedoc.api.json new file mode 100644 index 0000000..3d971eb --- /dev/null +++ b/etc/typedoc.api.json @@ -0,0 +1,7 @@ +{ + "$schema": "https://typedoc.org/schema.json", + "extends": ["./typedoc.json"], + "json": "../dist/docs/api.json", + "out": "../dist/docs/api", + "entryPoints": ["../src/index.ts"] +} \ No newline at end of file diff --git a/etc/typedoc.internal.json b/etc/typedoc.internal.json new file mode 100644 index 0000000..a1b560d --- /dev/null +++ b/etc/typedoc.internal.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://typedoc.org/schema.json", + "extends": ["./typedoc.json"], + "json": "../dist/docs/internal.json", + "excludePrivate": false, + "out": "../dist/docs/internal", + "entryPoints": ["../src/**/*.ts"], + "exclude": ["../src/index.ts"], + "visibilityFilters": { + "protected": true, + "private": true, + "inherited": true, + "external": true + } +} \ No newline at end of file diff --git a/etc/typedoc.json b/etc/typedoc.json new file mode 100644 index 0000000..6b091cf --- /dev/null +++ b/etc/typedoc.json @@ -0,0 +1,61 @@ +{ + "$schema": "https://typedoc.org/schema.json", + "includeVersion": true, + "plugin": [ + "typedoc-plugin-keywords", + "typedoc-plugin-katex", + "typedoc-plugin-mdn-links", + "typedoc-plugin-mermaid", + "typedoc-plugin-remove-references" + ], + "katex": { + "options": { + "delimiters": [ + { + "left": "$$", + "right": "$$", + "display": true + }, + { + "left": "$", + "right": "$", + "display": false + } + ] + } + }, + "keywords": ["OpenTimestamps", "library"], + "markdownItOptions": { + "html": true, + "linkify": true, + "typographer": true + }, + "highlightLanguages": ["ini", "perl", "sh", "typescript"], + "pretty": true, + "sourceLinkExternal": true, + "hideParameterTypesInTitle": false, + "excludePrivate": true, + "cleanOutputDir": true, + "hideGenerator": true, + "searchInComments": true, + "navigationLinks": { + "La Crypta": "https://lacrypta.ar" + }, + "visibilityFilters": {}, + "validation": { + "notExported": true, + "invalidLink": true, + "notDocumented": false + }, + "externalSymbolLinkMappings": { + "typescript": { + "RequestInit": "https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options" + } + }, + "treatWarningsAsErrors": false, + "treatValidationWarningsAsErrors": false, + "logLevel": "Verbose", + "disableSources": false, + "tsconfig": "./tsconfig.build.json", + "customCss": "./typedoc-tweaks.css" +} \ No newline at end of file diff --git a/index.ts b/index.ts deleted file mode 100644 index 8c5f894..0000000 --- a/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * as mostro from './mostro.ts'; -export * as mostroCore from './core.ts'; -export * as mostroClient from './client.ts'; diff --git a/jsr.json b/jsr.json deleted file mode 100644 index 5d35373..0000000 --- a/jsr.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "@mostro/tools", - "version": "0.0.1", - "exports": { - ".": "./index.ts", - "./core": "./core.ts", - "./client": "./client.ts", - "./mostro": "./mostro.ts" - } -} diff --git a/justfile b/justfile deleted file mode 100644 index 8f3be7f..0000000 --- a/justfile +++ /dev/null @@ -1,37 +0,0 @@ -export PATH := "./node_modules/.bin:" + env_var('PATH') - -build: - rm -rf lib - bun run build.js - tsc - -test: - bun test --timeout 20000 - -test-only file: - bun test {{file}} - -pack: - npm pack - -install: - bun install - -publish: build - npm publish - perl -i -0pe "s/},\n \"optionalDependencies\": {\n/,/" package.json - jsr publish --allow-dirty - git checkout -- package.json - -format: - bun format - -lint: - bun lint - -benchmark: - bun build --target=node --outfile=bench.js benchmarks.ts - timeout 60s deno run --allow-read bench.js || true - timeout 60s node bench.js || true - timeout 60s bun run benchmarks.ts || true - rm bench.js diff --git a/lib/cjs/client.js b/lib/cjs/client.js deleted file mode 100644 index 133d700..0000000 --- a/lib/cjs/client.js +++ /dev/null @@ -1,150 +0,0 @@ -'use strict'; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if ((from && typeof from === 'object') || typeof from === 'function') { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { - get: () => from[key], - enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable, - }); - } - return to; -}; -var __toCommonJS = (mod) => - __copyProps(__defProp({}, '__esModule', { value: true }), mod); - -// client.ts -var client_exports = {}; -__export(client_exports, { - addinvoice: () => addinvoice, - admaddsolver: () => admaddsolver, - admcancel: () => admcancel, - admlistdisputes: () => admlistdisputes, - admsettle: () => admsettle, - admtakedispute: () => admtakedispute, - cancel: () => cancel, - dispute: () => dispute, - fiatsent: () => fiatsent, - getdm: () => getdm, - hello: () => hello, - help: () => help, - neworder: () => neworder, - rate: () => rate, - release: () => release, - takebuy: () => takebuy, - takesell: () => takesell, -}); -module.exports = __toCommonJS(client_exports); -function hello(name) { - return `Hello ${name}! I am a cli :)`; -} -function dispute(name) { - return `Hello ${name}! I am the core :)`; -} -function neworder(name) { - return `Hello ${name}! I am the core :)`; -} -function takesell(name) { - return `Hello ${name}! I am the core :)`; -} -function takebuy(name) { - return `Hello ${name}! I am the core :)`; -} -function addinvoice(name) { - return `Hello ${name}! I am the core :)`; -} -function getdm(name) { - return `Hello ${name}! I am the core :)`; -} -function fiatsent(name) { - return `Hello ${name}! I am the core :)`; -} -function release(name) { - return `Hello ${name}! I am the core :)`; -} -function cancel(name) { - return `Hello ${name}! I am the core :)`; -} -function rate(name) { - return `Hello ${name}! I am the core :)`; -} -function admcancel(name) { - return `Hello ${name}! I am the core :)`; -} -function admsettle(name) { - return `Hello ${name}! I am the core :)`; -} -function admlistdisputes(name) { - return `Hello ${name}! I am the core :)`; -} -function admaddsolver(name) { - return `Hello ${name}! I am the core :)`; -} -function admtakedispute(name) { - return `Hello ${name}! I am the core :)`; -} -function help(command) { - let result = ''; - const commandList = `listorders, neworder, takesell, takebuy , addinvoice, getdm, fiatsent, release, cancel, rate, dispute, admcancel, admsettle, admlistdisputes, admaddsolver, admtakedispute`; - switch (command) { - case 'listorders': - result = `Requests open orders from Mostro pubkey`; - break; - case 'neworder': - result = `Create a new buy/sell order on Mostro`; - break; - case 'takesell': - result = `Take a sell order from a Mostro pubkey`; - break; - case 'takebuy': - result = `Take a buy order from a Mostro pubkey`; - break; - case 'addinvoice': - result = `Buyer add a new invoice to receive the payment`; - break; - case 'getdm': - result = `Get the latest direct messages from Mostro`; - break; - case 'fiatsent': - result = `Send fiat sent message to confirm payment to other user`; - break; - case 'release': - result = `Settle the hold invoice and pay to buyer`; - break; - case 'cancel': - result = `Cancel a pending order`; - break; - case 'rate': - result = `Rate counterpart after a successful trade`; - break; - case 'dispute': - result = `Start a dispute`; - break; - case 'admcancel': - result = `Cancel an order (only admin)`; - break; - case 'admsettle': - result = `Settle a seller's hold invoice (only admin)`; - break; - case 'admlistdisputes': - result = `Requests open disputes from Mostro pubkey`; - break; - case 'admaddsolver': - result = `Add a new dispute's solver (only admin)`; - break; - case 'admtakedispute': - result = `Admin or solver take a Pending dispute (only admin)`; - break; - default: - result = `we don't have that command; Choosea supported one (${commandList})`; - } - return result; -} diff --git a/lib/cjs/client.js.map b/lib/cjs/client.js.map deleted file mode 100644 index c8e9465..0000000 --- a/lib/cjs/client.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../client.ts"], - "sourcesContent": ["export function hello(name: string): string {\n return `Hello ${name}! I am a cli :)`;\n}\n\nexport function dispute(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function neworder(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function takesell(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function takebuy(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function addinvoice(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function getdm(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function fiatsent(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function release(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function cancel(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function rate(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admcancel(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admsettle(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admlistdisputes(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admaddsolver(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admtakedispute(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function help(command: string): string {\n let result = '';\n const commandList = `listorders, neworder, takesell, takebuy , addinvoice, getdm, fiatsent, release, cancel, rate, dispute, admcancel, admsettle, admlistdisputes, admaddsolver, admtakedispute`;\n switch (command) {\n case 'listorders':\n result = `Requests open orders from Mostro pubkey`;\n break;\n case 'neworder':\n result = `Create a new buy/sell order on Mostro`;\n break;\n case 'takesell':\n result = `Take a sell order from a Mostro pubkey`;\n break;\n case 'takebuy':\n result = `Take a buy order from a Mostro pubkey`;\n break;\n case 'addinvoice':\n result = `Buyer add a new invoice to receive the payment`;\n break;\n case 'getdm':\n result = `Get the latest direct messages from Mostro`;\n break;\n case 'fiatsent':\n result = `Send fiat sent message to confirm payment to other user`;\n break;\n case 'release':\n result = `Settle the hold invoice and pay to buyer`;\n break;\n case 'cancel':\n result = `Cancel a pending order`;\n break;\n case 'rate':\n result = `Rate counterpart after a successful trade`;\n break;\n case 'dispute':\n result = `Start a dispute`;\n break;\n case 'admcancel':\n result = `Cancel an order (only admin)`;\n break;\n case 'admsettle':\n result = `Settle a seller's hold invoice (only admin)`;\n break;\n case 'admlistdisputes':\n result = `Requests open disputes from Mostro pubkey`;\n break;\n case 'admaddsolver':\n result = `Add a new dispute's solver (only admin)`;\n break;\n case 'admtakedispute':\n result = `Admin or solver take a Pending dispute (only admin)`;\n break;\n default:\n result = `we don't have that command; Choosea supported one (${commandList})`;\n }\n return result;\n}\n"], - "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,MAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,SAAS,MAAsB;AAC7C,SAAO,SAAS;AAClB;AAEO,SAAS,SAAS,MAAsB;AAC7C,SAAO,SAAS;AAClB;AAEO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,WAAW,MAAsB;AAC/C,SAAO,SAAS;AAClB;AAEO,SAAS,MAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAAS,SAAS,MAAsB;AAC7C,SAAO,SAAS;AAClB;AACO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AACO,SAAS,OAAO,MAAsB;AAC3C,SAAO,SAAS;AAClB;AACO,SAAS,KAAK,MAAsB;AACzC,SAAO,SAAS;AAClB;AACO,SAAS,UAAU,MAAsB;AAC9C,SAAO,SAAS;AAClB;AACO,SAAS,UAAU,MAAsB;AAC9C,SAAO,SAAS;AAClB;AACO,SAAS,gBAAgB,MAAsB;AACpD,SAAO,SAAS;AAClB;AACO,SAAS,aAAa,MAAsB;AACjD,SAAO,SAAS;AAClB;AACO,SAAS,eAAe,MAAsB;AACnD,SAAO,SAAS;AAClB;AAEO,SAAS,KAAK,SAAyB;AAC5C,MAAI,SAAS;AACb,QAAM,cAAc;AACpB,UAAQ,SAAS;AAAA,IACf,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF;AACE,eAAS,sDAAsD;AAAA,EACnE;AACA,SAAO;AACT;", - "names": [] -} diff --git a/lib/cjs/core.js b/lib/cjs/core.js deleted file mode 100644 index 2f2514f..0000000 --- a/lib/cjs/core.js +++ /dev/null @@ -1,84 +0,0 @@ -'use strict'; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if ((from && typeof from === 'object') || typeof from === 'function') { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { - get: () => from[key], - enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable, - }); - } - return to; -}; -var __toCommonJS = (mod) => - __copyProps(__defProp({}, '__esModule', { value: true }), mod); - -// core.ts -var core_exports = {}; -__export(core_exports, { - dispute: () => dispute, - hello: () => hello, - help: () => help, - lib: () => lib, - message: () => message, - order: () => order, - rating: () => rating, - user: () => user, -}); -module.exports = __toCommonJS(core_exports); -function hello(name) { - return `Hello ${name}! I am the core :)`; -} -function dispute(name) { - return `Hello ${name}! I am the core :)`; -} -function lib(name) { - return `Hello ${name}! I am the core :)`; -} -function message(name) { - return `Hello ${name}! I am the core :)`; -} -function order(name) { - return `Hello ${name}! I am the core :)`; -} -function rating(name) { - return `Hello ${name}! I am the core :)`; -} -function user(name) { - return `Hello ${name}! I am the core :)`; -} -function help(command) { - let result = ''; - switch (command) { - case 'dispute': - result = 'Handles dispute resolution logic'; - break; - case 'lib': - result = 'Core library utilities'; - break; - case 'message': - result = 'Message handling functionality'; - break; - case 'order': - result = 'Order management system'; - break; - case 'rating': - result = 'User rating implementation'; - break; - case 'user': - result = 'User management functionality'; - break; - default: - result = - "we don't have that command; Choosea supported one (dispute, lib, message, order. rating, user)"; - } - return result; -} diff --git a/lib/cjs/core.js.map b/lib/cjs/core.js.map deleted file mode 100644 index a070a39..0000000 --- a/lib/cjs/core.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../core.ts"], - "sourcesContent": ["export function hello(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function dispute(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function lib(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function message(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function order(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function rating(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function user(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function help(command: string): string {\n let result = '';\n\n switch (command) {\n case 'dispute':\n result = 'Handles dispute resolution logic';\n break;\n case 'lib':\n result = 'Core library utilities';\n break;\n case 'message':\n result = 'Message handling functionality';\n break;\n case 'order':\n result = 'Order management system';\n break;\n case 'rating':\n result = 'User rating implementation';\n break;\n case 'user':\n result = 'User management functionality';\n break;\n default:\n result =\n \"we don't have that command; Choosea supported one (dispute, lib, message, order. rating, user)\";\n }\n return result;\n}\n"], - "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,MAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,IAAI,MAAsB;AACxC,SAAO,SAAS;AAClB;AAEO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,MAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAAS,OAAO,MAAsB;AAC3C,SAAO,SAAS;AAClB;AAEO,SAAS,KAAK,MAAsB;AACzC,SAAO,SAAS;AAClB;AAEO,SAAS,KAAK,SAAyB;AAC5C,MAAI,SAAS;AAEb,UAAQ,SAAS;AAAA,IACf,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF;AACE,eACE;AAAA,EACN;AACA,SAAO;AACT;", - "names": [] -} diff --git a/lib/cjs/index.js b/lib/cjs/index.js deleted file mode 100644 index bedf4f4..0000000 --- a/lib/cjs/index.js +++ /dev/null @@ -1,226 +0,0 @@ -'use strict'; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if ((from && typeof from === 'object') || typeof from === 'function') { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { - get: () => from[key], - enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable, - }); - } - return to; -}; -var __toCommonJS = (mod) => - __copyProps(__defProp({}, '__esModule', { value: true }), mod); - -// index.ts -var mostro_tools_exports = {}; -__export(mostro_tools_exports, { - mostro: () => mostro_exports, - mostroClient: () => client_exports, - mostroCore: () => core_exports, -}); -module.exports = __toCommonJS(mostro_tools_exports); - -// mostro.ts -var mostro_exports = {}; -__export(mostro_exports, { - client: () => client_exports, - core: () => core_exports, -}); - -// core.ts -var core_exports = {}; -__export(core_exports, { - dispute: () => dispute, - hello: () => hello, - help: () => help, - lib: () => lib, - message: () => message, - order: () => order, - rating: () => rating, - user: () => user, -}); -function hello(name) { - return `Hello ${name}! I am the core :)`; -} -function dispute(name) { - return `Hello ${name}! I am the core :)`; -} -function lib(name) { - return `Hello ${name}! I am the core :)`; -} -function message(name) { - return `Hello ${name}! I am the core :)`; -} -function order(name) { - return `Hello ${name}! I am the core :)`; -} -function rating(name) { - return `Hello ${name}! I am the core :)`; -} -function user(name) { - return `Hello ${name}! I am the core :)`; -} -function help(command) { - let result = ''; - switch (command) { - case 'dispute': - result = 'Handles dispute resolution logic'; - break; - case 'lib': - result = 'Core library utilities'; - break; - case 'message': - result = 'Message handling functionality'; - break; - case 'order': - result = 'Order management system'; - break; - case 'rating': - result = 'User rating implementation'; - break; - case 'user': - result = 'User management functionality'; - break; - default: - result = - "we don't have that command; Choosea supported one (dispute, lib, message, order. rating, user)"; - } - return result; -} - -// client.ts -var client_exports = {}; -__export(client_exports, { - addinvoice: () => addinvoice, - admaddsolver: () => admaddsolver, - admcancel: () => admcancel, - admlistdisputes: () => admlistdisputes, - admsettle: () => admsettle, - admtakedispute: () => admtakedispute, - cancel: () => cancel, - dispute: () => dispute2, - fiatsent: () => fiatsent, - getdm: () => getdm, - hello: () => hello2, - help: () => help2, - neworder: () => neworder, - rate: () => rate, - release: () => release, - takebuy: () => takebuy, - takesell: () => takesell, -}); -function hello2(name) { - return `Hello ${name}! I am a cli :)`; -} -function dispute2(name) { - return `Hello ${name}! I am the core :)`; -} -function neworder(name) { - return `Hello ${name}! I am the core :)`; -} -function takesell(name) { - return `Hello ${name}! I am the core :)`; -} -function takebuy(name) { - return `Hello ${name}! I am the core :)`; -} -function addinvoice(name) { - return `Hello ${name}! I am the core :)`; -} -function getdm(name) { - return `Hello ${name}! I am the core :)`; -} -function fiatsent(name) { - return `Hello ${name}! I am the core :)`; -} -function release(name) { - return `Hello ${name}! I am the core :)`; -} -function cancel(name) { - return `Hello ${name}! I am the core :)`; -} -function rate(name) { - return `Hello ${name}! I am the core :)`; -} -function admcancel(name) { - return `Hello ${name}! I am the core :)`; -} -function admsettle(name) { - return `Hello ${name}! I am the core :)`; -} -function admlistdisputes(name) { - return `Hello ${name}! I am the core :)`; -} -function admaddsolver(name) { - return `Hello ${name}! I am the core :)`; -} -function admtakedispute(name) { - return `Hello ${name}! I am the core :)`; -} -function help2(command) { - let result = ''; - const commandList = `listorders, neworder, takesell, takebuy , addinvoice, getdm, fiatsent, release, cancel, rate, dispute, admcancel, admsettle, admlistdisputes, admaddsolver, admtakedispute`; - switch (command) { - case 'listorders': - result = `Requests open orders from Mostro pubkey`; - break; - case 'neworder': - result = `Create a new buy/sell order on Mostro`; - break; - case 'takesell': - result = `Take a sell order from a Mostro pubkey`; - break; - case 'takebuy': - result = `Take a buy order from a Mostro pubkey`; - break; - case 'addinvoice': - result = `Buyer add a new invoice to receive the payment`; - break; - case 'getdm': - result = `Get the latest direct messages from Mostro`; - break; - case 'fiatsent': - result = `Send fiat sent message to confirm payment to other user`; - break; - case 'release': - result = `Settle the hold invoice and pay to buyer`; - break; - case 'cancel': - result = `Cancel a pending order`; - break; - case 'rate': - result = `Rate counterpart after a successful trade`; - break; - case 'dispute': - result = `Start a dispute`; - break; - case 'admcancel': - result = `Cancel an order (only admin)`; - break; - case 'admsettle': - result = `Settle a seller's hold invoice (only admin)`; - break; - case 'admlistdisputes': - result = `Requests open disputes from Mostro pubkey`; - break; - case 'admaddsolver': - result = `Add a new dispute's solver (only admin)`; - break; - case 'admtakedispute': - result = `Admin or solver take a Pending dispute (only admin)`; - break; - default: - result = `we don't have that command; Choosea supported one (${commandList})`; - } - return result; -} diff --git a/lib/cjs/index.js.map b/lib/cjs/index.js.map deleted file mode 100644 index 2d250b9..0000000 --- a/lib/cjs/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../index.ts", "../../mostro.ts", "../../core.ts", "../../client.ts"], - "sourcesContent": ["export * as mostro from './mostro.ts';\nexport * as mostroCore from './core.ts';\nexport * as mostroClient from './client.ts';\n", "import * as core from './core.ts';\nimport * as client from './client.ts';\n\nexport { core, client };\n", "export function hello(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function dispute(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function lib(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function message(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function order(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function rating(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function user(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function help(command: string): string {\n let result = '';\n\n switch (command) {\n case 'dispute':\n result = 'Handles dispute resolution logic';\n break;\n case 'lib':\n result = 'Core library utilities';\n break;\n case 'message':\n result = 'Message handling functionality';\n break;\n case 'order':\n result = 'Order management system';\n break;\n case 'rating':\n result = 'User rating implementation';\n break;\n case 'user':\n result = 'User management functionality';\n break;\n default:\n result =\n \"we don't have that command; Choosea supported one (dispute, lib, message, order. rating, user)\";\n }\n return result;\n}\n", "export function hello(name: string): string {\n return `Hello ${name}! I am a cli :)`;\n}\n\nexport function dispute(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function neworder(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function takesell(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function takebuy(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function addinvoice(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function getdm(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function fiatsent(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function release(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function cancel(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function rate(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admcancel(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admsettle(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admlistdisputes(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admaddsolver(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admtakedispute(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function help(command: string): string {\n let result = '';\n const commandList = `listorders, neworder, takesell, takebuy , addinvoice, getdm, fiatsent, release, cancel, rate, dispute, admcancel, admsettle, admlistdisputes, admaddsolver, admtakedispute`;\n switch (command) {\n case 'listorders':\n result = `Requests open orders from Mostro pubkey`;\n break;\n case 'neworder':\n result = `Create a new buy/sell order on Mostro`;\n break;\n case 'takesell':\n result = `Take a sell order from a Mostro pubkey`;\n break;\n case 'takebuy':\n result = `Take a buy order from a Mostro pubkey`;\n break;\n case 'addinvoice':\n result = `Buyer add a new invoice to receive the payment`;\n break;\n case 'getdm':\n result = `Get the latest direct messages from Mostro`;\n break;\n case 'fiatsent':\n result = `Send fiat sent message to confirm payment to other user`;\n break;\n case 'release':\n result = `Settle the hold invoice and pay to buyer`;\n break;\n case 'cancel':\n result = `Cancel a pending order`;\n break;\n case 'rate':\n result = `Rate counterpart after a successful trade`;\n break;\n case 'dispute':\n result = `Start a dispute`;\n break;\n case 'admcancel':\n result = `Cancel an order (only admin)`;\n break;\n case 'admsettle':\n result = `Settle a seller's hold invoice (only admin)`;\n break;\n case 'admlistdisputes':\n result = `Requests open disputes from Mostro pubkey`;\n break;\n case 'admaddsolver':\n result = `Add a new dispute's solver (only admin)`;\n break;\n case 'admtakedispute':\n result = `Admin or solver take a Pending dispute (only admin)`;\n break;\n default:\n result = `we don't have that command; Choosea supported one (${commandList})`;\n }\n return result;\n}\n"], - "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,MAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,IAAI,MAAsB;AACxC,SAAO,SAAS;AAClB;AAEO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,MAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAAS,OAAO,MAAsB;AAC3C,SAAO,SAAS;AAClB;AAEO,SAAS,KAAK,MAAsB;AACzC,SAAO,SAAS;AAClB;AAEO,SAAS,KAAK,SAAyB;AAC5C,MAAI,SAAS;AAEb,UAAQ,SAAS;AAAA,IACf,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF;AACE,eACE;AAAA,EACN;AACA,SAAO;AACT;;;ACvDA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAAA;AAAA,EAAA;AAAA;AAAA,eAAAC;AAAA,EAAA,YAAAC;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAASD,OAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAASD,SAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,SAAS,MAAsB;AAC7C,SAAO,SAAS;AAClB;AAEO,SAAS,SAAS,MAAsB;AAC7C,SAAO,SAAS;AAClB;AAEO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,WAAW,MAAsB;AAC/C,SAAO,SAAS;AAClB;AAEO,SAAS,MAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAAS,SAAS,MAAsB;AAC7C,SAAO,SAAS;AAClB;AACO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AACO,SAAS,OAAO,MAAsB;AAC3C,SAAO,SAAS;AAClB;AACO,SAAS,KAAK,MAAsB;AACzC,SAAO,SAAS;AAClB;AACO,SAAS,UAAU,MAAsB;AAC9C,SAAO,SAAS;AAClB;AACO,SAAS,UAAU,MAAsB;AAC9C,SAAO,SAAS;AAClB;AACO,SAAS,gBAAgB,MAAsB;AACpD,SAAO,SAAS;AAClB;AACO,SAAS,aAAa,MAAsB;AACjD,SAAO,SAAS;AAClB;AACO,SAAS,eAAe,MAAsB;AACnD,SAAO,SAAS;AAClB;AAEO,SAASE,MAAK,SAAyB;AAC5C,MAAI,SAAS;AACb,QAAM,cAAc;AACpB,UAAQ,SAAS;AAAA,IACf,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF;AACE,eAAS,sDAAsD;AAAA,EACnE;AACA,SAAO;AACT;", - "names": ["dispute", "hello", "help"] -} diff --git a/lib/cjs/mostro.js b/lib/cjs/mostro.js deleted file mode 100644 index 8d42d16..0000000 --- a/lib/cjs/mostro.js +++ /dev/null @@ -1,218 +0,0 @@ -'use strict'; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if ((from && typeof from === 'object') || typeof from === 'function') { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { - get: () => from[key], - enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable, - }); - } - return to; -}; -var __toCommonJS = (mod) => - __copyProps(__defProp({}, '__esModule', { value: true }), mod); - -// mostro.ts -var mostro_exports = {}; -__export(mostro_exports, { - client: () => client_exports, - core: () => core_exports, -}); -module.exports = __toCommonJS(mostro_exports); - -// core.ts -var core_exports = {}; -__export(core_exports, { - dispute: () => dispute, - hello: () => hello, - help: () => help, - lib: () => lib, - message: () => message, - order: () => order, - rating: () => rating, - user: () => user, -}); -function hello(name) { - return `Hello ${name}! I am the core :)`; -} -function dispute(name) { - return `Hello ${name}! I am the core :)`; -} -function lib(name) { - return `Hello ${name}! I am the core :)`; -} -function message(name) { - return `Hello ${name}! I am the core :)`; -} -function order(name) { - return `Hello ${name}! I am the core :)`; -} -function rating(name) { - return `Hello ${name}! I am the core :)`; -} -function user(name) { - return `Hello ${name}! I am the core :)`; -} -function help(command) { - let result = ''; - switch (command) { - case 'dispute': - result = 'Handles dispute resolution logic'; - break; - case 'lib': - result = 'Core library utilities'; - break; - case 'message': - result = 'Message handling functionality'; - break; - case 'order': - result = 'Order management system'; - break; - case 'rating': - result = 'User rating implementation'; - break; - case 'user': - result = 'User management functionality'; - break; - default: - result = - "we don't have that command; Choosea supported one (dispute, lib, message, order. rating, user)"; - } - return result; -} - -// client.ts -var client_exports = {}; -__export(client_exports, { - addinvoice: () => addinvoice, - admaddsolver: () => admaddsolver, - admcancel: () => admcancel, - admlistdisputes: () => admlistdisputes, - admsettle: () => admsettle, - admtakedispute: () => admtakedispute, - cancel: () => cancel, - dispute: () => dispute2, - fiatsent: () => fiatsent, - getdm: () => getdm, - hello: () => hello2, - help: () => help2, - neworder: () => neworder, - rate: () => rate, - release: () => release, - takebuy: () => takebuy, - takesell: () => takesell, -}); -function hello2(name) { - return `Hello ${name}! I am a cli :)`; -} -function dispute2(name) { - return `Hello ${name}! I am the core :)`; -} -function neworder(name) { - return `Hello ${name}! I am the core :)`; -} -function takesell(name) { - return `Hello ${name}! I am the core :)`; -} -function takebuy(name) { - return `Hello ${name}! I am the core :)`; -} -function addinvoice(name) { - return `Hello ${name}! I am the core :)`; -} -function getdm(name) { - return `Hello ${name}! I am the core :)`; -} -function fiatsent(name) { - return `Hello ${name}! I am the core :)`; -} -function release(name) { - return `Hello ${name}! I am the core :)`; -} -function cancel(name) { - return `Hello ${name}! I am the core :)`; -} -function rate(name) { - return `Hello ${name}! I am the core :)`; -} -function admcancel(name) { - return `Hello ${name}! I am the core :)`; -} -function admsettle(name) { - return `Hello ${name}! I am the core :)`; -} -function admlistdisputes(name) { - return `Hello ${name}! I am the core :)`; -} -function admaddsolver(name) { - return `Hello ${name}! I am the core :)`; -} -function admtakedispute(name) { - return `Hello ${name}! I am the core :)`; -} -function help2(command) { - let result = ''; - const commandList = `listorders, neworder, takesell, takebuy , addinvoice, getdm, fiatsent, release, cancel, rate, dispute, admcancel, admsettle, admlistdisputes, admaddsolver, admtakedispute`; - switch (command) { - case 'listorders': - result = `Requests open orders from Mostro pubkey`; - break; - case 'neworder': - result = `Create a new buy/sell order on Mostro`; - break; - case 'takesell': - result = `Take a sell order from a Mostro pubkey`; - break; - case 'takebuy': - result = `Take a buy order from a Mostro pubkey`; - break; - case 'addinvoice': - result = `Buyer add a new invoice to receive the payment`; - break; - case 'getdm': - result = `Get the latest direct messages from Mostro`; - break; - case 'fiatsent': - result = `Send fiat sent message to confirm payment to other user`; - break; - case 'release': - result = `Settle the hold invoice and pay to buyer`; - break; - case 'cancel': - result = `Cancel a pending order`; - break; - case 'rate': - result = `Rate counterpart after a successful trade`; - break; - case 'dispute': - result = `Start a dispute`; - break; - case 'admcancel': - result = `Cancel an order (only admin)`; - break; - case 'admsettle': - result = `Settle a seller's hold invoice (only admin)`; - break; - case 'admlistdisputes': - result = `Requests open disputes from Mostro pubkey`; - break; - case 'admaddsolver': - result = `Add a new dispute's solver (only admin)`; - break; - case 'admtakedispute': - result = `Admin or solver take a Pending dispute (only admin)`; - break; - default: - result = `we don't have that command; Choosea supported one (${commandList})`; - } - return result; -} diff --git a/lib/cjs/mostro.js.map b/lib/cjs/mostro.js.map deleted file mode 100644 index 9688132..0000000 --- a/lib/cjs/mostro.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../mostro.ts", "../../core.ts", "../../client.ts"], - "sourcesContent": ["import * as core from './core.ts';\nimport * as client from './client.ts';\n\nexport { core, client };\n", "export function hello(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function dispute(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function lib(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function message(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function order(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function rating(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function user(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function help(command: string): string {\n let result = '';\n\n switch (command) {\n case 'dispute':\n result = 'Handles dispute resolution logic';\n break;\n case 'lib':\n result = 'Core library utilities';\n break;\n case 'message':\n result = 'Message handling functionality';\n break;\n case 'order':\n result = 'Order management system';\n break;\n case 'rating':\n result = 'User rating implementation';\n break;\n case 'user':\n result = 'User management functionality';\n break;\n default:\n result =\n \"we don't have that command; Choosea supported one (dispute, lib, message, order. rating, user)\";\n }\n return result;\n}\n", "export function hello(name: string): string {\n return `Hello ${name}! I am a cli :)`;\n}\n\nexport function dispute(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function neworder(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function takesell(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function takebuy(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function addinvoice(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function getdm(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function fiatsent(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function release(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function cancel(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function rate(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admcancel(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admsettle(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admlistdisputes(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admaddsolver(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admtakedispute(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function help(command: string): string {\n let result = '';\n const commandList = `listorders, neworder, takesell, takebuy , addinvoice, getdm, fiatsent, release, cancel, rate, dispute, admcancel, admsettle, admlistdisputes, admaddsolver, admtakedispute`;\n switch (command) {\n case 'listorders':\n result = `Requests open orders from Mostro pubkey`;\n break;\n case 'neworder':\n result = `Create a new buy/sell order on Mostro`;\n break;\n case 'takesell':\n result = `Take a sell order from a Mostro pubkey`;\n break;\n case 'takebuy':\n result = `Take a buy order from a Mostro pubkey`;\n break;\n case 'addinvoice':\n result = `Buyer add a new invoice to receive the payment`;\n break;\n case 'getdm':\n result = `Get the latest direct messages from Mostro`;\n break;\n case 'fiatsent':\n result = `Send fiat sent message to confirm payment to other user`;\n break;\n case 'release':\n result = `Settle the hold invoice and pay to buyer`;\n break;\n case 'cancel':\n result = `Cancel a pending order`;\n break;\n case 'rate':\n result = `Rate counterpart after a successful trade`;\n break;\n case 'dispute':\n result = `Start a dispute`;\n break;\n case 'admcancel':\n result = `Cancel an order (only admin)`;\n break;\n case 'admsettle':\n result = `Settle a seller's hold invoice (only admin)`;\n break;\n case 'admlistdisputes':\n result = `Requests open disputes from Mostro pubkey`;\n break;\n case 'admaddsolver':\n result = `Add a new dispute's solver (only admin)`;\n break;\n case 'admtakedispute':\n result = `Admin or solver take a Pending dispute (only admin)`;\n break;\n default:\n result = `we don't have that command; Choosea supported one (${commandList})`;\n }\n return result;\n}\n"], - "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,MAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,IAAI,MAAsB;AACxC,SAAO,SAAS;AAClB;AAEO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,MAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAAS,OAAO,MAAsB;AAC3C,SAAO,SAAS;AAClB;AAEO,SAAS,KAAK,MAAsB;AACzC,SAAO,SAAS;AAClB;AAEO,SAAS,KAAK,SAAyB;AAC5C,MAAI,SAAS;AAEb,UAAQ,SAAS;AAAA,IACf,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF;AACE,eACE;AAAA,EACN;AACA,SAAO;AACT;;;ACvDA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAAA;AAAA,EAAA;AAAA;AAAA,eAAAC;AAAA,EAAA,YAAAC;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAASD,OAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAASD,SAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,SAAS,MAAsB;AAC7C,SAAO,SAAS;AAClB;AAEO,SAAS,SAAS,MAAsB;AAC7C,SAAO,SAAS;AAClB;AAEO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,WAAW,MAAsB;AAC/C,SAAO,SAAS;AAClB;AAEO,SAAS,MAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAAS,SAAS,MAAsB;AAC7C,SAAO,SAAS;AAClB;AACO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AACO,SAAS,OAAO,MAAsB;AAC3C,SAAO,SAAS;AAClB;AACO,SAAS,KAAK,MAAsB;AACzC,SAAO,SAAS;AAClB;AACO,SAAS,UAAU,MAAsB;AAC9C,SAAO,SAAS;AAClB;AACO,SAAS,UAAU,MAAsB;AAC9C,SAAO,SAAS;AAClB;AACO,SAAS,gBAAgB,MAAsB;AACpD,SAAO,SAAS;AAClB;AACO,SAAS,aAAa,MAAsB;AACjD,SAAO,SAAS;AAClB;AACO,SAAS,eAAe,MAAsB;AACnD,SAAO,SAAS;AAClB;AAEO,SAASE,MAAK,SAAyB;AAC5C,MAAI,SAAS;AACb,QAAM,cAAc;AACpB,UAAQ,SAAS;AAAA,IACf,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF;AACE,eAAS,sDAAsD;AAAA,EACnE;AACA,SAAO;AACT;", - "names": ["dispute", "hello", "help"] -} diff --git a/lib/cjs/package.json b/lib/cjs/package.json deleted file mode 100644 index 5bbefff..0000000 --- a/lib/cjs/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "commonjs" -} diff --git a/lib/esm/client.js b/lib/esm/client.js deleted file mode 100644 index 91fb178..0000000 --- a/lib/esm/client.js +++ /dev/null @@ -1,125 +0,0 @@ -// client.ts -function hello(name) { - return `Hello ${name}! I am a cli :)`; -} -function dispute(name) { - return `Hello ${name}! I am the core :)`; -} -function neworder(name) { - return `Hello ${name}! I am the core :)`; -} -function takesell(name) { - return `Hello ${name}! I am the core :)`; -} -function takebuy(name) { - return `Hello ${name}! I am the core :)`; -} -function addinvoice(name) { - return `Hello ${name}! I am the core :)`; -} -function getdm(name) { - return `Hello ${name}! I am the core :)`; -} -function fiatsent(name) { - return `Hello ${name}! I am the core :)`; -} -function release(name) { - return `Hello ${name}! I am the core :)`; -} -function cancel(name) { - return `Hello ${name}! I am the core :)`; -} -function rate(name) { - return `Hello ${name}! I am the core :)`; -} -function admcancel(name) { - return `Hello ${name}! I am the core :)`; -} -function admsettle(name) { - return `Hello ${name}! I am the core :)`; -} -function admlistdisputes(name) { - return `Hello ${name}! I am the core :)`; -} -function admaddsolver(name) { - return `Hello ${name}! I am the core :)`; -} -function admtakedispute(name) { - return `Hello ${name}! I am the core :)`; -} -function help(command) { - let result = ''; - const commandList = `listorders, neworder, takesell, takebuy , addinvoice, getdm, fiatsent, release, cancel, rate, dispute, admcancel, admsettle, admlistdisputes, admaddsolver, admtakedispute`; - switch (command) { - case 'listorders': - result = `Requests open orders from Mostro pubkey`; - break; - case 'neworder': - result = `Create a new buy/sell order on Mostro`; - break; - case 'takesell': - result = `Take a sell order from a Mostro pubkey`; - break; - case 'takebuy': - result = `Take a buy order from a Mostro pubkey`; - break; - case 'addinvoice': - result = `Buyer add a new invoice to receive the payment`; - break; - case 'getdm': - result = `Get the latest direct messages from Mostro`; - break; - case 'fiatsent': - result = `Send fiat sent message to confirm payment to other user`; - break; - case 'release': - result = `Settle the hold invoice and pay to buyer`; - break; - case 'cancel': - result = `Cancel a pending order`; - break; - case 'rate': - result = `Rate counterpart after a successful trade`; - break; - case 'dispute': - result = `Start a dispute`; - break; - case 'admcancel': - result = `Cancel an order (only admin)`; - break; - case 'admsettle': - result = `Settle a seller's hold invoice (only admin)`; - break; - case 'admlistdisputes': - result = `Requests open disputes from Mostro pubkey`; - break; - case 'admaddsolver': - result = `Add a new dispute's solver (only admin)`; - break; - case 'admtakedispute': - result = `Admin or solver take a Pending dispute (only admin)`; - break; - default: - result = `we don't have that command; Choosea supported one (${commandList})`; - } - return result; -} -export { - addinvoice, - admaddsolver, - admcancel, - admlistdisputes, - admsettle, - admtakedispute, - cancel, - dispute, - fiatsent, - getdm, - hello, - help, - neworder, - rate, - release, - takebuy, - takesell, -}; diff --git a/lib/esm/client.js.map b/lib/esm/client.js.map deleted file mode 100644 index 2471e6e..0000000 --- a/lib/esm/client.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../client.ts"], - "sourcesContent": ["export function hello(name: string): string {\n return `Hello ${name}! I am a cli :)`;\n}\n\nexport function dispute(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function neworder(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function takesell(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function takebuy(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function addinvoice(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function getdm(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function fiatsent(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function release(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function cancel(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function rate(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admcancel(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admsettle(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admlistdisputes(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admaddsolver(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admtakedispute(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function help(command: string): string {\n let result = '';\n const commandList = `listorders, neworder, takesell, takebuy , addinvoice, getdm, fiatsent, release, cancel, rate, dispute, admcancel, admsettle, admlistdisputes, admaddsolver, admtakedispute`;\n switch (command) {\n case 'listorders':\n result = `Requests open orders from Mostro pubkey`;\n break;\n case 'neworder':\n result = `Create a new buy/sell order on Mostro`;\n break;\n case 'takesell':\n result = `Take a sell order from a Mostro pubkey`;\n break;\n case 'takebuy':\n result = `Take a buy order from a Mostro pubkey`;\n break;\n case 'addinvoice':\n result = `Buyer add a new invoice to receive the payment`;\n break;\n case 'getdm':\n result = `Get the latest direct messages from Mostro`;\n break;\n case 'fiatsent':\n result = `Send fiat sent message to confirm payment to other user`;\n break;\n case 'release':\n result = `Settle the hold invoice and pay to buyer`;\n break;\n case 'cancel':\n result = `Cancel a pending order`;\n break;\n case 'rate':\n result = `Rate counterpart after a successful trade`;\n break;\n case 'dispute':\n result = `Start a dispute`;\n break;\n case 'admcancel':\n result = `Cancel an order (only admin)`;\n break;\n case 'admsettle':\n result = `Settle a seller's hold invoice (only admin)`;\n break;\n case 'admlistdisputes':\n result = `Requests open disputes from Mostro pubkey`;\n break;\n case 'admaddsolver':\n result = `Add a new dispute's solver (only admin)`;\n break;\n case 'admtakedispute':\n result = `Admin or solver take a Pending dispute (only admin)`;\n break;\n default:\n result = `we don't have that command; Choosea supported one (${commandList})`;\n }\n return result;\n}\n"], - "mappings": ";AAAO,SAAS,MAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,SAAS,MAAsB;AAC7C,SAAO,SAAS;AAClB;AAEO,SAAS,SAAS,MAAsB;AAC7C,SAAO,SAAS;AAClB;AAEO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,WAAW,MAAsB;AAC/C,SAAO,SAAS;AAClB;AAEO,SAAS,MAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAAS,SAAS,MAAsB;AAC7C,SAAO,SAAS;AAClB;AACO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AACO,SAAS,OAAO,MAAsB;AAC3C,SAAO,SAAS;AAClB;AACO,SAAS,KAAK,MAAsB;AACzC,SAAO,SAAS;AAClB;AACO,SAAS,UAAU,MAAsB;AAC9C,SAAO,SAAS;AAClB;AACO,SAAS,UAAU,MAAsB;AAC9C,SAAO,SAAS;AAClB;AACO,SAAS,gBAAgB,MAAsB;AACpD,SAAO,SAAS;AAClB;AACO,SAAS,aAAa,MAAsB;AACjD,SAAO,SAAS;AAClB;AACO,SAAS,eAAe,MAAsB;AACnD,SAAO,SAAS;AAClB;AAEO,SAAS,KAAK,SAAyB;AAC5C,MAAI,SAAS;AACb,QAAM,cAAc;AACpB,UAAQ,SAAS;AAAA,IACf,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF;AACE,eAAS,sDAAsD;AAAA,EACnE;AACA,SAAO;AACT;", - "names": [] -} diff --git a/lib/esm/core.js b/lib/esm/core.js deleted file mode 100644 index d6a3c7a..0000000 --- a/lib/esm/core.js +++ /dev/null @@ -1,50 +0,0 @@ -// core.ts -function hello(name) { - return `Hello ${name}! I am the core :)`; -} -function dispute(name) { - return `Hello ${name}! I am the core :)`; -} -function lib(name) { - return `Hello ${name}! I am the core :)`; -} -function message(name) { - return `Hello ${name}! I am the core :)`; -} -function order(name) { - return `Hello ${name}! I am the core :)`; -} -function rating(name) { - return `Hello ${name}! I am the core :)`; -} -function user(name) { - return `Hello ${name}! I am the core :)`; -} -function help(command) { - let result = ''; - switch (command) { - case 'dispute': - result = 'Handles dispute resolution logic'; - break; - case 'lib': - result = 'Core library utilities'; - break; - case 'message': - result = 'Message handling functionality'; - break; - case 'order': - result = 'Order management system'; - break; - case 'rating': - result = 'User rating implementation'; - break; - case 'user': - result = 'User management functionality'; - break; - default: - result = - "we don't have that command; Choosea supported one (dispute, lib, message, order. rating, user)"; - } - return result; -} -export { dispute, hello, help, lib, message, order, rating, user }; diff --git a/lib/esm/core.js.map b/lib/esm/core.js.map deleted file mode 100644 index c93a133..0000000 --- a/lib/esm/core.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../core.ts"], - "sourcesContent": ["export function hello(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function dispute(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function lib(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function message(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function order(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function rating(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function user(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function help(command: string): string {\n let result = '';\n\n switch (command) {\n case 'dispute':\n result = 'Handles dispute resolution logic';\n break;\n case 'lib':\n result = 'Core library utilities';\n break;\n case 'message':\n result = 'Message handling functionality';\n break;\n case 'order':\n result = 'Order management system';\n break;\n case 'rating':\n result = 'User rating implementation';\n break;\n case 'user':\n result = 'User management functionality';\n break;\n default:\n result =\n \"we don't have that command; Choosea supported one (dispute, lib, message, order. rating, user)\";\n }\n return result;\n}\n"], - "mappings": ";AAAO,SAAS,MAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,IAAI,MAAsB;AACxC,SAAO,SAAS;AAClB;AAEO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,MAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAAS,OAAO,MAAsB;AAC3C,SAAO,SAAS;AAClB;AAEO,SAAS,KAAK,MAAsB;AACzC,SAAO,SAAS;AAClB;AAEO,SAAS,KAAK,SAAyB;AAC5C,MAAI,SAAS;AAEb,UAAQ,SAAS;AAAA,IACf,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF;AACE,eACE;AAAA,EACN;AACA,SAAO;AACT;", - "names": [] -} diff --git a/lib/esm/index.js b/lib/esm/index.js deleted file mode 100644 index 93020fe..0000000 --- a/lib/esm/index.js +++ /dev/null @@ -1,205 +0,0 @@ -var __defProp = Object.defineProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; - -// mostro.ts -var mostro_exports = {}; -__export(mostro_exports, { - client: () => client_exports, - core: () => core_exports, -}); - -// core.ts -var core_exports = {}; -__export(core_exports, { - dispute: () => dispute, - hello: () => hello, - help: () => help, - lib: () => lib, - message: () => message, - order: () => order, - rating: () => rating, - user: () => user, -}); -function hello(name) { - return `Hello ${name}! I am the core :)`; -} -function dispute(name) { - return `Hello ${name}! I am the core :)`; -} -function lib(name) { - return `Hello ${name}! I am the core :)`; -} -function message(name) { - return `Hello ${name}! I am the core :)`; -} -function order(name) { - return `Hello ${name}! I am the core :)`; -} -function rating(name) { - return `Hello ${name}! I am the core :)`; -} -function user(name) { - return `Hello ${name}! I am the core :)`; -} -function help(command) { - let result = ''; - switch (command) { - case 'dispute': - result = 'Handles dispute resolution logic'; - break; - case 'lib': - result = 'Core library utilities'; - break; - case 'message': - result = 'Message handling functionality'; - break; - case 'order': - result = 'Order management system'; - break; - case 'rating': - result = 'User rating implementation'; - break; - case 'user': - result = 'User management functionality'; - break; - default: - result = - "we don't have that command; Choosea supported one (dispute, lib, message, order. rating, user)"; - } - return result; -} - -// client.ts -var client_exports = {}; -__export(client_exports, { - addinvoice: () => addinvoice, - admaddsolver: () => admaddsolver, - admcancel: () => admcancel, - admlistdisputes: () => admlistdisputes, - admsettle: () => admsettle, - admtakedispute: () => admtakedispute, - cancel: () => cancel, - dispute: () => dispute2, - fiatsent: () => fiatsent, - getdm: () => getdm, - hello: () => hello2, - help: () => help2, - neworder: () => neworder, - rate: () => rate, - release: () => release, - takebuy: () => takebuy, - takesell: () => takesell, -}); -function hello2(name) { - return `Hello ${name}! I am a cli :)`; -} -function dispute2(name) { - return `Hello ${name}! I am the core :)`; -} -function neworder(name) { - return `Hello ${name}! I am the core :)`; -} -function takesell(name) { - return `Hello ${name}! I am the core :)`; -} -function takebuy(name) { - return `Hello ${name}! I am the core :)`; -} -function addinvoice(name) { - return `Hello ${name}! I am the core :)`; -} -function getdm(name) { - return `Hello ${name}! I am the core :)`; -} -function fiatsent(name) { - return `Hello ${name}! I am the core :)`; -} -function release(name) { - return `Hello ${name}! I am the core :)`; -} -function cancel(name) { - return `Hello ${name}! I am the core :)`; -} -function rate(name) { - return `Hello ${name}! I am the core :)`; -} -function admcancel(name) { - return `Hello ${name}! I am the core :)`; -} -function admsettle(name) { - return `Hello ${name}! I am the core :)`; -} -function admlistdisputes(name) { - return `Hello ${name}! I am the core :)`; -} -function admaddsolver(name) { - return `Hello ${name}! I am the core :)`; -} -function admtakedispute(name) { - return `Hello ${name}! I am the core :)`; -} -function help2(command) { - let result = ''; - const commandList = `listorders, neworder, takesell, takebuy , addinvoice, getdm, fiatsent, release, cancel, rate, dispute, admcancel, admsettle, admlistdisputes, admaddsolver, admtakedispute`; - switch (command) { - case 'listorders': - result = `Requests open orders from Mostro pubkey`; - break; - case 'neworder': - result = `Create a new buy/sell order on Mostro`; - break; - case 'takesell': - result = `Take a sell order from a Mostro pubkey`; - break; - case 'takebuy': - result = `Take a buy order from a Mostro pubkey`; - break; - case 'addinvoice': - result = `Buyer add a new invoice to receive the payment`; - break; - case 'getdm': - result = `Get the latest direct messages from Mostro`; - break; - case 'fiatsent': - result = `Send fiat sent message to confirm payment to other user`; - break; - case 'release': - result = `Settle the hold invoice and pay to buyer`; - break; - case 'cancel': - result = `Cancel a pending order`; - break; - case 'rate': - result = `Rate counterpart after a successful trade`; - break; - case 'dispute': - result = `Start a dispute`; - break; - case 'admcancel': - result = `Cancel an order (only admin)`; - break; - case 'admsettle': - result = `Settle a seller's hold invoice (only admin)`; - break; - case 'admlistdisputes': - result = `Requests open disputes from Mostro pubkey`; - break; - case 'admaddsolver': - result = `Add a new dispute's solver (only admin)`; - break; - case 'admtakedispute': - result = `Admin or solver take a Pending dispute (only admin)`; - break; - default: - result = `we don't have that command; Choosea supported one (${commandList})`; - } - return result; -} -export { - mostro_exports as mostro, - client_exports as mostroClient, - core_exports as mostroCore, -}; diff --git a/lib/esm/index.js.map b/lib/esm/index.js.map deleted file mode 100644 index 91d0e65..0000000 --- a/lib/esm/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../mostro.ts", "../../core.ts", "../../client.ts"], - "sourcesContent": ["import * as core from './core.ts';\nimport * as client from './client.ts';\n\nexport { core, client };\n", "export function hello(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function dispute(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function lib(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function message(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function order(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function rating(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function user(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function help(command: string): string {\n let result = '';\n\n switch (command) {\n case 'dispute':\n result = 'Handles dispute resolution logic';\n break;\n case 'lib':\n result = 'Core library utilities';\n break;\n case 'message':\n result = 'Message handling functionality';\n break;\n case 'order':\n result = 'Order management system';\n break;\n case 'rating':\n result = 'User rating implementation';\n break;\n case 'user':\n result = 'User management functionality';\n break;\n default:\n result =\n \"we don't have that command; Choosea supported one (dispute, lib, message, order. rating, user)\";\n }\n return result;\n}\n", "export function hello(name: string): string {\n return `Hello ${name}! I am a cli :)`;\n}\n\nexport function dispute(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function neworder(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function takesell(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function takebuy(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function addinvoice(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function getdm(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function fiatsent(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function release(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function cancel(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function rate(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admcancel(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admsettle(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admlistdisputes(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admaddsolver(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admtakedispute(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function help(command: string): string {\n let result = '';\n const commandList = `listorders, neworder, takesell, takebuy , addinvoice, getdm, fiatsent, release, cancel, rate, dispute, admcancel, admsettle, admlistdisputes, admaddsolver, admtakedispute`;\n switch (command) {\n case 'listorders':\n result = `Requests open orders from Mostro pubkey`;\n break;\n case 'neworder':\n result = `Create a new buy/sell order on Mostro`;\n break;\n case 'takesell':\n result = `Take a sell order from a Mostro pubkey`;\n break;\n case 'takebuy':\n result = `Take a buy order from a Mostro pubkey`;\n break;\n case 'addinvoice':\n result = `Buyer add a new invoice to receive the payment`;\n break;\n case 'getdm':\n result = `Get the latest direct messages from Mostro`;\n break;\n case 'fiatsent':\n result = `Send fiat sent message to confirm payment to other user`;\n break;\n case 'release':\n result = `Settle the hold invoice and pay to buyer`;\n break;\n case 'cancel':\n result = `Cancel a pending order`;\n break;\n case 'rate':\n result = `Rate counterpart after a successful trade`;\n break;\n case 'dispute':\n result = `Start a dispute`;\n break;\n case 'admcancel':\n result = `Cancel an order (only admin)`;\n break;\n case 'admsettle':\n result = `Settle a seller's hold invoice (only admin)`;\n break;\n case 'admlistdisputes':\n result = `Requests open disputes from Mostro pubkey`;\n break;\n case 'admaddsolver':\n result = `Add a new dispute's solver (only admin)`;\n break;\n case 'admtakedispute':\n result = `Admin or solver take a Pending dispute (only admin)`;\n break;\n default:\n result = `we don't have that command; Choosea supported one (${commandList})`;\n }\n return result;\n}\n"], - "mappings": ";;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,MAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,IAAI,MAAsB;AACxC,SAAO,SAAS;AAClB;AAEO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,MAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAAS,OAAO,MAAsB;AAC3C,SAAO,SAAS;AAClB;AAEO,SAAS,KAAK,MAAsB;AACzC,SAAO,SAAS;AAClB;AAEO,SAAS,KAAK,SAAyB;AAC5C,MAAI,SAAS;AAEb,UAAQ,SAAS;AAAA,IACf,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF;AACE,eACE;AAAA,EACN;AACA,SAAO;AACT;;;ACvDA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAAA;AAAA,EAAA;AAAA;AAAA,eAAAC;AAAA,EAAA,YAAAC;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAASD,OAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAASD,SAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,SAAS,MAAsB;AAC7C,SAAO,SAAS;AAClB;AAEO,SAAS,SAAS,MAAsB;AAC7C,SAAO,SAAS;AAClB;AAEO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,WAAW,MAAsB;AAC/C,SAAO,SAAS;AAClB;AAEO,SAAS,MAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAAS,SAAS,MAAsB;AAC7C,SAAO,SAAS;AAClB;AACO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AACO,SAAS,OAAO,MAAsB;AAC3C,SAAO,SAAS;AAClB;AACO,SAAS,KAAK,MAAsB;AACzC,SAAO,SAAS;AAClB;AACO,SAAS,UAAU,MAAsB;AAC9C,SAAO,SAAS;AAClB;AACO,SAAS,UAAU,MAAsB;AAC9C,SAAO,SAAS;AAClB;AACO,SAAS,gBAAgB,MAAsB;AACpD,SAAO,SAAS;AAClB;AACO,SAAS,aAAa,MAAsB;AACjD,SAAO,SAAS;AAClB;AACO,SAAS,eAAe,MAAsB;AACnD,SAAO,SAAS;AAClB;AAEO,SAASE,MAAK,SAAyB;AAC5C,MAAI,SAAS;AACb,QAAM,cAAc;AACpB,UAAQ,SAAS;AAAA,IACf,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF;AACE,eAAS,sDAAsD;AAAA,EACnE;AACA,SAAO;AACT;", - "names": ["dispute", "hello", "help"] -} diff --git a/lib/esm/mostro.js b/lib/esm/mostro.js deleted file mode 100644 index 4cc4e31..0000000 --- a/lib/esm/mostro.js +++ /dev/null @@ -1,194 +0,0 @@ -var __defProp = Object.defineProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; - -// core.ts -var core_exports = {}; -__export(core_exports, { - dispute: () => dispute, - hello: () => hello, - help: () => help, - lib: () => lib, - message: () => message, - order: () => order, - rating: () => rating, - user: () => user, -}); -function hello(name) { - return `Hello ${name}! I am the core :)`; -} -function dispute(name) { - return `Hello ${name}! I am the core :)`; -} -function lib(name) { - return `Hello ${name}! I am the core :)`; -} -function message(name) { - return `Hello ${name}! I am the core :)`; -} -function order(name) { - return `Hello ${name}! I am the core :)`; -} -function rating(name) { - return `Hello ${name}! I am the core :)`; -} -function user(name) { - return `Hello ${name}! I am the core :)`; -} -function help(command) { - let result = ''; - switch (command) { - case 'dispute': - result = 'Handles dispute resolution logic'; - break; - case 'lib': - result = 'Core library utilities'; - break; - case 'message': - result = 'Message handling functionality'; - break; - case 'order': - result = 'Order management system'; - break; - case 'rating': - result = 'User rating implementation'; - break; - case 'user': - result = 'User management functionality'; - break; - default: - result = - "we don't have that command; Choosea supported one (dispute, lib, message, order. rating, user)"; - } - return result; -} - -// client.ts -var client_exports = {}; -__export(client_exports, { - addinvoice: () => addinvoice, - admaddsolver: () => admaddsolver, - admcancel: () => admcancel, - admlistdisputes: () => admlistdisputes, - admsettle: () => admsettle, - admtakedispute: () => admtakedispute, - cancel: () => cancel, - dispute: () => dispute2, - fiatsent: () => fiatsent, - getdm: () => getdm, - hello: () => hello2, - help: () => help2, - neworder: () => neworder, - rate: () => rate, - release: () => release, - takebuy: () => takebuy, - takesell: () => takesell, -}); -function hello2(name) { - return `Hello ${name}! I am a cli :)`; -} -function dispute2(name) { - return `Hello ${name}! I am the core :)`; -} -function neworder(name) { - return `Hello ${name}! I am the core :)`; -} -function takesell(name) { - return `Hello ${name}! I am the core :)`; -} -function takebuy(name) { - return `Hello ${name}! I am the core :)`; -} -function addinvoice(name) { - return `Hello ${name}! I am the core :)`; -} -function getdm(name) { - return `Hello ${name}! I am the core :)`; -} -function fiatsent(name) { - return `Hello ${name}! I am the core :)`; -} -function release(name) { - return `Hello ${name}! I am the core :)`; -} -function cancel(name) { - return `Hello ${name}! I am the core :)`; -} -function rate(name) { - return `Hello ${name}! I am the core :)`; -} -function admcancel(name) { - return `Hello ${name}! I am the core :)`; -} -function admsettle(name) { - return `Hello ${name}! I am the core :)`; -} -function admlistdisputes(name) { - return `Hello ${name}! I am the core :)`; -} -function admaddsolver(name) { - return `Hello ${name}! I am the core :)`; -} -function admtakedispute(name) { - return `Hello ${name}! I am the core :)`; -} -function help2(command) { - let result = ''; - const commandList = `listorders, neworder, takesell, takebuy , addinvoice, getdm, fiatsent, release, cancel, rate, dispute, admcancel, admsettle, admlistdisputes, admaddsolver, admtakedispute`; - switch (command) { - case 'listorders': - result = `Requests open orders from Mostro pubkey`; - break; - case 'neworder': - result = `Create a new buy/sell order on Mostro`; - break; - case 'takesell': - result = `Take a sell order from a Mostro pubkey`; - break; - case 'takebuy': - result = `Take a buy order from a Mostro pubkey`; - break; - case 'addinvoice': - result = `Buyer add a new invoice to receive the payment`; - break; - case 'getdm': - result = `Get the latest direct messages from Mostro`; - break; - case 'fiatsent': - result = `Send fiat sent message to confirm payment to other user`; - break; - case 'release': - result = `Settle the hold invoice and pay to buyer`; - break; - case 'cancel': - result = `Cancel a pending order`; - break; - case 'rate': - result = `Rate counterpart after a successful trade`; - break; - case 'dispute': - result = `Start a dispute`; - break; - case 'admcancel': - result = `Cancel an order (only admin)`; - break; - case 'admsettle': - result = `Settle a seller's hold invoice (only admin)`; - break; - case 'admlistdisputes': - result = `Requests open disputes from Mostro pubkey`; - break; - case 'admaddsolver': - result = `Add a new dispute's solver (only admin)`; - break; - case 'admtakedispute': - result = `Admin or solver take a Pending dispute (only admin)`; - break; - default: - result = `we don't have that command; Choosea supported one (${commandList})`; - } - return result; -} -export { client_exports as client, core_exports as core }; diff --git a/lib/esm/mostro.js.map b/lib/esm/mostro.js.map deleted file mode 100644 index 06c4485..0000000 --- a/lib/esm/mostro.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../core.ts", "../../client.ts"], - "sourcesContent": ["export function hello(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function dispute(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function lib(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function message(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function order(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function rating(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function user(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function help(command: string): string {\n let result = '';\n\n switch (command) {\n case 'dispute':\n result = 'Handles dispute resolution logic';\n break;\n case 'lib':\n result = 'Core library utilities';\n break;\n case 'message':\n result = 'Message handling functionality';\n break;\n case 'order':\n result = 'Order management system';\n break;\n case 'rating':\n result = 'User rating implementation';\n break;\n case 'user':\n result = 'User management functionality';\n break;\n default:\n result =\n \"we don't have that command; Choosea supported one (dispute, lib, message, order. rating, user)\";\n }\n return result;\n}\n", "export function hello(name: string): string {\n return `Hello ${name}! I am a cli :)`;\n}\n\nexport function dispute(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function neworder(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function takesell(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function takebuy(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function addinvoice(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function getdm(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function fiatsent(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function release(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function cancel(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function rate(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admcancel(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admsettle(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admlistdisputes(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admaddsolver(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admtakedispute(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function help(command: string): string {\n let result = '';\n const commandList = `listorders, neworder, takesell, takebuy , addinvoice, getdm, fiatsent, release, cancel, rate, dispute, admcancel, admsettle, admlistdisputes, admaddsolver, admtakedispute`;\n switch (command) {\n case 'listorders':\n result = `Requests open orders from Mostro pubkey`;\n break;\n case 'neworder':\n result = `Create a new buy/sell order on Mostro`;\n break;\n case 'takesell':\n result = `Take a sell order from a Mostro pubkey`;\n break;\n case 'takebuy':\n result = `Take a buy order from a Mostro pubkey`;\n break;\n case 'addinvoice':\n result = `Buyer add a new invoice to receive the payment`;\n break;\n case 'getdm':\n result = `Get the latest direct messages from Mostro`;\n break;\n case 'fiatsent':\n result = `Send fiat sent message to confirm payment to other user`;\n break;\n case 'release':\n result = `Settle the hold invoice and pay to buyer`;\n break;\n case 'cancel':\n result = `Cancel a pending order`;\n break;\n case 'rate':\n result = `Rate counterpart after a successful trade`;\n break;\n case 'dispute':\n result = `Start a dispute`;\n break;\n case 'admcancel':\n result = `Cancel an order (only admin)`;\n break;\n case 'admsettle':\n result = `Settle a seller's hold invoice (only admin)`;\n break;\n case 'admlistdisputes':\n result = `Requests open disputes from Mostro pubkey`;\n break;\n case 'admaddsolver':\n result = `Add a new dispute's solver (only admin)`;\n break;\n case 'admtakedispute':\n result = `Admin or solver take a Pending dispute (only admin)`;\n break;\n default:\n result = `we don't have that command; Choosea supported one (${commandList})`;\n }\n return result;\n}\n"], - "mappings": ";;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,MAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,IAAI,MAAsB;AACxC,SAAO,SAAS;AAClB;AAEO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,MAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAAS,OAAO,MAAsB;AAC3C,SAAO,SAAS;AAClB;AAEO,SAAS,KAAK,MAAsB;AACzC,SAAO,SAAS;AAClB;AAEO,SAAS,KAAK,SAAyB;AAC5C,MAAI,SAAS;AAEb,UAAQ,SAAS;AAAA,IACf,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF;AACE,eACE;AAAA,EACN;AACA,SAAO;AACT;;;ACvDA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAAA;AAAA,EAAA;AAAA;AAAA,eAAAC;AAAA,EAAA,YAAAC;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAASD,OAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAASD,SAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,SAAS,MAAsB;AAC7C,SAAO,SAAS;AAClB;AAEO,SAAS,SAAS,MAAsB;AAC7C,SAAO,SAAS;AAClB;AAEO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AAEO,SAAS,WAAW,MAAsB;AAC/C,SAAO,SAAS;AAClB;AAEO,SAAS,MAAM,MAAsB;AAC1C,SAAO,SAAS;AAClB;AAEO,SAAS,SAAS,MAAsB;AAC7C,SAAO,SAAS;AAClB;AACO,SAAS,QAAQ,MAAsB;AAC5C,SAAO,SAAS;AAClB;AACO,SAAS,OAAO,MAAsB;AAC3C,SAAO,SAAS;AAClB;AACO,SAAS,KAAK,MAAsB;AACzC,SAAO,SAAS;AAClB;AACO,SAAS,UAAU,MAAsB;AAC9C,SAAO,SAAS;AAClB;AACO,SAAS,UAAU,MAAsB;AAC9C,SAAO,SAAS;AAClB;AACO,SAAS,gBAAgB,MAAsB;AACpD,SAAO,SAAS;AAClB;AACO,SAAS,aAAa,MAAsB;AACjD,SAAO,SAAS;AAClB;AACO,SAAS,eAAe,MAAsB;AACnD,SAAO,SAAS;AAClB;AAEO,SAASE,MAAK,SAAyB;AAC5C,MAAI,SAAS;AACb,QAAM,cAAc;AACpB,UAAQ,SAAS;AAAA,IACf,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF,KAAK;AACH,eAAS;AACT;AAAA,IACF;AACE,eAAS,sDAAsD;AAAA,EACnE;AACA,SAAO;AACT;", - "names": ["dispute", "hello", "help"] -} diff --git a/lib/mostro.bundle.js b/lib/mostro.bundle.js deleted file mode 100644 index bb4398d..0000000 --- a/lib/mostro.bundle.js +++ /dev/null @@ -1,229 +0,0 @@ -'use strict'; -var MostroTools = (() => { - var __defProp = Object.defineProperty; - var __getOwnPropDesc = Object.getOwnPropertyDescriptor; - var __getOwnPropNames = Object.getOwnPropertyNames; - var __hasOwnProp = Object.prototype.hasOwnProperty; - var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); - }; - var __copyProps = (to, from, except, desc) => { - if ((from && typeof from === 'object') || typeof from === 'function') { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { - get: () => from[key], - enumerable: - !(desc = __getOwnPropDesc(from, key)) || desc.enumerable, - }); - } - return to; - }; - var __toCommonJS = (mod) => - __copyProps(__defProp({}, '__esModule', { value: true }), mod); - - // index.ts - var mostro_tools_exports = {}; - __export(mostro_tools_exports, { - mostro: () => mostro_exports, - mostroClient: () => client_exports, - mostroCore: () => core_exports, - }); - - // mostro.ts - var mostro_exports = {}; - __export(mostro_exports, { - client: () => client_exports, - core: () => core_exports, - }); - - // core.ts - var core_exports = {}; - __export(core_exports, { - dispute: () => dispute, - hello: () => hello, - help: () => help, - lib: () => lib, - message: () => message, - order: () => order, - rating: () => rating, - user: () => user, - }); - function hello(name) { - return `Hello ${name}! I am the core :)`; - } - function dispute(name) { - return `Hello ${name}! I am the core :)`; - } - function lib(name) { - return `Hello ${name}! I am the core :)`; - } - function message(name) { - return `Hello ${name}! I am the core :)`; - } - function order(name) { - return `Hello ${name}! I am the core :)`; - } - function rating(name) { - return `Hello ${name}! I am the core :)`; - } - function user(name) { - return `Hello ${name}! I am the core :)`; - } - function help(command) { - let result = ''; - switch (command) { - case 'dispute': - result = 'Handles dispute resolution logic'; - break; - case 'lib': - result = 'Core library utilities'; - break; - case 'message': - result = 'Message handling functionality'; - break; - case 'order': - result = 'Order management system'; - break; - case 'rating': - result = 'User rating implementation'; - break; - case 'user': - result = 'User management functionality'; - break; - default: - result = - "we don't have that command; Choosea supported one (dispute, lib, message, order. rating, user)"; - } - return result; - } - - // client.ts - var client_exports = {}; - __export(client_exports, { - addinvoice: () => addinvoice, - admaddsolver: () => admaddsolver, - admcancel: () => admcancel, - admlistdisputes: () => admlistdisputes, - admsettle: () => admsettle, - admtakedispute: () => admtakedispute, - cancel: () => cancel, - dispute: () => dispute2, - fiatsent: () => fiatsent, - getdm: () => getdm, - hello: () => hello2, - help: () => help2, - neworder: () => neworder, - rate: () => rate, - release: () => release, - takebuy: () => takebuy, - takesell: () => takesell, - }); - function hello2(name) { - return `Hello ${name}! I am a cli :)`; - } - function dispute2(name) { - return `Hello ${name}! I am the core :)`; - } - function neworder(name) { - return `Hello ${name}! I am the core :)`; - } - function takesell(name) { - return `Hello ${name}! I am the core :)`; - } - function takebuy(name) { - return `Hello ${name}! I am the core :)`; - } - function addinvoice(name) { - return `Hello ${name}! I am the core :)`; - } - function getdm(name) { - return `Hello ${name}! I am the core :)`; - } - function fiatsent(name) { - return `Hello ${name}! I am the core :)`; - } - function release(name) { - return `Hello ${name}! I am the core :)`; - } - function cancel(name) { - return `Hello ${name}! I am the core :)`; - } - function rate(name) { - return `Hello ${name}! I am the core :)`; - } - function admcancel(name) { - return `Hello ${name}! I am the core :)`; - } - function admsettle(name) { - return `Hello ${name}! I am the core :)`; - } - function admlistdisputes(name) { - return `Hello ${name}! I am the core :)`; - } - function admaddsolver(name) { - return `Hello ${name}! I am the core :)`; - } - function admtakedispute(name) { - return `Hello ${name}! I am the core :)`; - } - function help2(command) { - let result = ''; - const commandList = `listorders, neworder, takesell, takebuy , addinvoice, getdm, fiatsent, release, cancel, rate, dispute, admcancel, admsettle, admlistdisputes, admaddsolver, admtakedispute`; - switch (command) { - case 'listorders': - result = `Requests open orders from Mostro pubkey`; - break; - case 'neworder': - result = `Create a new buy/sell order on Mostro`; - break; - case 'takesell': - result = `Take a sell order from a Mostro pubkey`; - break; - case 'takebuy': - result = `Take a buy order from a Mostro pubkey`; - break; - case 'addinvoice': - result = `Buyer add a new invoice to receive the payment`; - break; - case 'getdm': - result = `Get the latest direct messages from Mostro`; - break; - case 'fiatsent': - result = `Send fiat sent message to confirm payment to other user`; - break; - case 'release': - result = `Settle the hold invoice and pay to buyer`; - break; - case 'cancel': - result = `Cancel a pending order`; - break; - case 'rate': - result = `Rate counterpart after a successful trade`; - break; - case 'dispute': - result = `Start a dispute`; - break; - case 'admcancel': - result = `Cancel an order (only admin)`; - break; - case 'admsettle': - result = `Settle a seller's hold invoice (only admin)`; - break; - case 'admlistdisputes': - result = `Requests open disputes from Mostro pubkey`; - break; - case 'admaddsolver': - result = `Add a new dispute's solver (only admin)`; - break; - case 'admtakedispute': - result = `Admin or solver take a Pending dispute (only admin)`; - break; - default: - result = `we don't have that command; Choosea supported one (${commandList})`; - } - return result; - } - return __toCommonJS(mostro_tools_exports); -})(); diff --git a/lib/mostro.bundle.js.map b/lib/mostro.bundle.js.map deleted file mode 100644 index 1039fce..0000000 --- a/lib/mostro.bundle.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../index.ts", "../mostro.ts", "../core.ts", "../client.ts"], - "sourcesContent": ["export * as mostro from './mostro.ts';\nexport * as mostroCore from './core.ts';\nexport * as mostroClient from './client.ts';\n", "import * as core from './core.ts';\nimport * as client from './client.ts';\n\nexport { core, client };\n", "export function hello(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function dispute(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function lib(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function message(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function order(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function rating(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function user(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function help(command: string): string {\n let result = '';\n\n switch (command) {\n case 'dispute':\n result = 'Handles dispute resolution logic';\n break;\n case 'lib':\n result = 'Core library utilities';\n break;\n case 'message':\n result = 'Message handling functionality';\n break;\n case 'order':\n result = 'Order management system';\n break;\n case 'rating':\n result = 'User rating implementation';\n break;\n case 'user':\n result = 'User management functionality';\n break;\n default:\n result =\n \"we don't have that command; Choosea supported one (dispute, lib, message, order. rating, user)\";\n }\n return result;\n}\n", "export function hello(name: string): string {\n return `Hello ${name}! I am a cli :)`;\n}\n\nexport function dispute(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function neworder(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function takesell(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function takebuy(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function addinvoice(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function getdm(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function fiatsent(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function release(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function cancel(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function rate(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admcancel(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admsettle(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admlistdisputes(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admaddsolver(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\nexport function admtakedispute(name: string): string {\n return `Hello ${name}! I am the core :)`;\n}\n\nexport function help(command: string): string {\n let result = '';\n const commandList = `listorders, neworder, takesell, takebuy , addinvoice, getdm, fiatsent, release, cancel, rate, dispute, admcancel, admsettle, admlistdisputes, admaddsolver, admtakedispute`;\n switch (command) {\n case 'listorders':\n result = `Requests open orders from Mostro pubkey`;\n break;\n case 'neworder':\n result = `Create a new buy/sell order on Mostro`;\n break;\n case 'takesell':\n result = `Take a sell order from a Mostro pubkey`;\n break;\n case 'takebuy':\n result = `Take a buy order from a Mostro pubkey`;\n break;\n case 'addinvoice':\n result = `Buyer add a new invoice to receive the payment`;\n break;\n case 'getdm':\n result = `Get the latest direct messages from Mostro`;\n break;\n case 'fiatsent':\n result = `Send fiat sent message to confirm payment to other user`;\n break;\n case 'release':\n result = `Settle the hold invoice and pay to buyer`;\n break;\n case 'cancel':\n result = `Cancel a pending order`;\n break;\n case 'rate':\n result = `Rate counterpart after a successful trade`;\n break;\n case 'dispute':\n result = `Start a dispute`;\n break;\n case 'admcancel':\n result = `Cancel an order (only admin)`;\n break;\n case 'admsettle':\n result = `Settle a seller's hold invoice (only admin)`;\n break;\n case 'admlistdisputes':\n result = `Requests open disputes from Mostro pubkey`;\n break;\n case 'admaddsolver':\n result = `Add a new dispute's solver (only admin)`;\n break;\n case 'admtakedispute':\n result = `Admin or solver take a Pending dispute (only admin)`;\n break;\n default:\n result = `we don't have that command; Choosea supported one (${commandList})`;\n }\n return result;\n}\n"], - "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,WAAS,MAAM,MAAsB;AAC1C,WAAO,SAAS;AAAA,EAClB;AAEO,WAAS,QAAQ,MAAsB;AAC5C,WAAO,SAAS;AAAA,EAClB;AAEO,WAAS,IAAI,MAAsB;AACxC,WAAO,SAAS;AAAA,EAClB;AAEO,WAAS,QAAQ,MAAsB;AAC5C,WAAO,SAAS;AAAA,EAClB;AAEO,WAAS,MAAM,MAAsB;AAC1C,WAAO,SAAS;AAAA,EAClB;AAEO,WAAS,OAAO,MAAsB;AAC3C,WAAO,SAAS;AAAA,EAClB;AAEO,WAAS,KAAK,MAAsB;AACzC,WAAO,SAAS;AAAA,EAClB;AAEO,WAAS,KAAK,SAAyB;AAC5C,QAAI,SAAS;AAEb,YAAQ,SAAS;AAAA,MACf,KAAK;AACH,iBAAS;AACT;AAAA,MACF,KAAK;AACH,iBAAS;AACT;AAAA,MACF,KAAK;AACH,iBAAS;AACT;AAAA,MACF,KAAK;AACH,iBAAS;AACT;AAAA,MACF,KAAK;AACH,iBAAS;AACT;AAAA,MACF,KAAK;AACH,iBAAS;AACT;AAAA,MACF;AACE,iBACE;AAAA,IACN;AACA,WAAO;AAAA,EACT;;;ACvDA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAAA;AAAA,IAAA;AAAA;AAAA,iBAAAC;AAAA,IAAA,YAAAC;AAAA,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,WAASC,OAAM,MAAsB;AAC1C,WAAO,SAAS;AAAA,EAClB;AAEO,WAASC,SAAQ,MAAsB;AAC5C,WAAO,SAAS;AAAA,EAClB;AAEO,WAAS,SAAS,MAAsB;AAC7C,WAAO,SAAS;AAAA,EAClB;AAEO,WAAS,SAAS,MAAsB;AAC7C,WAAO,SAAS;AAAA,EAClB;AAEO,WAAS,QAAQ,MAAsB;AAC5C,WAAO,SAAS;AAAA,EAClB;AAEO,WAAS,WAAW,MAAsB;AAC/C,WAAO,SAAS;AAAA,EAClB;AAEO,WAAS,MAAM,MAAsB;AAC1C,WAAO,SAAS;AAAA,EAClB;AAEO,WAAS,SAAS,MAAsB;AAC7C,WAAO,SAAS;AAAA,EAClB;AACO,WAAS,QAAQ,MAAsB;AAC5C,WAAO,SAAS;AAAA,EAClB;AACO,WAAS,OAAO,MAAsB;AAC3C,WAAO,SAAS;AAAA,EAClB;AACO,WAAS,KAAK,MAAsB;AACzC,WAAO,SAAS;AAAA,EAClB;AACO,WAAS,UAAU,MAAsB;AAC9C,WAAO,SAAS;AAAA,EAClB;AACO,WAAS,UAAU,MAAsB;AAC9C,WAAO,SAAS;AAAA,EAClB;AACO,WAAS,gBAAgB,MAAsB;AACpD,WAAO,SAAS;AAAA,EAClB;AACO,WAAS,aAAa,MAAsB;AACjD,WAAO,SAAS;AAAA,EAClB;AACO,WAAS,eAAe,MAAsB;AACnD,WAAO,SAAS;AAAA,EAClB;AAEO,WAASC,MAAK,SAAyB;AAC5C,QAAI,SAAS;AACb,UAAM,cAAc;AACpB,YAAQ,SAAS;AAAA,MACf,KAAK;AACH,iBAAS;AACT;AAAA,MACF,KAAK;AACH,iBAAS;AACT;AAAA,MACF,KAAK;AACH,iBAAS;AACT;AAAA,MACF,KAAK;AACH,iBAAS;AACT;AAAA,MACF,KAAK;AACH,iBAAS;AACT;AAAA,MACF,KAAK;AACH,iBAAS;AACT;AAAA,MACF,KAAK;AACH,iBAAS;AACT;AAAA,MACF,KAAK;AACH,iBAAS;AACT;AAAA,MACF,KAAK;AACH,iBAAS;AACT;AAAA,MACF,KAAK;AACH,iBAAS;AACT;AAAA,MACF,KAAK;AACH,iBAAS;AACT;AAAA,MACF,KAAK;AACH,iBAAS;AACT;AAAA,MACF,KAAK;AACH,iBAAS;AACT;AAAA,MACF,KAAK;AACH,iBAAS;AACT;AAAA,MACF,KAAK;AACH,iBAAS;AACT;AAAA,MACF,KAAK;AACH,iBAAS;AACT;AAAA,MACF;AACE,iBAAS,sDAAsD;AAAA,IACnE;AACA,WAAO;AAAA,EACT;", - "names": ["dispute", "hello", "help", "hello", "dispute", "help"] -} diff --git a/lib/types/client.d.ts b/lib/types/client.d.ts deleted file mode 100644 index 12e031e..0000000 --- a/lib/types/client.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -export declare function hello(name: string): string; -export declare function dispute(name: string): string; -export declare function neworder(name: string): string; -export declare function takesell(name: string): string; -export declare function takebuy(name: string): string; -export declare function addinvoice(name: string): string; -export declare function getdm(name: string): string; -export declare function fiatsent(name: string): string; -export declare function release(name: string): string; -export declare function cancel(name: string): string; -export declare function rate(name: string): string; -export declare function admcancel(name: string): string; -export declare function admsettle(name: string): string; -export declare function admlistdisputes(name: string): string; -export declare function admaddsolver(name: string): string; -export declare function admtakedispute(name: string): string; -export declare function help(command: string): string; diff --git a/lib/types/client.test.d.ts b/lib/types/client.test.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/lib/types/client.test.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/lib/types/commitlint.config.d.ts b/lib/types/commitlint.config.d.ts deleted file mode 100644 index 4e12c25..0000000 --- a/lib/types/commitlint.config.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { UserConfig } from '@commitlint/types'; -declare const _default: UserConfig; -export default _default; diff --git a/lib/types/core.d.ts b/lib/types/core.d.ts deleted file mode 100644 index 8c2f9ad..0000000 --- a/lib/types/core.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export declare function hello(name: string): string; -export declare function dispute(name: string): string; -export declare function lib(name: string): string; -export declare function message(name: string): string; -export declare function order(name: string): string; -export declare function rating(name: string): string; -export declare function user(name: string): string; -export declare function help(command: string): string; diff --git a/lib/types/core.test.d.ts b/lib/types/core.test.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/lib/types/core.test.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/lib/types/index.d.ts b/lib/types/index.d.ts deleted file mode 100644 index 8c5f894..0000000 --- a/lib/types/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * as mostro from './mostro.ts'; -export * as mostroCore from './core.ts'; -export * as mostroClient from './client.ts'; diff --git a/lib/types/mostro.d.ts b/lib/types/mostro.d.ts deleted file mode 100644 index 4597acc..0000000 --- a/lib/types/mostro.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as core from './core.ts'; -import * as client from './client.ts'; -export { core, client }; diff --git a/lib/types/mostro.test.d.ts b/lib/types/mostro.test.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/lib/types/mostro.test.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/lib/types/src/index.d.ts b/lib/types/src/index.d.ts deleted file mode 100644 index 5fc59dc..0000000 --- a/lib/types/src/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare const foo = 'bar'; -export declare function wait(timeout?: number): Promise; -export declare const dirname: string; diff --git a/lib/types/src/types/client/admin.d.ts b/lib/types/src/types/client/admin.d.ts deleted file mode 100644 index 5e9f97d..0000000 --- a/lib/types/src/types/client/admin.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { Dispute } from '../core/index.ts'; -export interface AdminFunctions { - admcancel: (orderId: string) => Promise; - admsettle: (orderId: string) => Promise; - admlistdisputes: () => Promise; - admaddsolver: (pubkey: string) => Promise; - admtakedispute: (disputeId: string) => Promise; -} diff --git a/lib/types/src/types/client/disputes.d.ts b/lib/types/src/types/client/disputes.d.ts deleted file mode 100644 index ea18c1f..0000000 --- a/lib/types/src/types/client/disputes.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface DisputeFunctions { - dispute: (orderId: string) => Promise; - rate: (orderId: string, rating: 1 | 2 | 3 | 4 | 5) => Promise; -} diff --git a/lib/types/src/types/client/index.d.ts b/lib/types/src/types/client/index.d.ts deleted file mode 100644 index 0bec3cb..0000000 --- a/lib/types/src/types/client/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export interface ClientConfig { - mostroPubKey: string; - relays: string[]; - privateKey?: string; - debug?: boolean; -} -export * from './admin.ts'; -export * from './disputes.ts'; -export * from './messages.ts'; -export * from './orders.ts'; diff --git a/lib/types/src/types/client/messages.d.ts b/lib/types/src/types/client/messages.d.ts deleted file mode 100644 index 5586d83..0000000 --- a/lib/types/src/types/client/messages.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { MessageKind } from '@/types/core/index.ts'; -export interface MessageFunctions { - getdm: (pubkey: string) => Promise; - fiatsent: (orderId: string) => Promise; - addinvoice: (orderId: string, invoice: string) => Promise; - release: (orderId: string) => Promise; -} diff --git a/lib/types/src/types/client/orders.d.ts b/lib/types/src/types/client/orders.d.ts deleted file mode 100644 index c8ce2cb..0000000 --- a/lib/types/src/types/client/orders.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { Order } from '@/types/core/index.ts'; -export interface OrderFunctions { - listorders: () => Promise; - neworder: (order: Partial) => Promise; - takesell: (orderId: string, amount?: number) => Promise; - takebuy: (orderId: string, amount?: number) => Promise; - cancel: (orderId: string) => Promise; -} diff --git a/lib/types/src/types/core/dispute.d.ts b/lib/types/src/types/core/dispute.d.ts deleted file mode 100644 index ac446f5..0000000 --- a/lib/types/src/types/core/dispute.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -export declare enum DisputeStatus { - INITIATED = 'initiated', - IN_PROGRESS = 'in-progress', - SELLER_REFUNDED = 'seller-refunded', - SETTLED = 'settled', - RELEASED = 'released', -} -export interface Dispute { - id: string; - order_id: string; - status: DisputeStatus; - solver_pubkey: string | null; - created_at: number; - taken_at: number; - buyer_token: number | null; - seller_token: number | null; -} diff --git a/lib/types/src/types/core/index.d.ts b/lib/types/src/types/core/index.d.ts deleted file mode 100644 index 829ca2f..0000000 --- a/lib/types/src/types/core/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from './dispute.ts'; -export * from './message.ts'; -export * from './nostr.ts'; -export * from './order.ts'; -export * from './rating.ts'; -export * from './user.ts'; diff --git a/lib/types/src/types/core/message.d.ts b/lib/types/src/types/core/message.d.ts deleted file mode 100644 index f99dc1c..0000000 --- a/lib/types/src/types/core/message.d.ts +++ /dev/null @@ -1,118 +0,0 @@ -import type { Order } from './order.ts'; -export declare enum Action { - NewOrder = 'new-order', - TakeSell = 'take-sell', - TakeBuy = 'take-buy', - PayInvoice = 'pay-invoice', - AddInvoice = 'add-invoice', - FiatSent = 'fiat-sent', - FiatSentOk = 'fiat-sent-ok', - Release = 'release', - Released = 'released', - Cancel = 'cancel', - Canceled = 'canceled', - WaitingBuyerInvoice = 'waiting-buyer-invoice', - WaitingSellerToPay = 'waiting-seller-to-pay', - BuyerTookOrder = 'buyer-took-order', - HoldInvoicePaymentAccepted = 'hold-invoice-payment-accepted', - HoldInvoicePaymentSettled = 'hold-invoice-payment-settled', - HoldInvoicePaymentCanceled = 'hold-invoice-payment-canceled', - CooperativeCancelInitiatedByYou = 'cooperative-cancel-initiated-by-you', - CooperativeCancelInitiatedByPeer = 'cooperative-cancel-initiated-by-peer', - CooperativeCancelAccepted = 'cooperative-cancel-accepted', - Rate = 'rate', - RateUser = 'rate-user', - RateReceived = 'rate-received', - Dispute = 'dispute', - DisputeInitiatedByYou = 'dispute-initiated-by-you', - DisputeInitiatedByPeer = 'dispute-initiated-by-peer', - CantDo = 'cant-do', - OutOfRangeFiatAmount = 'out-of-range-fiat-amount', - IsNotYourDispute = 'is-not-your-dispute', - NotFound = 'not-found', - IncorrectInvoiceAmount = 'incorrect-invoice-amount', - InvalidSatsAmount = 'invalid-sats-amount', - OutOfRangeSatsAmount = 'out-of-range-sats-amount', - PaymentFailed = 'payment-failed', - InvoiceUpdated = 'invoice-updated', -} -export interface MessageContent { - order?: Order; - payment_request?: { - order: Order | null; - invoice: string; - amount?: number; - }; - text_message?: string; - peer?: { - pubkey: string; - }; - rating_user?: { - value: 1 | 2 | 3 | 4 | 5; - confirmed: boolean; - }; - dispute?: { - id: string; - buyer_token?: number; - seller_token?: number; - }; -} -export interface MessageKind { - version: number; - request_id: number; - id?: string; - action: Action; - content?: MessageContent; -} -export type Message = - | { - type: 'order'; - message: MessageKind & { - action: OrderActions; - }; - } - | { - type: 'dispute'; - message: MessageKind & { - action: DisputeActions; - }; - } - | { - type: 'cant_do'; - message: MessageKind & { - action: Action.CantDo; - }; - } - | { - type: 'rate'; - message: MessageKind & { - action: RatingActions; - }; - }; -type OrderActions = - | Action.NewOrder - | Action.TakeSell - | Action.TakeBuy - | Action.PayInvoice - | Action.AddInvoice - | Action.FiatSent - | Action.FiatSentOk - | Action.Release - | Action.Released - | Action.Cancel - | Action.Canceled - | Action.WaitingBuyerInvoice - | Action.WaitingSellerToPay - | Action.BuyerTookOrder - | Action.HoldInvoicePaymentAccepted - | Action.HoldInvoicePaymentSettled - | Action.HoldInvoicePaymentCanceled - | Action.CooperativeCancelInitiatedByYou - | Action.CooperativeCancelInitiatedByPeer - | Action.CooperativeCancelAccepted; -type DisputeActions = - | Action.Dispute - | Action.DisputeInitiatedByYou - | Action.DisputeInitiatedByPeer; -type RatingActions = Action.Rate | Action.RateUser | Action.RateReceived; -export {}; diff --git a/lib/types/src/types/core/nostr.d.ts b/lib/types/src/types/core/nostr.d.ts deleted file mode 100644 index 5b2d287..0000000 --- a/lib/types/src/types/core/nostr.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -export interface Rumor { - id: string; - pubkey: string; - created_at: number; - kind: number; - tags: string[][]; - content: string; -} -export interface Seal { - id: string; - pubkey: string; - created_at: number; - kind: 13; - tags: string[][]; - content: string; - sig: string; -} -export interface GiftWrap { - id?: string; - pubkey: string; - created_at: number; - kind: 1059; - tags: string[][]; - content: string; - sig?: string; -} diff --git a/lib/types/src/types/core/order.d.ts b/lib/types/src/types/core/order.d.ts deleted file mode 100644 index 7b1bf77..0000000 --- a/lib/types/src/types/core/order.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -export declare enum OrderType { - BUY = 'buy', - SELL = 'sell', -} -export declare enum OrderStatus { - ACTIVE = 'active', - CANCELED = 'canceled', - CANCELED_BY_ADMIN = 'canceled-by-admin', - SETTLED_BY_ADMIN = 'settled-by-admin', - COMPLETED_BY_ADMIN = 'completed-by-admin', - DISPUTE = 'dispute', - EXPIRED = 'expired', - FIAT_SENT = 'fiat-sent', - SETTLED_HOLD_INVOICE = 'settled-hold-invoice', - PENDING = 'pending', - SUCCESS = 'success', - WAITING_BUYER_INVOICE = 'waiting-buyer-invoice', - WAITING_PAYMENT = 'waiting-payment', - COOPERATIVELY_CANCELED = 'cooperatively-canceled', -} -export interface Order { - id: string; - kind: OrderType; - status: OrderStatus; - event_id: string; - hash: string | null; - preimage: string | null; - creator_pubkey: string; - cancel_initiator_pubkey: string | null; - buyer_pubkey: string | null; - seller_pubkey: string | null; - price_from_api: boolean; - premium: number; - payment_method: string; - amount: number; - min_amount: number | null; - max_amount: number | null; - buyer_dispute: boolean; - seller_dispute: boolean; - buyer_cooperativecancel: boolean; - seller_cooperativecancel: boolean; - fee: number; - routing_fee: number; - fiat_code: string; - fiat_amount: number; - buyer_invoice: string | null; - range_parent_id: string | null; - invoice_held_at: number; - taken_at: number; - created_at: number; - buyer_sent_rate: boolean; - seller_sent_rate: boolean; - failed_payment: boolean; - payment_attempts: number; - expires_at: number; - master_buyer_pubkey?: string; - master_seller_pubkey?: string; -} diff --git a/lib/types/src/types/core/rating.d.ts b/lib/types/src/types/core/rating.d.ts deleted file mode 100644 index 794db81..0000000 --- a/lib/types/src/types/core/rating.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Represents a user's rating in the Mostro system. - * - * Rating Calculation Methodology: - * 1. Each new rating is added to total_rating - * 2. total_reviews is incremented for each new rating - * 3. Average rating = total_rating / total_reviews - * 4. The rating is calculated iteratively to build reputation over time - * - * Example: - * If a user receives three 5-star ratings: - * - total_rating would be 15 (5 + 5 + 5) - * - total_reviews would be 3 - * - average rating would be 15/3 = 5 - * - * @property total_reviews - Total number of ratings received - * @property total_rating - Sum of all ratings received (cumulative) - * @property last_rating - Most recent rating received - * @property max_rate - Maximum possible rating value (typically 5) - * @property min_rate - Minimum possible rating value (typically 1) - */ -export interface Rating { - total_reviews: number; - total_rating: number; - last_rating: number; - max_rate: number; - min_rate: number; -} -/** - * Calculates the average rating for a user. - * Returns 0 if no reviews are present. - * - * @param rating - Rating object containing review data - * @returns number - Average rating between min_rate and max_rate, or 0 if no reviews - */ -export declare function calculateAverageRating(rating: Rating): number; -/** - * Rating utility functions for validation and calculations - */ -export declare const RatingUtils: { - calculateAverage: typeof calculateAverageRating; - /** - * Validates if a new rating value is within allowed bounds - * @param rating - Current rating object - * @param value - New rating value to validate - */ - isValidRating: (rating: Rating, value: number) => boolean; - /** - * Validates if a Rating object has valid properties - * @param rating - Rating object to validate - */ - isValidRatingObject: (rating: Rating) => boolean; - /** - * Adds a new rating to the existing rating object - * @param currentRating - Current rating object - * @param newRatingValue - New rating value to add - */ - addNewRating: (currentRating: Rating, newRatingValue: number) => Rating; -}; diff --git a/lib/types/src/types/core/user.d.ts b/lib/types/src/types/core/user.d.ts deleted file mode 100644 index e945283..0000000 --- a/lib/types/src/types/core/user.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * User type definitions - * - * TODO: In future versions, the 'category' field will be replaced with a proper enum. - * This will be implemented when user categories are fully defined in the protocol. - * For now, we keep it as number to maintain compatibility with current implementation. - */ -export interface User { - id: string; - pubkey: string; - is_admin: boolean; - is_solver: boolean; - is_banned: boolean; - category: number; - created_at: number; -} -export declare const isAdmin: (user: User) => boolean; -export declare const isSolver: (user: User) => boolean; -export declare const isBanned: (user: User) => boolean; diff --git a/lib/types/src/types/index.d.ts b/lib/types/src/types/index.d.ts deleted file mode 100644 index 668f470..0000000 --- a/lib/types/src/types/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export * from './client/index.ts'; -export * from './core/index.ts'; -export declare const NOSTR_CONSTANTS: { - readonly REPLACEABLE_EVENT_KIND: 38383; - readonly PROTOCOL_VERSION: 1; - readonly TIMEOUTS: { - readonly ORDER_EXPIRATION: number; - readonly INVOICE_SUBMISSION: number; - readonly HOLD_INVOICE_EXPIRATION: number; - }; -}; diff --git a/lib/types/test/index.test.d.ts b/lib/types/test/index.test.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/lib/types/test/index.test.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/lint-staged.config.js b/lint-staged.config.js deleted file mode 100644 index 1895faa..0000000 --- a/lint-staged.config.js +++ /dev/null @@ -1,9 +0,0 @@ -export default { - '*.{js,jsx,mjs,ts,tsx,mts}': ['eslint --fix'], - // '*.{json,md,mdx,css,html,yml,yaml,scss}': [ - // // 'prettier --with-node-modules --ignore-path .prettierignore --write', - // 'eslint --fix', - // ], - // for rust - // '*.rs': ['cargo fmt --'], -}; diff --git a/mostro.test.ts b/mostro.test.ts deleted file mode 100644 index d3eb118..0000000 --- a/mostro.test.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { test, expect } from 'bun:test'; -import { client, core } from './mostro.ts'; - -test('Say hello from mostro client', () => { - const testValue = 'Mostro'; - const result = client.hello(testValue); - const expected = `Hello Mostro! I am a cli :)`; - - expect(result).toEqual(expected); -}); - -test('Say hello from mostro core', () => { - const testValue = 'Mostro'; - const result = core.hello(testValue); - const expected = `Hello Mostro! I am the core :)`; - - expect(result).toEqual(expected); -}); diff --git a/mostro.ts b/mostro.ts deleted file mode 100644 index 5f08bc1..0000000 --- a/mostro.ts +++ /dev/null @@ -1,4 +0,0 @@ -import * as core from './core.ts'; -import * as client from './client.ts'; - -export { core, client }; diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index bab0841..0000000 --- a/package-lock.json +++ /dev/null @@ -1,5709 +0,0 @@ -{ - "name": "mostro-tools", - "version": "0.0.1", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "mostro-tools", - "version": "0.0.1", - "license": "MIT", - "dependencies": { - "@noble/ciphers": "^0.5.1", - "@noble/curves": "1.2.0", - "@noble/hashes": "1.3.1", - "@scure/base": "1.1.1", - "@scure/bip32": "1.3.1", - "@scure/bip39": "1.2.1", - "eslint-plugin-prettier": "^5.2.1", - "husky": "^9.1.6", - "lint-staged": "^15.2.10", - "typescript-eslint": "^8.14.0" - }, - "devDependencies": { - "@commitlint/cli": "^19.5.0", - "@commitlint/config-conventional": "^19.5.0", - "@types/node": "^18.13.0", - "@types/node-fetch": "^2.6.3", - "@typescript-eslint/eslint-plugin": "^6.5.0", - "@typescript-eslint/parser": "^6.5.0", - "bun-types": "^1.0.18", - "esbuild": "0.16.9", - "esbuild-plugin-alias": "^0.2.1", - "eslint": "^9.14.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-babel": "^5.3.1", - "esm-loader-typescript": "^1.0.3", - "events": "^3.3.0", - "mitata": "^0.1.6", - "mock-socket": "^9.3.1", - "msw": "^2.1.4", - "node-fetch": "^2.6.9", - "prettier": "^3.3.3", - "typescript": "^5.0.4" - }, - "peerDependencies": { - "typescript": ">=5.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@aashutoshrathi/word-wrap": { - "version": "1.2.6", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.26.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.25.9", - "js-tokens": "^4.0.0", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.25.9", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@bundled-es-modules/cookie": { - "version": "2.0.0", - "dev": true, - "license": "ISC", - "dependencies": { - "cookie": "^0.5.0" - } - }, - "node_modules/@bundled-es-modules/statuses": { - "version": "1.0.1", - "dev": true, - "license": "ISC", - "dependencies": { - "statuses": "^2.0.1" - } - }, - "node_modules/@commitlint/cli": { - "version": "19.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/format": "^19.5.0", - "@commitlint/lint": "^19.5.0", - "@commitlint/load": "^19.5.0", - "@commitlint/read": "^19.5.0", - "@commitlint/types": "^19.5.0", - "tinyexec": "^0.3.0", - "yargs": "^17.0.0" - }, - "bin": { - "commitlint": "cli.js" - }, - "engines": { - "node": ">=v18" - } - }, - "node_modules/@commitlint/config-conventional": { - "version": "19.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/types": "^19.5.0", - "conventional-changelog-conventionalcommits": "^7.0.2" - }, - "engines": { - "node": ">=v18" - } - }, - "node_modules/@commitlint/config-validator": { - "version": "19.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/types": "^19.5.0", - "ajv": "^8.11.0" - }, - "engines": { - "node": ">=v18" - } - }, - "node_modules/@commitlint/config-validator/node_modules/ajv": { - "version": "8.17.1", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/@commitlint/config-validator/node_modules/ajv/node_modules/json-schema-traverse": { - "version": "1.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/@commitlint/ensure": { - "version": "19.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/types": "^19.5.0", - "lodash.camelcase": "^4.3.0", - "lodash.kebabcase": "^4.1.1", - "lodash.snakecase": "^4.1.1", - "lodash.startcase": "^4.4.0", - "lodash.upperfirst": "^4.3.1" - }, - "engines": { - "node": ">=v18" - } - }, - "node_modules/@commitlint/execute-rule": { - "version": "19.5.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=v18" - } - }, - "node_modules/@commitlint/format": { - "version": "19.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/types": "^19.5.0", - "chalk": "^5.3.0" - }, - "engines": { - "node": ">=v18" - } - }, - "node_modules/@commitlint/format/node_modules/chalk": { - "version": "5.3.0", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@commitlint/is-ignored": { - "version": "19.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/types": "^19.5.0", - "semver": "^7.6.0" - }, - "engines": { - "node": ">=v18" - } - }, - "node_modules/@commitlint/lint": { - "version": "19.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/is-ignored": "^19.5.0", - "@commitlint/parse": "^19.5.0", - "@commitlint/rules": "^19.5.0", - "@commitlint/types": "^19.5.0" - }, - "engines": { - "node": ">=v18" - } - }, - "node_modules/@commitlint/load": { - "version": "19.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/config-validator": "^19.5.0", - "@commitlint/execute-rule": "^19.5.0", - "@commitlint/resolve-extends": "^19.5.0", - "@commitlint/types": "^19.5.0", - "chalk": "^5.3.0", - "cosmiconfig": "^9.0.0", - "cosmiconfig-typescript-loader": "^5.0.0", - "lodash.isplainobject": "^4.0.6", - "lodash.merge": "^4.6.2", - "lodash.uniq": "^4.5.0" - }, - "engines": { - "node": ">=v18" - } - }, - "node_modules/@commitlint/load/node_modules/chalk": { - "version": "5.3.0", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@commitlint/message": { - "version": "19.5.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=v18" - } - }, - "node_modules/@commitlint/parse": { - "version": "19.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/types": "^19.5.0", - "conventional-changelog-angular": "^7.0.0", - "conventional-commits-parser": "^5.0.0" - }, - "engines": { - "node": ">=v18" - } - }, - "node_modules/@commitlint/read": { - "version": "19.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/top-level": "^19.5.0", - "@commitlint/types": "^19.5.0", - "git-raw-commits": "^4.0.0", - "minimist": "^1.2.8", - "tinyexec": "^0.3.0" - }, - "engines": { - "node": ">=v18" - } - }, - "node_modules/@commitlint/resolve-extends": { - "version": "19.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/config-validator": "^19.5.0", - "@commitlint/types": "^19.5.0", - "global-directory": "^4.0.1", - "import-meta-resolve": "^4.0.0", - "lodash.mergewith": "^4.6.2", - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=v18" - } - }, - "node_modules/@commitlint/rules": { - "version": "19.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/ensure": "^19.5.0", - "@commitlint/message": "^19.5.0", - "@commitlint/to-lines": "^19.5.0", - "@commitlint/types": "^19.5.0" - }, - "engines": { - "node": ">=v18" - } - }, - "node_modules/@commitlint/to-lines": { - "version": "19.5.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=v18" - } - }, - "node_modules/@commitlint/top-level": { - "version": "19.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "find-up": "^7.0.0" - }, - "engines": { - "node": ">=v18" - } - }, - "node_modules/@commitlint/top-level/node_modules/find-up": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^7.2.0", - "path-exists": "^5.0.0", - "unicorn-magic": "^0.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@commitlint/top-level/node_modules/find-up/node_modules/locate-path": { - "version": "7.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^6.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@commitlint/top-level/node_modules/find-up/node_modules/locate-path/node_modules/p-locate": { - "version": "6.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@commitlint/top-level/node_modules/find-up/node_modules/locate-path/node_modules/p-locate/node_modules/p-limit": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^1.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@commitlint/top-level/node_modules/find-up/node_modules/locate-path/node_modules/p-locate/node_modules/p-limit/node_modules/yocto-queue": { - "version": "1.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@commitlint/top-level/node_modules/find-up/node_modules/path-exists": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - } - }, - "node_modules/@commitlint/types": { - "version": "19.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/conventional-commits-parser": "^5.0.0", - "chalk": "^5.3.0" - }, - "engines": { - "node": ">=v18" - } - }, - "node_modules/@commitlint/types/node_modules/chalk": { - "version": "5.3.0", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.16.9", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.4.0", - "license": "MIT", - "dependencies": { - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.12.1", - "resolved": "https://registry.npmmirror.com/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", - "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", - "license": "MIT", - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/config-array": { - "version": "0.18.0", - "resolved": "https://registry.npmmirror.com/@eslint/config-array/-/config-array-0.18.0.tgz", - "integrity": "sha512-fTxvnS1sRMu3+JjXwJG0j/i4RT9u4qJ+lqS/yCGap4lH4zZGzQ7tu+xZqQmcMZq5OBZDL4QRxQzRjkWcGt8IVw==", - "license": "Apache-2.0", - "dependencies": { - "@eslint/object-schema": "^2.1.4", - "debug": "^4.3.1", - "minimatch": "^3.1.2" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/core": { - "version": "0.7.0", - "resolved": "https://registry.npmmirror.com/@eslint/core/-/core-0.7.0.tgz", - "integrity": "sha512-xp5Jirz5DyPYlPiKat8jaq0EmYvDXKKpzTbxXMpT9eqlRJkRKIz9AGMdlvYjih+im+QlhWrpvVjl8IPC/lHlUw==", - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/@eslint/eslintrc/-/eslintrc-3.1.0.tgz", - "integrity": "sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==", - "license": "MIT", - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/js": { - "version": "9.14.0", - "resolved": "https://registry.npmmirror.com/@eslint/js/-/js-9.14.0.tgz", - "integrity": "sha512-pFoEtFWCPyDOl+C6Ift+wC7Ro89otjigCf5vcuWqWgqNSQbRrpjSvdeE6ofLz4dHmyxD5f7gIdGT4+p36L6Twg==", - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/object-schema": { - "version": "2.1.4", - "resolved": "https://registry.npmmirror.com/@eslint/object-schema/-/object-schema-2.1.4.tgz", - "integrity": "sha512-BsWiH1yFGjXXS2yvrf5LyuoSIIbPrGUWob917o+BTKuZ7qJdxX8aJLRxs1fS9n6r7vESrq1OUqb68dANcFXuQQ==", - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/plugin-kit": { - "version": "0.2.2", - "resolved": "https://registry.npmmirror.com/@eslint/plugin-kit/-/plugin-kit-0.2.2.tgz", - "integrity": "sha512-CXtq5nR4Su+2I47WPOlWud98Y5Lv8Kyxp2ukhgFx/eW6Blm18VXJO5WuQylPugRo8nbluoi6GvvxBLqHcvqUUw==", - "license": "Apache-2.0", - "dependencies": { - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@humanfs/core": { - "version": "0.19.1", - "resolved": "https://registry.npmmirror.com/@humanfs/core/-/core-0.19.1.tgz", - "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", - "license": "Apache-2.0", - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node": { - "version": "0.16.6", - "resolved": "https://registry.npmmirror.com/@humanfs/node/-/node-0.16.6.tgz", - "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", - "license": "Apache-2.0", - "dependencies": { - "@humanfs/core": "^0.19.1", - "@humanwhocodes/retry": "^0.3.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { - "version": "0.3.1", - "resolved": "https://registry.npmmirror.com/@humanwhocodes/retry/-/retry-0.3.1.tgz", - "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", - "license": "Apache-2.0", - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "license": "Apache-2.0", - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/retry": { - "version": "0.4.1", - "resolved": "https://registry.npmmirror.com/@humanwhocodes/retry/-/retry-0.4.1.tgz", - "integrity": "sha512-c7hNEllBlenFTHBky65mhq8WD2kbN9Q6gk0bTk8lSBvc554jpXSkST1iePudpt7+A/AQvuHs9EMqjHDXMY1lrA==", - "license": "Apache-2.0", - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@mswjs/cookies": { - "version": "1.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "node_modules/@mswjs/interceptors": { - "version": "0.25.15", - "dev": true, - "license": "MIT", - "dependencies": { - "@open-draft/deferred-promise": "^2.2.0", - "@open-draft/logger": "^0.3.0", - "@open-draft/until": "^2.0.0", - "is-node-process": "^1.2.0", - "outvariant": "^1.2.1", - "strict-event-emitter": "^0.5.1" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/@noble/ciphers": { - "version": "0.5.1", - "license": "MIT", - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@noble/curves": { - "version": "1.2.0", - "license": "MIT", - "dependencies": { - "@noble/hashes": "1.3.2" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@noble/curves/node_modules/@noble/hashes": { - "version": "1.3.2", - "license": "MIT", - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@noble/hashes": { - "version": "1.3.1", - "license": "MIT", - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "license": "MIT", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@open-draft/deferred-promise": { - "version": "2.2.0", - "dev": true, - "license": "MIT" - }, - "node_modules/@open-draft/logger": { - "version": "0.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "is-node-process": "^1.2.0", - "outvariant": "^1.4.0" - } - }, - "node_modules/@open-draft/until": { - "version": "2.1.0", - "dev": true, - "license": "MIT" - }, - "node_modules/@pkgr/core": { - "version": "0.1.1", - "resolved": "https://registry.npmmirror.com/@pkgr/core/-/core-0.1.1.tgz", - "integrity": "sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==", - "license": "MIT", - "engines": { - "node": "^12.20.0 || ^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/unts" - } - }, - "node_modules/@scure/base": { - "version": "1.1.1", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "license": "MIT" - }, - "node_modules/@scure/bip32": { - "version": "1.3.1", - "license": "MIT", - "dependencies": { - "@noble/curves": "~1.1.0", - "@noble/hashes": "~1.3.1", - "@scure/base": "~1.1.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@scure/bip32/node_modules/@noble/curves": { - "version": "1.1.0", - "license": "MIT", - "dependencies": { - "@noble/hashes": "1.3.1" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@scure/bip39": { - "version": "1.2.1", - "license": "MIT", - "dependencies": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@types/conventional-commits-parser": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/cookie": { - "version": "0.6.0", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/estree": { - "version": "1.0.6", - "resolved": "https://registry.npmmirror.com/@types/estree/-/estree-1.0.6.tgz", - "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", - "license": "MIT" - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmmirror.com/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "18.19.3", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "node_modules/@types/node-fetch": { - "version": "2.6.9", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*", - "form-data": "^4.0.0" - } - }, - "node_modules/@types/semver": { - "version": "7.5.8", - "resolved": "https://registry.npmmirror.com/@types/semver/-/semver-7.5.8.tgz", - "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/statuses": { - "version": "2.0.4", - "dev": true, - "license": "MIT" - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.14.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.14.0", - "@typescript-eslint/type-utils": "6.14.0", - "@typescript-eslint/utils": "6.14.0", - "@typescript-eslint/visitor-keys": "6.14.0", - "debug": "^4.3.4", - "graphemer": "^1.4.0", - "ignore": "^5.2.4", - "natural-compare": "^1.4.0", - "semver": "^7.5.4", - "ts-api-utils": "^1.0.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", - "eslint": "^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/type-utils": { - "version": "6.14.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/type-utils/-/type-utils-6.14.0.tgz", - "integrity": "sha512-x6OC9Q7HfYKqjnuNu5a7kffIYs3No30isapRBJl1iCHLitD8O0lFbRcVGiOcuyN837fqXzPZ1NS10maQzZMKqw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/typescript-estree": "6.14.0", - "@typescript-eslint/utils": "6.14.0", - "debug": "^4.3.4", - "ts-api-utils": "^1.0.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils": { - "version": "6.14.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/utils/-/utils-6.14.0.tgz", - "integrity": "sha512-XwRTnbvRr7Ey9a1NT6jqdKX8y/atWG+8fAIu3z73HSP8h06i3r/ClMhmaF/RGWGW1tHJEwij1uEg2GbEmPYvYg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@types/json-schema": "^7.0.12", - "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.14.0", - "@typescript-eslint/types": "6.14.0", - "@typescript-eslint/typescript-estree": "6.14.0", - "semver": "^7.5.4" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "6.14.0", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "@typescript-eslint/scope-manager": "6.14.0", - "@typescript-eslint/types": "6.14.0", - "@typescript-eslint/typescript-estree": "6.14.0", - "@typescript-eslint/visitor-keys": "6.14.0", - "debug": "^4.3.4" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "6.14.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "6.14.0", - "@typescript-eslint/visitor-keys": "6.14.0" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "8.14.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/type-utils/-/type-utils-8.14.0.tgz", - "integrity": "sha512-Xcz9qOtZuGusVOH5Uk07NGs39wrKkf3AxlkK79RBK6aJC1l03CobXjJbwBPSidetAOV+5rEVuiT1VSBUOAsanQ==", - "license": "MIT", - "dependencies": { - "@typescript-eslint/typescript-estree": "8.14.0", - "@typescript-eslint/utils": "8.14.0", - "debug": "^4.3.4", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types": { - "version": "8.14.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/types/-/types-8.14.0.tgz", - "integrity": "sha512-yjeB9fnO/opvLJFAsPNYlKPnEM8+z4og09Pk504dkqonT02AyL5Z9SSqlE0XqezS93v6CXn49VHvB2G7XSsl0g==", - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree": { - "version": "8.14.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.14.0.tgz", - "integrity": "sha512-OPXPLYKGZi9XS/49rdaCbR5j/S14HazviBlUQFvSKz3npr3NikF+mrgK7CFVur6XEt95DZp/cmke9d5i3vtVnQ==", - "license": "BSD-2-Clause", - "dependencies": { - "@typescript-eslint/types": "8.14.0", - "@typescript-eslint/visitor-keys": "8.14.0", - "debug": "^4.3.4", - "fast-glob": "^3.3.2", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys": { - "version": "8.14.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.14.0.tgz", - "integrity": "sha512-vG0XZo8AdTH9OE6VFRwAZldNc7qtJ/6NLGWak+BtENuEUXGZgFpihILPiBvKXvJ2nFu27XNGC6rKiwuaoMbYzQ==", - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.14.0", - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/type-utils/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@typescript-eslint/type-utils/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@typescript-eslint/types": { - "version": "6.14.0", - "dev": true, - "license": "MIT", - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.14.0", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "@typescript-eslint/types": "6.14.0", - "@typescript-eslint/visitor-keys": "6.14.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.5.4", - "ts-api-utils": "^1.0.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "8.14.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/utils/-/utils-8.14.0.tgz", - "integrity": "sha512-OGqj6uB8THhrHj0Fk27DcHPojW7zKwKkPmHXHvQ58pLYp4hy8CSUdTKykKeh+5vFqTTVmjz0zCOOPKRovdsgHA==", - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.14.0", - "@typescript-eslint/types": "8.14.0", - "@typescript-eslint/typescript-estree": "8.14.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/scope-manager": { - "version": "8.14.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/scope-manager/-/scope-manager-8.14.0.tgz", - "integrity": "sha512-aBbBrnW9ARIDn92Zbo7rguLnqQ/pOrUguVpbUwzOhkFg2npFDwTgPGqFqE0H5feXcOoJOfX3SxlJaKEVtq54dw==", - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.14.0", - "@typescript-eslint/visitor-keys": "8.14.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/types": { - "version": "8.14.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/types/-/types-8.14.0.tgz", - "integrity": "sha512-yjeB9fnO/opvLJFAsPNYlKPnEM8+z4og09Pk504dkqonT02AyL5Z9SSqlE0XqezS93v6CXn49VHvB2G7XSsl0g==", - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree": { - "version": "8.14.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.14.0.tgz", - "integrity": "sha512-OPXPLYKGZi9XS/49rdaCbR5j/S14HazviBlUQFvSKz3npr3NikF+mrgK7CFVur6XEt95DZp/cmke9d5i3vtVnQ==", - "license": "BSD-2-Clause", - "dependencies": { - "@typescript-eslint/types": "8.14.0", - "@typescript-eslint/visitor-keys": "8.14.0", - "debug": "^4.3.4", - "fast-glob": "^3.3.2", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/visitor-keys": { - "version": "8.14.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.14.0.tgz", - "integrity": "sha512-vG0XZo8AdTH9OE6VFRwAZldNc7qtJ/6NLGWak+BtENuEUXGZgFpihILPiBvKXvJ2nFu27XNGC6rKiwuaoMbYzQ==", - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.14.0", - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.14.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "6.14.0", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/acorn": { - "version": "8.14.0", - "resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.14.0.tgz", - "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmmirror.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "license": "MIT", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmmirror.com/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-escapes": { - "version": "4.3.2", - "dev": true, - "license": "MIT", - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ansi-escapes/node_modules/type-fest": { - "version": "0.21.3", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/anymatch": { - "version": "3.1.3", - "dev": true, - "license": "ISC", - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "license": "Python-2.0" - }, - "node_modules/array-buffer-byte-length": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "is-array-buffer": "^3.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array-ify": { - "version": "1.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/array-union": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/arraybuffer.prototype.slice": { - "version": "1.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "array-buffer-byte-length": "^1.0.0", - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "get-intrinsic": "^1.2.1", - "is-array-buffer": "^3.0.2", - "is-shared-array-buffer": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/asynckit": { - "version": "0.4.0", - "dev": true, - "license": "MIT" - }, - "node_modules/available-typed-arrays": { - "version": "1.0.5", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "license": "MIT" - }, - "node_modules/base64-js": { - "version": "1.5.1", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/binary-extensions": { - "version": "2.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/bl": { - "version": "4.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmmirror.com/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "license": "MIT", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/buffer": { - "version": "5.7.1", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "node_modules/bun-types": { - "version": "1.0.18", - "dev": true, - "license": "MIT" - }, - "node_modules/call-bind": { - "version": "1.0.5", - "dev": true, - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.1", - "set-function-length": "^1.1.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/chardet": { - "version": "0.7.0", - "dev": true, - "license": "MIT" - }, - "node_modules/chokidar": { - "version": "3.5.3", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "license": "MIT", - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/chokidar/node_modules/glob-parent": { - "version": "5.1.2", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/cli-cursor": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "restore-cursor": "^3.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cli-spinners": { - "version": "2.9.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/cli-truncate": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/cli-truncate/-/cli-truncate-4.0.0.tgz", - "integrity": "sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==", - "license": "MIT", - "dependencies": { - "slice-ansi": "^5.0.0", - "string-width": "^7.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/cli-truncate/node_modules/ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/cli-truncate/node_modules/emoji-regex": { - "version": "10.4.0", - "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-10.4.0.tgz", - "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==", - "license": "MIT" - }, - "node_modules/cli-truncate/node_modules/string-width": { - "version": "7.2.0", - "resolved": "https://registry.npmmirror.com/string-width/-/string-width-7.2.0.tgz", - "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", - "license": "MIT", - "dependencies": { - "emoji-regex": "^10.3.0", - "get-east-asian-width": "^1.0.0", - "strip-ansi": "^7.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/cli-truncate/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/cli-width": { - "version": "3.0.0", - "dev": true, - "license": "ISC", - "engines": { - "node": ">= 10" - } - }, - "node_modules/cliui": { - "version": "8.0.1", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/cliui/node_modules/wrap-ansi": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/clone": { - "version": "1.0.4", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "license": "MIT" - }, - "node_modules/colorette": { - "version": "2.0.20", - "resolved": "https://registry.npmmirror.com/colorette/-/colorette-2.0.20.tgz", - "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", - "license": "MIT" - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "dev": true, - "license": "MIT", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/commander": { - "version": "12.1.0", - "resolved": "https://registry.npmmirror.com/commander/-/commander-12.1.0.tgz", - "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==", - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "node_modules/compare-func": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "array-ify": "^1.0.0", - "dot-prop": "^5.1.0" - } - }, - "node_modules/concat-map": { - "version": "0.0.1", - "license": "MIT" - }, - "node_modules/conventional-changelog-angular": { - "version": "7.0.0", - "dev": true, - "license": "ISC", - "dependencies": { - "compare-func": "^2.0.0" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/conventional-changelog-conventionalcommits": { - "version": "7.0.2", - "dev": true, - "license": "ISC", - "dependencies": { - "compare-func": "^2.0.0" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/conventional-commits-parser": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "is-text-path": "^2.0.0", - "JSONStream": "^1.3.5", - "meow": "^12.0.1", - "split2": "^4.0.0" - }, - "bin": { - "conventional-commits-parser": "cli.mjs" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/cookie": { - "version": "0.5.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cosmiconfig": { - "version": "9.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "env-paths": "^2.2.1", - "import-fresh": "^3.3.0", - "js-yaml": "^4.1.0", - "parse-json": "^5.2.0" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/d-fischer" - }, - "peerDependencies": { - "typescript": ">=4.9.5" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/cosmiconfig-typescript-loader": { - "version": "5.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "jiti": "^1.21.6" - }, - "engines": { - "node": ">=v16" - }, - "peerDependencies": { - "@types/node": "*", - "cosmiconfig": ">=8.2", - "typescript": ">=4" - } - }, - "node_modules/create-esm-loader": { - "version": "0.2.5", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^7.3.5" - }, - "engines": { - "node": ">=14.x" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/dargs": { - "version": "8.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/debug": { - "version": "4.3.7", - "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.7.tgz", - "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "license": "MIT" - }, - "node_modules/defaults": { - "version": "1.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "clone": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/define-data-property": { - "version": "1.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.2.1", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/define-properties": { - "version": "1.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/dir-glob": { - "version": "3.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/dir-glob/node_modules/path-type": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/dot-prop": { - "version": "5.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "is-obj": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/env-paths": { - "version": "2.2.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/environment": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/environment/-/environment-1.1.0.tgz", - "integrity": "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/error-ex": { - "version": "1.3.2", - "dev": true, - "license": "MIT", - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/es-abstract": { - "version": "1.22.3", - "dev": true, - "license": "MIT", - "dependencies": { - "array-buffer-byte-length": "^1.0.0", - "arraybuffer.prototype.slice": "^1.0.2", - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.5", - "es-set-tostringtag": "^2.0.1", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.6", - "get-intrinsic": "^1.2.2", - "get-symbol-description": "^1.0.0", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0", - "internal-slot": "^1.0.5", - "is-array-buffer": "^3.0.2", - "is-callable": "^1.2.7", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.12", - "is-weakref": "^1.0.2", - "object-inspect": "^1.13.1", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.5.1", - "safe-array-concat": "^1.0.1", - "safe-regex-test": "^1.0.0", - "string.prototype.trim": "^1.2.8", - "string.prototype.trimend": "^1.0.7", - "string.prototype.trimstart": "^1.0.7", - "typed-array-buffer": "^1.0.0", - "typed-array-byte-length": "^1.0.0", - "typed-array-byte-offset": "^1.0.0", - "typed-array-length": "^1.0.4", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-set-tostringtag": { - "version": "2.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.2.2", - "has-tostringtag": "^1.0.0", - "hasown": "^2.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-to-primitive": { - "version": "1.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/esbuild": { - "version": "0.16.9", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/android-arm": "0.16.9", - "@esbuild/android-arm64": "0.16.9", - "@esbuild/android-x64": "0.16.9", - "@esbuild/darwin-arm64": "0.16.9", - "@esbuild/darwin-x64": "0.16.9", - "@esbuild/freebsd-arm64": "0.16.9", - "@esbuild/freebsd-x64": "0.16.9", - "@esbuild/linux-arm": "0.16.9", - "@esbuild/linux-arm64": "0.16.9", - "@esbuild/linux-ia32": "0.16.9", - "@esbuild/linux-loong64": "0.16.9", - "@esbuild/linux-mips64el": "0.16.9", - "@esbuild/linux-ppc64": "0.16.9", - "@esbuild/linux-riscv64": "0.16.9", - "@esbuild/linux-s390x": "0.16.9", - "@esbuild/linux-x64": "0.16.9", - "@esbuild/netbsd-x64": "0.16.9", - "@esbuild/openbsd-x64": "0.16.9", - "@esbuild/sunos-x64": "0.16.9", - "@esbuild/win32-arm64": "0.16.9", - "@esbuild/win32-ia32": "0.16.9", - "@esbuild/win32-x64": "0.16.9" - } - }, - "node_modules/esbuild-plugin-alias": { - "version": "0.2.1", - "dev": true, - "license": "MIT" - }, - "node_modules/escalade": { - "version": "3.1.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "9.14.0", - "resolved": "https://registry.npmmirror.com/eslint/-/eslint-9.14.0.tgz", - "integrity": "sha512-c2FHsVBr87lnUtjP4Yhvk4yEhKrQavGafRA/Se1ouse8PfbfC/Qh9Mxa00yWsZRlqeUB9raXip0aiiUZkgnr9g==", - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.18.0", - "@eslint/core": "^0.7.0", - "@eslint/eslintrc": "^3.1.0", - "@eslint/js": "9.14.0", - "@eslint/plugin-kit": "^0.2.0", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.0", - "@types/estree": "^1.0.6", - "@types/json-schema": "^7.0.15", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.2.0", - "eslint-visitor-keys": "^4.2.0", - "espree": "^10.3.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "text-table": "^0.2.0" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } - } - }, - "node_modules/eslint-config-prettier": { - "version": "9.1.0", - "devOptional": true, - "license": "MIT", - "bin": { - "eslint-config-prettier": "bin/cli.js" - }, - "peerDependencies": { - "eslint": ">=7.0.0" - } - }, - "node_modules/eslint-plugin-babel": { - "version": "5.3.1", - "dev": true, - "license": "MIT", - "dependencies": { - "eslint-rule-composer": "^0.3.0" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": ">=4.0.0" - } - }, - "node_modules/eslint-plugin-prettier": { - "version": "5.2.1", - "resolved": "https://registry.npmmirror.com/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.1.tgz", - "integrity": "sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==", - "license": "MIT", - "dependencies": { - "prettier-linter-helpers": "^1.0.0", - "synckit": "^0.9.1" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint-plugin-prettier" - }, - "peerDependencies": { - "@types/eslint": ">=8.0.0", - "eslint": ">=8.0.0", - "eslint-config-prettier": "*", - "prettier": ">=3.0.0" - }, - "peerDependenciesMeta": { - "@types/eslint": { - "optional": true - }, - "eslint-config-prettier": { - "optional": true - } - } - }, - "node_modules/eslint-rule-composer": { - "version": "0.3.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/eslint-scope": { - "version": "8.2.0", - "resolved": "https://registry.npmmirror.com/eslint-scope/-/eslint-scope-8.2.0.tgz", - "integrity": "sha512-PHlWUfG6lvPc3yvP5A4PNyBL1W8fkDUccmI21JUu/+GKZBoH/W5u6usENXUrWFRsyoW5ACUjFGgAFQp5gUlb/A==", - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/eslint-visitor-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", - "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esm-loader-typescript": { - "version": "1.0.6", - "dev": true, - "license": "MIT", - "dependencies": { - "create-esm-loader": "^0.2.5", - "npm-run-all": "^4.1.5", - "semver": "^7.5.4", - "typescript": "^5.2.2" - } - }, - "node_modules/espree": { - "version": "10.3.0", - "resolved": "https://registry.npmmirror.com/espree/-/espree-10.3.0.tgz", - "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", - "license": "BSD-2-Clause", - "dependencies": { - "acorn": "^8.14.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/espree/node_modules/eslint-visitor-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", - "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.5.0", - "license": "BSD-3-Clause", - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmmirror.com/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "license": "BSD-2-Clause", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmmirror.com/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eventemitter3": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/eventemitter3/-/eventemitter3-5.0.1.tgz", - "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==", - "license": "MIT" - }, - "node_modules/events": { - "version": "3.3.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.x" - } - }, - "node_modules/execa": { - "version": "8.0.1", - "resolved": "https://registry.npmmirror.com/execa/-/execa-8.0.1.tgz", - "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", - "license": "MIT", - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^8.0.1", - "human-signals": "^5.0.0", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", - "signal-exit": "^4.1.0", - "strip-final-newline": "^3.0.0" - }, - "engines": { - "node": ">=16.17" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/execa/node_modules/mimic-fn": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/mimic-fn/-/mimic-fn-4.0.0.tgz", - "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/execa/node_modules/onetime": { - "version": "6.0.0", - "resolved": "https://registry.npmmirror.com/onetime/-/onetime-6.0.0.tgz", - "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", - "license": "MIT", - "dependencies": { - "mimic-fn": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/execa/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmmirror.com/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "license": "ISC", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/external-editor": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "chardet": "^0.7.0", - "iconv-lite": "^0.4.24", - "tmp": "^0.0.33" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "license": "MIT" - }, - "node_modules/fast-diff": { - "version": "1.3.0", - "resolved": "https://registry.npmmirror.com/fast-diff/-/fast-diff-1.3.0.tgz", - "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", - "license": "Apache-2.0" - }, - "node_modules/fast-glob": { - "version": "3.3.2", - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "license": "MIT" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "license": "MIT" - }, - "node_modules/fast-uri": { - "version": "3.0.3", - "dev": true, - "license": "BSD-3-Clause" - }, - "node_modules/fastq": { - "version": "1.15.0", - "license": "ISC", - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/figures": { - "version": "3.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "escape-string-regexp": "^1.0.5" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/figures/node_modules/escape-string-regexp": { - "version": "1.0.5", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmmirror.com/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "license": "MIT", - "dependencies": { - "flat-cache": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmmirror.com/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "license": "MIT", - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/flatted": { - "version": "3.3.1", - "resolved": "https://registry.npmmirror.com/flatted/-/flatted-3.3.1.tgz", - "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", - "license": "ISC" - }, - "node_modules/for-each": { - "version": "0.3.3", - "dev": true, - "license": "MIT", - "dependencies": { - "is-callable": "^1.1.3" - } - }, - "node_modules/form-data": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/function.prototype.name": { - "version": "1.1.6", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "functions-have-names": "^1.2.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "dev": true, - "license": "ISC", - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/get-east-asian-width": { - "version": "1.3.0", - "resolved": "https://registry.npmmirror.com/get-east-asian-width/-/get-east-asian-width-1.3.0.tgz", - "integrity": "sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/get-intrinsic": { - "version": "1.2.2", - "dev": true, - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-stream": { - "version": "8.0.1", - "resolved": "https://registry.npmmirror.com/get-stream/-/get-stream-8.0.1.tgz", - "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", - "license": "MIT", - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/get-symbol-description": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/git-raw-commits": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "dargs": "^8.0.0", - "meow": "^12.0.1", - "split2": "^4.0.0" - }, - "bin": { - "git-raw-commits": "cli.mjs" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/global-directory": { - "version": "4.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "ini": "4.1.1" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmmirror.com/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globalthis": { - "version": "1.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/globby": { - "version": "11.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/gopd": { - "version": "1.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "dev": true, - "license": "ISC" - }, - "node_modules/graphemer": { - "version": "1.4.0", - "license": "MIT" - }, - "node_modules/graphql": { - "version": "16.8.1", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" - } - }, - "node_modules/has-bigints": { - "version": "1.0.2", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.2.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-proto": { - "version": "1.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.0.3", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/headers-polyfill": { - "version": "4.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/hosted-git-info": { - "version": "2.8.9", - "dev": true, - "license": "ISC" - }, - "node_modules/human-signals": { - "version": "5.0.0", - "resolved": "https://registry.npmmirror.com/human-signals/-/human-signals-5.0.0.tgz", - "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==", - "license": "Apache-2.0", - "engines": { - "node": ">=16.17.0" - } - }, - "node_modules/husky": { - "version": "9.1.6", - "resolved": "https://registry.npmmirror.com/husky/-/husky-9.1.6.tgz", - "integrity": "sha512-sqbjZKK7kf44hfdE94EoX8MZNk0n7HeW37O4YrVGCF4wzgQjp+akPAkfUK5LZ6KuR/6sqeAVuXHji+RzQgOn5A==", - "license": "MIT", - "bin": { - "husky": "bin.js" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/typicode" - } - }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "dev": true, - "license": "MIT", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ieee754": { - "version": "1.2.1", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "BSD-3-Clause" - }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmmirror.com/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.0", - "license": "MIT", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/import-fresh/node_modules/resolve-from": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/import-meta-resolve": { - "version": "4.1.0", - "dev": true, - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "dev": true, - "license": "ISC" - }, - "node_modules/ini": { - "version": "4.1.1", - "dev": true, - "license": "ISC", - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/inquirer": { - "version": "8.2.6", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-escapes": "^4.2.1", - "chalk": "^4.1.1", - "cli-cursor": "^3.1.0", - "cli-width": "^3.0.0", - "external-editor": "^3.0.3", - "figures": "^3.0.0", - "lodash": "^4.17.21", - "mute-stream": "0.0.8", - "ora": "^5.4.1", - "run-async": "^2.4.0", - "rxjs": "^7.5.5", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0", - "through": "^2.3.6", - "wrap-ansi": "^6.0.1" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/internal-slot": { - "version": "1.0.6", - "dev": true, - "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.2.2", - "hasown": "^2.0.0", - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-array-buffer": { - "version": "3.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "is-typed-array": "^1.1.10" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "dev": true, - "license": "MIT" - }, - "node_modules/is-bigint": { - "version": "1.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "has-bigints": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-boolean-object": { - "version": "1.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-callable": { - "version": "1.2.7", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-core-module": { - "version": "2.13.1", - "dev": true, - "license": "MIT", - "dependencies": { - "hasown": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-date-object": { - "version": "1.0.5", - "dev": true, - "license": "MIT", - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-interactive": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-negative-zero": { - "version": "2.0.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-node-process": { - "version": "1.2.0", - "dev": true, - "license": "MIT" - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmmirror.com/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-number-object": { - "version": "1.0.7", - "dev": true, - "license": "MIT", - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-obj": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-regex": { - "version": "1.1.4", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/is-stream/-/is-stream-3.0.0.tgz", - "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", - "license": "MIT", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-string": { - "version": "1.0.7", - "dev": true, - "license": "MIT", - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-symbol": { - "version": "1.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-text-path": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "text-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.12", - "dev": true, - "license": "MIT", - "dependencies": { - "which-typed-array": "^1.1.11" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-unicode-supported": { - "version": "0.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-weakref": { - "version": "1.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/isarray": { - "version": "2.0.5", - "dev": true, - "license": "MIT" - }, - "node_modules/isexe": { - "version": "2.0.0", - "license": "ISC" - }, - "node_modules/jiti": { - "version": "1.21.6", - "devOptional": true, - "license": "MIT", - "bin": { - "jiti": "bin/jiti.js" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmmirror.com/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "license": "MIT" - }, - "node_modules/json-parse-better-errors": { - "version": "1.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "dev": true, - "license": "MIT" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "license": "MIT" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "license": "MIT" - }, - "node_modules/jsonparse": { - "version": "1.3.1", - "dev": true, - "engines": [ - "node >= 0.2.0" - ], - "license": "MIT" - }, - "node_modules/JSONStream": { - "version": "1.3.5", - "dev": true, - "license": "(MIT OR Apache-2.0)", - "dependencies": { - "jsonparse": "^1.2.0", - "through": ">=2.2.7 <3" - }, - "bin": { - "JSONStream": "bin.js" - }, - "engines": { - "node": "*" - } - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmmirror.com/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/lilconfig": { - "version": "3.1.2", - "resolved": "https://registry.npmmirror.com/lilconfig/-/lilconfig-3.1.2.tgz", - "integrity": "sha512-eop+wDAvpItUys0FWkHIKeC9ybYrTGbU41U5K7+bttZZeohvnY7M9dZ5kB21GNWiFT2q1OoPTvncPCgSOVO5ow==", - "license": "MIT", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/antonk52" - } - }, - "node_modules/lines-and-columns": { - "version": "1.2.4", - "dev": true, - "license": "MIT" - }, - "node_modules/lint-staged": { - "version": "15.2.10", - "resolved": "https://registry.npmmirror.com/lint-staged/-/lint-staged-15.2.10.tgz", - "integrity": "sha512-5dY5t743e1byO19P9I4b3x8HJwalIznL5E1FWYnU6OWw33KxNBSLAc6Cy7F2PsFEO8FKnLwjwm5hx7aMF0jzZg==", - "license": "MIT", - "dependencies": { - "chalk": "~5.3.0", - "commander": "~12.1.0", - "debug": "~4.3.6", - "execa": "~8.0.1", - "lilconfig": "~3.1.2", - "listr2": "~8.2.4", - "micromatch": "~4.0.8", - "pidtree": "~0.6.0", - "string-argv": "~0.3.2", - "yaml": "~2.5.0" - }, - "bin": { - "lint-staged": "bin/lint-staged.js" - }, - "engines": { - "node": ">=18.12.0" - }, - "funding": { - "url": "https://opencollective.com/lint-staged" - } - }, - "node_modules/lint-staged/node_modules/chalk": { - "version": "5.3.0", - "resolved": "https://registry.npmmirror.com/chalk/-/chalk-5.3.0.tgz", - "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", - "license": "MIT", - "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/lint-staged/node_modules/pidtree": { - "version": "0.6.0", - "resolved": "https://registry.npmmirror.com/pidtree/-/pidtree-0.6.0.tgz", - "integrity": "sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==", - "license": "MIT", - "bin": { - "pidtree": "bin/pidtree.js" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/listr2": { - "version": "8.2.5", - "resolved": "https://registry.npmmirror.com/listr2/-/listr2-8.2.5.tgz", - "integrity": "sha512-iyAZCeyD+c1gPyE9qpFu8af0Y+MRtmKOncdGoA2S5EY8iFq99dmmvkNnHiWo+pj0s7yH7l3KPIgee77tKpXPWQ==", - "license": "MIT", - "dependencies": { - "cli-truncate": "^4.0.0", - "colorette": "^2.0.20", - "eventemitter3": "^5.0.1", - "log-update": "^6.1.0", - "rfdc": "^1.4.1", - "wrap-ansi": "^9.0.0" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/listr2/node_modules/ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/listr2/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/listr2/node_modules/emoji-regex": { - "version": "10.4.0", - "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-10.4.0.tgz", - "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==", - "license": "MIT" - }, - "node_modules/listr2/node_modules/string-width": { - "version": "7.2.0", - "resolved": "https://registry.npmmirror.com/string-width/-/string-width-7.2.0.tgz", - "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", - "license": "MIT", - "dependencies": { - "emoji-regex": "^10.3.0", - "get-east-asian-width": "^1.0.0", - "strip-ansi": "^7.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/listr2/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/listr2/node_modules/wrap-ansi": { - "version": "9.0.0", - "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-9.0.0.tgz", - "integrity": "sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==", - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.2.1", - "string-width": "^7.0.0", - "strip-ansi": "^7.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/load-json-file": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.1.2", - "parse-json": "^4.0.0", - "pify": "^3.0.0", - "strip-bom": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/load-json-file/node_modules/parse-json": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "license": "MIT", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "dev": true, - "license": "MIT" - }, - "node_modules/lodash.camelcase": { - "version": "4.3.0", - "dev": true, - "license": "MIT" - }, - "node_modules/lodash.isplainobject": { - "version": "4.0.6", - "dev": true, - "license": "MIT" - }, - "node_modules/lodash.kebabcase": { - "version": "4.1.1", - "dev": true, - "license": "MIT" - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "license": "MIT" - }, - "node_modules/lodash.mergewith": { - "version": "4.6.2", - "dev": true, - "license": "MIT" - }, - "node_modules/lodash.snakecase": { - "version": "4.1.1", - "dev": true, - "license": "MIT" - }, - "node_modules/lodash.startcase": { - "version": "4.4.0", - "dev": true, - "license": "MIT" - }, - "node_modules/lodash.uniq": { - "version": "4.5.0", - "dev": true, - "license": "MIT" - }, - "node_modules/lodash.upperfirst": { - "version": "4.3.1", - "dev": true, - "license": "MIT" - }, - "node_modules/log-symbols": { - "version": "4.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/log-update": { - "version": "6.1.0", - "resolved": "https://registry.npmmirror.com/log-update/-/log-update-6.1.0.tgz", - "integrity": "sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==", - "license": "MIT", - "dependencies": { - "ansi-escapes": "^7.0.0", - "cli-cursor": "^5.0.0", - "slice-ansi": "^7.1.0", - "strip-ansi": "^7.1.0", - "wrap-ansi": "^9.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/log-update/node_modules/ansi-escapes": { - "version": "7.0.0", - "resolved": "https://registry.npmmirror.com/ansi-escapes/-/ansi-escapes-7.0.0.tgz", - "integrity": "sha512-GdYO7a61mR0fOlAsvC9/rIHf7L96sBc6dEWzeOu+KAea5bZyQRPIpojrVoI4AXGJS/ycu/fBTdLrUkA4ODrvjw==", - "license": "MIT", - "dependencies": { - "environment": "^1.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/log-update/node_modules/ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/log-update/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/log-update/node_modules/cli-cursor": { - "version": "5.0.0", - "resolved": "https://registry.npmmirror.com/cli-cursor/-/cli-cursor-5.0.0.tgz", - "integrity": "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==", - "license": "MIT", - "dependencies": { - "restore-cursor": "^5.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/log-update/node_modules/emoji-regex": { - "version": "10.4.0", - "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-10.4.0.tgz", - "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==", - "license": "MIT" - }, - "node_modules/log-update/node_modules/is-fullwidth-code-point": { - "version": "5.0.0", - "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-5.0.0.tgz", - "integrity": "sha512-OVa3u9kkBbw7b8Xw5F9P+D/T9X+Z4+JruYVNapTjPYZYUznQ5YfWeFkOj606XYYW8yugTfC8Pj0hYqvi4ryAhA==", - "license": "MIT", - "dependencies": { - "get-east-asian-width": "^1.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/log-update/node_modules/onetime": { - "version": "7.0.0", - "resolved": "https://registry.npmmirror.com/onetime/-/onetime-7.0.0.tgz", - "integrity": "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==", - "license": "MIT", - "dependencies": { - "mimic-function": "^5.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/log-update/node_modules/restore-cursor": { - "version": "5.1.0", - "resolved": "https://registry.npmmirror.com/restore-cursor/-/restore-cursor-5.1.0.tgz", - "integrity": "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==", - "license": "MIT", - "dependencies": { - "onetime": "^7.0.0", - "signal-exit": "^4.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/log-update/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmmirror.com/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "license": "ISC", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/log-update/node_modules/slice-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmmirror.com/slice-ansi/-/slice-ansi-7.1.0.tgz", - "integrity": "sha512-bSiSngZ/jWeX93BqeIAbImyTbEihizcwNjFoRUIY/T1wWQsfsm2Vw1agPKylXvQTU7iASGdHhyqRlqQzfz+Htg==", - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.2.1", - "is-fullwidth-code-point": "^5.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, - "node_modules/log-update/node_modules/string-width": { - "version": "7.2.0", - "resolved": "https://registry.npmmirror.com/string-width/-/string-width-7.2.0.tgz", - "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", - "license": "MIT", - "dependencies": { - "emoji-regex": "^10.3.0", - "get-east-asian-width": "^1.0.0", - "strip-ansi": "^7.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/log-update/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/log-update/node_modules/wrap-ansi": { - "version": "9.0.0", - "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-9.0.0.tgz", - "integrity": "sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==", - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.2.1", - "string-width": "^7.0.0", - "strip-ansi": "^7.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/memorystream": { - "version": "0.3.1", - "dev": true, - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/meow": { - "version": "12.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=16.10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "license": "MIT" - }, - "node_modules/merge2": { - "version": "1.4.1", - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "license": "MIT", - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "dev": true, - "license": "MIT", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mimic-fn": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/mimic-function": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/mimic-function/-/mimic-function-5.0.1.tgz", - "integrity": "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/mitata": { - "version": "0.1.6", - "dev": true, - "license": "MIT" - }, - "node_modules/mock-socket": { - "version": "9.3.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "license": "MIT" - }, - "node_modules/msw": { - "version": "2.1.6", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "@bundled-es-modules/cookie": "^2.0.0", - "@bundled-es-modules/statuses": "^1.0.1", - "@mswjs/cookies": "^1.1.0", - "@mswjs/interceptors": "^0.25.15", - "@open-draft/until": "^2.1.0", - "@types/cookie": "^0.6.0", - "@types/statuses": "^2.0.4", - "chalk": "^4.1.2", - "chokidar": "^3.4.2", - "graphql": "^16.8.1", - "headers-polyfill": "^4.0.2", - "inquirer": "^8.2.0", - "is-node-process": "^1.2.0", - "outvariant": "^1.4.2", - "path-to-regexp": "^6.2.0", - "strict-event-emitter": "^0.5.1", - "type-fest": "^4.9.0", - "yargs": "^17.7.2" - }, - "bin": { - "msw": "cli/index.js" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mswjs" - }, - "peerDependencies": { - "typescript": ">= 4.7.x <= 5.3.x" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/mute-stream": { - "version": "0.0.8", - "dev": true, - "license": "ISC" - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "license": "MIT" - }, - "node_modules/nice-try": { - "version": "1.0.5", - "dev": true, - "license": "MIT" - }, - "node_modules/node-fetch": { - "version": "2.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/normalize-package-data": { - "version": "2.5.0", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "node_modules/normalize-package-data/node_modules/semver": { - "version": "5.7.2", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/npm-run-all": { - "version": "4.1.5", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "chalk": "^2.4.1", - "cross-spawn": "^6.0.5", - "memorystream": "^0.3.1", - "minimatch": "^3.0.4", - "pidtree": "^0.3.0", - "read-pkg": "^3.0.0", - "shell-quote": "^1.6.1", - "string.prototype.padend": "^3.0.0" - }, - "bin": { - "npm-run-all": "bin/npm-run-all/index.js", - "run-p": "bin/run-p/index.js", - "run-s": "bin/run-s/index.js" - }, - "engines": { - "node": ">= 4" - } - }, - "node_modules/npm-run-all/node_modules/ansi-styles": { - "version": "3.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/npm-run-all/node_modules/ansi-styles/node_modules/color-convert": { - "version": "1.9.3", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/npm-run-all/node_modules/ansi-styles/node_modules/color-convert/node_modules/color-name": { - "version": "1.1.3", - "dev": true, - "license": "MIT" - }, - "node_modules/npm-run-all/node_modules/chalk": { - "version": "2.4.2", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/npm-run-all/node_modules/chalk/node_modules/escape-string-regexp": { - "version": "1.0.5", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/npm-run-all/node_modules/chalk/node_modules/supports-color": { - "version": "5.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/npm-run-all/node_modules/chalk/node_modules/supports-color/node_modules/has-flag": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/npm-run-all/node_modules/cross-spawn": { - "version": "6.0.5", - "dev": true, - "license": "MIT", - "dependencies": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - }, - "engines": { - "node": ">=4.8" - } - }, - "node_modules/npm-run-all/node_modules/cross-spawn/node_modules/path-key": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/npm-run-all/node_modules/cross-spawn/node_modules/semver": { - "version": "5.7.2", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/npm-run-all/node_modules/cross-spawn/node_modules/shebang-command": { - "version": "1.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/npm-run-all/node_modules/cross-spawn/node_modules/shebang-command/node_modules/shebang-regex": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/npm-run-all/node_modules/cross-spawn/node_modules/which": { - "version": "1.3.1", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" - } - }, - "node_modules/npm-run-path": { - "version": "5.3.0", - "resolved": "https://registry.npmmirror.com/npm-run-path/-/npm-run-path-5.3.0.tgz", - "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", - "license": "MIT", - "dependencies": { - "path-key": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/npm-run-path/node_modules/path-key": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/path-key/-/path-key-4.0.0.tgz", - "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/object-inspect": { - "version": "1.13.1", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.assign": { - "version": "4.1.5", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.5", - "define-properties": "^1.2.1", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/onetime": { - "version": "5.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/optionator": { - "version": "0.9.3", - "license": "MIT", - "dependencies": { - "@aashutoshrathi/word-wrap": "^1.2.3", - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/ora": { - "version": "5.4.1", - "dev": true, - "license": "MIT", - "dependencies": { - "bl": "^4.1.0", - "chalk": "^4.1.0", - "cli-cursor": "^3.1.0", - "cli-spinners": "^2.5.0", - "is-interactive": "^1.0.0", - "is-unicode-supported": "^0.1.0", - "log-symbols": "^4.1.0", - "strip-ansi": "^6.0.0", - "wcwidth": "^1.0.1" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/os-tmpdir": { - "version": "1.0.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/outvariant": { - "version": "1.4.2", - "dev": true, - "license": "MIT" - }, - "node_modules/p-limit": { - "version": "3.1.0", - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/parse-json": { - "version": "5.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "dev": true, - "license": "MIT" - }, - "node_modules/path-to-regexp": { - "version": "6.2.1", - "dev": true, - "license": "MIT" - }, - "node_modules/path-type": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "pify": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/picocolors": { - "version": "1.1.1", - "dev": true, - "license": "ISC" - }, - "node_modules/picomatch": { - "version": "2.3.1", - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pidtree": { - "version": "0.3.1", - "dev": true, - "license": "MIT", - "bin": { - "pidtree": "bin/pidtree.js" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/pify": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prettier": { - "version": "3.3.3", - "resolved": "https://registry.npmmirror.com/prettier/-/prettier-3.3.3.tgz", - "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", - "license": "MIT", - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", - "license": "MIT", - "dependencies": { - "fast-diff": "^1.1.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmmirror.com/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/read-pkg": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "load-json-file": "^4.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/readable-stream": { - "version": "3.6.2", - "dev": true, - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/readdirp": { - "version": "3.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/regexp.prototype.flags": { - "version": "1.5.1", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "set-function-name": "^2.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/resolve": { - "version": "1.22.8", - "dev": true, - "license": "MIT", - "dependencies": { - "is-core-module": "^2.13.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-from": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/restore-cursor": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/reusify": { - "version": "1.0.4", - "license": "MIT", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rfdc": { - "version": "1.4.1", - "resolved": "https://registry.npmmirror.com/rfdc/-/rfdc-1.4.1.tgz", - "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==", - "license": "MIT" - }, - "node_modules/run-async": { - "version": "2.4.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/rxjs": { - "version": "7.8.1", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.1.0" - } - }, - "node_modules/safe-array-concat": { - "version": "1.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.1", - "has-symbols": "^1.0.3", - "isarray": "^2.0.5" - }, - "engines": { - "node": ">=0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/safe-regex-test": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-regex": "^1.1.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "dev": true, - "license": "MIT" - }, - "node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmmirror.com/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/set-function-length": { - "version": "1.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.1", - "get-intrinsic": "^1.2.1", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/set-function-name": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.0.1", - "functions-have-names": "^1.2.3", - "has-property-descriptors": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/shell-quote": { - "version": "1.8.1", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel": { - "version": "1.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "dev": true, - "license": "ISC" - }, - "node_modules/slash": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/slice-ansi": { - "version": "5.0.0", - "resolved": "https://registry.npmmirror.com/slice-ansi/-/slice-ansi-5.0.0.tgz", - "integrity": "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==", - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.0.0", - "is-fullwidth-code-point": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, - "node_modules/slice-ansi/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/slice-ansi/node_modules/is-fullwidth-code-point": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz", - "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==", - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/spdx-correct": { - "version": "3.2.0", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-exceptions": { - "version": "2.3.0", - "dev": true, - "license": "CC-BY-3.0" - }, - "node_modules/spdx-expression-parse": { - "version": "3.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-license-ids": { - "version": "3.0.16", - "dev": true, - "license": "CC0-1.0" - }, - "node_modules/split2": { - "version": "4.2.0", - "dev": true, - "license": "ISC", - "engines": { - "node": ">= 10.x" - } - }, - "node_modules/statuses": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/strict-event-emitter": { - "version": "0.5.1", - "dev": true, - "license": "MIT" - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/string-argv": { - "version": "0.3.2", - "resolved": "https://registry.npmmirror.com/string-argv/-/string-argv-0.3.2.tgz", - "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==", - "license": "MIT", - "engines": { - "node": ">=0.6.19" - } - }, - "node_modules/string-width": { - "version": "4.2.3", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string.prototype.padend": { - "version": "3.1.5", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trim": { - "version": "1.2.8", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimend": { - "version": "1.0.7", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.7", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-bom": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-final-newline": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/strip-final-newline/-/strip-final-newline-3.0.0.tgz", - "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmmirror.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/synckit": { - "version": "0.9.2", - "resolved": "https://registry.npmmirror.com/synckit/-/synckit-0.9.2.tgz", - "integrity": "sha512-vrozgXDQwYO72vHjUb/HnFbQx1exDjoKzqx23aXEg2a9VIg2TSFZ8FmeZpTjUCFMYw7mpX4BE2SFu8wI7asYsw==", - "license": "MIT", - "dependencies": { - "@pkgr/core": "^0.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/unts" - } - }, - "node_modules/text-extensions": { - "version": "2.4.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/text-table": { - "version": "0.2.0", - "license": "MIT" - }, - "node_modules/through": { - "version": "2.3.8", - "dev": true, - "license": "MIT" - }, - "node_modules/tinyexec": { - "version": "0.3.1", - "dev": true, - "license": "MIT" - }, - "node_modules/tmp": { - "version": "0.0.33", - "dev": true, - "license": "MIT", - "dependencies": { - "os-tmpdir": "~1.0.2" - }, - "engines": { - "node": ">=0.6.0" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/tr46": { - "version": "0.0.3", - "dev": true, - "license": "MIT" - }, - "node_modules/ts-api-utils": { - "version": "1.4.0", - "resolved": "https://registry.npmmirror.com/ts-api-utils/-/ts-api-utils-1.4.0.tgz", - "integrity": "sha512-032cPxaEKwM+GT3vA5JXNzIaizx388rhsSW79vGRNGXfRRAdEAn2mvk36PvK5HnOchyWZ7afLEXqYCvPCrzuzQ==", - "license": "MIT", - "engines": { - "node": ">=16" - }, - "peerDependencies": { - "typescript": ">=4.2.0" - } - }, - "node_modules/tslib": { - "version": "2.6.2", - "license": "0BSD" - }, - "node_modules/type-check": { - "version": "0.4.0", - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-fest": { - "version": "4.10.2", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/typed-array-buffer": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.1", - "is-typed-array": "^1.1.10" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/typed-array-byte-length": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "has-proto": "^1.0.1", - "is-typed-array": "^1.1.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-byte-offset": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "has-proto": "^1.0.1", - "is-typed-array": "^1.1.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-length": { - "version": "1.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "is-typed-array": "^1.1.9" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typescript": { - "version": "5.3.3", - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/typescript-eslint": { - "version": "8.14.0", - "resolved": "https://registry.npmmirror.com/typescript-eslint/-/typescript-eslint-8.14.0.tgz", - "integrity": "sha512-K8fBJHxVL3kxMmwByvz8hNdBJ8a0YqKzKDX6jRlrjMuNXyd5T2V02HIq37+OiWXvUUOXgOOGiSSOh26Mh8pC3w==", - "license": "MIT", - "dependencies": { - "@typescript-eslint/eslint-plugin": "8.14.0", - "@typescript-eslint/parser": "8.14.0", - "@typescript-eslint/utils": "8.14.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.14.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.14.0.tgz", - "integrity": "sha512-tqp8H7UWFaZj0yNO6bycd5YjMwxa6wIHOLZvWPkidwbgLCsBMetQoGj7DPuAlWa2yGO3H48xmPwjhsSPPCGU5w==", - "license": "MIT", - "dependencies": { - "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.14.0", - "@typescript-eslint/type-utils": "8.14.0", - "@typescript-eslint/utils": "8.14.0", - "@typescript-eslint/visitor-keys": "8.14.0", - "graphemer": "^1.4.0", - "ignore": "^5.3.1", - "natural-compare": "^1.4.0", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", - "eslint": "^8.57.0 || ^9.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/typescript-eslint/node_modules/@typescript-eslint/parser": { - "version": "8.14.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/parser/-/parser-8.14.0.tgz", - "integrity": "sha512-2p82Yn9juUJq0XynBXtFCyrBDb6/dJombnz6vbo6mgQEtWHfvHbQuEa9kAOVIt1c9YFwi7H6WxtPj1kg+80+RA==", - "license": "BSD-2-Clause", - "dependencies": { - "@typescript-eslint/scope-manager": "8.14.0", - "@typescript-eslint/types": "8.14.0", - "@typescript-eslint/typescript-estree": "8.14.0", - "@typescript-eslint/visitor-keys": "8.14.0", - "debug": "^4.3.4" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/typescript-eslint/node_modules/@typescript-eslint/scope-manager": { - "version": "8.14.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/scope-manager/-/scope-manager-8.14.0.tgz", - "integrity": "sha512-aBbBrnW9ARIDn92Zbo7rguLnqQ/pOrUguVpbUwzOhkFg2npFDwTgPGqFqE0H5feXcOoJOfX3SxlJaKEVtq54dw==", - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.14.0", - "@typescript-eslint/visitor-keys": "8.14.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/typescript-eslint/node_modules/@typescript-eslint/types": { - "version": "8.14.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/types/-/types-8.14.0.tgz", - "integrity": "sha512-yjeB9fnO/opvLJFAsPNYlKPnEM8+z4og09Pk504dkqonT02AyL5Z9SSqlE0XqezS93v6CXn49VHvB2G7XSsl0g==", - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/typescript-eslint/node_modules/@typescript-eslint/typescript-estree": { - "version": "8.14.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.14.0.tgz", - "integrity": "sha512-OPXPLYKGZi9XS/49rdaCbR5j/S14HazviBlUQFvSKz3npr3NikF+mrgK7CFVur6XEt95DZp/cmke9d5i3vtVnQ==", - "license": "BSD-2-Clause", - "dependencies": { - "@typescript-eslint/types": "8.14.0", - "@typescript-eslint/visitor-keys": "8.14.0", - "debug": "^4.3.4", - "fast-glob": "^3.3.2", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/typescript-eslint/node_modules/@typescript-eslint/visitor-keys": { - "version": "8.14.0", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.14.0.tgz", - "integrity": "sha512-vG0XZo8AdTH9OE6VFRwAZldNc7qtJ/6NLGWak+BtENuEUXGZgFpihILPiBvKXvJ2nFu27XNGC6rKiwuaoMbYzQ==", - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.14.0", - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/typescript-eslint/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/typescript-eslint/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/unbox-primitive": { - "version": "1.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/undici-types": { - "version": "5.26.5", - "dev": true, - "license": "MIT" - }, - "node_modules/unicorn-magic": { - "version": "0.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmmirror.com/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/validate-npm-package-license": { - "version": "3.0.4", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "node_modules/wcwidth": { - "version": "1.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "defaults": "^1.0.3" - } - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "dev": true, - "license": "BSD-2-Clause" - }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/which": { - "version": "2.0.2", - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/which-boxed-primitive": { - "version": "1.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-typed-array": { - "version": "1.1.13", - "dev": true, - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.4", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/wrap-ansi": { - "version": "6.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/y18n": { - "version": "5.0.8", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/yaml": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/yaml/-/yaml-2.5.1.tgz", - "integrity": "sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==", - "license": "ISC", - "bin": { - "yaml": "bin.mjs" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/yargs": { - "version": "17.7.2", - "dev": true, - "license": "MIT", - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs-parser": { - "version": "21.1.1", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - } -} diff --git a/package.json b/package.json index 524f5e9..86a1552 100644 --- a/package.json +++ b/package.json @@ -1,36 +1,100 @@ { - "type": "module", - "name": "mostro-tools", - "version": "0.0.1", - "description": "Tools for developing Mostro clients.", - "author": "MostroP2P ", + "name": "@mostrop2p/mostro-tools", + "version": "0.1.0", + "description": "Tools for developing Mostro clients", + "keywords": [ + "mostro", + "nostr", + "decentralization", + "social", + "censorship-resistance", + "client" + ], "license": "MIT", - "homepage": "https://github.com/MostroP2P/mostro-tools#readme", - "repository": { - "type": "git", - "url": "https://github.com/MostroP2P/mostro-tools.git" - }, + "homepage": "https://mostro.network/", "bugs": { "url": "https://github.com/MostroP2P/mostro-tools/issues" }, + "repository": "github:mostrop2p/mostro-tools", + "author": { + "name": "Mostro P2P", + "url": "https://mostro.network/" + }, + "contributors": [], "files": [ - "lib" + "dist/types", + "dist/esm", + "dist/umd" ], - "sideEffects": false, - "module": "./lib/esm/index.js", - "main": "./lib/cjs/index.js", - "types": "./lib/types/index.d.ts", + "types": "./dist/types/index.d.ts", + "main": "./dist/esm/index.js", + "module": "./dist/esm/index.js", + "browser": "./dist/esm/index.js", + "esnext": "./dist/esm/index.js", + "es2015": "./dist/esm/index.js", + "esm": "./dist/esm/index.js", + "module-browser": "./dist/esm/index.js", + "source": "./dist/esm/index.js", + "unpkg": "./dist/umd/index.min.js", + "jsdelivr": "./dist/umd/index.min.js", "exports": { - ".": { - "import": "./lib/esm/index.js", - "require": "./lib/cjs/index.js", - "types": "./lib/types/index.d.ts" - }, - "./mostro": { - "import": "./lib/esm/mostro.js", - "require": "./lib/cjs/mostro.js", - "types": "./lib/types/mostro.d.ts" - } + "types": "./dist/types/index.d.ts", + "umd": "./dist/umd/index.js", + "require": "./dist/cjs/index.cjs", + "default": "./dist/esm/index.js" + }, + "sideEffects": false, + "type": "module", + "scripts": { + "prepare": "husky", + "postinstall": "mkdir -p ./dist/cjs && ln -sf ../umd/index.min.js ./dist/cjs/index.min.cjs && ln -sf ../umd/index.js ./dist/cjs/index.cjs", + "mdlint": "markdownlint . .github -i node_modules -c ./etc/.markdownlint.jsonc", + "mdlint:fix": "pnpm run mdlint --fix", + "lint": "eslint src test --config ./etc/eslint.config.js --no-error-on-unmatched-pattern", + "lint:fix": "pnpm run lint --fix", + "prettier": "prettier etc src test --config ./etc/.prettierrc.json --no-error-on-unmatched-pattern --check", + "prettier:fix": "pnpm run prettier --write", + "format": "pnpm run prettier:fix && pnpm run lint:fix && pnpm run mdlint:fix", + "build": "pnpm run build:code && pnpm run build:types", + "build:code": "node ./etc/build && pnpm run postinstall", + "build:types": "tsc --build --verbose ./etc/tsconfig.build.json", + "analyze": "node ./etc/analyze", + "doc": "pnpm doc:api && pnpm run doc:internal", + "doc:api": "typedoc --options ./etc/typedoc.api.json", + "doc:internal": "typedoc --options ./etc/typedoc.internal.json", + "clean": "rm -rf dist", + "test": "jest --runInBand --config=./etc/jest.unit.config.cjs", + "test:meta": "jest --runInBand --config=./etc/jest.meta.config.cjs", + "test:regression": "jest --runInBand --config=./etc/jest.regression.config.cjs", + "reset": "pnpm clean && rm -rf node_modules && rm -f pnpm-lock.yaml" + }, + "devDependencies": { + "@mostrop2p/mostro-tools": "link:", + "@types/jest": "^29.5.14", + "@typescript-eslint/eslint-plugin": "^8.12.2", + "@typescript-eslint/parser": "^8.12.2", + "esbuild": "^0.24.0", + "esbuild-plugin-umd-wrapper": "^3.0.0", + "eslint": "^9.14.0", + "eslint-config-prettier": "^9.1.0", + "eslint-import-resolver-typescript": "^3.6.3", + "eslint-plugin-import": "^2.31.0", + "husky": "^9.1.6", + "jest": "^29.7.0", + "markdownlint-cli": "^0.42.0", + "prettier": "^3.3.3", + "ts-jest": "^29.2.5", + "tsx": "^4.19.2", + "typedoc": "^0.26.11", + "typedoc-plugin-katex": "^0.1.2", + "typedoc-plugin-keywords": "^1.6.0", + "typedoc-plugin-mdn-links": "^3.3.6", + "typedoc-plugin-mermaid": "^1.12.0", + "typedoc-plugin-remove-references": "^0.0.6", + "typescript": "^5.6.3" + }, + "peerDependencies": { + "typescript": ">=5.0.0" }, "dependencies": { "@noble/ciphers": "^0.5.1", @@ -40,58 +104,6 @@ "@scure/bip32": "1.3.1", "@scure/bip39": "1.2.1", "eslint-plugin-prettier": "^5.2.1", - "husky": "^9.1.6", - "lint-staged": "^15.2.10", "nostr-tools": "^2.10.3", - "typescript-eslint": "^8.14.0" - }, - "peerDependencies": { - "typescript": ">=5.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - }, - "keywords": [ - "decentralization", - "social", - "censorship-resistance", - "client", - "nostr", - "mostro" - ], - "devDependencies": { - "@commitlint/cli": "^19.5.0", - "@commitlint/config-conventional": "^19.5.0", - "@types/node": "^18.13.0", - "@types/node-fetch": "^2.6.3", - "@typescript-eslint/eslint-plugin": "^6.5.0", - "@typescript-eslint/parser": "^6.5.0", - "bun-types": "^1.0.18", - "esbuild": "0.16.9", - "esbuild-plugin-alias": "^0.2.1", - "eslint": "^9.14.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-babel": "^5.3.1", - "esm-loader-typescript": "^1.0.3", - "events": "^3.3.0", - "mitata": "^0.1.6", - "mock-socket": "^9.3.1", - "msw": "^2.1.4", - "node-fetch": "^2.6.9", - "prettier": "^3.3.3", - "typescript": "^5.0.4" - }, - "scripts": { - "lint": "eslint .", - "format": "prettier --write .", - "prepublish": "just build" - }, - "lint-staged": { - "*.{js,ts}": [ - "eslint --fix", - "prettier --write" - ] } } diff --git a/tsconfig.json b/tsconfig.json index 0045599..f9ccd97 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,22 +1,44 @@ { "compilerOptions": { - "module": "NodeNext", - "target": "esnext", - "lib": ["dom", "dom.iterable", "esnext"], - "declaration": true, "strict": true, - "moduleResolution": "NodeNext", - "skipLibCheck": true, - "esModuleInterop": true, - "emitDeclarationOnly": true, + "alwaysStrict": true, + "allowUnreachableCode": false, + "allowUnusedLabels": false, + "exactOptionalPropertyTypes": true, + "noFallthroughCasesInSwitch": false, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noPropertyAccessFromIndexSignature": false, + "noUncheckedIndexedAccess": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "allowArbitraryExtensions": false, "allowImportingTsExtensions": true, - "outDir": "lib/types", + "module": "esnext", + "moduleResolution": "bundler", "resolveJsonModule": true, "rootDir": ".", - "types": ["bun-types"], - "baseUrl": ".", - "paths": { - "@/*": ["src/*"] - } + "typeRoots": ["./node_modules/@types"], + "declaration": true, + "declarationDir": "./dist/types", + "declarationMap": true, + "emitDeclarationOnly": true, + "newLine": "lf", + "preserveConstEnums": true, + "removeComments": false, + "sourceMap": true, + "allowJs": false, + "allowSyntheticDefaultImports": false, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + "lib": ["ESNext", "DOM"], + "moduleDetection": "force", + "target": "ESNext", + "composite": true, + "tsBuildInfoFile": "./dist/tsconfig.build.tsbuildinfo", + "noErrorTruncation": true, + "skipLibCheck": false, + "useDefineForClassFields": true } } diff --git a/tsdoc.json b/tsdoc.json new file mode 100644 index 0000000..43533c6 --- /dev/null +++ b/tsdoc.json @@ -0,0 +1,120 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + "tagDefinitions": [ + { + "tagName": "@category", + "syntaxKind": "block" + }, + { + "tagName": "@enum", + "syntaxKind": "modifier" + }, + { + "tagName": "@event", + "syntaxKind": "modifier" + }, + { + "tagName": "@group", + "syntaxKind": "block" + }, + { + "tagName": "@hidden", + "syntaxKind": "modifier" + }, + { + "tagName": "@ignore", + "syntaxKind": "modifier" + }, + { + "tagName": "@interface", + "syntaxKind": "modifier" + }, + { + "tagName": "@module", + "syntaxKind": "block" + }, + { + "tagName": "@namespace", + "syntaxKind": "modifier" + }, + { + "tagName": "@overload", + "syntaxKind": "modifier" + }, + { + "tagName": "@private", + "syntaxKind": "modifier" + }, + { + "tagName": "@prop", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@property", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@protected", + "syntaxKind": "modifier" + }, + { + "tagName": "@satisfies", + "syntaxKind": "block" + }, + { + "tagName": "@template", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@mermaid", + "syntaxKind": "block", + "allowMultiple": true + } + ], + "supportForTags": { + "@alpha": true, + "@beta": true, + "@category": true, + "@defaultValue": true, + "@deprecated": true, + "@enum": true, + "@event": true, + "@eventProperty": true, + "@example": true, + "@experimental": true, + "@group": true, + "@hidden": true, + "@ignore": true, + "@inheritDoc": true, + "@interface": true, + "@internal": true, + "@label": true, + "@link": true, + "@module": true, + "@namespace": true, + "@overload": true, + "@override": true, + "@packageDocumentation": true, + "@param": true, + "@private": true, + "@privateRemarks": true, + "@prop": true, + "@property": true, + "@protected": true, + "@public": true, + "@readonly": true, + "@remarks": true, + "@returns": true, + "@satisfies": true, + "@sealed": true, + "@see": true, + "@template": true, + "@throws": true, + "@typeParam": true, + "@virtual": true, + "@mermaid": true + } +}