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

@pixi/text-bitmap

Package Overview
Dependencies
Maintainers
2
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/text-bitmap - npm Package Compare versions

Comparing version 7.3.0-rc.2 to 7.3.0

3

lib/formats/index.d.ts
import { TextFormat } from './TextFormat';
import { XMLFormat } from './XMLFormat';
import { XMLStringFormat } from './XMLStringFormat';
import type { BitmapFontData } from '../BitmapFontData';
declare const formats: readonly [typeof TextFormat, typeof XMLFormat, typeof XMLStringFormat];

@@ -11,4 +12,4 @@ /**

*/
export declare function autoDetectFormat(data: unknown): typeof formats[number] | null;
export declare function autoDetectFormat(data: string | XMLDocument | BitmapFontData): typeof formats[number] | null;
export type { IBitmapFontRawData } from './TextFormat';
export { TextFormat, XMLFormat, XMLStringFormat };

@@ -55,3 +55,3 @@ import { BitmapFontData } from '../BitmapFontData';

*/
static test(data: unknown): boolean;
static test(data: string | XMLDocument | BitmapFontData): boolean;
/**

@@ -58,0 +58,0 @@ * Convert text font data to a javascript object.

@@ -12,3 +12,3 @@ import { BitmapFontData } from '../BitmapFontData';

*/
static test(data: unknown): boolean;
static test(data: string | XMLDocument | BitmapFontData): boolean;
/**

@@ -15,0 +15,0 @@ * Convert the XML into BitmapFontData that we can use.

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

const xml = data;
return "getElementsByTagName" in xml && xml.getElementsByTagName("page").length && xml.getElementsByTagName("info")[0].getAttribute("face") !== null;
return typeof data != "string" && "getElementsByTagName" in data && xml.getElementsByTagName("page").length && xml.getElementsByTagName("info")[0].getAttribute("face") !== null;
}

@@ -14,0 +14,0 @@ /**

@@ -12,3 +12,3 @@ import type { BitmapFontData } from '../BitmapFontData';

*/
static test(data: unknown): boolean;
static test(data: string | XMLDocument | BitmapFontData): boolean;
/**

@@ -15,0 +15,0 @@ * Convert the text XML into BitmapFontData that we can use.

{
"name": "@pixi/text-bitmap",
"version": "7.3.0-rc.2",
"version": "7.3.0",
"main": "lib/index.js",

@@ -39,8 +39,8 @@ "module": "lib/index.mjs",

"peerDependencies": {
"@pixi/assets": "7.3.0-rc.2",
"@pixi/core": "7.3.0-rc.2",
"@pixi/display": "7.3.0-rc.2",
"@pixi/mesh": "7.3.0-rc.2",
"@pixi/text": "7.3.0-rc.2"
"@pixi/assets": "7.3.0",
"@pixi/core": "7.3.0",
"@pixi/display": "7.3.0",
"@pixi/mesh": "7.3.0",
"@pixi/text": "7.3.0"
}
}

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

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