@mkody/twitch-emoticons 2.6.1 → 2.6.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/docs/BTTVEmote.html +1241 -1241
- package/docs/Channel.html +823 -823
- package/docs/Collection.html +797 -797
- package/docs/Emote.html +801 -801
- package/docs/EmoteFetcher.html +2694 -2694
- package/docs/EmoteParser.html +811 -811
- package/docs/FFZEmote.html +1317 -1317
- package/docs/SevenTVEmote.html +1317 -1317
- package/docs/TwitchEmote.html +1237 -1237
- package/docs/index.html +201 -201
- package/docs/scripts/collapse.js +38 -38
- package/docs/scripts/commonNav.js +28 -28
- package/docs/scripts/search.js +98 -98
- package/docs/struct_BTTVEmote.js.html +72 -72
- package/docs/struct_Channel.js.html +72 -72
- package/docs/struct_Emote.js.html +72 -72
- package/docs/struct_EmoteFetcher.js.html +75 -75
- package/docs/struct_EmoteParser.js.html +72 -72
- package/docs/struct_FFZEmote.js.html +72 -72
- package/docs/struct_SevenTVEmote.js.html +72 -72
- package/docs/struct_TwitchEmote.js.html +72 -72
- package/docs/styles/jsdoc.css +776 -776
- package/docs/styles/prettify.css +80 -80
- package/docs/util_Collection.js.html +72 -72
- package/package.json +10 -7
- package/src/struct/EmoteFetcher.js +2 -2
- package/test/index.js +2 -2
package/docs/styles/prettify.css
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
.pln {
|
|
2
|
-
color: #ddd;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
/* string content */
|
|
6
|
-
.str {
|
|
7
|
-
color: #61ce3c;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/* a keyword */
|
|
11
|
-
.kwd {
|
|
12
|
-
color: #fbde2d;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/* a comment */
|
|
16
|
-
.com {
|
|
17
|
-
color: #aeaeae;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/* a type name */
|
|
21
|
-
.typ {
|
|
22
|
-
color: #8da6ce;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/* a literal value */
|
|
26
|
-
.lit {
|
|
27
|
-
color: #fbde2d;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/* punctuation */
|
|
31
|
-
.pun {
|
|
32
|
-
color: #ddd;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/* lisp open bracket */
|
|
36
|
-
.opn {
|
|
37
|
-
color: #000000;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/* lisp close bracket */
|
|
41
|
-
.clo {
|
|
42
|
-
color: #000000;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/* a markup tag name */
|
|
46
|
-
.tag {
|
|
47
|
-
color: #8da6ce;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/* a markup attribute name */
|
|
51
|
-
.atn {
|
|
52
|
-
color: #fbde2d;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/* a markup attribute value */
|
|
56
|
-
.atv {
|
|
57
|
-
color: #ddd;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/* a declaration */
|
|
61
|
-
.dec {
|
|
62
|
-
color: #EF5050;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/* a variable name */
|
|
66
|
-
.var {
|
|
67
|
-
color: #c82829;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/* a function name */
|
|
71
|
-
.fun {
|
|
72
|
-
color: #4271ae;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/* Specify class=linenums on a pre to get line numbering */
|
|
76
|
-
ol.linenums {
|
|
77
|
-
margin-top: 0;
|
|
78
|
-
margin-bottom: 0;
|
|
79
|
-
padding-bottom: 2px;
|
|
80
|
-
}
|
|
1
|
+
.pln {
|
|
2
|
+
color: #ddd;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
/* string content */
|
|
6
|
+
.str {
|
|
7
|
+
color: #61ce3c;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* a keyword */
|
|
11
|
+
.kwd {
|
|
12
|
+
color: #fbde2d;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* a comment */
|
|
16
|
+
.com {
|
|
17
|
+
color: #aeaeae;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* a type name */
|
|
21
|
+
.typ {
|
|
22
|
+
color: #8da6ce;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* a literal value */
|
|
26
|
+
.lit {
|
|
27
|
+
color: #fbde2d;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* punctuation */
|
|
31
|
+
.pun {
|
|
32
|
+
color: #ddd;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* lisp open bracket */
|
|
36
|
+
.opn {
|
|
37
|
+
color: #000000;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* lisp close bracket */
|
|
41
|
+
.clo {
|
|
42
|
+
color: #000000;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* a markup tag name */
|
|
46
|
+
.tag {
|
|
47
|
+
color: #8da6ce;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* a markup attribute name */
|
|
51
|
+
.atn {
|
|
52
|
+
color: #fbde2d;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* a markup attribute value */
|
|
56
|
+
.atv {
|
|
57
|
+
color: #ddd;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* a declaration */
|
|
61
|
+
.dec {
|
|
62
|
+
color: #EF5050;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* a variable name */
|
|
66
|
+
.var {
|
|
67
|
+
color: #c82829;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* a function name */
|
|
71
|
+
.fun {
|
|
72
|
+
color: #4271ae;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* Specify class=linenums on a pre to get line numbering */
|
|
76
|
+
ol.linenums {
|
|
77
|
+
margin-top: 0;
|
|
78
|
+
margin-bottom: 0;
|
|
79
|
+
padding-bottom: 2px;
|
|
80
|
+
}
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
|
|
5
|
-
<meta charset="utf-8">
|
|
6
|
-
<title>util/Collection.js - Documentation</title>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<script src="scripts/prettify/prettify.js"></script>
|
|
10
|
-
<script src="scripts/prettify/lang-css.js"></script>
|
|
11
|
-
<!--[if lt IE 9]>
|
|
12
|
-
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
13
|
-
<![endif]-->
|
|
14
|
-
<link type="text/css" rel="stylesheet" href="styles/prettify.css">
|
|
15
|
-
<link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
|
|
16
|
-
<script src="scripts/nav.js" defer></script>
|
|
17
|
-
|
|
18
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
19
|
-
</head>
|
|
20
|
-
<body>
|
|
21
|
-
|
|
22
|
-
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
|
|
23
|
-
<label for="nav-trigger" class="navicon-button x">
|
|
24
|
-
<div class="navicon"></div>
|
|
25
|
-
</label>
|
|
26
|
-
|
|
27
|
-
<label for="nav-trigger" class="overlay"></label>
|
|
28
|
-
|
|
29
|
-
<nav >
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="BTTVEmote.html">BTTVEmote</a><ul class='methods'><li data-type='method'><a href="BTTVEmote.html
|
|
33
|
-
|
|
34
|
-
</nav>
|
|
35
|
-
|
|
36
|
-
<div id="main">
|
|
37
|
-
|
|
38
|
-
<h1 class="page-title">util/Collection.js</h1>
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<section>
|
|
47
|
-
<article>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<title>util/Collection.js - Documentation</title>
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
<script src="scripts/prettify/prettify.js"></script>
|
|
10
|
+
<script src="scripts/prettify/lang-css.js"></script>
|
|
11
|
+
<!--[if lt IE 9]>
|
|
12
|
+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
13
|
+
<![endif]-->
|
|
14
|
+
<link type="text/css" rel="stylesheet" href="styles/prettify.css">
|
|
15
|
+
<link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
|
|
16
|
+
<script src="scripts/nav.js" defer></script>
|
|
17
|
+
|
|
18
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
19
|
+
</head>
|
|
20
|
+
<body>
|
|
21
|
+
|
|
22
|
+
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
|
|
23
|
+
<label for="nav-trigger" class="navicon-button x">
|
|
24
|
+
<div class="navicon"></div>
|
|
25
|
+
</label>
|
|
26
|
+
|
|
27
|
+
<label for="nav-trigger" class="overlay"></label>
|
|
28
|
+
|
|
29
|
+
<nav >
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="BTTVEmote.html">BTTVEmote</a><ul class='methods'><li data-type='method'><a href="BTTVEmote.html#toLink">toLink</a></li><li data-type='method'><a href="BTTVEmote.html#toString">toString</a></li></ul></li><li><a href="Channel.html">Channel</a><ul class='methods'><li data-type='method'><a href="Channel.html#fetchBTTVEmotes">fetchBTTVEmotes</a></li><li data-type='method'><a href="Channel.html#fetchFFZEmotes">fetchFFZEmotes</a></li><li data-type='method'><a href="Channel.html#fetchSevenTVEmotes">fetchSevenTVEmotes</a></li></ul></li><li><a href="Collection.html">Collection</a><ul class='methods'><li data-type='method'><a href="Collection.html#filter">filter</a></li><li data-type='method'><a href="Collection.html#find">find</a></li><li data-type='method'><a href="Collection.html#map">map</a></li></ul></li><li><a href="Emote.html">Emote</a><ul class='methods'><li data-type='method'><a href="Emote.html#toString">toString</a></li></ul></li><li><a href="EmoteFetcher.html">EmoteFetcher</a><ul class='methods'><li data-type='method'><a href="EmoteFetcher.html#_cacheBTTVEmote">_cacheBTTVEmote</a></li><li data-type='method'><a href="EmoteFetcher.html#_cacheFFZEmote">_cacheFFZEmote</a></li><li data-type='method'><a href="EmoteFetcher.html#_cacheSevenTVEmote">_cacheSevenTVEmote</a></li><li data-type='method'><a href="EmoteFetcher.html#_cacheTwitchEmote">_cacheTwitchEmote</a></li><li data-type='method'><a href="EmoteFetcher.html#_getRawBTTVEmotes">_getRawBTTVEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#_getRawFFZEmotes">_getRawFFZEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#_getRawSevenTVEmotes">_getRawSevenTVEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#_getRawTwitchEmotes">_getRawTwitchEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#fetchBTTVEmotes">fetchBTTVEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#fetchFFZEmotes">fetchFFZEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#fetchSevenTVEmotes">fetchSevenTVEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#fetchTwitchEmotes">fetchTwitchEmotes</a></li></ul></li><li><a href="EmoteParser.html">EmoteParser</a><ul class='methods'><li data-type='method'><a href="EmoteParser.html#parse">parse</a></li></ul></li><li><a href="FFZEmote.html">FFZEmote</a><ul class='methods'><li data-type='method'><a href="FFZEmote.html#toLink">toLink</a></li><li data-type='method'><a href="FFZEmote.html#toString">toString</a></li></ul></li><li><a href="SevenTVEmote.html">SevenTVEmote</a><ul class='methods'><li data-type='method'><a href="SevenTVEmote.html#toLink">toLink</a></li><li data-type='method'><a href="SevenTVEmote.html#toString">toString</a></li></ul></li><li><a href="TwitchEmote.html">TwitchEmote</a><ul class='methods'><li data-type='method'><a href="TwitchEmote.html#toLink">toLink</a></li><li data-type='method'><a href="TwitchEmote.html#toString">toString</a></li></ul></li></ul>
|
|
33
|
+
|
|
34
|
+
</nav>
|
|
35
|
+
|
|
36
|
+
<div id="main">
|
|
37
|
+
|
|
38
|
+
<h1 class="page-title">util/Collection.js</h1>
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<section>
|
|
47
|
+
<article>
|
|
48
48
|
<pre class="prettyprint source linenums"><code>/**
|
|
49
49
|
* An extended Map with utility methods.
|
|
50
50
|
* @class Collection
|
|
@@ -123,28 +123,28 @@ class Collection extends Map {
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
module.exports = Collection;
|
|
126
|
-
</code></pre>
|
|
127
|
-
</article>
|
|
128
|
-
</section>
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
</div>
|
|
136
|
-
|
|
137
|
-
<br class="clear">
|
|
138
|
-
|
|
139
|
-
<footer>
|
|
140
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.
|
|
141
|
-
</footer>
|
|
142
|
-
|
|
143
|
-
<script>prettyPrint();</script>
|
|
144
|
-
<script src="scripts/polyfill.js"></script>
|
|
145
|
-
<script src="scripts/linenumber.js"></script>
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
</body>
|
|
150
|
-
</html>
|
|
126
|
+
</code></pre>
|
|
127
|
+
</article>
|
|
128
|
+
</section>
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
</div>
|
|
136
|
+
|
|
137
|
+
<br class="clear">
|
|
138
|
+
|
|
139
|
+
<footer>
|
|
140
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
141
|
+
</footer>
|
|
142
|
+
|
|
143
|
+
<script>prettyPrint();</script>
|
|
144
|
+
<script src="scripts/polyfill.js"></script>
|
|
145
|
+
<script src="scripts/linenumber.js"></script>
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
</body>
|
|
150
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mkody/twitch-emoticons",
|
|
3
|
-
"version": "2.6.
|
|
4
|
-
"description": "Gets Twitch, BTTV and
|
|
3
|
+
"version": "2.6.2",
|
|
4
|
+
"description": "Gets Twitch, BTTV, FFZ and 7TV emotes as well as parsing text to emotes!",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"typings": "typings/index.d.ts",
|
|
7
7
|
"keywords": [
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
],
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@twurple/api": "^
|
|
29
|
-
"@twurple/auth": "^
|
|
28
|
+
"@twurple/api": "^6.0.6",
|
|
29
|
+
"@twurple/auth": "^6.0.6",
|
|
30
30
|
"got": "^11.8.6"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"docdash": "^2.0.
|
|
34
|
-
"eslint": "^8.
|
|
35
|
-
"jsdoc": "^4.0.
|
|
33
|
+
"docdash": "^2.0.1",
|
|
34
|
+
"eslint": "^8.35.0",
|
|
35
|
+
"jsdoc": "^4.0.2"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"docs": "jsdoc --configure .jsdoc.json --verbose",
|
|
@@ -50,5 +50,8 @@
|
|
|
50
50
|
"directories": {
|
|
51
51
|
"doc": "docs",
|
|
52
52
|
"test": "test"
|
|
53
|
+
},
|
|
54
|
+
"engines" : {
|
|
55
|
+
"node" : ">=16.0.0"
|
|
53
56
|
}
|
|
54
57
|
}
|
|
@@ -8,7 +8,7 @@ const SevenTVEmote = require('./SevenTVEmote');
|
|
|
8
8
|
const got = require('got');
|
|
9
9
|
const TwitchEmote = require('./TwitchEmote');
|
|
10
10
|
const { ApiClient } = require('@twurple/api');
|
|
11
|
-
const {
|
|
11
|
+
const { AppTokenAuthProvider } = require('@twurple/auth');
|
|
12
12
|
|
|
13
13
|
const options = {
|
|
14
14
|
responseType: 'json'
|
|
@@ -22,7 +22,7 @@ class EmoteFetcher {
|
|
|
22
22
|
*/
|
|
23
23
|
constructor(clientId, clientSecret) {
|
|
24
24
|
if (clientId !== undefined && clientSecret !== undefined) {
|
|
25
|
-
const authProvider = new
|
|
25
|
+
const authProvider = new AppTokenAuthProvider(clientId, clientSecret);
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Twitch api client.
|
package/test/index.js
CHANGED
|
@@ -153,8 +153,8 @@ Promise.all([
|
|
|
153
153
|
]).then(() => {
|
|
154
154
|
const text = sevenParser.parse(':EZ:\n:Clap:\n:modCheck:');
|
|
155
155
|
assert.strictEqual(text, [
|
|
156
|
-
'',
|
|
157
|
+
'',
|
|
158
158
|
''
|
|
159
159
|
].join('\n'));
|
|
160
160
|
}).then(() => {
|