Socket
Socket
Sign inDemoInstall

@twurple/common

Package Overview
Dependencies
Maintainers
2
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twurple/common - npm Package Compare versions

Comparing version 5.0.0-pre.9 to 5.0.0-pre.10

es/DataObject.mjs

3

lib/emotes/BaseCheermoteList.d.ts

@@ -0,1 +1,2 @@

import { DataObject } from '../DataObject';
/**

@@ -74,3 +75,3 @@ * The details on how a cheermote should be displayed.

/** @private */
export declare abstract class BaseCheermoteList {
export declare abstract class BaseCheermoteList<DataType> extends DataObject<DataType> {
/**

@@ -77,0 +78,0 @@ * Gets the URL and color needed to properly represent a cheer of the given amount of bits with the given prefix.

@@ -5,4 +5,5 @@ "use strict";

const shared_utils_1 = require("@d-fischer/shared-utils");
const DataObject_1 = require("../DataObject");
/** @private */
class BaseCheermoteList {
class BaseCheermoteList extends DataObject_1.DataObject {
/**

@@ -9,0 +10,0 @@ * Parses all the cheermotes out of a message.

@@ -0,1 +1,2 @@

import { DataObject } from '../DataObject';
/** @private */

@@ -13,7 +14,3 @@ export interface ChatEmoteData {

*/
export declare class ChatEmote {
/** @private */
protected readonly _data: ChatEmoteData;
/** @private */
constructor(data: ChatEmoteData);
export declare class ChatEmote extends DataObject<ChatEmoteData> {
/**

@@ -20,0 +17,0 @@ * The emote ID.

@@ -5,3 +5,3 @@ "use strict";

const tslib_1 = require("tslib");
const shared_utils_1 = require("@d-fischer/shared-utils");
const DataObject_1 = require("../DataObject");
const rtfm_1 = require("../rtfm");

@@ -11,7 +11,3 @@ /**

*/
let ChatEmote = class ChatEmote {
/** @private */
constructor(data) {
this._data = data;
}
let ChatEmote = class ChatEmote extends DataObject_1.DataObject {
/**

@@ -21,3 +17,3 @@ * The emote ID.

get id() {
return this._data.id;
return this[DataObject_1.rawDataSymbol].id;
}

@@ -28,3 +24,3 @@ /**

get code() {
return this._data.code;
return this[DataObject_1.rawDataSymbol].code;
}

@@ -40,5 +36,2 @@ /**

};
tslib_1.__decorate([
shared_utils_1.Enumerable(false)
], ChatEmote.prototype, "_data", void 0);
ChatEmote = tslib_1.__decorate([

@@ -45,0 +38,0 @@ rtfm_1.rtfm('common', 'ChatEmote', 'id')

@@ -0,1 +1,2 @@

import { rawDataSymbol } from '../DataObject';
import type { ChatEmoteData } from './ChatEmote';

@@ -13,3 +14,3 @@ import { ChatEmote } from './ChatEmote';

export declare class ChatEmoteWithSet extends ChatEmote {
/** @private */ protected readonly _data: ChatEmoteWithSetData;
/** @private */ readonly [rawDataSymbol]: ChatEmoteWithSetData;
/**

@@ -16,0 +17,0 @@ * The ID of the emote set.

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

const tslib_1 = require("tslib");
const DataObject_1 = require("../DataObject");
const rtfm_1 = require("../rtfm");

@@ -18,3 +19,3 @@ const ChatEmote_1 = require("./ChatEmote");

get setId() {
return this._data.emoticon_set;
return this[DataObject_1.rawDataSymbol].emoticon_set;
}

@@ -21,0 +22,0 @@ };

@@ -0,1 +1,2 @@

export { DataObject, getRawData, rawDataSymbol } from './DataObject';
export { rtfm } from './rtfm';

@@ -2,0 +3,0 @@ export type { CommercialLength, HelixUserType } from './types';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.extractUserName = exports.extractUserId = exports.HellFreezesOverError = exports.CustomError = exports.fillTextPositions = exports.ChatEmoteWithSet = exports.ChatEmote = exports.BaseCheermoteList = exports.rtfm = void 0;
exports.extractUserName = exports.extractUserId = exports.HellFreezesOverError = exports.CustomError = exports.fillTextPositions = exports.ChatEmoteWithSet = exports.ChatEmote = exports.BaseCheermoteList = exports.rtfm = exports.rawDataSymbol = exports.getRawData = exports.DataObject = void 0;
var DataObject_1 = require("./DataObject");
Object.defineProperty(exports, "DataObject", { enumerable: true, get: function () { return DataObject_1.DataObject; } });
Object.defineProperty(exports, "getRawData", { enumerable: true, get: function () { return DataObject_1.getRawData; } });
Object.defineProperty(exports, "rawDataSymbol", { enumerable: true, get: function () { return DataObject_1.rawDataSymbol; } });
var rtfm_1 = require("./rtfm");

@@ -5,0 +9,0 @@ Object.defineProperty(exports, "rtfm", { enumerable: true, get: function () { return rtfm_1.rtfm; } });

import type { NoInfer } from '@d-fischer/shared-utils';
/** @private */
declare type PackageName = 'api' | 'auth' | 'chat' | 'common' | 'eventsub' | 'pubsub';
/** @private */
export declare function rtfm(pkg: PackageName, name: string): ClassDecorator;
/** @private */
export declare function rtfm<T>(pkg: PackageName, name: string, idKey: keyof NoInfer<T>): ClassDecorator;
export {};
//# sourceMappingURL=rtfm.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.rtfm = void 0;
/** @private */
function rtfm(pkg, name, idKey) {

@@ -5,0 +6,0 @@ return clazz => {

{
"name": "@twurple/common",
"version": "5.0.0-pre.9",
"version": "5.0.0-pre.10",
"publishConfig": {

@@ -34,2 +34,3 @@ "access": "public"

"@d-fischer/shared-utils": "^3.2.0",
"klona": "^2.0.4",
"tslib": "^2.0.3"

@@ -48,3 +49,3 @@ },

},
"gitHead": "2fe959f62af1e89ef6040816033b5128c272e131"
"gitHead": "d363fb5edfd93c682aaa0a6a8bdb5bff03bf0347"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc