🚀 feat(_route): add dev to origin

This commit is contained in:
eshanized
2024-12-23 02:19:28 +05:30
parent 0bca0ca1d7
commit 937b1a56ab
16382 changed files with 2985935 additions and 1967 deletions

31
CODE_OF_CONDUCT.md Normal file
View File

@@ -0,0 +1,31 @@
# Snigdha OS Web Dev - Code of Conduct
Welcome to the Snigdha OS Web Dev project! 🤗 We are thrilled to have you here and want to make sure that everyone feels welcome and respected. Please read through our Code of Conduct to ensure we create a positive environment for all contributors.
## 1. Be Respectful 🫶
Treat others the way you want to be treated. Be kind, inclusive, and open-minded. Respect different perspectives and experiences. 🌍
## 2. Embrace Diversity 🌈
We celebrate diversity in all its forms. Everyone is welcome, regardless of their background, skill level, or experience. Lets learn from each other! 💡
## 3. Collaborate and Communicate 🤝
Effective communication is key. Share your thoughts clearly and listen to others. Lets work together to make something great! 💬
## 4. No Harassment 🚫
Harassment in any form will not be tolerated. We are here to create a safe and supportive space for everyone. Let's keep it friendly and professional. 🚷
## 5. Stay Positive 💪
Encourage others, celebrate achievements, and offer constructive feedback. A positive attitude can go a long way in fostering a collaborative environment. 🌟
## 6. Respect Privacy 🔐
Always respect the privacy of others. Don't share personal information without consent and be mindful of how you use data. 🛡️
## 7. Follow Licensing and Ethics 📜
Respect the licenses and intellectual property associated with the project. Contribute responsibly and ethically! ⚖️
## 8. Have Fun! 🎉
Contributing to open-source is a rewarding experience. Lets have fun while were at it! 🚀
By following these simple guidelines, we can ensure that the Snigdha OS Web Dev project remains a welcoming and collaborative space for everyone! ✨

110
CONTRIBUTING.md Normal file
View File

@@ -0,0 +1,110 @@
# Contributing to Snigdha OS Web Dev 🌐
Thank you for your interest in contributing to the Snigdha OS Web Dev project! We're excited to have you help us improve the web presence of Snigdha OS. Whether you're fixing a bug, adding a feature, or improving the documentation, your contributions are highly valued.
## 🛠 How to Contribute
### 1. **Fork the Repository** 🍴
Start by forking the Snigdha OS Web Dev repository to your own GitHub account. This creates a personal copy of the project where you can make changes without affecting the original project.
- Navigate to the [Snigdha OS Web Dev repository](https://github.com/Snigdha-OS/snigdhaos-web-dev).
- Click on the "Fork" button at the top right of the page.
### 2. **Clone Your Fork** 🚀
Clone the forked repository to your local machine:
```bash
git clone https://github.com/your-username/snigdhaos-web-dev.git
```
### 3. **Create a New Branch** 🧑‍💻
Once you have the repository cloned, create a new branch for your work. This helps keep your contributions organized.
```bash
git checkout -b feature/your-branch-name
```
### 4. **Make Your Changes** ✏️
Now you can make changes! Whether you're fixing a bug, adding a feature, or improving documentation, make sure to follow the guidelines for code style and project structure.
- **For Code**: Ensure that your code follows the project's coding standards and is well-documented.
- **For Documentation**: Follow the formatting guidelines and be clear with your explanations.
### 5. **Commit Your Changes** 💾
Commit your changes with a clear and descriptive message.
```bash
git add .
git commit -m "Add/modify [brief description of changes]"
```
### 6. **Push Your Changes** 🔼
Push your branch to your forked repository:
```bash
git push origin feature/your-branch-name
```
### 7. **Open a Pull Request (PR)** 🔄
Once your changes are ready, open a pull request to merge your work back into the original repository.
- Go to your fork on GitHub and click the "New Pull Request" button.
- Select your branch and the base branch (usually `master` or `develop`).
- Provide a clear description of the changes in the PR, explaining the problem it solves or the feature it adds.
### 8. **Address Feedback** 💬
After opening the PR, maintainers may review your changes and provide feedback. Be prepared to make additional changes based on their suggestions.
### 9. **Celebrate** 🎉
Once your pull request is merged, celebrate! You've just contributed to Snigdha OS Web Dev and made the web experience better for everyone!
## 📝 Code of Conduct
Please follow the [Snigdha OS Code of Conduct](https://github.com/Snigdha-OS/snigdhaos-web-dev/blob/master/CODE_OF_CONDUCT.md) when contributing to this repository. We want to foster a welcoming and inclusive environment for all contributors.
## 🚨 Reporting Issues
If you find any issues or bugs, please follow the steps below to report them:
1. Check if the issue has already been reported.
2. If not, open an issue in the [Issues section](https://github.com/Snigdha-OS/snigdhaos-web-dev/issues).
3. Provide as much detail as possible:
- Describe the issue clearly.
- Include steps to reproduce the issue.
- If possible, attach logs or screenshots.
## 💡 Ideas for Contribution
You can contribute in various ways:
- **Bug Fixes**: Help us by identifying and fixing issues in the web app.
- **Feature Requests**: Have an idea for a new feature? Open an issue or a pull request!
- **Documentation**: Contribute to improving the documentation by clarifying instructions or adding new information.
- **Styling/Design**: Help us make the website look better by improving the UI and UX.
## 📜 License
By contributing, you agree that your contributions will be licensed under the [MIT License](https://github.com/Snigdha-OS/snigdhaos-web-dev/blob/master/LICENSE).
## 🤝 Thank You!
Thank you for being a part of the Snigdha OS Web Dev community! Every contribution helps us make Snigdha OS better for everyone. We look forward to your contributions!

View File

@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2024 SNIGHDA OS
Copyright (c) 2024 SNIGDHA OS
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@@ -1,68 +0,0 @@
# Snigdha OS Website 🌐
Welcome to the **Snigdha OS** website repository! This repository powers the official site for **Snigdha OS**, an Arch-based Linux distribution focused on penetration testing and ethical hacking. Here, you will find documentation, guides, and all resources to help you get the most out of Snigdha OS.
## 🚀 About Snigdha OS
**Snigdha OS** is an Arch Linux-based operating system designed for ethical hackers and penetration testers. It is lightweight, highly customizable, and pre-loaded with a suite of security tools. Whether you're performing security audits or simply looking for a minimalistic and powerful OS, **Snigdha OS** has you covered!
### Key Features:
- **Arch-based**: Fast, flexible, and rolling release.
- **Penetration Testing Ready**: Pre-loaded with security tools like **Blackbox**.
- **Highly Customizable**: Tailor the OS to your needs.
- **Efficient**: Minimal design for better performance.
Learn more at the official [Snigdha OS Documentation](https://snigdhaos.org).
## 🛠️ Technologies Used
- **Astro**: Modern static site generator that ensures fast, optimized websites. 🚀
- **Starlight**: Component library for documentation sites built on Astro. 📚
- **Markdown & MDX**: Content is written in Markdown for easy updates and collaboration. ✍️
## 📂 Repository Structure
Heres an overview of the project structure:
```
.
├── .github # GitHub configuration
├── assets # Website assets
│ ├── icons # Icons used for the site
├── .gitignore # Git ignore file
├── config.sh # Shell configuration script
├── developers.css # CSS for the developer section
├── developers.html # HTML for the developer section
├── developers.js # JavaScript for the developer section
├── index.html # Main HTML file for the site
├── push.sh # Deployment script
├── sitemap.xml # Sitemap for SEO
└── style.css # Global CSS for the site
```
## 🧑‍💻 How to Contribute
We welcome contributions to improve the Snigdha OS website! Heres how you can get started:
1. **Fork the Repository**: Click the fork button at the top-right of the page to create your own copy of the repository. 🍴
2. **Clone the Repository**: Clone the repo to your local machine.
```bash
git clone https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
cd Snigdha-OS.github.io
```
3. **Install Dependencies**: Install the necessary dependencies.
```bash
pnpm install
```
4. **Run the Development Server**: Start the local development server to preview your changes.
```bash
pnpm dev
```
5. **Make Changes**: Add new documentation, fix bugs, or improve the sites design. 🛠️
6. **Create a Pull Request**: Once you're happy with your changes, submit a pull request! 🚀
For detailed guidance on contributing, refer to our [Contributing Guide](https://github.com/Snigdha-OS/Snigdha-OS.github.io/blob/main/CONTRIBUTING.md). 🤝
## 🌍 Support
If you need help or have any questions, feel free to reach out:
- Join the community on our [Snigdha OS Discord Server](https://discord.gg/snigdhaos) 💬
- Open an issue in the [GitHub Issues](https://github.com/Snigdha-OS/Snigdha-OS.github.io/issues) tracker 🐞

51
SECURITY.md Normal file
View File

@@ -0,0 +1,51 @@
# Snigdha OS Web Dev Security Policy 🔐
Thank you for taking an interest in the security of Snigdha OS Web Dev! We take security seriously and encourage responsible disclosure of vulnerabilities.
## 🚨 Reporting a Vulnerability
If you discover a security vulnerability, please follow these steps to report it responsibly:
1. **Do not open a public issue** on GitHub. This helps prevent potential exploitation by malicious users.
2. Send a detailed email to us at **security@snigdhaos.org**.
3. In the email, include the following details:
- A description of the vulnerability.
- The steps to reproduce the issue.
- Any potential exploit or sample code (if possible).
- Your contact information (optional but helpful).
## 🔒 Security Response Process
Once we receive your report, we will follow these steps:
1. **Acknowledge receipt**: We will confirm that we've received your report within 24-48 hours.
2. **Assessment**: We will assess the issue, determine its severity, and prioritize fixing it.
3. **Fix the issue**: We will implement the necessary fixes or patches and test them.
4. **Public disclosure**: After fixing the issue, we will publicly disclose the vulnerability in the form of a GitHub release or security advisory.
5. **Follow-up**: We will notify you of the resolution and, if appropriate, credit you for the discovery.
## 🔑 Security Best Practices
We recommend the following best practices to help keep Snigdha OS Web Dev secure:
- Always ensure your development environment is up to date with the latest security patches.
- Use secure libraries and frameworks when contributing to the project.
- Avoid storing sensitive information like passwords, API keys, or credentials in the codebase.
- Regularly check for known vulnerabilities in dependencies and update them as necessary.
- Use HTTPS for all communications between clients and servers.
## 🛠 Security Tools We Use
We actively use the following tools to help ensure security in Snigdha OS Web Dev:
- **Code scanning** tools like GitHub's built-in security features to check for vulnerabilities in the codebase.
- **Dependabot** to monitor and automatically update vulnerable dependencies.
- Regular security audits by our team to identify and mitigate potential threats.
## 👥 Responsible Disclosure
By following our security policy and responsibly reporting any discovered vulnerabilities, you help improve the security of Snigdha OS Web Dev for everyone. We appreciate your efforts in making our project more secure.
Thank you for being a responsible member of the Snigdha OS Web Dev community!
For further details, refer to our [CONTRIBUTING.md](CONTRIBUTING.md) file for how you can contribute to the Snigdha OS Web Dev project in a safe and secure manner.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 758 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 375 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 215 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 248 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

View File

@@ -1,11 +0,0 @@
<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
<title>Snigdha OS</title>
<style>
.s0 { display: none;fill: #28282b }
.s1 { fill: #ffffff }
.s2 { display: none;fill: #754ffe }
</style>
<path id="Shape 1" class="s0" d="m633-38v587h-755v-587z"/>
<path id="&lt;Compound Path&gt;" fill-rule="evenodd" class="s1" d="m226.7 303.9q2.1-37-25.4-57.2c-36.2-25.2-77-42-99.1-76.3-6.8-10.4-11.8-22.5-14.4-36.9 4.7 9.6 11.9 17.9 20.7 23.9 4.4-8.1 9.4-15.7 15-22.9q2.5 40.2 45.1 68.2l38.5 29q23.7 18 35.6 41.9c1.3-19.3 15.1-59.2-6.4-70.6q1.8 15-1.3 22.3c-45.6-16.6-74.9-65.1-89.5-114.3-5.8-19.5-9.3-39.1-10.5-56.9 4.2 17.1 12.6 32.8 24.6 45.7 27.6-19.5 61.3-31 97.7-31 34.6 0 66.7 10.4 93.5 28.2 16.5-8.7 27.9-24.5 31-42.9-1.3 18.3-4.9 38.4-11 58.5-14.7 48.6-43.9 96.3-89.1 112.7 1.5-14.9-7.7-28.7-22-33.1 9.6 0.6 18.3-5.8 20.4-15.2-17.6-3.4-35.6 2.7-47.6 16 10.3-1 20.5 2.8 27.6 10.4 5 5.4 8.1 12.3 8.7 19.5 0.3 2.9 0.2 5.9-0.3 8.8-2.8 13.8-7.2 27.1-13.2 39.9-6.5 16.4-4.2 35.1 6.2 49.4 0.6-16.5 4.9-32.7 12.6-47.4q11.9-23.9 35.5-41.9l38.5-29q41.3-27.1 45-65.6c4.6 6.3 8.9 12.9 12.7 19.8 8.7-6 15.9-14.1 20.9-23.4-2.6 14.4-7.6 26.5-14.3 37-22.1 34.2-63 51-99.2 76.2q-27.5 20.2-25.4 57.2 18.3-22.1 51.1-22.3 71.5-1.4 87.4-41.3c-1.3 83.7-63.4 152.6-144.2 164.5-4.3 9.1-13.1 15.4-23.1 16.5-10-1.4-18.8-7.4-23.8-16.1-82.1-10.7-145.6-80.2-146.9-164.9q15.8 39.9 87.3 41.3 32.9 0.2 51.1 22.3zm69.6 87.7q16.5-16.9 2.2-40-11.4-14.3-18.8-38.3-13.2 26.6 0.2 45.3 17 17.5 16.4 33zm-25.8 14.5c2.3-5.2 3.5-10.8 3.5-16.6 0-12.3-5.5-24-15-31.8-9.5 7.8-15 19.5-15 31.8 0 5.9 1.2 11.6 3.6 16.9 2.6 5.7 6.4 10.8 11.4 14.9 5-4.1 8.9-9.4 11.5-15.2zm155.4-180.4c0.1 1.6 5.2 1 7.7 0.9-25.5 13.9-57.7 27.1-81.7 31.7q-23.6 5.1-42.4 15 10.1-15.1 39.8-24.9 56.3-21.3 72.3-50.3c2.2 8.9 3.6 18.2 4.3 27.6zm-337.1-0.1c0.8-9.1 2.1-18.6 4.1-27.5q16.1 29 72.3 50.3 29.8 9.8 39.8 24.9-18.7-9.9-42.3-15c-24.1-4.6-58.1-18.8-83.5-32.7 2.9 0.4 9.5 1.6 9.6 0zm149.2 133q13.5-18.7 0.3-45.3-7.4 24-18.8 38.3-14.3 23.1 2.1 40-0.5-15.5 16.4-33z"/>
<path id="snigdhaos.org" class="s2" aria-label="snigdhaos.org" d="m182.5 454.2q-1.2 0-2.4-0.2-1.2-0.4-1.8-0.8l0.9-2q1.4 1 3.3 1 1.8 0 1.8-1.1 0-0.5-0.3-0.7-0.4-0.3-1.4-0.6l-0.9-0.4q-1.5-0.6-2.3-1.4-0.8-0.8-0.8-2.1 0-1.5 1.1-2.3 1.2-0.9 3.2-0.9 1 0 1.9 0.2 1 0.2 1.5 0.6l-0.9 2q-0.3-0.3-1-0.5-0.7-0.2-1.5-0.2-1.7 0-1.7 1 0 0.6 0.4 0.9 0.5 0.3 1.5 0.6 0.1 0.1 0.7 0.3 1.6 0.6 2.3 1.4 0.8 0.7 0.8 1.9 0 1.7-1.3 2.5-1.2 0.8-3.1 0.8zm7.1-0.2v-11h2.5v2q0.5-1 1.5-1.7 0.9-0.6 2.3-0.6 1.7 0 2.6 0.7 0.9 0.7 1.2 2 0.3 1.3 0.3 3.3v5.3h-2.6v-5.2q0-2.1-0.4-3-0.4-1-1.7-1-0.7 0-1.4 0.5-0.8 0.4-1.3 1.3-0.5 0.8-0.5 1.9v5.5zm14 0v-11h2.7v11zm1.3-13.1q-0.7 0-1.2-0.5-0.5-0.5-0.5-1.2 0-0.7 0.5-1.2 0.5-0.5 1.2-0.5 0.8 0 1.3 0.5 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/svg" viewBox="0 0 512 512" width="512" height="512">
<title>Snigdha OS</title>
<style>
.s0 { display: none;fill: #28282b }
.s1 { fill: #754ffe }
.s2 { display: none;fill: #754ffe }
</style>
<path id="Shape 1" class="s0" d="m633-38v587h-755v-587z"/>
<path id="&lt;Compound Path&gt;" fill-rule="evenodd" class="s1" d="m226.7 303.9q2.1-37-25.4-57.2c-36.2-25.2-77-42-99.1-76.3-6.8-10.4-11.8-22.5-14.4-36.9 4.7 9.6 11.9 17.9 20.7 23.9 4.4-8.1 9.4-15.7 15-22.9q2.5 40.2 45.1 68.2l38.5 29q23.7 18 35.6 41.9c1.3-19.3 15.1-59.2-6.4-70.6q1.8 15-1.3 22.3c-45.6-16.6-74.9-65.1-89.5-114.3-5.8-19.5-9.3-39.1-10.5-56.9 4.2 17.1 12.6 32.8 24.6 45.7 27.6-19.5 61.3-31 97.7-31 34.6 0 66.7 10.4 93.5 28.2 16.5-8.7 27.9-24.5 31-42.9-1.3 18.3-4.9 38.4-11 58.5-14.7 48.6-43.9 96.3-89.1 112.7 1.5-14.9-7.7-28.7-22-33.1 9.6 0.6 18.3-5.8 20.4-15.2-17.6-3.4-35.6 2.7-47.6 16 10.3-1 20.5 2.8 27.6 10.4 5 5.4 8.1 12.3 8.7 19.5 0.3 2.9 0.2 5.9-0.3 8.8-2.8 13.8-7.2 27.1-13.2 39.9-6.5 16.4-4.2 35.1 6.2 49.4 0.6-16.5 4.9-32.7 12.6-47.4q11.9-23.9 35.5-41.9l38.5-29q41.3-27.1 45-65.6c4.6 6.3 8.9 12.9 12.7 19.8 8.7-6 15.9-14.1 20.9-23.4-2.6 14.4-7.6 26.5-14.3 37-22.1 34.2-63 51-99.2 76.2q-27.5 20.2-25.4 57.2 18.3-22.1 51.1-22.3 71.5-1.4 87.4-41.3c-1.3 83.7-63.4 152.6-144.2 164.5-4.3 9.1-13.1 15.4-23.1 16.5-10-1.4-18.8-7.4-23.8-16.1-82.1-10.7-145.6-80.2-146.9-164.9q15.8 39.9 87.3 41.3 32.9 0.2 51.1 22.3zm69.6 87.7q16.5-16.9 2.2-40-11.4-14.3-18.8-38.3-13.2 26.6 0.2 45.3 17 17.5 16.4 33zm-25.8 14.5c2.3-5.2 3.5-10.8 3.5-16.6 0-12.3-5.5-24-15-31.8-9.5 7.8-15 19.5-15 31.8 0 5.9 1.2 11.6 3.6 16.9 2.6 5.7 6.4 10.8 11.4 14.9 5-4.1 8.9-9.4 11.5-15.2zm155.4-180.4c0.1 1.6 5.2 1 7.7 0.9-25.5 13.9-57.7 27.1-81.7 31.7q-23.6 5.1-42.4 15 10.1-15.1 39.8-24.9 56.3-21.3 72.3-50.3c2.2 8.9 3.6 18.2 4.3 27.6zm-337.1-0.1c0.8-9.1 2.1-18.6 4.1-27.5q16.1 29 72.3 50.3 29.8 9.8 39.8 24.9-18.7-9.9-42.3-15c-24.1-4.6-58.1-18.8-83.5-32.7 2.9 0.4 9.5 1.6 9.6 0zm149.2 133q13.5-18.7 0.3-45.3-7.4 24-18.8 38.3-14.3 23.1 2.1 40-0.5-15.5 16.4-33z"/>
<path id="snigdhaos.org" class="s2" aria-label="snigdhaos.org" d="m182.5 454.2q-1.2 0-2.4-0.2-1.2-0.4-1.8-0.8l0.9-2q1.4 1 3.3 1 1.8 0 1.8-1.1 0-0.5-0.3-0.7-0.4-0.3-1.4-0.6l-0.9-0.4q-1.5-0.6-2.3-1.4-0.8-0.8-0.8-2.1 0-1.5 1.1-2.3 1.2-0.9 3.2-0.9 1 0 1.9 0.2 1 0.2 1.5 0.6l-0.9 2q-0.3-0.3-1-0.5-0.7-0.2-1.5-0.2-1.7 0-1.7 1 0 0.6 0.4 0.9 0.5 0.3 1.5 0.6 0.1 0.1 0.7 0.3 1.6 0.6 2.3 1.4 0.8 0.7 0.8 1.9 0 1.7-1.3 2.5-1.2 0.8-3.1 0.8zm7.1-0.2v-11h2.5v2q0.5-1 1.5-1.7 0.9-0.6 2.3-0.6 1.7 0 2.6 0.7 0.9 0.7 1.2 2 0.3 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.9-0.9 0.9-2.5v-0.1q0-1.1-0.4-1.9-0.4-0.8-1.2-1.3-0.7-0.4-1.6-0.4-1.5 0-2.4 1-0.8 1-0.8 2.6 0 1.6 0.8 2.6 0.8 1 2.4 1z"/>
</svg>

Before

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 235 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 831 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 729 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

0
config.sh Executable file → Normal file
View File

View File

@@ -1,344 +0,0 @@
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500&display=swap");
/* @import url("https://fonts.googleapis.com/css2?family=Ubuntu&display=swap"); */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
min-height: 100vh;
display: block;
justify-content: center;
align-items: center;
background: url(./assets/back.jpg);
background-repeat: no-repeat;
background-size: cover;
transition: 0.5s;
font-family: "Ubuntu", sans-serif;
font-weight: 400;
font-style: normal;
}
body:has(.box[data-color="clr1"]:hover) {
background: url(./assets/54362.jpg);
background-repeat: no-repeat;
background-size: cover;
}
body:has(.box[data-color="clr2"]:hover) {
background: url(./assets/alok.jpg);
background-repeat: no-repeat;
background-size: cover;
}
body:has(.box[data-color="clr3"]:hover) {
background: url(./assets/2147811240.jpg);
background-repeat: no-repeat;
background-size: cover;
}
body:has(.box[data-color="clr4"]:hover) {
background: url(./assets/2147835077.jpg);
background-repeat: no-repeat;
background-size: cover;
}
/* nav */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
width: 100%;
top: 0;
background-color: rgba(26, 31, 44, 0);
z-index: 1000;
padding-inline: 5rem;
backdrop-filter: blur(5px);
}
.logo {
height: 40px;
}
a {
color: #000;
position: relative;
text-decoration: none;
}
a::before {
background: #754ffe;
content: "";
inset: 0;
position: absolute;
transform: scaleX(0);
transform-origin: left;
transition: transform 0.5s ease-in-out;
z-index: -1;
}
a:hover::before {
transform: scaleX(1);
transform-origin: left;
}
.nav-links {
display: flex;
gap: 2rem;
}
.nav-links a {
color: white;
text-decoration: none;
font-size: 0.9rem;
text-transform: uppercase;
font-weight: 800;
}
/* devs */
* {
font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color: white;
font-size: 12px;
}
.git-i{
display: flex;
justify-content: center;
align-items: center;
margin-top: 20px;
}
.git-contributions {
width: 500x;
height: 160px;
padding: 20px;
margin: 10px;
border: solid 1px #3d444d;
border-radius: 10px;
}
.contribute-calendar {
display: flex;
}
.weeks {
display: flex;
flex-direction: column;
justify-content: start;
gap: 6px;
margin-top: 12px;
margin-left: 4px;
}
.weeks p {
margin: 0;
}
.months {
display: flex;
width: 90%;
height: 22px;
gap: 20px;
margin-left: 38px;
}
.bottom-scale {
display: flex;
align-items: center;
justify-content: end;
gap: 4px;
margin-right: 12px;
}
.bottom-scale p {
margin: 0;
color: #9198a1;
}
.color-box {
height: 10px;
width: 10px;
border-radius: 2px;
}
.legend-1 {
background-color: #171c21;
}
.legend-2 {
background-color: #1f432b;
}
.legend-3 {
background-color: #2e6b38;
}
.legend-4 {
background-color: #52a44f;
}
.legend-5 {
background-color: #6cd064;
}
#led-container {
padding: 10px;
}
.led-row {
display: flex;
}
.led {
width: 6px;
height: 6px;
margin: 1.8px;
border-radius: 20%;
background-color: #171c21;
}
.led.on-1 {
background-color: #1f432b;
}
.led.on-2 {
background-color: #2e6b38;
}
.led.on-3 {
background-color: #52a44f;
}
.led.on-4 {
background-color: #6cd064;
}
section {
overflow: hidden;
padding-top: 3em;
}
h2 {
font-family: "Ubuntu", sans-serif;
font-weight: 400;
font-style: normal;
color: #fff;
font-size: clamp(2rem, 1rem + 4vw, 5rem);
text-align: center;
line-height: 1.3;
}
.container {
position: relative;
display: flex;
justify-content: center;
align-items: center;
gap: 40px;
flex-wrap: wrap;
padding: 3.25em 0 3em;
.box {
position: relative;
width: 18.75rem;
height: 18.75rem;
border-radius: 0.625rem;
display: flex;
justify-content: center;
align-items: center;
transition: 0.5s;
.imgBox {
position: absolute;
inset: 0;
border-radius: 0.75rem;
border: 0.25rem solid rgba(0, 0, 0, 0.2);
img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: 0.5s;
border-radius: 0.625rem;
}
}
.glass {
position: absolute;
inset: 0;
background: linear-gradient(#fff2, transparent);
border: 0.063rem solid rgba(255, 255, 255, 0.1);
box-shadow: 0 0.938rem 0.938rem rgba(0, 0, 0, 0.25);
backdrop-filter: blur(0.938rem);
border-radius: 0.625rem;
overflow: hidden;
scale: 0;
display: flex;
justify-content: center;
align-items: center;
transition: 0.5s;
opacity: 0;
&:before {
position: absolute;
content: "";
bottom: 0;
width: 100%;
height: 2.5rem;
background: rgba(255, 255, 255, 0.05);
}
h3 {
font-size: 1.25rem;
color: #fff;
text-transform: uppercase;
letter-spacing: 0.1em;
text-align: center;
line-height: 0.8em;
font-weight: 500;
}
span {
font-size: 0.5em;
font-weight: 400;
}
ul {
position: absolute;
bottom: 0;
width: 100%;
display: flex;
justify-content: center;
gap: 1rem;
a {
color: #fff8;
font-size: 1.25rem;
scale: 0;
transition: 0.25s;
transition-delay: scale calc(0.2s * var(--i));
&:hover {
color: #fff;
}
}
}
}
&:hover .imgBox img {
opacity: 0.5;
}
&:hover {
transform: rotate(-15deg);
}
&:hover .glass {
transform: rotate(20deg);
scale: 1;
opacity: 1;
}
&:hover ul a {
scale: 1;
}
}
}

View File

@@ -1,129 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Snigdha OS | Developers</title>
<link rel="stylesheet" href="developers.css">
<script src="./developers.js" defer></script>
</head>
<section>
<nav class="navbar">
<a href="/">
<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="60" height="60">
<title>Snigdha OS</title>
<style>
.s0 { display: none;fill: #28282b }
.s1 { fill: #ffffff }
.s2 { display: none;fill: #754ffe }
</style>
<path id="Shape 1" class="s0" d="m633-38v587h-755v-587z"/>
<path id="&lt;Compound Path&gt;" fill-rule="evenodd" class="s1" d="m226.7 303.9q2.1-37-25.4-57.2c-36.2-25.2-77-42-99.1-76.3-6.8-10.4-11.8-22.5-14.4-36.9 4.7 9.6 11.9 17.9 20.7 23.9 4.4-8.1 9.4-15.7 15-22.9q2.5 40.2 45.1 68.2l38.5 29q23.7 18 35.6 41.9c1.3-19.3 15.1-59.2-6.4-70.6q1.8 15-1.3 22.3c-45.6-16.6-74.9-65.1-89.5-114.3-5.8-19.5-9.3-39.1-10.5-56.9 4.2 17.1 12.6 32.8 24.6 45.7 27.6-19.5 61.3-31 97.7-31 34.6 0 66.7 10.4 93.5 28.2 16.5-8.7 27.9-24.5 31-42.9-1.3 18.3-4.9 38.4-11 58.5-14.7 48.6-43.9 96.3-89.1 112.7 1.5-14.9-7.7-28.7-22-33.1 9.6 0.6 18.3-5.8 20.4-15.2-17.6-3.4-35.6 2.7-47.6 16 10.3-1 20.5 2.8 27.6 10.4 5 5.4 8.1 12.3 8.7 19.5 0.3 2.9 0.2 5.9-0.3 8.8-2.8 13.8-7.2 27.1-13.2 39.9-6.5 16.4-4.2 35.1 6.2 49.4 0.6-16.5 4.9-32.7 12.6-47.4q11.9-23.9 35.5-41.9l38.5-29q41.3-27.1 45-65.6c4.6 6.3 8.9 12.9 12.7 19.8 8.7-6 15.9-14.1 20.9-23.4-2.6 14.4-7.6 26.5-14.3 37-22.1 34.2-63 51-99.2 76.2q-27.5 20.2-25.4 57.2 18.3-22.1 51.1-22.3 71.5-1.4 87.4-41.3c-1.3 83.7-63.4 152.6-144.2 164.5-4.3 9.1-13.1 15.4-23.1 16.5-10-1.4-18.8-7.4-23.8-16.1-82.1-10.7-145.6-80.2-146.9-164.9q15.8 39.9 87.3 41.3 32.9 0.2 51.1 22.3zm69.6 87.7q16.5-16.9 2.2-40-11.4-14.3-18.8-38.3-13.2 26.6 0.2 45.3 17 17.5 16.4 33zm-25.8 14.5c2.3-5.2 3.5-10.8 3.5-16.6 0-12.3-5.5-24-15-31.8-9.5 7.8-15 19.5-15 31.8 0 5.9 1.2 11.6 3.6 16.9 2.6 5.7 6.4 10.8 11.4 14.9 5-4.1 8.9-9.4 11.5-15.2zm155.4-180.4c0.1 1.6 5.2 1 7.7 0.9-25.5 13.9-57.7 27.1-81.7 31.7q-23.6 5.1-42.4 15 10.1-15.1 39.8-24.9 56.3-21.3 72.3-50.3c2.2 8.9 3.6 18.2 4.3 27.6zm-337.1-0.1c0.8-9.1 2.1-18.6 4.1-27.5q16.1 29 72.3 50.3 29.8 9.8 39.8 24.9-18.7-9.9-42.3-15c-24.1-4.6-58.1-18.8-83.5-32.7 2.9 0.4 9.5 1.6 9.6 0zm149.2 133q13.5-18.7 0.3-45.3-7.4 24-18.8 38.3-14.3 23.1 2.1 40-0.5-15.5 16.4-33z"/>
<path id="snigdhaos.org" class="s2" aria-label="snigdhaos.org" d="m182.5 454.2q-1.2 0-2.4-0.2-1.2-0.4-1.8-0.8l0.9-2q1.4 1 3.3 1 1.8 0 1.8-1.1 0-0.5-0.3-0.7-0.4-0.3-1.4-0.6l-0.9-0.4q-1.5-0.6-2.3-1.4-0.8-0.8-0.8-2.1 0-1.5 1.1-2.3 1.2-0.9 3.2-0.9 1 0 1.9 0.2 1 0.2 1.5 0.6l-0.9 2q-0.3-0.3-1-0.5-0.7-0.2-1.5-0.2-1.7 0-1.7 1 0 0.6 0.4 0.9 0.5 0.3 1.5 0.6 0.1 0.1 0.7 0.3 1.6 0.6 2.3 1.4 0.8 0.7 0.8 1.9 0 1.7-1.3 2.5-1.2 0.8-3.1 0.8zm7.1-0.2v-11h2.5v2q0.5-1 1.5-1.7 0.9-0.6 2.3-0.6 1.7 0 2.6 0.7 0.9 0.7 1.2 2 0.3 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.9-0.9 0.9-2.5v-0.1q0-1.1-0.4-1.9-0.4-0.8-1.2-1.3-0.7-0.4-1.6-0.4-1.5 0-2.4 1-0.8 1-0.8 2.6 0 1.6 0.8 2.6 0.8 1 2.4 1z"/>
</svg>
</a>
<div class="nav-links">
<a href="#">Get Started</a>
<a href="#">Articles</a>
<a href="#">Community</a>
<a href="/developers.html" target="_blank">Developers</a>
</div>
</nav>
<!-- ==========meet the devs================ -->
<div class="git-i">
<div class="git-contributions">
<div class="months">
<p>Jan</p>
<p>Feb</p>
<p>Mar</p>
<p>Apr</p>
<p>May</p>
<p>Jun</p>
<p>Jul</p>
<p>Aug</p>
<p>Sep</p>
<p>Oct</p>
<p>Nov</p>
<p>Dec</p>
</div>
<div class="contribute-calendar">
<div class="weeks">
<p>Mon</p>
<p>Wed</p>
<p>Fri</p>
</div>
<div>
<div id="led-container"></div>
<div class="bottom-scale">
<p>Less</p>
<div class="color-box legend-1"></div>
<div class="color-box legend-2"></div>
<div class="color-box legend-3"></div>
<div class="color-box legend-4"></div>
<div class="color-box legend-5"></div>
<p>More</p>
</div>
</div>
</div>
</div>
</div>
<!-- =========Meet the devs end============= -->
<div class="container">
<div class="box" data-color="clr1">
<div class="imgBox">
<img src="https://avatars.githubusercontent.com/u/148610067?v=4" alt="Headless Horseman">
</div> <div class="glass">
<h3>Eshan Roy<br />
<span>Developer</span></h3>
<ul>
<a href="https://wowpedia.fandom.com/wiki/Headless_Horseman" target="_blank"> <ion-icon name="globe-outline"></ion-icon> </a>
</ul>
</div>
</div>
<div class="box" data-color="clr2">
<div class="imgBox">
<img src="https://avatars.githubusercontent.com/u/112468319?v=4" alt="The Mummy">
</div>
<div class="glass">
<h3>Alok Shah<br />
<span>Web-Dev</span>
</h3>
<ul>
<a href="https://en.wikipedia.org/wiki/Mummy_(undead)" target="_blank"> <ion-icon name="globe-outline"></ion-icon> </a>
</ul>
</div>
</div>
<div class="box" data-color="clr3">
<div class="imgBox">
<img src="https://avatars.githubusercontent.com/u/157954129?v=4" alt="Werewolf">
</div>
<div class="glass">
<h3>Iconized<br />
<span>Developer</span>
</h3>
<ul>
<a href="https://en.wikipedia.org/wiki/Werewolf" target="_blank"> <ion-icon name="globe-outline"></ion-icon> </a>
</ul>
</div>
</div>
<div class="box" data-color="clr4">
<div class="imgBox">
<img src="./assets/241130_04h46m22s_screenshot.png" alt="Werewolf">
</div>
<div class="glass">
<h3>Utkarsh Gaur<br />
<span>Developer</span>
</h3>
<ul>
<a href="" target="_blank"> <ion-icon name="globe-outline"></ion-icon> </a>
</ul>
</div>
</div>
</div>
</section>

View File

@@ -1,346 +0,0 @@
const container = document.getElementById("led-container");
const ROWS = 7;
const COLS = 50;
const ledMatrix = [];
// Create LED matrix //
for (let i = 0; i < ROWS; i++) {
const row = document.createElement("div");
row.className = "led-row";
ledMatrix[i] = [];
for (let j = 0; j < COLS; j++) {
const led = document.createElement("div");
led.className = "led";
row.appendChild(led);
ledMatrix[i][j] = led;
}
container.appendChild(row);
}
// LED
const font = {
A: [
[0, 1, 1, 1, 0],
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1],
[1, 1, 1, 1, 1],
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1]
],
B: [
[1, 1, 1, 1, 0],
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1],
[1, 1, 1, 1, 0],
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1],
[1, 1, 1, 1, 0]
],
C: [
[0, 1, 1, 1, 1],
[1, 0, 0, 0, 0],
[1, 0, 0, 0, 0],
[1, 0, 0, 0, 0],
[1, 0, 0, 0, 0],
[1, 0, 0, 0, 0],
[0, 1, 1, 1, 1]
],
D: [
[1, 1, 1, 1, 0],
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1],
[1, 1, 1, 1, 0]
],
E: [
[1, 1, 1, 1, 1],
[1, 0, 0, 0, 0],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, 0, 1],
[0, 1, 0, 1, 0],
[0, 0, 1, 0, 0]
],
W: [
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1],
[1, 0, 1, 0, 1],
[1, 0, 1, 0, 1],
[1, 1, 0, 1, 1],
[1, 0, 0, 0, 1]
],
X: [
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1],
[0, 1, 0, 1, 0],
[0, 0, 1, 0, 0],
[0, 1, 0, 1, 0],
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1]
],
Y: [
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1],
[0, 1, 0, 1, 0],
[0, 0, 1, 0, 0],
[0, 0, 1, 0, 0],
[0, 0, 1, 0, 0],
[0, 0, 1, 0, 0]
],
Z: [
[1, 1, 1, 1, 1],
[0, 0, 0, 0, 1],
[0, 0, 0, 1, 0],
[0, 0, 1, 0, 0],
[0, 1, 0, 0, 0],
[1, 0, 0, 0, 0],
[1, 1, 1, 1, 1]
],
"-": [
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0],
[1, 1, 1, 1, 1],
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0]
],
" ": [
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0]
],
0: [
[1, 1, 1, 1, 1],
[1, 0, 0, 1, 1],
[1, 0, 0, 1, 1],
[1, 0, 1, 1, 1],
[1, 1, 1, 0, 1],
[1, 1, 0, 0, 1],
[1, 1, 1, 1, 1]
]
};
function getTextMatrix(text) {
let matrix = Array(7)
.fill()
.map(() => []);
for (let char of text.toUpperCase()) {
if (font[char]) {
for (let i = 0; i < 7; i++) {
matrix[i] = matrix[i].concat(font[char][i]);
matrix[i].push(0);
}
}
}
return matrix;
}
const classNames = ["on-1", "on-2", "on-3", "on-4"];
function displayScrollingText(text) {
const textMatrix = getTextMatrix(text + " "); // Add some space at the end
let startCol = -COLS; // Start off-screen to the left
let lastUpdate = performance.now();
const delay = 100; // Adjust this value to control speed (higher = slower, in milliseconds)
function updateDisplay() {
const now = performance.now();
if (now - lastUpdate >= delay) {
lastUpdate = now;
for (let i = 0; i < ROWS; i++) {
for (let j = 0; j < COLS; j++) {
const textCol = (startCol + j) % textMatrix[0].length;
if (textCol >= 0) {
const isOn = textMatrix[i][textCol] === 1;
const randomClass =
classNames[Math.floor(Math.random() * classNames.length)];
// Remove all possible 'on' classes
ledMatrix[i][j].classList.remove("on-1", "on-2", "on-3", "on-4");
if (isOn) {
ledMatrix[i][j].classList.add(randomClass);
}
} else {
// Remove all possible 'on' classes if off-screen
ledMatrix[i][j].classList.remove("on-1", "on-2", "on-3", "on-4");
}
}
}
startCol++;
if (startCol > textMatrix[0].length) {
startCol = -COLS;
}
}
requestAnimationFrame(updateDisplay);
}
updateDisplay();
}
// Text Display - TODO: Numbers
displayScrollingText("Meet The Developers");

View File

105
dist/index.html vendored Normal file
View File

@@ -0,0 +1,105 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Title of the Website: This appears in the browser tab and search results -->
<title>SNIGDHA OS - Arch-based Linux Distribution for Penetration Testing and Ethical Hacking</title>
<!-- Meta Description: A brief summary of your website's content for search engines and social media. -->
<meta
name="description"
content="SNIGDHA OS is a fast, secure, and elegant GNU/Linux desktop distribution designed for modern users. Perfect for developers, creators, and enthusiasts, especially for penetration testing and ethical hacking."
/>
<!-- Open Graph / Facebook Tags: These tags improve how your website looks when shared on social platforms like Facebook. -->
<meta property="og:type" content="website" /> <!-- Specifies that the content is a website -->
<meta property="og:title" content="SNIGDHA OS - Arch-based Linux Distribution for Penetration Testing and Ethical Hacking" /> <!-- The title shown when shared -->
<meta
property="og:description"
content="SNIGDHA OS is a fast, secure, and elegant GNU/Linux desktop distribution designed for modern users. Perfect for developers, creators, and enthusiasts, especially for penetration testing and ethical hacking."
/> <!-- A description of the website shared on social media -->
<meta property="og:url" content="https://snigdhaos.org/" /> <!-- URL of the website -->
<meta property="og:image" content="https://snigdhaos.org/og-image.png" /> <!-- Image preview shown when shared on social platforms -->
<meta property="og:site_name" content="SNIGDHA OS" /> <!-- The name of your site -->
<!-- Twitter Card Tags: These tags are similar to Open Graph but specifically for Twitter. -->
<meta name="twitter:card" content="summary_large_image" /> <!-- Card type for Twitter (display large image) -->
<meta name="twitter:title" content="SNIGDHA OS - Arch-based Linux Distribution for Penetration Testing and Ethical Hacking" /> <!-- Title for Twitter -->
<meta
name="twitter:description"
content="SNIGDHA OS is a fast, secure, and elegant GNU/Linux desktop distribution designed for modern users. Perfect for developers, creators, and enthusiasts, especially for penetration testing and ethical hacking."
/> <!-- Description for Twitter sharing -->
<meta name="twitter:image" content="https://snigdhaos.org/twitter-image.png" /> <!-- Image shown in the Twitter preview -->
<meta name="twitter:creator" content="@snigdhaos" /> <!-- Twitter handle of the content creator -->
<!-- Author Meta Tag: Specifies the author of the website -->
<meta name="author" content="Snigdha OS Team" />
<!-- Theme Color: Defines the color of the browser's address bar or toolbar for mobile devices -->
<meta name="theme-color" content="#4f46e5" />
<!-- Keywords for SEO: These keywords help search engines understand your site's content -->
<meta
name="keywords"
content="Linux, Linux Distribution, Snigdha OS, Arch Linux, Penetration Testing, Ethical Hacking, Security, Open Source, Operating System, Desktop Environment, Linux for Developers, Cybersecurity"
/>
<!-- Robots Meta Tag: This tells search engines what to do with the page (index or noindex, follow or nofollow links) -->
<meta name="robots" content="index, follow" />
<!-- Canonical URL: Specifies the preferred version of the page to prevent duplicate content issues -->
<link rel="canonical" href="https://snigdhaos.org/" />
<!-- Favicon: A small icon displayed in the browser tab -->
<link rel="icon" href="https://snigdhaos.org/favicon.ico" type="image/x-icon" />
<!-- Apple Touch Icon: Custom icon for iOS devices when users add your site to their home screen -->
<link rel="apple-touch-icon" href="https://snigdhaos.org/apple-touch-icon.png">
<!-- Apple Startup Image: Custom startup image for iOS when the site is launched from home screen -->
<link rel="apple-touch-startup-image" href="https://snigdhaos.org/apple-startup-image.png">
<!-- Structured Data (JSON-LD): This defines the organization schema in a machine-readable format, helping search engines understand your website better. -->
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization",
"name": "Snigdha OS",
"url": "https://snigdhaos.org/",
"logo": "https://snigdhaos.org/logo.png",
"contactPoint": {
"@type": "ContactPoint",
"contactType": "Customer Support",
"areaServed": "Worldwide",
"availableLanguage": "English"
},
"sameAs": [
"https://www.facebook.com/Snigdha-OS",
"https://twitter.com/SnigdhaOS",
"https://github.com/Snigdha-OS"
]
}
</script>
<!-- Google Analytics Script: This allows you to track and analyze traffic to your website -->
<script async src="https://www.googletagmanager.com/gtag/js?id=GTM-5HXGM54C"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'GTM-5HXGM54C');
</script>
<script type="module" crossorigin src="/assets/index-CdpgaqZD.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CSblWKdC.css">
</head>
<body>
<!-- Main content of the website will be rendered here by React -->
<div id="root"></div>
<!-- Entry point for the React app (main.tsx) -->
</body>
</html>

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

28
eslint.config.js Normal file
View File

@@ -0,0 +1,28 @@
import js from '@eslint/js';
import globals from 'globals';
import reactHooks from 'eslint-plugin-react-hooks';
import reactRefresh from 'eslint-plugin-react-refresh';
import tseslint from 'typescript-eslint';
export default tseslint.config(
{ ignores: ['dist'] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}
);

View File

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg fill="#000000" width="800px" height="800px" viewBox="0 0 24 24" id="processor" data-name="Flat Color" xmlns="http://www.w3.org/2000/svg" class="icon flat-color"><path id="secondary" d="M3,13a1,1,0,0,1,0-2H6a1,1,0,0,1,0,2Zm3,2H4a1,1,0,0,0,0,2H6a1,1,0,0,0,0-2Zm2,2a1,1,0,0,0-1,1v2a1,1,0,0,0,2,0V18A1,1,0,0,0,8,17ZM4,9H6A1,1,0,0,0,6,7H4A1,1,0,0,0,4,9ZM16,7a1,1,0,0,0,1-1V4a1,1,0,0,0-2,0V6A1,1,0,0,0,16,7Zm2,2h2a1,1,0,0,0,0-2H18a1,1,0,0,0,0,2Zm2,6H18a1,1,0,0,0,0,2h2a1,1,0,0,0,0-2Zm1-4H18a1,1,0,0,0,0,2h3a1,1,0,0,0,0-2Zm-5,6a1,1,0,0,0-1,1v2a1,1,0,0,0,2,0V18A1,1,0,0,0,16,17ZM12,2a1,1,0,0,0-1,1V6a1,1,0,0,0,2,0V3A1,1,0,0,0,12,2ZM8,3A1,1,0,0,0,7,4V6A1,1,0,0,0,9,6V4A1,1,0,0,0,8,3Zm4,14a1,1,0,0,0-1,1v3a1,1,0,0,0,2,0V18A1,1,0,0,0,12,17Z" style="fill: rgb(44, 169, 188);"></path><rect id="primary" x="5" y="5" width="14" height="14" rx="2" style="fill: rgb(0, 0, 0);"></rect><rect id="secondary-2" data-name="secondary" x="9" y="9" width="6" height="6" rx="1" style="fill: rgb(44, 169, 188);"></rect></svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -1,16 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
width="800px" height="800px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve">
<g>
<path fill-rule="evenodd" clip-rule="evenodd" fill="#394240" d="M55.938,32.703C55.945,32.461,56,32.234,56,32
C56,18.734,45.258,8,32,8S8,18.734,8,32c0,0.234,0.055,0.461,0.062,0.703C3.379,34.344,0,38.75,0,44c0,6.617,5.371,12,12,12l0,0h40
l0,0c6.625,0,12-5.383,12-12C64,38.75,60.617,34.344,55.938,32.703z M52,48L52,48H12l0,0c-2.211,0-4-1.797-4-4c0-2.219,1.789-4,4-4
h4c0-4,0-5.078,0-8c0-8.836,7.16-16,16-16s16,7.164,16,16c0,2.922,0,4,0,8h4c2.211,0,4,1.781,4,4C56,46.203,54.211,48,52,48z"/>
<path fill-rule="evenodd" clip-rule="evenodd" fill="#45AAB8" d="M52,47.992L52,47.992H12l0,0c-2.211,0-4-1.797-4-4
c0-2.219,1.789-4,4-4h4c0-4,0-5.078,0-8c0-8.836,7.16-16,16-16s16,7.164,16,16c0,2.922,0,4,0,8h4c2.211,0,4,1.781,4,4
C56,46.195,54.211,47.992,52,47.992z"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="none"><path fill="#2396ED" d="M12.342 4.536l.15-.227.262.159.116.083c.28.216.869.768.996 1.684.223-.04.448-.06.673-.06.534 0 .893.124 1.097.227l.105.057.068.045.191.156-.066.2a2.044 2.044 0 01-.47.73c-.29.299-.8.652-1.609.698l-.178.005h-.148c-.37.977-.867 2.078-1.702 3.066a7.081 7.081 0 01-1.74 1.488 7.941 7.941 0 01-2.549.968c-.644.125-1.298.187-1.953.185-1.45 0-2.73-.288-3.517-.792-.703-.449-1.243-1.182-1.606-2.177a8.25 8.25 0 01-.461-2.83.516.516 0 01.432-.516l.068-.005h10.54l.092-.007.149-.016c.256-.034.646-.11.92-.27-.328-.543-.421-1.178-.268-1.854a3.3 3.3 0 01.3-.81l.108-.187zM2.89 5.784l.04.007a.127.127 0 01.077.082l.006.04v1.315l-.006.041a.127.127 0 01-.078.082l-.039.006H1.478a.124.124 0 01-.117-.088l-.007-.04V5.912l.007-.04a.127.127 0 01.078-.083l.039-.006H2.89zm1.947 0l.039.007a.127.127 0 01.078.082l.006.04v1.315l-.007.041a.127.127 0 01-.078.082l-.039.006H3.424a.125.125 0 01-.117-.088L3.3 7.23V5.913a.13.13 0 01.085-.123l.039-.007h1.413zm1.976 0l.039.007a.127.127 0 01.077.082l.007.04v1.315l-.007.041a.127.127 0 01-.078.082l-.039.006H5.4a.124.124 0 01-.117-.088l-.006-.04V5.912l.006-.04a.127.127 0 01.078-.083l.039-.006h1.413zm1.952 0l.039.007a.127.127 0 01.078.082l.007.04v1.315a.13.13 0 01-.085.123l-.04.006H7.353a.124.124 0 01-.117-.088l-.006-.04V5.912l.006-.04a.127.127 0 01.078-.083l.04-.006h1.412zm1.97 0l.039.007a.127.127 0 01.078.082l.006.04v1.315a.13.13 0 01-.085.123l-.039.006H9.322a.124.124 0 01-.117-.088l-.006-.04V5.912l.006-.04a.127.127 0 01.078-.083l.04-.006h1.411zM4.835 3.892l.04.007a.127.127 0 01.077.081l.007.041v1.315a.13.13 0 01-.085.123l-.039.007H3.424a.125.125 0 01-.117-.09l-.007-.04V4.021a.13.13 0 01.085-.122l.039-.007h1.412zm1.976 0l.04.007a.127.127 0 01.077.081l.007.041v1.315a.13.13 0 01-.085.123l-.039.007H5.4a.125.125 0 01-.117-.09l-.006-.04V4.021l.006-.04a.127.127 0 01.078-.082l.039-.007h1.412zm1.953 0c.054 0 .1.037.117.088l.007.041v1.315a.13.13 0 01-.085.123l-.04.007H7.353a.125.125 0 01-.117-.09l-.006-.04V4.021l.006-.04a.127.127 0 01.078-.082l.04-.007h1.412zm0-1.892c.054 0 .1.037.117.088l.007.04v1.316a.13.13 0 01-.085.123l-.04.006H7.353a.124.124 0 01-.117-.088l-.006-.04V2.128l.006-.04a.127.127 0 01.078-.082L7.353 2h1.412z"/></svg>

Before

Width:  |  Height:  |  Size: 2.4 KiB

View File

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 14 14" role="img" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"><path fill="#4caf50" d="M11.90909086 3.18181822H2.09090914c-.6 0-1.09090908.49090909-1.09090908 1.09090908v4.36363632h11.99999988V4.2727273c0-.6-.49090909-1.09090908-1.09090908-1.09090908z"/><path fill="#37474f" d="M1.00000006 8.63636362V9.7272727c0 .6.49090909 1.09090908 1.09090908 1.09090908h4.63636359V9.45454543c0-.16363636.1090909-.27272727.27272727-.27272727.16363636 0 .27272727.1090909.27272727.27272727v1.36363635h4.63636359c.6 0 1.09090908-.49090909 1.09090908-1.09090908V8.63636362H1.00000006z"/><path fill="#ff9800" d="M2.36363641 9.18181816h.54545454v1.63636362h-.54545454zm1.09090908 0h.54545454v1.63636362h-.54545454zm1.09090908 0h.54545454v1.63636362h-.54545454zm1.09090908 0h.54545454v1.63636362h-.54545454zm2.18181816 0h.54545454v1.63636362h-.54545454zm1.09090908 0h.54545454v1.63636362h-.54545454zm1.09090908 0h.54545454v1.63636362h-.54545454zm1.09090908 0h.54545454v1.63636362h-.54545454z"/><path fill="#37474f" d="M5.90909092 4.81818184h2.18181816v2.7272727H5.90909092zm3.27272724 0h2.18181816v2.7272727H9.18181816zm-6.54545448 0h2.18181816v2.7272727H2.63636368z"/></svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg fill="#000000" width="800px" height="800px" viewBox="0 0 24 24" id="mobile-phone" data-name="Flat Line" xmlns="http://www.w3.org/2000/svg" class="icon flat-line"><path id="secondary" d="M17,3H14l-.5,2h-3L10,3H7A1,1,0,0,0,6,4V20a1,1,0,0,0,1,1H17a1,1,0,0,0,1-1V4A1,1,0,0,0,17,3Z" style="fill: rgb(44, 169, 188); stroke-width: 2;"></path><path id="primary" d="M13,17H11M14,3H10l.5,2h3Zm4,17V4a1,1,0,0,0-1-1H7A1,1,0,0,0,6,4V20a1,1,0,0,0,1,1H17A1,1,0,0,0,18,20Z" style="fill: none; stroke: rgb(0, 0, 0); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;"></path></svg>

Before

Width:  |  Height:  |  Size: 701 B

View File

@@ -1,58 +0,0 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg version="1.1" id="_x34_" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 512 512" xml:space="preserve">
<g>
<g>
<rect x="267.494" y="61.466" transform="matrix(0.7071 0.7071 -0.7071 0.7071 203.459 -232.61)" style="fill:#FFFFFF;" width="230.042" height="135.651"/>
<g>
<rect x="351.111" y="58.442" transform="matrix(0.7071 0.7071 -0.7071 0.7071 160.4209 -238.8464)" style="fill:#AEDDE7;" width="34.823" height="31.558"/>
<rect x="420.174" y="127.505" transform="matrix(0.7071 0.7071 -0.7071 0.7071 229.4834 -267.4529)" style="fill:#AEDDE7;" width="34.823" height="31.558"/>
</g>
<rect x="193.173" y="137.397" transform="matrix(0.7071 0.7071 -0.7071 0.7071 223.8628 -183.3509)" style="fill:#F9F3AD;" width="280.165" height="82.309"/>
<path style="fill:#EB6B6B;" d="M48.967,462.84L48.967,462.84c-63.098-63.098-63.098-166.348,0-229.446L218.533,63.828
l229.446,229.446L278.412,462.84C215.053,526.2,112.326,526.2,48.967,462.84z"/>
<path style="opacity:0.1;fill:#040000;" d="M447.978,293.274L275.614,465.638c-61.805,61.805-162.022,61.827-223.85,0
l-5.596-5.596C5.764,419.637-8.115,362.376,4.51,310.398c0.627,39.711,16.005,79.22,46.135,109.35l5.596,5.596
c61.827,61.827,162.045,61.805,223.85,0L430.07,275.366L447.978,293.274z"/>
<g>
<g>
<circle style="fill:#FFFFFF;" cx="151.435" cy="362.324" r="26.13"/>
</g>
<g>
<rect x="204.607" y="230.204" transform="matrix(0.7071 0.7071 -0.7071 0.7071 276.4423 -59.1681)" style="fill:#FFFFFF;" width="10.074" height="147.821"/>
</g>
<g>
<polygon style="fill:#FFFFFF;" points="242.129,232.074 296.163,217.596 281.684,271.63 "/>
</g>
<g>
<polygon style="fill:#FFFFFF;" points="168.813,339.229 164.634,275.976 192.377,248.234 198.5,254.357 173.533,279.323
177.454,338.658 "/>
</g>
<g>
<polygon style="fill:#FFFFFF;" points="192.506,327.52 193.077,318.879 252.411,322.8 277.378,297.833 283.501,303.956
255.758,331.699 "/>
</g>
<g>
<circle style="fill:#FFFFFF;" cx="195.438" cy="251.295" r="18.701"/>
</g>
<g>
<rect x="263.367" y="283.822" transform="matrix(0.7071 0.7071 -0.7071 0.7071 294.2728 -109.9094)" style="fill:#FFFFFF;" width="32.885" height="32.885"/>
</g>
</g>
</g>
<path style="opacity:0.1;fill:#040000;" d="M432.309,277.604l29.101-29.1l-17.721-17.721l68.118-68.118l-81.332-81.332
L48.966,462.84l2.798,2.798c51.689,51.689,130.196,60.116,190.672,25.387c0.558-0.321,1.129-0.612,1.684-0.94
c1.189-0.703,2.351-1.467,3.526-2.203c1.046-0.656,2.106-1.28,3.139-1.962c0.731-0.483,1.44-1.013,2.166-1.509
c3.625-2.482,7.189-5.09,10.643-7.907c0.547-0.446,1.073-0.932,1.615-1.387c3.566-2.989,7.052-6.125,10.405-9.478l172.364-172.364
L432.309,277.604z"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 3.0 KiB

View File

@@ -1 +0,0 @@
<svg height="2389" viewBox="8.397 23.347 1019.37100177 989.471" width="2500" xmlns="http://www.w3.org/2000/svg"><path d="m385.065 23.388a120.013 120.013 0 0 0 -120.013 120.013v528.056a120.013 120.013 0 0 0 120.013 120.013h522.65a120.013 120.013 0 0 0 120.053-120.013v-528.097a120.013 120.013 0 0 0 -120.012-120.013h-522.65zm509.501 561.275c0 38.298-31.047 69.345-69.345 69.345h-357.58a69.345 69.345 0 0 1 -69.387-69.345v-354.509c0-38.256 31.048-69.304 69.345-69.304h357.581c38.298 0 69.345 31.048 69.345 69.304v354.509z" fill="#068bef"/><path d="m653.722 247.398h-525.312a120.013 120.013 0 0 0 -120.013 120.013v525.394a120.013 120.013 0 0 0 120.013 120.013h525.394a120.013 120.013 0 0 0 120.012-120.013v-525.394a120.013 120.013 0 0 0 -120.012-120.013zm-14.5 559.924c0 38.297-31.048 69.386-69.346 69.386h-357.58a69.345 69.345 0 0 1 -69.346-69.386v-354.468c0-38.298 31.048-69.346 69.346-69.346h357.58c38.298 0 69.346 31.007 69.346 69.305z" fill="#ff8b02"/><path d="m633.242 654.008h143.892v137.422h-143.933z" fill="#068bef"/><path d="m398.254 383.508-133.202 76.882v-76.882z" fill="#057eaf"/><path d="m639.222 791.43 134.553 72.744v-72.744z" fill="#d77d06"/></svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -1,72 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg version="1.1" id="Icons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 32 32" xml:space="preserve" width="300" height="200">
<style type="text/css">
.st0{fill:#FFFFFF;}
.st1{fill:#3A559F;}
.st2{fill:#F4F4F4;}
.st3{fill:#FF0084;}
.st4{fill:#0063DB;}
.st5{fill:#00ACED;}
.st6{fill:#FFEC06;}
.st7{fill:#FF0000;}
.st8{fill:#25D366;}
.st9{fill:#0088FF;}
.st10{fill:#314358;}
.st11{fill:#EE6996;}
.st12{fill:#01AEF3;}
.st13{fill:#FFFEFF;}
.st14{fill:#F06A35;}
.st15{fill:#00ADEF;}
.st16{fill:#1769FF;}
.st17{fill:#1AB7EA;}
.st18{fill:#6001D1;}
.st19{fill:#E41214;}
.st20{fill:#05CE78;}
.st21{fill:#7B519C;}
.st22{fill:#FF4500;}
.st23{fill:#00F076;}
.st24{fill:#FFC900;}
.st25{fill:#00D6FF;}
.st26{fill:#FF3A44;}
.st27{fill:#FF6A36;}
.st28{fill:#0061FE;}
.st29{fill:#F7981C;}
.st30{fill:#EE1B22;}
.st31{fill:#EF3561;}
.st32{fill:none;stroke:#FFFFFF;stroke-width:2;stroke-miterlimit:10;}
.st33{fill:#0097D3;}
.st34{fill:#01308A;}
.st35{fill:#019CDE;}
.st36{fill:#FFD049;}
.st37{fill:#16A05D;}
.st38{fill:#4486F4;}
.st39{fill:none;}
.st40{fill:#34A853;}
.st41{fill:#4285F4;}
.st42{fill:#FBBC05;}
.st43{fill:#EA4335;}
</style>
<g>
<g>
<g>
<path class="st15" d="M30,15H17c-0.6,0-1-0.4-1-1V3.3c0-0.5,0.4-0.9,0.8-1l13-2.3c0.3,0,0.6,0,0.8,0.2C30.9,0.4,31,0.7,31,1v13
C31,14.6,30.6,15,30,15z"/>
</g>
<g>
<path class="st15" d="M13,15H1c-0.6,0-1-0.4-1-1V6c0-0.5,0.4-0.9,0.8-1l12-2c0.3,0,0.6,0,0.8,0.2C13.9,3.4,14,3.7,14,4v10
C14,14.6,13.6,15,13,15z"/>
</g>
<g>
<path class="st15" d="M30,32c-0.1,0-0.1,0-0.2,0l-13-2.3c-0.5-0.1-0.8-0.5-0.8-1V18c0-0.6,0.4-1,1-1h13c0.6,0,1,0.4,1,1v13
c0,0.3-0.1,0.6-0.4,0.8C30.5,31.9,30.2,32,30,32z"/>
</g>
<g>
<path class="st15" d="M13,29c-0.1,0-0.1,0-0.2,0l-12-2C0.4,26.9,0,26.5,0,26v-8c0-0.6,0.4-1,1-1h12c0.6,0,1,0.4,1,1v10
c0,0.3-0.1,0.6-0.4,0.8C13.5,28.9,13.2,29,13,29z"/>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.1 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 5.6 KiB

View File

@@ -93,13 +93,12 @@
gtag('config', 'GTM-5HXGM54C');
</script>
<script type="module" crossorigin src="/assets/index-CdpgaqZD.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CSblWKdC.css">
</head>
<body>
<!-- Main content of the website will be rendered here by React -->
<div id="root"></div>
<!-- Entry point for the React app (main.tsx) -->
<script type="module" src="/src/main.tsx"></script>
</body>
</html>

17
node_modules/.bin/autoprefixer generated vendored Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -z "$NODE_PATH" ]; then
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/autoprefixer@10.4.20_postcss@8.4.49/node_modules/autoprefixer/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/autoprefixer@10.4.20_postcss@8.4.49/node_modules/autoprefixer/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/autoprefixer@10.4.20_postcss@8.4.49/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
else
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/autoprefixer@10.4.20_postcss@8.4.49/node_modules/autoprefixer/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/autoprefixer@10.4.20_postcss@8.4.49/node_modules/autoprefixer/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/autoprefixer@10.4.20_postcss@8.4.49/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
fi
if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../autoprefixer/bin/autoprefixer" "$@"
else
exec node "$basedir/../autoprefixer/bin/autoprefixer" "$@"
fi

17
node_modules/.bin/eslint generated vendored Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -z "$NODE_PATH" ]; then
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules/eslint/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules/eslint/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
else
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules/eslint/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules/eslint/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/eslint@9.17.0_jiti@1.21.7/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
fi
if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../eslint/bin/eslint.js" "$@"
else
exec node "$basedir/../eslint/bin/eslint.js" "$@"
fi

17
node_modules/.bin/prettier generated vendored Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -z "$NODE_PATH" ]; then
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/prettier@3.4.2/node_modules/prettier/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/prettier@3.4.2/node_modules/prettier/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/prettier@3.4.2/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
else
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/prettier@3.4.2/node_modules/prettier/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/prettier@3.4.2/node_modules/prettier/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/prettier@3.4.2/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
fi
if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../prettier/bin/prettier.cjs" "$@"
else
exec node "$basedir/../prettier/bin/prettier.cjs" "$@"
fi

17
node_modules/.bin/tailwind generated vendored Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -z "$NODE_PATH" ]; then
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/tailwindcss@3.4.17/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
else
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/tailwindcss@3.4.17/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
fi
if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../tailwindcss/lib/cli.js" "$@"
else
exec node "$basedir/../tailwindcss/lib/cli.js" "$@"
fi

17
node_modules/.bin/tailwindcss generated vendored Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -z "$NODE_PATH" ]; then
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/tailwindcss@3.4.17/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
else
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/tailwindcss@3.4.17/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
fi
if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../tailwindcss/lib/cli.js" "$@"
else
exec node "$basedir/../tailwindcss/lib/cli.js" "$@"
fi

17
node_modules/.bin/tsc generated vendored Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -z "$NODE_PATH" ]; then
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
else
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
fi
if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
else
exec node "$basedir/../typescript/bin/tsc" "$@"
fi

17
node_modules/.bin/tsserver generated vendored Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -z "$NODE_PATH" ]; then
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
else
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/typescript@5.7.2/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
fi
if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
else
exec node "$basedir/../typescript/bin/tsserver" "$@"
fi

17
node_modules/.bin/vite generated vendored Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -z "$NODE_PATH" ]; then
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/vite@5.4.11_@types+node@22.10.2/node_modules/vite/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/vite@5.4.11_@types+node@22.10.2/node_modules/vite/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/vite@5.4.11_@types+node@22.10.2/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules"
else
export NODE_PATH="/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/vite@5.4.11_@types+node@22.10.2/node_modules/vite/bin/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/vite@5.4.11_@types+node@22.10.2/node_modules/vite/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/vite@5.4.11_@types+node@22.10.2/node_modules:/home/whoami/Desktop/snigdhaos-web-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
fi
if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
else
exec node "$basedir/../vite/bin/vite.js" "$@"
fi

714
node_modules/.modules.yaml generated vendored Normal file
View File

@@ -0,0 +1,714 @@
hoistPattern:
- '*'
hoistedDependencies:
'@alloc/quick-lru@5.2.0':
'@alloc/quick-lru': private
'@ampproject/remapping@2.3.0':
'@ampproject/remapping': private
'@babel/code-frame@7.26.2':
'@babel/code-frame': private
'@babel/compat-data@7.26.3':
'@babel/compat-data': private
'@babel/core@7.26.0':
'@babel/core': private
'@babel/generator@7.26.3':
'@babel/generator': private
'@babel/helper-compilation-targets@7.25.9':
'@babel/helper-compilation-targets': private
'@babel/helper-module-imports@7.25.9':
'@babel/helper-module-imports': private
'@babel/helper-module-transforms@7.26.0(@babel/core@7.26.0)':
'@babel/helper-module-transforms': private
'@babel/helper-plugin-utils@7.25.9':
'@babel/helper-plugin-utils': private
'@babel/helper-string-parser@7.25.9':
'@babel/helper-string-parser': private
'@babel/helper-validator-identifier@7.25.9':
'@babel/helper-validator-identifier': private
'@babel/helper-validator-option@7.25.9':
'@babel/helper-validator-option': private
'@babel/helpers@7.26.0':
'@babel/helpers': private
'@babel/parser@7.26.3':
'@babel/parser': private
'@babel/plugin-transform-react-jsx-self@7.25.9(@babel/core@7.26.0)':
'@babel/plugin-transform-react-jsx-self': private
'@babel/plugin-transform-react-jsx-source@7.25.9(@babel/core@7.26.0)':
'@babel/plugin-transform-react-jsx-source': private
'@babel/template@7.25.9':
'@babel/template': private
'@babel/traverse@7.26.4':
'@babel/traverse': private
'@babel/types@7.26.3':
'@babel/types': private
'@esbuild/aix-ppc64@0.21.5':
'@esbuild/aix-ppc64': private
'@esbuild/android-arm64@0.21.5':
'@esbuild/android-arm64': private
'@esbuild/android-arm@0.21.5':
'@esbuild/android-arm': private
'@esbuild/android-x64@0.21.5':
'@esbuild/android-x64': private
'@esbuild/darwin-arm64@0.21.5':
'@esbuild/darwin-arm64': private
'@esbuild/darwin-x64@0.21.5':
'@esbuild/darwin-x64': private
'@esbuild/freebsd-arm64@0.21.5':
'@esbuild/freebsd-arm64': private
'@esbuild/freebsd-x64@0.21.5':
'@esbuild/freebsd-x64': private
'@esbuild/linux-arm64@0.21.5':
'@esbuild/linux-arm64': private
'@esbuild/linux-arm@0.21.5':
'@esbuild/linux-arm': private
'@esbuild/linux-ia32@0.21.5':
'@esbuild/linux-ia32': private
'@esbuild/linux-loong64@0.21.5':
'@esbuild/linux-loong64': private
'@esbuild/linux-mips64el@0.21.5':
'@esbuild/linux-mips64el': private
'@esbuild/linux-ppc64@0.21.5':
'@esbuild/linux-ppc64': private
'@esbuild/linux-riscv64@0.21.5':
'@esbuild/linux-riscv64': private
'@esbuild/linux-s390x@0.21.5':
'@esbuild/linux-s390x': private
'@esbuild/linux-x64@0.21.5':
'@esbuild/linux-x64': private
'@esbuild/netbsd-x64@0.21.5':
'@esbuild/netbsd-x64': private
'@esbuild/openbsd-x64@0.21.5':
'@esbuild/openbsd-x64': private
'@esbuild/sunos-x64@0.21.5':
'@esbuild/sunos-x64': private
'@esbuild/win32-arm64@0.21.5':
'@esbuild/win32-arm64': private
'@esbuild/win32-ia32@0.21.5':
'@esbuild/win32-ia32': private
'@esbuild/win32-x64@0.21.5':
'@esbuild/win32-x64': private
'@eslint-community/eslint-utils@4.4.1(eslint@9.17.0(jiti@1.21.7))':
'@eslint-community/eslint-utils': public
'@eslint-community/regexpp@4.12.1':
'@eslint-community/regexpp': public
'@eslint/config-array@0.19.1':
'@eslint/config-array': public
'@eslint/core@0.9.1':
'@eslint/core': public
'@eslint/eslintrc@3.2.0':
'@eslint/eslintrc': public
'@eslint/object-schema@2.1.5':
'@eslint/object-schema': public
'@eslint/plugin-kit@0.2.4':
'@eslint/plugin-kit': public
'@humanfs/core@0.19.1':
'@humanfs/core': private
'@humanfs/node@0.16.6':
'@humanfs/node': private
'@humanwhocodes/module-importer@1.0.1':
'@humanwhocodes/module-importer': private
'@humanwhocodes/retry@0.4.1':
'@humanwhocodes/retry': private
'@isaacs/cliui@8.0.2':
'@isaacs/cliui': private
'@jridgewell/gen-mapping@0.3.8':
'@jridgewell/gen-mapping': private
'@jridgewell/resolve-uri@3.1.2':
'@jridgewell/resolve-uri': private
'@jridgewell/set-array@1.2.1':
'@jridgewell/set-array': private
'@jridgewell/sourcemap-codec@1.5.0':
'@jridgewell/sourcemap-codec': private
'@jridgewell/trace-mapping@0.3.25':
'@jridgewell/trace-mapping': private
'@nodelib/fs.scandir@2.1.5':
'@nodelib/fs.scandir': private
'@nodelib/fs.stat@2.0.5':
'@nodelib/fs.stat': private
'@nodelib/fs.walk@1.2.8':
'@nodelib/fs.walk': private
'@octokit/app@14.1.0':
'@octokit/app': private
'@octokit/auth-app@6.1.3':
'@octokit/auth-app': private
'@octokit/auth-oauth-app@7.1.0':
'@octokit/auth-oauth-app': private
'@octokit/auth-oauth-device@6.1.0':
'@octokit/auth-oauth-device': private
'@octokit/auth-oauth-user@4.1.0':
'@octokit/auth-oauth-user': private
'@octokit/auth-token@4.0.0':
'@octokit/auth-token': private
'@octokit/auth-unauthenticated@5.0.1':
'@octokit/auth-unauthenticated': private
'@octokit/core@5.2.0':
'@octokit/core': private
'@octokit/endpoint@9.0.5':
'@octokit/endpoint': private
'@octokit/graphql@7.1.0':
'@octokit/graphql': private
'@octokit/oauth-app@6.1.0':
'@octokit/oauth-app': private
'@octokit/oauth-authorization-url@6.0.2':
'@octokit/oauth-authorization-url': private
'@octokit/oauth-methods@4.1.0':
'@octokit/oauth-methods': private
'@octokit/openapi-types@22.2.0':
'@octokit/openapi-types': private
'@octokit/plugin-paginate-graphql@4.0.1(@octokit/core@5.2.0)':
'@octokit/plugin-paginate-graphql': private
'@octokit/plugin-paginate-rest@11.3.1(@octokit/core@5.2.0)':
'@octokit/plugin-paginate-rest': private
'@octokit/plugin-rest-endpoint-methods@13.2.2(@octokit/core@5.2.0)':
'@octokit/plugin-rest-endpoint-methods': private
'@octokit/plugin-retry@6.1.0(@octokit/core@5.2.0)':
'@octokit/plugin-retry': private
'@octokit/plugin-throttling@8.2.0(@octokit/core@5.2.0)':
'@octokit/plugin-throttling': private
'@octokit/request-error@5.1.0':
'@octokit/request-error': private
'@octokit/request@8.4.0':
'@octokit/request': private
'@octokit/types@13.6.2':
'@octokit/types': private
'@octokit/webhooks-methods@4.1.0':
'@octokit/webhooks-methods': private
'@octokit/webhooks-types@7.6.1':
'@octokit/webhooks-types': private
'@octokit/webhooks@12.3.1':
'@octokit/webhooks': private
'@pkgjs/parseargs@0.11.0':
'@pkgjs/parseargs': private
'@remix-run/router@1.21.0':
'@remix-run/router': private
'@rollup/rollup-android-arm-eabi@4.28.1':
'@rollup/rollup-android-arm-eabi': private
'@rollup/rollup-android-arm64@4.28.1':
'@rollup/rollup-android-arm64': private
'@rollup/rollup-darwin-arm64@4.28.1':
'@rollup/rollup-darwin-arm64': private
'@rollup/rollup-darwin-x64@4.28.1':
'@rollup/rollup-darwin-x64': private
'@rollup/rollup-freebsd-arm64@4.28.1':
'@rollup/rollup-freebsd-arm64': private
'@rollup/rollup-freebsd-x64@4.28.1':
'@rollup/rollup-freebsd-x64': private
'@rollup/rollup-linux-arm-gnueabihf@4.28.1':
'@rollup/rollup-linux-arm-gnueabihf': private
'@rollup/rollup-linux-arm-musleabihf@4.28.1':
'@rollup/rollup-linux-arm-musleabihf': private
'@rollup/rollup-linux-arm64-gnu@4.28.1':
'@rollup/rollup-linux-arm64-gnu': private
'@rollup/rollup-linux-arm64-musl@4.28.1':
'@rollup/rollup-linux-arm64-musl': private
'@rollup/rollup-linux-loongarch64-gnu@4.28.1':
'@rollup/rollup-linux-loongarch64-gnu': private
'@rollup/rollup-linux-powerpc64le-gnu@4.28.1':
'@rollup/rollup-linux-powerpc64le-gnu': private
'@rollup/rollup-linux-riscv64-gnu@4.28.1':
'@rollup/rollup-linux-riscv64-gnu': private
'@rollup/rollup-linux-s390x-gnu@4.28.1':
'@rollup/rollup-linux-s390x-gnu': private
'@rollup/rollup-linux-x64-gnu@4.28.1':
'@rollup/rollup-linux-x64-gnu': private
'@rollup/rollup-linux-x64-musl@4.28.1':
'@rollup/rollup-linux-x64-musl': private
'@rollup/rollup-win32-arm64-msvc@4.28.1':
'@rollup/rollup-win32-arm64-msvc': private
'@rollup/rollup-win32-ia32-msvc@4.28.1':
'@rollup/rollup-win32-ia32-msvc': private
'@rollup/rollup-win32-x64-msvc@4.28.1':
'@rollup/rollup-win32-x64-msvc': private
'@types/aws-lambda@8.10.146':
'@types/aws-lambda': private
'@types/babel__core@7.20.5':
'@types/babel__core': private
'@types/babel__generator@7.6.8':
'@types/babel__generator': private
'@types/babel__template@7.4.4':
'@types/babel__template': private
'@types/babel__traverse@7.20.6':
'@types/babel__traverse': private
'@types/btoa-lite@1.0.2':
'@types/btoa-lite': private
'@types/estree@1.0.6':
'@types/estree': private
'@types/json-schema@7.0.15':
'@types/json-schema': private
'@types/jsonwebtoken@9.0.7':
'@types/jsonwebtoken': private
'@types/node@22.10.2':
'@types/node': private
'@types/prop-types@15.7.14':
'@types/prop-types': private
'@typescript-eslint/eslint-plugin@8.18.1(@typescript-eslint/parser@8.18.1(eslint@9.17.0(jiti@1.21.7))(typescript@5.7.2))(eslint@9.17.0(jiti@1.21.7))(typescript@5.7.2)':
'@typescript-eslint/eslint-plugin': public
'@typescript-eslint/parser@8.18.1(eslint@9.17.0(jiti@1.21.7))(typescript@5.7.2)':
'@typescript-eslint/parser': public
'@typescript-eslint/scope-manager@8.18.1':
'@typescript-eslint/scope-manager': public
'@typescript-eslint/type-utils@8.18.1(eslint@9.17.0(jiti@1.21.7))(typescript@5.7.2)':
'@typescript-eslint/type-utils': public
'@typescript-eslint/types@8.18.1':
'@typescript-eslint/types': public
'@typescript-eslint/typescript-estree@8.18.1(typescript@5.7.2)':
'@typescript-eslint/typescript-estree': public
'@typescript-eslint/utils@8.18.1(eslint@9.17.0(jiti@1.21.7))(typescript@5.7.2)':
'@typescript-eslint/utils': public
'@typescript-eslint/visitor-keys@8.18.1':
'@typescript-eslint/visitor-keys': public
acorn-jsx@5.3.2(acorn@8.14.0):
acorn-jsx: private
acorn@8.14.0:
acorn: private
aggregate-error@3.1.0:
aggregate-error: private
ajv@6.12.6:
ajv: private
ansi-regex@5.0.1:
ansi-regex: private
ansi-styles@4.3.0:
ansi-styles: private
any-promise@1.3.0:
any-promise: private
anymatch@3.1.3:
anymatch: private
arg@5.0.2:
arg: private
argparse@2.0.1:
argparse: private
asynckit@0.4.0:
asynckit: private
balanced-match@1.0.2:
balanced-match: private
before-after-hook@2.2.3:
before-after-hook: private
binary-extensions@2.3.0:
binary-extensions: private
bottleneck@2.19.5:
bottleneck: private
brace-expansion@1.1.11:
brace-expansion: private
braces@3.0.3:
braces: private
browserslist@4.24.3:
browserslist: private
btoa-lite@1.0.0:
btoa-lite: private
buffer-equal-constant-time@1.0.1:
buffer-equal-constant-time: private
callsites@3.1.0:
callsites: private
camelcase-css@2.0.1:
camelcase-css: private
caniuse-lite@1.0.30001690:
caniuse-lite: private
chalk@4.1.2:
chalk: private
chokidar@3.6.0:
chokidar: private
clean-stack@2.2.0:
clean-stack: private
color-convert@2.0.1:
color-convert: private
color-name@1.1.4:
color-name: private
combined-stream@1.0.8:
combined-stream: private
commander@4.1.1:
commander: private
concat-map@0.0.1:
concat-map: private
convert-source-map@2.0.0:
convert-source-map: private
cross-spawn@7.0.6:
cross-spawn: private
cssesc@3.0.0:
cssesc: private
csstype@3.1.3:
csstype: private
debug@4.4.0:
debug: private
deep-is@0.1.4:
deep-is: private
delayed-stream@1.0.0:
delayed-stream: private
deprecation@2.3.1:
deprecation: private
didyoumean@1.2.2:
didyoumean: private
dlv@1.1.3:
dlv: private
eastasianwidth@0.2.0:
eastasianwidth: private
ecdsa-sig-formatter@1.0.11:
ecdsa-sig-formatter: private
electron-to-chromium@1.5.74:
electron-to-chromium: private
emoji-regex@8.0.0:
emoji-regex: private
esbuild@0.21.5:
esbuild: private
escalade@3.2.0:
escalade: private
escape-string-regexp@4.0.0:
escape-string-regexp: private
eslint-scope@8.2.0:
eslint-scope: public
eslint-visitor-keys@4.2.0:
eslint-visitor-keys: public
espree@10.3.0:
espree: private
esquery@1.6.0:
esquery: private
esrecurse@4.3.0:
esrecurse: private
estraverse@5.3.0:
estraverse: private
esutils@2.0.3:
esutils: private
fast-deep-equal@3.1.3:
fast-deep-equal: private
fast-glob@3.3.2:
fast-glob: private
fast-json-stable-stringify@2.1.0:
fast-json-stable-stringify: private
fast-levenshtein@2.0.6:
fast-levenshtein: private
fastq@1.17.1:
fastq: private
file-entry-cache@8.0.0:
file-entry-cache: private
fill-range@7.1.1:
fill-range: private
find-up@5.0.0:
find-up: private
flat-cache@4.0.1:
flat-cache: private
flatted@3.3.2:
flatted: private
follow-redirects@1.15.9:
follow-redirects: private
foreground-child@3.3.0:
foreground-child: private
form-data@4.0.1:
form-data: private
fraction.js@4.3.7:
fraction.js: private
fsevents@2.3.3:
fsevents: private
function-bind@1.1.2:
function-bind: private
gensync@1.0.0-beta.2:
gensync: private
glob-parent@6.0.2:
glob-parent: private
glob@10.4.5:
glob: private
graphemer@1.4.0:
graphemer: private
has-flag@4.0.0:
has-flag: private
hasown@2.0.2:
hasown: private
ignore@5.3.2:
ignore: private
import-fresh@3.3.0:
import-fresh: private
imurmurhash@0.1.4:
imurmurhash: private
indent-string@4.0.0:
indent-string: private
is-binary-path@2.1.0:
is-binary-path: private
is-core-module@2.16.0:
is-core-module: private
is-extglob@2.1.1:
is-extglob: private
is-fullwidth-code-point@3.0.0:
is-fullwidth-code-point: private
is-glob@4.0.3:
is-glob: private
is-number@7.0.0:
is-number: private
isexe@2.0.0:
isexe: private
jackspeak@3.4.3:
jackspeak: private
jiti@1.21.7:
jiti: private
js-tokens@4.0.0:
js-tokens: private
js-yaml@4.1.0:
js-yaml: private
jsesc@3.1.0:
jsesc: private
json-buffer@3.0.1:
json-buffer: private
json-schema-traverse@0.4.1:
json-schema-traverse: private
json-stable-stringify-without-jsonify@1.0.1:
json-stable-stringify-without-jsonify: private
json5@2.2.3:
json5: private
jsonwebtoken@9.0.2:
jsonwebtoken: private
jwa@1.4.1:
jwa: private
jws@3.2.2:
jws: private
keyv@4.5.4:
keyv: private
levn@0.4.1:
levn: private
lilconfig@3.1.3:
lilconfig: private
lines-and-columns@1.2.4:
lines-and-columns: private
locate-path@6.0.0:
locate-path: private
lodash.includes@4.3.0:
lodash.includes: private
lodash.isboolean@3.0.3:
lodash.isboolean: private
lodash.isinteger@4.0.4:
lodash.isinteger: private
lodash.isnumber@3.0.3:
lodash.isnumber: private
lodash.isplainobject@4.0.6:
lodash.isplainobject: private
lodash.isstring@4.0.1:
lodash.isstring: private
lodash.merge@4.6.2:
lodash.merge: private
lodash.once@4.1.1:
lodash.once: private
loose-envify@1.4.0:
loose-envify: private
lru-cache@5.1.1:
lru-cache: private
merge2@1.4.1:
merge2: private
micromatch@4.0.8:
micromatch: private
mime-db@1.52.0:
mime-db: private
mime-types@2.1.35:
mime-types: private
minimatch@3.1.2:
minimatch: private
minipass@7.1.2:
minipass: private
ms@2.1.3:
ms: private
mz@2.7.0:
mz: private
nanoid@3.3.8:
nanoid: private
natural-compare@1.4.0:
natural-compare: private
node-releases@2.0.19:
node-releases: private
normalize-path@3.0.0:
normalize-path: private
normalize-range@0.1.2:
normalize-range: private
object-assign@4.1.1:
object-assign: private
object-hash@3.0.0:
object-hash: private
once@1.4.0:
once: private
optionator@0.9.4:
optionator: private
p-limit@3.1.0:
p-limit: private
p-locate@5.0.0:
p-locate: private
package-json-from-dist@1.0.1:
package-json-from-dist: private
parent-module@1.0.1:
parent-module: private
path-exists@4.0.0:
path-exists: private
path-key@3.1.1:
path-key: private
path-parse@1.0.7:
path-parse: private
path-scurry@1.11.1:
path-scurry: private
picocolors@1.1.1:
picocolors: private
picomatch@2.3.1:
picomatch: private
pify@2.3.0:
pify: private
pirates@4.0.6:
pirates: private
postcss-import@15.1.0(postcss@8.4.49):
postcss-import: private
postcss-js@4.0.1(postcss@8.4.49):
postcss-js: private
postcss-load-config@4.0.2(postcss@8.4.49):
postcss-load-config: private
postcss-nested@6.2.0(postcss@8.4.49):
postcss-nested: private
postcss-selector-parser@6.1.2:
postcss-selector-parser: private
postcss-value-parser@4.2.0:
postcss-value-parser: private
prelude-ls@1.2.1:
prelude-ls: private
proxy-from-env@1.1.0:
proxy-from-env: private
punycode@2.3.1:
punycode: private
queue-microtask@1.2.3:
queue-microtask: private
react-refresh@0.14.2:
react-refresh: private
react-router@6.28.0(react@18.3.1):
react-router: private
read-cache@1.0.0:
read-cache: private
readdirp@3.6.0:
readdirp: private
resolve-from@4.0.0:
resolve-from: private
resolve@1.22.9:
resolve: private
reusify@1.0.4:
reusify: private
rollup@4.28.1:
rollup: private
run-parallel@1.2.0:
run-parallel: private
safe-buffer@5.2.1:
safe-buffer: private
scheduler@0.23.2:
scheduler: private
semver@6.3.1:
semver: private
shebang-command@2.0.0:
shebang-command: private
shebang-regex@3.0.0:
shebang-regex: private
signal-exit@4.1.0:
signal-exit: private
source-map-js@1.2.1:
source-map-js: private
string-width@4.2.3:
string-width-cjs: private
string-width@5.1.2:
string-width: private
strip-ansi@6.0.1:
strip-ansi-cjs: private
strip-ansi@7.1.0:
strip-ansi: private
strip-json-comments@3.1.1:
strip-json-comments: private
sucrase@3.35.0:
sucrase: private
supports-color@7.2.0:
supports-color: private
supports-preserve-symlinks-flag@1.0.0:
supports-preserve-symlinks-flag: private
thenify-all@1.6.0:
thenify-all: private
thenify@3.3.1:
thenify: private
to-regex-range@5.0.1:
to-regex-range: private
ts-api-utils@1.4.3(typescript@5.7.2):
ts-api-utils: private
ts-interface-checker@0.1.13:
ts-interface-checker: private
type-check@0.4.0:
type-check: private
undici-types@6.20.0:
undici-types: private
universal-github-app-jwt@1.2.0:
universal-github-app-jwt: private
universal-user-agent@6.0.1:
universal-user-agent: private
update-browserslist-db@1.1.1(browserslist@4.24.3):
update-browserslist-db: private
uri-js@4.4.1:
uri-js: private
util-deprecate@1.0.2:
util-deprecate: private
which@2.0.2:
which: private
word-wrap@1.2.5:
word-wrap: private
wrap-ansi@7.0.0:
wrap-ansi-cjs: private
wrap-ansi@8.1.0:
wrap-ansi: private
wrappy@1.0.2:
wrappy: private
yallist@3.1.1:
yallist: private
yaml@2.6.1:
yaml: private
yocto-queue@0.1.0:
yocto-queue: private
included:
dependencies: true
devDependencies: true
optionalDependencies: true
injectedDeps: {}
layoutVersion: 5
nodeLinker: isolated
packageManager: pnpm@9.15.0
pendingBuilds: []
prunedAt: Thu, 19 Dec 2024 07:20:59 GMT
publicHoistPattern:
- '*eslint*'
- '*prettier*'
registries:
default: https://registry.npmjs.org/
skipped:
- '@esbuild/aix-ppc64@0.21.5'
- '@esbuild/android-arm64@0.21.5'
- '@esbuild/android-arm@0.21.5'
- '@esbuild/android-x64@0.21.5'
- '@esbuild/darwin-arm64@0.21.5'
- '@esbuild/darwin-x64@0.21.5'
- '@esbuild/freebsd-arm64@0.21.5'
- '@esbuild/freebsd-x64@0.21.5'
- '@esbuild/linux-arm64@0.21.5'
- '@esbuild/linux-arm@0.21.5'
- '@esbuild/linux-ia32@0.21.5'
- '@esbuild/linux-loong64@0.21.5'
- '@esbuild/linux-mips64el@0.21.5'
- '@esbuild/linux-ppc64@0.21.5'
- '@esbuild/linux-riscv64@0.21.5'
- '@esbuild/linux-s390x@0.21.5'
- '@esbuild/netbsd-x64@0.21.5'
- '@esbuild/openbsd-x64@0.21.5'
- '@esbuild/sunos-x64@0.21.5'
- '@esbuild/win32-arm64@0.21.5'
- '@esbuild/win32-ia32@0.21.5'
- '@esbuild/win32-x64@0.21.5'
- '@rollup/rollup-android-arm-eabi@4.28.1'
- '@rollup/rollup-android-arm64@4.28.1'
- '@rollup/rollup-darwin-arm64@4.28.1'
- '@rollup/rollup-darwin-x64@4.28.1'
- '@rollup/rollup-freebsd-arm64@4.28.1'
- '@rollup/rollup-freebsd-x64@4.28.1'
- '@rollup/rollup-linux-arm-gnueabihf@4.28.1'
- '@rollup/rollup-linux-arm-musleabihf@4.28.1'
- '@rollup/rollup-linux-arm64-gnu@4.28.1'
- '@rollup/rollup-linux-arm64-musl@4.28.1'
- '@rollup/rollup-linux-loongarch64-gnu@4.28.1'
- '@rollup/rollup-linux-powerpc64le-gnu@4.28.1'
- '@rollup/rollup-linux-riscv64-gnu@4.28.1'
- '@rollup/rollup-linux-s390x-gnu@4.28.1'
- '@rollup/rollup-win32-arm64-msvc@4.28.1'
- '@rollup/rollup-win32-ia32-msvc@4.28.1'
- '@rollup/rollup-win32-x64-msvc@4.28.1'
- fsevents@2.3.3
storeDir: /home/whoami/.local/share/pnpm/store/v3
virtualStoreDir: .pnpm
virtualStoreDirMaxLength: 120

View File

@@ -0,0 +1,128 @@
declare namespace QuickLRU {
interface Options<KeyType, ValueType> {
/**
The maximum number of milliseconds an item should remain in the cache.
@default Infinity
By default, `maxAge` will be `Infinity`, which means that items will never expire.
Lazy expiration upon the next write or read call.
Individual expiration of an item can be specified by the `set(key, value, maxAge)` method.
*/
readonly maxAge?: number;
/**
The maximum number of items before evicting the least recently used items.
*/
readonly maxSize: number;
/**
Called right before an item is evicted from the cache.
Useful for side effects or for items like object URLs that need explicit cleanup (`revokeObjectURL`).
*/
onEviction?: (key: KeyType, value: ValueType) => void;
}
}
declare class QuickLRU<KeyType, ValueType>
implements Iterable<[KeyType, ValueType]> {
/**
The stored item count.
*/
readonly size: number;
/**
Simple ["Least Recently Used" (LRU) cache](https://en.m.wikipedia.org/wiki/Cache_replacement_policies#Least_Recently_Used_.28LRU.29).
The instance is [`iterable`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Iteration_protocols) so you can use it directly in a [`for…of`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Statements/for...of) loop.
@example
```
import QuickLRU = require('quick-lru');
const lru = new QuickLRU({maxSize: 1000});
lru.set('🦄', '🌈');
lru.has('🦄');
//=> true
lru.get('🦄');
//=> '🌈'
```
*/
constructor(options: QuickLRU.Options<KeyType, ValueType>);
[Symbol.iterator](): IterableIterator<[KeyType, ValueType]>;
/**
Set an item. Returns the instance.
Individual expiration of an item can be specified with the `maxAge` option. If not specified, the global `maxAge` value will be used in case it is specified in the constructor, otherwise the item will never expire.
@returns The list instance.
*/
set(key: KeyType, value: ValueType, options?: {maxAge?: number}): this;
/**
Get an item.
@returns The stored item or `undefined`.
*/
get(key: KeyType): ValueType | undefined;
/**
Check if an item exists.
*/
has(key: KeyType): boolean;
/**
Get an item without marking it as recently used.
@returns The stored item or `undefined`.
*/
peek(key: KeyType): ValueType | undefined;
/**
Delete an item.
@returns `true` if the item is removed or `false` if the item doesn't exist.
*/
delete(key: KeyType): boolean;
/**
Delete all items.
*/
clear(): void;
/**
Update the `maxSize` in-place, discarding items as necessary. Insertion order is mostly preserved, though this is not a strong guarantee.
Useful for on-the-fly tuning of cache sizes in live systems.
*/
resize(maxSize: number): void;
/**
Iterable for all the keys.
*/
keys(): IterableIterator<KeyType>;
/**
Iterable for all the values.
*/
values(): IterableIterator<ValueType>;
/**
Iterable for all entries, starting with the oldest (ascending in recency).
*/
entriesAscending(): IterableIterator<[KeyType, ValueType]>;
/**
Iterable for all entries, starting with the newest (descending in recency).
*/
entriesDescending(): IterableIterator<[KeyType, ValueType]>;
}
export = QuickLRU;

View File

@@ -0,0 +1,263 @@
'use strict';
class QuickLRU {
constructor(options = {}) {
if (!(options.maxSize && options.maxSize > 0)) {
throw new TypeError('`maxSize` must be a number greater than 0');
}
if (typeof options.maxAge === 'number' && options.maxAge === 0) {
throw new TypeError('`maxAge` must be a number greater than 0');
}
this.maxSize = options.maxSize;
this.maxAge = options.maxAge || Infinity;
this.onEviction = options.onEviction;
this.cache = new Map();
this.oldCache = new Map();
this._size = 0;
}
_emitEvictions(cache) {
if (typeof this.onEviction !== 'function') {
return;
}
for (const [key, item] of cache) {
this.onEviction(key, item.value);
}
}
_deleteIfExpired(key, item) {
if (typeof item.expiry === 'number' && item.expiry <= Date.now()) {
if (typeof this.onEviction === 'function') {
this.onEviction(key, item.value);
}
return this.delete(key);
}
return false;
}
_getOrDeleteIfExpired(key, item) {
const deleted = this._deleteIfExpired(key, item);
if (deleted === false) {
return item.value;
}
}
_getItemValue(key, item) {
return item.expiry ? this._getOrDeleteIfExpired(key, item) : item.value;
}
_peek(key, cache) {
const item = cache.get(key);
return this._getItemValue(key, item);
}
_set(key, value) {
this.cache.set(key, value);
this._size++;
if (this._size >= this.maxSize) {
this._size = 0;
this._emitEvictions(this.oldCache);
this.oldCache = this.cache;
this.cache = new Map();
}
}
_moveToRecent(key, item) {
this.oldCache.delete(key);
this._set(key, item);
}
* _entriesAscending() {
for (const item of this.oldCache) {
const [key, value] = item;
if (!this.cache.has(key)) {
const deleted = this._deleteIfExpired(key, value);
if (deleted === false) {
yield item;
}
}
}
for (const item of this.cache) {
const [key, value] = item;
const deleted = this._deleteIfExpired(key, value);
if (deleted === false) {
yield item;
}
}
}
get(key) {
if (this.cache.has(key)) {
const item = this.cache.get(key);
return this._getItemValue(key, item);
}
if (this.oldCache.has(key)) {
const item = this.oldCache.get(key);
if (this._deleteIfExpired(key, item) === false) {
this._moveToRecent(key, item);
return item.value;
}
}
}
set(key, value, {maxAge = this.maxAge === Infinity ? undefined : Date.now() + this.maxAge} = {}) {
if (this.cache.has(key)) {
this.cache.set(key, {
value,
maxAge
});
} else {
this._set(key, {value, expiry: maxAge});
}
}
has(key) {
if (this.cache.has(key)) {
return !this._deleteIfExpired(key, this.cache.get(key));
}
if (this.oldCache.has(key)) {
return !this._deleteIfExpired(key, this.oldCache.get(key));
}
return false;
}
peek(key) {
if (this.cache.has(key)) {
return this._peek(key, this.cache);
}
if (this.oldCache.has(key)) {
return this._peek(key, this.oldCache);
}
}
delete(key) {
const deleted = this.cache.delete(key);
if (deleted) {
this._size--;
}
return this.oldCache.delete(key) || deleted;
}
clear() {
this.cache.clear();
this.oldCache.clear();
this._size = 0;
}
resize(newSize) {
if (!(newSize && newSize > 0)) {
throw new TypeError('`maxSize` must be a number greater than 0');
}
const items = [...this._entriesAscending()];
const removeCount = items.length - newSize;
if (removeCount < 0) {
this.cache = new Map(items);
this.oldCache = new Map();
this._size = items.length;
} else {
if (removeCount > 0) {
this._emitEvictions(items.slice(0, removeCount));
}
this.oldCache = new Map(items.slice(removeCount));
this.cache = new Map();
this._size = 0;
}
this.maxSize = newSize;
}
* keys() {
for (const [key] of this) {
yield key;
}
}
* values() {
for (const [, value] of this) {
yield value;
}
}
* [Symbol.iterator]() {
for (const item of this.cache) {
const [key, value] = item;
const deleted = this._deleteIfExpired(key, value);
if (deleted === false) {
yield [key, value.value];
}
}
for (const item of this.oldCache) {
const [key, value] = item;
if (!this.cache.has(key)) {
const deleted = this._deleteIfExpired(key, value);
if (deleted === false) {
yield [key, value.value];
}
}
}
}
* entriesDescending() {
let items = [...this.cache];
for (let i = items.length - 1; i >= 0; --i) {
const item = items[i];
const [key, value] = item;
const deleted = this._deleteIfExpired(key, value);
if (deleted === false) {
yield [key, value.value];
}
}
items = [...this.oldCache];
for (let i = items.length - 1; i >= 0; --i) {
const item = items[i];
const [key, value] = item;
if (!this.cache.has(key)) {
const deleted = this._deleteIfExpired(key, value);
if (deleted === false) {
yield [key, value.value];
}
}
}
}
* entriesAscending() {
for (const [key, value] of this._entriesAscending()) {
yield [key, value.value];
}
}
get size() {
if (!this._size) {
return this.oldCache.size;
}
let oldCacheSize = 0;
for (const key of this.oldCache.keys()) {
if (!this.cache.has(key)) {
oldCacheSize++;
}
}
return Math.min(this._size + oldCacheSize, this.maxSize);
}
}
module.exports = QuickLRU;

View File

@@ -0,0 +1,9 @@
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -0,0 +1,43 @@
{
"name": "@alloc/quick-lru",
"version": "5.2.0",
"description": "Simple “Least Recently Used” (LRU) cache",
"license": "MIT",
"repository": "sindresorhus/quick-lru",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com"
},
"engines": {
"node": ">=10"
},
"scripts": {
"test": "xo && nyc ava && tsd"
},
"files": [
"index.js",
"index.d.ts"
],
"keywords": [
"lru",
"quick",
"cache",
"caching",
"least",
"recently",
"used",
"fast",
"map",
"hash",
"buffer"
],
"devDependencies": {
"ava": "^2.0.0",
"coveralls": "^3.0.3",
"nyc": "^15.0.0",
"tsd": "^0.11.0",
"xo": "^0.26.0"
}
}

View File

@@ -0,0 +1,139 @@
# quick-lru [![Build Status](https://travis-ci.org/sindresorhus/quick-lru.svg?branch=master)](https://travis-ci.org/sindresorhus/quick-lru) [![Coverage Status](https://coveralls.io/repos/github/sindresorhus/quick-lru/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/quick-lru?branch=master)
> Simple [“Least Recently Used” (LRU) cache](https://en.m.wikipedia.org/wiki/Cache_replacement_policies#Least_Recently_Used_.28LRU.29)
Useful when you need to cache something and limit memory usage.
Inspired by the [`hashlru` algorithm](https://github.com/dominictarr/hashlru#algorithm), but instead uses [`Map`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Map) to support keys of any type, not just strings, and values can be `undefined`.
## Install
```
$ npm install quick-lru
```
## Usage
```js
const QuickLRU = require('quick-lru');
const lru = new QuickLRU({maxSize: 1000});
lru.set('🦄', '🌈');
lru.has('🦄');
//=> true
lru.get('🦄');
//=> '🌈'
```
## API
### new QuickLRU(options?)
Returns a new instance.
### options
Type: `object`
#### maxSize
*Required*\
Type: `number`
The maximum number of items before evicting the least recently used items.
#### maxAge
Type: `number`\
Default: `Infinity`
The maximum number of milliseconds an item should remain in cache.
By default maxAge will be Infinity, which means that items will never expire.
Lazy expiration happens upon the next `write` or `read` call.
Individual expiration of an item can be specified by the `set(key, value, options)` method.
#### onEviction
*Optional*\
Type: `(key, value) => void`
Called right before an item is evicted from the cache.
Useful for side effects or for items like object URLs that need explicit cleanup (`revokeObjectURL`).
### Instance
The instance is [`iterable`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Iteration_protocols) so you can use it directly in a [`for…of`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Statements/for...of) loop.
Both `key` and `value` can be of any type.
#### .set(key, value, options?)
Set an item. Returns the instance.
Individual expiration of an item can be specified with the `maxAge` option. If not specified, the global `maxAge` value will be used in case it is specified on the constructor, otherwise the item will never expire.
#### .get(key)
Get an item.
#### .has(key)
Check if an item exists.
#### .peek(key)
Get an item without marking it as recently used.
#### .delete(key)
Delete an item.
Returns `true` if the item is removed or `false` if the item doesn't exist.
#### .clear()
Delete all items.
#### .resize(maxSize)
Update the `maxSize`, discarding items as necessary. Insertion order is mostly preserved, though this is not a strong guarantee.
Useful for on-the-fly tuning of cache sizes in live systems.
#### .keys()
Iterable for all the keys.
#### .values()
Iterable for all the values.
#### .entriesAscending()
Iterable for all entries, starting with the oldest (ascending in recency).
#### .entriesDescending()
Iterable for all entries, starting with the newest (descending in recency).
#### .size
The stored item count.
---
<div align="center">
<b>
<a href="https://tidelift.com/subscription/pkg/npm-quick-lru?utm_source=npm-quick-lru&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>
</div>

View File

@@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@@ -0,0 +1,218 @@
# @ampproject/remapping
> Remap sequential sourcemaps through transformations to point at the original source code
Remapping allows you to take the sourcemaps generated through transforming your code and "remap"
them to the original source locations. Think "my minified code, transformed with babel and bundled
with webpack", all pointing to the correct location in your original source code.
With remapping, none of your source code transformations need to be aware of the input's sourcemap,
they only need to generate an output sourcemap. This greatly simplifies building custom
transformations (think a find-and-replace).
## Installation
```sh
npm install @ampproject/remapping
```
## Usage
```typescript
function remapping(
map: SourceMap | SourceMap[],
loader: (file: string, ctx: LoaderContext) => (SourceMap | null | undefined),
options?: { excludeContent: boolean, decodedMappings: boolean }
): SourceMap;
// LoaderContext gives the loader the importing sourcemap, tree depth, the ability to override the
// "source" location (where child sources are resolved relative to, or the location of original
// source), and the ability to override the "content" of an original source for inclusion in the
// output sourcemap.
type LoaderContext = {
readonly importer: string;
readonly depth: number;
source: string;
content: string | null | undefined;
}
```
`remapping` takes the final output sourcemap, and a `loader` function. For every source file pointer
in the sourcemap, the `loader` will be called with the resolved path. If the path itself represents
a transformed file (it has a sourcmap associated with it), then the `loader` should return that
sourcemap. If not, the path will be treated as an original, untransformed source code.
```js
// Babel transformed "helloworld.js" into "transformed.js"
const transformedMap = JSON.stringify({
file: 'transformed.js',
// 1st column of 2nd line of output file translates into the 1st source
// file, line 3, column 2
mappings: ';CAEE',
sources: ['helloworld.js'],
version: 3,
});
// Uglify minified "transformed.js" into "transformed.min.js"
const minifiedTransformedMap = JSON.stringify({
file: 'transformed.min.js',
// 0th column of 1st line of output file translates into the 1st source
// file, line 2, column 1.
mappings: 'AACC',
names: [],
sources: ['transformed.js'],
version: 3,
});
const remapped = remapping(
minifiedTransformedMap,
(file, ctx) => {
// The "transformed.js" file is an transformed file.
if (file === 'transformed.js') {
// The root importer is empty.
console.assert(ctx.importer === '');
// The depth in the sourcemap tree we're currently loading.
// The root `minifiedTransformedMap` is depth 0, and its source children are depth 1, etc.
console.assert(ctx.depth === 1);
return transformedMap;
}
// Loader will be called to load transformedMap's source file pointers as well.
console.assert(file === 'helloworld.js');
// `transformed.js`'s sourcemap points into `helloworld.js`.
console.assert(ctx.importer === 'transformed.js');
// This is a source child of `transformed`, which is a source child of `minifiedTransformedMap`.
console.assert(ctx.depth === 2);
return null;
}
);
console.log(remapped);
// {
// file: 'transpiled.min.js',
// mappings: 'AAEE',
// sources: ['helloworld.js'],
// version: 3,
// };
```
In this example, `loader` will be called twice:
1. `"transformed.js"`, the first source file pointer in the `minifiedTransformedMap`. We return the
associated sourcemap for it (its a transformed file, after all) so that sourcemap locations can
be traced through it into the source files it represents.
2. `"helloworld.js"`, our original, unmodified source code. This file does not have a sourcemap, so
we return `null`.
The `remapped` sourcemap now points from `transformed.min.js` into locations in `helloworld.js`. If
you were to read the `mappings`, it says "0th column of the first line output line points to the 1st
column of the 2nd line of the file `helloworld.js`".
### Multiple transformations of a file
As a convenience, if you have multiple single-source transformations of a file, you may pass an
array of sourcemap files in the order of most-recent transformation sourcemap first. Note that this
changes the `importer` and `depth` of each call to our loader. So our above example could have been
written as:
```js
const remapped = remapping(
[minifiedTransformedMap, transformedMap],
() => null
);
console.log(remapped);
// {
// file: 'transpiled.min.js',
// mappings: 'AAEE',
// sources: ['helloworld.js'],
// version: 3,
// };
```
### Advanced control of the loading graph
#### `source`
The `source` property can overridden to any value to change the location of the current load. Eg,
for an original source file, it allows us to change the location to the original source regardless
of what the sourcemap source entry says. And for transformed files, it allows us to change the
relative resolving location for child sources of the loaded sourcemap.
```js
const remapped = remapping(
minifiedTransformedMap,
(file, ctx) => {
if (file === 'transformed.js') {
// We pretend the transformed.js file actually exists in the 'src/' directory. When the nested
// source files are loaded, they will now be relative to `src/`.
ctx.source = 'src/transformed.js';
return transformedMap;
}
console.assert(file === 'src/helloworld.js');
// We could futher change the source of this original file, eg, to be inside a nested directory
// itself. This will be reflected in the remapped sourcemap.
ctx.source = 'src/nested/transformed.js';
return null;
}
);
console.log(remapped);
// {
// …,
// sources: ['src/nested/helloworld.js'],
// };
```
#### `content`
The `content` property can be overridden when we encounter an original source file. Eg, this allows
you to manually provide the source content of the original file regardless of whether the
`sourcesContent` field is present in the parent sourcemap. It can also be set to `null` to remove
the source content.
```js
const remapped = remapping(
minifiedTransformedMap,
(file, ctx) => {
if (file === 'transformed.js') {
// transformedMap does not include a `sourcesContent` field, so usually the remapped sourcemap
// would not include any `sourcesContent` values.
return transformedMap;
}
console.assert(file === 'helloworld.js');
// We can read the file to provide the source content.
ctx.content = fs.readFileSync(file, 'utf8');
return null;
}
);
console.log(remapped);
// {
// …,
// sourcesContent: [
// 'console.log("Hello world!")',
// ],
// };
```
### Options
#### excludeContent
By default, `excludeContent` is `false`. Passing `{ excludeContent: true }` will exclude the
`sourcesContent` field from the returned sourcemap. This is mainly useful when you want to reduce
the size out the sourcemap.
#### decodedMappings
By default, `decodedMappings` is `false`. Passing `{ decodedMappings: true }` will leave the
`mappings` field in a [decoded state](https://github.com/rich-harris/sourcemap-codec) instead of
encoding into a VLQ string.

View File

@@ -0,0 +1,197 @@
import { decodedMappings, traceSegment, TraceMap } from '@jridgewell/trace-mapping';
import { GenMapping, maybeAddSegment, setSourceContent, setIgnore, toDecodedMap, toEncodedMap } from '@jridgewell/gen-mapping';
const SOURCELESS_MAPPING = /* #__PURE__ */ SegmentObject('', -1, -1, '', null, false);
const EMPTY_SOURCES = [];
function SegmentObject(source, line, column, name, content, ignore) {
return { source, line, column, name, content, ignore };
}
function Source(map, sources, source, content, ignore) {
return {
map,
sources,
source,
content,
ignore,
};
}
/**
* MapSource represents a single sourcemap, with the ability to trace mappings into its child nodes
* (which may themselves be SourceMapTrees).
*/
function MapSource(map, sources) {
return Source(map, sources, '', null, false);
}
/**
* A "leaf" node in the sourcemap tree, representing an original, unmodified source file. Recursive
* segment tracing ends at the `OriginalSource`.
*/
function OriginalSource(source, content, ignore) {
return Source(null, EMPTY_SOURCES, source, content, ignore);
}
/**
* traceMappings is only called on the root level SourceMapTree, and begins the process of
* resolving each mapping in terms of the original source files.
*/
function traceMappings(tree) {
// TODO: Eventually support sourceRoot, which has to be removed because the sources are already
// fully resolved. We'll need to make sources relative to the sourceRoot before adding them.
const gen = new GenMapping({ file: tree.map.file });
const { sources: rootSources, map } = tree;
const rootNames = map.names;
const rootMappings = decodedMappings(map);
for (let i = 0; i < rootMappings.length; i++) {
const segments = rootMappings[i];
for (let j = 0; j < segments.length; j++) {
const segment = segments[j];
const genCol = segment[0];
let traced = SOURCELESS_MAPPING;
// 1-length segments only move the current generated column, there's no source information
// to gather from it.
if (segment.length !== 1) {
const source = rootSources[segment[1]];
traced = originalPositionFor(source, segment[2], segment[3], segment.length === 5 ? rootNames[segment[4]] : '');
// If the trace is invalid, then the trace ran into a sourcemap that doesn't contain a
// respective segment into an original source.
if (traced == null)
continue;
}
const { column, line, name, content, source, ignore } = traced;
maybeAddSegment(gen, i, genCol, source, line, column, name);
if (source && content != null)
setSourceContent(gen, source, content);
if (ignore)
setIgnore(gen, source, true);
}
}
return gen;
}
/**
* originalPositionFor is only called on children SourceMapTrees. It recurses down into its own
* child SourceMapTrees, until we find the original source map.
*/
function originalPositionFor(source, line, column, name) {
if (!source.map) {
return SegmentObject(source.source, line, column, name, source.content, source.ignore);
}
const segment = traceSegment(source.map, line, column);
// If we couldn't find a segment, then this doesn't exist in the sourcemap.
if (segment == null)
return null;
// 1-length segments only move the current generated column, there's no source information
// to gather from it.
if (segment.length === 1)
return SOURCELESS_MAPPING;
return originalPositionFor(source.sources[segment[1]], segment[2], segment[3], segment.length === 5 ? source.map.names[segment[4]] : name);
}
function asArray(value) {
if (Array.isArray(value))
return value;
return [value];
}
/**
* Recursively builds a tree structure out of sourcemap files, with each node
* being either an `OriginalSource` "leaf" or a `SourceMapTree` composed of
* `OriginalSource`s and `SourceMapTree`s.
*
* Every sourcemap is composed of a collection of source files and mappings
* into locations of those source files. When we generate a `SourceMapTree` for
* the sourcemap, we attempt to load each source file's own sourcemap. If it
* does not have an associated sourcemap, it is considered an original,
* unmodified source file.
*/
function buildSourceMapTree(input, loader) {
const maps = asArray(input).map((m) => new TraceMap(m, ''));
const map = maps.pop();
for (let i = 0; i < maps.length; i++) {
if (maps[i].sources.length > 1) {
throw new Error(`Transformation map ${i} must have exactly one source file.\n` +
'Did you specify these with the most recent transformation maps first?');
}
}
let tree = build(map, loader, '', 0);
for (let i = maps.length - 1; i >= 0; i--) {
tree = MapSource(maps[i], [tree]);
}
return tree;
}
function build(map, loader, importer, importerDepth) {
const { resolvedSources, sourcesContent, ignoreList } = map;
const depth = importerDepth + 1;
const children = resolvedSources.map((sourceFile, i) => {
// The loading context gives the loader more information about why this file is being loaded
// (eg, from which importer). It also allows the loader to override the location of the loaded
// sourcemap/original source, or to override the content in the sourcesContent field if it's
// an unmodified source file.
const ctx = {
importer,
depth,
source: sourceFile || '',
content: undefined,
ignore: undefined,
};
// Use the provided loader callback to retrieve the file's sourcemap.
// TODO: We should eventually support async loading of sourcemap files.
const sourceMap = loader(ctx.source, ctx);
const { source, content, ignore } = ctx;
// If there is a sourcemap, then we need to recurse into it to load its source files.
if (sourceMap)
return build(new TraceMap(sourceMap, source), loader, source, depth);
// Else, it's an unmodified source file.
// The contents of this unmodified source file can be overridden via the loader context,
// allowing it to be explicitly null or a string. If it remains undefined, we fall back to
// the importing sourcemap's `sourcesContent` field.
const sourceContent = content !== undefined ? content : sourcesContent ? sourcesContent[i] : null;
const ignored = ignore !== undefined ? ignore : ignoreList ? ignoreList.includes(i) : false;
return OriginalSource(source, sourceContent, ignored);
});
return MapSource(map, children);
}
/**
* A SourceMap v3 compatible sourcemap, which only includes fields that were
* provided to it.
*/
class SourceMap {
constructor(map, options) {
const out = options.decodedMappings ? toDecodedMap(map) : toEncodedMap(map);
this.version = out.version; // SourceMap spec says this should be first.
this.file = out.file;
this.mappings = out.mappings;
this.names = out.names;
this.ignoreList = out.ignoreList;
this.sourceRoot = out.sourceRoot;
this.sources = out.sources;
if (!options.excludeContent) {
this.sourcesContent = out.sourcesContent;
}
}
toString() {
return JSON.stringify(this);
}
}
/**
* Traces through all the mappings in the root sourcemap, through the sources
* (and their sourcemaps), all the way back to the original source location.
*
* `loader` will be called every time we encounter a source file. If it returns
* a sourcemap, we will recurse into that sourcemap to continue the trace. If
* it returns a falsey value, that source file is treated as an original,
* unmodified source file.
*
* Pass `excludeContent` to exclude any self-containing source file content
* from the output sourcemap.
*
* Pass `decodedMappings` to receive a SourceMap with decoded (instead of
* VLQ encoded) mappings.
*/
function remapping(input, loader, options) {
const opts = typeof options === 'object' ? options : { excludeContent: !!options, decodedMappings: false };
const tree = buildSourceMapTree(input, loader);
return new SourceMap(traceMappings(tree), opts);
}
export { remapping as default };
//# sourceMappingURL=remapping.mjs.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,202 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@jridgewell/trace-mapping'), require('@jridgewell/gen-mapping')) :
typeof define === 'function' && define.amd ? define(['@jridgewell/trace-mapping', '@jridgewell/gen-mapping'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.remapping = factory(global.traceMapping, global.genMapping));
})(this, (function (traceMapping, genMapping) { 'use strict';
const SOURCELESS_MAPPING = /* #__PURE__ */ SegmentObject('', -1, -1, '', null, false);
const EMPTY_SOURCES = [];
function SegmentObject(source, line, column, name, content, ignore) {
return { source, line, column, name, content, ignore };
}
function Source(map, sources, source, content, ignore) {
return {
map,
sources,
source,
content,
ignore,
};
}
/**
* MapSource represents a single sourcemap, with the ability to trace mappings into its child nodes
* (which may themselves be SourceMapTrees).
*/
function MapSource(map, sources) {
return Source(map, sources, '', null, false);
}
/**
* A "leaf" node in the sourcemap tree, representing an original, unmodified source file. Recursive
* segment tracing ends at the `OriginalSource`.
*/
function OriginalSource(source, content, ignore) {
return Source(null, EMPTY_SOURCES, source, content, ignore);
}
/**
* traceMappings is only called on the root level SourceMapTree, and begins the process of
* resolving each mapping in terms of the original source files.
*/
function traceMappings(tree) {
// TODO: Eventually support sourceRoot, which has to be removed because the sources are already
// fully resolved. We'll need to make sources relative to the sourceRoot before adding them.
const gen = new genMapping.GenMapping({ file: tree.map.file });
const { sources: rootSources, map } = tree;
const rootNames = map.names;
const rootMappings = traceMapping.decodedMappings(map);
for (let i = 0; i < rootMappings.length; i++) {
const segments = rootMappings[i];
for (let j = 0; j < segments.length; j++) {
const segment = segments[j];
const genCol = segment[0];
let traced = SOURCELESS_MAPPING;
// 1-length segments only move the current generated column, there's no source information
// to gather from it.
if (segment.length !== 1) {
const source = rootSources[segment[1]];
traced = originalPositionFor(source, segment[2], segment[3], segment.length === 5 ? rootNames[segment[4]] : '');
// If the trace is invalid, then the trace ran into a sourcemap that doesn't contain a
// respective segment into an original source.
if (traced == null)
continue;
}
const { column, line, name, content, source, ignore } = traced;
genMapping.maybeAddSegment(gen, i, genCol, source, line, column, name);
if (source && content != null)
genMapping.setSourceContent(gen, source, content);
if (ignore)
genMapping.setIgnore(gen, source, true);
}
}
return gen;
}
/**
* originalPositionFor is only called on children SourceMapTrees. It recurses down into its own
* child SourceMapTrees, until we find the original source map.
*/
function originalPositionFor(source, line, column, name) {
if (!source.map) {
return SegmentObject(source.source, line, column, name, source.content, source.ignore);
}
const segment = traceMapping.traceSegment(source.map, line, column);
// If we couldn't find a segment, then this doesn't exist in the sourcemap.
if (segment == null)
return null;
// 1-length segments only move the current generated column, there's no source information
// to gather from it.
if (segment.length === 1)
return SOURCELESS_MAPPING;
return originalPositionFor(source.sources[segment[1]], segment[2], segment[3], segment.length === 5 ? source.map.names[segment[4]] : name);
}
function asArray(value) {
if (Array.isArray(value))
return value;
return [value];
}
/**
* Recursively builds a tree structure out of sourcemap files, with each node
* being either an `OriginalSource` "leaf" or a `SourceMapTree` composed of
* `OriginalSource`s and `SourceMapTree`s.
*
* Every sourcemap is composed of a collection of source files and mappings
* into locations of those source files. When we generate a `SourceMapTree` for
* the sourcemap, we attempt to load each source file's own sourcemap. If it
* does not have an associated sourcemap, it is considered an original,
* unmodified source file.
*/
function buildSourceMapTree(input, loader) {
const maps = asArray(input).map((m) => new traceMapping.TraceMap(m, ''));
const map = maps.pop();
for (let i = 0; i < maps.length; i++) {
if (maps[i].sources.length > 1) {
throw new Error(`Transformation map ${i} must have exactly one source file.\n` +
'Did you specify these with the most recent transformation maps first?');
}
}
let tree = build(map, loader, '', 0);
for (let i = maps.length - 1; i >= 0; i--) {
tree = MapSource(maps[i], [tree]);
}
return tree;
}
function build(map, loader, importer, importerDepth) {
const { resolvedSources, sourcesContent, ignoreList } = map;
const depth = importerDepth + 1;
const children = resolvedSources.map((sourceFile, i) => {
// The loading context gives the loader more information about why this file is being loaded
// (eg, from which importer). It also allows the loader to override the location of the loaded
// sourcemap/original source, or to override the content in the sourcesContent field if it's
// an unmodified source file.
const ctx = {
importer,
depth,
source: sourceFile || '',
content: undefined,
ignore: undefined,
};
// Use the provided loader callback to retrieve the file's sourcemap.
// TODO: We should eventually support async loading of sourcemap files.
const sourceMap = loader(ctx.source, ctx);
const { source, content, ignore } = ctx;
// If there is a sourcemap, then we need to recurse into it to load its source files.
if (sourceMap)
return build(new traceMapping.TraceMap(sourceMap, source), loader, source, depth);
// Else, it's an unmodified source file.
// The contents of this unmodified source file can be overridden via the loader context,
// allowing it to be explicitly null or a string. If it remains undefined, we fall back to
// the importing sourcemap's `sourcesContent` field.
const sourceContent = content !== undefined ? content : sourcesContent ? sourcesContent[i] : null;
const ignored = ignore !== undefined ? ignore : ignoreList ? ignoreList.includes(i) : false;
return OriginalSource(source, sourceContent, ignored);
});
return MapSource(map, children);
}
/**
* A SourceMap v3 compatible sourcemap, which only includes fields that were
* provided to it.
*/
class SourceMap {
constructor(map, options) {
const out = options.decodedMappings ? genMapping.toDecodedMap(map) : genMapping.toEncodedMap(map);
this.version = out.version; // SourceMap spec says this should be first.
this.file = out.file;
this.mappings = out.mappings;
this.names = out.names;
this.ignoreList = out.ignoreList;
this.sourceRoot = out.sourceRoot;
this.sources = out.sources;
if (!options.excludeContent) {
this.sourcesContent = out.sourcesContent;
}
}
toString() {
return JSON.stringify(this);
}
}
/**
* Traces through all the mappings in the root sourcemap, through the sources
* (and their sourcemaps), all the way back to the original source location.
*
* `loader` will be called every time we encounter a source file. If it returns
* a sourcemap, we will recurse into that sourcemap to continue the trace. If
* it returns a falsey value, that source file is treated as an original,
* unmodified source file.
*
* Pass `excludeContent` to exclude any self-containing source file content
* from the output sourcemap.
*
* Pass `decodedMappings` to receive a SourceMap with decoded (instead of
* VLQ encoded) mappings.
*/
function remapping(input, loader, options) {
const opts = typeof options === 'object' ? options : { excludeContent: !!options, decodedMappings: false };
const tree = buildSourceMapTree(input, loader);
return new SourceMap(traceMappings(tree), opts);
}
return remapping;
}));
//# sourceMappingURL=remapping.umd.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,14 @@
import type { MapSource as MapSourceType } from './source-map-tree';
import type { SourceMapInput, SourceMapLoader } from './types';
/**
* Recursively builds a tree structure out of sourcemap files, with each node
* being either an `OriginalSource` "leaf" or a `SourceMapTree` composed of
* `OriginalSource`s and `SourceMapTree`s.
*
* Every sourcemap is composed of a collection of source files and mappings
* into locations of those source files. When we generate a `SourceMapTree` for
* the sourcemap, we attempt to load each source file's own sourcemap. If it
* does not have an associated sourcemap, it is considered an original,
* unmodified source file.
*/
export default function buildSourceMapTree(input: SourceMapInput | SourceMapInput[], loader: SourceMapLoader): MapSourceType;

View File

@@ -0,0 +1,20 @@
import SourceMap from './source-map';
import type { SourceMapInput, SourceMapLoader, Options } from './types';
export type { SourceMapSegment, EncodedSourceMap, EncodedSourceMap as RawSourceMap, DecodedSourceMap, SourceMapInput, SourceMapLoader, LoaderContext, Options, } from './types';
export type { SourceMap };
/**
* Traces through all the mappings in the root sourcemap, through the sources
* (and their sourcemaps), all the way back to the original source location.
*
* `loader` will be called every time we encounter a source file. If it returns
* a sourcemap, we will recurse into that sourcemap to continue the trace. If
* it returns a falsey value, that source file is treated as an original,
* unmodified source file.
*
* Pass `excludeContent` to exclude any self-containing source file content
* from the output sourcemap.
*
* Pass `decodedMappings` to receive a SourceMap with decoded (instead of
* VLQ encoded) mappings.
*/
export default function remapping(input: SourceMapInput | SourceMapInput[], loader: SourceMapLoader, options?: boolean | Options): SourceMap;

View File

@@ -0,0 +1,45 @@
import { GenMapping } from '@jridgewell/gen-mapping';
import type { TraceMap } from '@jridgewell/trace-mapping';
export declare type SourceMapSegmentObject = {
column: number;
line: number;
name: string;
source: string;
content: string | null;
ignore: boolean;
};
export declare type OriginalSource = {
map: null;
sources: Sources[];
source: string;
content: string | null;
ignore: boolean;
};
export declare type MapSource = {
map: TraceMap;
sources: Sources[];
source: string;
content: null;
ignore: false;
};
export declare type Sources = OriginalSource | MapSource;
/**
* MapSource represents a single sourcemap, with the ability to trace mappings into its child nodes
* (which may themselves be SourceMapTrees).
*/
export declare function MapSource(map: TraceMap, sources: Sources[]): MapSource;
/**
* A "leaf" node in the sourcemap tree, representing an original, unmodified source file. Recursive
* segment tracing ends at the `OriginalSource`.
*/
export declare function OriginalSource(source: string, content: string | null, ignore: boolean): OriginalSource;
/**
* traceMappings is only called on the root level SourceMapTree, and begins the process of
* resolving each mapping in terms of the original source files.
*/
export declare function traceMappings(tree: MapSource): GenMapping;
/**
* originalPositionFor is only called on children SourceMapTrees. It recurses down into its own
* child SourceMapTrees, until we find the original source map.
*/
export declare function originalPositionFor(source: Sources, line: number, column: number, name: string): SourceMapSegmentObject | null;

View File

@@ -0,0 +1,18 @@
import type { GenMapping } from '@jridgewell/gen-mapping';
import type { DecodedSourceMap, EncodedSourceMap, Options } from './types';
/**
* A SourceMap v3 compatible sourcemap, which only includes fields that were
* provided to it.
*/
export default class SourceMap {
file?: string | null;
mappings: EncodedSourceMap['mappings'] | DecodedSourceMap['mappings'];
sourceRoot?: string;
names: string[];
sources: (string | null)[];
sourcesContent?: (string | null)[];
version: 3;
ignoreList: number[] | undefined;
constructor(map: GenMapping, options: Options);
toString(): string;
}

View File

@@ -0,0 +1,15 @@
import type { SourceMapInput } from '@jridgewell/trace-mapping';
export type { SourceMapSegment, DecodedSourceMap, EncodedSourceMap, } from '@jridgewell/trace-mapping';
export type { SourceMapInput };
export declare type LoaderContext = {
readonly importer: string;
readonly depth: number;
source: string;
content: string | null | undefined;
ignore: boolean | undefined;
};
export declare type SourceMapLoader = (file: string, ctx: LoaderContext) => SourceMapInput | null | undefined | void;
export declare type Options = {
excludeContent?: boolean;
decodedMappings?: boolean;
};

View File

@@ -0,0 +1,75 @@
{
"name": "@ampproject/remapping",
"version": "2.3.0",
"description": "Remap sequential sourcemaps through transformations to point at the original source code",
"keywords": [
"source",
"map",
"remap"
],
"main": "dist/remapping.umd.js",
"module": "dist/remapping.mjs",
"types": "dist/types/remapping.d.ts",
"exports": {
".": [
{
"types": "./dist/types/remapping.d.ts",
"browser": "./dist/remapping.umd.js",
"require": "./dist/remapping.umd.js",
"import": "./dist/remapping.mjs"
},
"./dist/remapping.umd.js"
],
"./package.json": "./package.json"
},
"files": [
"dist"
],
"author": "Justin Ridgewell <jridgewell@google.com>",
"repository": {
"type": "git",
"url": "git+https://github.com/ampproject/remapping.git"
},
"license": "Apache-2.0",
"engines": {
"node": ">=6.0.0"
},
"scripts": {
"build": "run-s -n build:*",
"build:rollup": "rollup -c rollup.config.js",
"build:ts": "tsc --project tsconfig.build.json",
"lint": "run-s -n lint:*",
"lint:prettier": "npm run test:lint:prettier -- --write",
"lint:ts": "npm run test:lint:ts -- --fix",
"prebuild": "rm -rf dist",
"prepublishOnly": "npm run preversion",
"preversion": "run-s test build",
"test": "run-s -n test:lint test:only",
"test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand",
"test:lint": "run-s -n test:lint:*",
"test:lint:prettier": "prettier --check '{src,test}/**/*.ts'",
"test:lint:ts": "eslint '{src,test}/**/*.ts'",
"test:only": "jest --coverage",
"test:watch": "jest --coverage --watch"
},
"devDependencies": {
"@rollup/plugin-typescript": "8.3.2",
"@types/jest": "27.4.1",
"@typescript-eslint/eslint-plugin": "5.20.0",
"@typescript-eslint/parser": "5.20.0",
"eslint": "8.14.0",
"eslint-config-prettier": "8.5.0",
"jest": "27.5.1",
"jest-config": "27.5.1",
"npm-run-all": "4.1.5",
"prettier": "2.6.2",
"rollup": "2.70.2",
"ts-jest": "27.1.4",
"tslib": "2.4.0",
"typescript": "4.6.3"
},
"dependencies": {
"@jridgewell/gen-mapping": "^0.3.5",
"@jridgewell/trace-mapping": "^0.3.24"
}
}

View File

@@ -0,0 +1 @@
../../../@jridgewell+gen-mapping@0.3.8/node_modules/@jridgewell/gen-mapping

View File

@@ -0,0 +1 @@
../../../@jridgewell+trace-mapping@0.3.25/node_modules/@jridgewell/trace-mapping

View File

@@ -0,0 +1,22 @@
MIT License
Copyright (c) 2014-present Sebastian McKenzie and other contributors
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -0,0 +1,19 @@
# @babel/code-frame
> Generate errors that contain a code frame that point to source locations.
See our website [@babel/code-frame](https://babeljs.io/docs/babel-code-frame) for more information.
## Install
Using npm:
```sh
npm install --save-dev @babel/code-frame
```
or using yarn:
```sh
yarn add @babel/code-frame --dev
```

View File

@@ -0,0 +1,216 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var picocolors = require('picocolors');
var jsTokens = require('js-tokens');
var helperValidatorIdentifier = require('@babel/helper-validator-identifier');
function isColorSupported() {
return (typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported
);
}
const compose = (f, g) => v => f(g(v));
function buildDefs(colors) {
return {
keyword: colors.cyan,
capitalized: colors.yellow,
jsxIdentifier: colors.yellow,
punctuator: colors.yellow,
number: colors.magenta,
string: colors.green,
regex: colors.magenta,
comment: colors.gray,
invalid: compose(compose(colors.white, colors.bgRed), colors.bold),
gutter: colors.gray,
marker: compose(colors.red, colors.bold),
message: compose(colors.red, colors.bold),
reset: colors.reset
};
}
const defsOn = buildDefs(picocolors.createColors(true));
const defsOff = buildDefs(picocolors.createColors(false));
function getDefs(enabled) {
return enabled ? defsOn : defsOff;
}
const sometimesKeywords = new Set(["as", "async", "from", "get", "of", "set"]);
const NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
const BRACKET = /^[()[\]{}]$/;
let tokenize;
{
const JSX_TAG = /^[a-z][\w-]*$/i;
const getTokenType = function (token, offset, text) {
if (token.type === "name") {
if (helperValidatorIdentifier.isKeyword(token.value) || helperValidatorIdentifier.isStrictReservedWord(token.value, true) || sometimesKeywords.has(token.value)) {
return "keyword";
}
if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) {
return "jsxIdentifier";
}
if (token.value[0] !== token.value[0].toLowerCase()) {
return "capitalized";
}
}
if (token.type === "punctuator" && BRACKET.test(token.value)) {
return "bracket";
}
if (token.type === "invalid" && (token.value === "@" || token.value === "#")) {
return "punctuator";
}
return token.type;
};
tokenize = function* (text) {
let match;
while (match = jsTokens.default.exec(text)) {
const token = jsTokens.matchToToken(match);
yield {
type: getTokenType(token, match.index, text),
value: token.value
};
}
};
}
function highlight(text) {
if (text === "") return "";
const defs = getDefs(true);
let highlighted = "";
for (const {
type,
value
} of tokenize(text)) {
if (type in defs) {
highlighted += value.split(NEWLINE$1).map(str => defs[type](str)).join("\n");
} else {
highlighted += value;
}
}
return highlighted;
}
let deprecationWarningShown = false;
const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
function getMarkerLines(loc, source, opts) {
const startLoc = Object.assign({
column: 0,
line: -1
}, loc.start);
const endLoc = Object.assign({}, startLoc, loc.end);
const {
linesAbove = 2,
linesBelow = 3
} = opts || {};
const startLine = startLoc.line;
const startColumn = startLoc.column;
const endLine = endLoc.line;
const endColumn = endLoc.column;
let start = Math.max(startLine - (linesAbove + 1), 0);
let end = Math.min(source.length, endLine + linesBelow);
if (startLine === -1) {
start = 0;
}
if (endLine === -1) {
end = source.length;
}
const lineDiff = endLine - startLine;
const markerLines = {};
if (lineDiff) {
for (let i = 0; i <= lineDiff; i++) {
const lineNumber = i + startLine;
if (!startColumn) {
markerLines[lineNumber] = true;
} else if (i === 0) {
const sourceLength = source[lineNumber - 1].length;
markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1];
} else if (i === lineDiff) {
markerLines[lineNumber] = [0, endColumn];
} else {
const sourceLength = source[lineNumber - i].length;
markerLines[lineNumber] = [0, sourceLength];
}
}
} else {
if (startColumn === endColumn) {
if (startColumn) {
markerLines[startLine] = [startColumn, 0];
} else {
markerLines[startLine] = true;
}
} else {
markerLines[startLine] = [startColumn, endColumn - startColumn];
}
}
return {
start,
end,
markerLines
};
}
function codeFrameColumns(rawLines, loc, opts = {}) {
const shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode;
const defs = getDefs(shouldHighlight);
const lines = rawLines.split(NEWLINE);
const {
start,
end,
markerLines
} = getMarkerLines(loc, lines, opts);
const hasColumns = loc.start && typeof loc.start.column === "number";
const numberMaxWidth = String(end).length;
const highlightedLines = shouldHighlight ? highlight(rawLines) : rawLines;
let frame = highlightedLines.split(NEWLINE, end).slice(start, end).map((line, index) => {
const number = start + 1 + index;
const paddedNumber = ` ${number}`.slice(-numberMaxWidth);
const gutter = ` ${paddedNumber} |`;
const hasMarker = markerLines[number];
const lastMarkerLine = !markerLines[number + 1];
if (hasMarker) {
let markerLine = "";
if (Array.isArray(hasMarker)) {
const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
const numberOfMarkers = hasMarker[1] || 1;
markerLine = ["\n ", defs.gutter(gutter.replace(/\d/g, " ")), " ", markerSpacing, defs.marker("^").repeat(numberOfMarkers)].join("");
if (lastMarkerLine && opts.message) {
markerLine += " " + defs.message(opts.message);
}
}
return [defs.marker(">"), defs.gutter(gutter), line.length > 0 ? ` ${line}` : "", markerLine].join("");
} else {
return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : ""}`;
}
}).join("\n");
if (opts.message && !hasColumns) {
frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
}
if (shouldHighlight) {
return defs.reset(frame);
} else {
return frame;
}
}
function index (rawLines, lineNumber, colNumber, opts = {}) {
if (!deprecationWarningShown) {
deprecationWarningShown = true;
const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
if (process.emitWarning) {
process.emitWarning(message, "DeprecationWarning");
} else {
const deprecationError = new Error(message);
deprecationError.name = "DeprecationWarning";
console.warn(new Error(message));
}
}
colNumber = Math.max(colNumber, 0);
const location = {
start: {
column: colNumber,
line: lineNumber
}
};
return codeFrameColumns(rawLines, location, opts);
}
exports.codeFrameColumns = codeFrameColumns;
exports.default = index;
exports.highlight = highlight;
//# sourceMappingURL=index.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,31 @@
{
"name": "@babel/code-frame",
"version": "7.26.2",
"description": "Generate errors that contain a code frame that point to source locations.",
"author": "The Babel Team (https://babel.dev/team)",
"homepage": "https://babel.dev/docs/en/next/babel-code-frame",
"bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/babel/babel.git",
"directory": "packages/babel-code-frame"
},
"main": "./lib/index.js",
"dependencies": {
"@babel/helper-validator-identifier": "^7.25.9",
"js-tokens": "^4.0.0",
"picocolors": "^1.0.0"
},
"devDependencies": {
"import-meta-resolve": "^4.1.0",
"strip-ansi": "^4.0.0"
},
"engines": {
"node": ">=6.9.0"
},
"type": "commonjs"
}

View File

@@ -0,0 +1 @@
../../../@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier

View File

@@ -0,0 +1 @@
../../js-tokens@4.0.0/node_modules/js-tokens

View File

@@ -0,0 +1 @@
../../picocolors@1.1.1/node_modules/picocolors

View File

@@ -0,0 +1,22 @@
MIT License
Copyright (c) 2014-present Sebastian McKenzie and other contributors
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -0,0 +1,19 @@
# @babel/compat-data
> The compat-data to determine required Babel plugins
See our website [@babel/compat-data](https://babeljs.io/docs/babel-compat-data) for more information.
## Install
Using npm:
```sh
npm install --save @babel/compat-data
```
or using yarn:
```sh
yarn add @babel/compat-data
```

View File

@@ -0,0 +1,2 @@
// Todo (Babel 8): remove this file as Babel 8 drop support of core-js 2
module.exports = require("./data/corejs2-built-ins.json");

View File

@@ -0,0 +1,2 @@
// Todo (Babel 8): remove this file now that it is included in babel-plugin-polyfill-corejs3
module.exports = require("./data/corejs3-shipped-proposals.json");

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,5 @@
[
"esnext.promise.all-settled",
"esnext.string.match-all",
"esnext.global-this"
]

View File

@@ -0,0 +1,18 @@
{
"es6.module": {
"chrome": "61",
"and_chr": "61",
"edge": "16",
"firefox": "60",
"and_ff": "60",
"node": "13.2.0",
"opera": "48",
"op_mob": "45",
"safari": "10.1",
"ios": "10.3",
"samsung": "8.2",
"android": "61",
"electron": "2.0",
"ios_saf": "10.3"
}
}

View File

@@ -0,0 +1,35 @@
{
"transform-async-to-generator": [
"bugfix/transform-async-arrows-in-class"
],
"transform-parameters": [
"bugfix/transform-edge-default-parameters",
"bugfix/transform-safari-id-destructuring-collision-in-function-expression"
],
"transform-function-name": [
"bugfix/transform-edge-function-name"
],
"transform-block-scoping": [
"bugfix/transform-safari-block-shadowing",
"bugfix/transform-safari-for-shadowing"
],
"transform-template-literals": [
"bugfix/transform-tagged-template-caching"
],
"transform-optional-chaining": [
"bugfix/transform-v8-spread-parameters-in-optional-chaining"
],
"proposal-optional-chaining": [
"bugfix/transform-v8-spread-parameters-in-optional-chaining"
],
"transform-class-properties": [
"bugfix/transform-v8-static-class-fields-redefine-readonly",
"bugfix/transform-firefox-class-in-computed-class-key",
"bugfix/transform-safari-class-field-initializer-scope"
],
"proposal-class-properties": [
"bugfix/transform-v8-static-class-fields-redefine-readonly",
"bugfix/transform-firefox-class-in-computed-class-key",
"bugfix/transform-safari-class-field-initializer-scope"
]
}

View File

@@ -0,0 +1,213 @@
{
"bugfix/transform-async-arrows-in-class": {
"chrome": "55",
"opera": "42",
"edge": "15",
"firefox": "52",
"safari": "11",
"node": "7.6",
"deno": "1",
"ios": "11",
"samsung": "6",
"opera_mobile": "42",
"electron": "1.6"
},
"bugfix/transform-edge-default-parameters": {
"chrome": "49",
"opera": "36",
"edge": "18",
"firefox": "52",
"safari": "10",
"node": "6",
"deno": "1",
"ios": "10",
"samsung": "5",
"opera_mobile": "36",
"electron": "0.37"
},
"bugfix/transform-edge-function-name": {
"chrome": "51",
"opera": "38",
"edge": "79",
"firefox": "53",
"safari": "10",
"node": "6.5",
"deno": "1",
"ios": "10",
"samsung": "5",
"opera_mobile": "41",
"electron": "1.2"
},
"bugfix/transform-safari-block-shadowing": {
"chrome": "49",
"opera": "36",
"edge": "12",
"firefox": "44",
"safari": "11",
"node": "6",
"deno": "1",
"ie": "11",
"ios": "11",
"samsung": "5",
"opera_mobile": "36",
"electron": "0.37"
},
"bugfix/transform-safari-for-shadowing": {
"chrome": "49",
"opera": "36",
"edge": "12",
"firefox": "4",
"safari": "11",
"node": "6",
"deno": "1",
"ie": "11",
"ios": "11",
"samsung": "5",
"rhino": "1.7.13",
"opera_mobile": "36",
"electron": "0.37"
},
"bugfix/transform-safari-id-destructuring-collision-in-function-expression": {
"chrome": "49",
"opera": "36",
"edge": "14",
"firefox": "2",
"safari": "16.3",
"node": "6",
"deno": "1",
"ios": "16.3",
"samsung": "5",
"opera_mobile": "36",
"electron": "0.37"
},
"bugfix/transform-tagged-template-caching": {
"chrome": "41",
"opera": "28",
"edge": "12",
"firefox": "34",
"safari": "13",
"node": "4",
"deno": "1",
"ios": "13",
"samsung": "3.4",
"rhino": "1.7.14",
"opera_mobile": "28",
"electron": "0.21"
},
"bugfix/transform-v8-spread-parameters-in-optional-chaining": {
"chrome": "91",
"opera": "77",
"edge": "91",
"firefox": "74",
"safari": "13.1",
"node": "16.9",
"deno": "1.9",
"ios": "13.4",
"samsung": "16",
"opera_mobile": "64",
"electron": "13.0"
},
"bugfix/transform-firefox-class-in-computed-class-key": {
"chrome": "74",
"opera": "62",
"edge": "79",
"safari": "16",
"node": "12",
"deno": "1",
"ios": "16",
"samsung": "11",
"opera_mobile": "53",
"electron": "6.0"
},
"transform-optional-chaining": {
"chrome": "80",
"opera": "67",
"edge": "80",
"firefox": "74",
"safari": "13.1",
"node": "14",
"deno": "1",
"ios": "13.4",
"samsung": "13",
"opera_mobile": "57",
"electron": "8.0"
},
"proposal-optional-chaining": {
"chrome": "80",
"opera": "67",
"edge": "80",
"firefox": "74",
"safari": "13.1",
"node": "14",
"deno": "1",
"ios": "13.4",
"samsung": "13",
"opera_mobile": "57",
"electron": "8.0"
},
"transform-parameters": {
"chrome": "49",
"opera": "36",
"edge": "15",
"firefox": "53",
"safari": "10",
"node": "6",
"deno": "1",
"ios": "10",
"samsung": "5",
"opera_mobile": "36",
"electron": "0.37"
},
"transform-async-to-generator": {
"chrome": "55",
"opera": "42",
"edge": "15",
"firefox": "52",
"safari": "10.1",
"node": "7.6",
"deno": "1",
"ios": "10.3",
"samsung": "6",
"opera_mobile": "42",
"electron": "1.6"
},
"transform-template-literals": {
"chrome": "41",
"opera": "28",
"edge": "13",
"firefox": "34",
"safari": "9",
"node": "4",
"deno": "1",
"ios": "9",
"samsung": "3.4",
"opera_mobile": "28",
"electron": "0.21"
},
"transform-function-name": {
"chrome": "51",
"opera": "38",
"edge": "14",
"firefox": "53",
"safari": "10",
"node": "6.5",
"deno": "1",
"ios": "10",
"samsung": "5",
"opera_mobile": "41",
"electron": "1.2"
},
"transform-block-scoping": {
"chrome": "50",
"opera": "37",
"edge": "14",
"firefox": "53",
"safari": "10",
"node": "6",
"deno": "1",
"ios": "10",
"samsung": "5",
"opera_mobile": "37",
"electron": "1.1"
}
}

View File

@@ -0,0 +1,825 @@
{
"transform-duplicate-named-capturing-groups-regex": {
"chrome": "126",
"opera": "112",
"edge": "126",
"firefox": "129",
"safari": "17.4",
"node": "23",
"ios": "17.4",
"electron": "31.0"
},
"transform-regexp-modifiers": {
"chrome": "125",
"opera": "111",
"edge": "125",
"firefox": "132",
"node": "23",
"electron": "31.0"
},
"transform-unicode-sets-regex": {
"chrome": "112",
"opera": "98",
"edge": "112",
"firefox": "116",
"safari": "17",
"node": "20",
"deno": "1.32",
"ios": "17",
"opera_mobile": "75",
"electron": "24.0"
},
"bugfix/transform-v8-static-class-fields-redefine-readonly": {
"chrome": "98",
"opera": "84",
"edge": "98",
"firefox": "75",
"safari": "15",
"node": "12",
"deno": "1.18",
"ios": "15",
"samsung": "11",
"opera_mobile": "52",
"electron": "17.0"
},
"bugfix/transform-firefox-class-in-computed-class-key": {
"chrome": "74",
"opera": "62",
"edge": "79",
"safari": "16",
"node": "12",
"deno": "1",
"ios": "16",
"samsung": "11",
"opera_mobile": "53",
"electron": "6.0"
},
"bugfix/transform-safari-class-field-initializer-scope": {
"chrome": "74",
"opera": "62",
"edge": "79",
"firefox": "69",
"safari": "16",
"node": "12",
"deno": "1",
"ios": "16",
"samsung": "11",
"opera_mobile": "53",
"electron": "6.0"
},
"transform-class-static-block": {
"chrome": "94",
"opera": "80",
"edge": "94",
"firefox": "93",
"safari": "16.4",
"node": "16.11",
"deno": "1.14",
"ios": "16.4",
"samsung": "17",
"opera_mobile": "66",
"electron": "15.0"
},
"proposal-class-static-block": {
"chrome": "94",
"opera": "80",
"edge": "94",
"firefox": "93",
"safari": "16.4",
"node": "16.11",
"deno": "1.14",
"ios": "16.4",
"samsung": "17",
"opera_mobile": "66",
"electron": "15.0"
},
"transform-private-property-in-object": {
"chrome": "91",
"opera": "77",
"edge": "91",
"firefox": "90",
"safari": "15",
"node": "16.9",
"deno": "1.9",
"ios": "15",
"samsung": "16",
"opera_mobile": "64",
"electron": "13.0"
},
"proposal-private-property-in-object": {
"chrome": "91",
"opera": "77",
"edge": "91",
"firefox": "90",
"safari": "15",
"node": "16.9",
"deno": "1.9",
"ios": "15",
"samsung": "16",
"opera_mobile": "64",
"electron": "13.0"
},
"transform-class-properties": {
"chrome": "74",
"opera": "62",
"edge": "79",
"firefox": "90",
"safari": "14.1",
"node": "12",
"deno": "1",
"ios": "14.5",
"samsung": "11",
"opera_mobile": "53",
"electron": "6.0"
},
"proposal-class-properties": {
"chrome": "74",
"opera": "62",
"edge": "79",
"firefox": "90",
"safari": "14.1",
"node": "12",
"deno": "1",
"ios": "14.5",
"samsung": "11",
"opera_mobile": "53",
"electron": "6.0"
},
"transform-private-methods": {
"chrome": "84",
"opera": "70",
"edge": "84",
"firefox": "90",
"safari": "15",
"node": "14.6",
"deno": "1",
"ios": "15",
"samsung": "14",
"opera_mobile": "60",
"electron": "10.0"
},
"proposal-private-methods": {
"chrome": "84",
"opera": "70",
"edge": "84",
"firefox": "90",
"safari": "15",
"node": "14.6",
"deno": "1",
"ios": "15",
"samsung": "14",
"opera_mobile": "60",
"electron": "10.0"
},
"transform-numeric-separator": {
"chrome": "75",
"opera": "62",
"edge": "79",
"firefox": "70",
"safari": "13",
"node": "12.5",
"deno": "1",
"ios": "13",
"samsung": "11",
"rhino": "1.7.14",
"opera_mobile": "54",
"electron": "6.0"
},
"proposal-numeric-separator": {
"chrome": "75",
"opera": "62",
"edge": "79",
"firefox": "70",
"safari": "13",
"node": "12.5",
"deno": "1",
"ios": "13",
"samsung": "11",
"rhino": "1.7.14",
"opera_mobile": "54",
"electron": "6.0"
},
"transform-logical-assignment-operators": {
"chrome": "85",
"opera": "71",
"edge": "85",
"firefox": "79",
"safari": "14",
"node": "15",
"deno": "1.2",
"ios": "14",
"samsung": "14",
"opera_mobile": "60",
"electron": "10.0"
},
"proposal-logical-assignment-operators": {
"chrome": "85",
"opera": "71",
"edge": "85",
"firefox": "79",
"safari": "14",
"node": "15",
"deno": "1.2",
"ios": "14",
"samsung": "14",
"opera_mobile": "60",
"electron": "10.0"
},
"transform-nullish-coalescing-operator": {
"chrome": "80",
"opera": "67",
"edge": "80",
"firefox": "72",
"safari": "13.1",
"node": "14",
"deno": "1",
"ios": "13.4",
"samsung": "13",
"opera_mobile": "57",
"electron": "8.0"
},
"proposal-nullish-coalescing-operator": {
"chrome": "80",
"opera": "67",
"edge": "80",
"firefox": "72",
"safari": "13.1",
"node": "14",
"deno": "1",
"ios": "13.4",
"samsung": "13",
"opera_mobile": "57",
"electron": "8.0"
},
"transform-optional-chaining": {
"chrome": "91",
"opera": "77",
"edge": "91",
"firefox": "74",
"safari": "13.1",
"node": "16.9",
"deno": "1.9",
"ios": "13.4",
"samsung": "16",
"opera_mobile": "64",
"electron": "13.0"
},
"proposal-optional-chaining": {
"chrome": "91",
"opera": "77",
"edge": "91",
"firefox": "74",
"safari": "13.1",
"node": "16.9",
"deno": "1.9",
"ios": "13.4",
"samsung": "16",
"opera_mobile": "64",
"electron": "13.0"
},
"transform-json-strings": {
"chrome": "66",
"opera": "53",
"edge": "79",
"firefox": "62",
"safari": "12",
"node": "10",
"deno": "1",
"ios": "12",
"samsung": "9",
"rhino": "1.7.14",
"opera_mobile": "47",
"electron": "3.0"
},
"proposal-json-strings": {
"chrome": "66",
"opera": "53",
"edge": "79",
"firefox": "62",
"safari": "12",
"node": "10",
"deno": "1",
"ios": "12",
"samsung": "9",
"rhino": "1.7.14",
"opera_mobile": "47",
"electron": "3.0"
},
"transform-optional-catch-binding": {
"chrome": "66",
"opera": "53",
"edge": "79",
"firefox": "58",
"safari": "11.1",
"node": "10",
"deno": "1",
"ios": "11.3",
"samsung": "9",
"opera_mobile": "47",
"electron": "3.0"
},
"proposal-optional-catch-binding": {
"chrome": "66",
"opera": "53",
"edge": "79",
"firefox": "58",
"safari": "11.1",
"node": "10",
"deno": "1",
"ios": "11.3",
"samsung": "9",
"opera_mobile": "47",
"electron": "3.0"
},
"transform-parameters": {
"chrome": "49",
"opera": "36",
"edge": "18",
"firefox": "53",
"safari": "16.3",
"node": "6",
"deno": "1",
"ios": "16.3",
"samsung": "5",
"opera_mobile": "36",
"electron": "0.37"
},
"transform-async-generator-functions": {
"chrome": "63",
"opera": "50",
"edge": "79",
"firefox": "57",
"safari": "12",
"node": "10",
"deno": "1",
"ios": "12",
"samsung": "8",
"opera_mobile": "46",
"electron": "3.0"
},
"proposal-async-generator-functions": {
"chrome": "63",
"opera": "50",
"edge": "79",
"firefox": "57",
"safari": "12",
"node": "10",
"deno": "1",
"ios": "12",
"samsung": "8",
"opera_mobile": "46",
"electron": "3.0"
},
"transform-object-rest-spread": {
"chrome": "60",
"opera": "47",
"edge": "79",
"firefox": "55",
"safari": "11.1",
"node": "8.3",
"deno": "1",
"ios": "11.3",
"samsung": "8",
"opera_mobile": "44",
"electron": "2.0"
},
"proposal-object-rest-spread": {
"chrome": "60",
"opera": "47",
"edge": "79",
"firefox": "55",
"safari": "11.1",
"node": "8.3",
"deno": "1",
"ios": "11.3",
"samsung": "8",
"opera_mobile": "44",
"electron": "2.0"
},
"transform-dotall-regex": {
"chrome": "62",
"opera": "49",
"edge": "79",
"firefox": "78",
"safari": "11.1",
"node": "8.10",
"deno": "1",
"ios": "11.3",
"samsung": "8",
"rhino": "1.7.15",
"opera_mobile": "46",
"electron": "3.0"
},
"transform-unicode-property-regex": {
"chrome": "64",
"opera": "51",
"edge": "79",
"firefox": "78",
"safari": "11.1",
"node": "10",
"deno": "1",
"ios": "11.3",
"samsung": "9",
"opera_mobile": "47",
"electron": "3.0"
},
"proposal-unicode-property-regex": {
"chrome": "64",
"opera": "51",
"edge": "79",
"firefox": "78",
"safari": "11.1",
"node": "10",
"deno": "1",
"ios": "11.3",
"samsung": "9",
"opera_mobile": "47",
"electron": "3.0"
},
"transform-named-capturing-groups-regex": {
"chrome": "64",
"opera": "51",
"edge": "79",
"firefox": "78",
"safari": "11.1",
"node": "10",
"deno": "1",
"ios": "11.3",
"samsung": "9",
"opera_mobile": "47",
"electron": "3.0"
},
"transform-async-to-generator": {
"chrome": "55",
"opera": "42",
"edge": "15",
"firefox": "52",
"safari": "11",
"node": "7.6",
"deno": "1",
"ios": "11",
"samsung": "6",
"opera_mobile": "42",
"electron": "1.6"
},
"transform-exponentiation-operator": {
"chrome": "52",
"opera": "39",
"edge": "14",
"firefox": "52",
"safari": "10.1",
"node": "7",
"deno": "1",
"ios": "10.3",
"samsung": "6",
"rhino": "1.7.14",
"opera_mobile": "41",
"electron": "1.3"
},
"transform-template-literals": {
"chrome": "41",
"opera": "28",
"edge": "13",
"firefox": "34",
"safari": "13",
"node": "4",
"deno": "1",
"ios": "13",
"samsung": "3.4",
"opera_mobile": "28",
"electron": "0.21"
},
"transform-literals": {
"chrome": "44",
"opera": "31",
"edge": "12",
"firefox": "53",
"safari": "9",
"node": "4",
"deno": "1",
"ios": "9",
"samsung": "4",
"rhino": "1.7.15",
"opera_mobile": "32",
"electron": "0.30"
},
"transform-function-name": {
"chrome": "51",
"opera": "38",
"edge": "79",
"firefox": "53",
"safari": "10",
"node": "6.5",
"deno": "1",
"ios": "10",
"samsung": "5",
"opera_mobile": "41",
"electron": "1.2"
},
"transform-arrow-functions": {
"chrome": "47",
"opera": "34",
"edge": "13",
"firefox": "43",
"safari": "10",
"node": "6",
"deno": "1",
"ios": "10",
"samsung": "5",
"rhino": "1.7.13",
"opera_mobile": "34",
"electron": "0.36"
},
"transform-block-scoped-functions": {
"chrome": "41",
"opera": "28",
"edge": "12",
"firefox": "46",
"safari": "10",
"node": "4",
"deno": "1",
"ie": "11",
"ios": "10",
"samsung": "3.4",
"opera_mobile": "28",
"electron": "0.21"
},
"transform-classes": {
"chrome": "46",
"opera": "33",
"edge": "13",
"firefox": "45",
"safari": "10",
"node": "5",
"deno": "1",
"ios": "10",
"samsung": "5",
"opera_mobile": "33",
"electron": "0.36"
},
"transform-object-super": {
"chrome": "46",
"opera": "33",
"edge": "13",
"firefox": "45",
"safari": "10",
"node": "5",
"deno": "1",
"ios": "10",
"samsung": "5",
"opera_mobile": "33",
"electron": "0.36"
},
"transform-shorthand-properties": {
"chrome": "43",
"opera": "30",
"edge": "12",
"firefox": "33",
"safari": "9",
"node": "4",
"deno": "1",
"ios": "9",
"samsung": "4",
"rhino": "1.7.14",
"opera_mobile": "30",
"electron": "0.27"
},
"transform-duplicate-keys": {
"chrome": "42",
"opera": "29",
"edge": "12",
"firefox": "34",
"safari": "9",
"node": "4",
"deno": "1",
"ios": "9",
"samsung": "3.4",
"opera_mobile": "29",
"electron": "0.25"
},
"transform-computed-properties": {
"chrome": "44",
"opera": "31",
"edge": "12",
"firefox": "34",
"safari": "7.1",
"node": "4",
"deno": "1",
"ios": "8",
"samsung": "4",
"opera_mobile": "32",
"electron": "0.30"
},
"transform-for-of": {
"chrome": "51",
"opera": "38",
"edge": "15",
"firefox": "53",
"safari": "10",
"node": "6.5",
"deno": "1",
"ios": "10",
"samsung": "5",
"opera_mobile": "41",
"electron": "1.2"
},
"transform-sticky-regex": {
"chrome": "49",
"opera": "36",
"edge": "13",
"firefox": "3",
"safari": "10",
"node": "6",
"deno": "1",
"ios": "10",
"samsung": "5",
"rhino": "1.7.15",
"opera_mobile": "36",
"electron": "0.37"
},
"transform-unicode-escapes": {
"chrome": "44",
"opera": "31",
"edge": "12",
"firefox": "53",
"safari": "9",
"node": "4",
"deno": "1",
"ios": "9",
"samsung": "4",
"rhino": "1.7.15",
"opera_mobile": "32",
"electron": "0.30"
},
"transform-unicode-regex": {
"chrome": "50",
"opera": "37",
"edge": "13",
"firefox": "46",
"safari": "12",
"node": "6",
"deno": "1",
"ios": "12",
"samsung": "5",
"opera_mobile": "37",
"electron": "1.1"
},
"transform-spread": {
"chrome": "46",
"opera": "33",
"edge": "13",
"firefox": "45",
"safari": "10",
"node": "5",
"deno": "1",
"ios": "10",
"samsung": "5",
"opera_mobile": "33",
"electron": "0.36"
},
"transform-destructuring": {
"chrome": "51",
"opera": "38",
"edge": "15",
"firefox": "53",
"safari": "10",
"node": "6.5",
"deno": "1",
"ios": "10",
"samsung": "5",
"opera_mobile": "41",
"electron": "1.2"
},
"transform-block-scoping": {
"chrome": "50",
"opera": "37",
"edge": "14",
"firefox": "53",
"safari": "11",
"node": "6",
"deno": "1",
"ios": "11",
"samsung": "5",
"opera_mobile": "37",
"electron": "1.1"
},
"transform-typeof-symbol": {
"chrome": "38",
"opera": "25",
"edge": "12",
"firefox": "36",
"safari": "9",
"node": "0.12",
"deno": "1",
"ios": "9",
"samsung": "3",
"rhino": "1.7.13",
"opera_mobile": "25",
"electron": "0.20"
},
"transform-new-target": {
"chrome": "46",
"opera": "33",
"edge": "14",
"firefox": "41",
"safari": "10",
"node": "5",
"deno": "1",
"ios": "10",
"samsung": "5",
"opera_mobile": "33",
"electron": "0.36"
},
"transform-regenerator": {
"chrome": "50",
"opera": "37",
"edge": "13",
"firefox": "53",
"safari": "10",
"node": "6",
"deno": "1",
"ios": "10",
"samsung": "5",
"opera_mobile": "37",
"electron": "1.1"
},
"transform-member-expression-literals": {
"chrome": "7",
"opera": "12",
"edge": "12",
"firefox": "2",
"safari": "5.1",
"node": "0.4",
"deno": "1",
"ie": "9",
"android": "4",
"ios": "6",
"phantom": "1.9",
"samsung": "1",
"rhino": "1.7.13",
"opera_mobile": "12",
"electron": "0.20"
},
"transform-property-literals": {
"chrome": "7",
"opera": "12",
"edge": "12",
"firefox": "2",
"safari": "5.1",
"node": "0.4",
"deno": "1",
"ie": "9",
"android": "4",
"ios": "6",
"phantom": "1.9",
"samsung": "1",
"rhino": "1.7.13",
"opera_mobile": "12",
"electron": "0.20"
},
"transform-reserved-words": {
"chrome": "13",
"opera": "10.50",
"edge": "12",
"firefox": "2",
"safari": "3.1",
"node": "0.6",
"deno": "1",
"ie": "9",
"android": "4.4",
"ios": "6",
"phantom": "1.9",
"samsung": "1",
"rhino": "1.7.13",
"opera_mobile": "10.1",
"electron": "0.20"
},
"transform-export-namespace-from": {
"chrome": "72",
"deno": "1.0",
"edge": "79",
"firefox": "80",
"node": "13.2",
"opera": "60",
"opera_mobile": "51",
"safari": "14.1",
"ios": "14.5",
"samsung": "11.0",
"android": "72",
"electron": "5.0"
},
"proposal-export-namespace-from": {
"chrome": "72",
"deno": "1.0",
"edge": "79",
"firefox": "80",
"node": "13.2",
"opera": "60",
"opera_mobile": "51",
"safari": "14.1",
"ios": "14.5",
"samsung": "11.0",
"android": "72",
"electron": "5.0"
}
}

View File

@@ -0,0 +1 @@
module.exports = require("./data/native-modules.json");

View File

@@ -0,0 +1 @@
module.exports = require("./data/overlapping-plugins.json");

View File

@@ -0,0 +1,40 @@
{
"name": "@babel/compat-data",
"version": "7.26.3",
"author": "The Babel Team (https://babel.dev/team)",
"license": "MIT",
"description": "The compat-data to determine required Babel plugins",
"repository": {
"type": "git",
"url": "https://github.com/babel/babel.git",
"directory": "packages/babel-compat-data"
},
"publishConfig": {
"access": "public"
},
"exports": {
"./plugins": "./plugins.js",
"./native-modules": "./native-modules.js",
"./corejs2-built-ins": "./corejs2-built-ins.js",
"./corejs3-shipped-proposals": "./corejs3-shipped-proposals.js",
"./overlapping-plugins": "./overlapping-plugins.js",
"./plugin-bugfixes": "./plugin-bugfixes.js"
},
"scripts": {
"build-data": "./scripts/download-compat-table.sh && node ./scripts/build-data.js && node ./scripts/build-modules-support.js && node ./scripts/build-bugfixes-targets.js"
},
"keywords": [
"babel",
"compat-table",
"compat-data"
],
"devDependencies": {
"@mdn/browser-compat-data": "^5.5.36",
"core-js-compat": "^3.37.1",
"electron-to-chromium": "^1.4.816"
},
"engines": {
"node": ">=6.9.0"
},
"type": "commonjs"
}

View File

@@ -0,0 +1 @@
module.exports = require("./data/plugin-bugfixes.json");

View File

@@ -0,0 +1 @@
module.exports = require("./data/plugins.json");

View File

@@ -0,0 +1 @@
../../../@ampproject+remapping@2.3.0/node_modules/@ampproject/remapping

View File

@@ -0,0 +1 @@
../../../@babel+code-frame@7.26.2/node_modules/@babel/code-frame

View File

@@ -0,0 +1,22 @@
MIT License
Copyright (c) 2014-present Sebastian McKenzie and other contributors
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -0,0 +1,19 @@
# @babel/core
> Babel compiler core.
See our website [@babel/core](https://babeljs.io/docs/babel-core) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20core%22+is%3Aopen) associated with this package.
## Install
Using npm:
```sh
npm install --save-dev @babel/core
```
or using yarn:
```sh
yarn add @babel/core --dev
```

View File

@@ -0,0 +1,68 @@
"use strict";
const babelP = import("./lib/index.js");
let babel = null;
Object.defineProperty(exports, "__ initialize @babel/core cjs proxy __", {
set(val) {
babel = val;
},
});
exports.version = require("./package.json").version;
const functionNames = [
"createConfigItem",
"loadPartialConfig",
"loadOptions",
"transform",
"transformFile",
"transformFromAst",
"parse",
];
const propertyNames = [
"buildExternalHelpers",
"types",
"tokTypes",
"traverse",
"template",
];
for (const name of functionNames) {
exports[name] = function (...args) {
if (
process.env.BABEL_8_BREAKING &&
typeof args[args.length - 1] !== "function"
) {
throw new Error(
`Starting from Babel 8.0.0, the '${name}' function expects a callback. If you need to call it synchronously, please use '${name}Sync'.`
);
}
babelP.then(babel => {
babel[name](...args);
});
};
exports[`${name}Async`] = function (...args) {
return babelP.then(babel => babel[`${name}Async`](...args));
};
exports[`${name}Sync`] = function (...args) {
if (!babel) throw notLoadedError(`${name}Sync`, "callable");
return babel[`${name}Sync`](...args);
};
}
for (const name of propertyNames) {
Object.defineProperty(exports, name, {
get() {
if (!babel) throw notLoadedError(name, "accessible");
return babel[name];
},
});
}
function notLoadedError(name, keyword) {
return new Error(
`The \`${name}\` export of @babel/core is only ${keyword}` +
` from the CommonJS version after that the ESM version is loaded.`
);
}

View File

@@ -0,0 +1,3 @@
0 && 0;
//# sourceMappingURL=cache-contexts.js.map

View File

@@ -0,0 +1 @@
{"version":3,"names":[],"sources":["../../src/config/cache-contexts.ts"],"sourcesContent":["import type { Targets } from \"@babel/helper-compilation-targets\";\n\nimport type { ConfigContext } from \"./config-chain.ts\";\nimport type { CallerMetadata } from \"./validation/options.ts\";\n\nexport type { ConfigContext as FullConfig };\n\nexport type FullPreset = {\n targets: Targets;\n} & ConfigContext;\nexport type FullPlugin = {\n assumptions: { [name: string]: boolean };\n} & FullPreset;\n\n// Context not including filename since it is used in places that cannot\n// process 'ignore'/'only' and other filename-based logic.\nexport type SimpleConfig = {\n envName: string;\n caller: CallerMetadata | undefined;\n};\nexport type SimplePreset = {\n targets: Targets;\n} & SimpleConfig;\nexport type SimplePlugin = {\n assumptions: {\n [name: string]: boolean;\n };\n} & SimplePreset;\n"],"mappings":"","ignoreList":[]}

View File

@@ -0,0 +1,261 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.assertSimpleType = assertSimpleType;
exports.makeStrongCache = makeStrongCache;
exports.makeStrongCacheSync = makeStrongCacheSync;
exports.makeWeakCache = makeWeakCache;
exports.makeWeakCacheSync = makeWeakCacheSync;
function _gensync() {
const data = require("gensync");
_gensync = function () {
return data;
};
return data;
}
var _async = require("../gensync-utils/async.js");
var _util = require("./util.js");
const synchronize = gen => {
return _gensync()(gen).sync;
};
function* genTrue() {
return true;
}
function makeWeakCache(handler) {
return makeCachedFunction(WeakMap, handler);
}
function makeWeakCacheSync(handler) {
return synchronize(makeWeakCache(handler));
}
function makeStrongCache(handler) {
return makeCachedFunction(Map, handler);
}
function makeStrongCacheSync(handler) {
return synchronize(makeStrongCache(handler));
}
function makeCachedFunction(CallCache, handler) {
const callCacheSync = new CallCache();
const callCacheAsync = new CallCache();
const futureCache = new CallCache();
return function* cachedFunction(arg, data) {
const asyncContext = yield* (0, _async.isAsync)();
const callCache = asyncContext ? callCacheAsync : callCacheSync;
const cached = yield* getCachedValueOrWait(asyncContext, callCache, futureCache, arg, data);
if (cached.valid) return cached.value;
const cache = new CacheConfigurator(data);
const handlerResult = handler(arg, cache);
let finishLock;
let value;
if ((0, _util.isIterableIterator)(handlerResult)) {
value = yield* (0, _async.onFirstPause)(handlerResult, () => {
finishLock = setupAsyncLocks(cache, futureCache, arg);
});
} else {
value = handlerResult;
}
updateFunctionCache(callCache, cache, arg, value);
if (finishLock) {
futureCache.delete(arg);
finishLock.release(value);
}
return value;
};
}
function* getCachedValue(cache, arg, data) {
const cachedValue = cache.get(arg);
if (cachedValue) {
for (const {
value,
valid
} of cachedValue) {
if (yield* valid(data)) return {
valid: true,
value
};
}
}
return {
valid: false,
value: null
};
}
function* getCachedValueOrWait(asyncContext, callCache, futureCache, arg, data) {
const cached = yield* getCachedValue(callCache, arg, data);
if (cached.valid) {
return cached;
}
if (asyncContext) {
const cached = yield* getCachedValue(futureCache, arg, data);
if (cached.valid) {
const value = yield* (0, _async.waitFor)(cached.value.promise);
return {
valid: true,
value
};
}
}
return {
valid: false,
value: null
};
}
function setupAsyncLocks(config, futureCache, arg) {
const finishLock = new Lock();
updateFunctionCache(futureCache, config, arg, finishLock);
return finishLock;
}
function updateFunctionCache(cache, config, arg, value) {
if (!config.configured()) config.forever();
let cachedValue = cache.get(arg);
config.deactivate();
switch (config.mode()) {
case "forever":
cachedValue = [{
value,
valid: genTrue
}];
cache.set(arg, cachedValue);
break;
case "invalidate":
cachedValue = [{
value,
valid: config.validator()
}];
cache.set(arg, cachedValue);
break;
case "valid":
if (cachedValue) {
cachedValue.push({
value,
valid: config.validator()
});
} else {
cachedValue = [{
value,
valid: config.validator()
}];
cache.set(arg, cachedValue);
}
}
}
class CacheConfigurator {
constructor(data) {
this._active = true;
this._never = false;
this._forever = false;
this._invalidate = false;
this._configured = false;
this._pairs = [];
this._data = void 0;
this._data = data;
}
simple() {
return makeSimpleConfigurator(this);
}
mode() {
if (this._never) return "never";
if (this._forever) return "forever";
if (this._invalidate) return "invalidate";
return "valid";
}
forever() {
if (!this._active) {
throw new Error("Cannot change caching after evaluation has completed.");
}
if (this._never) {
throw new Error("Caching has already been configured with .never()");
}
this._forever = true;
this._configured = true;
}
never() {
if (!this._active) {
throw new Error("Cannot change caching after evaluation has completed.");
}
if (this._forever) {
throw new Error("Caching has already been configured with .forever()");
}
this._never = true;
this._configured = true;
}
using(handler) {
if (!this._active) {
throw new Error("Cannot change caching after evaluation has completed.");
}
if (this._never || this._forever) {
throw new Error("Caching has already been configured with .never or .forever()");
}
this._configured = true;
const key = handler(this._data);
const fn = (0, _async.maybeAsync)(handler, `You appear to be using an async cache handler, but Babel has been called synchronously`);
if ((0, _async.isThenable)(key)) {
return key.then(key => {
this._pairs.push([key, fn]);
return key;
});
}
this._pairs.push([key, fn]);
return key;
}
invalidate(handler) {
this._invalidate = true;
return this.using(handler);
}
validator() {
const pairs = this._pairs;
return function* (data) {
for (const [key, fn] of pairs) {
if (key !== (yield* fn(data))) return false;
}
return true;
};
}
deactivate() {
this._active = false;
}
configured() {
return this._configured;
}
}
function makeSimpleConfigurator(cache) {
function cacheFn(val) {
if (typeof val === "boolean") {
if (val) cache.forever();else cache.never();
return;
}
return cache.using(() => assertSimpleType(val()));
}
cacheFn.forever = () => cache.forever();
cacheFn.never = () => cache.never();
cacheFn.using = cb => cache.using(() => assertSimpleType(cb()));
cacheFn.invalidate = cb => cache.invalidate(() => assertSimpleType(cb()));
return cacheFn;
}
function assertSimpleType(value) {
if ((0, _async.isThenable)(value)) {
throw new Error(`You appear to be using an async cache handler, ` + `which your current version of Babel does not support. ` + `We may add support for this in the future, ` + `but if you're on the most recent version of @babel/core and still ` + `seeing this error, then you'll need to synchronously handle your caching logic.`);
}
if (value != null && typeof value !== "string" && typeof value !== "boolean" && typeof value !== "number") {
throw new Error("Cache keys must be either string, boolean, number, null, or undefined.");
}
return value;
}
class Lock {
constructor() {
this.released = false;
this.promise = void 0;
this._resolve = void 0;
this.promise = new Promise(resolve => {
this._resolve = resolve;
});
}
release(value) {
this.released = true;
this._resolve(value);
}
}
0 && 0;
//# sourceMappingURL=caching.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,469 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.buildPresetChain = buildPresetChain;
exports.buildPresetChainWalker = void 0;
exports.buildRootChain = buildRootChain;
function _path() {
const data = require("path");
_path = function () {
return data;
};
return data;
}
function _debug() {
const data = require("debug");
_debug = function () {
return data;
};
return data;
}
var _options = require("./validation/options.js");
var _patternToRegex = require("./pattern-to-regex.js");
var _printer = require("./printer.js");
var _rewriteStackTrace = require("../errors/rewrite-stack-trace.js");
var _configError = require("../errors/config-error.js");
var _index = require("./files/index.js");
var _caching = require("./caching.js");
var _configDescriptors = require("./config-descriptors.js");
const debug = _debug()("babel:config:config-chain");
function* buildPresetChain(arg, context) {
const chain = yield* buildPresetChainWalker(arg, context);
if (!chain) return null;
return {
plugins: dedupDescriptors(chain.plugins),
presets: dedupDescriptors(chain.presets),
options: chain.options.map(o => normalizeOptions(o)),
files: new Set()
};
}
const buildPresetChainWalker = exports.buildPresetChainWalker = makeChainWalker({
root: preset => loadPresetDescriptors(preset),
env: (preset, envName) => loadPresetEnvDescriptors(preset)(envName),
overrides: (preset, index) => loadPresetOverridesDescriptors(preset)(index),
overridesEnv: (preset, index, envName) => loadPresetOverridesEnvDescriptors(preset)(index)(envName),
createLogger: () => () => {}
});
const loadPresetDescriptors = (0, _caching.makeWeakCacheSync)(preset => buildRootDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors));
const loadPresetEnvDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(envName => buildEnvDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, envName)));
const loadPresetOverridesDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(index => buildOverrideDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, index)));
const loadPresetOverridesEnvDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(index => (0, _caching.makeStrongCacheSync)(envName => buildOverrideEnvDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, index, envName))));
function* buildRootChain(opts, context) {
let configReport, babelRcReport;
const programmaticLogger = new _printer.ConfigPrinter();
const programmaticChain = yield* loadProgrammaticChain({
options: opts,
dirname: context.cwd
}, context, undefined, programmaticLogger);
if (!programmaticChain) return null;
const programmaticReport = yield* programmaticLogger.output();
let configFile;
if (typeof opts.configFile === "string") {
configFile = yield* (0, _index.loadConfig)(opts.configFile, context.cwd, context.envName, context.caller);
} else if (opts.configFile !== false) {
configFile = yield* (0, _index.findRootConfig)(context.root, context.envName, context.caller);
}
let {
babelrc,
babelrcRoots
} = opts;
let babelrcRootsDirectory = context.cwd;
const configFileChain = emptyChain();
const configFileLogger = new _printer.ConfigPrinter();
if (configFile) {
const validatedFile = validateConfigFile(configFile);
const result = yield* loadFileChain(validatedFile, context, undefined, configFileLogger);
if (!result) return null;
configReport = yield* configFileLogger.output();
if (babelrc === undefined) {
babelrc = validatedFile.options.babelrc;
}
if (babelrcRoots === undefined) {
babelrcRootsDirectory = validatedFile.dirname;
babelrcRoots = validatedFile.options.babelrcRoots;
}
mergeChain(configFileChain, result);
}
let ignoreFile, babelrcFile;
let isIgnored = false;
const fileChain = emptyChain();
if ((babelrc === true || babelrc === undefined) && typeof context.filename === "string") {
const pkgData = yield* (0, _index.findPackageData)(context.filename);
if (pkgData && babelrcLoadEnabled(context, pkgData, babelrcRoots, babelrcRootsDirectory)) {
({
ignore: ignoreFile,
config: babelrcFile
} = yield* (0, _index.findRelativeConfig)(pkgData, context.envName, context.caller));
if (ignoreFile) {
fileChain.files.add(ignoreFile.filepath);
}
if (ignoreFile && shouldIgnore(context, ignoreFile.ignore, null, ignoreFile.dirname)) {
isIgnored = true;
}
if (babelrcFile && !isIgnored) {
const validatedFile = validateBabelrcFile(babelrcFile);
const babelrcLogger = new _printer.ConfigPrinter();
const result = yield* loadFileChain(validatedFile, context, undefined, babelrcLogger);
if (!result) {
isIgnored = true;
} else {
babelRcReport = yield* babelrcLogger.output();
mergeChain(fileChain, result);
}
}
if (babelrcFile && isIgnored) {
fileChain.files.add(babelrcFile.filepath);
}
}
}
if (context.showConfig) {
console.log(`Babel configs on "${context.filename}" (ascending priority):\n` + [configReport, babelRcReport, programmaticReport].filter(x => !!x).join("\n\n") + "\n-----End Babel configs-----");
}
const chain = mergeChain(mergeChain(mergeChain(emptyChain(), configFileChain), fileChain), programmaticChain);
return {
plugins: isIgnored ? [] : dedupDescriptors(chain.plugins),
presets: isIgnored ? [] : dedupDescriptors(chain.presets),
options: isIgnored ? [] : chain.options.map(o => normalizeOptions(o)),
fileHandling: isIgnored ? "ignored" : "transpile",
ignore: ignoreFile || undefined,
babelrc: babelrcFile || undefined,
config: configFile || undefined,
files: chain.files
};
}
function babelrcLoadEnabled(context, pkgData, babelrcRoots, babelrcRootsDirectory) {
if (typeof babelrcRoots === "boolean") return babelrcRoots;
const absoluteRoot = context.root;
if (babelrcRoots === undefined) {
return pkgData.directories.includes(absoluteRoot);
}
let babelrcPatterns = babelrcRoots;
if (!Array.isArray(babelrcPatterns)) {
babelrcPatterns = [babelrcPatterns];
}
babelrcPatterns = babelrcPatterns.map(pat => {
return typeof pat === "string" ? _path().resolve(babelrcRootsDirectory, pat) : pat;
});
if (babelrcPatterns.length === 1 && babelrcPatterns[0] === absoluteRoot) {
return pkgData.directories.includes(absoluteRoot);
}
return babelrcPatterns.some(pat => {
if (typeof pat === "string") {
pat = (0, _patternToRegex.default)(pat, babelrcRootsDirectory);
}
return pkgData.directories.some(directory => {
return matchPattern(pat, babelrcRootsDirectory, directory, context);
});
});
}
const validateConfigFile = (0, _caching.makeWeakCacheSync)(file => ({
filepath: file.filepath,
dirname: file.dirname,
options: (0, _options.validate)("configfile", file.options, file.filepath)
}));
const validateBabelrcFile = (0, _caching.makeWeakCacheSync)(file => ({
filepath: file.filepath,
dirname: file.dirname,
options: (0, _options.validate)("babelrcfile", file.options, file.filepath)
}));
const validateExtendFile = (0, _caching.makeWeakCacheSync)(file => ({
filepath: file.filepath,
dirname: file.dirname,
options: (0, _options.validate)("extendsfile", file.options, file.filepath)
}));
const loadProgrammaticChain = makeChainWalker({
root: input => buildRootDescriptors(input, "base", _configDescriptors.createCachedDescriptors),
env: (input, envName) => buildEnvDescriptors(input, "base", _configDescriptors.createCachedDescriptors, envName),
overrides: (input, index) => buildOverrideDescriptors(input, "base", _configDescriptors.createCachedDescriptors, index),
overridesEnv: (input, index, envName) => buildOverrideEnvDescriptors(input, "base", _configDescriptors.createCachedDescriptors, index, envName),
createLogger: (input, context, baseLogger) => buildProgrammaticLogger(input, context, baseLogger)
});
const loadFileChainWalker = makeChainWalker({
root: file => loadFileDescriptors(file),
env: (file, envName) => loadFileEnvDescriptors(file)(envName),
overrides: (file, index) => loadFileOverridesDescriptors(file)(index),
overridesEnv: (file, index, envName) => loadFileOverridesEnvDescriptors(file)(index)(envName),
createLogger: (file, context, baseLogger) => buildFileLogger(file.filepath, context, baseLogger)
});
function* loadFileChain(input, context, files, baseLogger) {
const chain = yield* loadFileChainWalker(input, context, files, baseLogger);
chain == null || chain.files.add(input.filepath);
return chain;
}
const loadFileDescriptors = (0, _caching.makeWeakCacheSync)(file => buildRootDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors));
const loadFileEnvDescriptors = (0, _caching.makeWeakCacheSync)(file => (0, _caching.makeStrongCacheSync)(envName => buildEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, envName)));
const loadFileOverridesDescriptors = (0, _caching.makeWeakCacheSync)(file => (0, _caching.makeStrongCacheSync)(index => buildOverrideDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index)));
const loadFileOverridesEnvDescriptors = (0, _caching.makeWeakCacheSync)(file => (0, _caching.makeStrongCacheSync)(index => (0, _caching.makeStrongCacheSync)(envName => buildOverrideEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index, envName))));
function buildFileLogger(filepath, context, baseLogger) {
if (!baseLogger) {
return () => {};
}
return baseLogger.configure(context.showConfig, _printer.ChainFormatter.Config, {
filepath
});
}
function buildRootDescriptors({
dirname,
options
}, alias, descriptors) {
return descriptors(dirname, options, alias);
}
function buildProgrammaticLogger(_, context, baseLogger) {
var _context$caller;
if (!baseLogger) {
return () => {};
}
return baseLogger.configure(context.showConfig, _printer.ChainFormatter.Programmatic, {
callerName: (_context$caller = context.caller) == null ? void 0 : _context$caller.name
});
}
function buildEnvDescriptors({
dirname,
options
}, alias, descriptors, envName) {
var _options$env;
const opts = (_options$env = options.env) == null ? void 0 : _options$env[envName];
return opts ? descriptors(dirname, opts, `${alias}.env["${envName}"]`) : null;
}
function buildOverrideDescriptors({
dirname,
options
}, alias, descriptors, index) {
var _options$overrides;
const opts = (_options$overrides = options.overrides) == null ? void 0 : _options$overrides[index];
if (!opts) throw new Error("Assertion failure - missing override");
return descriptors(dirname, opts, `${alias}.overrides[${index}]`);
}
function buildOverrideEnvDescriptors({
dirname,
options
}, alias, descriptors, index, envName) {
var _options$overrides2, _override$env;
const override = (_options$overrides2 = options.overrides) == null ? void 0 : _options$overrides2[index];
if (!override) throw new Error("Assertion failure - missing override");
const opts = (_override$env = override.env) == null ? void 0 : _override$env[envName];
return opts ? descriptors(dirname, opts, `${alias}.overrides[${index}].env["${envName}"]`) : null;
}
function makeChainWalker({
root,
env,
overrides,
overridesEnv,
createLogger
}) {
return function* chainWalker(input, context, files = new Set(), baseLogger) {
const {
dirname
} = input;
const flattenedConfigs = [];
const rootOpts = root(input);
if (configIsApplicable(rootOpts, dirname, context, input.filepath)) {
flattenedConfigs.push({
config: rootOpts,
envName: undefined,
index: undefined
});
const envOpts = env(input, context.envName);
if (envOpts && configIsApplicable(envOpts, dirname, context, input.filepath)) {
flattenedConfigs.push({
config: envOpts,
envName: context.envName,
index: undefined
});
}
(rootOpts.options.overrides || []).forEach((_, index) => {
const overrideOps = overrides(input, index);
if (configIsApplicable(overrideOps, dirname, context, input.filepath)) {
flattenedConfigs.push({
config: overrideOps,
index,
envName: undefined
});
const overrideEnvOpts = overridesEnv(input, index, context.envName);
if (overrideEnvOpts && configIsApplicable(overrideEnvOpts, dirname, context, input.filepath)) {
flattenedConfigs.push({
config: overrideEnvOpts,
index,
envName: context.envName
});
}
}
});
}
if (flattenedConfigs.some(({
config: {
options: {
ignore,
only
}
}
}) => shouldIgnore(context, ignore, only, dirname))) {
return null;
}
const chain = emptyChain();
const logger = createLogger(input, context, baseLogger);
for (const {
config,
index,
envName
} of flattenedConfigs) {
if (!(yield* mergeExtendsChain(chain, config.options, dirname, context, files, baseLogger))) {
return null;
}
logger(config, index, envName);
yield* mergeChainOpts(chain, config);
}
return chain;
};
}
function* mergeExtendsChain(chain, opts, dirname, context, files, baseLogger) {
if (opts.extends === undefined) return true;
const file = yield* (0, _index.loadConfig)(opts.extends, dirname, context.envName, context.caller);
if (files.has(file)) {
throw new Error(`Configuration cycle detected loading ${file.filepath}.\n` + `File already loaded following the config chain:\n` + Array.from(files, file => ` - ${file.filepath}`).join("\n"));
}
files.add(file);
const fileChain = yield* loadFileChain(validateExtendFile(file), context, files, baseLogger);
files.delete(file);
if (!fileChain) return false;
mergeChain(chain, fileChain);
return true;
}
function mergeChain(target, source) {
target.options.push(...source.options);
target.plugins.push(...source.plugins);
target.presets.push(...source.presets);
for (const file of source.files) {
target.files.add(file);
}
return target;
}
function* mergeChainOpts(target, {
options,
plugins,
presets
}) {
target.options.push(options);
target.plugins.push(...(yield* plugins()));
target.presets.push(...(yield* presets()));
return target;
}
function emptyChain() {
return {
options: [],
presets: [],
plugins: [],
files: new Set()
};
}
function normalizeOptions(opts) {
const options = Object.assign({}, opts);
delete options.extends;
delete options.env;
delete options.overrides;
delete options.plugins;
delete options.presets;
delete options.passPerPreset;
delete options.ignore;
delete options.only;
delete options.test;
delete options.include;
delete options.exclude;
if (hasOwnProperty.call(options, "sourceMap")) {
options.sourceMaps = options.sourceMap;
delete options.sourceMap;
}
return options;
}
function dedupDescriptors(items) {
const map = new Map();
const descriptors = [];
for (const item of items) {
if (typeof item.value === "function") {
const fnKey = item.value;
let nameMap = map.get(fnKey);
if (!nameMap) {
nameMap = new Map();
map.set(fnKey, nameMap);
}
let desc = nameMap.get(item.name);
if (!desc) {
desc = {
value: item
};
descriptors.push(desc);
if (!item.ownPass) nameMap.set(item.name, desc);
} else {
desc.value = item;
}
} else {
descriptors.push({
value: item
});
}
}
return descriptors.reduce((acc, desc) => {
acc.push(desc.value);
return acc;
}, []);
}
function configIsApplicable({
options
}, dirname, context, configName) {
return (options.test === undefined || configFieldIsApplicable(context, options.test, dirname, configName)) && (options.include === undefined || configFieldIsApplicable(context, options.include, dirname, configName)) && (options.exclude === undefined || !configFieldIsApplicable(context, options.exclude, dirname, configName));
}
function configFieldIsApplicable(context, test, dirname, configName) {
const patterns = Array.isArray(test) ? test : [test];
return matchesPatterns(context, patterns, dirname, configName);
}
function ignoreListReplacer(_key, value) {
if (value instanceof RegExp) {
return String(value);
}
return value;
}
function shouldIgnore(context, ignore, only, dirname) {
if (ignore && matchesPatterns(context, ignore, dirname)) {
var _context$filename;
const message = `No config is applied to "${(_context$filename = context.filename) != null ? _context$filename : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore, ignoreListReplacer)}\` from "${dirname}"`;
debug(message);
if (context.showConfig) {
console.log(message);
}
return true;
}
if (only && !matchesPatterns(context, only, dirname)) {
var _context$filename2;
const message = `No config is applied to "${(_context$filename2 = context.filename) != null ? _context$filename2 : "(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(only, ignoreListReplacer)}\` from "${dirname}"`;
debug(message);
if (context.showConfig) {
console.log(message);
}
return true;
}
return false;
}
function matchesPatterns(context, patterns, dirname, configName) {
return patterns.some(pattern => matchPattern(pattern, dirname, context.filename, context, configName));
}
function matchPattern(pattern, dirname, pathToTest, context, configName) {
if (typeof pattern === "function") {
return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, {
dirname,
envName: context.envName,
caller: context.caller
});
}
if (typeof pathToTest !== "string") {
throw new _configError.default(`Configuration contains string/RegExp pattern, but no filename was passed to Babel`, configName);
}
if (typeof pattern === "string") {
pattern = (0, _patternToRegex.default)(pattern, dirname);
}
return pattern.test(pathToTest);
}
0 && 0;
//# sourceMappingURL=config-chain.js.map

Some files were not shown because too many files have changed in this diff Show More