New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

oberknecht-api

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oberknecht-api - npm Package Compare versions

Comparing version

to
0.6.1

11

lib/endpoints/_getUsers.js
const i = require("..");
const getUsers = require("./getUsers");
const { cleanChannelName, convertToArray } = require("oberknecht-utils");
const { cleanChannelName, convertToArray, recreate } = require("oberknecht-utils");
const { regex } = require("..");

@@ -12,4 +12,4 @@

let logins_ = convertToArray(logins)?.map(a => cleanChannelName(a));
let ids_ = convertToArray(ids)?.map(a => a?.toLowerCase());
let ids_ = convertToArray(ids)?.map(a => a.toLowerCase());
let idsinlogins = logins_.filter(a => regex.numregex().test(a));

@@ -19,3 +19,2 @@ if ((idsinlogins.length > 0)) {

};
let r = {

@@ -30,3 +29,3 @@ logins: {},

if (i.apiclientData[sym]?._options?.saveIDs) {
logins_.map(login => {
recreate(logins_).forEach(login => {
let u = i.apiclientData[sym]?.jsonsplitters?.users?.getKeySync(["logins", login]);

@@ -42,3 +41,3 @@ if (u) {

ids_.map(id => {
recreate(ids_).forEach(id => {
let u = i.apiclientData[sym]?.jsonsplitters?.users?.getKeySync(["ids", id]);

@@ -45,0 +44,0 @@ if (u) {

{
"name": "oberknecht-api",
"version": "0.6.0",
"version": "0.6.1",
"description": "A client for easy usage of the Twitch API (Helix)",

@@ -5,0 +5,0 @@ "main": "index.js",