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

@canvacord/emoji-parser

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@canvacord/emoji-parser - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

build/index.d.ts
import { CanvasRenderingContext2D } from "canvas";
import { Util } from "./Util";
import { Util, ParsedChunks } from "./Util";
export interface MeasureTextData {

@@ -21,2 +21,2 @@ width: number;

export declare function strokeTextWithTwemoji(context: CanvasRenderingContext2D, text: string, x: number, y: number, options?: DrawTextWithEmojiParams): Promise<void>;
export { CanvacordEmojiParser, Util };
export { CanvacordEmojiParser, Util, ParsedChunks };

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

constructor() {
throw new Error(`The ${this.constructor.name} may not be instantiated!`);
throw new Error(`The ${this.constructor.name} class may not be instantiated!`);
}

@@ -11,0 +11,0 @@ static async drawTextWithEmoji(context, fillType, text, x, y, options) {

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

constructor() {
throw new Error(`The ${this.constructor.name} may not be instantiated!`);
throw new Error(`The ${this.constructor.name} class may not be instantiated!`);
}

@@ -14,0 +14,0 @@ static parseDiscordEmojis(textEntities) {

{
"name": "@canvacord/emoji-parser",
"version": "1.0.0",
"version": "1.0.1",
"description": "Emoji parser for canvacord.",
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {

@@ -7,0 +8,0 @@ "build": "tsc",

import { CanvasRenderingContext2D } from "canvas";
import { Util } from "./Util";
import { Util, ParsedChunks } from "./Util";

@@ -18,3 +18,3 @@ export interface MeasureTextData {

constructor() {
throw new Error(`The ${this.constructor.name} may not be instantiated!`);
throw new Error(`The ${this.constructor.name} class may not be instantiated!`);
}

@@ -128,2 +128,2 @@

export { CanvacordEmojiParser, Util };
export { CanvacordEmojiParser, Util, ParsedChunks };

@@ -13,3 +13,3 @@ import { parse } from "twemoji-parser";

constructor() {
throw new Error(`The ${this.constructor.name} may not be instantiated!`);
throw new Error(`The ${this.constructor.name} class may not be instantiated!`);
}

@@ -16,0 +16,0 @@

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