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 0.2.0 to 0.2.1

3

lib/endpoints/_getUsers.js
const _validatetoken = require("./_validatetoken");
const i = require("..");
const getUsers = require("./getUsers");
const { correctChannelName } = require("oberknecht-utils");

@@ -9,3 +10,3 @@ /** @param {Symbol} sym @param {Array?} logins @param {Array?} ids @param {string?} customtoken */

if (!(sym ?? undefined) || (!(logins ?? undefined) && !(ids ?? undefined))) return reject(Error("sym or logins and ids undefined"));
logins = ((logins ?? undefined) && !Array.isArray(logins) ? [logins] : logins ?? []).map(a => a?.toLowerCase());
logins = ((logins ?? undefined) && !Array.isArray(logins) ? [logins] : logins ?? []).map(a => correctChannelName(a).replace(/^#/g, "")?.toLowerCase());
ids = ((ids ?? undefined) && !Array.isArray(ids) ? [ids] : ids ?? []).map(a => a?.toLowerCase());

@@ -12,0 +13,0 @@

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc