postcss-font-grabber
Advanced tools
Comparing version 2.0.1 to 2.1.0
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52418
10
494
+ Addednanoid@3.3.7(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedpostcss@8.4.49(transitive)
+ Addedsource-map-js@1.2.1(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedpostcss@6.0.23(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedsupports-color@5.5.0(transitive)
Updatedpostcss@>=6 <=8