New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 3.0.0-alpha.3 to 3.0.0-beta.1

4

dist/font-grabber/functions.d.ts

@@ -36,7 +36,7 @@ /// <reference types="node" />

}): string;
export declare function getNewDeclarationValue({ value, oldUrl, newUrl, }: {
export declare function getNewDeclarationValue({ value, oldUrl, fontRelativePath, }: {
value: string;
oldUrl: string;
newUrl: string;
fontRelativePath: string;
}): string;
export declare function getSubDirectoryPath(directoryPath: string, subFilePath: string): string;

@@ -182,4 +182,5 @@ "use strict";

exports.calculateRelativePath = calculateRelativePath;
function getNewDeclarationValue({ value, oldUrl, newUrl, }) {
return value.replace(oldUrl, newUrl);
function getNewDeclarationValue({ value, oldUrl, fontRelativePath, }) {
fontRelativePath = fontRelativePath.replace(/\\/g, '/');
return value.replace(oldUrl, fontRelativePath);
}

@@ -186,0 +187,0 @@ exports.getNewDeclarationValue = getNewDeclarationValue;

@@ -105,3 +105,3 @@ "use strict";

oldUrl: fontUrlString,
newUrl: relativePath,
fontRelativePath: relativePath,
});

@@ -108,0 +108,0 @@ }

{
"name": "postcss-font-grabber",
"version": "3.0.0-alpha.3",
"version": "3.0.0-beta.1",
"description": "It grabs remote font files and update your CSS, just like that.",

@@ -5,0 +5,0 @@ "author": "AaronJan <aaronjan@qq.com>",

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