Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@twurple/common

Package Overview
Dependencies
Maintainers
1
Versions
147
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.1.0-pre.8 to 5.1.0-pre.9

2

lib/DataObject.js

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

function getRawData(obj) {
return klona_1.klona(obj[exports.rawDataSymbol]);
return (0, klona_1.klona)(obj[exports.rawDataSymbol]);
}

@@ -16,0 +16,0 @@ exports.getRawData = getRawData;

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

amount,
position: shared_utils_1.utf8Length(message.substr(0, match.index)),
position: (0, shared_utils_1.utf8Length)(message.slice(0, match.index)),
length: match[0].length,

@@ -53,3 +53,3 @@ displayInfo: this.getCheermoteDisplayInfo(name, amount, format)

if (currentPosition < message.length) {
result.push(message.substr(currentPosition));
result.push(message.slice(currentPosition));
}

@@ -56,0 +56,0 @@ return result;

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

ChatEmote = tslib_1.__decorate([
rtfm_1.rtfm('common', 'ChatEmote', 'id')
(0, rtfm_1.rtfm)('common', 'ChatEmote', 'id')
], ChatEmote);
exports.ChatEmote = ChatEmote;

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

ChatEmoteWithSet = tslib_1.__decorate([
rtfm_1.rtfm('common', 'ChatEmoteWithSet', 'id')
(0, rtfm_1.rtfm)('common', 'ChatEmoteWithSet', 'id')
], ChatEmoteWithSet);
exports.ChatEmoteWithSet = ChatEmoteWithSet;

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

function fillTextPositions(message, otherPositions) {
const messageLength = shared_utils_1.utf8Length(message);
const messageLength = (0, shared_utils_1.utf8Length)(message);
if (!otherPositions.length) {

@@ -27,3 +27,3 @@ return [

length: token.position - currentPosition,
text: shared_utils_1.utf8Substring(message, currentPosition, token.position)
text: (0, shared_utils_1.utf8Substring)(message, currentPosition, token.position)
});

@@ -39,3 +39,3 @@ }

length: messageLength - currentPosition,
text: shared_utils_1.utf8Substring(message, currentPosition)
text: (0, shared_utils_1.utf8Substring)(message, currentPosition)
});

@@ -42,0 +42,0 @@ }

@@ -0,6 +1,8 @@

/// <reference lib="es2021.promise" />
/// <reference lib="es2022.error" />
/** @private */
export declare class CustomError extends Error {
constructor(...params: [string, string?, string?]);
constructor(message: string, options?: ErrorOptions);
get name(): string;
}
//# sourceMappingURL=CustomError.d.ts.map
"use strict";
/// <reference lib="es2021.promise"/>
/// <reference lib="es2022.error"/>
Object.defineProperty(exports, "__esModule", { value: true });

@@ -6,5 +8,5 @@ exports.CustomError = void 0;

class CustomError extends Error {
constructor(...params) {
// @ts-ignore
super(...params);
constructor(message, options) {
var _a;
super(message, options);
// restore prototype chain

@@ -21,5 +23,3 @@ const actualProto = new.target.prototype;

// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (Error.captureStackTrace) {
Error.captureStackTrace(this, new.target.constructor);
}
(_a = Error.captureStackTrace) === null || _a === void 0 ? void 0 : _a.call(Error, this, new.target.constructor);
}

@@ -26,0 +26,0 @@ get name() {

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

HelixExtension = tslib_1.__decorate([
rtfm_1.rtfm('api', 'HelixExtension', 'id')
(0, rtfm_1.rtfm)('api', 'HelixExtension', 'id')
], HelixExtension);
exports.HelixExtension = HelixExtension;
{
"name": "@twurple/common",
"version": "5.1.0-pre.8",
"version": "5.1.0-pre.9",
"publishConfig": {

@@ -47,3 +47,3 @@ "access": "public"

},
"gitHead": "e423c0ac8b72a05cf329970b5c48c5a5ac133039"
"gitHead": "613bcf88d2a743f3e660429befa6381f53bd77fd"
}

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