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

simple-helix-api

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-helix-api - npm Package Compare versions

Comparing version 3.0.0-rc.1 to 3.0.0-rc.2

dist/lib/scopes.json

19

dist/index.js

@@ -31,3 +31,2 @@ "use strict";

this.client_id = params.client_id;
this.redirect_uri = params.redirect_uri || "";
this.language = params.language || "";

@@ -66,6 +65,5 @@ if (params.access_token) {

}
;
getAuthLink(scopes = []) {
async getAuthLink(scopes = [], redirect_uri) {
if (scopes.length === 0) {
scopes = require("./lib/scopes.json");
scopes = await Promise.resolve().then(() => require("./lib/scopes.json"));
}

@@ -75,9 +73,8 @@ else if (!Array.isArray(scopes)) {

}
//@ts-ignore
const query = new URLSearchParams({
client_id: this.client_id,
redirect_uri: this.redirect_uri,
response_type: "token",
scope: scopes.join(" ")
}).toString();
const params = new URLSearchParams();
params.set("client_id", this.client_id);
params.set("redirect_uri", redirect_uri);
params.set("response_type", "token");
params.set("scope", scopes.join(" "));
const query = params.toString();
return `https://id.twitch.tv/oauth2/authorize?${query}`;

@@ -84,0 +81,0 @@ }

@@ -8,3 +8,2 @@ "use strict";

})(ERRORS || (ERRORS = {}));
;
class Analytics extends static_1.default {

@@ -33,3 +32,2 @@ constructor(headers) {

}
;
exports.default = Analytics;

@@ -33,3 +33,2 @@ "use strict";

}
;
exports.default = Automod;

@@ -42,3 +42,2 @@ "use strict";

}
;
exports.default = Channel;

@@ -57,3 +57,2 @@ "use strict";

}
;
exports.default = Chat;

@@ -19,3 +19,2 @@ "use strict";

}
;
exports.default = Clips;

@@ -22,3 +22,2 @@ "use strict";

}
;
exports.default = Commercial;

@@ -18,3 +18,2 @@ "use strict";

}
;
exports.default = Events;

@@ -23,3 +23,2 @@ "use strict";

}
;
exports.default = Games;

@@ -34,3 +34,2 @@ "use strict";

}
;
exports.default = Markers;

@@ -93,3 +93,2 @@ "use strict";

}
;
exports.default = Moderation;

@@ -13,3 +13,2 @@ "use strict";

}
;
exports.default = Other;

@@ -44,3 +44,2 @@ "use strict";

}
;
choices = choices.map(o => ({

@@ -82,3 +81,2 @@ title: o.title.substring(0, pollConfig.MAX_CHOICE_ITEM_TITLE_LENGTH)

}
;
exports.default = Polls;

@@ -45,3 +45,2 @@ "use strict";

}
;
outcomes = outcomes.map(o => ({

@@ -96,3 +95,2 @@ title: o.title.substring(0, predictionsConfig.OUTCOMES_ITEM_TITLE_LENGTH)

}
;
exports.default = Predictions;

@@ -90,3 +90,2 @@ "use strict";

}
;
exports.default = Rewards;

@@ -84,3 +84,2 @@ "use strict";

}
;
exports.default = Schedule;

@@ -27,3 +27,2 @@ "use strict";

}
;
exports.default = Search;

@@ -25,3 +25,2 @@ "use strict";

}
;
exports.default = Soundtrack;

@@ -31,3 +31,2 @@ "use strict";

}
;
exports.default = Stream;

@@ -27,3 +27,2 @@ "use strict";

}
;
exports.default = Subscriptions;

@@ -37,3 +37,2 @@ "use strict";

}
;
exports.default = Tags;

@@ -24,3 +24,2 @@ "use strict";

}
;
exports.default = Teams;

@@ -67,3 +67,2 @@ "use strict";

}
;
exports.default = Users;

@@ -35,3 +35,2 @@ "use strict";

}
;
exports.default = Videos;

@@ -79,3 +79,2 @@ "use strict";

}
;
exports.default = Static;
{
"name": "simple-helix-api",
"version": "3.0.0-rc.1",
"version": "3.0.0-rc.2",
"description": "The Simple Helix API allows developers to easily develop applications for Twitch",
"main": "dist/index.js",
"types": "types",
"author": "purplehorrorrus <purplehorrorrus@gmail.com>",

@@ -13,2 +14,4 @@ "license": "MIT",

"@types/jest": "^28.1.8",
"@typescript-eslint/eslint-plugin": "^5.34.0",
"@typescript-eslint/parser": "^5.34.0",
"eslint": "^8.22.0",

@@ -34,3 +37,3 @@ "jest": "^28.1.3",

"scripts": {
"lint": "eslint . --ext .ts",
"lint": "eslint ./src --ext .ts",
"build": "tsc",

@@ -37,0 +40,0 @@ "test": "jest"

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