@20syldev/api 3.2.0 → 3.2.2
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/README.md +2 -2
- package/app.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<a href="https://api.sylvain.pro"><img src="https://api.sylvain.pro/favicon.ico" alt="Logo" width="25%" height="auto"/></a>
|
|
3
3
|
|
|
4
4
|
# API Personnelle
|
|
5
|
-
[](https://github.com/20syldev/api/releases/latest)
|
|
6
6
|
</div>
|
|
7
7
|
|
|
8
8
|
---
|
|
@@ -44,7 +44,7 @@ Enfin, **exécutez** le script de build, qui installera les **dépendances** et
|
|
|
44
44
|
$ npm run build
|
|
45
45
|
```
|
|
46
46
|
```console
|
|
47
|
-
> @20syldev/api@3.2.
|
|
47
|
+
> @20syldev/api@3.2.2 build
|
|
48
48
|
> npm install && node app.js
|
|
49
49
|
|
|
50
50
|
[...]
|
package/app.js
CHANGED
|
@@ -21,7 +21,7 @@ const versions = ['v1', 'v2', 'v3'];
|
|
|
21
21
|
const endpoints = {
|
|
22
22
|
v1: ['algorithms', 'captcha', 'color', 'convert', 'domain', 'infos', 'personal', 'qrcode', 'token', 'username', 'website'],
|
|
23
23
|
v2: ['algorithms', 'captcha', 'chat', 'color', 'convert', 'domain', 'hash', 'infos', 'personal', 'qrcode', 'tic-tac-toe', 'token', 'username', 'website'],
|
|
24
|
-
v3: ['algorithms', 'captcha', 'chat', 'color', 'convert', '
|
|
24
|
+
v3: ['algorithms', 'captcha', 'chat', 'color', 'convert', 'domain', 'hash', 'hyperplanning', 'infos', 'levenshtein', 'personal', 'qrcode', 'tic-tac-toe', 'time', 'token', 'username', 'website']
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
// Arrowed functions (formatting, math & random)
|
|
@@ -955,7 +955,7 @@ app.post('/:version/chat/private', (req, res) => {
|
|
|
955
955
|
app.post('/:version/hyperplanning', async (req, res) => {
|
|
956
956
|
const { url, detail } = req.body;
|
|
957
957
|
|
|
958
|
-
if (!url) res.jsonResponse({ error: 'Please provide a valid ICS file URL.' });
|
|
958
|
+
if (!url) return res.jsonResponse({ error: 'Please provide a valid ICS file URL.' });
|
|
959
959
|
|
|
960
960
|
try {
|
|
961
961
|
const response = await fetch(url);
|
package/package.json
CHANGED