@lucasmod/pokemon.js 2.1.4 → 2.1.6
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/CONTRIBUTING.md +37 -0
- package/LICENSE +21 -21
- package/README.md +10 -6
- package/package.json +3 -3
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Guia de Contribuição
|
|
2
|
+
|
|
3
|
+
Obrigado por considerar contribuir para o projeto **@lucasmod/pokemon.js**! Sua ajuda é muito valiosa para manter este pacote atualizado e funcional.
|
|
4
|
+
|
|
5
|
+
## 💡 Como Contribuir
|
|
6
|
+
|
|
7
|
+
Existem várias maneiras de contribuir para este projeto:
|
|
8
|
+
|
|
9
|
+
1. **Reportar Bugs**: Se você encontrar um erro, por favor, abra uma *Issue* utilizando o template de **Bug Report**.
|
|
10
|
+
2. **Sugerir Novas Funcionalidades**: Se você tiver uma ideia para melhorar o pacote, abra uma *Issue* utilizando o template de **Feature Request**.
|
|
11
|
+
3. **Enviar Pull Requests (PRs)**: Se você corrigiu um bug ou implementou uma nova funcionalidade, envie um *Pull Request*.
|
|
12
|
+
|
|
13
|
+
## 📝 Diretrizes para Pull Requests
|
|
14
|
+
|
|
15
|
+
Para garantir um processo de revisão eficiente, siga estas diretrizes ao enviar um PR:
|
|
16
|
+
|
|
17
|
+
* **Fork** o repositório e crie um *branch* a partir do `master`.
|
|
18
|
+
* **Nome do Branch**: Use nomes descritivos, como `fix/nome-do-bug` ou `feat/nova-funcionalidade`.
|
|
19
|
+
* **Testes**: Certifique-se de que todos os testes existentes passem. Se você adicionar uma nova funcionalidade, inclua testes relevantes.
|
|
20
|
+
* **Estilo de Código**: Mantenha o estilo de código consistente com o restante do projeto.
|
|
21
|
+
* **Mensagem de Commit**: Escreva mensagens de commit claras e concisas, explicando o que foi feito.
|
|
22
|
+
* **Descrição do PR**: Descreva detalhadamente as alterações e o problema que elas resolvem.
|
|
23
|
+
|
|
24
|
+
## 🐛 Reportando Bugs
|
|
25
|
+
|
|
26
|
+
Ao reportar um bug, por favor, inclua o máximo de detalhes possível:
|
|
27
|
+
|
|
28
|
+
* **Versão do Pacote**: Qual versão do `@lucasmod/pokemon.js` você está usando?
|
|
29
|
+
* **Versão do Node.js**: Qual versão do Node.js você está utilizando?
|
|
30
|
+
* **Passos para Reproduzir**: Uma lista clara e numerada de passos para reproduzir o comportamento inesperado.
|
|
31
|
+
* **Comportamento Esperado vs. Atual**: O que você esperava que acontecesse e o que realmente aconteceu.
|
|
32
|
+
|
|
33
|
+
Agradecemos sua colaboração!
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
*Este guia é baseado nas melhores práticas de código aberto e visa facilitar a colaboração.*
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 lucasmod
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 lucasmod
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -25,19 +25,23 @@
|
|
|
25
25
|
|
|
26
26
|
## ⚡️ Sobre o Projeto
|
|
27
27
|
|
|
28
|
-
Esta é uma **versão corrigida e mantida** do pacote original `pokemon.js
|
|
28
|
+
Esta é uma **versão corrigida e mantida** do pacote original `pokemon.js`, desenvolvida por **lucasmod**.
|
|
29
29
|
|
|
30
|
-
O foco desta versão é garantir a **compatibilidade total** com as versões mais recentes do Node.js, corrigindo o problema de importação de módulos (ESM) que afetava o pacote original. `@lucasmod/pokemon.js` é um módulo **Node.js** que simplifica a interação com a [PokéAPI](https://pokeapi.co/)
|
|
30
|
+
O foco desta versão é garantir a **compatibilidade total** com as versões mais recentes do Node.js, corrigindo o problema de importação de módulos (ESM) que afetava o pacote original. `@lucasmod/pokemon.js` é um módulo **Node.js** que simplifica a interação com a [PokéAPI](https://pokeapi.co/), permitindo que você acesse dados de Pokémon, habilidades, movimentos e muito mais de forma rápida e eficiente.
|
|
31
31
|
|
|
32
32
|
## 🛠 Instalação
|
|
33
33
|
|
|
34
34
|
**Requisito:** Node.js **12.0.0** ou superior. Nenhuma dependência externa é necessária.
|
|
35
35
|
|
|
36
|
-
Utilize o `npm` para instalar o pacote em seu projeto:
|
|
36
|
+
Utilize o `npm` ou `git clone` para instalar o pacote em seu projeto:
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
39
|
npm install @lucasmod/pokemon.js
|
|
40
40
|
```
|
|
41
|
+
Ou
|
|
42
|
+
```bash
|
|
43
|
+
git clone https://github.com/Otakump4/pokemon.js
|
|
44
|
+
```
|
|
41
45
|
|
|
42
46
|
## 🚀 Exemplo de Uso
|
|
43
47
|
|
|
@@ -83,8 +87,8 @@ Abaixo estão os métodos principais disponíveis no objeto `Pokemon`:
|
|
|
83
87
|
|
|
84
88
|
## 🔗 Recursos e Links
|
|
85
89
|
|
|
86
|
-
* **NPM:** [https://www.npmjs.com/package/@lucasmod/pokemon.js]
|
|
87
|
-
* **GitHub (Original):** [https://github.com/
|
|
90
|
+
* **NPM:** [https://www.npmjs.com/package/@lucasmod/pokemon.js]
|
|
91
|
+
* **GitHub (Original):** [https://github.com/Otakump4/pokemon.js.git]
|
|
88
92
|
* **PokéAPI (Fonte de Dados):** [https://pokeapi.co/] [2]
|
|
89
93
|
|
|
90
94
|
---
|
|
@@ -120,4 +124,4 @@ Este projeto está licenciado sob a Licença **MIT**.
|
|
|
120
124
|
[1]: https://www.npmjs.com/package/pokemon.js "Pacote Original pokemon.js"
|
|
121
125
|
[2]: https://pokeapi.co/ "PokéAPI - The Pokémon API"
|
|
122
126
|
[3]: https://www.npmjs.com/package/@lucasmod/pokemon.js "NPM - @lucasmod/pokemon.js"
|
|
123
|
-
[4]: https://github.com/
|
|
127
|
+
[4]: https://github.com/Otakump4/pokemon.js.git "GitHub - Repositório"
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"test": "node ./module_test/test.js"
|
|
4
4
|
},
|
|
5
5
|
"name": "@lucasmod/pokemon.js",
|
|
6
|
-
"version": "2.1.
|
|
6
|
+
"version": "2.1.6",
|
|
7
7
|
"description": "Versão corrigida do pokemon.js com suporte a ESM e créditos para lucasmod",
|
|
8
8
|
"author": "lucasmod",
|
|
9
9
|
"license": "ISC",
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"main": "./src/index.js",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
|
-
"url": "git+https://github.com/
|
|
14
|
+
"url": "git+https://github.com/Otakump4/pokemon.js.git"
|
|
15
15
|
},
|
|
16
16
|
"bugs": {
|
|
17
|
-
"url": "https://github.com/
|
|
17
|
+
"url": "https://github.com/Otakump4/pokemon.js/issues"
|
|
18
18
|
},
|
|
19
19
|
"homepage": "musubi3.github.io/pokemon.js/",
|
|
20
20
|
"keywords": [
|