@nowarajs/totp 1.1.4 β 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/CHANGELOG.md +0 -14
- package/CODE_OF_CONDUCT.md +0 -92
- package/CONTRIBUTING.md +0 -173
- package/SECURITY.md +0 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nowarajs/totp",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"author": "NowaraJS",
|
|
5
5
|
"description": "A comprehensive Time-based One-Time Password (TOTP) and HMAC-based One-Time Password (HOTP)",
|
|
6
6
|
"type": "module",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@eslint/js": "^9.34.0",
|
|
26
|
-
"@nowarajs/error": "^1.1.
|
|
26
|
+
"@nowarajs/error": "^1.1.9",
|
|
27
27
|
"@stylistic/eslint-plugin": "^5.2.3",
|
|
28
|
-
"@types/bun": "^1.2.
|
|
28
|
+
"@types/bun": "^1.2.21",
|
|
29
29
|
"eslint": "^9.34.0",
|
|
30
30
|
"globals": "^16.3.0",
|
|
31
|
-
"typescript-eslint": "^8.
|
|
31
|
+
"typescript-eslint": "^8.41.0",
|
|
32
32
|
"typescript": "^5.9.2"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
package/CHANGELOG.md
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
## v1.1.4
|
|
3
|
-
|
|
4
|
-
[compare changes](https://github.com/NowaraJS/totp/compare/v1.1.3...v1.1.4)
|
|
5
|
-
|
|
6
|
-
### π¦ Chore
|
|
7
|
-
|
|
8
|
-
- **π¦:** [Remove outdated CHANGELOG entries for v1.1.3] ([46431cb](https://github.com/NowaraJS/totp/commit/46431cb))
|
|
9
|
-
- **π¦:** [Update peerDependencies for @nowarajs/error] ([d0a5a32](https://github.com/NowaraJS/totp/commit/d0a5a32))
|
|
10
|
-
|
|
11
|
-
### β€οΈ Contributors
|
|
12
|
-
|
|
13
|
-
- Komiroko <komiriko@pm.me>
|
|
14
|
-
|
package/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# Contributor Covenant 3.0 Code of Conduct
|
|
3
|
-
|
|
4
|
-
## Our Pledge
|
|
5
|
-
|
|
6
|
-
We pledge to make our community welcoming, safe, and equitable for all.
|
|
7
|
-
|
|
8
|
-
We are committed to fostering an environment that respects and promotes the dignity, rights, and contributions of all individuals, regardless of characteristics including race, ethnicity, caste, color, age, physical characteristics, neurodiversity, disability, sex or gender, gender identity or expression, sexual orientation, language, philosophy or religion, national or social origin, socio-economic position, level of education, or other status. The same privileges of participation are extended to everyone who participates in good faith and in accordance with this Covenant.
|
|
9
|
-
|
|
10
|
-
## Encouraged Behaviors
|
|
11
|
-
|
|
12
|
-
While acknowledging differences in social norms, we all strive to meet our community's expectations for positive behavior. We also understand that our words and actions may be interpreted differently than we intend based on culture, background, or native language.
|
|
13
|
-
|
|
14
|
-
With these considerations in mind, we agree to behave mindfully toward each other and act in ways that center our shared values, including:
|
|
15
|
-
|
|
16
|
-
1. Respecting the **purpose of our community**, our activities, and our ways of gathering.
|
|
17
|
-
2. Engaging **kindly and honestly** with others.
|
|
18
|
-
3. Respecting **different viewpoints** and experiences.
|
|
19
|
-
4. **Taking responsibility** for our actions and contributions.
|
|
20
|
-
5. Gracefully giving and accepting **constructive feedback**.
|
|
21
|
-
6. Committing to **repairing harm** when it occurs.
|
|
22
|
-
7. Behaving in other ways that promote and sustain the **well-being of our community**.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
## Restricted Behaviors
|
|
26
|
-
|
|
27
|
-
We agree to restrict the following behaviors in our community. Instances, threats, and promotion of these behaviors are violations of this Code of Conduct.
|
|
28
|
-
|
|
29
|
-
1. **Harassment.** Violating explicitly expressed boundaries or engaging in unnecessary personal attention after any clear request to stop.
|
|
30
|
-
2. **Character attacks.** Making insulting, demeaning, or pejorative comments directed at a community member or group of people.
|
|
31
|
-
3. **Stereotyping or discrimination.** Characterizing anyoneβs personality or behavior on the basis of immutable identities or traits.
|
|
32
|
-
4. **Sexualization.** Behaving in a way that would generally be considered inappropriately intimate in the context or purpose of the community.
|
|
33
|
-
5. **Violating confidentiality**. Sharing or acting on someone's personal or private information without their permission.
|
|
34
|
-
6. **Endangerment.** Causing, encouraging, or threatening violence or other harm toward any person or group.
|
|
35
|
-
7. Behaving in other ways that **threaten the well-being** of our community.
|
|
36
|
-
|
|
37
|
-
### Other Restrictions
|
|
38
|
-
|
|
39
|
-
1. **Misleading identity.** Impersonating someone else for any reason, or pretending to be someone else to evade enforcement actions.
|
|
40
|
-
2. **Failing to credit sources.** Not properly crediting the sources of content you contribute.
|
|
41
|
-
3. **Promotional materials**. Sharing marketing or other commercial content in a way that is outside the norms of the community.
|
|
42
|
-
4. **Irresponsible communication.** Failing to responsibly present content which includes, links or describes any other restricted behaviors.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
## Reporting an Issue
|
|
46
|
-
|
|
47
|
-
Tensions can occur between community members even when they are trying their best to collaborate. Not every conflict represents a code of conduct violation, and this Code of Conduct reinforces encouraged behaviors and norms that can help avoid conflicts and minimize harm.
|
|
48
|
-
|
|
49
|
-
When an incident does occur, it is important to report it promptly. To report a possible violation, please email us at [nowarajs@pm.me](mailto:nowarajs@pm.me).
|
|
50
|
-
|
|
51
|
-
Community Moderators take reports of violations seriously and will make every effort to respond in a timely manner. They will investigate all reports of code of conduct violations, reviewing messages, logs, and recordings, or interviewing witnesses and other participants. Community Moderators will keep investigation and enforcement actions as transparent as possible while prioritizing safety and confidentiality. In order to honor these values, enforcement actions are carried out in private with the involved parties, but communicating to the whole community may be part of a mutually agreed upon resolution.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
## Addressing and Repairing Harm
|
|
55
|
-
|
|
56
|
-
****
|
|
57
|
-
|
|
58
|
-
If an investigation by the Community Moderators finds that this Code of Conduct has been violated, the following enforcement ladder may be used to determine how best to repair harm, based on the incident's impact on the individuals involved and the community as a whole. Depending on the severity of a violation, lower rungs on the ladder may be skipped.
|
|
59
|
-
|
|
60
|
-
1) Warning
|
|
61
|
-
1) Event: A violation involving a single incident or series of incidents.
|
|
62
|
-
2) Consequence: A private, written warning from the Community Moderators.
|
|
63
|
-
3) Repair: Examples of repair include a private written apology, acknowledgement of responsibility, and seeking clarification on expectations.
|
|
64
|
-
2) Temporarily Limited Activities
|
|
65
|
-
1) Event: A repeated incidence of a violation that previously resulted in a warning, or the first incidence of a more serious violation.
|
|
66
|
-
2) Consequence: A private, written warning with a time-limited cooldown period designed to underscore the seriousness of the situation and give the community members involved time to process the incident. The cooldown period may be limited to particular communication channels or interactions with particular community members.
|
|
67
|
-
3) Repair: Examples of repair may include making an apology, using the cooldown period to reflect on actions and impact, and being thoughtful about re-entering community spaces after the period is over.
|
|
68
|
-
3) Temporary Suspension
|
|
69
|
-
1) Event: A pattern of repeated violation which the Community Moderators have tried to address with warnings, or a single serious violation.
|
|
70
|
-
2) Consequence: A private written warning with conditions for return from suspension. In general, temporary suspensions give the person being suspended time to reflect upon their behavior and possible corrective actions.
|
|
71
|
-
3) Repair: Examples of repair include respecting the spirit of the suspension, meeting the specified conditions for return, and being thoughtful about how to reintegrate with the community when the suspension is lifted.
|
|
72
|
-
4) Permanent Ban
|
|
73
|
-
1) Event: A pattern of repeated code of conduct violations that other steps on the ladder have failed to resolve, or a violation so serious that the Community Moderators determine there is no way to keep the community safe with this person as a member.
|
|
74
|
-
2) Consequence: Access to all community spaces, tools, and communication channels is removed. In general, permanent bans should be rarely used, should have strong reasoning behind them, and should only be resorted to if working through other remedies has failed to change the behavior.
|
|
75
|
-
3) Repair: There is no possible repair in cases of this severity.
|
|
76
|
-
|
|
77
|
-
This enforcement ladder is intended as a guideline. It does not limit the ability of Community Managers to use their discretion and judgment, in keeping with the best interests of our community.
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
## Scope
|
|
81
|
-
|
|
82
|
-
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public or other spaces. Examples of representing our community include using an official email address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
## Attribution
|
|
86
|
-
|
|
87
|
-
This Code of Conduct is adapted from the Contributor Covenant, version 3.0, permanently available at [https://www.contributor-covenant.org/version/3/0/](https://www.contributor-covenant.org/version/3/0/).
|
|
88
|
-
|
|
89
|
-
Contributor Covenant is stewarded by the Organization for Ethical Source and licensed under CC BY-SA 4.0. To view a copy of this license, visit [https://creativecommons.org/licenses/by-sa/4.0/](https://creativecommons.org/licenses/by-sa/4.0/)
|
|
90
|
-
|
|
91
|
-
For answers to common questions about Contributor Covenant, see the FAQ at [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are provided at [https://www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations). Additional enforcement and community guideline resources can be found at [https://www.contributor-covenant.org/resources](https://www.contributor-covenant.org/resources). The enforcement ladder was inspired by the work of [Mozillaβs code of conduct team](https://github.com/mozilla/inclusion).
|
|
92
|
-
|
package/CONTRIBUTING.md
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
# Contributing to Package Template
|
|
2
|
-
|
|
3
|
-
First off, thanks for taking the time to contribute! β€οΈ
|
|
4
|
-
|
|
5
|
-
All types of contributions are encouraged and valued. Please make sure to read the relevant section before making your contribution. It will make it a lot easier for us maintainers and smooth out the experience for all involved. The community looks forward to your contributions! π
|
|
6
|
-
|
|
7
|
-
> And if you like the project, but just don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation, which we would also be very happy about:
|
|
8
|
-
> - β Star the project
|
|
9
|
-
> - π¦ Tweet about it
|
|
10
|
-
> - π Refer this project in your project's readme
|
|
11
|
-
> - π¬ Mention the project at local meetups and tell your friends/colleagues
|
|
12
|
-
|
|
13
|
-
Please note we have a [Code of Conduct](./CODE_OF_CONDUCT.md), please follow it in all your interactions with the project.
|
|
14
|
-
|
|
15
|
-
## Table of Contents
|
|
16
|
-
|
|
17
|
-
- [I Have a Question](#i-have-a-question)
|
|
18
|
-
- [I Want To Contribute](#i-want-to-contribute)
|
|
19
|
-
- [Reporting Bugs](#reporting-bugs)
|
|
20
|
-
- [Suggesting Enhancements](#suggesting-enhancements)
|
|
21
|
-
- [Your First Code Contribution](#your-first-code-contribution)
|
|
22
|
-
- [Improving The Documentation](#improving-the-documentation)
|
|
23
|
-
- [Development Setup](#development-setup)
|
|
24
|
-
- [Style Guidelines](#style-guidelines)
|
|
25
|
-
- [Commit Messages](#commit-messages)
|
|
26
|
-
|
|
27
|
-
## I Have a Question
|
|
28
|
-
|
|
29
|
-
> If you want to ask a question, we assume that you have read the available [documentation](./README.md).
|
|
30
|
-
|
|
31
|
-
Before asking a question, please:
|
|
32
|
-
- Search for existing [issues](https://github.com/NowaraJS/totp/issues) that might help you
|
|
33
|
-
- Check if someone already asked the same question
|
|
34
|
-
|
|
35
|
-
**How to ask:**
|
|
36
|
-
- [Create a new help & question issue](https://github.com/NowaraJS/totp/issues/new/choose) using our template
|
|
37
|
-
- Or send an email to [nowarajs@pm.me](mailto:nowarajs@pm.me) for quick questions
|
|
38
|
-
|
|
39
|
-
We'll do our best to help you as soon as possible! π¬
|
|
40
|
-
|
|
41
|
-
## I Want To Contribute
|
|
42
|
-
|
|
43
|
-
> ### Legal Notice
|
|
44
|
-
> When contributing to this project, you must agree that you have authored 100% of the content, that you have the necessary rights to the content and that the content you contribute may be provided under the project license.
|
|
45
|
-
|
|
46
|
-
### Reporting Bugs
|
|
47
|
-
|
|
48
|
-
Found a bug? We'd love to hear about it! π
|
|
49
|
-
|
|
50
|
-
**Before submitting:**
|
|
51
|
-
- Make sure you're using the latest version
|
|
52
|
-
- Check if the bug has already been reported in our [issues](https://github.com/NowaraJS/totp/issues?q=label%3Abug)
|
|
53
|
-
|
|
54
|
-
**How to report:**
|
|
55
|
-
Simply [create a new bug report](https://github.com/NowaraJS/totp/issues/new/choose) using our bug report template. The template will guide you through providing all the necessary information we need to investigate and fix the issue quickly.
|
|
56
|
-
|
|
57
|
-
### Suggesting Enhancements
|
|
58
|
-
|
|
59
|
-
Have an idea to make the project better? We'd love to hear it! β¨
|
|
60
|
-
|
|
61
|
-
**Before submitting:**
|
|
62
|
-
- Make sure you're using the latest version
|
|
63
|
-
- Check the [documentation](./README.md) to see if the feature already exists
|
|
64
|
-
- Search [existing enhancement requests](https://github.com/NowaraJS/totp/issues?q=label%3Aenhancement) to avoid duplicates
|
|
65
|
-
|
|
66
|
-
**How to suggest:**
|
|
67
|
-
[Create a new feature request](https://github.com/NowaraJS/totp/issues/new/choose) using our feature request template. It will help you structure your idea and provide all the context we need to evaluate and potentially implement it.
|
|
68
|
-
|
|
69
|
-
### Your First Code Contribution
|
|
70
|
-
|
|
71
|
-
Unsure where to begin contributing? You can start by looking through these `good-first-issue` and `help-wanted` issues:
|
|
72
|
-
|
|
73
|
-
- [Good first issues](https://github.com/NowaraJS/totp/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) - issues which should only require a few lines of code, and a test or two.
|
|
74
|
-
- [Help wanted issues](https://github.com/NowaraJS/totp/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) - issues which should be a bit more involved than `good first issue` issues.
|
|
75
|
-
|
|
76
|
-
### Improving The Documentation
|
|
77
|
-
|
|
78
|
-
Documentation improvements are always welcome! Whether it's fixing typos, clarifying existing content, or adding new sections, your contributions help make the project more accessible to everyone.
|
|
79
|
-
|
|
80
|
-
## Development Setup
|
|
81
|
-
|
|
82
|
-
1. **Fork the repository** on GitHub
|
|
83
|
-
2. **Clone your fork** locally:
|
|
84
|
-
```bash
|
|
85
|
-
git clone https://github.com/NowaraJS/totp.git
|
|
86
|
-
cd template-package-npm
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
3. **Install dependencies**:
|
|
90
|
-
```bash
|
|
91
|
-
bun install
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
4. **Create a new branch** for your feature/fix:
|
|
95
|
-
```bash
|
|
96
|
-
git checkout -b feature/your-feature-name
|
|
97
|
-
# or
|
|
98
|
-
git checkout -b fix/your-fix-name
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
5. **Make your changes** and ensure they follow our style guidelines
|
|
102
|
-
|
|
103
|
-
6. **Run the tests** to make sure everything works:
|
|
104
|
-
```bash
|
|
105
|
-
bun run test
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
7. **Run the linter** and fix any issues:
|
|
109
|
-
```bash
|
|
110
|
-
bun run lint
|
|
111
|
-
# Auto-fix issues with:
|
|
112
|
-
bun run fix-lint
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
8. **Build the project** to ensure it compiles correctly:
|
|
116
|
-
```bash
|
|
117
|
-
bun run build
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
9. **Commit your changes** following our commit message convention
|
|
121
|
-
|
|
122
|
-
10. **Push to your fork** and create a pull request
|
|
123
|
-
|
|
124
|
-
## Style Guidelines
|
|
125
|
-
|
|
126
|
-
We follow strict TypeScript and coding conventions. Please review our [Copilot Instructions](./.github/copilot-instructions.md) for detailed guidelines, including:
|
|
127
|
-
|
|
128
|
-
- TypeScript best practices
|
|
129
|
-
- Naming conventions
|
|
130
|
-
- Documentation standards
|
|
131
|
-
- Testing patterns
|
|
132
|
-
- Code organization
|
|
133
|
-
|
|
134
|
-
### Before Each Commit
|
|
135
|
-
|
|
136
|
-
- β
Run `bun run lint` and fix all errors and warnings
|
|
137
|
-
- β
Run relevant unit or integration tests
|
|
138
|
-
- β
Update documentation if public APIs or complex logic change
|
|
139
|
-
|
|
140
|
-
## Commit Messages
|
|
141
|
-
|
|
142
|
-
We use the Conventional Commits specification with emojis. Format your commits like this:
|
|
143
|
-
|
|
144
|
-
```
|
|
145
|
-
<type>(<emoji>): [summary up to 72 chars]
|
|
146
|
-
|
|
147
|
-
[Optional longer description]
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
**Types:**
|
|
151
|
-
- `feat π` β New features
|
|
152
|
-
- `fix π§` β Bug fixes
|
|
153
|
-
- `perf β‘` β Performance improvements
|
|
154
|
-
- `refactor π§Ή` β Refactoring
|
|
155
|
-
- `build π¦` β Build tools / dependency changes
|
|
156
|
-
- `types π` β Type definitions
|
|
157
|
-
- `chore π¦` β Maintenance, non-code/test changes
|
|
158
|
-
- `docs π` β Documentation changes
|
|
159
|
-
- `test π§ͺ` β Test code updates
|
|
160
|
-
- `style π¨` β Style/formatting only
|
|
161
|
-
- `ci π€` β CI/CD configuration
|
|
162
|
-
|
|
163
|
-
**Example:**
|
|
164
|
-
```
|
|
165
|
-
feat(π): add advanced repository filtering operators
|
|
166
|
-
|
|
167
|
-
Added $eq, $like, $between filtering operators to repository pattern
|
|
168
|
-
for advanced querying and filtering of database records.
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
---
|
|
172
|
-
|
|
173
|
-
Thank you for contributing! π
|
package/SECURITY.md
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Security Policy
|
|
2
|
-
|
|
3
|
-
## Supported Versions
|
|
4
|
-
|
|
5
|
-
The following major versions are currently supported with security updates.
|
|
6
|
-
|
|
7
|
-
| Version | End-of-life |
|
|
8
|
-
| -------------------------------------------------------------------- | ----------- |
|
|
9
|
-
| [v1.x](https://github.com/NowaraJS/totp/tree/v1.x) | TBD |
|
|
10
|
-
|
|
11
|
-
End-of-life for the current release will be determined prior to the release of its successor.
|
|
12
|
-
|
|
13
|
-
## Reporting a Vulnerability
|
|
14
|
-
|
|
15
|
-
You should report vulnerabilities using the [Github UI](https://github.com/NowaraJS/totp/security/advisories/new) or via email nowarajs@pm.me
|