mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[addon] blacklist moch bad tokens and return a indication response
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
const BadTokenError = { code: 'BAD_TOKEN' }
|
||||
|
||||
function chunkArray(arr, size) {
|
||||
return arr.length > size
|
||||
? [arr.slice(0, size), ...chunkArray(arr.slice(size), size)]
|
||||
: [arr];
|
||||
}
|
||||
|
||||
module.exports = { chunkArray }
|
||||
module.exports = { chunkArray, BadTokenError }
|
||||
Reference in New Issue
Block a user