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

parse-bmfont-xml

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-bmfont-xml - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

15

lib/parse-attribs.js

@@ -0,4 +1,15 @@

//Some versions of GlyphDesigner have a typo
//that causes some bugs with parsing.
//Need to confirm with recent version of the software
//to see whether this is still an issue or not.
var GLYPH_DESIGNER_ERROR = 'chasrset'
module.exports = function parseAttributes(obj) {
if (GLYPH_DESIGNER_ERROR in obj) {
obj['charset'] = obj[GLYPH_DESIGNER_ERROR]
delete obj[GLYPH_DESIGNER_ERROR]
}
for (var k in obj) {
if (k === 'face' || k === 'charset')
if (k === 'face' || k === 'charset')
continue

@@ -8,3 +19,3 @@ else if (k === 'padding' || k === 'spacing')

else
obj[k] = parseInt(obj[k], 10)
obj[k] = parseInt(obj[k], 10)
}

@@ -11,0 +22,0 @@ return obj

2

package.json
{
"name": "parse-bmfont-xml",
"version": "1.1.1",
"version": "1.1.2",
"description": "parses XML BMFont files into a JavaScript object",

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

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