Socket
Socket
Sign inDemoInstall

svgicons2svgfont

Package Overview
Dependencies
Maintainers
0
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svgicons2svgfont - npm Package Compare versions

Comparing version 14.0.1 to 14.0.2

9

CHANGELOG.md

@@ -0,1 +1,10 @@

## [14.0.2](https://github.com/nfroidure/svgicons2svgfont/compare/v14.0.1...v14.0.2) (2024-09-08)
### Bug Fixes
* fix circles convertion when no cx/cy ([13d9caf](https://github.com/nfroidure/svgicons2svgfont/commit/13d9caf999242490289c2ef0c22780120cdc030b)), closes [#162](https://github.com/nfroidure/svgicons2svgfont/issues/162)
## [14.0.1](https://github.com/nfroidure/svgicons2svgfont/compare/v14.0.0...v14.0.1) (2024-08-01)

@@ -2,0 +11,0 @@

4

dist/index.js

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

import { ucs2 } from 'punycode';
import punycode from 'punycode/punycode.js';
import { Transform } from 'stream';

@@ -368,3 +368,3 @@ import Sax from 'sax';

glyph.unicode.forEach((unicode, i) => {
const unicodeStr = ucs2
const unicodeStr = punycode.ucs2
.decode(unicode)

@@ -371,0 +371,0 @@ .map((point) => '&#x' + point.toString(16).toUpperCase() + ';')

@@ -79,4 +79,4 @@ const svgShapesToPath = {

function svgShapesToPathCircleToPath(attributes) {
const cx = parseFloat(attributes.cx);
const cy = parseFloat(attributes.cy);
const cx = parseFloat(attributes.cx || 0);
const cy = parseFloat(attributes.cy || 0);
const rx = 'undefined' !== typeof attributes.rx

@@ -83,0 +83,0 @@ ? parseFloat(attributes.rx)

@@ -6,3 +6,3 @@ import { describe, test, expect } from '@jest/globals';

import { join } from 'node:path';
import { ucs2 as ucs2 } from 'punycode';
import punycode from 'punycode/punycode.js';
import { SVGIcons2SVGFontStream } from '../index.js';

@@ -207,2 +207,7 @@ import { SVGIconsDirStream } from '../iconsdir.js';

});
test('should work with realworld icons', async () => {
await generateFontToFile({
fontName: 'realworld',
});
});
test('should work with a lot of icons', async () => {

@@ -410,3 +415,3 @@ await generateFontToFile({

name: 'account',
unicode: [ucs2.encode([0x1f63a])],
unicode: [punycode.ucs2.encode([0x1f63a])],
};

@@ -413,0 +418,0 @@ const promise = bufferStream(svgFontStream);

@@ -28,3 +28,3 @@ {

"name": "svgicons2svgfont",
"version": "14.0.1",
"version": "14.0.2",
"description": "Read a set of SVG icons and output a SVG font",

@@ -72,2 +72,3 @@ "homepage": "https://github.com/nfroidure/svgicons2svgfont",

"glob": "^11.0.0",
"punycode": "^2.3.1",
"sax": "^1.4.1",

@@ -74,0 +75,0 @@ "svg-pathdata": "^7.0.0",

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

import { ucs2 } from 'punycode';
import punycode from 'punycode/punycode.js';
import { Transform } from 'stream';

@@ -565,3 +565,3 @@ import Sax from 'sax';

glyph.unicode.forEach((unicode, i) => {
const unicodeStr = ucs2
const unicodeStr = punycode.ucs2
.decode(unicode)

@@ -568,0 +568,0 @@ .map((point) => '&#x' + point.toString(16).toUpperCase() + ';')

@@ -93,4 +93,4 @@ const svgShapesToPath = {

function svgShapesToPathCircleToPath(attributes) {
const cx = parseFloat(attributes.cx);
const cy = parseFloat(attributes.cy);
const cx = parseFloat(attributes.cx || 0);
const cy = parseFloat(attributes.cy || 0);
const rx =

@@ -97,0 +97,0 @@ 'undefined' !== typeof attributes.rx

@@ -7,3 +7,3 @@ import { describe, test, expect } from '@jest/globals';

import { join } from 'node:path';
import { ucs2 as ucs2 } from 'punycode';
import punycode from 'punycode/punycode.js';

@@ -285,2 +285,8 @@ import { SVGIcons2SVGFontStream } from '../index.js';

test('should work with realworld icons', async () => {
await generateFontToFile({
fontName: 'realworld',
});
});
test('should work with a lot of icons', async () => {

@@ -571,3 +577,3 @@ await generateFontToFile(

name: 'account',
unicode: [ucs2.encode([0x1f63a])],
unicode: [punycode.ucs2.encode([0x1f63a])],
};

@@ -574,0 +580,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

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