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

dnm-font-manager

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dnm-font-manager - npm Package Compare versions

Comparing version 0.4.6 to 0.4.7

8

dist/main.js

@@ -413,2 +413,3 @@ 'use strict';

fonts.forEach(function (font) {
font = _path2.default.resolve(font);
try {

@@ -451,3 +452,3 @@ var _filterFontInfos = filterFontInfos(_ttfinfo2.default.getSync(font).tables.name),

missingFonts.forEach(function (font, index) {
vbsContent += 'sources(' + index + ') = "' + _path2.default.resolve(font.path) + '"\n';
vbsContent += 'sources(' + index + ') = "' + font.path + '"\n';
});

@@ -493,6 +494,3 @@ vbsContent += '\n Set regEx = New RegExp\n regEx.IgnoreCase = True\n regEx.Pattern = "([\\w\\s]+?)(_[^_]*)?(\\.(ttf|otf))$"\n FOR EACH FontFile IN sources\n fontFileName = ofso.GetFileName(FontFile)\n IF regEx.Test(fontFileName) THEN \n Set objMatch = regEx.Execute(fontFileName)\n otherName = Replace(fontFileName,objMatch.Item(0).Submatches(2),"") & "_0" & objMatch.Item(0).Submatches(2)\n normalFontPath = oWinFonts.Self.Path & "\\" & fontFileName\n normalFontPath2 = oWinFonts2 & "\\" & fontFileName\n otherFontPath = oWinFonts.Self.Path & "\\" & otherName\n otherFontPath2 = oWinFonts2 & "\\" & otherName\n IF NOT ofso.FileExists(normalFontPath) AND NOT ofso.FileExists(normalFontPath2) AND NOT ofso.FileExists(otherFontPath) AND NOT ofso.FileExists(otherFontPath2) THEN\n oWinFonts.CopyHere FontFile\n nInstall = nInstall + 1\n END IF\n END IF\n NEXT\n wscript.echo nInstall\n ';

if (found.length > 0) {
foundFonts.push(found[0]);
installed.push(missingFonts[_i].path);
} else newMissingFonts.push(missingFonts[_i]);
if (found.length > 0) installed.push(_extends({}, found[0], { path: missingFonts[_i].path }));else newMissingFonts.push(missingFonts[_i]);
}

@@ -499,0 +497,0 @@ resolve({

{
"name": "dnm-font-manager",
"version": "0.4.6",
"version": "0.4.7",
"description": "Search system fonts with family and style using pure JavaScript, forked from rBurgett/system-font-families",

@@ -5,0 +5,0 @@ "main": "dist/main.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