@sefinek/random-emoji 1.4.2 β 1.4.4
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/CHANGELOG.md +8 -2
- package/README.md +8 -7
- package/README_PL.md +7 -7
- package/index.d.ts +11 -11
- package/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
## π₯γ»v1.4.
|
|
1
|
+
## π₯γ»v1.4.4 (02.10.2022)
|
|
2
|
+
1. Fixed URLs.
|
|
3
|
+
|
|
4
|
+
## π₯γ»v1.4.3 (19.09.2022)
|
|
5
|
+
1. Small changes in index.d.ts etc.
|
|
6
|
+
|
|
7
|
+
## π₯γ»v1.4.2 (05.06.2022)
|
|
2
8
|
1. Added typings.
|
|
3
9
|
2. Small fixes in README.md and README_PL.md.
|
|
4
10
|
|
|
@@ -13,7 +19,7 @@
|
|
|
13
19
|
|
|
14
20
|
## π₯γ»v1.3.0 (13.05.2022)
|
|
15
21
|
1. Updated README.md file.
|
|
16
|
-
2. Added `new kaomojis()` with random kaomoji from my [API](https://api.
|
|
22
|
+
2. Added `new kaomojis()` with random kaomoji from my [API](https://api-skiffy.sefinek.fun). See examples: [[1](https://github.com/sefinek24/random-emoji/blob/main/test.js)] [[2](https://github.com/sefinek24/random-emoji#%EF%B8%8F--kaomojis)]
|
|
17
23
|
3. Other changes to [index.js](https://github.com/sefinek24/random-emoji/blob/main/index.js) file.
|
|
18
24
|
|
|
19
25
|
## π₯γ»v1.2.0 (12.05.2022)
|
package/README.md
CHANGED
|
@@ -24,6 +24,7 @@ console.log(random.unicode());
|
|
|
24
24
|
// 2. Random emoji with name and type
|
|
25
25
|
const emoji = random.emojis();
|
|
26
26
|
console.log(`Name: ${emoji.name}; Emoji: ${emoji.content};`);
|
|
27
|
+
// > Name: jack-o-lantern; Emoji: π;
|
|
27
28
|
|
|
28
29
|
// 3. Random cat
|
|
29
30
|
const cat = random.cats();
|
|
@@ -40,7 +41,7 @@ console.log(`Name: ${cat.name}; Emoji: ${cat.content};`);
|
|
|
40
41
|
| [hearts](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L14) | Return random heart |
|
|
41
42
|
| [foods](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L18) | Return random food |
|
|
42
43
|
| [circles](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L22) | Return random circle |
|
|
43
|
-
| [kaomojis](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L26) | Return random kaomojis from [API](https://api.
|
|
44
|
+
| [kaomojis](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L26) | Return random kaomojis from [API](https://api-skiffy.sefinek.fun) |
|
|
44
45
|
|
|
45
46
|
## β©οΈ β’ Kaomoji
|
|
46
47
|
### Β» Async/await example
|
|
@@ -63,7 +64,7 @@ const kaomoji = new random.kaomojis();
|
|
|
63
64
|
kaomoji.love().then(data => console.log(data));
|
|
64
65
|
```
|
|
65
66
|
|
|
66
|
-
### Β» The returned object from [API](https://api.
|
|
67
|
+
### Β» The returned object from [API](https://api-skiffy.sefinek.fun)
|
|
67
68
|
```json
|
|
68
69
|
{
|
|
69
70
|
"success": true,
|
|
@@ -77,11 +78,11 @@ kaomoji.love().then(data => console.log(data));
|
|
|
77
78
|
### Β» Kaomoji endpoints
|
|
78
79
|
| Function | Example |
|
|
79
80
|
|-------------------------------------------------------|-----------|
|
|
80
|
-
| [cat](https://api.
|
|
81
|
-
| [dog](https://api.
|
|
82
|
-
| [owo](https://api.
|
|
83
|
-
| [uwu](https://api.
|
|
84
|
-
| [love](https://api.
|
|
81
|
+
| [cat](https://api-skiffy.sefinek.fun/api/v1/kaomoji/cat) | (=^-Ο-^=) |
|
|
82
|
+
| [dog](https://api-skiffy.sefinek.fun/api/v1/kaomoji/dog) | ΰ¬(βͺγ»ο»γ»βͺ)ΰ¬ |
|
|
83
|
+
| [owo](https://api-skiffy.sefinek.fun/api/v1/kaomoji/owo) | πππ |
|
|
84
|
+
| [uwu](https://api-skiffy.sefinek.fun/api/v1/kaomoji/uwu) | ππ¨π |
|
|
85
|
+
| [love](https://api-skiffy.sefinek.fun/api/v1/kaomoji/love) | γ½(β‘βΏβ‘)γ |
|
|
85
86
|
|
|
86
87
|
## π β’ Changelog
|
|
87
88
|
> https://github.com/sefinek24/random-emoji/blob/main/CHANGELOG.md
|
package/README_PL.md
CHANGED
|
@@ -41,7 +41,7 @@ console.log(`Nazwa: ${cat.name}; Emoji: ${cat.content};`);
|
|
|
41
41
|
| [hearts](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L14) | Zwraca losowe serce |
|
|
42
42
|
| [foods](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L18) | Zwraca losowe jedzenie |
|
|
43
43
|
| [circles](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L22) | Zwraca losowe kΓ³Εko |
|
|
44
|
-
| [kaomojis](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L26) | Zwraca losowe kaomoji z [API](https://api.
|
|
44
|
+
| [kaomojis](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L26) | Zwraca losowe kaomoji z [API](https://api-skiffy.sefinek.fun) |
|
|
45
45
|
|
|
46
46
|
## β©οΈ β’ Kaomoji
|
|
47
47
|
### Β» PrzykΕad Async/await
|
|
@@ -64,7 +64,7 @@ const kaomoji = new random.kaomojis();
|
|
|
64
64
|
kaomoji.love().then(data => console.log(data));
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
### Β» ZwrΓ³cony obiekt przez [API](https://api.
|
|
67
|
+
### Β» ZwrΓ³cony obiekt przez [API](https://api-skiffy.sefinek.fun)
|
|
68
68
|
```json
|
|
69
69
|
{
|
|
70
70
|
"success": true,
|
|
@@ -78,11 +78,11 @@ kaomoji.love().then(data => console.log(data));
|
|
|
78
78
|
### Β» Punkty koΕcowe dla Kaomoji
|
|
79
79
|
| Function | Example |
|
|
80
80
|
|-------------------------------------------------------|-----------|
|
|
81
|
-
| [cat](https://api.
|
|
82
|
-
| [dog](https://api.
|
|
83
|
-
| [owo](https://api.
|
|
84
|
-
| [uwu](https://api.
|
|
85
|
-
| [love](https://api.
|
|
81
|
+
| [cat](https://api-skiffy.sefinek.fun/api/v1/kaomoji/cat) | (=^-Ο-^=) |
|
|
82
|
+
| [dog](https://api-skiffy.sefinek.fun/api/v1/kaomoji/dog) | ΰ¬(βͺγ»ο»γ»βͺ)ΰ¬ |
|
|
83
|
+
| [owo](https://api-skiffy.sefinek.fun/api/v1/kaomoji/owo) | πππ |
|
|
84
|
+
| [uwu](https://api-skiffy.sefinek.fun/api/v1/kaomoji/uwu) | ππ¨π |
|
|
85
|
+
| [love](https://api-skiffy.sefinek.fun/api/v1/kaomoji/love) | γ½(β‘βΏβ‘)γ |
|
|
86
86
|
|
|
87
87
|
## π β’ Lista zmian
|
|
88
88
|
> https://github.com/sefinek24/random-emoji/blob/main/CHANGELOG.md
|
package/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export function unicode():
|
|
2
|
-
export function emojis(): Object
|
|
3
|
-
export function cats(): Object
|
|
4
|
-
export function hearts(): Object
|
|
5
|
-
export function foods(): Object
|
|
6
|
-
export function circles(): Object
|
|
1
|
+
export function unicode(): string;
|
|
2
|
+
export function emojis(): Object;
|
|
3
|
+
export function cats(): Object;
|
|
4
|
+
export function hearts(): Object;
|
|
5
|
+
export function foods(): Object;
|
|
6
|
+
export function circles(): Object;
|
|
7
7
|
|
|
8
8
|
export class kaomojis {
|
|
9
|
-
cat()
|
|
10
|
-
dog()
|
|
11
|
-
owo()
|
|
12
|
-
uwu()
|
|
13
|
-
love()
|
|
9
|
+
cat();
|
|
10
|
+
dog();
|
|
11
|
+
owo();
|
|
12
|
+
uwu();
|
|
13
|
+
love();
|
|
14
14
|
}
|
package/index.js
CHANGED
|
@@ -31,7 +31,7 @@ function getContent(url) {
|
|
|
31
31
|
class SkiffyAPI {
|
|
32
32
|
constructor() {
|
|
33
33
|
Object.keys(endpoints).forEach(endpoint => {
|
|
34
|
-
this[endpoint] = () => getContent(`https://api.
|
|
34
|
+
this[endpoint] = () => getContent(`https://api-skiffy.sefinek.fun/api/v1/${endpoints[endpoint]}`);
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
}
|