Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Done] API response types + Typescript #55

Open
wants to merge 51 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
4739b9e
Starting TS rewrite + API types
jameslinimk Aug 16, 2022
9afc387
Added more methods
jameslinimk Aug 16, 2022
a2ab195
Add pnpm-lock to gitignore
jameslinimk Aug 16, 2022
33c55d3
Delete pnpm-lock.yaml
jameslinimk Aug 16, 2022
f7f7db4
Finished all methods + improvements
jameslinimk Aug 16, 2022
1bbb6ec
Finished all methods
jameslinimk Aug 16, 2022
0aabd3f
Had to recompile /dist due to left over files
jameslinimk Aug 16, 2022
43bc7bb
Updated types
jameslinimk Aug 16, 2022
372bfa0
Delete package/dist directory
jameslinimk Aug 16, 2022
c148ced
Docs + minor changes
jameslinimk Aug 17, 2022
2dbdb4a
Added docs to npmignore and added languages to the code blocks
jameslinimk Aug 17, 2022
82c3715
Updated most things. Gotta work on tests and workflow
jameslinimk Aug 17, 2022
8c726f5
FIxed leaderboard + still working on tests
jameslinimk Aug 18, 2022
31d6d87
Testing doc build action
jameslinimk Aug 18, 2022
73b99d1
Finished tests!! yay (also testing github action)
jameslinimk Aug 18, 2022
5e19c56
Testing github action
jameslinimk Aug 18, 2022
b48d2d7
Force git to add ignored file (testing action)
jameslinimk Aug 18, 2022
8edc40f
Testing action
jameslinimk Aug 18, 2022
9c67992
Testing action
jameslinimk Aug 18, 2022
dd04ad1
Testing action
jameslinimk Aug 18, 2022
a06c333
Testing action
jameslinimk Aug 18, 2022
ee85e80
Testing action
jameslinimk Aug 18, 2022
5082733
Testing action
jameslinimk Aug 18, 2022
13f826b
Testing action
jameslinimk Aug 18, 2022
a94f614
Testing action
jameslinimk Aug 18, 2022
edf2f9d
Testing action
jameslinimk Aug 18, 2022
b39cd68
Testing action
jameslinimk Aug 18, 2022
22064a6
Testing action
jameslinimk Aug 18, 2022
08caa2d
Testing action
jameslinimk Aug 18, 2022
c5d5647
Testing action
jameslinimk Aug 18, 2022
6e46c58
Testing action
jameslinimk Aug 18, 2022
2149f79
Fixed README & docs
jameslinimk Aug 18, 2022
4e21e5c
Fixed hyperlink bug
jameslinimk Aug 18, 2022
3dc5a5a
Fixed hyperlink bug
jameslinimk Aug 18, 2022
0b39bd9
Changed README doc link
jameslinimk Aug 18, 2022
5e9c3be
Removed compiled JS files from tests folder
jameslinimk Aug 18, 2022
298315e
Changed script so src is compiled before tests
jameslinimk Aug 18, 2022
b56882c
Moved ts-to-json as a dev dep, added testing action
jameslinimk Aug 19, 2022
e668d51
Testing action
jameslinimk Aug 19, 2022
0ab3e91
Testing action
jameslinimk Aug 19, 2022
d5a8de3
Added Jekyll theme
jameslinimk Aug 19, 2022
1ba0fed
Changed docs README link
jameslinimk Aug 19, 2022
317491a
Everything
jameslinimk Aug 21, 2022
1def087
Changed version to match current API ver
jameslinimk Aug 21, 2022
fe67431
Added lockfile and contributing section in README
jameslinimk Aug 21, 2022
e0f8f42
Fixed hyperlinks
jameslinimk Aug 21, 2022
3123117
Fixed hyperlink
jameslinimk Aug 21, 2022
56cf9f7
add lifetime matches types
Henrik-3 May 7, 2023
33a67e4
update to v2.7.0 (untested)
Henrik-3 May 8, 2023
5b98ce1
conference, base, history, search premier typings
Henrik-3 May 10, 2023
c1fed7e
add premier seasons / leaderboard typings
Henrik-3 May 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.history/
node_modules/
*.js
*.js.map

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignoring all js files?? When there are js files in this project?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment

pnpm-lock.yaml
4 changes: 2 additions & 2 deletions package/.npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
examples
test
examples/**/*
test/**/*
6 changes: 5 additions & 1 deletion package/examples/discord_bot.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/**
* OUTDATED NEW EXAMPLES COMING SOON
*/

//Discord.js v13.8.0
import {Client, Intents} from 'discord.js';
import { Client, Intents } from 'discord.js';
import HenrikDevValorantAPI from 'unofficial-valorant-api';
const VAPI = new HenrikDevValorantAPI();

Expand Down
6 changes: 5 additions & 1 deletion package/examples/download_crosshair.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/**
* OUTDATED NEW EXAMPLES COMING SOON
*/

import { writeFileSync } from 'fs';
import HenrikDevValorantAPI from 'unofficial-valorant-api';
import {writeFileSync} from 'fs';
const VAPI = new HenrikDevValorantAPI();
async function download(crosshair_code) {
const crosshair_data = await VAPI.getCrosshair({code: crosshair_code});
Expand Down
8 changes: 6 additions & 2 deletions package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unofficial-valorant-api",
"version": "2.3.0-stable.0",
"version": "3.0.0-stable.0",
"description": "Library for the Unofficial VALORANT API by api.henrikdev.xyz",
"main": "./src/index.js",
"dependencies": {
Expand All @@ -20,5 +20,9 @@
},
"homepage": "https://github.com/Henrik-3/unofficial-valorant-api",
"author": "HenrikDev",
"license": "ISC"
"license": "ISC",
"type": "module",
"devDependencies": {
"@types/node": "^18.7.5"
}
}
Loading