@ryyseexvi/temtem-promise-v1 1.1.1 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/README.md +7 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Temtem API Wrapper 🎮
2
2
 
3
- [![NPM Version](https://img.shields.io/npm/v/temtem-promise-v1)](https://www.npmjs.com/package/temtem-promise-v1)
4
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
3
+ [![NPM Version](https://img.shields.io/npm/v/temtem-promise-v1)](https://www.npmjs.com/package/@ryyseexvi/temtem-promise-v1)
5
4
 
6
5
  A modern TypeScript wrapper for the [Temtem API](https://temtem-api.mael.tech), providing easy access to all Temtem game data.
7
6
 
@@ -14,19 +13,19 @@ npm install temtem-promise-v1
14
13
  🚀 Usage
15
14
 
16
15
  ```ts
17
- import { TemtemAPI } from 'temtem-promise';
16
+ import { TemtemDex } from '@ryyseexvi/temtem-promise-v1';
18
17
 
19
- const api = new TemtemDex();
18
+ const TemDex = new TemtemDex();
20
19
 
21
20
  // Example: Get all Temtems
22
- const temtems = await api.getTemtems();
21
+ const temtems = await TemDex.getTemtems();
23
22
 
24
23
  // Example: Get a specific Temtem with ID
25
- const temtem = await api.getTemtemById(1);
24
+ const temtem = await TemDex.getTemtemById(1);
26
25
 
27
26
  // Example: Get Temtems with specific parameters
28
- const filteredTemtems = await api.getTemtems({
29
- names: "Pigepic,Crystle",
27
+ const filteredTemtems = await TemDex.getTemtems({
28
+ names: "Pigepic",
30
29
  fields: "name,type",
31
30
  expand: "evolution",
32
31
  weaknesses: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ryyseexvi/temtem-promise-v1",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "A package that return all of the Temtem API calls as methods in a class",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",