Socket
Socket
Sign inDemoInstall

twitch-api-ts

Package Overview
Dependencies
9
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.1.2

0

lib/bits/bits-client.d.ts

@@ -0,0 +0,0 @@ import { TwitchAPI } from '../twitch-api';

@@ -0,0 +0,0 @@ "use strict";

export * from './interface';
export * from './bits-client';
//# sourceMappingURL=index.d.ts.map

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export interface BitsLeaderboardUser {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=BitsLeaderboardUser.js.map
export * from './BitsLeaderboardUser';
//# sourceMappingURL=index.d.ts.map

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { TwitchAPI } from '../twitch-api';

@@ -0,0 +0,0 @@ "use strict";

export * from './interfaces';
export * from './channel-points-client';
//# sourceMappingURL=index.d.ts.map

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { Image } from '../../';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CustomReward.js.map

@@ -0,0 +0,0 @@ type CustomRewardRedemptionStatus = 'CANCELED' | 'FULFILLED' | 'UNFULFILLED';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CustomRewardRedemption.js.map
export * from './CustomReward';
export * from './CustomRewardRedemption';
//# sourceMappingURL=index.d.ts.map

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { TwitchAPI } from '../twitch-api';

@@ -0,0 +0,0 @@ "use strict";

export * from './interface';
export * from './chat-client';
//# sourceMappingURL=index.d.ts.map

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export type EmoteFormat = "static" | "animated";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=Emote.js.map
export * from './Emote';
//# sourceMappingURL=index.d.ts.map

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export interface Image {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=Image.js.map
export * from './Image';
//# sourceMappingURL=index.d.ts.map

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export * from './twitch-api';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class TwitchAPIException extends Error {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { BitsClient } from './bits/bits-client';

@@ -0,0 +0,0 @@ "use strict";

export * from './interfaces';
export * from './users-client';
//# sourceMappingURL=index.d.ts.map

@@ -0,0 +0,0 @@ "use strict";

export * from './TwitchUser';
//# sourceMappingURL=index.d.ts.map

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ type UserType = 'admin' | 'global_mod' | 'staff' | '';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=TwitchUser.js.map

@@ -0,0 +0,0 @@ import { TwitchAPI } from '../twitch-api';

@@ -0,0 +0,0 @@ "use strict";

export declare function jsonToURLEncoded(object: Record<string, any>): string;
//# sourceMappingURL=utils.d.ts.map

6

lib/utils.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.jsonToURLEncoded = void 0;
const querystring_1 = __importDefault(require("querystring"));
// eslint-disable-next-line @typescript-eslint/no-explicit-any

@@ -16,3 +12,3 @@ function jsonToURLEncoded(object) {

}
queries.push(key + '=' + querystring_1.default.escape(value));
queries.push(key + '=' + value);
}

@@ -19,0 +15,0 @@ return queries.join('&');

2

package.json

@@ -5,3 +5,3 @@ {

"description": "Modern wrapper for the Twitch API with typings.",
"version": "0.1.1",
"version": "0.1.2",
"license": "MIT",

@@ -8,0 +8,0 @@ "main": "lib/index.js",

@@ -1,3 +0,1 @@

import qs from 'querystring';
// eslint-disable-next-line @typescript-eslint/no-explicit-any

@@ -12,5 +10,5 @@ export function jsonToURLEncoded(object: Record<string, any>) {

queries.push(key + '=' + qs.escape(value));
queries.push(key + '=' + value);
}
return queries.join('&');
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc