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

postcss-font-grabber

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-font-grabber - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

4

dist/font-grabber/downloader/index.js
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -14,2 +15,3 @@ });

Object.defineProperty(exports, "__esModule", { value: true });
exports.Downloader = void 0;
const fs_1 = __importDefault(require("fs"));

@@ -16,0 +18,0 @@ const http_1 = __importDefault(require("http"));

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.calculateCssOutputDirectoryPath = exports.downloadFont = exports.processDeclaration = exports.reduceSrcsToFontInfos = exports.getFontInfoFromSrc = exports.getFontFormatFromUrlObject = exports.getFontFilename = exports.isFontFaceSrcContainsRemoteFontUri = exports.isRemoteFontFaceDeclaration = exports.parseOptions = void 0;
const path_1 = __importDefault(require("path"));

@@ -45,3 +46,3 @@ const url_1 = __importDefault(require("url"));

function getFontFilename(fontUriObject) {
if (fontUriObject.pathname === undefined || fontUriObject.pathname === '') {
if (!fontUriObject.pathname) {
return helpers_1.md5(url_1.default.format(fontUriObject));

@@ -53,3 +54,3 @@ }

function getFontFormatFromUrlObject(urlObject) {
if (urlObject.pathname === undefined) {
if (!urlObject.pathname) {
return;

@@ -56,0 +57,0 @@ }

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.FontGrabber = void 0;
const events_1 = __importDefault(require("events"));

@@ -8,0 +9,0 @@ const util_1 = require("util");

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -14,2 +15,3 @@ });

Object.defineProperty(exports, "__esModule", { value: true });
exports.makeDirectoryRecursively = exports.unique = exports.md5 = exports.trim = exports.pick = exports.defaultValue = exports.getOrDefault = void 0;
const fs_1 = __importDefault(require("fs"));

@@ -16,0 +18,0 @@ const path_1 = __importDefault(require("path"));

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.postcssFontGrabber = exports.makeInstance = void 0;
const postcss_1 = __importDefault(require("postcss"));

@@ -8,0 +9,0 @@ const font_grabber_1 = require("./font-grabber");

{
"name": "postcss-font-grabber",
"version": "2.0.1",
"version": "2.1.0",
"description": "Grab remote font files in @font-face, download them and update your CSS, just like that.",

@@ -15,3 +15,3 @@ "author": "AaronJan <aaronjan@qq.com>",

"engines": {
"node": ">=8.0.0"
"node": ">=10.0.0"
},

@@ -33,17 +33,16 @@ "scripts": {

"devDependencies": {
"@types/gulp": "^4.0.5",
"@types/jest": "^23.1.3",
"@types/node": "^10.5.0",
"@types/sinon": "^5.0.1",
"coveralls": "^2.11.9",
"gulp": "^4.0.0",
"jest": "^23.2.0",
"sinon": "^6.0.1",
"ts-jest": "^22.4.6",
"ts-node": "^6.2.0",
"typescript": "^2.9.2"
"@types/gulp": "^4.0.6",
"@types/jest": "^23.3.14",
"@types/node": "^12.12.62",
"@types/sinon": "^9.0.5",
"coveralls": "^3.1.0",
"gulp": "^4.0.2",
"jest": "^26.4.2",
"sinon": "^9.0.3",
"ts-jest": "^26.4.0",
"typescript": "^4.0.3"
},
"dependencies": {
"postcss": "^6.0.23"
"postcss": ">=6 <=8"
}
}

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